/* Chomok CMS dynamic admin extensions */
.sidebar-brand-image {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
}
.sidebar-logout-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}
.profile-image { object-fit: cover; }
.admin-login-logo-image {
    display: block;
    width: 92px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 14px;
}
.admin-link, .auth-back-link { color: var(--admin-text); font-weight: 700; text-decoration: none; }
.auth-back-link { display: block; text-align: center; margin-top: 18px; font-size: .86rem; }
.password-input-wrap { position: relative; }
.password-input-wrap .form-control-admin { padding-right: 46px; }
.password-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border: 0; background: transparent;
    color: var(--admin-text-muted); border-radius: 8px;
}
.password-toggle:hover { background: var(--admin-bg); color: var(--admin-text); }
.form-card-narrow { max-width: 720px; }
.form-actions-admin {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--admin-border);
}
.required { color: #d52d2d; }
.form-help { color: var(--admin-text-muted); font-size: .78rem; margin-top: 4px; }
.switch-row { min-height: 58px; padding: 12px 14px; border: 1px solid var(--admin-border); border-radius: 10px; }
.ajax-filter-form .choices { margin-bottom: 0; min-width: 160px; }
.choices__inner {
    min-height: 42px; border: 1px solid var(--admin-border); border-radius: 8px;
    background: #fff; padding: 7px 12px; font-size: .86rem;
}
.choices.is-focused .choices__inner, .choices.is-open .choices__inner { border-color: var(--admin-yellow-dark); box-shadow: 0 0 0 3px rgba(255,193,7,.15); }
.choices__list--dropdown { z-index: 1056; }
.pagination-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.pagination-btn.disabled { opacity: .45; cursor: not-allowed; }
.ajax-list-loading { position: relative; pointer-events: none; min-height: 180px; }
@keyframes adminSpin { to { transform: rotate(360deg); } }
.delete-form { display: inline-flex; margin: 0; }
.table-action-btn:disabled { opacity: .35; cursor: not-allowed; }
.avatar-fallback { background: var(--admin-yellow); }
.empty-state { text-align: center; padding: 42px 20px; color: var(--admin-text-muted); }
.empty-state i { font-size: 2.2rem; color: var(--admin-yellow-dark); }
.empty-state h3 { margin: 10px 0 4px; color: var(--admin-text); font-size: 1rem; }
.image-upload-zone { min-height: 240px; }
.profile-preview { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.compact-upload { min-height: 150px; }
.compact-upload .upload-preview { max-width: 190px; max-height: 90px; object-fit: contain; margin: 0 auto 10px; }
.compact-upload .icon-preview { width: 72px; height: 72px; }
.permission-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; background: var(--admin-bg); border-radius: 10px; margin: 20px 0 14px;
}
.permission-select-all, .permission-group-header label, .permission-item { cursor: pointer; }
.permission-groups { display: grid; gap: 14px; }
.permission-group-card { border: 1px solid var(--admin-border); border-radius: 12px; overflow: hidden; }
.permission-group-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #fafafa; padding: 13px 16px; border-bottom: 1px solid var(--admin-border); font-size: .86rem;
}
.permission-group-header span { color: var(--admin-text-muted); font-size: .75rem; }
.permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 16px; }
.permission-item { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--admin-border); border-radius: 8px; font-size: .82rem; }
.permission-item:hover { border-color: var(--admin-yellow-dark); background: #fffdf2; }
.permission-builder-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.permission-row-list { display: grid; gap: 10px; }
.permission-builder-row { display: grid; grid-template-columns: 1fr 40px; gap: 10px; align-items: center; }
.group-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #fff7d6; color: #715500; font-size: .75rem; font-weight: 700; }
.settings-layout { display: grid; gap: 18px; }
.settings-section-title { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--admin-border); }
.settings-section-title h2 { margin: 0 0 3px; font-size: 1rem; font-weight: 800; }
.settings-section-title p { margin: 0; color: var(--admin-text-muted); font-size: .82rem; }
.settings-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--admin-yellow); display: grid; place-items: center; font-size: 1.1rem; }
.sticky-form-actions { position: sticky; bottom: 0; background: rgba(255,255,255,.96); padding: 14px 0; z-index: 10; }
.admin-form-alert { font-size: .86rem; }
.flatpickr-input[readonly] { background: #fff; }
@media (max-width: 900px) { .permission-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 576px) {
    .permission-grid { grid-template-columns: 1fr; }
    .permission-toolbar, .permission-builder-header { align-items: flex-start; flex-direction: column; }
    .form-actions-admin { flex-wrap: wrap; }
    .form-actions-admin .btn-admin-primary, .form-actions-admin .btn-admin-outline { flex: 1; justify-content: center; }
}

/* ===== Refined forms and dropdown layering ===== */
.admin-card,
.form-surface-card,
.settings-tab-card,
.choices-overflow-card {
    overflow: visible;
}

.form-group-admin,
.form-control-icon-wrap,
.choices {
    position: relative;
}

.choices {
    width: 100%;
    z-index: 2;
}

.choices.is-open {
    z-index: 1065;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    z-index: 1070 !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 35px rgba(17, 24, 39, .16);
    background: #fff;
}

.choices__list--dropdown .choices__list,
.choices__list[aria-expanded] .choices__list {
    max-height: 240px;
}

.choices__list--dropdown .choices__item--selectable,
.choices__list[aria-expanded] .choices__item--selectable {
    padding: 10px 14px;
    font-size: .85rem;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background: #fff8d6;
    color: var(--admin-text);
}

.choices[data-type*="select-one"]::after {
    border-color: var(--admin-text-muted) transparent transparent;
}

.choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent var(--admin-text-muted);
}

.form-surface-card {
    padding: 28px;
}

.form-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--admin-border);
}

.form-panel-header h2,
.settings-pane-heading h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    font-weight: 800;
}

.form-panel-header p,
.settings-pane-heading p {
    margin: 0;
    color: var(--admin-text-muted);
    font-size: .81rem;
    line-height: 1.5;
}

.form-panel-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    background: var(--admin-yellow);
    color: var(--admin-dark);
    font-size: 1.08rem;
}

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.form-control-icon-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-text-muted);
    font-size: .92rem;
    pointer-events: none;
    z-index: 3;
}

.form-control-icon-wrap .form-control-admin {
    padding-left: 42px;
}

.form-control-admin,
select.form-control-admin,
textarea.form-control-admin,
.choices__inner {
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.form-control-admin:hover,
select.form-control-admin:hover,
textarea.form-control-admin:hover,
.choices:hover .choices__inner {
    border-color: #c5c9cf;
}

.form-control-admin:focus,
select.form-control-admin:focus,
textarea.form-control-admin:focus {
    outline: none;
    border-color: var(--admin-yellow-dark);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, .14);
}

.form-control-admin[readonly] {
    color: var(--admin-text-muted);
    background: #f8f9fa;
    cursor: not-allowed;
}

.centered-panel-header {
    align-items: center;
}

.profile-photo-card {
    text-align: center;
}

.profile-upload-zone,
.image-upload-zone {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    background: linear-gradient(145deg, #fff7c0, var(--admin-yellow));
    color: var(--admin-dark);
    font-size: 3rem;
    font-weight: 800;
    border: 5px solid #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

.profile-avatar-large i {
    margin: 0;
    color: inherit;
    font-size: 3rem;
}

.upload-dropzone-text small {
    display: block;
    margin-top: 5px;
    color: var(--admin-text-muted);
    font-size: .72rem;
    font-weight: 500;
}

.profile-account-summary {
    display: grid;
    justify-items: center;
    gap: 5px;
    margin-top: 18px;
}

.profile-account-summary strong {
    font-size: 1rem;
}

.profile-account-summary > span:not(.badge-status) {
    color: var(--admin-text-muted);
    font-size: .8rem;
}

.profile-form-actions {
    border-top: 0;
}

.sticky-side-card {
    position: sticky;
    top: 92px;
}

/* ===== Settings tabs ===== */
.settings-tab-card {
    padding: 0;
}

.settings-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px 18px;
}

.settings-save-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    background: #f7f8fa;
    color: var(--admin-text-muted);
    font-size: .75rem;
    font-weight: 700;
}

.settings-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 26px 18px;
    border-bottom: 1px solid var(--admin-border);
}

.settings-tabs .nav-link {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--admin-text-muted);
    background: var(--admin-bg);
    font-size: .82rem;
    font-weight: 750;
    transition: all .18s ease;
}

.settings-tabs .nav-link:hover {
    color: var(--admin-text);
    border-color: var(--admin-border);
}

.settings-tabs .nav-link.active {
    color: var(--admin-dark);
    background: var(--admin-yellow);
    border-color: var(--admin-yellow);
    box-shadow: 0 5px 16px rgba(255, 193, 7, .18);
}

.settings-tab-content {
    padding: 26px;
    min-height: 420px;
}

.settings-pane-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 24px;
}

.settings-upload-grid {
    margin-top: 4px;
}

/* ===== User details ===== */
.user-show-profile-card {
    text-align: center;
    padding: 30px 26px;
}

.user-show-avatar {
    width: 126px;
    height: 126px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border: 5px solid #fff;
    box-shadow: 0 6px 25px rgba(0, 0, 0, .10);
    font-size: 2.8rem;
    font-weight: 800;
}

.user-show-profile-card h2 {
    margin: 0 0 5px;
    font-size: 1.22rem;
    font-weight: 800;
}

.user-show-profile-card > p {
    margin: 0;
    color: var(--admin-text-muted);
    font-size: .82rem;
}

.user-show-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 16px 0 20px;
}

.profile-meta-list {
    border-top: 1px solid var(--admin-border);
    padding-top: 12px;
}

.profile-meta-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--admin-border);
    font-size: .8rem;
}

.profile-meta-list > div:last-child {
    border-bottom: 0;
}

.profile-meta-list span {
    color: var(--admin-text-muted);
}

.user-detail-card {
    padding: 26px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-item {
    padding: 17px;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    background: #fcfcfc;
}

.detail-item span,
.detail-item small {
    display: block;
    color: var(--admin-text-muted);
    font-size: .73rem;
}

.detail-item strong {
    display: block;
    margin: 5px 0 3px;
    font-size: .9rem;
}

.permission-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.permission-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 9px;
    background: #fff9dc;
    border: 1px solid #f2df83;
    color: #654f00;
    font-size: .76rem;
    font-weight: 700;
}

.empty-inline-state {
    width: 100%;
    padding: 24px;
    text-align: center;
    color: var(--admin-text-muted);
    background: var(--admin-bg);
    border-radius: 10px;
    font-size: .82rem;
}

@media (max-width: 991px) {
    .sticky-side-card { position: static; }
    .settings-tabs { grid-template-columns: 1fr; }
    .settings-tabs .nav-link { justify-content: flex-start; padding-left: 18px; }
}

@media (max-width: 700px) {
    .form-grid-two,
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .settings-tab-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .settings-save-status { align-self: flex-start; }
    .settings-tab-content,
    .settings-tab-header,
    .settings-tabs,
    .form-surface-card,
    .user-detail-card {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Existing uploaded previews remain visible; inline display:none still hides empty previews. */
.upload-preview[src]:not([src=""]) {
    display: block;
}

/* Header clear-cache action */
.topbar-cache-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: var(--admin-white);
    color: var(--admin-text);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.topbar-cache-btn:hover {
    border-color: var(--admin-yellow);
    background: rgba(255, 193, 7, .10);
    transform: translateY(-1px);
}

.topbar-cache-btn i {
    font-size: 1rem;
}

@media (max-width: 767.98px) {
    .topbar-cache-btn {
        width: 40px;
        padding: 0;
        border-radius: 50%;
        background: var(--admin-bg);
        border-color: transparent;
    }

    .topbar-cache-btn span {
        display: none;
    }
}

/* ===== Dynamic catalog modules ===== */
.table-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.catalog-bulk-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 16px;
}

.catalog-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.menu-filter-form,
.bulk-action-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-filter-form {
    flex-wrap: wrap;
}

.bulk-action-form {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.bulk-action-select {
    width: 170px;
    min-width: 150px;
    margin: 0;
}

.bulk-action-form .btn-admin-outline {
    flex: 0 0 auto;
    min-height: 42px;
}

.catalog-table-search {
    width: 280px;
    max-width: 100%;
}

.catalog-filter-select {
    width: 180px;
}

.catalog-status-select {
    width: 160px;
}

.menu-item-show-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.menu-show-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.menu-show-image {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--admin-border);
    border-radius: 14px;
    aspect-ratio: 1 / 1;
    background: var(--admin-bg);
}

.menu-show-image.is-main {
    border-color: var(--admin-yellow);
}

.menu-show-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-show-image span {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--admin-yellow);
    color: var(--admin-dark);
    font-size: .68rem;
    font-weight: 800;
}

.detail-grid-admin {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-grid-admin > div,
.detail-stack-admin > div {
    padding: 14px;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: #fff;
}

.detail-grid-admin span,
.detail-stack-admin span {
    display: block;
    margin-bottom: 5px;
    color: var(--admin-text-muted);
    font-size: .75rem;
}

.detail-grid-admin strong,
.detail-stack-admin strong {
    color: var(--admin-text);
    font-size: .86rem;
    font-weight: 700;
}

.detail-grid-wide {
    grid-column: 1 / -1;
}

.detail-stack-admin {
    display: grid;
    gap: 10px;
}

.catalog-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-chip-list > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    background: #fffdf2;
    color: var(--admin-text);
    font-size: .77rem;
}

.catalog-chip-list b {
    color: var(--admin-text-muted);
    font-weight: 700;
}

@media (max-width: 980px) {
    .menu-item-show-layout {
        flex-direction: column;
    }
    .menu-item-show-layout > * {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .catalog-list-toolbar,
    .catalog-bulk-row {
        align-items: stretch;
        justify-content: flex-start;
    }
    .menu-filter-form,
    .bulk-action-form {
        width: 100%;
    }
    .menu-filter-form .topbar-search,
    .menu-filter-form .form-control-admin {
        width: 100% !important;
    }
    .bulk-action-select {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
    }
    .bulk-action-form .btn-admin-outline {
        flex: 0 0 auto;
        justify-content: center;
    }
    .menu-show-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .detail-grid-admin {
        grid-template-columns: 1fr;
    }
    .detail-grid-wide {
        grid-column: auto;
    }
}


/* ===== Centered AJAX table loader and persistent empty tables ===== */
#ajax-list-container,
[data-ajax-list-container] {
    position: relative;
    min-height: 150px;
}

.ajax-table-loader {
    position: absolute;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .84);
    backdrop-filter: blur(2px);
}

.ajax-table-loader-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
    padding: 18px 22px;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(17, 24, 39, .12);
    color: var(--admin-text-muted);
    font-size: .8rem;
    font-weight: 700;
}

.ajax-table-loader-spinner {
    width: 38px;
    height: 38px;
    border: 4px solid #eceff2;
    border-top-color: var(--admin-yellow-dark);
    border-radius: 50%;
    animation: adminSpin .7s linear infinite;
}

.ajax-list-loading .admin-table-wrap,
.ajax-list-loading .ajax-pagination {
    filter: blur(.3px);
}

.table-empty-row td {
    padding: 0 !important;
    border-bottom: 0 !important;
}

.table-empty-state {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 0;
    background: #fff;
}

.table-empty-state p {
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .catalog-list-toolbar {
        gap: 10px;
    }

    .bulk-action-form {
        flex-wrap: nowrap;
    }

    .bulk-action-form .btn-admin-outline {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ===== User filters: search, branch and status on one line ===== */
.user-filter-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow: visible;
    padding-bottom: 2px;
}

.user-filter-search {
    flex: 1 1 360px;
    width: auto !important;
    min-width: 280px;
}

.user-filter-control {
    flex: 0 0 auto;
}

.user-filter-branch {
    width: 220px;
    min-width: 220px;
}

.user-filter-status {
    width: 170px;
    min-width: 170px;
}

.user-filter-control > .form-control-admin,
.user-filter-control > .choices,
.user-filter-control .choices {
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 0;
}

/* ===== Unified table loaders ===== */
.admin-table-loader-host,
.admin-table-wrap.ajax-loader-active {
    position: relative;
}

.admin-table-wrap.ajax-loader-active {
    min-height: 220px;
    overflow: hidden;
}

.admin-table-wrap.ajax-loader-active .admin-table {
    min-height: 220px;
}

.ajax-table-loader {
    border-radius: 10px;
    background: rgba(255, 255, 255, .90);
}

.ajax-table-loader-box {
    min-width: 170px;
    gap: 8px;
    padding: 20px 24px;
    border-color: rgba(245, 166, 35, .35);
    box-shadow: 0 16px 38px rgba(17, 24, 39, .14);
}

.ajax-table-loader-title {
    color: var(--admin-text);
    font-size: .84rem;
    font-weight: 800;
}

.ajax-table-loader-box small {
    color: var(--admin-text-muted);
    font-size: .7rem;
    font-weight: 600;
}

.ajax-list-loading .admin-table-wrap,
.ajax-list-loading .ajax-pagination {
    filter: none;
}

/* ===== Settings form loader ===== */
.form-loader-host,
.form-loader-surface {
    position: relative;
}

.form-loader-surface-active {
    min-height: 360px;
    overflow: hidden;
}

.admin-form-loader {
    position: absolute;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 24px;
    border-radius: inherit;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(2px);
}

.admin-form-loader-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 220px;
    padding: 24px 28px;
    border: 1px solid rgba(245, 166, 35, .38);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(17, 24, 39, .15);
    text-align: center;
}

.admin-form-loader-box strong {
    color: var(--admin-text);
    font-size: .9rem;
    font-weight: 800;
}

.admin-form-loader-box small {
    color: var(--admin-text-muted);
    font-size: .72rem;
    font-weight: 600;
}

.is-form-loading {
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .user-filter-toolbar {
        padding-bottom: 6px;
    }

    .user-filter-search {
        flex-basis: 280px;
    }

    .user-filter-branch {
        width: 200px;
        min-width: 200px;
    }

    .user-filter-status {
        width: 155px;
        min-width: 155px;
    }

    .admin-form-loader,
    .form-loader-surface-active {
        min-height: 300px;
    }
}

/* ===== Menu Items: separate category/status filter section ===== */
.menu-item-filter-section {
    margin-bottom: 18px;
    overflow: visible;
}

.menu-item-filter-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.menu-item-filter-heading h2 {
    margin: 0 0 3px;
    color: var(--admin-text);
    font-size: .98rem;
    font-weight: 800;
}

.menu-item-filter-heading p {
    margin: 0;
    color: var(--admin-text-muted);
    font-size: .78rem;
}

.menu-item-filter-icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 10px;
    background: var(--admin-yellow);
    color: var(--admin-text);
    font-size: 1rem;
}

.menu-item-filter-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 1px 1px 4px;
}

.menu-item-filter-field {
    flex: 1 1 0;
    min-width: 220px;
}

.menu-item-filter-field .form-label-admin {
    display: block;
    margin-bottom: 7px;
}

.menu-item-filter-field > .form-control-admin,
.menu-item-filter-field > .choices,
.menu-item-filter-field .choices {
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 0;
}

.menu-item-filter-section .catalog-filter-select,
.menu-item-filter-section .catalog-status-select {
    width: 100%;
}

.menu-item-list-toolbar {
    flex-wrap: nowrap;
}

.menu-item-table-search {
    flex: 1 1 360px;
    width: auto;
    min-width: 260px;
}

@media (max-width: 700px) {
    .menu-item-filter-heading {
        align-items: flex-start;
    }

    .menu-item-filter-row {
        gap: 10px;
    }

    .menu-item-filter-field {
        min-width: 190px;
    }

    .menu-item-list-toolbar {
        flex-wrap: wrap;
    }

    .menu-item-table-search {
        width: 100%;
        min-width: 100%;
    }
}

/* ===== Clients, Orders and POS ===== */
.client-filter-row,
.order-list-toolbar,
.pos-filter-row {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
}
.client-filter-row .form-control-admin { width: 180px; flex: 0 0 180px; }
.client-filter-search { flex: 1 1 320px; width: auto; }
.client-profile-avatar {
    width: 64px; height: 64px; border-radius: 16px; background: var(--admin-yellow);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; flex-shrink: 0;
}
.client-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.order-status-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.order-status-tabs .btn-admin-primary,
.order-status-tabs .btn-admin-outline { padding: 8px 16px; }
.order-list-toolbar { align-items: center; }
.order-list-search { flex: 1 1 360px; width: auto; }
.order-list-toolbar > .form-control-admin { width: 180px; flex: 0 0 180px; }
.order-status-select { width: 135px; padding: 6px 9px; font-size: .78rem; }
.source-badge {
    display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 9px;
    font-size: .73rem; font-weight: 800; white-space: nowrap;
}
.source-admin { background: #eef2ff; color: #3743a5; }
.source-website { background: #e8fff3; color: #0b7546; }
.badge-status.is-confirmed { background: #e9f1ff; color: #2457a6; }
.admin-alert {
    border: 1px solid var(--admin-border); border-radius: 12px; padding: 14px 16px; font-size: .86rem;
}
.admin-alert-warning { background: #fff9df; border-color: #f3d56a; color: #654d00; }
.order-addon-chip {
    display: inline-flex; margin: 2px 3px 2px 0; padding: 4px 7px; border-radius: 7px;
    background: var(--admin-bg); border: 1px solid var(--admin-border); font-size: .72rem;
}
.order-total-summary { width: min(420px, 100%); margin: 20px 0 0 auto; }
.order-grand-row { padding-top: 11px !important; border-top: 1px solid var(--admin-border); font-size: 1rem; }

.pos-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, .75fr); gap: 18px; align-items: start; }
.pos-products-panel, .pos-order-panel { min-width: 0; }
.pos-order-panel { position: sticky; top: 86px; max-height: calc(100vh - 105px); overflow-y: auto; padding-right: 3px; }
.pos-filter-card { padding-bottom: 18px; }
.pos-filter-row { margin: 0; display: grid; grid-template-columns: minmax(150px,.7fr) minmax(170px,.8fr) minmax(240px,1.5fr); }
.pos-search-field .topbar-search { max-width: none; }
.pos-static-field {
    min-height: 42px; display: flex; align-items: center; padding: 9px 12px; border: 1px solid var(--admin-border);
    border-radius: 8px; background: #f8f9fb; font-weight: 700; font-size: .85rem;
}
.pos-products-card { min-height: 500px; }
.pos-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; min-height: 380px; }
.pos-product-card {
    border: 1px solid var(--admin-border); border-radius: 13px; overflow: hidden; background: #fff; padding: 0;
    text-align: left; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.pos-product-card:hover { transform: translateY(-2px); border-color: var(--admin-yellow-dark); box-shadow: 0 9px 24px rgba(17,24,39,.09); }
.pos-product-card img, .pos-product-placeholder { width: 100%; height: 125px; object-fit: cover; }
.pos-product-placeholder { display: grid; place-items: center; background: #fff8d6; font-size: 2rem; color: #8b6900; }
.pos-product-body { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.pos-product-body strong { font-size: .89rem; color: var(--admin-text); }
.pos-product-body span { color: var(--admin-text-muted); font-size: .72rem; }
.pos-product-body b { margin-top: 3px; color: #5e4900; font-size: .82rem; }
.pos-panel-loader { grid-column: 1/-1; min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--admin-text-muted); }
.pos-customer-grid { gap: 0 12px; }
.pos-cart-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--admin-yellow); display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; }
.pos-cart-items { display: grid; gap: 10px; }
.pos-cart-empty { min-height: 110px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; color: var(--admin-text-muted); }
.pos-cart-empty i { font-size: 1.8rem; }
.pos-cart-item { border: 1px solid var(--admin-border); border-radius: 11px; padding: 11px; }
.pos-cart-item-top, .pos-cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pos-cart-item-top strong { display: block; font-size: .84rem; }
.pos-cart-item-top span { display: block; color: var(--admin-text-muted); font-size: .7rem; margin-top: 2px; line-height: 1.35; }
.pos-cart-item-bottom { margin-top: 9px; }
.pos-qty { display: inline-flex; align-items: center; border: 1px solid var(--admin-border); border-radius: 8px; overflow: hidden; }
.pos-qty button { width: 30px; height: 28px; border: 0; background: #fafafa; font-weight: 800; }
.pos-qty span { min-width: 28px; text-align: center; font-size: .8rem; font-weight: 700; }
.split-payment-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 10px; }
.split-payment-grid .form-group-admin:nth-child(n+4) { grid-column: span 1; }
.pos-total-card { border: 2px solid #f1d665; }
.pos-total-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .84rem; }
.pos-grand-total { margin-top: 7px; padding-top: 13px; border-top: 1px solid var(--admin-border); font-size: 1.06rem; }
.pos-addon-list { display: grid; gap: 8px; max-height: 200px; overflow-y: auto; }
.pos-addon-list .form-check-admin { justify-content: space-between; }
.pos-addon-list .form-check-admin span { margin-left: auto; color: var(--admin-text-muted); }
.pos-button-spinner { width: 16px; height: 16px; border-width: 2px; }

.topbar-icon-btn { position: relative; }
.topbar-order-count {
    position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: #dc3545; color: #fff; border: 2px solid #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: .63rem; font-weight: 800;
}
.website-order-modal-content { overflow: hidden; }
.website-order-live-label { display: inline-flex; align-items: center; gap: 7px; text-transform: uppercase; font-size: .68rem; font-weight: 800; color: #0b7546; margin-bottom: 3px; }
.website-order-live-label span { width: 8px; height: 8px; border-radius: 50%; background: #15a665; box-shadow: 0 0 0 5px rgba(21,166,101,.12); animation: livePulse 1.4s infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 9px rgba(21,166,101,0); } }
.website-order-popup-icon { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px; background: var(--admin-yellow); display: grid; place-items: center; font-size: 1.75rem; }
.website-order-actions { justify-content: space-between; }

@media (max-width: 1200px) {
    .pos-layout { grid-template-columns: 1fr; }
    .pos-order-panel { position: static; max-height: none; overflow: visible; }
    .pos-product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .pos-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .client-filter-row, .order-list-toolbar { flex-wrap: wrap; }
    .client-filter-row .form-control-admin, .order-list-toolbar > .form-control-admin { flex: 1 1 160px; width: auto; }
}
@media (max-width: 650px) {
    .pos-filter-row { grid-template-columns: 1fr 1fr; }
    .pos-search-field { grid-column: 1/-1; }
    .pos-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .split-payment-grid { grid-template-columns: 1fr; }
    .client-stats-row { grid-template-columns: 1fr; }
}
.price-row .form-control-admin { flex: 1 1 0; min-width: 0; }
.inline-action-form { display: inline-flex; margin: 0; }

/* ===== Website content modules ===== */
.cms-item-thumb { overflow: hidden; }
.cms-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-query-status-filter { width: 170px; flex: 0 0 170px; }
.table-row-unread { background: rgba(255, 214, 54, .08); }
.table-row-unread .table-item-name { position: relative; }
.table-row-unread .table-item-name::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--admin-yellow-dark); margin-right: 7px; vertical-align: 1px; }
@media (max-width: 760px) {
    .contact-query-status-filter { width: 150px; flex-basis: 150px; }
    .catalog-list-toolbar > .menu-filter-form { min-width: 100%; overflow-x: auto; padding-bottom: 3px; }
}

/* ===== Real POS layout ===== */
.pos-page-body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    background: #f4f5f7;
    color: var(--admin-text, #1f2937);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.pos-app-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    width: 100%;
    flex: 0 0 auto;
    min-height: 68px;
    padding: 10px 22px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .16);
}
.pos-app-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pos-app-brand-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: var(--admin-yellow, #facc15);
    color: #111827;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 1.25rem;
}
.pos-app-brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.pos-app-brand strong { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.pos-app-brand small { display: block; color: #9ca3af; font-size: .7rem; margin-top: 1px; }
.pos-app-nav { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.pos-nav-link {
    min-height: 39px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    padding: 0 12px;
    background: rgba(255,255,255,.05);
    color: #f9fafb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: .78rem;
    font-weight: 700;
    transition: .2s ease;
}
.pos-nav-link:hover { color: #111827; background: var(--admin-yellow, #facc15); border-color: var(--admin-yellow, #facc15); }
.pos-nav-logout { cursor: pointer; font: inherit; }
.pos-page-main { width: 100%; min-width: 0; flex: 1 1 auto; padding: 16px 18px 22px; }
.pos-real-app { width: min(1920px, 100%); margin: 0 auto; }
.pos-screen-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.pos-screen-kicker { display: block; color: #8a6b00; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pos-screen-heading h1 { margin: 2px 0 0; font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 800; color: #111827; }
.pos-heading-actions { display: flex; align-items: center; gap: 9px; }
.pos-real-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 440px); gap: 15px; align-items: start; }
.pos-catalog-area { min-width: 0; display: grid; gap: 13px; }
.pos-toolbar-card, .pos-products-shell, .pos-checkout-area {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .055);
}
.pos-toolbar-card { padding: 14px; overflow: visible; }
.pos-toolbar-grid { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(170px, .75fr) minmax(260px, 1.6fr); gap: 12px; align-items: end; }
.pos-search-box { height: 42px; border: 1px solid var(--admin-border, #d9dde5); border-radius: 9px; display: flex; align-items: center; gap: 9px; padding: 0 13px; background: #fff; }
.pos-search-box:focus-within { border-color: #d8ae00; box-shadow: 0 0 0 3px rgba(250, 204, 21, .16); }
.pos-search-box i { color: #9ca3af; }
.pos-search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: .83rem; }
.pos-products-shell { padding: 15px; min-height: calc(100vh - 182px); }
.pos-section-heading, .pos-block-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pos-section-heading { padding-bottom: 12px; border-bottom: 1px solid #eef0f3; margin-bottom: 14px; }
.pos-section-heading h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.pos-section-heading p { margin: 3px 0 0; color: #8b93a1; font-size: .7rem; }
.pos-count-pill { border-radius: 999px; background: #fff7cc; color: #725600; padding: 5px 10px; font-size: .7rem; font-weight: 800; }
.pos-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-height: 380px; align-content: start; }
.pos-product-card {
    min-width: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #fff;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pos-product-card:hover { transform: translateY(-3px); border-color: #e5bd13; box-shadow: 0 11px 24px rgba(15, 23, 42, .11); }
.pos-product-card img, .pos-product-placeholder { display: block; width: 100%; height: 118px; object-fit: cover; }
.pos-product-placeholder { background: linear-gradient(135deg, #fff9dc, #fff1a8); color: #8a6b00; display: grid; place-items: center; font-size: 1.65rem; }
.pos-product-body { padding: 10px 11px 12px; display: grid; gap: 4px; }
.pos-product-category { color: #9a7200 !important; font-size: .62rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.pos-product-body strong { color: #111827; font-size: .83rem; line-height: 1.3; min-height: 2.1em; }
.pos-product-body b { color: #166534; font-size: .75rem; }
.pos-panel-loader { grid-column: 1/-1; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #7b8493; }
.pos-checkout-area { position: sticky; top: 83px; max-height: calc(100vh - 99px); display: flex; flex-direction: column; overflow: hidden; }
.pos-checkout-scroll { min-height: 0; overflow-y: auto; padding: 13px 13px 3px; scrollbar-width: thin; }
.pos-checkout-block { padding: 12px; border: 1px solid #e7e9ee; border-radius: 12px; background: #fff; margin-bottom: 11px; }
.pos-block-title { margin-bottom: 11px; }
.pos-block-title > span { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 800; color: #111827; }
.pos-block-title > span i { color: #9b7600; }
.pos-block-title b { min-width: 24px; height: 24px; border-radius: 999px; background: #facc15; color: #111827; display: inline-grid; place-items: center; font-size: .67rem; }
.pos-client-picker-row { display: grid; grid-template-columns: minmax(0,1fr) 42px; gap: 8px; }
.pos-add-client-btn { width: 42px; height: 42px; border: 0; border-radius: 9px; background: #111827; color: #fff; display: grid; place-items: center; font-size: 1rem; }
.pos-add-client-btn:hover { background: #2b3545; }
.pos-selected-client { margin-top: 9px; padding: 9px; border-radius: 10px; background: #f8fafc; border: 1px dashed #d6dae2; display: flex; align-items: center; gap: 9px; }
.pos-client-avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff0a6; color: #765900; display: grid; place-items: center; flex: 0 0 32px; }
.pos-selected-client strong, .pos-selected-client small { display: block; }
.pos-selected-client strong { font-size: .75rem; }
.pos-selected-client small { margin-top: 2px; color: #7b8493; font-size: .65rem; }
.pos-cart-actions { display: flex; align-items: center; gap: 8px; }
.pos-cart-actions label { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: .65rem; color: #697181; }
.pos-cart-delete-selected { border: 0; background: #fff0f0; color: #b42318; border-radius: 7px; padding: 5px 7px; font-size: .63rem; font-weight: 800; }
.pos-cart-items { display: grid; gap: 8px; }
.pos-cart-empty { min-height: 105px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9aa1ad; gap: 6px; font-size: .74rem; }
.pos-cart-empty i { font-size: 1.6rem; }
.pos-cart-item { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 7px; padding: 9px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.pos-cart-select { padding-top: 2px; }
.pos-cart-item-content { min-width: 0; }
.pos-cart-item-top, .pos-cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pos-cart-item-top strong { display: block; font-size: .75rem; line-height: 1.25; }
.pos-cart-item-top span { display: block; color: #8b93a1; font-size: .62rem; line-height: 1.35; margin-top: 2px; }
.pos-single-delete { width: 27px; height: 27px; flex: 0 0 27px; border: 0; border-radius: 7px; background: #fff1f0; color: #b42318; display: grid; place-items: center; }
.pos-cart-item-bottom { margin-top: 8px; }
.pos-qty { display: inline-flex; align-items: center; border: 1px solid #dfe3e8; border-radius: 8px; overflow: hidden; }
.pos-qty button { width: 28px; height: 27px; border: 0; background: #f7f8fa; color: #111827; font-weight: 900; }
.pos-qty button:hover { background: #fff0a6; }
.pos-qty span { min-width: 29px; text-align: center; font-size: .72rem; font-weight: 800; }
.pos-cart-line-price { text-align: right; }
.pos-cart-line-price small, .pos-cart-line-price strong { display: block; }
.pos-cart-line-price small { color: #8b93a1; font-size: .58rem; }
.pos-cart-line-price strong { margin-top: 2px; font-size: .74rem; }
.pos-compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pos-discount-radios { display: flex; align-items: center; gap: 16px; min-height: 38px; }
.pos-discount-radios label { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; cursor: pointer; }
.pos-input-affix { position: relative; }
.pos-input-affix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 2; color: #8a6b00; font-size: .7rem; font-weight: 800; }
.pos-input-affix input { padding-left: 38px; }
.pos-payment-amounts { padding-top: 3px; }
.pos-payment-amounts input[readonly] { background: #f3f4f6; color: #6b7280; }
.pos-payment-summary { flex: 0 0 auto; padding: 13px 15px 15px; border-top: 1px solid #e5e7eb; background: #fffdf2; box-shadow: 0 -8px 22px rgba(15, 23, 42, .055); }
.pos-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; color: #5c6471; font-size: .72rem; }
.pos-summary-row strong { color: #1f2937; }
.pos-summary-total { margin-top: 5px; padding-top: 9px; border-top: 1px dashed #d3b531; font-size: 1rem; font-weight: 900; }
.pos-summary-total strong { color: #111827; }
.pos-summary-paid strong { color: #15803d; }
.pos-summary-due strong { color: #b42318; }
.pos-complete-order-btn { width: 100%; min-height: 47px; margin-top: 11px; border: 0; border-radius: 10px; background: #111827; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .82rem; font-weight: 900; }
.pos-complete-order-btn:hover { background: #273244; }
.pos-complete-order-btn:disabled { opacity: .7; cursor: wait; }
.pos-addon-list { display: grid; gap: 8px; max-height: 210px; overflow-y: auto; }
.pos-addon-list .form-check-admin { justify-content: space-between; }
.pos-addon-list .form-check-admin span { margin-left: auto; color: #7b8493; }
.pos-button-spinner { width: 16px; height: 16px; border-width: 2px; }

@media (max-width: 1350px) {
    .pos-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pos-real-layout { grid-template-columns: minmax(0, 1fr) minmax(365px, 410px); }
}
@media (max-width: 1050px) {
    .pos-real-layout { grid-template-columns: 1fr; }
    .pos-checkout-area { position: static; max-height: none; }
    .pos-checkout-scroll { overflow: visible; }
    .pos-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pos-products-shell { min-height: 480px; }
}
@media (max-width: 780px) {
    .pos-app-header { padding: 9px 12px; align-items: center; flex-wrap: wrap; gap: 9px; }
    .pos-app-brand { flex: 1 1 auto; }
    .pos-app-nav { flex: 0 1 auto; max-width: 100%; overflow-x: auto; justify-content: flex-end; padding-bottom: 2px; }
    .pos-nav-link { white-space: nowrap; padding: 0 9px; }
    .pos-page-main { padding: 12px; }
    .pos-toolbar-grid { grid-template-columns: 1fr 1fr; }
    .pos-search-field { grid-column: 1 / -1; }
    .pos-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pos-screen-heading { align-items: flex-end; }
}

@media (max-width: 620px) {
    .pos-app-header { gap: 8px; }
    .pos-app-brand { width: 100%; flex: 1 0 100%; }
    .pos-app-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
        overflow: visible;
        padding: 0;
    }
    .pos-app-nav form { min-width: 0; }
    .pos-nav-link { width: 100%; min-width: 0; padding: 0 6px; font-size: .7rem; }
}
@media (max-width: 430px) {
    .pos-nav-link span { display: none; }
    .pos-nav-link { font-size: .9rem; }
}
@media (max-width: 560px) {
    .pos-app-brand strong { max-width: 150px; }
    .pos-app-brand small { display: none; }
    .pos-screen-heading { align-items: flex-start; }
    .pos-heading-actions .source-badge { display: none; }
    .pos-toolbar-grid { grid-template-columns: 1fr; }
    .pos-search-field { grid-column: auto; }
    .pos-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pos-product-card img, .pos-product-placeholder { height: 104px; }
    .pos-compact-grid { grid-template-columns: 1fr; gap: 0; }
    .pos-client-picker-row { grid-template-columns: minmax(0,1fr) 40px; }
}
