  /* latin */
  @font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../webfonts/ieVl2ZhZI2eCN5jzbjEETS9weq8-19K7DQ.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  .sidebar {
    scrollbar-width: none !important;
  }
  
.bg-light {
    background-color: #f8f9fa !important;
    box-shadow: 0px -2px 7px 0px black;
}

body{
    font-family: 'Roboto Condensed', sans-serif;
    padding-top: 20px;
}

.thead-light{
    background-color: #bfbfbf;
}

/* —— CRUD index pages (tooling-style table) —— */
.index-page {
    padding-bottom: 1.5rem;
}

.index-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.index-header-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.index-header-title .fas,
.index-header-title .fa {
    margin-right: 0.35rem;
    color: #0f766e;
}

.index-header-meta {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.index-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.index-header-actions .btn {
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem;
}

.index-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.75rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.index-toolbar-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
}

.index-toolbar-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 7.5rem;
    flex: 1 1 8rem;
    max-width: 14rem;
}

.index-toolbar-field label {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.index-toolbar-field .form-control {
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
}

.index-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.index-toolbar-actions .btn {
    font-size: 0.875rem;
    padding: 0.35rem 0.7rem;
}

.index-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: auto;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.index-table {
    margin-bottom: 0;
    font-size: 0.925rem;
}

.index-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    border-top: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #475569;
    padding: 0.55rem 0.75rem;
    white-space: nowrap;
    vertical-align: middle;
}

.index-table tbody td {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    border-color: #f1f5f9;
    color: #1f2937;
}

.index-table tbody tr:hover {
    background: #f8fafc;
}

.index-table .index-col-primary {
    text-align: left;
    font-weight: 600;
}

.index-table .index-col-meta {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #6b7280;
}

.index-table .index-badge {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: #ecfdf5;
    color: #047857;
    vertical-align: middle;
}

.index-table .index-col-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.index-table .index-col-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.index-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.index-actions .btn {
    padding: 0.2rem 0.45rem;
    line-height: 1.2;
    font-size: 0.8rem;
}

.index-actions form {
    display: inline;
    margin: 0;
}

.index-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

.index-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.index-pagination .pagination {
    margin-bottom: 0;
}

.index-pagination .page-link {
    font-size: 0.875rem;
    color: #0f766e;
}

.index-pagination .page-item.active .page-link {
    background-color: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

.index-pagination .ellipsis {
    padding: 0.4rem 0.55rem;
    color: #9ca3af;
}

.index-table tbody tr.index-row-credit {
    background: rgba(255, 182, 193, 0.22);
}

.index-table tbody tr.index-row-credit:hover {
    background: rgba(255, 182, 193, 0.32);
}

.index-table tbody tr.index-row-danger td {
    color: #dc2626;
}

.index-table tbody tr.deleted-yes td {
    color: tomato;
}

.index-header-actions .form-control,
.index-toolbar-field select.form-control {
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
}

.index-mode-img {
    width: 48px;
    height: auto;
    vertical-align: middle;
}

/* —— CRUD create/edit forms (tooling-style) —— */
.form-page {
    max-width: 720px;
    padding-bottom: 2rem;
}

.form-page.form-page-wide {
    max-width: 1100px;
}

.form-page.form-page-fluid {
    max-width: none;
}

.form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.form-header-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.form-header-title .fas,
.form-header-title .fa {
    margin-right: 0.35rem;
    color: #0f766e;
}

.form-header-meta {
    margin: 0.2rem 0 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.form-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.15rem 1.25rem 1.35rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.form-errors {
    margin-bottom: 0.85rem;
}

.form-errors .alert {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-field {
    margin-bottom: 0.9rem;
}

.form-field > label,
.form-field > .form-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.form-field .form-control,
.form-field .select2-container {
    width: 100% !important;
}

.form-field .form-control {
    border-radius: 8px;
    border-color: #e5e7eb;
    font-size: 0.95rem;
}

.form-field .form-control:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 0.15rem rgba(15, 118, 110, 0.15);
}

.form-field .form-check {
    padding-left: 0;
    margin-top: 0.15rem;
}

.form-field .form-text,
.form-field .text-muted {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.15rem;
    padding-top: 0.95rem;
    border-top: 1px solid #f1f5f9;
}

.form-actions .btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.9rem;
}

.form-actions .btn-success {
    background-color: #0f766e;
    border-color: #0f766e;
}

.form-actions .btn-success:hover {
    background-color: #0d9488;
    border-color: #0d9488;
}

.form-page .select2-container--default .select2-selection--multiple .select2-selection__choice,
.form-page .select2-container--default .select2-selection--single .select2-selection__choice {
    color: #1f2937;
}

/* —— Item index (menu-style) —— */
.item-index-menu-page {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.item-index-search-panel {
    margin-bottom: 1rem;
}

.item-index-search-panel .index-toolbar {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.item-index-menu-root.menu-items-root {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 2rem;
}

.item-index-menu-root .menu-category-section {
    margin-bottom: 1.75rem;
}

.item-index-menu-root .menu-category-section:last-child {
    margin-bottom: 0;
}

.item-index-menu-root .menu-category-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    padding: 8px 0 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #115e59;
    border: 0;
    background: transparent;
}

.item-index-menu-root .menu-category-section-title::before,
.item-index-menu-root .menu-category-section-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(15, 118, 110, 0.45),
        rgba(15, 118, 110, 0.12),
        transparent
    );
}

.item-index-menu-root .menu-category-section-title::before {
    max-width: 28px;
    background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.45));
}

.item-index-menu-root .item-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.item-index-menu-root .item-card.item-index-card {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    padding: 10px 12px;
    border: none;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    background: #ffffff;
    cursor: default;
    transition: background 0.12s ease;
}

.item-index-menu-root .item-card:nth-child(odd) {
    background: #f8fafc;
}

.item-index-menu-root .item-card:nth-child(even) {
    background: #ffffff;
    border-right: none;
}

.item-index-menu-root .item-grid > .item-card:nth-last-child(-n + 2) {
    border-bottom: none;
}

.item-index-menu-root .item-grid > .item-card:nth-last-child(1):nth-child(odd) {
    border-right: none;
}

.item-index-menu-root .item-card:hover {
    background: #f1f5f9;
}

.item-index-menu-root .item-card-body {
    flex: 1;
    min-width: 0;
}

.item-index-menu-root .item-card-menu-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    width: 100%;
}

.item-index-menu-root .item-name {
    flex-shrink: 0;
    max-width: 78%;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2d3d;
    word-break: break-word;
}

.item-index-menu-root .item-menu-dots {
    flex: 1;
    min-width: 8px;
    border-bottom: 1px dotted #cbd5e1;
    margin-bottom: 3px;
}

.item-index-menu-root .item-card-menu-line .item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f766e;
    white-space: nowrap;
}

.item-index-menu-root .item-meta {
    margin-top: 3px;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.35;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

.item-index-menu-root .item-meta .item-abv {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f766e;
}

.item-index-menu-root .item-index-badge {
    display: inline-block;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #ecfdf5;
    color: #047857;
}

.item-index-menu-root .item-index-admin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    flex-shrink: 0;
    padding-left: 4px;
}

.item-index-menu-root .item-index-admin .btn-sm {
    padding: 0.2rem 0.45rem;
    line-height: 1.2;
}

.item-index-menu-root .item-index-admin form {
    margin: 0;
}

.item-index-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #64748b;
    font-size: 0.95rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.item-form-modal-body {
    padding-top: 0.5rem;
}

.item-form-modal-body .item-modal-form-wrap .form-field {
    margin-bottom: 0.75rem;
}

.item-form-modal-body .item-modal-form-wrap .form-field label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
}

.item-form-modal-body .form-actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.item-form-modal-dialog .select2-container {
    width: 100% !important;
}

@media (max-width: 640px) {
    .item-index-menu-root .item-grid {
        grid-template-columns: 1fr;
    }

    .item-index-menu-root .item-card:nth-child(even) {
        border-right: 1px solid #e5e7eb;
    }

    .item-index-menu-root .item-grid > .item-card:last-child {
        border-bottom: none;
        border-right: none;
    }
}