﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}



/*Каталог товарів (TreeView)*/

ul, #TreeView {
    list-style-type: none;
}

#TreeView {
    margin: 0;
    padding: 0;
}

.TreeViewCaret {
    cursor: pointer;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
}

    .TreeViewCaret::before {
        content: "\25B6";
        color: black;
        display: inline-block;
        margin-right: 6px;
    }

.TreeViewCaret-down::before {
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Safari */
    ' transform: rotate(90deg);
}

.TreeViewNested {
    display: none;
}

.TreeViewActive {
    display: block;
}

.image-container {
    display: inline-block;
    position: relative;
}

    .image-container img {
        width: 100px;
        height: 100px;
        transition: opacity 0.3s ease;
    }

    .image-container .full-size-image {
        display: none;
        position: absolute;
        top: 0;
        left: 110%; /* Змістіть повнорозмірне зображення на відстань ширини маленького зображення + відступ */
        z-index: 10;
        border: 1px solid #ccc;
        background-color: #fff; /* Додайте білий фон */
    }

    .image-container:hover .full-size-image {
        display: block;
    }

.table-striped td {
    vertical-align: middle; /* Вирівняйте текст вертикально по центру */
}


.table-container {
    max-height: 600px;
    overflow-y: auto;
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

th, td {
    padding: 8px 12px;
    border: 1px solid #ddd;
}

.image-container {
    position: relative;
}

    .image-container img.full-size-image {
        display: none;
    }

.copy-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.copy-icon {
    font-size: 18px; /* або 20px, залежно від бажаного розміру */
    visibility: hidden;
}

.copy-td:hover .copy-icon {
    visibility: visible;
}

.copy-message {
    display: none;
    position: absolute;
    top: -18px;
    right: 0;
    background: #28a745;
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
    white-space: nowrap;
}

.status-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 3D квадрат */
.status-square {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    /* 3D ефект */
    background: linear-gradient(135deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.15) 25%, rgba(0,0,0,0.20) 100%);
    background-blend-mode: overlay;
    box-shadow: inset 2px 2px 4px rgba(255,255,255,0.5), inset -2px -2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.15);
    display: inline-block;
}

/* Базові кольори */
.status-created {
    background-color: #4A90E2; /* синій */
}

.status-shipped {
    background-color: #F5C242; /* жовтий */
}

.status-completed {
    background-color: #53C26D; /* зелений */
}

.status-canceled {
    background-color: #D9534F; /* червоний */
}

.status-unknown {
    background-color: #9e9e9e; /* сірий */
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}



/*Каталог товарів (TreeView)*/

ul, #TreeView {
    list-style-type: none;
}

#TreeView {
    margin: 0;
    padding: 0;
}

.TreeViewCaret {
    cursor: pointer;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
}

    .TreeViewCaret::before {
        content: "\25B6";
        color: black;
        display: inline-block;
        margin-right: 6px;
    }

.TreeViewCaret-down::before {
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Safari */
    ' transform: rotate(90deg);
}

.TreeViewNested {
    display: none;
}

.TreeViewActive {
    display: block;
}

.image-container {
    display: inline-block;
    position: relative;
}

    .image-container img {
        width: 100px;
        height: 100px;
        transition: opacity 0.3s ease;
    }

    .image-container .full-size-image {
        display: none;
        position: absolute;
        top: 0;
        left: 110%; /* Змістіть повнорозмірне зображення на відстань ширини маленького зображення + відступ */
        z-index: 10;
        border: 1px solid #ccc;
        background-color: #fff; /* Додайте білий фон */
    }

    .image-container:hover .full-size-image {
        display: block;
    }

.table-striped td {
    vertical-align: middle; /* Вирівняйте текст вертикально по центру */
}


.table-container {
    max-height: 600px;
    overflow-y: auto;
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

th, td {
    padding: 8px 12px;
    border: 1px solid #ddd;
}

.image-container {
    position: relative;
}

    .image-container img.full-size-image {
        display: none;
    }

.copy-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.copy-icon {
    font-size: 18px; /* або 20px, залежно від бажаного розміру */
    visibility: hidden;
}

.copy-td:hover .copy-icon {
    visibility: visible;
}

.copy-message {
    display: none;
    position: absolute;
    top: -18px;
    right: 0;
    background: #28a745;
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
    white-space: nowrap;
}

.status-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 3D квадрат */
.status-square {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    /* 3D ефект */
    background: linear-gradient(135deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.15) 25%, rgba(0,0,0,0.20) 100%);
    background-blend-mode: overlay;
    box-shadow: inset 2px 2px 4px rgba(255,255,255,0.5), inset -2px -2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.15);
    display: inline-block;
}

/* Базові кольори */
.status-created {
    background-color: #4A90E2; /* синій */
}

.status-shipped {
    background-color: #F5C242; /* жовтий */
}

.status-completed {
    background-color: #53C26D; /* зелений */
}

.status-canceled {
    background-color: #D9534F; /* червоний */
}

.status-unknown {
    background-color: #9e9e9e; /* сірий */
}
