@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #102033;
    --muted: #718096;
    --border: #e4eaf2;

    --navy: #0f2747;
    --navy-2: #14365f;
    --blue: #2563eb;
    --green: #0f9f6e;
    --gold: #c8912d;
    --purple: #7c3aed;
    --orange: #ea580c;
    --red: #dc2626;

    --shadow: 0 14px 35px rgba(15, 39, 71, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Cairo', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.app-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--navy), #07172b);
    color: #fff;
    padding: 22px 16px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

.brand-box {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 8px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 18px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 24px;
}

.brand-title {
    font-weight: 800;
    font-size: 20px;
}

.brand-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    margin-top: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-section {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    font-weight: 700;
    padding: 18px 12px 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255,255,255,0.78);
    padding: 11px 13px;
    border-radius: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.nav-link i {
    font-size: 18px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.disabled-link {
    opacity: 0.55;
    cursor: not-allowed;
}

.app-main {
    width: 100%;
    margin-right: 280px;
    min-height: 100vh;
}

.app-topbar {
    min-height: 88px;
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid var(--border);
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.page-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 8px 10px;
    border-radius: 16px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.user-name {
    font-size: 14px;
    font-weight: 800;
}

.user-role {
    font-size: 12px;
    color: var(--muted);
}

.app-content {
    padding: 28px;
}

.flash-message {
    margin: 18px 28px 0;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.flash-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.flash-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

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

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 22px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 23px;
}

.bg-blue { background: var(--blue); }
.bg-green { background: var(--green); }
.bg-gold { background: var(--gold); }
.bg-purple { background: var(--purple); }
.bg-orange { background: var(--orange); }
.bg-red { background: var(--red); }

.stat-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    margin-top: 2px;
}

.panel-card {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 24px;
    padding: 24px;
    height: 100%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.panel-header.compact {
    margin-bottom: 10px;
}

.panel-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.panel-header p {
    margin: 5px 0 0;
    color: var(--muted);
}

.badge-soft {
    background: #eef4ff;
    color: var(--blue);
    border: 1px solid #dbeafe;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.check-list {
    display: grid;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    font-weight: 700;
}

.check-item i {
    color: var(--green);
    font-size: 18px;
}

.muted-text {
    color: var(--muted);
}

.next-list {
    padding-right: 18px;
    margin-bottom: 0;
    line-height: 2;
    font-weight: 700;
}

.login-body {
    min-height: 100vh;
    background:
            radial-gradient(circle at top right, rgba(37,99,235,0.18), transparent 35%),
            radial-gradient(circle at bottom left, rgba(15,159,110,0.14), transparent 32%),
            linear-gradient(135deg, #f8fafc, #edf3fb);
}

.login-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    box-shadow: 0 24px 70px rgba(15,39,71,0.14);
    border-radius: 30px;
    padding: 34px;
    backdrop-filter: blur(16px);
}

.login-brand {
    text-align: center;
    margin-bottom: 26px;
}

.login-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 14px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    font-size: 32px;
    box-shadow: 0 18px 35px rgba(15,39,71,0.25);
}

.login-brand h1 {
    font-size: 28px;
    font-weight: 900;
    margin: 0;
}

.login-brand p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.form-label {
    font-weight: 800;
    font-size: 14px;
}

.form-control,
.input-group-text {
    border-color: var(--border);
    min-height: 46px;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

.login-btn {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 800;
}

.login-hint {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.login-hint strong {
    color: var(--text);
}

@media (max-width: 992px) {
    .app-sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .app-shell {
        display: block;
    }

    .app-main {
        margin-right: 0;
    }

    .app-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .app-content {
        padding: 18px;
    }

    .topbar-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .login-card {
        padding: 24px;
        border-radius: 24px;
    }
}
.page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
}

.section-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.search-form .input-group {
    max-width: 650px;
}

.app-table {
    margin-bottom: 0;
}

.app-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
    border-bottom: 1px solid var(--border);
    padding: 14px 12px;
}

.app-table tbody td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.app-table tbody tr:last-child td {
    border-bottom: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.status-badge.active {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.status-badge.inactive {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.form-card {
    max-width: 720px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
}

.btn {
    border-radius: 12px;
    font-weight: 800;
}

.btn-sm {
    border-radius: 10px;
    font-weight: 800;
}
.soft-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 900;
}

.form-select {
    border-color: var(--border);
    min-height: 46px;
}

.form-select:focus {
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
    border-color: #93c5fd;
}
.wide-form-card {
    max-width: 1100px;
}

.soft-tag-gray {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 900;
}

.stock-badge.danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.switch-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
}

.switch-row input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--blue);
}

.switch-row span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-weight: 800;
}

.switch-row small {
    color: var(--muted);
    font-weight: 600;
}

.compact-switch {
    min-height: 46px;
    padding: 10px 12px;
    align-items: center;
}

.compact-switch input {
    margin-top: 0;
}

.compact-switch span {
    display: inline;
}
.purchase-lines-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-top: 8px;
}

.purchase-lines-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 900;
}

.purchase-lines-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.purchase-table select,
.purchase-table input {
    min-height: 42px;
}

.purchase-totals {
    margin-top: 22px;
    margin-right: auto;
    max-width: 430px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 800;
}

.total-row:last-child {
    border-bottom: 0;
}

.total-row.grand {
    color: var(--text);
    font-size: 18px;
}

.total-row.grand strong {
    color: var(--green);
}
.item-search-box {
    position: relative;
}

.item-search-results {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 35px rgba(15, 39, 71, 0.14);
    z-index: 50;
    display: none;
    max-height: 260px;
    overflow-y: auto;
}

.item-result {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #edf2f7;
}

.item-result:last-child {
    border-bottom: 0;
}

.item-result:hover {
    background: #f8fafc;
}

.item-result strong {
    display: block;
    font-size: 13px;
    color: var(--text);
}

.item-result small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.item-result.empty {
    color: var(--muted);
    cursor: default;
}
.purchase-table-wrap {
    overflow: visible;
    position: relative;
    z-index: 1;
}

.purchase-table {
    overflow: visible;
}

.purchase-table td {
    position: relative;
}

.shortcut-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 22px;
    margin-right: 6px;
    padding: 0 7px;
    border-radius: 7px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid #dbeafe;
}

.item-search-box {
    position: relative;
}

.item-search-results {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 39, 71, 0.18);
    z-index: 9999;
    display: none;
    max-height: 320px;
    overflow-y: auto;
}

.item-result {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #edf2f7;
    background: #ffffff;
}

.item-result:last-child {
    border-bottom: 0;
}

.item-result:hover {
    background: #f8fafc;
}

.item-result strong {
    display: block;
    font-size: 13px;
    color: var(--text);
}

.item-result small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.item-result.empty {
    color: var(--muted);
    cursor: default;
}

.multi-items-modal {
    border-radius: 22px;
    border: 0;
    overflow: hidden;
}

.multi-search-results {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    min-height: 260px;
    max-height: 430px;
    overflow-y: auto;
}

.multi-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
    cursor: pointer;
}

.multi-result:last-child {
    border-bottom: 0;
}

.multi-result:hover {
    background: #f8fafc;
}

.multi-result.selected {
    background: #ecfdf5;
}

.multi-result strong {
    display: block;
    font-size: 14px;
    font-weight: 900;
    color: var(--text);
}

.multi-result small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.multi-result.empty {
    justify-content: center;
    color: var(--muted);
    cursor: default;
    min-height: 80px;
}

.selected-items-wrap {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.show-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.show-card-header.compact {
    margin-bottom: 14px;
}

.show-card-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 900;
}

.show-card-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

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

.info-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 13px 14px;
}

.info-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.info-item strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.notes-box {
    background: #fffaf0;
    border: 1px solid #fdecc8;
    border-radius: 16px;
    padding: 14px;
}

.notes-box span {
    display: block;
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
}

.notes-box p {
    margin: 0;
    color: #78350f;
    line-height: 1.8;
}

.show-totals {
    max-width: none;
    margin: 0;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .show-card-header {
        flex-direction: column;
    }
}
.report-item-search .item-search-results {
    z-index: 9999;
}

.warehouse-stock-list {
    display: grid;
    gap: 12px;
}

.warehouse-stock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 13px 14px;
}

.warehouse-stock-item strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: var(--text);
}

.warehouse-stock-item span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
}
.item-card-filter-row {
    display: grid;
    grid-template-columns: minmax(300px, 1.5fr) minmax(220px, 1fr) 220px 220px 120px;
    gap: 16px;
    align-items: end;
}

.item-card-filter-item {
    min-width: 0;
}

.item-card-filter-product {
    position: relative;
}

.item-card-filter-date input {
    direction: ltr;
    text-align: center;
}

.item-card-filter-action {
    align-self: end;
}

.item-card-filter-action .btn {
    min-height: 48px;
}

@media (max-width: 1200px) {
    .item-card-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .item-card-filter-action {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .item-card-filter-row {
        grid-template-columns: 1fr;
    }

    .item-card-filter-action {
        grid-column: auto;
    }
}
.current-stock-filter-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(190px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) 150px 110px;
    gap: 14px;
    align-items: end;
}

.current-stock-filter-row .filter-item {
    min-width: 0;
}

.current-stock-filter-row .filter-action {
    align-self: end;
}

.current-stock-filter-row .filter-action .btn {
    min-height: 48px;
}

.stock-filter-switch {
    min-height: 48px;
}

.stock-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1300px) {
    .current-stock-filter-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .current-stock-filter-row .filter-action {
        grid-column: span 3;
    }

    .stock-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .current-stock-filter-row {
        grid-template-columns: 1fr;
    }

    .current-stock-filter-row .filter-action {
        grid-column: auto;
    }

    .stock-summary-grid {
        grid-template-columns: 1fr;
    }
}
.pos-body {
    min-height: 100vh;
    background: #eef3f8;
    overflow: hidden;
}

.pos-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.pos-header {
    height: 74px;
    background: linear-gradient(135deg, #07172b, #0f2747);
    color: #fff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pos-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pos-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    font-size: 24px;
}

.pos-brand h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.pos-brand p {
    margin: 4px 0 0;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.pos-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pos-status {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
}

.pos-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(620px, 1.2fr);
    gap: 14px;
    padding: 14px;
    min-height: 0;
}

.pos-left,
.pos-right {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pos-panel,
.pos-cart-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.customer-panel {
    padding: 16px;
}

.item-search-panel {
    padding: 16px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pos-panel-title,
.pos-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.pos-panel-title h2,
.pos-cart-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.pos-panel-title p,
.pos-cart-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.customer-search-wrap {
    position: relative;
}

.selected-customer-text {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.pos-search-results {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 39, 71, 0.18);
    z-index: 1000;
    display: none;
    max-height: 240px;
    overflow-y: auto;
}

.pos-result-item {
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f7;
    cursor: pointer;
}

.pos-result-item:hover {
    background: #f8fafc;
}

.pos-result-item strong,
.pos-result-item small {
    display: block;
}

.pos-result-item small {
    color: var(--muted);
    margin-top: 3px;
}

.pos-result-item.empty {
    color: var(--muted);
    cursor: default;
}

.item-search-large {
    height: 56px;
    border: 2px solid #dbeafe;
    background: #f8fbff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 12px;
}

.item-search-large i {
    color: var(--blue);
    font-size: 22px;
}

.item-search-large input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-size: 18px;
    font-weight: 800;
}

.pos-item-results {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    align-content: start;
    padding-left: 4px;
}

.pos-item-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    padding: 13px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    transition: 0.15s;
}

.pos-item-card:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    transform: translateY(-1px);
}

.pos-item-card strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
}

.pos-item-card span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.pos-item-meta {
    text-align: left;
    white-space: nowrap;
}

.pos-item-meta strong {
    color: var(--green);
}

.pos-item-meta .danger {
    color: var(--red);
    font-weight: 900;
}

.pos-empty-state {
    color: var(--muted);
    text-align: center;
    padding: 30px 10px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    background: #f8fafc;
}

.pos-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pos-shortcuts span {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
}

.pos-shortcuts strong {
    color: var(--blue);
}

.pos-cart-panel {
    height: 100%;
    min-height: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.pos-cart-table-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.pos-cart-table {
    margin: 0;
}

.pos-cart-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    position: sticky;
    top: 0;
    z-index: 2;
}

.pos-cart-table td,
.pos-cart-table th {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.selected-cart-row {
    background: #eef4ff;
}

.pos-totals {
    margin-top: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px 14px;
}

.pos-total-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 800;
    color: #475569;
}

.pos-total-row:last-child {
    border-bottom: 0;
}

.pos-total-row.grand {
    font-size: 22px;
    color: var(--text);
}

.pos-total-row.grand strong {
    color: var(--green);
}

.pos-payment-box {
    margin-top: 12px;
}

.pos-actions-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 10px;
}

.pos-actions-grid .btn {
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.pos-actions-grid .btn span {
    font-size: 11px;
    opacity: 0.8;
}

@media (max-width: 1100px) {
    .pos-body {
        overflow: auto;
    }

    .pos-shell {
        height: auto;
        min-height: 100vh;
    }

    .pos-main {
        grid-template-columns: 1fr;
    }

    .pos-header {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .pos-header-actions {
        flex-wrap: wrap;
    }

    .pos-cart-panel {
        min-height: 650px;
    }
}
/* ═══════════════════════════════════════════
   POS V2 — Cashier Screen
═══════════════════════════════════════════ */

.pos-v2-body {
    min-height: 100vh;
    background:
            radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 32%),
            radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.12), transparent 30%),
            #eef3f8;
    overflow: hidden;
}

.pos-v2-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.pos-v2-header {
    height: 82px;
    background: linear-gradient(135deg, #07172b, #102a4c);
    color: #ffffff;
    padding: 12px 18px;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) auto minmax(320px, auto);
    align-items: center;
    gap: 16px;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.25);
}

.pos-v2-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.pos-v2-logo {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(255,255,255,0.13);
    display: grid;
    place-items: center;
    font-size: 26px;
    border: 1px solid rgba(255,255,255,0.16);
}

.pos-v2-brand h1 {
    margin: 0;
    font-size: 23px;
    font-weight: 900;
}

.pos-v2-brand p {
    margin: 4px 0 0;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-v2-live {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pos-v2-receipt,
.pos-v2-time {
    min-width: 118px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    padding: 9px 13px;
    text-align: center;
}

.pos-v2-receipt span,
.pos-v2-time span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.66);
    font-weight: 800;
}

.pos-v2-receipt strong,
.pos-v2-time strong {
    display: block;
    margin-top: 2px;
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
}

.pos-v2-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
}

.pos-v2-status {
    background: rgba(16, 185, 129, 0.18);
    color: #d1fae5;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.pos-v2-status.warning {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.35);
}

.pos-v2-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(380px, 0.82fr) minmax(680px, 1.35fr);
    gap: 14px;
    padding: 14px;
    min-height: 0;
}

.pos-v2-products,
.pos-v2-cart {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pos-v2-card,
.pos-v2-cart-card,
.pos-v2-pay-card {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 26px;
    box-shadow: 0 18px 40px rgba(15, 39, 71, 0.09);
}

.pos-v2-card {
    padding: 16px;
}

.pos-v2-customer-card {
    flex: 0 0 auto;
}

.pos-v2-search-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pos-v2-card-head,
.pos-v2-cart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 13px;
}

.pos-v2-card-head h2,
.pos-v2-cart-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
}

.pos-v2-card-head p,
.pos-v2-cart-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.pos-v2-input {
    min-height: 46px;
    border-radius: 15px;
    font-weight: 800;
}

.pos-v2-search-box {
    height: 62px;
    border: 2px solid #bfdbfe;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 17px;
    margin-bottom: 13px;
}

.pos-v2-search-box i {
    color: #2563eb;
    font-size: 25px;
}

.pos-v2-search-box input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
}

.pos-v2-item-results {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    align-content: start;
    padding-left: 4px;
}

.pos-v2-item-card {
    border: 1px solid var(--border);
    border-radius: 19px;
    background: #ffffff;
    padding: 13px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    transition: 0.15s ease;
}

.pos-v2-item-card:hover {
    border-color: #60a5fa;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.10);
}

.pos-v2-item-card strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: var(--text);
}

.pos-v2-item-card span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.pos-v2-item-meta {
    text-align: left;
    white-space: nowrap;
}

.pos-v2-item-meta strong {
    color: #059669;
    font-size: 16px;
}

.pos-v2-item-meta .danger {
    color: #dc2626;
    font-weight: 900;
}

.pos-v2-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pos-v2-shortcuts span {
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
}

.pos-v2-shortcuts strong {
    color: #2563eb;
}

.pos-v2-cart {
    display: grid;
    grid-template-columns: minmax(520px, 1fr) 340px;
    gap: 14px;
}

.pos-v2-cart-card {
    padding: 16px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pos-v2-cart-table-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #ffffff;
}

.pos-cart-table {
    margin: 0;
}

.pos-cart-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    position: sticky;
    top: 0;
    z-index: 2;
}

.pos-cart-table td,
.pos-cart-table th {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.selected-cart-row {
    background: #eef4ff;
}

.pos-v2-pay-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pos-v2-totals {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 14px;
}

.pos-v2-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 900;
}

.pos-v2-total-row:last-child {
    border-bottom: 0;
}

.pos-v2-total-row.required {
    font-size: 24px;
    color: var(--text);
}

.pos-v2-total-row.required strong {
    color: #059669;
    font-size: 30px;
}

.pos-v2-payment {
    margin-top: 14px;
}

.pos-v2-payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.pos-v2-payment-method {
    min-height: 78px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    cursor: pointer;
    padding: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 900;
    transition: 0.15s ease;
}

.pos-v2-payment-method input {
    display: none;
}

.pos-v2-payment-method i {
    font-size: 24px;
    color: #64748b;
}

.pos-v2-payment-method.active {
    background: #eef4ff;
    border-color: #60a5fa;
    color: #1d4ed8;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.10);
}

.pos-v2-payment-method.active i {
    color: #2563eb;
}

.pos-paid-input {
    border-radius: 18px;
    font-weight: 900;
    font-size: 22px;
    text-align: center;
}

.pos-v2-change-box {
    background: #07172b;
    color: #ffffff;
    border-radius: 20px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pos-v2-change-box span {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    font-weight: 900;
}

.pos-v2-change-box strong {
    font-size: 25px;
    font-weight: 900;
}

.pos-v2-main-action {
    margin-top: auto;
    padding-top: 14px;
}

.pos-v2-main-action .btn {
    width: 100%;
    min-height: 74px;
    border-radius: 22px;
    font-size: 20px;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
}

.pos-v2-main-action .btn span {
    font-size: 12px;
    opacity: 0.8;
}

.pos-v2-side-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.pos-v2-side-actions .btn {
    min-height: 54px;
    border-radius: 18px;
    font-weight: 900;
}

@media (max-width: 1300px) {
    .pos-v2-body {
        overflow: auto;
    }

    .pos-v2-shell {
        height: auto;
        min-height: 100vh;
    }

    .pos-v2-header {
        height: auto;
        grid-template-columns: 1fr;
    }

    .pos-v2-actions,
    .pos-v2-live {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .pos-v2-main {
        grid-template-columns: 1fr;
    }

    .pos-v2-cart {
        grid-template-columns: 1fr;
    }

    .pos-v2-cart-card {
        min-height: 560px;
    }
}

@media (max-width: 768px) {
    .pos-v2-main {
        padding: 10px;
    }

    .pos-v2-payment-methods,
    .pos-v2-side-actions {
        grid-template-columns: 1fr;
    }

    .pos-v2-brand p {
        white-space: normal;
    }
}
/* ═══════════════════════════════════════════
   POS Premium Feedback
═══════════════════════════════════════════ */

.pos-toast-container {
    position: fixed;
    top: 94px;
    left: 18px;
    z-index: 99999;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 36px));
}

.pos-toast {
    transform: translateX(-18px);
    opacity: 0;
    transition: 0.22s ease;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 20px 45px rgba(15, 39, 71, 0.18);
    border-radius: 18px;
    padding: 13px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 900;
    color: var(--text);
}

.pos-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.pos-toast i {
    font-size: 21px;
    line-height: 1;
    margin-top: 1px;
}

.pos-toast.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.pos-toast.success i {
    color: #16a34a;
}

.pos-toast.danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.pos-toast.danger i {
    color: #dc2626;
}

.pos-toast.warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.pos-toast.warning i {
    color: #d97706;
}

.pos-toast.info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.pos-toast.info i {
    color: #2563eb;
}

.pos-confirm-modal,
.pos-success-modal {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 39, 71, 0.28);
}

.pos-confirm-modal .modal-body,
.pos-success-modal .modal-body {
    padding: 30px;
    text-align: center;
}

.pos-confirm-icon,
.pos-success-icon {
    width: 76px;
    height: 76px;
    border-radius: 26px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    font-size: 38px;
}

.pos-confirm-icon {
    background: #eff6ff;
    color: #2563eb;
}

.pos-success-icon {
    background: #ecfdf5;
    color: #16a34a;
}

.pos-confirm-modal h4,
.pos-success-modal h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: var(--text);
}

.pos-confirm-modal p,
.pos-success-modal p {
    margin: 8px 0 20px;
    color: var(--muted);
    font-weight: 700;
}

.pos-confirm-summary,
.pos-success-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.pos-confirm-summary div,
.pos-success-summary div,
.pos-success-receipt {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 13px;
}

.pos-confirm-summary span,
.pos-success-summary span,
.pos-success-receipt span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 900;
    margin-bottom: 5px;
}

.pos-confirm-summary strong,
.pos-success-summary strong,
.pos-success-receipt strong {
    display: block;
    font-size: 20px;
    color: var(--text);
    font-weight: 900;
}

.pos-success-receipt {
    background: linear-gradient(135deg, #07172b, #102a4c);
    color: #ffffff;
    margin-top: 18px;
}

.pos-success-receipt span {
    color: rgba(255,255,255,0.7);
}

.pos-success-receipt strong {
    color: #ffffff;
    font-size: 30px;
}

.pos-success-summary div:first-child strong {
    color: #059669;
}
.old-receipts-modal {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
}
.inventory-count-edit-wrap {
    max-height: calc(100vh - 330px);
    overflow: auto;
}

.inventory-count-edit-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}

.inventory-edit-toolbar {
    max-width: 520px;
}

.inventory-count-edit-table .actual-quantity-input,
.inventory-count-edit-table .cart-qty-input {
    text-align: center;
    font-weight: 900;
}
/* ═══════════════════════════════════════════
   Sidebar Dropdown Navigation
═══════════════════════════════════════════ */

.app-sidebar {
    overflow-y: auto;
}

.sidebar-brand {
    padding-bottom: 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-dropdown {
    margin-bottom: 8px;
}

.sidebar-dropdown summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    color: rgba(255,255,255,0.72);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 900;
    transition: 0.18s ease;
}

.sidebar-dropdown summary::-webkit-details-marker {
    display: none;
}

.sidebar-dropdown summary span {
    display: flex;
    align-items: center;
    gap: 11px;
}

.sidebar-dropdown summary i:first-child {
    font-size: 18px;
    opacity: 0.9;
}

.sidebar-dropdown summary:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.sidebar-dropdown[open] summary {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
}

.dropdown-arrow {
    font-size: 13px;
    transition: transform 0.18s ease;
    opacity: 0.8;
}

.sidebar-dropdown[open] .dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-subnav {
    display: grid;
    gap: 4px;
    padding: 8px 10px 4px 0;
    margin-right: 8px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar-subnav .sub-link {
    min-height: 42px;
    padding-right: 14px;
    font-size: 14px;
    border-radius: 14px;
}

.sidebar-subnav .sub-link i {
    font-size: 16px;
}

.sidebar-subnav .sub-link.active {
    background: rgba(255,255,255,0.14);
    color: #ffffff;
}

.sidebar-subnav .sub-link.active::before {
    content: "";
    width: 4px;
    height: 22px;
    border-radius: 999px;
    background: #fbbf24;
    position: absolute;
    right: -11px;
}

.sidebar-subnav .nav-link {
    position: relative;
}
/* ═══════════════════════════════════════════
   Real Dashboard
═══════════════════════════════════════════ */

.dashboard-hero {
    background:
            radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 35%),
            linear-gradient(135deg, #07172b, #102a4c);
    color: #ffffff;
    border-radius: 28px;
    padding: 26px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 18px 45px rgba(15, 39, 71, 0.18);
}

.hero-kicker {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
}

.dashboard-hero h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
}

.dashboard-hero p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.72);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kpi-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 14px;
}

.kpi-card .kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 24px;
    flex-shrink: 0;
}

.kpi-card.primary .kpi-icon { background: var(--blue); }
.kpi-card.success .kpi-icon { background: var(--green); }
.kpi-card.info .kpi-icon { background: var(--purple); }
.kpi-card.danger .kpi-icon { background: var(--red); }

.kpi-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.kpi-card strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
}

.kpi-card small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.empty-dashboard-state {
    min-height: 240px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    gap: 7px;
    color: var(--muted);
}

.empty-dashboard-state.compact {
    min-height: 260px;
}

.empty-dashboard-state i {
    font-size: 42px;
    color: var(--blue);
}

.empty-dashboard-state strong {
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.shift-summary-list {
    display: grid;
    gap: 10px;
}

.shift-summary-list div {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shift-summary-list span,
.stock-dashboard-grid span,
.low-stock-item span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.shift-summary-list strong,
.stock-dashboard-grid strong {
    color: var(--text);
    font-weight: 900;
}

.shift-summary-list .expected-cash-row {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.shift-summary-list .expected-cash-row strong {
    color: #047857;
    font-size: 18px;
}

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

.stock-dashboard-grid div {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}

.stock-dashboard-grid span,
.stock-dashboard-grid strong {
    display: block;
}

.stock-dashboard-grid strong {
    margin-top: 4px;
    font-size: 18px;
}

.low-stock-list {
    display: grid;
    gap: 9px;
    max-height: 340px;
    overflow-y: auto;
}

.low-stock-item {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.low-stock-item strong {
    display: block;
    color: var(--text);
    font-weight: 900;
}

.low-stock-item span {
    display: block;
    margin-top: 3px;
}

.movement-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.movement-badge.in {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.movement-badge.out {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

@media (max-width: 1200px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .dashboard-kpi-grid,
    .stock-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .dashboard-hero h2 {
        font-size: 23px;
    }
}
.items-table-scroll {
    max-height: calc(100vh - 360px);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.items-table-scroll .app-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f8fafc;
}

.items-table-scroll .app-table {
    margin-bottom: 0;
}

.items-table-scroll .app-table tbody tr:hover {
    background: #f8fbff;
}
.pagination {
    gap: 5px;
}

.pagination .page-link {
    border-radius: 10px;
    border-color: var(--border);
    color: var(--text);
    font-weight: 800;
}

.pagination .page-item.active .page-link {
    background: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
}

.pagination .page-item.disabled .page-link {
    color: #94a3b8;
}

.dataTables_wrapper .dt-length select {
    margin: 0 6px;
}

.dataTables_wrapper .dt-info {
    color: var(--muted);
    font-weight: 700;
}

.dataTables_wrapper .pagination {
    gap: 5px;
    justify-content: flex-end;
}

.dataTables_wrapper .page-link {
    border-radius: 10px;
    border-color: var(--border);
    color: var(--text);
    font-weight: 800;
}

.dataTables_wrapper .page-item.active .page-link {
    background: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
}

.dataTables_wrapper .page-item.disabled .page-link {
    color: #94a3b8;
}

#itemsDataTable tbody td {
    vertical-align: middle;
}

#itemsDataTable_processing {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 12px 18px;
    font-weight: 900;
}
/* ═══════════════════════════════════════════
   Sidebar Collapse Toggle
═══════════════════════════════════════════ */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand .brand-text {
    min-width: 0;
    flex: 1;
}

.sidebar-toggle-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 13px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: 0.18s ease;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: rgba(255,255,255,0.16);
}

body.sidebar-collapsed .app-sidebar {
    width: 92px;
    padding-inline: 14px;
}

body.sidebar-collapsed .app-main {
    margin-right: 92px;
}

body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    flex-direction: column;
}

body.sidebar-collapsed .sidebar-brand .brand-text,
body.sidebar-collapsed .nav-link span,
body.sidebar-collapsed .sidebar-dropdown summary .dropdown-title,
body.sidebar-collapsed .sidebar-subnav {
    display: none !important;
}

body.sidebar-collapsed .nav-link,
body.sidebar-collapsed .sidebar-dropdown summary {
    justify-content: center;
    padding-inline: 0;
}

body.sidebar-collapsed .dropdown-arrow {
    display: none;
}

body.sidebar-collapsed .sidebar-dropdown {
    margin-bottom: 6px;
}


body.sidebar-collapsed .sidebar-dropdown summary .dropdown-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

body.sidebar-collapsed .sidebar-dropdown summary .dropdown-label i {
    font-size: 19px;
}

.status-badge.warning {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}


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

.settings-section-card {
    padding: 22px;
}

.settings-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.settings-section-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.settings-section-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.settings-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: var(--blue);
    font-size: 22px;
    flex-shrink: 0;
}

.form-hint {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.7;
}

.settings-save-bar {
    margin-top: 22px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profit-hero {
    background: linear-gradient(135deg, rgba(15,39,71,0.98), rgba(20,54,95,0.94));
    color: #fff;
    border: 0;
}

.profit-hero .form-label,
.profit-hero p,
.profit-hero label {
    color: rgba(255,255,255,0.9);
}

.profit-hero .form-control {
    background: rgba(255,255,255,0.96);
}

.profit-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    margin-bottom: 8px;
}

.profit-hero-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.profit-hero-header h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
}

.profit-hero-header p {
    margin: 8px 0 0;
    line-height: 1.9;
}

.profit-hero-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 10px 14px;
    border-radius: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.profit-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 220px;
    gap: 16px;
    align-items: end;
}

.profit-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.profit-main-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.profit-main-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.profit-main-card strong {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    font-weight: 900;
    color: var(--text);
}

.profit-main-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.tone-blue .profit-main-icon { background: var(--blue); }
.tone-green .profit-main-icon { background: var(--green); }
.tone-gold .profit-main-icon { background: var(--gold); }
.tone-purple .profit-main-icon { background: var(--purple); }
.tone-red .profit-main-icon { background: var(--red); }

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

.profit-detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

.profit-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.profit-detail-card strong {
    font-size: 24px;
    font-weight: 900;
    color: var(--text);
}

.profit-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff8e8;
    border: 1px solid #f6dd9d;
    border-radius: 18px;
    padding: 16px 18px;
}

.profit-note > i {
    font-size: 22px;
    color: #b7791f;
    flex-shrink: 0;
    margin-top: 2px;
}

.profit-note strong {
    display: block;
    color: #8a5a10;
    margin-bottom: 4px;
}

.profit-note p {
    margin: 0;
    color: #7b5b1d;
    line-height: 1.9;
}

.profit-items-table .profit-item-name {
    font-weight: 900;
}

@media (max-width: 1200px) {
    .settings-grid,
    .profit-summary-grid,
    .profit-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profit-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profit-filter-action {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .settings-grid,
    .profit-summary-grid,
    .profit-detail-grid,
    .profit-filter-grid {
        grid-template-columns: 1fr;
    }

    .settings-save-bar,
    .profit-hero-header {
        flex-direction: column;
        align-items: stretch;
    }

    .profit-filter-action {
        grid-column: auto;
    }
}

.report-filter-card {
    height: auto;
}

.reports-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) 220px;
    gap: 14px;
    align-items: end;
}

.reports-filter-grid-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filter-action-double {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-self: end;
}

.filter-action-double .btn {
    min-height: 46px;
}

.report-table-wide {
    min-width: 1180px;
}

.purchase-show-status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1400px) {
    .reports-filter-grid,
    .reports-filter-grid-wide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-action-double {
        grid-column: span 3;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .reports-filter-grid,
    .reports-filter-grid-wide {
        grid-template-columns: 1fr;
    }

    .filter-action-double {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .purchase-show-status-strip {
        grid-template-columns: 1fr;
    }
}

/* Unified DataTables UX */
.dt-toolbar {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
}

.dt-toolbar label {
    font-weight: 800;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.dt-toolbar .dt-search label {
    justify-content: flex-start;
}

.dt-toolbar .dt-search input,
.dt-toolbar .dt-length select {
    border: 1px solid var(--border);
    border-radius: 12px;
    min-height: 40px;
    padding: 6px 10px;
    background: #fff;
}

.dt-toolbar .dt-search input:focus,
.dt-toolbar .dt-length select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
    border-color: #93c5fd;
}

.dt-container .dt-info {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.dt-container .dt-paging .dt-paging-button {
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    color: var(--text) !important;
    margin: 0 2px;
    font-weight: 800;
}

.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button.current:hover {
    background: var(--navy) !important;
    color: #fff !important;
    border-color: var(--navy) !important;
}

.dt-container .dt-paging .dt-paging-button.disabled {
    opacity: .5;
}

.table-ux-note {
    background: #f8fafc;
    border: 1px dashed var(--border);
    color: var(--muted);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .dt-toolbar label {
        width: 100%;
    }

    .dt-toolbar .dt-search input,
    .dt-toolbar .dt-length select {
        width: 100% !important;
        margin: 0 !important;
    }
}


.app-footer {
    margin: 8px 28px 24px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 10px 28px rgba(15,39,71,0.06);
}
.app-footer strong { color: var(--text); margin-left: 8px; }
.footer-made-by { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--navy); }
.form-control-color { min-height: 46px; width: 72px; padding: 5px; }
@media (max-width: 768px) { .app-footer { flex-direction: column; align-items: flex-start; } }

/* ═══════════════════════════════════════════
   Sidebar Brand Fix
   Keeps app name/tagline readable with long names
═══════════════════════════════════════════ */
.sidebar-brand {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 12px;
    min-height: 84px;
    padding: 8px 0 18px;
}

.sidebar-brand .brand-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
    font-size: 22px;
}

.sidebar-brand .brand-text {
    min-width: 0;
    overflow: hidden;
}

.sidebar-brand .brand-text h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(20px, 1.55vw, 25px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.sidebar-brand .brand-text p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.sidebar-brand .sidebar-toggle-btn {
    align-self: center;
    justify-self: end;
}

body.sidebar-collapsed .sidebar-brand {
    display: flex;
    min-height: auto;
    padding-bottom: 14px;
}

body.sidebar-collapsed .sidebar-brand .brand-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
}


/* ═══════════════════════════════════════════
   Cashier Dashboard
═══════════════════════════════════════════ */
.cashier-hero {
    background:
        radial-gradient(circle at top left, rgba(251,191,36,0.24), transparent 30%),
        linear-gradient(135deg, #07172b, #12335c);
}

.cashier-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cashier-action-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow);
    color: var(--text);
    display: grid;
    gap: 8px;
    transition: 0.18s ease;
    min-height: 150px;
}

.cashier-action-card:hover {
    transform: translateY(-3px);
    color: var(--text);
    box-shadow: 0 18px 38px rgba(15,39,71,0.12);
}

.cashier-action-card i {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
}

.cashier-action-card.primary i { background: var(--blue); }
.cashier-action-card.warning i { background: var(--gold); }
.cashier-action-card.danger i { background: var(--red); }
.cashier-action-card.info i { background: var(--purple); }
.cashier-action-card strong { font-size: 18px; font-weight: 900; }
.cashier-action-card span { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.7; }

@media (max-width: 1200px) {
    .cashier-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .cashier-action-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   Barcode Labels
═══════════════════════════════════════════ */
.barcode-print-sheet {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.barcode-label {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 10px 12px;
    min-height: 118px;
    text-align: center;
    display: grid;
    align-content: center;
    gap: 6px;
    break-inside: avoid;
}

.barcode-label-name {
    font-weight: 900;
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
    min-height: 34px;
    display: grid;
    place-items: center;
}

.barcode-label svg {
    width: 100%;
    max-width: 180px;
    margin-inline: auto;
}

.barcode-label-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
}

.barcode-label-footer strong {
    color: var(--text);
    font-size: 13px;
}

@media print {
    body { background: #fff !important; }
    .no-print, .app-sidebar, .app-topbar, .app-footer, .flash-message { display: none !important; }
    .app-main { margin: 0 !important; width: 100% !important; }
    .app-content { padding: 0 !important; }
    .barcode-print-sheet {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6mm;
        padding: 6mm;
    }
    .barcode-label {
        border: 1px solid #111;
        border-radius: 4px;
        min-height: 32mm;
        padding: 3mm;
        box-shadow: none;
    }
}

/* Hover expand disabled: sidebar stays stable and opens/closes only by toggle button. */

.settings-help-alert {
    border-radius: 18px;
    font-weight: 700;
}

.setting-description {
    margin-top: 8px;
    padding: 9px 11px;
    border-radius: 12px;
    background: #fff8e8;
    border: 1px solid #f6dd9d;
    color: #7b5b1d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

.setting-description i {
    color: #b7791f;
    margin-inline-end: 4px;
}

/* ═══════════════════════════════════════════
   Sprint 6 — Cashier Usability Polish
═══════════════════════════════════════════ */
.pos-v2-header {
    height: 74px;
    padding: 10px 16px;
    grid-template-columns: minmax(330px, 1fr) auto minmax(300px, auto);
}

.pos-v2-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.pos-v2-brand h1 {
    font-size: 21px;
}

.pos-v2-main {
    grid-template-columns: minmax(360px, 0.78fr) minmax(690px, 1.42fr);
    gap: 12px;
    padding: 12px;
}

.pos-v2-products,
.pos-v2-cart {
    gap: 12px;
}

.pos-v2-card,
.pos-v2-cart-card,
.pos-v2-pay-card {
    border-radius: 22px;
}

.pos-v2-card,
.pos-v2-cart-card,
.pos-v2-pay-card {
    padding: 14px;
}

.pos-v2-search-box {
    height: 58px;
    margin-bottom: 11px;
}

.pos-v2-item-results {
    gap: 8px;
}

.pos-v2-item-card {
    border-radius: 16px;
    padding: 11px 12px;
}

.pos-v2-cart {
    grid-template-columns: minmax(530px, 1fr) 330px;
    gap: 12px;
}

.pos-cart-table td,
.pos-cart-table th {
    padding: 9px 10px;
}

.pos-cart-table input.form-control-sm {
    min-height: 38px;
    font-weight: 900;
}

.pos-v2-total-row.required {
    font-size: 22px;
}

.pos-v2-total-row.required strong {
    font-size: 28px;
}

.pos-v2-payment-method {
    min-height: 68px;
    border-radius: 16px;
}

.pos-v2-main-action .btn {
    min-height: 66px;
    border-radius: 19px;
}

.pos-v2-side-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pos-v2-side-actions .btn {
    min-height: 48px;
    border-radius: 15px;
    font-size: 13px;
}

.pos-v2-shortcuts {
    max-height: 74px;
    overflow-y: auto;
    padding-inline-end: 2px;
}

.pos-v2-shortcuts span {
    padding: 6px 9px;
    font-size: 11px;
}

.held-sales-modal .modal-header,
.old-receipts-modal .modal-header {
    background: #f8fafc;
}

@media (max-width: 1300px) {
    .pos-v2-main {
        grid-template-columns: 1fr;
    }

    .pos-v2-cart-card {
        min-height: 440px;
    }
}


/* Sprint 9 fix - Premium login rebuild */
.login-pro-body {
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(13,110,253,.18), transparent 28%),
        radial-gradient(circle at 85% 82%, rgba(25,135,84,.14), transparent 30%),
        linear-gradient(135deg, #f7fbff 0%, #eef5ff 42%, #f8fbff 100%);
    color: #10233f;
    overflow-x: hidden;
}
.login-pro-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.05fr) minmax(390px, .95fr);
    gap: 34px;
    padding: 44px;
    align-items: center;
    position: relative;
}
.login-pro-page::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 34px;
    pointer-events: none;
}
.login-pro-hero {
    min-height: 650px;
    border-radius: 34px;
    padding: 34px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(10,38,71,.95), rgba(13,110,253,.88)),
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 32%);
    color: #fff;
    box-shadow: 0 26px 70px rgba(11,35,66,.22);
}
.login-pro-hero::before,
.login-pro-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
}
.login-pro-hero::before { width: 320px; height: 320px; left: -90px; top: -80px; }
.login-pro-hero::after { width: 440px; height: 440px; right: -130px; bottom: -160px; }
.login-pro-topline {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.login-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    padding: 9px 15px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}
.login-pro-hero-content {
    position: relative;
    z-index: 2;
    margin-top: 110px;
    max-width: 620px;
}
.login-pro-mark {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.26);
    font-size: 38px;
    margin-bottom: 22px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.login-pro-hero h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 950;
    letter-spacing: -.8px;
}
.login-pro-hero p {
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 2;
    color: rgba(255,255,255,.86);
}
.login-pro-stats {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.login-pro-stats div {
    border-radius: 20px;
    padding: 18px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(10px);
}
.login-pro-stats strong {
    display: block;
    font-size: 22px;
    font-weight: 950;
}
.login-pro-stats span {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
}
.login-pro-story-card {
    position: absolute;
    z-index: 3;
    right: 34px;
    left: 34px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.24);
    backdrop-filter: blur(14px);
}
.login-pro-story-card > i {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(255,255,255,.18);
    font-size: 24px;
}
.login-pro-story-card strong { display: block; font-weight: 950; font-size: 16px; }
.login-pro-story-card span { display: block; margin-top: 5px; color: rgba(255,255,255,.76); line-height: 1.8; }
.login-pro-panel {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}
.login-pro-card {
    width: min(100%, 500px);
    border-radius: 34px;
    padding: 34px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(226,235,248,.9);
    box-shadow: 0 26px 70px rgba(16,35,63,.14);
    backdrop-filter: blur(18px);
}
.login-pro-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.login-pro-card-logo {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #0b2342, #0d6efd);
    font-size: 25px;
    box-shadow: 0 18px 34px rgba(13,110,253,.25);
}
.login-pro-card h2 {
    margin: 0;
    color: #0b2342;
    font-size: 28px;
    font-weight: 950;
}
.login-pro-card p {
    margin: 7px 0 0;
    color: #72829b;
    line-height: 1.8;
}
.login-pro-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 15px 16px;
    border-radius: 18px;
    background: #fff1f2;
    color: #a1162c;
    border: 1px solid #ffd2d8;
    font-weight: 800;
    line-height: 1.8;
}
.login-pro-form { display: grid; gap: 18px; }
.login-pro-field label {
    display: block;
    margin-bottom: 9px;
    color: #11223d;
    font-weight: 950;
}
.login-pro-input-wrap {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #dfe8f5;
    border-radius: 18px;
    background: #fbfdff;
    transition: .2s ease;
}
.login-pro-input-wrap:focus-within {
    border-color: rgba(13,110,253,.55);
    box-shadow: 0 0 0 4px rgba(13,110,253,.08);
    background: #fff;
}
.login-pro-input-wrap > i {
    color: #0d6efd;
    font-size: 20px;
}
.login-pro-input-wrap .form-control {
    border: 0;
    background: transparent;
    padding: 0;
    height: 54px;
    font-weight: 800;
    color: #13243d;
}
.login-pro-input-wrap .form-control:focus { box-shadow: none; }
.login-pro-submit {
    height: 60px;
    border: 0;
    border-radius: 19px;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #074eb4);
    font-size: 17px;
    font-weight: 950;
    box-shadow: 0 18px 34px rgba(13,110,253,.26);
    transition: .2s ease;
}
.login-pro-submit:hover { transform: translateY(-1px); box-shadow: 0 22px 42px rgba(13,110,253,.32); }
.login-pro-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e7eef8;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
    color: #718199;
    font-weight: 800;
    font-size: 13px;
}
.login-pro-footer span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 992px) {
    .login-pro-page { grid-template-columns: 1fr; padding: 24px; }
    .login-pro-hero { min-height: auto; padding: 26px; }
    .login-pro-hero-content { margin-top: 50px; }
    .login-pro-story-card { position: relative; right: auto; left: auto; bottom: auto; margin-top: 28px; }
}
@media (max-width: 576px) {
    .login-pro-page { padding: 14px; }
    .login-pro-card { padding: 22px; border-radius: 26px; }
    .login-pro-stats { grid-template-columns: 1fr; }
    .login-pro-card-header { align-items: flex-start; }
}

/* Sprint 10 - Smart POS suggestions */
.pos-smart-suggestions-card {
    border-color: rgba(13, 110, 253, .16) !important;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98));
}

.pos-smart-suggestions-card .pos-v2-card-head h2 i {
    color: #0d6efd;
    margin-left: 6px;
}

.pos-smart-suggestions-list {
    display: grid;
    gap: 10px;
}

.pos-smart-suggestion-item {
    width: 100%;
    border: 1px solid rgba(13, 110, 253, .16);
    background: #fff;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
    cursor: pointer;
    transition: .18s ease;
}

.pos-smart-suggestion-item:hover {
    border-color: rgba(13, 110, 253, .45);
    box-shadow: 0 12px 25px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.pos-smart-suggestion-item .suggestion-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(13, 110, 253, .10);
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
}

.pos-smart-suggestion-item .suggestion-body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.pos-smart-suggestion-item .suggestion-body strong {
    color: #0f172a;
    font-size: .94rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-smart-suggestion-item .suggestion-body small,
.pos-smart-suggestions-empty {
    color: #64748b;
    font-size: .78rem;
}

.pos-smart-suggestions-empty {
    padding: 14px;
    text-align: center;
    border: 1px dashed rgba(100, 116, 139, .25);
    border-radius: 14px;
    background: rgba(248, 250, 252, .8);
}

/* Sprint 11 - POS discounts and smarter suggestions layout */
.pos-smart-suggestions-card {
    position: relative;
    z-index: 1;
}

.suggestion-optional-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 900;
    vertical-align: middle;
}

.pos-smart-suggestions-list {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.pos-smart-suggestion-item {
    min-height: 74px;
}

.pos-v2-invoice-discount {
    margin-top: 14px;
    background: linear-gradient(180deg, #fff7ed, #ffffff);
    border: 1px solid rgba(249, 115, 22, .20);
    border-radius: 18px;
    padding: 12px;
}

.discount-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 900;
    color: #9a3412;
}

.discount-panel-title i {
    margin-left: 5px;
}

.pos-v2-total-row.discount-row strong {
    color: #dc2626;
}

.pos-cart-table .cart-discount-percent-input,
.pos-cart-table .cart-discount-amount-input,
.pos-cart-table .cart-price-input,
.pos-cart-table .cart-qty-input {
    text-align: center;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .pos-v2-cart {
        grid-template-columns: 1fr;
    }
}

/* Sprint 11 fix - premium login final rebuild */
.login-premium-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(560px, 1.08fr) minmax(430px, .92fr);
    gap: 34px;
    padding: 34px;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 10% 12%, rgba(0, 170, 255, .18), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .24), transparent 25%),
        radial-gradient(circle at 78% 86%, rgba(16, 185, 129, .16), transparent 30%),
        linear-gradient(135deg, #07152a 0%, #0a2347 42%, #eef6ff 42.2%, #f7fbff 100%);
    overflow: hidden;
}
.login-premium-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.7) 45%, transparent 78%);
    pointer-events: none;
    z-index: -1;
}
.login-premium-showcase,
.login-premium-form-zone { position: relative; z-index: 1; }
.login-premium-showcase {
    min-height: calc(100vh - 68px);
    border-radius: 38px;
    color: #fff;
    padding: 34px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(4, 17, 38, .72), rgba(12, 56, 112, .58)),
        radial-gradient(circle at 22% 24%, rgba(255,255,255,.16), transparent 32%);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 32px 90px rgba(1, 12, 30, .34);
}
.login-premium-glow { position: absolute; border-radius: 999px; filter: blur(3px); opacity: .82; }
.login-premium-glow-1 { width: 420px; height: 420px; right: -170px; top: -130px; background: rgba(51, 154, 255, .28); }
.login-premium-glow-2 { width: 360px; height: 360px; left: -135px; bottom: -110px; background: rgba(34, 197, 94, .18); }
.login-premium-brandbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    z-index: 2;
}
.login-premium-brand { display: flex; align-items: center; gap: 14px; }
.login-premium-logo {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 16px 28px rgba(0,0,0,.18);
    font-size: 29px;
}
.login-premium-brand strong { display: block; font-size: 24px; font-weight: 950; letter-spacing: -.4px; }
.login-premium-brand small { display: block; margin-top: 3px; color: rgba(255,255,255,.72); font-weight: 800; }
.login-premium-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.20);
    font-weight: 900;
    backdrop-filter: blur(12px);
}
.login-premium-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin-top: clamp(50px, 9vh, 105px);
}
.login-premium-kicker {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: #bfe0ff;
    background: rgba(13,110,253,.18);
    border: 1px solid rgba(159, 207, 255, .24);
    font-weight: 950;
    margin-bottom: 18px;
}
.login-premium-copy h1 {
    margin: 0;
    font-size: clamp(42px, 5.4vw, 76px);
    line-height: 1.16;
    font-weight: 950;
    letter-spacing: -1.4px;
    text-shadow: 0 12px 34px rgba(0,0,0,.22);
}
.login-premium-copy p {
    margin: 22px 0 0;
    max-width: 620px;
    font-size: 18px;
    line-height: 2;
    color: rgba(255,255,255,.78);
    font-weight: 700;
}
.login-premium-dashboard-card {
    position: absolute;
    z-index: 3;
    left: 34px;
    bottom: 34px;
    width: min(520px, calc(100% - 68px));
    padding: 22px;
    border-radius: 30px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 28px 60px rgba(0,0,0,.22);
    backdrop-filter: blur(18px);
}
.dashboard-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 950; }
.dashboard-card-header span { display: inline-flex; align-items: center; gap: 8px; }
.dashboard-card-header small { color: #a7f3d0; font-weight: 950; }
.dashboard-card-total { margin-top: 22px; }
.dashboard-card-total strong { display: block; font-size: 42px; font-weight: 950; letter-spacing: -.5px; }
.dashboard-card-total span { color: rgba(255,255,255,.70); font-weight: 850; }
.dashboard-card-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dashboard-card-grid div {
    padding: 15px;
    border-radius: 20px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.17);
}
.dashboard-card-grid i { display: block; color: #a7d7ff; font-size: 20px; margin-bottom: 8px; }
.dashboard-card-grid strong { display: block; font-size: 19px; font-weight: 950; }
.dashboard-card-grid span { display: block; color: rgba(255,255,255,.68); font-size: 12px; font-weight: 800; margin-top: 3px; }
.login-premium-floating-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 230px;
    padding: 15px 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.91);
    color: #0b2342;
    box-shadow: 0 24px 50px rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.70);
}
.login-premium-floating-card > i {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #0d6efd;
    border-radius: 16px;
    background: #eef6ff;
    font-size: 22px;
}
.login-premium-floating-card strong { display: block; font-weight: 950; }
.login-premium-floating-card span { display: block; margin-top: 3px; color: #718199; font-size: 12px; font-weight: 850; }
.floating-card-one { left: 115px; top: 130px; transform: rotate(-2deg); }
.floating-card-two { right: 64px; bottom: 210px; transform: rotate(2deg); }
.login-premium-form-zone {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-premium-card {
    width: min(100%, 500px);
    padding: 38px;
    border-radius: 34px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(215,228,246,.9);
    box-shadow: 0 34px 90px rgba(16,35,63,.16);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}
.login-premium-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 7px;
    background: linear-gradient(90deg, #0d6efd, #14b8a6, #f59e0b);
}
.login-premium-card-head {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
}
.login-premium-card-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #0a2347, #0d6efd);
    box-shadow: 0 20px 42px rgba(13,110,253,.24);
    font-size: 27px;
}
.login-premium-card h2 { margin: 0; color: #081f3d; font-size: 31px; font-weight: 950; }
.login-premium-card p { margin: 8px 0 0; color: #74849c; line-height: 1.8; font-weight: 800; }
.login-premium-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff1f2, #fff7f8);
    border: 1px solid #ffcbd5;
    color: #a50f2d;
    font-weight: 900;
    line-height: 1.8;
    margin-bottom: 22px;
}
.login-premium-form { display: grid; gap: 18px; }
.login-premium-field label { display: block; margin-bottom: 9px; color: #11233f; font-weight: 950; }
.login-premium-input {
    height: 62px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 17px;
    border-radius: 20px;
    background: #f9fcff;
    border: 1px solid #dce8f6;
    transition: .18s ease;
}
.login-premium-input:focus-within { background: #fff; border-color: rgba(13,110,253,.55); box-shadow: 0 0 0 5px rgba(13,110,253,.09); }
.login-premium-input > i { color: #0d6efd; font-size: 21px; }
.login-premium-input .form-control { border: 0; background: transparent; padding: 0; height: 58px; color: #122441; font-weight: 850; }
.login-premium-input .form-control:focus { box-shadow: none; }
.login-premium-submit {
    height: 64px;
    margin-top: 8px;
    border: 0;
    border-radius: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #0749a8);
    box-shadow: 0 20px 42px rgba(13,110,253,.28);
    font-weight: 950;
    font-size: 17px;
    transition: .18s ease;
}
.login-premium-submit:hover { transform: translateY(-1px); box-shadow: 0 26px 52px rgba(13,110,253,.34); }
.login-premium-security {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e6eef8;
    display: flex;
    justify-content: center;
    gap: 12px 18px;
    flex-wrap: wrap;
    color: #718199;
    font-size: 13px;
    font-weight: 850;
}
.login-premium-security span { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 1100px) {
    .login-premium-shell { grid-template-columns: 1fr; background: linear-gradient(135deg, #07152a 0%, #0a2347 48%, #eef6ff 48.2%, #f7fbff 100%); }
    .login-premium-showcase { min-height: 660px; }
    .login-premium-form-zone { min-height: auto; }
}
@media (max-width: 768px) {
    .login-premium-shell { padding: 16px; gap: 18px; }
    .login-premium-showcase { min-height: auto; padding: 24px; border-radius: 28px; }
    .login-premium-copy { margin-top: 46px; }
    .login-premium-dashboard-card { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 34px; }
    .login-premium-floating-card { display: none; }
    .login-premium-card { padding: 25px; border-radius: 28px; }
    .login-premium-brandbar { align-items: flex-start; }
    .dashboard-card-grid { grid-template-columns: 1fr; }
}

/* Sprint 15 - Price levels */
.price-level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.price-level-input-card {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.price-level-input-card .price-level-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.price-level-input-card .price-level-name i {
    color: #2563eb;
}
.price-level-badge,
.selected-customer-text + #selectedCustomerPriceLevelText {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}
.pos-v2-item-meta small {
    font-size: .76rem;
    color: #64748b;
}

/* Sprint 18.2 - Purchase serialized items */
.purchase-serial-panel {
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}
.purchase-serial-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.purchase-serial-head strong {
    color: #0f2d52;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
}
.purchase-serial-head small {
    display: block;
    color: #64748b;
    margin-top: 4px;
    font-weight: 700;
}
.serial-count-badge {
    min-width: 50px;
    text-align: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 900;
    border: 1px solid rgba(37, 99, 235, .18);
}
.serial-count-badge.complete {
    background: #ecfdf5;
    color: #047857;
    border-color: rgba(16, 185, 129, .25);
}
.serial-help-text {
    color: #64748b;
    font-size: .82rem;
    margin-bottom: 10px;
}
.purchase-serial-rows {
    display: grid;
    gap: 10px;
}
.purchase-serial-row {
    display: grid;
    grid-template-columns: 34px minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(95px, .75fr) minmax(85px, .55fr) minmax(130px, 1fr);
    gap: 8px;
    align-items: end;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .22);
}
.serial-row-index {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #0d6efd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 4px;
}
.serial-field label {
    display: block;
    font-size: .74rem;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 4px;
}
.serial-field.required label::after {
    content: ' *';
    color: #dc2626;
}
.serial-empty-warning {
    border-radius: 14px;
    padding: 10px 12px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid rgba(251, 146, 60, .25);
    font-weight: 800;
}
.serial-empty-warning.danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: rgba(248, 113, 113, .30);
}
@media (max-width: 1200px) {
    .purchase-serial-row {
        grid-template-columns: 32px 1fr 1fr;
    }
    .serial-field.notes {
        grid-column: span 2;
    }
}
@media (max-width: 768px) {
    .purchase-serial-row {
        grid-template-columns: 1fr;
    }
    .serial-row-index { margin-bottom: 0; }
    .serial-field.notes { grid-column: auto; }
}
.purchase-show-serials {
    border: 1px dashed rgba(37, 99, 235, .25);
    background: #f8fbff;
    border-radius: 12px;
    padding: 8px;
}
.purchase-show-serial-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.purchase-show-serial-line span {
    display: inline-flex;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .22);
    color: #334155;
    font-size: .75rem;
    padding: 3px 8px;
    font-weight: 800;
}

/* Sprint 18.2.1 - Serialized purchases UX hotfix */
.purchase-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
}
.purchase-table tbody tr.purchase-line-row td {
    vertical-align: top;
}
.purchase-serial-detail-row td,
.purchase-serial-detail-cell {
    background: #f8fbff !important;
    border-top: 0 !important;
    padding: 0 10px 14px 10px !important;
}
.purchase-serial-detail-row.d-none {
    display: none !important;
}
.purchase-serial-detail-cell .purchase-serial-panel {
    margin: 0;
    width: 100%;
    max-width: none;
}
.purchase-serial-row {
    grid-template-columns: 34px repeat(3, minmax(150px, 1fr)) minmax(110px, .8fr) minmax(100px, .65fr) minmax(160px, 1fr);
}
.purchase-serial-row .form-control-sm {
    min-height: 38px;
}
.purchase-form-draft-hint {
    font-size: .82rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
@media (max-width: 1200px) {
    .purchase-serial-row {
        grid-template-columns: 32px 1fr 1fr;
    }
}

/* Sprint 18.5 - Serialized sale returns */
.serialized-return-row td {
    background: #f8fbff !important;
    border-top: 0 !important;
    padding-top: 0 !important;
}
.serialized-return-panel {
    border: 1px dashed rgba(37, 99, 235, .26);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}
.serial-return-card {
    border: 1px solid rgba(148, 163, 184, .26);
    background: #fff;
    border-radius: 14px;
    padding: 10px 12px;
    min-height: 96px;
}
.serial-return-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-weight: 800;
    color: #0f172a;
}
.serial-return-check .form-check-input {
    margin: 2px 0 0 0;
    flex: 0 0 auto;
}
.return-serials-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.return-serial-chip {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, .24);
    background: #f8fafc;
    border-radius: 12px;
    padding: 6px 8px;
    font-size: .82rem;
}
.return-serial-chip .badge {
    font-size: .72rem;
}
@media (max-width: 768px) {
    .serialized-return-panel { padding: 10px; }
    .serial-return-card { min-height: auto; }
}
