/* =========================================================
   MASTER STANDARD CSS
   Theme: Premium Blue Monochromatic
   ========================================================= */

:root {
    /* TezPOS Brand Color Variables Removed */

    /* TezPOS Extra Colors */
    --tezpos-primary-blue: #0765FD;
    --tezpos-secondary-blue: #1A8AFC;
    --tezpos-light-blue: #5896FB;
    --tezpos-orange: #FE6105;
    --tezpos-dark-navy: #141B38;
    --tezpos-white: #FFFFFF;
    --tezpos-soft-blue: #ACC8E5;

    /* Gradients */
    --header-gradient: linear-gradient(135deg, #0765FD 0%, #1A8AFC 100%);
    --tab-active-gradient: linear-gradient(135deg, #0765FD 0%, #1A8AFC 100%);
    --btn-primary-gradient: linear-gradient(135deg, #0765FD 0%, #1A8AFC 100%);
    --btn-hover-gradient: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%);
    --card-header-gradient: linear-gradient(135deg, #ACC8E5 0%, #F4F9FF 100%);
}

body {
    font-family: var(--app-custom-font-family, 'Inter', sans-serif) !important;
    font-weight: var(--app-custom-font-weight, 400) !important;
}


h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-family: var(--app-custom-font-family) !important;
    color: var(--tezpos-dark-navy);
}

/* =========================================================
   1. LAYOUT & CARDS
   ========================================================= */
.premium-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    background: var(--bs-card-bg);
    box-shadow: 0 4px 20px rgba(15, 69, 120, 0.05);
    /* Tinted shadow */
    overflow: visible;
    margin-bottom: 1.5rem;
}

.premium-header {
    background: var(--header-gradient);
    padding: 1.5rem 2rem;
    color: white;
    display: flex;
    align-items: center;

    flex-wrap: wrap;
    gap: 15px;
    border-radius: 15px 15px 0 0;
}

.header-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(233, 243, 253, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(15, 69, 120, 0.15);
    color: #ffffff;
    flex-shrink: 0;
}

/* =========================================================
   2. BUTTONS (HEADER & FORM)
   ========================================================= */
.header-btn-primary {
    background: rgba(233, 243, 253, 0.2);
    border: 1px solid rgba(233, 243, 253, 0.4);
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-btn-primary:hover {
    background: rgba(233, 243, 253, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 69, 120, 0.2);
    color: white;
}

.header-btn-outline {
    background: transparent;
    border: 1px solid rgba(233, 243, 253, 0.5);
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-btn-outline:hover {
    background: rgba(233, 243, 253, 0.15);
    border-color: white;
    transform: translateY(-2px);
    color: white;
}

.btn-modern-primary {
    background: linear-gradient(135deg, #0765FD 0%, #1A8AFC 100%);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 138, 252, 0.25);
}

.btn-modern-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    background: var(--btn-hover-gradient);
    box-shadow: 0 6px 15px rgba(15, 69, 120, 0.35);
    color: white;
}

.btn-modern-secondary {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    color: var(--bs-body-color);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-modern-secondary:hover {
    background: var(--tezpos-white);
    color: var(--tezpos-primary-blue);
    border-color: var(--tezpos-soft-blue);
}

/* ===== Buttons ===== */
.btn-brand-primary {
    background: linear-gradient(135deg, #0765FD 0%, #1A8AFC 100%);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.8rem;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 138, 252, 0.25);
}

.btn-brand-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%);
    box-shadow: 0 6px 15px rgba(15, 69, 120, 0.35);
    color: white;
}

.btn-brand-accent {
    background: #E9F3FD;
    color: #1A8AFC;
    border: 1px solid var(--bs-border-color);
    border-radius: 0 8px 8px 0;
    font-weight: bold;
    transition: all 0.2s;
    padding: 0 1rem;
}

.btn-brand-accent:hover:not(:disabled) {
    background: #1A8AFC;
    color: white;
    border-color: #1A8AFC;
}

.btn-brand-light {
    background-color: #E9F3FD;
    border: 1px solid #A5D0F9;
    color: #0F4578;
    border-radius: 8px;
    padding: 0.6rem 1.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-brand-light:hover:not(:disabled) {
    background-color: #A5D0F9;
    color: #0F4578;
    border-color: #62ACF4;
}

.btn-action-icon.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-action-icon.delete:hover {
    background: #ef4444;
    color: white;
}

/* Modal Buttons */
.btn-solid-save {
    background: linear-gradient(135deg, #0765FD 0%, #1A8AFC 100%);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(26, 138, 252, 0.25);
}

.btn-solid-save:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%);
    box-shadow: 0 6px 15px rgba(15, 69, 120, 0.35);
}

.btn-solid-cancel {
    background-color: transparent;
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-solid-cancel:hover {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-secondary-color);
}

/* Action Buttons */
.btn-action-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-action-icon.edit {
    background: rgba(26, 138, 252, 0.1);
    /* #1A8AFC */
    color: #1A8AFC;
}

.btn-action-icon.edit:hover {
    background: #1A8AFC;
    color: white;
}

.btn-action-icon.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-action-icon.delete:hover {
    background: #ef4444;
    color: white;
}

/* =========================================================
   3. FORM INPUTS & CONTROLS
   ========================================================= */
.form-label-modern {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-body-color);
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.solid-input {
    border-radius: 8px;
    padding: 0.55rem 1rem;
    border: 1px solid rgb(121 135 161 / 50%) !important;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: border-color 0.2s;

}

.solid-input:focus,
.solid-input[aria-expanded="true"] {
    border-color: #1A8AFC !important;
    box-shadow: none !important;
    outline: none;
}

.solid-input::placeholder {
    color: var(--bs-secondary-color);
    font-weight: 400;
}

.solid-input-group-text {
    background-color: var(--bs-tertiary-bg);
    border: 1px solid rgb(121 135 161 / 50%);
    color: var(--bs-body-color);
    border-radius: 8px 0 0 8px;

}

.input-group:focus-within .solid-input-group-text {
    border-color: var(--tezpos-primary-blue);

}

/* ==========================================
           SOLID PREMIUM MODAL REDESIGN
        ========================================== */
.premium-solid-modal {
    border: none !important;
    border-radius: 20px !important;
    background-color: var(--bs-card-bg, #ffffff) !important;
    box-shadow: 0 25px 50px -12px rgba(15, 69, 120, 0.3) !important;
}

.premium-solid-modal .modal-header {
    background-color: var(--bs-card-bg, #ffffff);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
}

.premium-solid-modal .modal-body {
    background-color: var(--bs-body-bg, #f8f9fa);
    padding: 2rem;
}

.premium-solid-modal .modal-footer {
    background-color: var(--bs-card-bg, #ffffff);
    border-top: 1px solid var(--bs-border-color);
    padding: 1.25rem 2rem;
    border-radius: 0 0 20px 20px;
}

.modal-icon-solid {
    width: 42px;
    height: 42px;
    background: rgba(26, 138, 252, 0.1);
    /* #1A8AFC */
    color: #1A8AFC;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 15px;
    border: 1px solid rgba(26, 138, 252, 0.2);
}

/* ===== Info Box ===== */
.instruction-box {
    background-color: #E9F3FD;
    border: 1px solid #A5D0F9;
    border-radius: 12px;
    padding: 1.5rem;
    color: #0F4578;
}

.instruction-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
    font-weight: 500;
}

.instruction-list li {
    margin-bottom: 0.6rem;
}

.instruction-list li:last-child {
    margin-bottom: 0;
}


/* ===== Custom Radio Cards for Printer Selection ===== */
.printer-radio-card {
    border: 2px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bs-card-bg);
    color: var(--bs-body-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.printer-radio-card:hover {
    border-color: #A5D0F9;
    background: var(--bs-tertiary-bg);
}

.btn-check:checked+.printer-radio-card {
    border-color: #1A8AFC;
    background: rgba(233, 243, 253, 0.5);
    /* #E9F3FD */
    box-shadow: 0 4px 15px rgba(26, 138, 252, 0.15);
}

.printer-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.btn-check:checked+.printer-radio-card .printer-icon {
    background: #1A8AFC;
    color: white;
    box-shadow: 0 2px 8px rgba(26, 138, 252, 0.3);
}

/* ==========================================
           SOLID PREMIUM MODAL REDESIGN
        ========================================== */
.premium-solid-modal {
    border: none !important;
    border-radius: 20px !important;
    background-color: var(--bs-card-bg, #ffffff) !important;
    box-shadow: 0 25px 50px -12px rgba(15, 69, 120, 0.3) !important;
    overflow: hidden;
}

.premium-solid-modal .modal-header {
    background-color: var(--bs-card-bg, #ffffff);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1.5rem 2rem;
}

.premium-solid-modal .modal-body {
    background-color: var(--bs-body-bg, #f8f9fa);
    padding: 2rem;
}

.premium-solid-modal .modal-footer {
    background-color: var(--bs-card-bg, #ffffff);
    border-top: 1px solid var(--bs-border-color);
    padding: 1.25rem 2rem;
}

.modal-icon-solid {
    width: 42px;
    height: 42px;
    background: rgba(26, 138, 252, 0.1);
    /* #1A8AFC */
    color: #1A8AFC;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 15px;
    border: 1px solid rgba(26, 138, 252, 0.2);
}

/* Modal Summary Cards */
.summary-card {
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(15, 69, 120, 0.03);
}

.summary-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-secondary-color);
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.summary-item span:first-child {
    color: var(--bs-secondary-color);
    font-weight: 500;
}

/* Form Search Dropdowns */
.dropdown-wrapper.active-dropdown {
    z-index: 1050;
}

.solid-dropdown-menu {
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 69, 120, 0.15);
    overflow: hidden;
    margin-top: 5px;
}

.solid-dropdown-search {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-bottom: 1px solid var(--bs-border-color) !important;
    padding: 12px;
    border-radius: 12px 12px 0 0;
}

.solid-dropdown-search:focus {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: none;
    outline: none;
}

.solid-dropdown-item {
    padding: 10px 15px;
    border-radius: 6px;
    margin: 4px 8px;
    transition: background 0.2s;
    font-weight: 500;
    color: var(--bs-body-color);
    cursor: pointer;
}

.solid-dropdown-item:hover {
    background-color: var(--tezpos-white);
    color: var(--tezpos-primary-blue);
}

/* =========================================================
   4. MODERN JUSTIFIED TABS
   ========================================================= */
.modern-tabs {
    background: var(--bs-tertiary-bg);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--bs-border-color);
    display: flex;
    width: 100%;
}

.modern-tabs .nav-item {
    flex: 1 1 auto;
    text-align: center;
}

.modern-tabs .nav-link {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.modern-tabs .nav-link:hover:not(.active) {
    background-color: var(--tezpos-white) !important;
    color: var(--tezpos-primary-blue) !important;
}

.modern-tabs .nav-link.active {
    background: var(--tab-active-gradient);
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(26, 138, 252, 0.3);
    border: none;
}

.modern-tabs .nav-link.active i {
    color: #ffffff !important;
}

/* =========================================================
   5. MINIMAL TABLES
   ========================================================= */
.minimal-table {
    width: 100%;
    margin-bottom: 0;
}

.minimal-table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--bs-secondary-color);
    background-color: #E9ECEF !important;
    padding: 1rem 1.2rem;
    border-bottom: 2px solid var(--bs-border-color);
    white-space: nowrap;
}

.minimal-table td {
    padding: 1rem 1.2rem;
    vertical-align: middle;
    color: var(--bs-body-color);
    border-bottom: 1px solid var(--bs-border-color);
}

.minimal-table tfoot td {
    background-color: #0F4578 !important;
    color: white !important;
    border-color: #0F4578 !important;
    font-size: 0.95rem;
    padding: 1rem 1.2rem;
}

/* ===== Inner Sections (No padding on card body) ===== */
.section-panel {
    padding: 2rem;
    border-bottom: 1px dashed var(--bs-border-color);
}

.section-panel:last-child {
    border-bottom: none;
}

.info-panel-modern {
    background: linear-gradient(to bottom right, #ffffff, #E9F3FD);
    border: 1px solid #A5D0F9;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .info-panel-modern {
    background: linear-gradient(to bottom right, var(--bs-tertiary-bg), rgba(15, 69, 120, 0.2));
    border-color: #0F4578;
}

/* ===== Section Headers ===== */
.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F4578;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #1A8AFC;
    font-size: 1.4rem;
    background: #E9F3FD;
    padding: 6px;
    border-radius: 8px;
}

/* ===== Invoice Summary Box ===== */
.invoice-summary-box {
    background: #f8fafc;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

[data-bs-theme="dark"] .invoice-summary-box {
    background: var(--bs-tertiary-bg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.summary-label {
    color: var(--bs-secondary-color);
    font-weight: 600;
}

.summary-value {
    font-weight: 700;
    color: var(--bs-body-color);
}

.summary-divider {
    border-top: 1px dashed var(--bs-border-color);
    margin: 1rem 0;
}

.grand-total-row {
    background: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%);
    border-radius: 8px;
    padding: 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(26, 138, 252, 0.2);
}

.grand-total-row .summary-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.grand-total-row .summary-value {
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
}

.table-input {
    border: 1px solid rgb(121 135 161 / 50%);
    border-radius: 6px;
    padding: 0.25rem 0.4rem;
    width: 100%;
    height: 32px;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
    background: var(--bs-card-bg);
    color: var(--bs-body-color);
    font-size: 0.85rem;
}

.table-input:focus {
    border-color: #1A8AFC;
    box-shadow: 0 0 0 3px rgba(26, 138, 252, 0.15);
    outline: none;
}

/* Modal Styles */
.premium-solid-modal {
    border: none !important;
    border-radius: 20px !important;
    background-color: var(--bs-card-bg, #ffffff) !important;
    box-shadow: 0 25px 50px -12px rgba(15, 69, 120, 0.3) !important;
    overflow: hidden;
}

.premium-solid-modal .modal-header {
    background-color: var(--bs-card-bg, #ffffff);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1.5rem 2rem;
}

.modal-icon-solid {
    width: 42px;
    height: 42px;
    background: rgba(26, 138, 252, 0.1);
    color: #1A8AFC;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 15px;
    border: 1px solid rgba(26, 138, 252, 0.2);
}

.btn-solid-save {
    background: linear-gradient(135deg, #0765FD 0%, #1A8AFC 100%);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-solid-save:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%);
    box-shadow: 0 6px 15px rgba(15, 69, 120, 0.35);
}

.btn-solid-cancel {
    background-color: transparent;
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-solid-cancel:hover {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-secondary-color);
}

/* Specific elements inside tables */
.product-img-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
    padding: 4px;
}

.product-meta-badge {
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
    font-family: monospace;
}

/* =========================================================
   6. DROPDOWN ACTIONS (Tables/Lists)
   ========================================================= */
.manage-dropdown-menu {
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-card-bg);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(15, 69, 120, 0.15);
    /* Tinted Shadow */
    min-width: 180px;
}

.manage-dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--bs-body-color);
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
    text-decoration: none;
}

.manage-dropdown-item:hover {
    background-color: var(--tezpos-white);
    color: var(--tezpos-primary-blue);
}

.manage-dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

/* =========================================================
   7. THIRD-PARTY OVERRIDES
   ========================================================= */

/* Trix Editor Override */
trix-editor {
    border-radius: 8px !important;
    border: 1px solid rgb(121 135 161 / 50%) !important;
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    padding: 1rem !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    min-height: 150px;
}

trix-editor:focus-within {
    border-color: var(--tezpos-primary-blue) !important;
    box-shadow: 0 0 0 4px rgba(26, 138, 252, 0.15) !important;
    outline: none;
}

trix-toolbar {
    background: var(--bs-tertiary-bg) !important;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 8px;
    border: 1px solid rgb(121 135 161 / 50%) !important;
}

/* Image Upload Wrapper */
.image-preview-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    border: 2px dashed var(--tezpos-soft-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tezpos-white);
    color: var(--tezpos-secondary-blue);
    overflow: hidden;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.image-preview-wrapper:hover {
    border-color: var(--tezpos-primary-blue);
    background: rgba(165, 208, 249, 0.3);
}

.image-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================================
   8. UTILITIES
   ========================================================= */

/* Custom Global Scrollbar */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: var(--tezpos-soft-blue);
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--tezpos-light-blue);
}



/* ===== Premium Navbar Styling ===== */
.premium-navbar {
    background-color: var(--bs-body-bg, #ffffff);
    box-shadow: 0 4px 20px rgba(15, 69, 120, 0.06);
    border-bottom: 1px solid #E9F3FD;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .premium-navbar {
    border-bottom-color: #0F4578;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ===== Clock Widget (Left Aligned) ===== */
.clock-widget {
    background: linear-gradient(135deg, #ffffff 0%, #E9F3FD 100%);
    border: 1px solid #A5D0F9;
    border-radius: 12px;
    padding: 0.35rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Aligned to left */
    line-height: 1.2;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.8);
}

[data-bs-theme="dark"] .clock-widget {
    background: var(--bs-tertiary-bg);
    border-color: #0F4578;
}

.clock-time {
    font-weight: 800;
    font-size: 1.05rem;
    color: #1560A7;
    letter-spacing: 0.5px;
}

.clock-date {
    font-size: 0.7rem;
    color: #62ACF4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Quick Action Buttons ===== */
.nav-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.25s ease;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.nav-action-btn:hover {
    transform: translateY(-2px);
}

.nav-btn-pos {
    background: linear-gradient(135deg, #0765FD 0%, #1A8AFC 100%);
    color: white;
}

.nav-btn-pos:hover {
    background: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 138, 252, 0.3);
}

/* Calculator: Soft Light Blue/Teal */
.nav-btn-calc {
    background-color: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.nav-btn-calc:hover {
    background-color: #bae6fd;
    color: #0369a1;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

/* Expense: Soft Red */
.nav-btn-exp {
    background-color: #fee2e2;
    color: #e11d48;
    border: 1px solid #fecaca;
}

.nav-btn-exp:hover {
    background-color: #fecaca;
    color: #be123c;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

/* ===== User Profile Dropdown ===== */
.nav-profile-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #62ACF4;
    padding: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.nav-profile-img:hover {
    border-color: #1A8AFC;
    box-shadow: 0 0 10px rgba(26, 138, 252, 0.3);
}

.profile-dropdown-menu {
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(15, 69, 120, 0.15);
    min-width: 260px;
    padding: 0;
    overflow: hidden;
    margin-top: 10px !important;
}

.profile-header {
    background: linear-gradient(135deg, #E9F3FD 0%, #ffffff 100%);
    border-bottom: 1px dashed #A5D0F9;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

[data-bs-theme="dark"] .profile-header {
    background: var(--bs-tertiary-bg);
    border-bottom-color: #0F4578;
}

.profile-header-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(26, 138, 252, 0.2);
    margin-bottom: 0.8rem;
}

.profile-dropdown-item {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    color: #1560A7;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--bs-border-color);
}

.profile-dropdown-item:last-child {
    border-bottom: none;
}

.profile-dropdown-item:hover {
    background-color: #E9F3FD;
    color: #1A8AFC;
}

.profile-dropdown-item i {
    color: #62ACF4;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.profile-dropdown-item:hover i {
    color: #1A8AFC;
}

.logout-item {
    color: #e11d48;
}

.logout-item i {
    color: #fda4af;
}

.logout-item:hover {
    background-color: #fee2e2;
    color: #be123c;
}

.logout-item:hover i {
    color: #e11d48;
}

/* =========================================================
   PROCESS RETURN SCREEN SPECIFIC STYLES
   ========================================================= */

/* Fixes Transparency and Z-Index (Behind Table Header) issues */
.return-search-dropdown {
    background-color: #ffffff !important;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 69, 120, 0.2) !important;
    z-index: 1060 !important;
    /* Forces dropdown ABOVE sticky-top table headers */
}

/* Forces solid background on list items to prevent transparency */
.return-search-dropdown .list-group-item {
    background-color: #ffffff !important;
    border: none;
    border-bottom: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.return-search-dropdown .list-group-item:last-child {
    border-bottom: none;
}

.return-search-dropdown .list-group-item:hover {
    background-color: var(--tezpos-white) !important;
    color: var(--tezpos-primary-blue) !important;
}

/* Force text to be white on active primary buttons */
.btn-modern-primary.text-white,
.btn-modern-primary.text-white i {
    color: #ffffff !important;
}


/* =========================================================
   CLOSE REGISTER SCREEN SPECIFIC STYLES
   ========================================================= */

/* Denomination Input Cards */
.denom-box {
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-card-bg);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.denom-box:focus-within {
    border-color: var(--tezpos-primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 138, 252, 0.15) !important;
}

.denom-label {
    background: var(--bs-tertiary-bg);
    padding: 0.4rem 0.6rem;
    text-align: center;
    border-bottom: 1px solid var(--bs-border-color);
}

.denom-input-wrapper {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: var(--bs-body-bg);
}

.denom-input {
    border: none;
    background: transparent;
    width: 100%;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--bs-body-color);
    outline: none;
    padding-left: 5px;
}

.denom-input::placeholder {
    color: var(--bs-secondary-color);
    opacity: 0.5;
}

/* Difference Summary Box States */
.difference-summary-box {
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

/* State 1: Balanced (Zero Difference) */
.balanced-box {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
    border: 1px solid #059669;
}

/* State 2: Shortage (Negative Difference) */
.shortage-box {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
    border: 1px solid #dc2626;
}

/* State 3: Overage (Positive Difference) */
.overage-box {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
    border: 1px solid #d97706;
}

/* Danger Button Override */
.btn-modern-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    transition: all 0.3s ease;
}

.btn-modern-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3) !important;
    color: white;
}

/* =========================================================
   Extracted From: livewire/attendance-sheet.blade.php
   ========================================================= */
/* ===== Premium Attendance UI ===== */
.premium-attendance-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    background: #fff;
    overflow: hidden;
}

.filter-dock {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
}

/* ===== Table Styling ===== */
.attendance-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.attendance-table th {
    background: #1e293b;
    color: #f8fafc;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    font-weight: 600;
}

.attendance-table td {
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    padding: 1rem 1.5rem;
    transition: background-color 0.2s;
}

/* Salary Math Columns - Subtle Backgrounds */
.math-col-gross {
    background-color: #f8fafc;
    font-weight: 600;
}

.math-col-adv {
    background-color: #fff1f2;
    color: #e11d48;
    font-weight: 600;
}

.math-col-net {
    background-color: #eff6ff;
    color: #0369a1;
    font-weight: 700;
    font-size: 1.05rem;
}

.math-col-paid {
    background-color: #f0fdf4;
    color: #15803d;
    font-weight: 600;
}

.math-col-due {
    background-color: #fffbeb;
    color: #b45309;
    font-weight: 700;
}

/* ===== TRUE CALENDAR MODAL GRID ===== */
.true-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    padding: 10px 0;
}

.cal-header-day {
    text-align: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 5px;
}

.cal-empty-cell {
    background: transparent;
    border: none;
    min-height: 80px;
}

.calendar-day-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
    min-height: 95px;
}

.calendar-day-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.calendar-day-card.is-today {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.cal-date-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin: 4px 0 8px 0;
}

/* Status Colors - Soft & Premium */
.btn-status {
    width: 100%;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 2px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.status-ui-present {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-ui-half-day {
    background-color: #fef9c3;
    color: #d97706;
}

.status-ui-off {
    background-color: #e0f2fe;
    color: #0284c7;
}

.status-ui-absent {
    background-color: #fee2e2;
    color: #dc2626;
}

.status-ui-present:hover {
    border-color: #16a34a;
}

.status-ui-half-day:hover {
    border-color: #d97706;
}

.status-ui-off:hover {
    border-color: #0284c7;
}

.status-ui-absent:hover {
    border-color: #dc2626;
}

/* Custom Scrollbar */
.custom-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Receipt Modal Styling */
.receipt-ticket {
    background: #fff;
    border-radius: 12px;
    position: relative;
}

.receipt-divider {
    border-top: 2px dashed #e2e8f0;
    margin: 20px 0;
    position: relative;
}

@media print {
    body * {
        visibility: hidden;
    }

    #printableVoucher,
    #printableVoucher * {
        visibility: visible;
    }

    #printableVoucher {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}


/* =========================================================
   Extracted From: livewire/customer-modal.blade.php
   ========================================================= */
.customer-modal-tabs {
    border-bottom: 2px solid var(--bs-border-color);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.customer-modal-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 0.5rem;
    background: transparent;
    position: relative;
    transition: all 0.2s ease;
}

.customer-modal-tabs .nav-link:hover {
    color: var(--tezpos-primary-blue);
}

.customer-modal-tabs .nav-link.active {
    color: var(--tezpos-primary-blue);
    background: transparent;
}

.customer-modal-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--tezpos-primary-blue);
    border-radius: 4px 4px 0 0;
}


/* =========================================================
   Extracted From: livewire/dashboard.blade.php
   ========================================================= */
/* ===== Premium Stat Cards (Reduced Height, 3-in-a-row optimized) ===== */
.stat-card-modern {
    border: none;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.1);
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px -8px rgba(0, 0, 0, 0.2);
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* Decorative Blob */
.stat-card-modern .card-blob {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    right: -20px;
    top: -20px;
    transition: transform 0.4s ease;
}

.stat-card-modern:hover .card-blob {
    transform: scale(1.15);
}

.stat-card-modern .card-blob-2 {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    right: 40px;
    bottom: -10px;
}

/* 8 Unique Gradient Themes */
.bg-emerald-gold {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
}

.bg-royal-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
}

.bg-ocean-blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
}

.bg-sunset-rose {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%);
}

.bg-slate-storm {
    background: linear-gradient(135deg, #475569 0%, #334155 50%, #1e293b 100%);
}

.bg-amber-fire {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}

.bg-midnight-indigo {
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 50%, #0f172a 100%);
}

.bg-magenta-bliss {
    background: linear-gradient(135deg, #db2777 0%, #c026d3 50%, #9333ea 100%);
}

/* Teal Gradient for Expense Card */
.bg-teal-breeze {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
}

/* Icon Container (Smaller) */
.stat-icon-modern {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Card Content Typography (Resized to fit big numbers) */
.stat-card-modern .card-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.1rem;
}

.stat-card-modern .card-value {
    font-size: 1.15rem;
    /* Reduced from 1.5rem to fit long prices */
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1.2;
    white-space: nowrap;
    /* Forces single line */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Adds ... if it somehow still overflows */
}

/* Dropdown Styling */
.stat-card-modern .dropdown-toggle-modern {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    color: white;
}

.stat-card-modern .dropdown-toggle-modern:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== Premium Table Cards ===== */
.premium-table-card {
    border: none;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(15, 69, 120, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.premium-table-card:hover {
    box-shadow: 0 10px 30px rgba(15, 69, 120, 0.1);
}

.premium-table-card .card-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.2rem 1.5rem;
    border: none;
}

.premium-table-card .card-header-gradient.expiry-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.premium-table-card .header-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.premium-table-card .header-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.premium-table-card .header-subtitle {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Stat Typography */
.saas-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.saas-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Truncates super long numbers */
}

/* Subtle Dropdown Button */
.saas-dropdown-btn {
    color: #94a3b8;
    background: transparent;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.saas-dropdown-btn:hover,
.saas-dropdown-btn[aria-expanded="true"] {
    background: #f1f5f9;
    color: #0f172a;
}

/* ===== Premium Table Cards ===== */
.saas-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(15, 69, 120, 0.03);
    overflow: hidden;
    height: 100%;
}

.saas-table-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.saas-table-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.saas-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.icon-rose {
    background: #ffe4e6;
    color: #e11d48;
}

.icon-amber {
    background: #fef3c7;
    color: #b45309;
}

/* Clean Table */
.saas-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.saas-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.saas-table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
}

.saas-table tbody tr:hover td {
    background: #f8fafc;
}

/* Soft Badges */
.saas-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.saas-badge.danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.saas-badge.warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* Expiry Internal Boxes */
.saas-expiry-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.saas-expiry-box-header {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.saas-expiry-box.warning .saas-expiry-box-header {
    background: #fffbeb;
    color: #b45309;
    border-bottom: 1px solid #fde68a;
}

.saas-expiry-box.danger .saas-expiry-box-header {
    background: #fef2f2;
    color: #b91c1c;
    border-bottom: 1px solid #fecaca;
}

.saas-expiry-box .saas-table td {
    padding: 0.75rem 1rem;
}

/* Scrollbar */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* =========================================================
   Extracted From: livewire/manage-backup.blade.php
   ========================================================= */
.restore-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    /* Deep slate with high opacity */
    backdrop-filter: blur(8px);
    /* Modern blur effect */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   Extracted From: livewire/notification-bell.blade.php
   ========================================================= */
/* ===== Notification Trigger Button ===== */
.nav-btn-notif {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    color: #1560A7;
    border: 1px solid var(--bs-border-color);
    position: relative;
}

.nav-btn-notif:hover,
.nav-btn-notif[aria-expanded="true"] {
    background-color: #E9F3FD;
    color: #1A8AFC;
    border-color: #A5D0F9;
    box-shadow: 0 4px 12px rgba(26, 138, 252, 0.15);
}

/* Pulsing Badge Animation */
.pulse-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    background-color: #ef4444;
    /* Bright Red */
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite;
    padding: 0 4px;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* ===== Premium Dropdown Container ===== */
.premium-notif-dropdown {
    border: 1px solid var(--bs-border-color);
    border-radius: 16px !important;
    box-shadow: 0 15px 40px rgba(15, 69, 120, 0.2) !important;
    min-width: 360px;
    max-width: 360px;
    overflow: hidden;
    margin-top: 12px !important;
    padding: 0 !important;
    background-color: #ffffff !important;
    /* Force solid light background */
    z-index: 1050;
}

/* ===== Header ===== */
.notif-header {
    background: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%);
    padding: 1.2rem 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
}

.notif-header-title {
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-header-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.notif-header-actions {
    display: flex;
    gap: 8px;
}

.notif-header-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.notif-header-btn:hover {
    background: white;
    color: #1560A7;
    transform: translateY(-1px);
}

/* ===== Notification Items ===== */
.notif-body {
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: #ffffff !important;
    /* Force solid light background */
    border-radius: 0 0 16px 16px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    text-decoration: none;
    border-bottom: 1px solid var(--bs-border-color);
    transition: all 0.2s ease;
    position: relative;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
}

/* Unread State Styling */
.notif-item.unread {
    background-color: #f4f9ff;
    border-left: 4px solid #1A8AFC;
    padding-left: calc(1.2rem - 4px);
}

.notif-item.unread .notif-title {
    font-weight: 800;
    color: #0F4578;
}

/* Icon Boxes */
.notif-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 12px;
}

.notif-icon-danger {
    background: #fee2e2;
    color: #e11d48;
}

.notif-icon-warning {
    background: #fef3c7;
    color: #d97706;
}

.notif-icon-info {
    background: #E9F3FD;
    color: #1A8AFC;
}

/* Typography */
.notif-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bs-body-color, #212529);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.notif-text {
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.notif-time {
    font-size: 0.7rem;
    color: #62ACF4;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Item Action (Mark as Read inside item) */
.notif-item-action {
    opacity: 0;
    transition: opacity 0.2s;
    margin-left: auto;
    padding-left: 10px;
}

.notif-item:hover .notif-item-action {
    opacity: 1;
}

.btn-mark-read {
    background: transparent;
    border: 1px solid #A5D0F9;
    color: #1A8AFC;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-mark-read:hover {
    background: #1A8AFC;
    color: white;
    border-color: #1A8AFC;
}

/* Empty State */
.notif-empty {
    padding: 3rem 2rem;
    text-align: center;
    background-color: #ffffff;
    border-radius: 0 0 16px 16px;
}

.notif-empty-icon {
    font-size: 3rem;
    color: #A5D0F9;
    margin-bottom: 1rem;
    display: block;
}

/* Custom Scrollbar */
.notif-body::-webkit-scrollbar {
    width: 6px;
}

.notif-body::-webkit-scrollbar-track {
    background: transparent;
}

.notif-body::-webkit-scrollbar-thumb {
    background: #A5D0F9;
    border-radius: 10px;
}

.notif-body::-webkit-scrollbar-thumb:hover {
    background: #62ACF4;
}

/* ==========================================
           DARK MODE FIX (Forces Solid Colors)
           Covers multiple dark mode theme attributes
        ========================================== */
[data-bs-theme="dark"] .premium-notif-dropdown,
[data-theme="dark"] .premium-notif-dropdown,
.dark-mode .premium-notif-dropdown {
    background-color: #1e293b !important;
    /* Solid Dark Slate */
    border-color: #334155 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .notif-body,
[data-theme="dark"] .notif-body,
.dark-mode .notif-body,
[data-bs-theme="dark"] .notif-empty,
[data-theme="dark"] .notif-empty,
.dark-mode .notif-empty {
    background-color: #1e293b !important;
    /* Solid Dark Slate */
}

[data-bs-theme="dark"] .notif-item:hover,
[data-theme="dark"] .notif-item:hover,
.dark-mode .notif-item:hover {
    background-color: #334155 !important;
    /* Lighter Dark Hover */
}

[data-bs-theme="dark"] .notif-item.unread,
[data-theme="dark"] .notif-item.unread,
.dark-mode .notif-item.unread {
    background-color: rgba(26, 138, 252, 0.15) !important;
    /* Tinted Blue Dark */
    border-left-color: #3b82f6;
}

[data-bs-theme="dark"] .notif-title,
[data-theme="dark"] .notif-title,
.dark-mode .notif-title {
    color: #f8fafc !important;
    /* Bright text */
}

[data-bs-theme="dark"] .notif-item.unread .notif-title,
[data-theme="dark"] .notif-item.unread .notif-title,
.dark-mode .notif-item.unread .notif-title {
    color: #60a5fa !important;
    /* Accent Blue text for unread */
}

[data-bs-theme="dark"] .notif-text,
[data-theme="dark"] .notif-text,
.dark-mode .notif-text {
    color: #94a3b8 !important;
    /* Muted text */
}

[data-bs-theme="dark"] .pulse-badge {
    border-color: #1e293b;
}


/* =========================================================
   Extracted From: livewire/manage-user.blade.php
   ========================================================= */
/* ===== Clean Premium Form Overrides ===== */
.form-section-card {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.form-section-icon {
    width: 36px;
    height: 36px;
    background: var(--tezpos-white);
    color: var(--tezpos-primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tezpos-dark-navy);
    margin: 0;
}

/* Clean Dropzone for Files */
.modern-dropzone {
    border: 2px dashed var(--bs-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    background: var(--bs-tertiary-bg);
    transition: all 0.2s;
    position: relative;
}

.modern-dropzone:hover {
    border-color: var(--tezpos-primary-blue);
    background: var(--tezpos-white);
}

.modern-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Avatar Upload Look */
.avatar-upload-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-tertiary-bg);
    position: relative;
}

.avatar-upload-box:hover {
    border-color: var(--tezpos-primary-blue);
}

.avatar-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bs-secondary-color);
    object-fit: cover;
}


/* =========================================================
   Extracted From: livewire/manage-roles.blade.php
   ========================================================= */
/* ===== Clean Premium Form Overrides ===== */
.form-section-card {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.form-section-icon {
    width: 36px;
    height: 36px;
    background: var(--tezpos-white);
    color: var(--tezpos-primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tezpos-dark-navy);
    margin: 0;
}

/* Seamless Inputs */
.modern-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
}

.modern-input-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 14px;
    transition: all 0.2s ease;
    position: relative;
}

.modern-input-group.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.modern-input-group:focus-within {
    background: #ffffff;
    border-color: var(--tezpos-primary-blue);
    box-shadow: 0 0 0 4px rgba(26, 138, 252, 0.1);
}

.modern-input-group i.input-icon {
    color: #94a3b8;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.modern-input-group:focus-within i.input-icon {
    color: var(--tezpos-primary-blue);
}

.modern-input-group input,
.modern-input-group select {
    border: none;
    background: transparent;
    padding: 12px 10px;
    width: 100%;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: none !important;
    outline: none !important;
}

.modern-input-group input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* Permission Cards */
.permission-module-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    height: 100%;
    transition: all 0.2s ease;
}

.permission-module-card:hover {
    border-color: var(--tezpos-soft-blue);
    box-shadow: 0 4px 15px rgba(26, 138, 252, 0.08);
    transform: translateY(-2px);
}

.permission-module-header {
    background: #f8fafc;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    color: #0F4578;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom Checkboxes */
.premium-checkbox .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.1rem;
    border-color: #cbd5e1;
    cursor: pointer;
}

.premium-checkbox .form-check-input:checked {
    background-color: var(--tezpos-primary-blue);
    border-color: var(--tezpos-primary-blue);
}

.premium-checkbox .form-check-label {
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 0.25rem;
}

.premium-checkbox .form-check-input:checked~.form-check-label {
    color: #0F4578;
}


/* =========================================================
   Extracted From: livewire/partials/navbar.blade.php
   ========================================================= */
/* ===== Premium Navbar Styling ===== */
.premium-navbar {
    background-color: var(--bs-body-bg, #ffffff);
    box-shadow: 0 4px 20px rgba(15, 69, 120, 0.06);
    border-bottom: 1px solid #E9F3FD;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .premium-navbar {
    border-bottom-color: #0F4578;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ===== Clock Widget (Left Aligned) ===== */
.clock-widget {
    background: linear-gradient(135deg, #ffffff 0%, #E9F3FD 100%);
    border: 1px solid #A5D0F9;
    border-radius: 12px;
    padding: 0.35rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Aligned to left */
    line-height: 1.2;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.8);
}

[data-bs-theme="dark"] .clock-widget {
    background: var(--bs-tertiary-bg);
    border-color: #0F4578;
}

.clock-time {
    font-weight: 800;
    font-size: 1.05rem;
    color: #1560A7;
    letter-spacing: 0.5px;
}

.clock-date {
    font-size: 0.7rem;
    color: #62ACF4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Quick Action Buttons ===== */
.nav-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.25s ease;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.nav-action-btn:hover {
    transform: translateY(-2px);
}

.nav-btn-pos {
    background: linear-gradient(135deg, #0765FD 0%, #1A8AFC 100%);
    color: white;
}

.nav-btn-pos:hover {
    background: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 138, 252, 0.3);
}

/* Calculator: Soft Light Blue/Teal */
.nav-btn-calc {
    background-color: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.nav-btn-calc:hover {
    background-color: #bae6fd;
    color: #0369a1;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

/* Expense: Soft Red */
.nav-btn-exp {
    background-color: #fee2e2;
    color: #e11d48;
    border: 1px solid #fecaca;
}

.nav-btn-exp:hover {
    background-color: #fecaca;
    color: #be123c;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

/* ===== User Profile Dropdown ===== */
.nav-profile-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #62ACF4;
    padding: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.nav-profile-img:hover {
    border-color: #1A8AFC;
    box-shadow: 0 0 10px rgba(26, 138, 252, 0.3);
}

.profile-dropdown-menu {
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(15, 69, 120, 0.15);
    min-width: 260px;
    padding: 0;
    overflow: hidden;
    margin-top: 10px !important;
}

.profile-header {
    background: linear-gradient(135deg, #E9F3FD 0%, #ffffff 100%);
    border-bottom: 1px dashed #A5D0F9;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

[data-bs-theme="dark"] .profile-header {
    background: var(--bs-tertiary-bg);
    border-bottom-color: #0F4578;
}

.profile-header-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(26, 138, 252, 0.2);
    margin-bottom: 0.8rem;
}

.profile-dropdown-item {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    color: #1560A7;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--bs-border-color);
}

.profile-dropdown-item:last-child {
    border-bottom: none;
}

.profile-dropdown-item:hover {
    background-color: #E9F3FD;
    color: #1A8AFC;
}

.profile-dropdown-item i {
    color: #62ACF4;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.profile-dropdown-item:hover i {
    color: #1A8AFC;
}

.logout-item {
    color: #e11d48;
}

.logout-item i {
    color: #fda4af;
}

.logout-item:hover {
    background-color: #fee2e2;
    color: #be123c;
}

.logout-item:hover i {
    color: #e11d48;
}

.return-super-admin-btn {
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
}


/* ===== Global Search Bar ===== */
.global-search-wrapper {
    flex: 1;
    max-width: 450px;
    margin: 0 1.5rem;
    position: relative;
}

.global-search-input {
    width: 100%;
    background-color: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 0.5rem 1rem 0.5rem 2.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #334155;
}

.global-search-input:focus {
    background-color: #ffffff;
    border-color: #62ACF4;
    box-shadow: 0 0 0 4px rgba(98, 172, 244, 0.15);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
    pointer-events: none;
}

.search-shortcut {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #e2e8f0;
    border: 1px solid #cbd5e1;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
    pointer-events: none;
}

[data-bs-theme="dark"] .global-search-input {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    border-color: #0F4578;
}

[data-bs-theme="dark"] .search-shortcut {
    background-color: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}


/* =========================================================
   Extracted From: livewire/partials/super-admin-navbar.blade.php
   ========================================================= */
.super-admin-navbar {
    background-color: var(--bs-body-bg, #ffffff);
    border-bottom: 1px solid var(--bs-border-color);
    box-shadow: 0 4px 20px rgba(15, 69, 120, 0.06);
}

.super-admin-profile-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #62acf4;
    padding: 2px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.super-admin-profile-img:hover {
    border-color: #1A8AFC;
    box-shadow: 0 0 10px rgba(26, 138, 252, 0.25);
}

.super-admin-profile-dropdown {
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 12px 28px rgba(15, 69, 120, 0.14);
    overflow: hidden;
    padding: 0;
    margin-top: 10px !important;
}

.super-admin-profile-header {
    background: linear-gradient(135deg, #e9f3fd 0%, #ffffff 100%);
    border-bottom: 1px dashed #a5d0f9;
    padding: 1rem;
}

[data-bs-theme="dark"] .super-admin-profile-header {
    background: var(--bs-tertiary-bg);
    border-bottom-color: #0f4578;
}

.super-admin-profile-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--bs-body-color);
    border-bottom: 1px solid var(--bs-border-color);
    text-decoration: none;
}

.super-admin-profile-item:last-child {
    border-bottom: none;
}

.super-admin-profile-item:hover {
    background-color: rgba(98, 172, 244, 0.12);
    color: var(--bs-body-color);
}


/* =========================================================
   Extracted From: livewire/purchase-add-edit.blade.php
   ========================================================= */
/*
     * Keeps the Product Items section toolbar fixed after it reaches the top of
     * the viewport. The CSS variable allows easy offset tuning if the layout has
     * a fixed top bar in other pages.
     */
.product-items-sticky-header {
    position: sticky;
    top: var(--purchase-items-sticky-top, 60px);
    z-index: 30;
    background: #ffffff;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9eef4;
}

/*
     * Ensures Supplier/Brand modal trigger buttons are visibly colored in the
     * default state. Scoped to this page to avoid global button side effects.
     */
.purchase-modal-trigger-btn {
    background: #1A8AFC !important;
    border-color: #1A8AFC !important;
    color: #ffffff !important;
}

.purchase-modal-trigger-btn:hover:not(:disabled),
.purchase-modal-trigger-btn:focus-visible:not(:disabled) {
    background: #1560A7 !important;
    border-color: #1560A7 !important;
    color: #ffffff !important;
}


/* =========================================================
   Extracted From: livewire/settings-manager.blade.php
   ========================================================= */
.settings-info-banner {
    border: 1px solid rgba(26, 138, 252, 0.25);
    background: linear-gradient(135deg, rgba(26, 138, 252, 0.08), rgba(16, 185, 129, 0.06));
    border-radius: 14px;
    padding: 0.95rem 1rem;
}

.settings-tab-nav .nav-link {
    border-radius: 10px;
    font-weight: 700;
    padding: 0.55rem 0.95rem;
    color: #334155;
    border: 1px solid #d8e2ef;
    background: #f8fbff;
}

.settings-tab-nav .nav-link.active {
    color: #ffffff;
    border-color: #1A8AFC;
    background: linear-gradient(135deg, #1A8AFC, #0765FD);
    box-shadow: 0 8px 18px rgba(26, 138, 252, 0.25);
}

.settings-group-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    padding: 1.1rem;
}

.settings-subgroup-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.settings-item-card {
    border: 1px solid #e5edf8;
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.95rem;
    height: 100%;
}

.settings-key-badge {
    display: inline-flex;
    align-items: center;
    border: 1px dashed #cbd5e1;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.7rem;
    color: #475569;
    background: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.settings-helper-text {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
}

.settings-status-pill {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.2rem 0.58rem;
    border: 1px solid transparent;
}

.settings-status-pill.default {
    color: #0f766e;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.settings-status-pill.override {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.business-profile-card {
    border: 1px solid #dce7f5;
    border-radius: 14px;
    background: #f9fbff;
    padding: 1.05rem;
    height: 100%;
}

.business-logo-preview {
    width: 100%;
    height: 92px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
}

.business-logo-preview img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}


/* =========================================================
   Extracted From: livewire/super-admin-dashboard.blade.php
   ========================================================= */
.sa-stat-card {
    border: 1px solid #e5edf7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 69, 120, 0.06);
    transition: all 0.25s ease;
    height: 100%;
}

.sa-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 69, 120, 0.12);
}

.sa-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sa-bg-blue {
    background: rgba(26, 138, 252, 0.12);
    color: #1A8AFC;
}

.sa-bg-green {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.sa-bg-orange {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.sa-bg-red {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.sa-bg-purple {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.sa-bg-teal {
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
}

.sa-stat-label {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.sa-stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}


/* =========================================================
   Extracted From: livewire/super-admin-settings-definitions.blade.php
   ========================================================= */
.saas-settings-modal {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #f4f8ff;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
}

.saas-settings-header {
    position: relative;
    padding: 1.2rem 1.4rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0ea5e9 100%);
    border: 0;
}

.saas-settings-header::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    right: -90px;
    top: -160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(0.5px);
}

.saas-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.2);
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.saas-modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 1;
}

.saas-modal-subtitle {
    font-size: 0.77rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    position: relative;
    z-index: 1;
}

.saas-chip {
    position: relative;
    z-index: 1;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.3rem 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
}

.saas-modal-close {
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.saas-settings-body {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
    padding: 1.2rem;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.saas-settings-body::-webkit-scrollbar {
    width: 8px;
}

.saas-settings-body::-webkit-scrollbar-track {
    background: #e7eefb;
    border-radius: 999px;
}

.saas-settings-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #60a5fa, #2563eb);
    border-radius: 999px;
}

.saas-section-card {
    background: #ffffff;
    border: 1px solid #e5edf8;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    height: 100%;
}

.saas-section-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.saas-section-subtitle {
    margin: 0.2rem 0 0.9rem;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.saas-field-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.32rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.saas-field-label i {
    color: #1d4ed8;
    font-size: 0.92rem;
}

.saas-input,
.saas-select,
.saas-textarea {
    border-radius: 12px;
    border: 1px solid #d9e5f6;
    background: #f9fbff;
    color: #0f172a;
    font-size: 0.86rem;
    padding: 0.62rem 0.75rem;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
}

.saas-textarea {
    min-height: 92px;
}

.saas-input:focus,
.saas-select:focus,
.saas-textarea:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.saas-hint {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 0.35rem;
}

.saas-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.saas-toggle-card {
    border: 1px solid #dbe7f8;
    border-radius: 12px;
    padding: 0.55rem 0.62rem;
    background: #f9fbff;
}

.saas-toggle-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.saas-toggle-desc {
    margin: 0.16rem 0 0;
    font-size: 0.66rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.25;
}

.saas-modal-footer {
    border: 0;
    background: #ffffff;
    padding: 0.95rem 1.2rem 1.1rem;
}

.saas-btn-cancel {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.58rem 1.05rem;
    transition: all 0.2s ease;
}

.saas-btn-cancel:hover {
    background: #eef2f7;
    border-color: #94a3b8;
}

.saas-btn-primary {
    border: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 52%, #0f766e 100%);
    color: #ffffff;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.58rem 1.25rem;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.saas-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.3);
}

@media (max-width: 767.98px) {
    .saas-toggle-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Extracted From: livewire/update-profile-image.blade.php
   ========================================================= */
/* ===== Premium Card Styling ===== */
.premium-profile-card {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(15, 69, 120, 0.1);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    position: relative;
}

/* ===== Card Header Background ===== */
.profile-cover-bg {
    height: 140px;
    background: linear-gradient(135deg, #A5D0F9 0%, #1A8AFC 100%);
    position: relative;
}

/* Decorative Pattern (Optional subtle overlay) */
.profile-cover-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

/* ===== Avatar Styling ===== */
.avatar-wrapper {
    margin-top: -70px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.avatar-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #ffffff;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 69, 120, 0.15);
    transition: all 0.3s ease;
}

.preview-active .avatar-img {
    border-color: #10b981;
    /* Success Green border when new image is picked */
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.status-badge {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
}

/* ===== Custom File Upload Button ===== */
.upload-btn-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    border: 2px dashed #A5D0F9;
    transition: all 0.2s ease;
}

.upload-btn-container:hover {
    background: #E9F3FD;
    border-color: #1A8AFC;
}

.upload-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* ===== Action Buttons ===== */
.btn-brand-primary {
    background: linear-gradient(135deg, #0765FD 0%, #1A8AFC 100%);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(26, 138, 252, 0.25);
}

.btn-brand-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 69, 120, 0.3);
    color: white;
}

.btn-brand-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   Extracted From: livewire/customers.blade.php
   ========================================================= */
.custom-form-tabs {
    border-bottom: 2px solid var(--bs-border-color);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.custom-form-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 0.5rem;
    background: transparent;
    position: relative;
    transition: all 0.2s ease;
}

.custom-form-tabs .nav-link:hover {
    color: var(--tezpos-primary-blue);
}

.custom-form-tabs .nav-link.active {
    color: var(--tezpos-primary-blue);
    background: transparent;
}

.custom-form-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--tezpos-primary-blue);
    border-radius: 4px 4px 0 0;
}


/* =========================================================
   Extracted From: livewire/suppliers.blade.php
   ========================================================= */
.custom-form-tabs {
    border-bottom: 2px solid var(--bs-border-color);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.custom-form-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 0.5rem;
    background: transparent;
    position: relative;
    transition: all 0.2s ease;
}

.custom-form-tabs .nav-link:hover {
    color: var(--tezpos-primary-blue);
}

.custom-form-tabs .nav-link.active {
    color: var(--tezpos-primary-blue);
    background: transparent;
}

.custom-form-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--tezpos-primary-blue);
    border-radius: 4px 4px 0 0;
}


/* =========================================================
   Extracted From: livewire/purchase-sale-report.blade.php
   ========================================================= */
.custom-form-tabs {
    border-bottom: 2px solid var(--bs-border-color);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.custom-form-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 0.5rem;
    background: transparent;
    position: relative;
    transition: all 0.2s ease;
}

.custom-form-tabs .nav-link:hover {
    color: var(--tezpos-primary-blue);
}

.custom-form-tabs .nav-link.active {
    color: var(--tezpos-primary-blue);
    background: transparent;
}

.custom-form-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--tezpos-primary-blue);
    border-radius: 4px 4px 0 0;
}


/* =========================================================
   Extracted From: livewire/stock-expiry-report.blade.php
   ========================================================= */
.custom-form-tabs {
    border-bottom: 2px solid var(--bs-border-color);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.custom-form-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 0.5rem;
    background: transparent;
    position: relative;
    transition: all 0.2s ease;
}

.custom-form-tabs .nav-link:hover {
    color: var(--tezpos-primary-blue);
}

.custom-form-tabs .nav-link.active {
    color: var(--tezpos-primary-blue);
    background: transparent;
}

.custom-form-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--tezpos-primary-blue);
    border-radius: 4px 4px 0 0;
}



/* =========================================================
   Extracted From: changelog.blade.php
   ========================================================= */
.changelog-gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.changelog-gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(180deg);
    }
}

.version-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.3);
    transition: all 0.3s ease;
}

.version-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 87, 108, 0.4);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.timeline-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transition: height 0.3s ease;
}

.timeline-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.timeline-card:hover::before {
    height: 100%;
}

.timeline-card.latest {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea;
}

.timeline-card.latest::before {
    height: 100%;
    width: 5px;
}

.type-badge {
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-major {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.type-minor {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

.type-patch {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #666;
}

.type-build {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    color: #555;
}

.version-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   Extracted From: components/layouts/app.blade.php
   ========================================================= */
:root {
    /* Sidebar typography defaults. These variables are updated from Alpine and persisted in localStorage. */
    --app-sidebar-font-size: 14px;
    --app-sidebar-font-weight: 500;
}

.sticky-search {
    position: sticky;
    top: 60px;
    /* <--- CHANGE THIS VALUE */
    z-index: 100;
    background-color: var(--bs-body-bg);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 6px -6px rgba(0, 0, 0, 0.3);
}

#sticky-fab-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    /* Ensures it floats on top */
}

#sticky-fab-button .btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* Makes it perfectly round */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Keep PHPFlasher notifications above Bootstrap modals/backdrops. */
.fl-wrapper {
    z-index: 2000 !important;
}

/* Sidebar typography controls (user-managed via the settings FAB) */
.sidebar .sidebar-body .nav .nav-item .nav-link .link-title {
    font-size: var(--app-sidebar-font-size) !important;
    font-weight: var(--app-sidebar-font-weight) !important;
}

.sidebar .sidebar-body .nav.sub-menu .nav-item .nav-link {
    font-size: calc(var(--app-sidebar-font-size) - 1px) !important;
    font-weight: var(--app-sidebar-font-weight) !important;
}

.sidebar .sidebar-body .nav .nav-item.nav-category {
    font-size: calc(var(--app-sidebar-font-size) - 3px) !important;
}


/* =========================================================
   Extracted From: components/layouts/pos.blade.php
   ========================================================= */
.page-wrapper.full-page {
    width: 100%;
    margin-left: 0;
}

.page-wrapper.full-page .navbar {
    width: 100%;
    left: 0;
    position: relative;
    /* Change from fixed to relative */
}


.pos-layout .card-body,
.pos-layout .card-header {
    padding: 2px 0px 0px 2px !important;
    border: 1px solid #eef2f7;
}

/* Keep PHPFlasher notifications above Bootstrap modals/backdrops. */
.fl-wrapper {
    z-index: 2000 !important;
}

/* =========================================================
   Extracted From: auth/login.blade.php
   ========================================================= */
body.auth-login-page {
    font-family: var(--app-custom-font-family, 'Inter', sans-serif) !important;
    font-weight: var(--app-custom-font-weight, 400) !important;
    background-color: var(--bs-body-bg, #f8fafc);
    color: var(--bs-body-color, #1e293b);
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(30, 136, 239, 0.15) 0%, var(--bs-body-bg) 60%);
    background-repeat: no-repeat;
    min-height: 100vh;
}

body.auth-login-page .auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

body.auth-login-page .auth-card {
    background-color: var(--bs-card-bg, #ffffff);
    width: 100%;
    max-width: 460px;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px -10px rgba(15, 69, 120, 0.15);
    border: 1px solid var(--bs-border-color, #e2e8f0);
    border-top: 5px solid #1E88EF;
    border-bottom: 5px solid #1E88EF;
    position: relative;
    z-index: 10;
}

body.auth-login-page .auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

body.auth-login-page .auth-logo img {
    max-height: 55px;
    object-fit: contain;
}

body.auth-login-page .auth-title {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--bs-heading-color, #0f172a);
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.5px;
}

body.auth-login-page .auth-subtitle {
    color: var(--bs-secondary-color, #64748b);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

body.auth-login-page .form-label-modern {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bs-body-color, #334155);
    margin-bottom: 0.5rem;
}

body.auth-login-page .input-modern-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bs-tertiary-bg, #f8fafc);
    border: 1px solid var(--bs-border-color, #e2e8f0);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

body.auth-login-page .input-modern-group:focus-within {
    border-color: #1E88EF;
    box-shadow: 0 0 0 4px rgba(30, 136, 239, 0.15);
    background: var(--bs-body-bg, #ffffff);
}

body.auth-login-page .input-modern-group.has-error {
    border-color: #dc2626;
    background: #fff5f5;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

body.auth-login-page .input-modern-group.has-error:focus-within {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
    background: #ffffff;
}

body.auth-login-page .input-modern-icon {
    padding: 0 1rem;
    color: var(--bs-secondary-color, #94a3b8);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

body.auth-login-page .input-modern-group:focus-within .input-modern-icon {
    color: #1E88EF;
}

body.auth-login-page .input-modern-group.has-error .input-modern-icon {
    color: #dc2626;
}

body.auth-login-page .input-modern {
    border: none;
    background: transparent;
    padding: 1rem 1rem 1rem 0;
    width: 100%;
    font-size: 1rem;
    color: var(--bs-body-color, #1e293b);
    font-weight: 500;
}

body.auth-login-page .input-modern:focus {
    outline: none;
    box-shadow: none;
}

body.auth-login-page .input-modern::placeholder {
    color: var(--bs-secondary-color, #94a3b8);
    font-weight: 400;
}

body.auth-login-page .is-invalid-input {
    color: #991b1b;
}

body.auth-login-page .btn-toggle-password {
    background: transparent;
    border: none;
    color: var(--bs-secondary-color, #94a3b8);
    padding: 0 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

body.auth-login-page .btn-toggle-password:hover {
    color: #1E88EF;
}

body.auth-login-page .btn-login {
    background: linear-gradient(135deg, #62ACF4 0%, #1E88EF 50%, #1560A7 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 136, 239, 0.3);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.auth-login-page .btn-login:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1E88EF 0%, #1560A7 50%, #0F4578 100%);
    box-shadow: 0 8px 25px rgba(21, 96, 167, 0.4);
    color: white;
}

body.auth-login-page .btn-login:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(30, 136, 239, 0.2);
}

body.auth-login-page .auth-error-text {
    margin-top: 0.55rem;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
}

body.auth-login-page .premium-alert {
    border: 1px solid rgba(30, 136, 239, 0.3);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

body.auth-login-page .premium-alert.alert-success {
    background-color: rgba(30, 136, 239, 0.1);
    color: #1560A7;
}

body.auth-login-page .demo-divider {
    position: relative;
    text-align: center;
    margin: 2.5rem 0 1.5rem;
}

body.auth-login-page .demo-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--bs-border-color, #e2e8f0);
    z-index: 1;
}

body.auth-login-page .demo-divider span {
    background: var(--bs-card-bg, #ffffff);
    padding: 0 15px;
    color: var(--bs-secondary-color, #64748b);
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.auth-login-page .btn-demo {
    border-radius: 12px;
    padding: 0.85rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    color: white;
    cursor: pointer;
}

body.auth-login-page .btn-demo:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

body.auth-login-page .btn-demo-admin {
    background: #ef4444;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

body.auth-login-page .btn-demo-admin:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.35);
}

body.auth-login-page .btn-demo-cashier {
    background: #0F4578;
    box-shadow: 0 4px 10px rgba(15, 69, 120, 0.25);
}

body.auth-login-page .btn-demo-cashier:hover {
    background: #082d52;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 69, 120, 0.35);
}

/* =========================================================
   Extracted From: components/calculator-modal.blade.php
   ========================================================= */
.calculator-modal .calculator {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 400px;
    width: 100%;
}

.calculator-modal .display {
    background-color: #e9ecef;
    border-radius: 10px;
    font-size: 2.5rem;
}

.calculator-modal .calculator .btn {
    font-size: 1.5rem;
    border-radius: 10px;
    height: 60px;
    transition: background-color 0.3s;
}

.calculator-modal .calculator .btn-operator {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: white;
}

.calculator-modal .calculator .btn-operator:hover {
    background-color: #e76f51;
}

.calculator-modal .calculator .btn-equal {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.calculator-modal .calculator .btn-equal:hover {
    background-color: #146c43;
}

.calculator-modal .calculator .btn-clear {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.calculator-modal .calculator .btn-clear:hover {
    background-color: #bb2d3b;
}

/* =========================================================
   Extracted From: livewire/customer-ledger-report.blade.php
   ========================================================= */
.customer-ledger-report-page .ledger-row-sale {
    background-color: #ffffff;
}

.customer-ledger-report-page .ledger-row-payment {
    background-color: #f0fdf4 !important;
    border-left: 4px solid #22c55e !important;
}

.customer-ledger-report-page .ledger-row-return {
    background-color: #fef2f2 !important;
    border-left: 4px solid #ef4444 !important;
}

.customer-ledger-report-page .balance-column-premium {
    background-color: #f8fafc !important;
    font-weight: 800;
    color: #1e293b;
    border-left: 1px solid #e2e8f0 !important;
    width: 160px;
}

.customer-ledger-report-page .itemized-sub-row {
    font-size: 0.8rem;
    background-color: #ffffff;
    color: #64748b;
}

.customer-ledger-report-page .invoice-summary-line {
    background-color: #334155;
    color: #ffffff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media print {
    .customer-ledger-report-page .no-print {
        display: none !important;
    }

    .customer-ledger-report-page .premium-card {
        border: 1px solid #e2e8f0;
        box-shadow: none;
    }

    .customer-ledger-report-page .premium-header {
        background: #000 !important;
        color: #fff !important;
    }
}

/* =========================================================
   Extracted From: livewire/open-register.blade.php
   Extracted From: livewire/close-register.blade.php
   ========================================================= */
body:has(.open-register-page),
body:has(.close-register-page) {
    overflow-y: auto !important;
    padding-bottom: 2rem !important;
}


/* =========================================================
   Extracted From: livewire/product-units.blade.php
   ========================================================= */
/* ===== Brand Colors ===== 
           Lightest: #E9F3FD
           Lighter:  #A5D0F9
           Light:    #62ACF4
           Primary:  #1A8AFC
           Dark:     #1560A7
           Darkest:  #0F4578
        ========================= */

/* ===== Layout & Main Card Design ===== */
.premium-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    background: var(--bs-card-bg);
    box-shadow: 0 4px 15px rgba(15, 69, 120, 0.05);
    /* Tinted shadow */
    overflow: visible;
}

/* Applied New Blue Gradient to Header */
.premium-header {
    background: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%);
    padding: 1.5rem 2rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    border-radius: 15px 15px 0 0;
}

.header-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(233, 243, 253, 0.2);
    /* #E9F3FD tinted */
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(15, 69, 120, 0.15);
}

/* ===== Header Buttons ===== */
.header-btn-primary {
    background: rgba(233, 243, 253, 0.2);
    /* #E9F3FD */
    border: 1px solid rgba(233, 243, 253, 0.4);
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(15, 69, 120, 0.1);
}

.header-btn-primary:hover {
    background: rgba(233, 243, 253, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 69, 120, 0.2);
    color: white;
}

/* ===== Inputs & Controls ===== */
.form-label-solid {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-body-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-solid {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    border: 1px solid rgb(121 135 161 / 50%);
    background-color: var(--bs-card-bg, #ffffff);
    color: var(--bs-body-color);
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(15, 69, 120, 0.02);
    width: 100%;
}

.input-solid:focus {
    border-color: #1A8AFC;
    box-shadow: 0 0 0 4px rgba(26, 138, 252, 0.15);
    outline: none;
}

.input-solid-group-text {
    background-color: var(--bs-tertiary-bg);
    border: 1px solid rgb(121 135 161 / 50%);
    color: var(--bs-secondary-color);
    border-radius: 8px 0 0 8px;
}

/* ===== Table Design ===== */
.minimal-table {
    width: 100%;
    margin-bottom: 0;
}

.minimal-table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--bs-secondary-color);
    background-color: var(--bs-tertiary-bg);
    padding: 1rem 1.2rem;
    border-bottom: 2px solid var(--bs-border-color);
    white-space: nowrap;
}

.minimal-table td {
    padding: 1rem 1.2rem;
    vertical-align: middle;
    color: var(--bs-body-color);
    border-bottom: 1px solid var(--bs-border-color);
    font-weight: 500;
}

/* Action Buttons (Colors Unchanged as Requested) */
.btn-action-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-action-icon.edit {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.btn-action-icon.edit:hover {
    background: #667eea;
    color: white;
}

.btn-action-icon.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-action-icon.delete:hover {
    background: #ef4444;
    color: white;
}

/* Custom Scrollbar */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #A5D0F9;
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #62ACF4;
}

/* ==========================================
           SOLID PREMIUM MODAL REDESIGN
        ========================================== */
.premium-solid-modal {
    border: none !important;
    border-radius: 20px !important;
    background-color: var(--bs-card-bg, #ffffff) !important;
    box-shadow: 0 25px 50px -12px rgba(15, 69, 120, 0.3) !important;
}

.premium-solid-modal .modal-header {
    background-color: var(--bs-card-bg, #ffffff);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
}

.premium-solid-modal .modal-body {
    background-color: var(--bs-body-bg, #f8f9fa);
    padding: 2rem;
}

.premium-solid-modal .modal-footer {
    background-color: var(--bs-card-bg, #ffffff);
    border-top: 1px solid var(--bs-border-color);
    padding: 1.25rem 2rem;
    border-radius: 0 0 20px 20px;
}

.modal-icon-solid {
    width: 42px;
    height: 42px;
    background: rgba(26, 138, 252, 0.1);
    /* #1A8AFC tinted */
    color: #1A8AFC;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 15px;
    border: 1px solid rgba(26, 138, 252, 0.2);
}

/* Modal Inputs */
.form-label-solid {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-body-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

/* Modal Buttons */
.btn-solid-save {
    background: linear-gradient(135deg, #0765FD 0%, #1A8AFC 100%);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(26, 138, 252, 0.25);
}

.btn-solid-save:hover {
    background: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(15, 69, 120, 0.35);
}

.btn-solid-cancel {
    background-color: transparent;
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-solid-cancel:hover {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-secondary-color);
}


/* =========================================================
   Extracted From: livewire/recent-sales.blade.php
   ========================================================= */
/* ===== Brand Colors & Typography ===== */
.text-brand-primary {
    color: #1A8AFC !important;
}

.text-brand-dark {
    color: #0F4578 !important;
}

.bg-brand-light {
    background-color: #E9F3FD !important;
}

.bg-brand-primary {
    background: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%) !important;
    color: white !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fs-12 {
    font-size: 0.75rem;
}

.fs-13 {
    font-size: 0.8125rem;
}

.fs-14 {
    font-size: 0.875rem;
}

/* ===== Filter Section ===== */
.filter-panel {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(15, 69, 120, 0.05);
    border: 1px solid var(--bs-border-color);
    margin-bottom: 1.5rem;
}

.filter-input {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #0F4578;
    font-weight: 500;
    box-shadow: none;
    transition: all 0.2s;
}

.filter-input:focus {
    border-color: #1A8AFC;
    box-shadow: 0 0 0 3px rgba(26, 138, 252, 0.1);
    outline: none;
}

.btn-brand-search {
    background: linear-gradient(135deg, #0765FD 0%, #1A8AFC 100%);
    border: none;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s;
    width: 100%;
}

.btn-brand-search:hover {
    background: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(26, 138, 252, 0.2);
    color: white;
}

/* ===== Sales List (Left Column) ===== */
.sales-list-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.sales-list-container::-webkit-scrollbar {
    width: 5px;
}

.sales-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.sales-list-container::-webkit-scrollbar-thumb {
    background: #A5D0F9;
    border-radius: 10px;
}

.sale-list-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.sale-list-card:hover:not(.active-sale) {
    border-color: #A5D0F9;
    background: #f8fafc;
    transform: translateX(2px);
}

.sale-list-card.active-sale {
    background: linear-gradient(135deg, #1A8AFC 0%, #0765FD 100%);
    border-color: #1560A7;
    box-shadow: 0 6px 15px rgba(26, 138, 252, 0.2);
}

/* Status Badges */
.status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-due {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-partial {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-paid {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.active-sale .status-badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-color: transparent !important;
}

/* ===== Sale Details (Right Column) ===== */
.details-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 10px 30px rgba(15, 69, 120, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.details-header {
    background: #E9F3FD;
    border-bottom: 1px dashed #A5D0F9;
    padding: 1.5rem;
}

.details-body {
    padding: 0;
    flex-grow: 1;
    overflow-y: auto;
}

/* Minimal Table for Items */
.minimal-table {
    width: 100%;
    margin-bottom: 0;
}

.minimal-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.minimal-table td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #334155;
}

.minimal-table tr:last-child td {
    border-bottom: none;
}

/* Summary Footer */
.details-summary {
    background: #f8fafc;
    border-top: 1px dashed #e2e8f0;
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F4578;
}

/* Action Buttons */
.btn-print {
    background: #E9F3FD;
    color: #1A8AFC;
    border: 1px solid #A5D0F9;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.btn-print:hover:not(:disabled) {
    background: #1A8AFC;
    color: white;
    border-color: #1A8AFC;
}

.btn-edit {
    background: white;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.btn-edit:hover {
    background: #f1f5f9;
    color: #0F4578;
    border-color: #94a3b8;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #94a3b8;
    height: 100%;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* =========================================================
   NEW WHITE DASHBOARD CARDS CSS (WAITING FOR APPROVAL)
   ========================================================= */
.stat-card-white {
    background: var(--bs-card-bg, #ffffff);
    border: 1px solid var(--bs-border-color) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-card-white .card-label {
    color: var(--bs-secondary-color);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card-white .card-value {
    color: var(--bs-body-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bubbles for White Cards */
.stat-card-white .card-blob {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    right: -20px;
    top: -20px;
    opacity: 0.15;
    transition: transform 0.4s ease;
    z-index: 0;
}

.stat-card-white:hover .card-blob {
    transform: scale(1.15);
}

.stat-card-white .card-blob-2 {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    right: 40px;
    bottom: -10px;
    opacity: 0.1;
    z-index: 0;
}

/* Icon Container for White Cards */
.stat-icon-white {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #ffffff;
    z-index: 1;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Override dropdown toggle color in white cards */
.stat-card-white .dropdown-toggle-modern {
    color: var(--bs-secondary-color) !important;
}

.stat-card-white .dropdown-toggle-modern:hover {
    color: var(--bs-body-color) !important;
}


