@import '_content/Blazor.Bootstrap/Blazor.Bootstrap.olwso25aue.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
header[b-i99ovj99m6] {
    width: 100%;
    height: 48px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

body[b-i99ovj99m6] {
    overflow-x: hidden;
}

.nav-container[b-i99ovj99m6] {
    max-width: 1200px;
    margin: 0 auto;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.company[b-i99ovj99m6] {
    font-weight: bold;
    font-size: 18px;
    margin-right: auto;
}

.hamburger[b-i99ovj99m6] {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-right: 16px;
}

.hamburger span[b-i99ovj99m6] {
    width: 20px;
    height: 2px;
    background-color: #007bff;
    margin: 2px 0;
    transition: 0.3s;
}

.nav-buttons[b-i99ovj99m6] {
    display: flex;
    justify-content: center;
    flex: 1;
    gap: 20px;
}

.nav-buttons a[b-i99ovj99m6], .management[b-i99ovj99m6] {
    text-decoration: none;
    color: #007bff;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-buttons a:hover[b-i99ovj99m6], .management:hover[b-i99ovj99m6] {
    background-color: #e9ecef;
}

.user-info[b-i99ovj99m6] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name[b-i99ovj99m6] {
    font-size: 14px;
    color: #6c757d;
}

.btn-logout[b-i99ovj99m6] {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-logout:hover[b-i99ovj99m6] {
    background-color: #dc3545;
    color: white;
}

.management[b-i99ovj99m6] {
    margin-left: 16px;
}

.mobile-menu[b-i99ovj99m6] {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    flex-direction: column;
    padding: 8px 16px;
    z-index: 1000;
}

.mobile-menu a[b-i99ovj99m6] {
    padding: 8px 0;
    text-decoration: none;
    color: #007bff;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mobile-menu a:hover[b-i99ovj99m6] {
    background-color: #e9ecef;
}

@media (max-width: 767px) {
    .hamburger[b-i99ovj99m6] {
        display: flex;
    }

    .nav-buttons[b-i99ovj99m6] {
        display: none;
    }

    .management[b-i99ovj99m6] {
        display: none;
    }

    .mobile-menu[b-i99ovj99m6] {
        display: flex;
    }

    .company[b-i99ovj99m6] {
        font-size: 16px;
    }
}

main[b-i99ovj99m6] {
    display: flex;
    margin: 0;
    padding: 0;
    width: 100vw;
    min-width: 100vw;
    height: unset !important;
    flex: 1;
    flex-direction: column;
}

#blazor-error-ui[b-i99ovj99m6] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-i99ovj99m6] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Pages/Admin.razor.rz.scp.css */
.main_body[b-epdnjt1347]{
    height: 100%;
    max-width: 1200px;
    margin: 10px auto 0 auto;
    padding: 0 16px;
}

@media (max-width: 767px) {
    .main_body[b-epdnjt1347] {
        margin: 5px 10px 0 10px;
        padding: 0 8px;
    }
    
    .table-responsive[b-epdnjt1347] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table th[b-epdnjt1347], .table td[b-epdnjt1347] {
        padding: 8px 4px;
        font-size: 14px;
    }
    
    .table th:nth-child(1)[b-epdnjt1347], .table td:nth-child(1)[b-epdnjt1347] { /* ID */
        display: none;
    }
    
    .table th:nth-child(4)[b-epdnjt1347], .table td:nth-child(4)[b-epdnjt1347] { /* Дата создания */
        display: none;
    }
    
    .btn-sm[b-epdnjt1347] {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .card[b-epdnjt1347] {
        margin-bottom: 16px;
    }
    
    .card-body[b-epdnjt1347] {
        padding: 12px;
    }
    
    .mb-3[b-epdnjt1347] {
        margin-bottom: 12px !important;
    }
    
    h1[b-epdnjt1347] {
        font-size: 24px;
    }
    
    h5[b-epdnjt1347] {
        font-size: 18px;
    }
}
/* /Components/Pages/Crafts.razor.rz.scp.css */
.main_body[b-zgi7znmmg8] {
    height: 100%;
    max-width: 1200px;
    margin: 10px auto 0 auto;
}

@media (max-width: 767px) {
    .main_body[b-zgi7znmmg8] {
        margin: 5px 10px 0 10px;
    }
}
/* /Components/Pages/History.razor.rz.scp.css */
.main_body[b-1734v2vexd]{
    height: 100%;
    max-width: 1200px;
    margin: 10px auto 0 auto;
    padding: 0 16px;
}

@media (max-width: 767px) {
    .main_body[b-1734v2vexd] {
        margin: 5px 10px 0 10px;
        padding: 0 8px;
    }
}
/* /Components/Pages/Storage.razor.rz.scp.css */
.main_body[b-mxe7p6pk22] {
    height: 100%;
    max-width: 1200px;
    margin: 10px auto 0 auto;
    padding: 0 16px;
}

.buttons-div[b-mxe7p6pk22] {
    position: relative;
    z-index: 10;
}

/* Адаптивная ширина ячеек таблицы */
.table[b-mxe7p6pk22] {
    table-layout: auto;
    width: 100%;
}

/* Компактные ячейки для числовых значений */
.table td:nth-child(3)[b-mxe7p6pk22] { /* Кол-во */
    width: 1%;
    white-space: nowrap;
    text-align: right;
    padding-right: 1rem !important;
}

.table td:nth-child(4)[b-mxe7p6pk22] { /* Тип */
    width: 1%;
    white-space: nowrap;
}

/* Ячейка с примечанием */
.notes-cell[b-mxe7p6pk22] {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

.notes-cell:hover[b-mxe7p6pk22] {
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    background-color: #fff;
    position: relative;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 0.5rem !important;
}

/* Стили для изображений */
.table td:first-child[b-mxe7p6pk22] { /* Столбец с изображением */
    width: 140px;
    text-align: center;
    padding: 8px !important;
}

.table td:first-child .img-thumbnail[b-mxe7p6pk22] {
    width: 128px;
    height: 128px;
    object-fit: cover;
    transition: transform 0.2s;
    border-radius: 6px;
}

.table td:first-child .img-thumbnail:hover[b-mxe7p6pk22] {
    transform: scale(1.05);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table td:first-child .text-muted[b-mxe7p6pk22] {
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}

/* Адаптивность для маленьких экранов */
@media (max-width: 767px) {
    .main_body[b-mxe7p6pk22] {
        margin: 5px 10px 0 10px;
        padding: 0 8px;
    }
    
    .buttons-div[b-mxe7p6pk22] {
        z-index: 10;
    }
    
    .table[b-mxe7p6pk22] {
        font-size: 0.9rem;
    }
    
    .notes-cell[b-mxe7p6pk22] {
        max-width: 150px;
    }
    
    /* Уменьшаем изображения на мобильных устройствах */
    .table td:first-child[b-mxe7p6pk22] {
        width: 100px;
        padding: 4px !important;
    }
    
    .table td:first-child .img-thumbnail[b-mxe7p6pk22],
    .table td:first-child .text-muted[b-mxe7p6pk22] {
        width: 80px;
        height: 80px;
    }
    
    .table td:first-child .text-muted i[b-mxe7p6pk22] {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .table[b-mxe7p6pk22] {
        font-size: 0.85rem;
    }
    
    .notes-cell[b-mxe7p6pk22] {
        max-width: 100px;
    }
    
    /* Еще меньше изображения на очень маленьких экранах */
    .table td:first-child[b-mxe7p6pk22] {
        width: 70px;
        padding: 2px !important;
    }
    
    .table td:first-child .img-thumbnail[b-mxe7p6pk22],
    .table td:first-child .text-muted[b-mxe7p6pk22] {
        width: 60px;
        height: 60px;
    }
    
    .table td:first-child .text-muted i[b-mxe7p6pk22] {
        font-size: 24px;
    }
}
/* /Components/Pages/StoragePrint.razor.rz.scp.css */
.print-container[b-pbz424x842] {
    font-family: Arial, sans-serif;
    width: 100%;
    max-width: 210mm; /* A4 width */
    margin: 0 auto;
    padding: 10mm;
    box-sizing: border-box;
}

.print-header[b-pbz424x842] {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    page-break-after: avoid;
}

.print-title[b-pbz424x842] {
    text-align: center;
    font-size: 18px;
    margin: 0 0 5px 0;
    font-weight: bold;
    page-break-after: avoid;
}

.print-date[b-pbz424x842],
.print-summary[b-pbz424x842] {
    text-align: center;
    font-size: 12px;
    margin: 5px 0;
    color: #666;
}

.print-footer[b-pbz424x842] {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 10px;
    color: #666;
    page-break-before: avoid;
}

.page-number[b-pbz424x842] {
    display: inline-block;
}

.print-table[b-pbz424x842] {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px; /* Немного уменьшаем шрифт для лучшего размещения */
    table-layout: fixed; /* Фиксированная ширина столбцов для лучшего контроля */
}

.print-table th[b-pbz424x842],
.print-table td[b-pbz424x842] {
    border: 1px solid #000;
    padding: 6px 8px; /* Немного уменьшаем вертикальные отступы */
    text-align: left;
    word-wrap: break-word; /* Перенос длинных слов */
    overflow-wrap: break-word;
}

.print-table th[b-pbz424x842] {
    background-color: #f0f0f0;
    font-weight: bold;
    position: sticky; /* Делаем заголовки липкими при прокрутке на экране */
    top: 0;
    z-index: 10;
}

/* Оптимизация ширины столбцов для печати */
.print-table th:nth-child(1)[b-pbz424x842],
.print-table td:nth-child(1)[b-pbz424x842] {
    width: 25%; /* Имя */
}

.print-table th:nth-child(2)[b-pbz424x842],
.print-table td:nth-child(2)[b-pbz424x842] {
    width: 15%; /* Артикул */
}

.print-table th:nth-child(3)[b-pbz424x842],
.print-table td:nth-child(3)[b-pbz424x842] {
    width: 10%; /* Кол-во */
}

.print-table th:nth-child(4)[b-pbz424x842],
.print-table td:nth-child(4)[b-pbz424x842] {
    width: 15%; /* Тип */
}

.print-table th:nth-child(5)[b-pbz424x842],
.print-table td:nth-child(5)[b-pbz424x842] {
    width: 15%; /* Цена */
}

@media print {
    body[b-pbz424x842] {
        margin: 0;
        padding: 0;
    }

    .print-container[b-pbz424x842] {
        width: 210mm;
        height: auto; /* Разрешаем контейнеру растягиваться по содержимому */
        min-height: 100%;
        padding: 10mm;
        margin: 0;
        page-break-before: auto;
        page-break-after: auto;
        page-break-inside: auto;
    }

    .print-table[b-pbz424x842] {
        width: 100%;
        page-break-inside: auto;
    }

    .print-table thead[b-pbz424x842] {
        display: table-header-group; /* Заголовки будут повторяться на каждой странице */
        page-break-inside: avoid;
    }

    .print-table tbody[b-pbz424x842] {
        page-break-inside: auto;
    }

    .print-table tr[b-pbz424x842] {
        page-break-inside: auto;
        page-break-after: auto;
    }

    .print-table td[b-pbz424x842],
    .print-table th[b-pbz424x842] {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}
