* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

/* =========================
   LOGIN PAGE
========================= */

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(229, 184, 60, 0.25), transparent 35%),
        linear-gradient(135deg, #0B0C2A, #111111);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 430px;
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-icon,
.brand-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #E5B83C, #f8dc7a);
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 1px;
}

.login-brand h1 {
    font-size: 25px;
    margin-bottom: 8px;
    color: #0B0C2A;
}

.login-brand p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 7px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
}

.form-group input:focus {
    border-color: #E5B83C;
    box-shadow: 0 0 0 3px rgba(229, 184, 60, 0.18);
}

.btn-primary {
    border: none;
    background: linear-gradient(135deg, #0B0C2A, #111111);
    color: #ffffff;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.login-card .btn-primary {
    width: 100%;
}

.btn-primary:hover {
    opacity: 0.94;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

.login-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

/* =========================
   APP LAYOUT
========================= */

.app-wrapper {
    min-height: 100vh;
    display: flex;
    background: #f5f7fb;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 280px;
    height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(229, 184, 60, 0.22), transparent 35%),
        linear-gradient(180deg, #0B0C2A, #111111);
    color: #ffffff;
    padding: 22px;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 999;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 32px;
}

.sidebar-brand .brand-logo {
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 16px;
    flex-shrink: 0;
}

.sidebar-brand h2 {
    font-size: 22px;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 12px;
    color: #cbd5e1;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sidebar-menu a,
.sidebar-footer a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 13px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    transition: 0.2s ease;
}

.sidebar-menu a i,
.sidebar-footer a i {
    width: 20px;
    text-align: center;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(229, 184, 60, 0.16);
    color: #ffffff;
}

.sidebar-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-footer a {
    color: #fecaca;
}

.sidebar-overlay {
    display: none;
}

/* =========================
   MAIN CONTENT
========================= */

.main-content {
    width: calc(100% - 280px);
    margin-left: 280px;
    padding: 26px;
}

.top-header {
    background: #ffffff;
    border-radius: 22px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
    margin-bottom: 24px;
}

.mobile-menu-btn {
    display: none;
    border: none;
    background: #0B0C2A;
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
}

.page-heading h1 {
    font-size: 28px;
    color: #0B0C2A;
    margin-bottom: 4px;
}

.page-heading p {
    color: #6b7280;
    font-size: 14px;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    width: 280px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box i {
    color: #9ca3af;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    font-size: 14px;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff7dc;
    border-radius: 999px;
    padding: 7px 13px 7px 7px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #E5B83C, #f8dc7a);
    color: #111111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.user-pill strong {
    display: block;
    font-size: 13px;
    color: #111827;
}

.user-pill span {
    display: block;
    font-size: 12px;
    color: #8a6500;
}

/* =========================
   WELCOME BANNER
========================= */

.welcome-banner {
    background:
        radial-gradient(circle at top right, rgba(0, 229, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #0B0C2A, #111111);
    color: #ffffff;
    border-radius: 24px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
    box-shadow: 0 18px 45px rgba(11, 12, 42, 0.22);
}

.mini-label {
    display: inline-flex;
    background: rgba(229, 184, 60, 0.16);
    color: #f8dc7a;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.welcome-banner h2 {
    max-width: 760px;
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.welcome-banner p {
    max-width: 720px;
    color: #cbd5e1;
    line-height: 1.6;
}

.banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* =========================
   STATS CARDS
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
    transition: 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.stat-icon.green {
    background: #dcfce7;
    color: #15803d;
}

.stat-icon.purple {
    background: #ede9fe;
    color: #6d28d9;
}

.stat-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.stat-icon.orange {
    background: #ffedd5;
    color: #c2410c;
}

.stat-icon.cyan {
    background: #cffafe;
    color: #0e7490;
}

.stat-icon.gold {
    background: #fef3c7;
    color: #a16207;
}

.stat-icon.dark {
    background: #e5e7eb;
    color: #111827;
}

.stat-info span {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.stat-info h3 {
    margin-top: 7px;
    font-size: 24px;
    color: #0B0C2A;
}

.stat-info p {
    margin-top: 5px;
    font-size: 12px;
    color: #9ca3af;
}

.danger-card {
    border-color: #fecaca;
}

/* =========================
   BOTTOM DASHBOARD
========================= */

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.panel-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.panel-header h3 {
    color: #0B0C2A;
    font-size: 20px;
}

.panel-header span {
    font-size: 13px;
    color: #6b7280;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-actions a {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #111827;
    text-decoration: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: 0.2s ease;
}

.quick-actions a i {
    color: #E5B83C;
    font-size: 18px;
}

.quick-actions a:hover {
    background: #0B0C2A;
    color: #ffffff;
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 32px 16px;
}

.empty-state i {
    font-size: 38px;
    color: #E5B83C;
    margin-bottom: 14px;
}

.empty-state h4 {
    color: #0B0C2A;
    margin-bottom: 8px;
}

.empty-state p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: 0.25s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 998;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 18px;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .top-header {
        align-items: flex-start;
    }

    .top-header-right {
        display: none;
    }
}

@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome-banner {
        padding: 24px;
    }

    .welcome-banner h2 {
        font-size: 23px;
    }

    .banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .banner-actions a {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .page-heading h1 {
        font-size: 24px;
    }

    .stat-card {
        padding: 18px;
    }

    .login-card {
        padding: 24px;
    }
}
/* =========================
   PRODUCT MODULE
========================= */

.module-header {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.module-header h2 {
    color: #0B0C2A;
    font-size: 24px;
    margin-bottom: 5px;
}

.module-header p {
    color: #6b7280;
    font-size: 14px;
}

.form-card,
.table-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
    margin-bottom: 22px;
}

.form-card h3,
.table-card h3 {
    color: #0B0C2A;
    font-size: 20px;
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group select,
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    background: #ffffff;
}

.form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.form-group select:focus,
.form-group textarea:focus,
.form-group input[type="file"]:focus {
    border-color: #E5B83C;
    box-shadow: 0 0 0 3px rgba(229, 184, 60, 0.18);
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-light {
    background: #f8fafc;
    color: #111827;
    border: 1px solid #e5e7eb;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-edit {
    background: #0B0C2A;
    color: #ffffff;
    border: none;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

.search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.search-row input {
    flex: 1;
    padding: 13px 15px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1050px;
}

.data-table th {
    background: #f8fafc;
    color: #374151;
    text-align: left;
    padding: 14px;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 14px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
    vertical-align: middle;
}

.product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.product-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff7dc;
    color: #8a6500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 1px solid #facc15;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-yellow {
    background: #fef3c7;
    color: #92400e;
}

.badge-red {
    background: #fee2e2;
    color: #991b1b;
}

.badge-gray {
    background: #e5e7eb;
    color: #374151;
}

.action-buttons {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.small-text {
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 900px) {
    .module-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .search-row {
        flex-direction: column;
    }
}
/* =========================
   SUPPLIER / CUSTOMER MODULE
========================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.info-box {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 16px;
}

.info-box span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.info-box strong {
    color: #0B0C2A;
    font-size: 15px;
}

.contact-text {
    line-height: 1.7;
}

.balance-positive {
    color: #dc2626;
    font-weight: 800;
}

.balance-zero {
    color: #166534;
    font-weight: 800;
}

@media (max-width: 700px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   PURCHASE MODULE
========================= */

.section-divider {
    border: none;
    border-top: 1px solid #eef2f7;
    margin: 24px 0;
}

.purchase-items-table input,
.purchase-items-table select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}

.purchase-items-table input:focus,
.purchase-items-table select:focus {
    border-color: #E5B83C;
    box-shadow: 0 0 0 3px rgba(229, 184, 60, 0.18);
}

.purchase-summary {
    max-width: 420px;
    margin-left: auto;
}

.view-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.view-box {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 16px;
}

.view-box span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.view-box strong {
    color: #0B0C2A;
    font-size: 15px;
}

@media (max-width: 900px) {
    .view-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   SALES INVOICE MODULE
========================= */

.invoice-box {
    background: #ffffff;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 2px solid #0B0C2A;
    padding-bottom: 22px;
    margin-bottom: 24px;
}

.invoice-header h2 {
    color: #0B0C2A;
    font-size: 26px;
    margin-bottom: 8px;
}

.invoice-header p {
    color: #6b7280;
    line-height: 1.6;
}

.invoice-title {
    text-align: right;
}

.invoice-title h1 {
    font-size: 38px;
    color: #E5B83C;
    letter-spacing: 2px;
}

.invoice-title p {
    color: #0B0C2A;
    font-weight: 800;
}

.invoice-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.invoice-meta-card {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 18px;
}

.invoice-meta-card span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.invoice-meta-card strong {
    color: #0B0C2A;
    font-size: 18px;
}

.invoice-meta-card p {
    margin-top: 6px;
    color: #374151;
    font-size: 14px;
}

.invoice-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 24px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.invoice-table th {
    background: #0B0C2A;
    color: #ffffff;
    padding: 14px;
    text-align: left;
    font-size: 13px;
}

.invoice-table td {
    padding: 14px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
}

.invoice-summary-row {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: flex-start;
}

.invoice-note {
    background: #fff7dc;
    border: 1px solid #fde68a;
    border-radius: 18px;
    padding: 18px;
}

.invoice-note strong {
    color: #0B0C2A;
}

.invoice-note p {
    color: #6b7280;
    margin-top: 8px;
    line-height: 1.6;
}

.invoice-summary {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 18px;
}

.invoice-summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.invoice-summary div:last-child {
    border-bottom: none;
}

.invoice-summary span {
    color: #6b7280;
}

.invoice-summary strong {
    color: #0B0C2A;
}

.grand-total-row {
    background: #0B0C2A;
    color: #ffffff;
    margin: 8px -8px;
    padding: 14px 8px !important;
    border-radius: 12px;
}

.grand-total-row span,
.grand-total-row strong {
    color: #ffffff;
}

.invoice-footer {
    margin-top: 28px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

@media (max-width: 800px) {
    .invoice-header,
    .invoice-meta-grid,
    .invoice-summary-row {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .invoice-title {
        text-align: left;
    }

    .invoice-summary-row {
        display: block;
    }

    .invoice-summary {
        margin-top: 18px;
    }
}

@media print {
    body {
        background: #ffffff;
    }

    .sidebar,
    .top-header,
    .no-print,
    .sidebar-overlay {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .invoice-box {
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 20px;
    }

    .invoice-table th {
        background: #0B0C2A !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .grand-total-row {
        background: #0B0C2A !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
/* =========================
   INVOICE PRINT FIX
========================= */

.invoice-note-simple {
    color: #000000;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.invoice-note-simple strong,
.invoice-note-simple p {
    color: #000000;
}

.payment-history-section {
    margin-top: 28px;
}

.payment-history-section h3 {
    color: #0B0C2A;
    margin-bottom: 14px;
}

.final-statement {
    margin-top: 16px;
    color: #000000;
    font-size: 14px;
    line-height: 1.8;
}

.final-statement p {
    color: #000000;
}

@media print {

    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11px;
    }

    .sidebar,
    .top-header,
    .no-print,
    .sidebar-overlay,
    .mobile-menu-btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .invoice-box {
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .invoice-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding-bottom: 10px !important;
        margin-bottom: 12px !important;
    }

    .invoice-header h2 {
        font-size: 18px !important;
        color: #000000 !important;
    }

    .invoice-title {
        text-align: right !important;
    }

    .invoice-title h1 {
        font-size: 24px !important;
        color: #000000 !important;
    }

    .invoice-meta-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .invoice-meta-card {
        background: transparent !important;
        border: 1px solid #000000 !important;
        border-radius: 0 !important;
        padding: 8px !important;
        color: #000000 !important;
    }

    .invoice-meta-card span,
    .invoice-meta-card strong,
    .invoice-meta-card p {
        color: #000000 !important;
        font-size: 11px !important;
    }

    .invoice-table-wrap {
        overflow: visible !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .invoice-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

    .invoice-table th,
    .invoice-table td {
        border: 1px solid #000000 !important;
        padding: 5px !important;
        font-size: 10px !important;
        color: #000000 !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }

    .invoice-table th {
        background: #eeeeee !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .invoice-table th:nth-child(1),
    .invoice-table td:nth-child(1) {
        width: 4%;
    }

    .invoice-table th:nth-child(2),
    .invoice-table td:nth-child(2) {
        width: 24%;
    }

    .invoice-table th:nth-child(3),
    .invoice-table td:nth-child(3) {
        width: 10%;
    }

    .invoice-table th:nth-child(4),
    .invoice-table td:nth-child(4) {
        width: 7%;
    }

    .invoice-table th:nth-child(5),
    .invoice-table td:nth-child(5) {
        width: 12%;
    }

    .invoice-table th:nth-child(6),
    .invoice-table td:nth-child(6) {
        width: 8%;
    }

    .invoice-table th:nth-child(7),
    .invoice-table td:nth-child(7) {
        width: 13%;
    }

    .invoice-table th:nth-child(8),
    .invoice-table td:nth-child(8) {
        width: 14%;
    }

    .invoice-summary-row {
        display: grid !important;
        grid-template-columns: 1fr 260px !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }

    .invoice-summary {
        background: transparent !important;
        border: 1px solid #000000 !important;
        border-radius: 0 !important;
        padding: 8px !important;
    }

    .invoice-summary div {
        padding: 5px 0 !important;
        border-bottom: 1px solid #cccccc !important;
        font-size: 11px !important;
    }

    .invoice-summary span,
    .invoice-summary strong {
        color: #000000 !important;
    }

    .grand-total-row {
        background: transparent !important;
        color: #000000 !important;
        border-top: 2px solid #000000 !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .grand-total-row span,
    .grand-total-row strong {
        color: #000000 !important;
    }

    .invoice-note,
    .invoice-note-simple {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        color: #000000 !important;
    }

    .invoice-note-simple strong,
    .invoice-note-simple p {
        color: #000000 !important;
        font-size: 11px !important;
    }

    .payment-history-section {
        margin-top: 14px !important;
        page-break-inside: avoid;
    }

    .payment-history-section h3 {
        color: #000000 !important;
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    .payment-history-table th,
    .payment-history-table td {
        font-size: 10px !important;
        padding: 5px !important;
    }

    .final-statement {
        color: #000000 !important;
        font-size: 11px !important;
        line-height: 1.5 !important;
        margin-top: 8px !important;
    }

    .final-statement p {
        color: #000000 !important;
        margin: 2px 0 !important;
    }

    .invoice-footer {
        margin-top: 12px !important;
        color: #000000 !important;
        font-size: 10px !important;
    }
}
/* =========================
   STOCK MODULE
========================= */

#stockProductSelect,
#movementType,
.search-row select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    background: #ffffff;
}

.search-row select {
    max-width: 220px;
}

#stockProductSelect:focus,
#movementType:focus,
.search-row select:focus {
    border-color: #E5B83C;
    box-shadow: 0 0 0 3px rgba(229, 184, 60, 0.18);
}

@media (max-width: 700px) {
    .search-row select {
        max-width: 100%;
    }
}
/* =========================
   REPORTS MODULE
========================= */

.report-title {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
}

.report-title h2 {
    color: #0B0C2A;
    font-size: 26px;
    margin-bottom: 6px;
}

.report-title p {
    color: #6b7280;
    font-size: 14px;
}

.report-print-area .table-card {
    margin-bottom: 24px;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 8mm;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11px;
    }

    .sidebar,
    .top-header,
    .no-print,
    .sidebar-overlay,
    .mobile-menu-btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .report-title {
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 10px 0 !important;
        margin-bottom: 10px !important;
        border-radius: 0 !important;
    }

    .report-title h2 {
        color: #000000 !important;
        font-size: 18px !important;
    }

    .report-title p {
        color: #000000 !important;
        font-size: 11px !important;
    }

    .table-card,
    .stat-card {
        box-shadow: none !important;
        border: 1px solid #000000 !important;
        border-radius: 0 !important;
        padding: 10px !important;
        margin-bottom: 10px !important;
    }

    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }

    .stat-card {
        display: block !important;
        padding: 8px !important;
    }

    .stat-icon {
        display: none !important;
    }

    .stat-info span,
    .stat-info p,
    .stat-info h3 {
        color: #000000 !important;
    }

    .stat-info h3 {
        font-size: 15px !important;
    }

    .table-responsive {
        overflow: visible !important;
    }

    .data-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

    .data-table th,
    .data-table td {
        border: 1px solid #000000 !important;
        padding: 5px !important;
        font-size: 9px !important;
        color: #000000 !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }

    .data-table th {
        background: #eeeeee !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .badge {
        border: 1px solid #000000 !important;
        color: #000000 !important;
        background: transparent !important;
        padding: 2px 4px !important;
    }
}
/* =========================
   EXPORT BUTTONS
========================= */

.panel-header .form-actions {
    margin-top: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-header .form-actions {
        width: 100%;
    }

    .panel-header .form-actions button {
        width: 100%;
    }
}

@media print {
    .form-actions,
    .btn-primary,
    .btn-light,
    .alert-warning.no-print {
        display: none !important;
    }
}
/* =========================
   EXPENSES MODULE
========================= */

#categoryForm {
    border-left: 4px solid #E5B83C;
}

.expense-amount {
    color: #dc2626;
    font-weight: 800;
}

.search-row input[type="date"],
.search-row select {
    padding: 13px 15px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    background: #ffffff;
}

.search-row input[type="date"]:focus,
.search-row select:focus {
    border-color: #E5B83C;
    box-shadow: 0 0 0 3px rgba(229, 184, 60, 0.18);
}

@media (max-width: 900px) {
    .search-row {
        flex-direction: column;
    }

    .search-row input,
    .search-row select,
    .search-row button,
    .search-row a {
        width: 100%;
    }
}
/* =========================
   SETTINGS MODULE
========================= */

.settings-preview-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.settings-logo-preview {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.settings-logo-preview img {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    padding: 8px;
    background: #ffffff;
}

.settings-logo-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    background: #0B0C2A;
    color: #E5B83C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
}

.settings-preview-card h2 {
    color: #0B0C2A;
    margin-bottom: 8px;
}

.settings-preview-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 14px;
}

.settings-section-title {
    font-size: 18px;
    color: #0B0C2A;
    margin: 14px 0 18px;
    padding-left: 12px;
    border-left: 4px solid #E5B83C;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    padding: 14px 15px;
    border-radius: 12px;
    font-weight: 700;
    color: #0B0C2A;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

@media (max-width: 700px) {
    .settings-preview-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
.invoice-logo {
    max-width: 90px;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 8px;
}

.invoice-company-block h2 {
    margin-bottom: 6px;
}

.invoice-bank-details {
    margin-top: 22px;
    color: #000000;
    font-size: 14px;
    line-height: 1.7;
}

.invoice-bank-details h3 {
    color: #0B0C2A;
    margin-bottom: 8px;
}

.invoice-bank-details p {
    color: #000000;
}

@media print {
    .invoice-logo {
        max-width: 70px !important;
        max-height: 55px !important;
    }

    .invoice-bank-details,
    .invoice-bank-details h3,
    .invoice-bank-details p {
        color: #000000 !important;
    }
}
/* =========================
   COMPACT INVOICE PRINT FIX
   Fits 7-10 products on one A4 page
========================= */

@media print {

    @page {
        size: A4 portrait;
        margin: 6mm;
    }

    html,
    body {
        width: 210mm;
        min-height: 297mm;
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 10px !important;
        line-height: 1.25 !important;
    }

    .sidebar,
    .top-header,
    .no-print,
    .sidebar-overlay,
    .mobile-menu-btn,
    .alert-warning.no-print,
    .form-actions {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .invoice-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .invoice-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding-bottom: 6px !important;
        margin-bottom: 6px !important;
        border-bottom: 1px solid #000000 !important;
    }

    .invoice-company-block h2,
    .invoice-header h2 {
        font-size: 15px !important;
        margin: 0 0 3px 0 !important;
        color: #000000 !important;
    }

    .invoice-company-block p,
    .invoice-header p {
        font-size: 9px !important;
        line-height: 1.25 !important;
        margin: 1px 0 !important;
        color: #000000 !important;
    }

    .invoice-logo {
        max-width: 55px !important;
        max-height: 40px !important;
        margin-bottom: 3px !important;
    }

    .invoice-title {
        text-align: right !important;
        min-width: 120px !important;
    }

    .invoice-title h1 {
        font-size: 20px !important;
        letter-spacing: 1px !important;
        margin: 0 0 3px 0 !important;
        color: #000000 !important;
    }

    .invoice-title p {
        font-size: 10px !important;
        margin: 0 !important;
        color: #000000 !important;
    }

    .invoice-meta-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    .invoice-meta-card {
        background: transparent !important;
        border: 1px solid #000000 !important;
        border-radius: 0 !important;
        padding: 5px !important;
        color: #000000 !important;
    }

    .invoice-meta-card span {
        font-size: 8px !important;
        margin-bottom: 2px !important;
        color: #000000 !important;
    }

    .invoice-meta-card strong {
        font-size: 10px !important;
        color: #000000 !important;
    }

    .invoice-meta-card p {
        font-size: 9px !important;
        line-height: 1.25 !important;
        margin: 1px 0 !important;
        color: #000000 !important;
    }

    .invoice-table-wrap {
        width: 100% !important;
        overflow: visible !important;
        margin-bottom: 6px !important;
    }

    .invoice-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

    .invoice-table th,
    .invoice-table td {
        border: 1px solid #000000 !important;
        padding: 3px 4px !important;
        font-size: 8.5px !important;
        line-height: 1.15 !important;
        color: #000000 !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        vertical-align: top !important;
    }

    .invoice-table th {
        background: #eeeeee !important;
        color: #000000 !important;
        font-weight: 700 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .invoice-table th:nth-child(1),
    .invoice-table td:nth-child(1) {
        width: 4% !important;
    }

    .invoice-table th:nth-child(2),
    .invoice-table td:nth-child(2) {
        width: 27% !important;
    }

    .invoice-table th:nth-child(3),
    .invoice-table td:nth-child(3) {
        width: 10% !important;
    }

    .invoice-table th:nth-child(4),
    .invoice-table td:nth-child(4) {
        width: 6% !important;
    }

    .invoice-table th:nth-child(5),
    .invoice-table td:nth-child(5) {
        width: 12% !important;
    }

    .invoice-table th:nth-child(6),
    .invoice-table td:nth-child(6) {
        width: 7% !important;
    }

    .invoice-table th:nth-child(7),
    .invoice-table td:nth-child(7) {
        width: 14% !important;
    }

    .invoice-table th:nth-child(8),
    .invoice-table td:nth-child(8) {
        width: 14% !important;
    }

    .invoice-summary-row {
        display: grid !important;
        grid-template-columns: 1fr 230px !important;
        gap: 8px !important;
        align-items: flex-start !important;
        margin-top: 4px !important;
    }

    .invoice-note-simple,
    .invoice-note {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #000000 !important;
    }

    .invoice-note-simple strong,
    .invoice-note-simple p,
    .invoice-note strong,
    .invoice-note p {
        color: #000000 !important;
        font-size: 9px !important;
        line-height: 1.25 !important;
        margin: 1px 0 !important;
    }

    .invoice-summary {
        background: transparent !important;
        border: 1px solid #000000 !important;
        border-radius: 0 !important;
        padding: 5px !important;
    }

    .invoice-summary div {
        padding: 2px 0 !important;
        border-bottom: 1px solid #cccccc !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
    }

    .invoice-summary span,
    .invoice-summary strong {
        color: #000000 !important;
        font-size: 9px !important;
    }

    .grand-total-row {
        background: transparent !important;
        color: #000000 !important;
        border-top: 1px solid #000000 !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 3px 0 !important;
    }

    .grand-total-row span,
    .grand-total-row strong {
        color: #000000 !important;
        font-size: 10px !important;
    }

    .invoice-bank-details {
        margin-top: 5px !important;
        font-size: 9px !important;
        line-height: 1.25 !important;
        color: #000000 !important;
        page-break-inside: avoid !important;
    }

    .invoice-bank-details h3 {
        font-size: 10px !important;
        margin: 0 0 2px 0 !important;
        color: #000000 !important;
    }

    .invoice-bank-details p {
        font-size: 9px !important;
        margin: 1px 0 !important;
        color: #000000 !important;
    }

    .payment-history-section {
        margin-top: 5px !important;
        page-break-inside: avoid !important;
    }

    .payment-history-section h3 {
        font-size: 10px !important;
        margin: 0 0 3px 0 !important;
        color: #000000 !important;
    }

    .payment-history-table th,
    .payment-history-table td {
        font-size: 8px !important;
        padding: 2px 3px !important;
    }

    .final-statement {
        margin-top: 4px !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
        color: #000000 !important;
    }

    .final-statement p {
        margin: 1px 0 !important;
        color: #000000 !important;
    }

    .invoice-footer {
        margin-top: 5px !important;
        font-size: 8px !important;
        color: #000000 !important;
        text-align: center !important;
    }

    .invoice-footer p {
        margin: 0 !important;
        color: #000000 !important;
    }

    .invoice-box,
    .invoice-header,
    .invoice-meta-grid,
    .invoice-table-wrap,
    .invoice-summary-row,
    .invoice-bank-details,
    .payment-history-section,
    .invoice-footer {
        page-break-inside: avoid !important;
    }
}
/* =========================
   CUSTOMER LEDGER MODULE
========================= */

@media print {
    .no-print,
    .sidebar,
    .top-header,
    .sidebar-overlay,
    .mobile-menu-btn,
    .form-actions {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .table-card,
    .stat-card,
    .module-header {
        box-shadow: none !important;
        border: 1px solid #000000 !important;
        border-radius: 0 !important;
    }

    .data-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .data-table th,
    .data-table td {
        font-size: 10px !important;
        padding: 5px !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .badge {
        background: transparent !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
    }
}
/* =========================
   USER MANAGEMENT MODULE
========================= */

.user-role-card {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    padding: 16px;
    border-radius: 16px;
}

.permission-note {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 14px 16px;
    border-radius: 12px;
    color: #7c2d12;
    margin-bottom: 18px;
}

.permission-note strong {
    color: #7c2d12;
}

.badge-gray {
    background: #f3f4f6;
    color: #374151;
}

/* =========================
   PRODUCTION ENHANCEMENTS
========================= */
.plan-locked-note {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    color: #7c2d12;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Better invoice print for desktop/mobile and PDF */
@media print {
    @page { size: A4 portrait; margin: 6mm; }

    html, body {
        width: 210mm !important;
        min-height: 297mm !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 10px !important;
        line-height: 1.25 !important;
    }

    .sidebar, .top-header, .no-print, .sidebar-overlay, .mobile-menu-btn,
    .form-actions, .alert-warning.no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .invoice-box {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .invoice-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding-bottom: 5px !important;
        margin-bottom: 5px !important;
        border-bottom: 1px solid #000 !important;
    }

    .invoice-logo { max-width: 55px !important; max-height: 42px !important; margin-bottom: 3px !important; }
    .invoice-company-block h2 { font-size: 15px !important; margin: 0 0 3px !important; color: #000 !important; }
    .invoice-company-block p, .invoice-title p { font-size: 9px !important; margin: 1px 0 !important; color: #000 !important; }
    .invoice-title h1 { font-size: 20px !important; margin: 0 0 3px !important; color: #000 !important; }

    .invoice-meta-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 6px !important; margin-bottom: 6px !important; }
    .invoice-meta-card { border: 1px solid #000 !important; border-radius: 0 !important; padding: 5px !important; background: #fff !important; }
    .invoice-meta-card span, .invoice-meta-card strong, .invoice-meta-card p { color: #000 !important; font-size: 9px !important; margin: 1px 0 !important; }

    .invoice-table-wrap { overflow: visible !important; margin-bottom: 5px !important; }
    .invoice-table { width: 100% !important; table-layout: fixed !important; border-collapse: collapse !important; }
    .invoice-table th, .invoice-table td {
        border: 1px solid #000 !important;
        padding: 3px 4px !important;
        font-size: 8.5px !important;
        line-height: 1.15 !important;
        color: #000 !important;
        white-space: normal !important;
        word-break: break-word !important;
        vertical-align: top !important;
    }
    .invoice-table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    .invoice-summary-row { display: grid !important; grid-template-columns: 1fr 230px !important; gap: 8px !important; margin-top: 4px !important; }
    .invoice-summary { border: 1px solid #000 !important; border-radius: 0 !important; padding: 5px !important; background: #fff !important; }
    .invoice-summary div { padding: 2px 0 !important; font-size: 9px !important; color: #000 !important; }
    .invoice-summary span, .invoice-summary strong, .invoice-note-simple, .invoice-note-simple strong { color: #000 !important; font-size: 9px !important; }
    .grand-total-row span, .grand-total-row strong { color: #000 !important; font-size: 10px !important; }

    .invoice-bank-details, .payment-history-section, .invoice-footer { margin-top: 5px !important; page-break-inside: avoid !important; color: #000 !important; }
    .invoice-bank-details h3, .payment-history-section h3 { font-size: 10px !important; margin: 0 0 2px !important; color: #000 !important; }
    .invoice-bank-details p, .payment-history-section p, .invoice-footer p { font-size: 9px !important; margin: 1px 0 !important; color: #000 !important; }
}

@media (max-width: 700px) {
    .invoice-box { padding: 14px !important; }
    .invoice-header { flex-direction: column; gap: 12px; }
    .invoice-title { text-align: left !important; }
    .invoice-meta-grid, .invoice-summary-row { grid-template-columns: 1fr !important; }
    .invoice-table th, .invoice-table td { font-size: 12px; padding: 8px; }
}
