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

body {
    font-family: 'Cairo', Arial, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    direction: rtl;
}

body.auth-ltr-page {
    direction: ltr;
}

.site-footer {
    background: rgba(15, 23, 42, 0.78);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.18);
}

.site-footer p,
.site-footer .mb-0 {
    color: #ffffff !important;
    letter-spacing: 0.2px;
}

main {
    width: 100%;
}

.page-content {
    width: 100%;
    padding: 0.35rem;
    box-sizing: border-box;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.10), transparent 18%),
        radial-gradient(circle at 88% 58%, rgba(255, 255, 255, 0.09), transparent 22%),
        radial-gradient(circle at 48% 92%, rgba(255, 255, 255, 0.08), transparent 14%);
    pointer-events: none;
    z-index: 0;
}

.global-background-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.global-background-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    animation: globalBubbleFloat 7s ease-in-out infinite;
}

.global-background-shape:nth-child(1) {
    width: 220px;
    height: 220px;
    top: 8%;
    left: 8%;
}

.global-background-shape:nth-child(2) {
    width: 320px;
    height: 320px;
    top: 52%;
    right: 6%;
    animation-delay: 2s;
}

.global-background-shape:nth-child(3) {
    width: 160px;
    height: 160px;
    bottom: 8%;
    left: 46%;
    animation-delay: 4s;
}

@keyframes globalBubbleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(180deg); }
}

main,
.navbar,
.site-footer {
    position: relative;
    z-index: 1;
}

.navbar,
.site-navbar,
.navbar.sticky-top {
    z-index: 1080 !important;
}

.site-navbar .dropdown-menu {
    z-index: 1090;
}

.responsive-panel {
    width: 100%;
    overflow-wrap: break-word;
}

.page-content .bg-white,
.dashboard-page .bg-white {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14) !important;
}

.page-content .bg-white h1,
.page-content .bg-white h2,
.page-content .bg-white h3,
.page-content .bg-white h4,
.page-content .bg-white h5,
.page-content .bg-white h6,
.page-content .bg-white p,
.page-content .bg-white label,
.page-content .bg-white span,
.page-content .bg-white strong,
.page-content .bg-white small,
.page-content .bg-white td,
.page-content .bg-white th,
.page-content .bg-white a,
.page-content .bg-white li,
.page-content .bg-white .text-muted,
.page-content .bg-white .form-label,
.page-content .bg-white .table,
.page-content .bg-white .table th,
.page-content .bg-white .table td,
.page-content .bg-white .table-light,
.page-content .bg-white .table-light th,
.page-content .bg-white .table-light td {
    color: #1f2937 !important;
}

.page-content .bg-white .table-light {
    background-color: #f3f4f6 !important;
}

.page-content .bg-white .table-light th {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 1rem !important;
    border-bottom: 2px solid #111827 !important;
    text-align: right;
}

.page-content .bg-white .table tbody tr {
    border-bottom: 1px solid #e5e7eb !important;
    transition: background-color 0.2s ease;
}

.page-content .bg-white .table tbody tr:hover {
    background-color: #f9fafb !important;
}

.page-content .bg-white .table tbody tr:nth-child(even) {
    background-color: #f9fafb !important;
}

.page-content .bg-white .table tbody tr:nth-child(even):hover {
    background-color: #f3f4f6 !important;
}

.page-content .bg-white .table td {
    padding: 0.875rem 1rem !important;
    vertical-align: middle;
}

.page-content .bg-white .table-bordered,
.page-content .bg-white .table-bordered th,
.page-content .bg-white .table-bordered td {
    border-color: #d1d5db !important;
}

.page-content .bg-white .table-bordered th {
    border-bottom-color: #111827 !important;
}

.page-content .bg-white .dashboard-badge {
    color: #007bff !important;
    background-color: #e9f2ff !important;
}

.page-content .bg-white .btn-primary,
.page-content .bg-white .btn-outline-secondary,
.page-content .bg-white .btn-outline-primary,
.page-content .bg-white .btn-outline-danger {
    color: inherit;
}

.change-password-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.change-password-link:hover,
.change-password-link:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

.change-password-link--page {
    background: #ffffff;
    color: #1d4ed8 !important;
    border: 1px solid #93c5fd;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.12);
}

.change-password-link--page:hover,
.change-password-link--page:focus {
    background: #1d4ed8;
    color: #ffffff !important;
    border-color: #1d4ed8;
    box-shadow: 0 12px 22px rgba(29, 78, 216, 0.22);
}

.change-password-link--hero {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.change-password-link--hero:hover,
.change-password-link--hero:focus {
    background: #ffffff;
    color: #0f172a !important;
    border-color: #ffffff;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.22);
}

.page-content .table-responsive,
.dashboard-page .table-responsive {
    border-radius: 16px;
}

.page-content section.container,
.dashboard-page section.container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.add-store-page .add-store-page__form-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

.add-store-page .add-store-page__form-header {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    margin: -3rem -3rem 2rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(30, 41, 59, 0.2);
}

.add-store-page .add-store-page__table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.add-store-page .add-store-page__action-form {
    margin: 0;
}

.add-store-page .add-store-page__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 74px;
    padding: 0.32rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.add-store-page .add-store-page__action-btn:hover,
.add-store-page .add-store-page__action-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.add-store-page .add-store-page__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
}

.add-store-page .add-store-page__action-btn--edit {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.add-store-page .add-store-page__action-btn--edit:hover,
.add-store-page .add-store-page__action-btn--edit:focus {
    background: #dcfce7;
    border-color: #4ade80;
    color: #14532d;
}

.add-store-page .add-store-page__action-btn--delete {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.add-store-page .add-store-page__action-btn--delete:hover,
.add-store-page .add-store-page__action-btn--delete:focus {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.add-store-page .add-store-page__table-title-badge {
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
}

.add-store-page .add-store-page__table td[data-label="#"] {
    font-weight: 800;
    color: #1d4ed8 !important;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .add-store-page .add-store-page__table td[data-label="#"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        width: auto;
        padding: 0.35rem 0.65rem;
        margin-bottom: 0.35rem;
        border-radius: 999px;
        background: #eff6ff;
        color: #1d4ed8 !important;
    }

    .add-store-page .add-store-page__table td[data-label="#"]::before {
        margin-bottom: 0;
        margin-left: 0.35rem;
    }

    .add-store-page .add-store-page__table-actions {
        gap: 0.35rem;
    }

    .add-store-page .add-store-page__table-title-badge {
        font-size: 1.02rem;
    }

    .add-store-page .add-store-page__action-btn {
        min-width: 68px;
        padding: 0.3rem 0.6rem;
        font-size: 0.76rem;
    }
}

.add-store-page .add-store-page__form-header h1 {
    color: #ffffff !important;
    margin: 0;
}

.add-store-page .add-store-page__label {
    color: #1f2937 !important;
    font-weight: 600;
}

.add-store-page .add-store-page__input {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 2px solid #d1d5db !important;
}

.add-store-page .add-store-page__input::placeholder {
    color: #6b7280 !important;
}

.add-store-page .add-store-page__input:focus {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1) !important;
}

.add-store-page .add-store-page__textarea {
    min-height: 120px;
}

.add-store-page .add-store-page__submit {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    border: none !important;
}

.add-store-page .add-store-page__submit:hover,
.add-store-page .add-store-page__submit:focus {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    transform: translateY(-2px);
}

.add-item-page .add-item-page__form-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

.add-item-page .add-item-page__form-header {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    margin: -3rem -3rem 2rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(30, 41, 59, 0.2);
}

.add-item-page .add-item-page__form-header h1 {
    color: #ffffff !important;
    margin: 0;
}

.add-item-page .add-item-page__label {
    color: #1f2937 !important;
    font-weight: 600;
}

.add-item-page .add-item-page__input {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 2px solid #d1d5db !important;
}

.add-item-page .add-item-page__input::placeholder {
    color: #6b7280 !important;
}

.add-item-page .add-item-page__input:focus {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1) !important;
}

.add-item-page .add-item-page__textarea {
    min-height: 120px;
}

.add-item-page .add-item-page__submit {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    border: none !important;
}

.add-item-page .add-item-page__submit:hover,
.add-item-page .add-item-page__submit:focus {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    transform: translateY(-2px);
}

.add-item-page .add-item-page__table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.add-item-page .add-item-page__action-form {
    margin: 0;
}

.add-item-page .add-item-page__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 74px;
    padding: 0.32rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.add-item-page .add-item-page__action-btn:hover,
.add-item-page .add-item-page__action-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.add-item-page .add-item-page__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
}

.add-item-page .add-item-page__action-btn--edit {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.add-item-page .add-item-page__action-btn--edit:hover,
.add-item-page .add-item-page__action-btn--edit:focus {
    background: #dcfce7;
    border-color: #4ade80;
    color: #14532d;
}

.add-item-page .add-item-page__action-btn--delete {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.add-item-page .add-item-page__action-btn--delete:hover,
.add-item-page .add-item-page__action-btn--delete:focus {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.add-item-page .add-item-page__table-title-badge {
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
}

.add-item-page .add-item-page__table td[data-label="#"] {
    font-weight: 800;
    color: #1d4ed8 !important;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .add-item-page {
        padding-top: 0.5rem !important;
    }

    .add-item-page .add-item-page__form-card,
    .add-item-page .responsive-panel {
        padding: 1rem !important;
        border-radius: 16px !important;
    }

    .add-item-page .add-item-page__form-header {
        margin: -1rem -1rem 1rem;
        padding: 1rem;
    }

    .add-item-page .add-item-page__form-header h1 {
        font-size: 1.1rem;
    }

    .add-item-page .add-item-page__table-wrap {
        overflow: visible;
    }

    .add-item-page .add-item-page__table,
    .add-item-page .add-item-page__table tbody,
    .add-item-page .add-item-page__table tr,
    .add-item-page .add-item-page__table td {
        display: block;
        width: 100%;
    }

    .add-item-page .add-item-page__table thead {
        display: none;
    }

    .add-item-page .add-item-page__table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .add-item-page .add-item-page__table tr {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 0.8rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    }

    .add-item-page .add-item-page__table td {
        border: 0 !important;
        padding: 0.45rem 0;
        text-align: right;
        white-space: normal;
    }

    .add-item-page .add-item-page__table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.18rem;
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .add-item-page .add-item-page__table td[data-label="#"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        width: auto;
        padding: 0.35rem 0.65rem;
        margin-bottom: 0.35rem;
        border-radius: 999px;
        background: #eff6ff;
        color: #1d4ed8 !important;
    }

    .add-item-page .add-item-page__table td[data-label="#"]::before {
        margin-bottom: 0;
        margin-left: 0.35rem;
    }

    .add-item-page .add-item-page__table-actions {
        gap: 0.35rem;
        justify-content: flex-start;
    }

    .add-item-page .add-item-page__table-title-badge {
        font-size: 1.02rem;
    }

    .add-item-page .add-item-page__action-btn {
        min-width: 68px;
        padding: 0.3rem 0.6rem;
        font-size: 0.76rem;
    }

    .add-item-page .add-item-page__action-icon {
        font-size: 0.8rem;
    }
}

.add-treasury-page .add-treasury-page__form-card,
.add-expense-type-page .add-expense-type-page__form-card,
.add-customer-page .add-customer-page__form-card,
.add-revenue-type-page .add-revenue-type-page__form-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

.add-treasury-page .add-treasury-page__form-header,
.add-expense-type-page .add-expense-type-page__form-header,
.add-customer-page .add-customer-page__form-header,
.add-revenue-type-page .add-revenue-type-page__form-header {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    margin: -3rem -3rem 2rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(30, 41, 59, 0.2);
}

.add-treasury-page .add-treasury-page__form-header h1,
.add-expense-type-page .add-expense-type-page__form-header h1,
.add-customer-page .add-customer-page__form-header h1,
.add-revenue-type-page .add-revenue-type-page__form-header h1 {
    color: #ffffff !important;
    margin: 0;
}

.add-treasury-page .add-treasury-page__label,
.add-expense-type-page .add-expense-type-page__label,
.add-customer-page .add-customer-page__label,
.add-revenue-type-page .add-revenue-type-page__label {
    color: #1f2937 !important;
    font-weight: 600;
}

.add-treasury-page .add-treasury-page__input,
.add-expense-type-page .add-expense-type-page__input,
.add-customer-page .add-customer-page__input,
.add-revenue-type-page .add-revenue-type-page__input {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 2px solid #d1d5db !important;
}

.add-treasury-page .add-treasury-page__input::placeholder,
.add-expense-type-page .add-expense-type-page__input::placeholder,
.add-customer-page .add-customer-page__input::placeholder,
.add-revenue-type-page .add-revenue-type-page__input::placeholder {
    color: #6b7280 !important;
}

.add-treasury-page .add-treasury-page__input:focus,
.add-expense-type-page .add-expense-type-page__input:focus,
.add-customer-page .add-customer-page__input:focus,
.add-revenue-type-page .add-revenue-type-page__input:focus {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1) !important;
}

.add-treasury-page .add-treasury-page__textarea,
.add-customer-page .add-customer-page__textarea {
    min-height: 120px;
}

.add-treasury-page .add-treasury-page__submit,
.add-expense-type-page .add-expense-type-page__submit,
.add-customer-page .add-customer-page__submit,
.add-revenue-type-page .add-revenue-type-page__submit {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    border: none !important;
}

.add-treasury-page .add-treasury-page__submit:hover,
.add-treasury-page .add-treasury-page__submit:focus,
.add-expense-type-page .add-expense-type-page__submit:hover,
.add-expense-type-page .add-expense-type-page__submit:focus,
.add-customer-page .add-customer-page__submit:hover,
.add-customer-page .add-customer-page__submit:focus,
.add-revenue-type-page .add-revenue-type-page__submit:hover,
.add-revenue-type-page .add-revenue-type-page__submit:focus {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    transform: translateY(-2px);
}

.add-customer-page .add-customer-page__table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.add-customer-page .add-customer-page__action-form {
    margin: 0;
}

.add-customer-page .add-customer-page__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 74px;
    padding: 0.32rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.add-customer-page .add-customer-page__action-btn:hover,
.add-customer-page .add-customer-page__action-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.add-customer-page .add-customer-page__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
}

.add-customer-page .add-customer-page__action-btn--edit {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.add-customer-page .add-customer-page__action-btn--edit:hover,
.add-customer-page .add-customer-page__action-btn--edit:focus {
    background: #dcfce7;
    border-color: #4ade80;
    color: #14532d;
}

.add-customer-page .add-customer-page__action-btn--delete {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.add-customer-page .add-customer-page__action-btn--delete:hover,
.add-customer-page .add-customer-page__action-btn--delete:focus {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.add-customer-page .add-customer-page__table-title-badge {
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
}

.add-customer-page .add-customer-page__table td[data-label="#"] {
    font-weight: 800;
    color: #1d4ed8 !important;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .add-customer-page {
        padding-top: 0.5rem !important;
    }

    .add-customer-page .add-customer-page__form-card,
    .add-customer-page .responsive-panel {
        padding: 1rem !important;
        border-radius: 16px !important;
    }

    .add-customer-page .add-customer-page__form-header {
        margin: -1rem -1rem 1rem;
        padding: 1rem;
    }

    .add-customer-page .add-customer-page__form-header h1 {
        font-size: 1.1rem;
    }

    .add-customer-page .add-customer-page__table-wrap {
        overflow: visible;
    }

    .add-customer-page .add-customer-page__table,
    .add-customer-page .add-customer-page__table tbody,
    .add-customer-page .add-customer-page__table tr,
    .add-customer-page .add-customer-page__table td {
        display: block;
        width: 100%;
    }

    .add-customer-page .add-customer-page__table thead {
        display: none;
    }

    .add-customer-page .add-customer-page__table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .add-customer-page .add-customer-page__table tr {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 0.8rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    }

    .add-customer-page .add-customer-page__table td {
        border: 0 !important;
        padding: 0.45rem 0;
        text-align: right;
        white-space: normal;
    }

    .add-customer-page .add-customer-page__table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.18rem;
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .add-customer-page .add-customer-page__table td[data-label="#"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        width: auto;
        padding: 0.35rem 0.65rem;
        margin-bottom: 0.35rem;
        border-radius: 999px;
        background: #eff6ff;
        color: #1d4ed8 !important;
    }

    .add-customer-page .add-customer-page__table td[data-label="#"]::before {
        margin-bottom: 0;
        margin-left: 0.35rem;
    }

    .add-customer-page .add-customer-page__table-actions {
        gap: 0.35rem;
        justify-content: flex-start;
    }

    .add-customer-page .add-customer-page__table-title-badge {
        font-size: 1.02rem;
    }

    .add-customer-page .add-customer-page__action-btn {
        min-width: 68px;
        padding: 0.3rem 0.6rem;
        font-size: 0.76rem;
    }

    .add-customer-page .add-customer-page__action-icon {
        font-size: 0.8rem;
    }
}

.add-treasury-page .add-treasury-page__table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.add-treasury-page .add-treasury-page__action-form {
    margin: 0;
}

.add-treasury-page .add-treasury-page__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 74px;
    padding: 0.32rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.add-treasury-page .add-treasury-page__action-btn:hover,
.add-treasury-page .add-treasury-page__action-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.add-treasury-page .add-treasury-page__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
}

.add-treasury-page .add-treasury-page__action-btn--edit {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.add-treasury-page .add-treasury-page__action-btn--edit:hover,
.add-treasury-page .add-treasury-page__action-btn--edit:focus {
    background: #dcfce7;
    border-color: #4ade80;
    color: #14532d;
}

.add-treasury-page .add-treasury-page__action-btn--delete {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.add-treasury-page .add-treasury-page__action-btn--delete:hover,
.add-treasury-page .add-treasury-page__action-btn--delete:focus {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.add-treasury-page .add-treasury-page__table-title-badge {
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
}

.add-treasury-page .add-treasury-page__table td[data-label="#"] {
    font-weight: 800;
    color: #1d4ed8 !important;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .add-treasury-page {
        padding-top: 0.5rem !important;
    }

    .add-treasury-page .add-treasury-page__form-card,
    .add-treasury-page .responsive-panel {
        padding: 1rem !important;
        border-radius: 16px !important;
    }

    .add-treasury-page .add-treasury-page__form-header {
        margin: -1rem -1rem 1rem;
        padding: 1rem;
    }

    .add-treasury-page .add-treasury-page__form-header h1 {
        font-size: 1.1rem;
    }

    .add-treasury-page .add-treasury-page__table-wrap {
        overflow: visible;
    }

    .add-treasury-page .add-treasury-page__table,
    .add-treasury-page .add-treasury-page__table tbody,
    .add-treasury-page .add-treasury-page__table tr,
    .add-treasury-page .add-treasury-page__table td {
        display: block;
        width: 100%;
    }

    .add-treasury-page .add-treasury-page__table thead {
        display: none;
    }

    .add-treasury-page .add-treasury-page__table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .add-treasury-page .add-treasury-page__table tr {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 0.8rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    }

    .add-treasury-page .add-treasury-page__table td {
        border: 0 !important;
        padding: 0.45rem 0;
        text-align: right;
        white-space: normal;
    }

    .add-treasury-page .add-treasury-page__table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.18rem;
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .add-treasury-page .add-treasury-page__table td[data-label="#"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        width: auto;
        padding: 0.35rem 0.65rem;
        margin-bottom: 0.35rem;
        border-radius: 999px;
        background: #eff6ff;
        color: #1d4ed8 !important;
    }

    .add-treasury-page .add-treasury-page__table td[data-label="#"]::before {
        margin-bottom: 0;
        margin-left: 0.35rem;
    }

    .add-treasury-page .add-treasury-page__table-actions {
        gap: 0.35rem;
        justify-content: flex-start;
    }

    .add-treasury-page .add-treasury-page__table-title-badge {
        font-size: 1.02rem;
    }

    .add-treasury-page .add-treasury-page__action-btn {
        min-width: 68px;
        padding: 0.3rem 0.6rem;
        font-size: 0.76rem;
    }

    .add-treasury-page .add-treasury-page__action-icon {
        font-size: 0.8rem;
    }
}

.add-expense-item-page .add-expense-item-page__form-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

.add-expense-item-page .add-expense-item-page__form-header {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    margin: -3rem -3rem 2rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(30, 41, 59, 0.2);
}

.add-expense-item-page .add-expense-item-page__form-header h1 {
    color: #ffffff !important;
    margin: 0;
}

.add-expense-item-page .add-expense-item-page__label {
    color: #1f2937 !important;
    font-weight: 600;
}

.add-expense-item-page .add-expense-item-page__input {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 2px solid #d1d5db !important;
}

.add-expense-item-page .add-expense-item-page__input::placeholder {
    color: #6b7280 !important;
}

.add-expense-item-page .add-expense-item-page__input:focus {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1) !important;
}

.add-expense-item-page .add-expense-item-page__submit {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    border: none !important;
}

.add-expense-item-page .add-expense-item-page__submit:hover,
.add-expense-item-page .add-expense-item-page__submit:focus {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    transform: translateY(-2px);
}

.add-expense-item-page .add-expense-item-page__table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.add-expense-item-page .add-expense-item-page__action-form {
    margin: 0;
}

.add-expense-item-page .add-expense-item-page__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 74px;
    padding: 0.32rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.add-expense-item-page .add-expense-item-page__action-btn:hover,
.add-expense-item-page .add-expense-item-page__action-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.add-expense-item-page .add-expense-item-page__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
}

.add-expense-item-page .add-expense-item-page__action-btn--edit {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.add-expense-item-page .add-expense-item-page__action-btn--edit:hover,
.add-expense-item-page .add-expense-item-page__action-btn--edit:focus {
    background: #dcfce7;
    border-color: #4ade80;
    color: #14532d;
}

.add-expense-item-page .add-expense-item-page__action-btn--delete {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.add-expense-item-page .add-expense-item-page__action-btn--delete:hover,
.add-expense-item-page .add-expense-item-page__action-btn--delete:focus {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.add-expense-item-page .add-expense-item-page__table-title-badge {
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
}

.add-expense-item-page .add-expense-item-page__table td[data-label="#"] {
    font-weight: 800;
    color: #1d4ed8 !important;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .add-expense-item-page {
        padding-top: 0.5rem !important;
    }

    .add-expense-item-page .add-expense-item-page__form-card,
    .add-expense-item-page .responsive-panel {
        padding: 1rem !important;
        border-radius: 16px !important;
    }

    .add-expense-item-page .add-expense-item-page__form-header {
        margin: -1rem -1rem 1rem;
        padding: 1rem;
    }

    .add-expense-item-page .add-expense-item-page__form-header h1 {
        font-size: 1.1rem;
    }

    .add-expense-item-page .add-expense-item-page__table-wrap {
        overflow: visible;
    }

    .add-expense-item-page .add-expense-item-page__table,
    .add-expense-item-page .add-expense-item-page__table tbody,
    .add-expense-item-page .add-expense-item-page__table tr,
    .add-expense-item-page .add-expense-item-page__table td {
        display: block;
        width: 100%;
    }

    .add-expense-item-page .add-expense-item-page__table thead {
        display: none;
    }

    .add-expense-item-page .add-expense-item-page__table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .add-expense-item-page .add-expense-item-page__table tr {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 0.8rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    }

    .add-expense-item-page .add-expense-item-page__table td {
        border: 0 !important;
        padding: 0.45rem 0;
        text-align: right;
        white-space: normal;
    }

    .add-expense-item-page .add-expense-item-page__table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.18rem;
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .add-expense-item-page .add-expense-item-page__table td[data-label="#"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        width: auto;
        padding: 0.35rem 0.65rem;
        margin-bottom: 0.35rem;
        border-radius: 999px;
        background: #eff6ff;
        color: #1d4ed8 !important;
    }

    .add-expense-item-page .add-expense-item-page__table td[data-label="#"]::before {
        margin-bottom: 0;
        margin-left: 0.35rem;
    }

    .add-expense-item-page .add-expense-item-page__table-actions {
        gap: 0.35rem;
        justify-content: flex-start;
    }

    .add-expense-item-page .add-expense-item-page__table-title-badge {
        font-size: 1.02rem;
    }

    .add-expense-item-page .add-expense-item-page__action-btn {
        min-width: 68px;
        padding: 0.3rem 0.6rem;
        font-size: 0.76rem;
    }

    .add-expense-item-page .add-expense-item-page__action-icon {
        font-size: 0.8rem;
    }
}

.add-store-page .add-store-page__form-card,
.add-item-entry-permit-page .add-item-entry-permit-page__form-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

.add-store-page .add-store-page__form-header,
.add-item-entry-permit-page .add-item-entry-permit-page__form-header {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    margin: -3rem -3rem 2rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(30, 41, 59, 0.2);
}

.add-item-entry-permit-page .add-item-entry-permit-page__form-header h1 {
    color: #ffffff !important;
    margin: 0;
}

.add-item-entry-permit-page .add-item-entry-permit-page__label {
    color: #1f2937 !important;
    font-weight: 600;
}

.add-item-entry-permit-page .add-item-entry-permit-page__input {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 2px solid #d1d5db !important;
}

.add-item-entry-permit-page .add-item-entry-permit-page__input::placeholder {
    color: #6b7280 !important;
}

.add-item-entry-permit-page .add-item-entry-permit-page__input:focus {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1) !important;
}

.add-item-entry-permit-page .add-item-entry-permit-page__textarea {
    min-height: 120px;
}

.add-item-entry-permit-page .add-item-entry-permit-page__submit {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    border: none !important;
}

.add-item-entry-permit-page .add-item-entry-permit-page__submit:hover,
.add-item-entry-permit-page .add-item-entry-permit-page__submit:focus {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    transform: translateY(-2px);
}

.add-item-entry-permit-page .add-item-entry-permit-page__table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.add-item-entry-permit-page .add-item-entry-permit-page__action-form {
    margin: 0;
}

.add-item-entry-permit-page .add-item-entry-permit-page__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 74px;
    padding: 0.32rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.add-item-entry-permit-page .add-item-entry-permit-page__action-btn:hover,
.add-item-entry-permit-page .add-item-entry-permit-page__action-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.add-item-entry-permit-page .add-item-entry-permit-page__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
}

.add-item-entry-permit-page .add-item-entry-permit-page__action-btn--edit {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.add-item-entry-permit-page .add-item-entry-permit-page__action-btn--edit:hover,
.add-item-entry-permit-page .add-item-entry-permit-page__action-btn--edit:focus {
    background: #dcfce7;
    border-color: #4ade80;
    color: #14532d;
}

.add-item-entry-permit-page .add-item-entry-permit-page__action-btn--delete {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.add-item-entry-permit-page .add-item-entry-permit-page__action-btn--delete:hover,
.add-item-entry-permit-page .add-item-entry-permit-page__action-btn--delete:focus {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.add-item-entry-permit-page .add-item-entry-permit-page__table-title-badge {
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
}

.add-item-entry-permit-page .add-item-entry-permit-page__table td[data-label="#"] {
    font-weight: 800;
    color: #1d4ed8 !important;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .add-item-entry-permit-page {
        padding-top: 0.5rem !important;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__form-card,
    .add-item-entry-permit-page .responsive-panel {
        padding: 1rem !important;
        border-radius: 16px !important;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__form-header {
        margin: -1rem -1rem 1rem;
        padding: 1rem;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__form-header h1 {
        font-size: 1.1rem;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__table-wrap {
        overflow: visible;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__table,
    .add-item-entry-permit-page .add-item-entry-permit-page__table tbody,
    .add-item-entry-permit-page .add-item-entry-permit-page__table tr,
    .add-item-entry-permit-page .add-item-entry-permit-page__table td {
        display: block;
        width: 100%;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__table thead {
        display: none;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__table tr {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 0.8rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__table td {
        border: 0 !important;
        padding: 0.45rem 0;
        text-align: right;
        white-space: normal;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.18rem;
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__table td[data-label="#"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        width: auto;
        padding: 0.35rem 0.65rem;
        margin-bottom: 0.35rem;
        border-radius: 999px;
        background: #eff6ff;
        color: #1d4ed8 !important;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__table td[data-label="#"]::before {
        margin-bottom: 0;
        margin-left: 0.35rem;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__table-actions {
        gap: 0.35rem;
        justify-content: flex-start;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__table-title-badge {
        font-size: 1.02rem;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__action-btn {
        min-width: 68px;
        padding: 0.3rem 0.6rem;
        font-size: 0.76rem;
    }

    .add-item-entry-permit-page .add-item-entry-permit-page__action-icon {
        font-size: 0.8rem;
    }
}

.add-item-transfer-page .add-item-transfer-page__form-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

.add-item-transfer-page .add-item-transfer-page__form-header {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    margin: -3rem -3rem 2rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(30, 41, 59, 0.2);
}

.add-item-transfer-page .add-item-transfer-page__form-header h1 {
    color: #ffffff !important;
    margin: 0;
}

.add-item-transfer-page .add-item-transfer-page__label {
    color: #1f2937 !important;
    font-weight: 600;
}

.add-item-transfer-page .add-item-transfer-page__input {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 2px solid #d1d5db !important;
}

.add-item-transfer-page .add-item-transfer-page__input::placeholder {
    color: #6b7280 !important;
}

.add-item-transfer-page .add-item-transfer-page__input:focus {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1) !important;
}

.add-item-transfer-page .add-item-transfer-page__textarea {
    min-height: 120px;
}

.add-item-transfer-page .add-item-transfer-page__submit {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    border: none !important;
}

.add-item-transfer-page .add-item-transfer-page__submit:hover,
.add-item-transfer-page .add-item-transfer-page__submit:focus {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    transform: translateY(-2px);
}

.add-item-transfer-page .add-item-transfer-page__table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.add-item-transfer-page .add-item-transfer-page__action-form {
    margin: 0;
}

.add-item-transfer-page .add-item-transfer-page__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 74px;
    padding: 0.32rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.add-item-transfer-page .add-item-transfer-page__action-btn:hover,
.add-item-transfer-page .add-item-transfer-page__action-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.add-item-transfer-page .add-item-transfer-page__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
}

.add-item-transfer-page .add-item-transfer-page__action-btn--edit {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.add-item-transfer-page .add-item-transfer-page__action-btn--edit:hover,
.add-item-transfer-page .add-item-transfer-page__action-btn--edit:focus {
    background: #dcfce7;
    border-color: #4ade80;
    color: #14532d;
}

.add-item-transfer-page .add-item-transfer-page__action-btn--delete {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.add-item-transfer-page .add-item-transfer-page__action-btn--delete:hover,
.add-item-transfer-page .add-item-transfer-page__action-btn--delete:focus {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.add-item-transfer-page .add-item-transfer-page__table-title-badge {
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
}

.add-item-transfer-page .add-item-transfer-page__table td[data-label="#"] {
    font-weight: 800;
    color: #1d4ed8 !important;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .add-item-transfer-page {
        padding-top: 0.5rem !important;
    }

    .add-item-transfer-page .add-item-transfer-page__form-card,
    .add-item-transfer-page .responsive-panel {
        padding: 1rem !important;
        border-radius: 16px !important;
    }

    .add-item-transfer-page .add-item-transfer-page__form-header {
        margin: -1rem -1rem 1rem;
        padding: 1rem;
    }

    .add-item-transfer-page .add-item-transfer-page__form-header h1 {
        font-size: 1.1rem;
    }

    .add-item-transfer-page .add-item-transfer-page__table-wrap {
        overflow: visible;
    }

    .add-item-transfer-page .add-item-transfer-page__table,
    .add-item-transfer-page .add-item-transfer-page__table tbody,
    .add-item-transfer-page .add-item-transfer-page__table tr,
    .add-item-transfer-page .add-item-transfer-page__table td {
        display: block;
        width: 100%;
    }

    .add-item-transfer-page .add-item-transfer-page__table thead {
        display: none;
    }

    .add-item-transfer-page .add-item-transfer-page__table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .add-item-transfer-page .add-item-transfer-page__table tr {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 0.8rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    }

    .add-item-transfer-page .add-item-transfer-page__table td {
        border: 0 !important;
        padding: 0.45rem 0;
        text-align: right;
        white-space: normal;
    }

    .add-item-transfer-page .add-item-transfer-page__table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.18rem;
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .add-item-transfer-page .add-item-transfer-page__table td[data-label="#"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        width: auto;
        padding: 0.35rem 0.65rem;
        margin-bottom: 0.35rem;
        border-radius: 999px;
        background: #eff6ff;
        color: #1d4ed8 !important;
    }

    .add-item-transfer-page .add-item-transfer-page__table td[data-label="#"]::before {
        margin-bottom: 0;
        margin-left: 0.35rem;
    }

    .add-item-transfer-page .add-item-transfer-page__table-actions {
        gap: 0.35rem;
        justify-content: flex-start;
    }

    .add-item-transfer-page .add-item-transfer-page__table-title-badge {
        font-size: 1.02rem;
    }

    .add-item-transfer-page .add-item-transfer-page__action-btn {
        min-width: 68px;
        padding: 0.3rem 0.6rem;
        font-size: 0.76rem;
    }

    .add-item-transfer-page .add-item-transfer-page__action-icon {
        font-size: 0.8rem;
    }
}

.add-sales-representative-page .add-sales-representative-page__form-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

.add-sales-representative-page .add-sales-representative-page__form-header {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    margin: -3rem -3rem 2rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(30, 41, 59, 0.2);
}

.add-sales-representative-page .add-sales-representative-page__form-header h1 {
    color: #ffffff !important;
    margin: 0;
}

.add-sales-representative-page .add-sales-representative-page__label {
    color: #1f2937 !important;
    font-weight: 600;
}

.add-sales-representative-page .add-sales-representative-page__input {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 2px solid #d1d5db !important;
}

.add-sales-representative-page .add-sales-representative-page__input::placeholder {
    color: #6b7280 !important;
}

.add-sales-representative-page .add-sales-representative-page__input:focus {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1) !important;
}

.add-sales-representative-page .add-sales-representative-page__textarea {
    min-height: 120px;
}

.add-sales-representative-page .add-sales-representative-page__submit {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    border: none !important;
}

.add-sales-representative-page .add-sales-representative-page__submit:hover,
.add-sales-representative-page .add-sales-representative-page__submit:focus {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    transform: translateY(-2px);
}

.add-sales-representative-page .add-sales-representative-page__table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.add-sales-representative-page .add-sales-representative-page__action-form {
    margin: 0;
}

.add-sales-representative-page .add-sales-representative-page__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 74px;
    padding: 0.32rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.add-sales-representative-page .add-sales-representative-page__action-btn:hover,
.add-sales-representative-page .add-sales-representative-page__action-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.add-sales-representative-page .add-sales-representative-page__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
}

.add-sales-representative-page .add-sales-representative-page__action-btn--edit {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.add-sales-representative-page .add-sales-representative-page__action-btn--edit:hover,
.add-sales-representative-page .add-sales-representative-page__action-btn--edit:focus {
    background: #dcfce7;
    border-color: #4ade80;
    color: #14532d;
}

.add-sales-representative-page .add-sales-representative-page__action-btn--delete {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.add-sales-representative-page .add-sales-representative-page__action-btn--delete:hover,
.add-sales-representative-page .add-sales-representative-page__action-btn--delete:focus {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.add-sales-representative-page .add-sales-representative-page__table-title-badge {
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
}

.add-sales-representative-page .add-sales-representative-page__table td[data-label="#"] {
    font-weight: 800;
    color: #1d4ed8 !important;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .add-sales-representative-page {
        padding-top: 0.5rem !important;
    }

    .add-sales-representative-page .add-sales-representative-page__form-card,
    .add-sales-representative-page .responsive-panel {
        padding: 1rem !important;
        border-radius: 16px !important;
    }

    .add-sales-representative-page .add-sales-representative-page__form-header {
        margin: -1rem -1rem 1rem;
        padding: 1rem;
    }

    .add-sales-representative-page .add-sales-representative-page__form-header h1 {
        font-size: 1.1rem;
    }

    .add-sales-representative-page .add-sales-representative-page__table-wrap {
        overflow: visible;
    }

    .add-sales-representative-page .add-sales-representative-page__table,
    .add-sales-representative-page .add-sales-representative-page__table tbody,
    .add-sales-representative-page .add-sales-representative-page__table tr,
    .add-sales-representative-page .add-sales-representative-page__table td {
        display: block;
        width: 100%;
    }

    .add-sales-representative-page .add-sales-representative-page__table thead {
        display: none;
    }

    .add-sales-representative-page .add-sales-representative-page__table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .add-sales-representative-page .add-sales-representative-page__table tr {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 0.8rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    }

    .add-sales-representative-page .add-sales-representative-page__table td {
        border: 0 !important;
        padding: 0.45rem 0;
        text-align: right;
        white-space: normal;
    }

    .add-sales-representative-page .add-sales-representative-page__table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.18rem;
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .add-sales-representative-page .add-sales-representative-page__table td[data-label="#"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        width: auto;
        padding: 0.35rem 0.65rem;
        margin-bottom: 0.35rem;
        border-radius: 999px;
        background: #eff6ff;
        color: #1d4ed8 !important;
    }

    .add-sales-representative-page .add-sales-representative-page__table td[data-label="#"]::before {
        margin-bottom: 0;
        margin-left: 0.35rem;
    }

    .add-sales-representative-page .add-sales-representative-page__table-actions {
        gap: 0.35rem;
        justify-content: flex-start;
    }

    .add-sales-representative-page .add-sales-representative-page__table-title-badge {
        font-size: 1.02rem;
    }

    .add-sales-representative-page .add-sales-representative-page__action-btn {
        min-width: 68px;
        padding: 0.3rem 0.6rem;
        font-size: 0.76rem;
    }

    .add-sales-representative-page .add-sales-representative-page__action-icon {
        font-size: 0.8rem;
    }
}

.add-sales-representative-invoice-page .add-sales-representative-invoice-page__table-title-badge {
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
}

.add-sales-representative-invoice-page .invoice-form-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

.add-sales-representative-invoice-page .add-sales-representative-invoice-page__header {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.add-sales-representative-invoice-page .invoice-section-heading {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
    margin: -3rem -3rem 2rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(30, 41, 59, 0.2);
}

.add-sales-representative-invoice-page .invoice-section-heading h2,
.add-sales-representative-invoice-page .invoice-section-heading p {
    color: #ffffff !important;
}

.add-sales-representative-invoice-page .invoice-section-heading h2 {
    margin-bottom: 0.35rem !important;
}

.add-sales-representative-invoice-page .invoice-form .form-label,
.add-sales-representative-invoice-page .invoice-form-block__title {
    color: #1f2937 !important;
    font-weight: 700;
}

.add-sales-representative-invoice-page .invoice-form .form-control,
.add-sales-representative-invoice-page .invoice-form .form-select {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 2px solid #d1d5db !important;
}

.add-sales-representative-invoice-page .invoice-form .form-control::placeholder {
    color: #6b7280 !important;
}

.add-sales-representative-invoice-page .invoice-form .form-control:focus,
.add-sales-representative-invoice-page .invoice-form .form-select:focus {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1) !important;
}

.add-sales-representative-invoice-page #submit_invoice_button {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none !important;
    color: #ffffff !important;
}

.add-sales-representative-invoice-page #submit_invoice_button:hover,
.add-sales-representative-invoice-page #submit_invoice_button:focus {
    background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: translateY(-2px);
}

.add-sales-representative-invoice-page .add-sales-representative-invoice-page__table-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.add-sales-representative-invoice-page .add-sales-representative-invoice-page__action-form {
    margin: 0;
    flex: 0 0 auto;
}

.add-sales-representative-invoice-page .add-sales-representative-invoice-page__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 0.32rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.add-sales-representative-invoice-page .add-sales-representative-invoice-page__action-btn:hover,
.add-sales-representative-invoice-page .add-sales-representative-invoice-page__action-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.add-sales-representative-invoice-page .add-sales-representative-invoice-page__action-btn--view {
    background: #ff8c00;
    border-color: #ff7500;
    color: #ffffff;
}

.add-sales-representative-invoice-page .add-sales-representative-invoice-page__action-btn--edit {
    background: #ffd700;
    border-color: #ffb700;
    color: #000000;
}

.add-sales-representative-invoice-page .add-sales-representative-invoice-page__action-btn--pay {
    background: #f97316 !important;
    border-color: #ea580c !important;
    color: #ffffff !important;
}

.add-sales-representative-invoice-page .add-sales-representative-invoice-page__action-btn--delete {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.add-sales-representative-invoice-page .add-sales-representative-invoice-page__table td[data-label="#"] {
    font-weight: 800;
    color: #1d4ed8 !important;
    white-space: nowrap;
}

.add-revenue-type-page .add-revenue-type-page__table-actions,
.add-expense-type-page .add-expense-type-page__table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.add-revenue-type-page .add-revenue-type-page__action-form,
.add-expense-type-page .add-expense-type-page__action-form {
    margin: 0;
}

.add-revenue-type-page .add-revenue-type-page__action-btn,
.add-expense-type-page .add-expense-type-page__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 74px;
    padding: 0.32rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

.add-revenue-type-page .add-revenue-type-page__action-btn:hover,
.add-revenue-type-page .add-revenue-type-page__action-btn:focus,
.add-expense-type-page .add-expense-type-page__action-btn:hover,
.add-expense-type-page .add-expense-type-page__action-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.add-revenue-type-page .add-revenue-type-page__action-icon,
.add-expense-type-page .add-expense-type-page__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
}

.add-revenue-type-page .add-revenue-type-page__action-btn--edit,
.add-expense-type-page .add-expense-type-page__action-btn--edit {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.add-revenue-type-page .add-revenue-type-page__action-btn--delete,
.add-expense-type-page .add-expense-type-page__action-btn--delete {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.add-revenue-type-page .add-revenue-type-page__table-title-badge,
.add-expense-type-page .add-expense-type-page__table-title-badge {
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
}

.add-revenue-type-page .add-revenue-type-page__table td[data-label="#"],
.add-expense-type-page .add-expense-type-page__table td[data-label="#"] {
    font-weight: 800;
    color: #1d4ed8 !important;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .add-sales-representative-invoice-page .invoice-form-panel,
    .add-sales-representative-invoice-page .add-sales-representative-invoice-page__header,
    .add-sales-representative-invoice-page .responsive-panel {
        padding: 1rem !important;
        border-radius: 16px !important;
    }

    .add-sales-representative-invoice-page .invoice-section-heading {
        margin: -1rem -1rem 1rem;
        padding: 1rem;
    }

    .add-sales-representative-invoice-page .invoice-section-heading h2 {
        font-size: 1.1rem;
    }

    .add-sales-representative-invoice-page .add-sales-representative-invoice-page__table,
    .add-sales-representative-invoice-page .add-sales-representative-invoice-page__table tbody,
    .add-sales-representative-invoice-page .add-sales-representative-invoice-page__table tr,
    .add-sales-representative-invoice-page .add-sales-representative-invoice-page__table td {
        display: block;
        width: 100%;
    }

    .add-sales-representative-invoice-page .add-sales-representative-invoice-page__table thead {
        display: none;
    }

    .add-sales-representative-invoice-page .add-sales-representative-invoice-page__table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .add-sales-representative-invoice-page .add-sales-representative-invoice-page__table tr {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 0.8rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    }

    .add-sales-representative-invoice-page .add-sales-representative-invoice-page__table td {
        border: 0 !important;
        padding: 0.45rem 0;
        text-align: right;
        white-space: normal;
    }

    .add-sales-representative-invoice-page .add-sales-representative-invoice-page__table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.18rem;
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .add-sales-representative-invoice-page .add-sales-representative-invoice-page__table td[data-label="#"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        width: auto;
        padding: 0.35rem 0.65rem;
        margin-bottom: 0.35rem;
        border-radius: 999px;
        background: #eff6ff;
        color: #1d4ed8 !important;
    }
}

.navbar,
.site-navbar {
    width: 100%;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-navbar--dark {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98) 58%, rgba(12, 74, 110, 0.96)) !important;
    border-bottom-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.30) !important;
}

.site-navbar .container-fluid {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
}

.site-navbar .navbar-brand {
    min-width: max-content;
    padding: 0.2rem 0;
    color: #f8fafc !important;
}

.site-navbar__logo {
    min-width: 94px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.95rem;
    border-radius: 8px;
    background: #0ea5e9;
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 22px rgba(14, 165, 233, 0.24);
}

.site-navbar__brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
}

.site-navbar__brand-title {
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 800;
}

.site-navbar__brand-subtitle {
    color: #cbd5e1;
    font-size: 0.68rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.navbar .navbar-nav {
    text-align: right;
}

.navbar .navbar-collapse {
    width: 100%;
}

.navbar .nav-link {
    color: #e5eef9;
    border-radius: 8px;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    font-weight: 700;
    line-height: 1.2;
}

.site-navbar--dark .nav-link,
.site-navbar--dark .navbar-brand,
.site-navbar--dark .navbar-brand span {
    color: #f8fafc;
}

.site-navbar--dark .navbar-toggler {
    border-color: rgba(226, 232, 240, 0.28);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
}

.site-navbar--dark .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.24);
}

.site-navbar--dark .navbar-toggler-icon {
    filter: invert(1);
}

.navbar .btn {
    width: auto;
    margin-top: 0;
    border-radius: 8px;
    font-weight: 700;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active,
.navbar .show > .nav-link {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.10);
}

.navbar .dropdown-menu {
    min-width: 250px;
    padding: 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
}

.site-navbar__dropdown-menu {
    max-height: min(78vh, 680px);
    overflow-y: auto;
}

.site-navbar--dark .site-navbar__dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(15, 23, 42, 0.10);
}

.navbar .dropdown-header {
    margin: 0.25rem 0.15rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155 !important;
    font-size: 0.78rem;
    letter-spacing: 0;
}

.navbar .dropdown-divider {
    margin: 0.45rem 0.25rem;
    border-top-color: #e2e8f0;
    opacity: 1;
}

.navbar .dropdown-item {
    text-align: right;
    padding: 0.62rem 0.8rem;
    border-radius: 8px;
    color: #1f2937;
    font-weight: 650;
    transition: color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: #eff6ff;
    color: #1d4ed8;
    transform: translateX(-2px);
}

.site-navbar__user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    color: #f8fafc;
    padding: 0.56rem 0.82rem;
    font-size: 0.86rem;
}

.site-navbar--dark .site-navbar__user-badge {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(226, 232, 240, 0.18) !important;
}

.site-navbar__guest-note {
    white-space: nowrap;
}

.signup-container,
.login-container,
.dashboard-container,
.hero-card {
    background: white;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px;
}

.home-container {
    width: 100%;
    max-width: 1440px;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

.dashboard-page {
    width: 100%;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

.dashboard-page--reference-theme {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    overflow: hidden;
}

.dashboard-background-shapes {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    pointer-events: none;
}

.dashboard-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: dashboardFloat 6s ease-in-out infinite;
}

.dashboard-shape:nth-child(1) {
    width: 220px;
    height: 220px;
    top: 8%;
    left: 8%;
}

.dashboard-shape:nth-child(2) {
    width: 320px;
    height: 320px;
    top: 54%;
    right: 6%;
    animation-delay: 2s;
}

.dashboard-shape:nth-child(3) {
    width: 160px;
    height: 160px;
    bottom: 6%;
    left: 46%;
    animation-delay: 4s;
}

@keyframes dashboardFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(180deg); }
}

.login-container,
.signup-container {
    margin: 2rem auto;
}

.auth-card {
    max-width: 460px;
}

.auth-page-shell {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.auth-floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: authFloat 6s ease-in-out infinite;
    pointer-events: none;
}

.auth-floating-shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 8%;
    left: 8%;
}

.auth-floating-shape:nth-child(2) {
    width: 280px;
    height: 280px;
    top: 55%;
    right: 6%;
    animation-delay: 2s;
}

.auth-floating-shape:nth-child(3) {
    width: 140px;
    height: 140px;
    bottom: 10%;
    left: 48%;
    animation-delay: 4s;
}

@keyframes authFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.auth-modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 2.2rem;
    max-width: 480px;
    position: relative;
    z-index: 2;
}

.auth-modern-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 14px;
    padding: 1.4rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-modern-title {
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: 1.8rem;
}

.auth-modern-input {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
    transition: all 0.25s ease;
}

.auth-modern-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.auth-modern-submit {
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: none;
}

.auth-modern-submit:hover,
.auth-modern-submit:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.35);
}

.auth-modern-link-text {
    text-align: center;
    margin-top: 1.1rem;
}

.login-card--enhanced {
    max-width: 460px;
    padding: 2rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.login-card--english {
    direction: ltr;
    text-align: left;
}

.auth-form--english {
    direction: ltr;
    text-align: left;
}

.auth-form--english h2,
.auth-form--english label,
.auth-form--english .auth-link-text,
.auth-form--english .server-message,
.auth-form--english .error {
    text-align: left;
}

.auth-form--english input,
.auth-form--english .form-control {
    direction: ltr;
    text-align: left;
}

.auth-form--english #username,
.auth-form--english #password,
.auth-form--english #confirm_password {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext;
}

.login-card__header {
    text-align: center;
    margin-bottom: 1.35rem;
}

.login-card__title {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.login-card__form {
    margin-top: 0.35rem;
}

.login-card--enhanced label {
    color: #334155;
    font-weight: 600;
    text-align: left;
}

.login-card__input {
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    text-align: left;
    direction: ltr;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-card__input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
    background: #ffffff;
}

.login-card__submit {
    margin-top: 0.35rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-card__submit:hover,
.login-card__submit:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.32);
    background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
}

.login-card__footer-text {
    margin-top: 1.25rem;
    color: #475569;
}

.login-card--enhanced .server-message {
    border-radius: 10px;
    font-size: 0.93rem;
}

.hero-card,
.dashboard-card {
    max-width: 560px;
}

.hero-card {
    text-align: center;
}

.hero-card h1 {
    margin-top: 0;
    color: #1f2d3d;
}

.hero-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.home-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.home-actions .btn {
    width: auto;
    min-width: 180px;
    margin-top: 0;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.login-container .form-group,
.signup-container .form-group {
    margin-bottom: 1.1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
    text-align: right;
}

input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    text-align: right;
}

input:focus {
    outline: none;
    border-color: #007bff;
}

.btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

.login-container .btn,
.signup-container .btn,
.dashboard-actions .btn {
    width: 100%;
}

.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success {
    color: #28a745;
    text-align: center;
    margin-top: 1rem;
}

.server-message {
    margin-bottom: 1rem;
    border-radius: 8px;
}

.auth-link-text {
    margin-top: 1rem;
    text-align: center;
    color: #555;
    line-height: 1.6;
}

.auth-link-text a {
    color: #007bff;
    text-decoration: none;
}

.auth-link-text a:hover {
    text-decoration: underline;
}

.dashboard-container p {
    color: #555;
    margin-bottom: 1.5rem;
    text-align: right;
}

.dashboard-container .btn + .btn {
    margin-top: 0.75rem;
}

.dashboard-header {
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-header h1 {
    margin: 0.75rem 0;
    color: #1f2d3d;
    font-size: 2rem;
}

.dashboard-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background-color: #e9f2ff;
    color: #007bff;
    font-size: 0.85rem;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dashboard-info-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background-color: #fafcff;
}

.dashboard-info-box h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #1f2d3d;
}

.dashboard-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-info-box li {
    margin-bottom: 0.6rem;
    color: #555;
    text-align: right;
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-actions .btn {
    margin-top: 0;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

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

.dashboard-card--wide {
    max-width: 1100px;
}

.dashboard-reference-shell {
    max-width: 1380px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.dashboard-reference-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b 60%, #334155);
    border-radius: 24px;
    padding: 1.5rem 1.75rem;
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
    margin-bottom: 1.25rem;
    text-align: center;
}

.dashboard-reference-hero h1 {
    color: #fff;
    margin: 0.9rem 0 0;
}

.dashboard-page--reference-theme,
.dashboard-page--reference-theme h1,
.dashboard-page--reference-theme h2,
.dashboard-page--reference-theme h3,
.dashboard-page--reference-theme h4,
.dashboard-page--reference-theme h5,
.dashboard-page--reference-theme h6,
.dashboard-page--reference-theme p,
.dashboard-page--reference-theme span,
.dashboard-page--reference-theme small,
.dashboard-page--reference-theme label,
.dashboard-page--reference-theme a,
.dashboard-page--reference-theme li,
.dashboard-page--reference-theme strong,
.dashboard-page--reference-theme .action-group-title,
.dashboard-page--reference-theme .quick-actions-title,
.dashboard-page--reference-theme .welcome-action--local,
.dashboard-page--reference-theme .welcome-action--local span,
.dashboard-page--reference-theme .welcome-action--local i {
    color: #ffffff !important;
}

.dashboard-page--reference-theme .dashboard-badge {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.dashboard-page--reference-theme .quick-actions-title,
.dashboard-page--reference-theme .action-group-title,
.dashboard-page--reference-theme .welcome-action--local span,
.dashboard-page--reference-theme .welcome-action--local i {
    color: #ffffff;
}

.dashboard-page--reference-theme .text-muted,
.dashboard-page--reference-theme .welcome-action--local small,
.dashboard-page--reference-theme .action-group p,
.dashboard-page--reference-theme .dashboard-reference-hero p {
    color: rgba(255, 255, 255, 0.88) !important;
}

.dashboard-page--reference-theme .quick-actions-title::after {
    background: rgba(255, 255, 255, 0.3);
}

.dashboard-shell {
    max-width: 1380px;
    margin: 0 auto;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    background: linear-gradient(135deg, #0f172a, #1e293b 52%, #2563eb);
    border-radius: 28px;
    padding: 2rem;
    color: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.24);
    margin-bottom: 1.5rem;
}

.dashboard-hero__content h1 {
    color: #fff;
    margin: 0.8rem 0;
    font-size: 2.25rem;
}

.dashboard-hero__content p {
    color: rgba(255, 255, 255, 0.86);
    max-width: 720px;
    line-height: 1.8;
}

.dashboard-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dashboard-hero__actions .btn {
    width: auto;
    min-width: 180px;
    margin-top: 0;
    border-radius: 14px;
}

.dashboard-hero__actions .btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.dashboard-hero__actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dashboard-hero__stats {
    display: grid;
    gap: 0.9rem;
}

.dashboard-stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.1rem 1rem;
    backdrop-filter: blur(8px);
}

.dashboard-stat-card__label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.45rem;
}

.dashboard-stat-card__value {
    display: block;
    font-size: 1.45rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.dashboard-stat-card__hint {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.6fr);
    gap: 1.25rem;
}

.dashboard-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 1.4rem;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.dashboard-panel__header {
    margin-bottom: 1rem;
}

.dashboard-panel__header h3 {
    margin: 0 0 0.35rem;
    color: #0f172a;
}

.dashboard-panel__header p {
    color: #64748b;
    margin: 0;
    line-height: 1.7;
}

.dashboard-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.dashboard-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dashboard-summary-list li span {
    color: #64748b;
    font-weight: 600;
}

.dashboard-summary-list li strong {
    color: #0f172a;
}

.dashboard-quick-groups--dashboard {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dashboard-quick-group--enhanced {
    padding: 1.15rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dashboard-quick-group__header {
    margin-bottom: 0.9rem;
}

.dashboard-quick-group__title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.dashboard-quick-group__header h4 {
    margin-bottom: 0.35rem;
}

.dashboard-quick-group__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eaf2ff;
    color: #1d4ed8;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-quick-group__header p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.92rem;
}

.dashboard-quick-link--enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.dashboard-quick-link--enhanced small {
    color: #64748b;
    font-size: 0.78rem;
}

.dashboard-quick-link__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dashboard-quick-link__text span {
    color: #0f172a;
}

.dashboard-quick-link__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eaf2ff;
    color: #2563eb;
    font-size: 1rem;
    flex-shrink: 0;
}

.dashboard-quick-groups--premium .dashboard-quick-group--enhanced {
    border-color: #dbe7f5;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.dashboard-quick-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dashboard-quick-group {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.dashboard-quick-group h4 {
    margin: 0 0 0.9rem;
    color: #1e3a8a;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dashboard-quick-link {
    display: block;
    text-decoration: none;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #dbe7f5;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    transition: all 0.2s ease;
    font-weight: 600;
}

.dashboard-quick-link:hover,
.dashboard-quick-link:focus {
    color: #0f4cbd;
    background: #eef5ff;
    border-color: #bfd6fb;
    transform: translateY(-1px);
}

.quick-actions-panel--local {
    width: 100%;
    margin-top: 0;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.dashboard-invoices-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(191, 219, 254, 0.55) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%) !important;
}

.dashboard-invoices-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 50%, #0ea5e9 100%);
}

.dashboard-invoices-panel__header {
    position: relative;
    z-index: 1;
}

.dashboard-invoices-panel__badge {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.dashboard-invoices-panel__title {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 800;
}

.dashboard-invoices-panel__subtitle {
    color: #64748b !important;
    max-width: 680px;
    line-height: 1.8;
}

.dashboard-invoices-panel__action {
    border-width: 1px;
    border-color: #bfdbfe;
    color: #1d4ed8 !important;
    background: #eff6ff;
    border-radius: 14px;
    padding: 0.75rem 1.2rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.dashboard-invoices-panel__action:hover,
.dashboard-invoices-panel__action:focus {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(59, 130, 246, 0.16);
}

.dashboard-invoices-table-wrap {
    background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
    border: 1px solid #d4def3;
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 16px 34px rgba(15, 23, 42, 0.06);
}

.dashboard-invoices-table {
    margin: 0;
    background: transparent;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(219, 234, 254, 0.55);
    --bs-table-hover-bg: rgba(191, 219, 254, 0.5);
}

.dashboard-invoices-table thead th {
    background: linear-gradient(180deg, #dbeafe 0%, #c7dcff 100%) !important;
    color: #1e3a8a !important;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
    border-bottom: 1px solid #dbe7f5;
    padding: 1rem 1.05rem;
}

.dashboard-invoices-table tbody td {
    padding: 0.95rem 1.05rem;
    vertical-align: middle;
    border-color: #eaf0f7;
    background: transparent !important;
    font-weight: 600;
    color: #334155;
}

.dashboard-invoices-table tbody tr {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dashboard-invoices-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 999px rgba(239, 246, 255, 0.45);
}

.dashboard-invoices-table__id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dashboard-invoices-table__invoice-number {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 800;
    direction: ltr;
}

.dashboard-invoices-table__amount {
    color: #059669;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.dashboard-invoices-table__payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.dashboard-invoices-table__payment-badge.is-cash {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.2);
}

.dashboard-invoices-table__payment-badge.is-installment {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.22);
}

.dashboard-invoices-table__date {
    color: #475569;
    font-size: 0.92rem;
    white-space: nowrap;
}

.dashboard-invoices-table__edit-btn {
    width: auto;
    margin-top: 0;
    padding: 0.48rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0.9;
    text-decoration: none;
}

.dashboard-invoices-table__view-btn {
    width: auto;
    margin-top: 0;
    padding: 0.48rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-invoices-table__view-btn:hover,
.dashboard-invoices-table__view-btn:focus {
    color: #0f172a;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(100, 116, 139, 0.14);
}

.dashboard-invoices-table__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 180px;
}

.dashboard-invoices-table__actions-column {
    min-width: 210px;
    width: 210px;
}

.dashboard-invoices-table__edit-btn:hover,
.dashboard-invoices-table__edit-btn:focus {
    color: #1e40af;
    background: linear-gradient(180deg, #bfdbfe 0%, #93c5fd 100%);
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(59, 130, 246, 0.16);
}

.dashboard-invoices-table__pay-btn {
    width: auto;
    margin-top: 0;
    padding: 0.48rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-invoices-table__pay-btn:hover,
.dashboard-invoices-table__pay-btn:focus {
    color: #166534;
    background: linear-gradient(180deg, #bbf7d0 0%, #86efac 100%);
    border-color: #86efac;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(34, 197, 94, 0.14);
}

.payment-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.payment-summary-card {
    background: #f8fbff;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.payment-summary-card span {
    color: #64748b;
    font-size: 0.9rem;
}

.payment-summary-card strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.payment-summary-card--progress {
    justify-content: space-between;
}

.payment-summary-progress {
    background: #e2e8f0;
    border-radius: 999px;
    height: 0.55rem;
    overflow: hidden;
    width: 100%;
}

.payment-summary-progress__bar {
    background: linear-gradient(90deg, #16a34a, #0ea5e9);
    border-radius: inherit;
    height: 100%;
    min-width: 0;
}

.invoice-form--closed button[type="submit"] {
    display: none;
}

.invoice-form--closed .receipt-voucher-toggle {
    display: none;
}

.receipt-voucher-row {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.receipt-voucher-toggle {
    align-items: center;
    background: #ecfdf5;
    border: 1px solid #34d399;
    border-radius: 8px;
    color: #065f46;
    display: flex;
    font-weight: 700;
    gap: 0.5rem;
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    margin-top: 1.5rem;
}

.receipt-voucher-toggle .form-check-input {
    border-color: #10b981;
    cursor: pointer;
    margin: 0;
}

.receipt-voucher-toggle .form-check-label {
    cursor: pointer;
}

.invoice-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
}

.invoice-details-grid--wide {
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 0.75fr);
    gap: 1rem;
}

.invoice-details-main,
.invoice-details-sidebar {
    min-width: 0;
}

.details-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.details-summary-card {
    background: #f8fbff;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.details-summary-card span {
    color: #64748b;
    font-size: 0.88rem;
}

.details-summary-card strong {
    color: #0f172a;
    font-size: 1rem;
}

.details-notes-box {
    padding: 1rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.details-notes-box__label {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #1e3a8a;
    font-weight: 700;
}

.details-payment-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.details-payment-card {
    border-radius: 16px;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.details-payment-card.is-paid {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}

.details-payment-card span {
    color: #64748b;
    font-size: 0.88rem;
}

.details-payment-card strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.details-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.details-status-badge.is-paid {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.details-status-badge.is-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.details-status-badge.is-partial {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.details-images-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.details-image-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.8rem;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #dbe7f5;
    text-decoration: none;
}

.details-image-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dbe7f5;
}

.details-image-card span {
    color: #334155;
    font-weight: 700;
    word-break: break-word;
}

.invoice-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.invoice-image-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.8rem;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    background: #f8fbff;
}

.invoice-image-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dbe7f5;
}

.invoice-image-card__name {
    color: #1e293b;
    font-weight: 700;
    font-size: 0.9rem;
    word-break: break-word;
}

.invoice-image-card__delete {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.9rem;
}

.invoice-image-card__delete input {
    width: auto;
    margin: 0;
}

.dashboard-page--reference-theme .dashboard-invoices-panel,
.dashboard-page--reference-theme .dashboard-invoices-panel h2,
.dashboard-page--reference-theme .dashboard-invoices-panel p,
.dashboard-page--reference-theme .dashboard-invoices-panel span,
.dashboard-page--reference-theme .dashboard-invoices-panel strong,
.dashboard-page--reference-theme .dashboard-invoices-panel a,
.dashboard-page--reference-theme .dashboard-invoices-panel table,
.dashboard-page--reference-theme .dashboard-invoices-panel thead th,
.dashboard-page--reference-theme .dashboard-invoices-panel tbody td {
    color: #1f2937 !important;
}

.dashboard-page--reference-theme .dashboard-invoices-panel .dashboard-invoices-panel__title {
    color: #0f172a !important;
}

.dashboard-page--reference-theme .dashboard-invoices-panel .dashboard-invoices-panel__subtitle {
    color: #64748b !important;
}

.dashboard-page--reference-theme .dashboard-invoices-panel .dashboard-invoices-panel__badge {
    color: #2563eb !important;
    background: #eaf2ff !important;
}

.dashboard-page--reference-theme .dashboard-invoices-panel .dashboard-invoices-panel__action {
    color: #1d4ed8 !important;
}

.dashboard-page--reference-theme .dashboard-invoices-panel .dashboard-invoices-table thead th {
    color: #1e3a8a !important;
}

.dashboard-page--reference-theme .dashboard-invoices-panel .dashboard-invoices-table tbody td {
    color: #334155 !important;
}

.dashboard-page--reference-theme .dashboard-invoices-panel .dashboard-invoices-table__id {
    color: #1d4ed8 !important;
}

.dashboard-page--reference-theme .dashboard-invoices-panel .dashboard-invoices-table__invoice-number {
    color: #0f172a !important;
}

.dashboard-page--reference-theme .dashboard-invoices-panel .dashboard-invoices-table__amount {
    color: #059669 !important;
}

.dashboard-page--reference-theme .dashboard-invoices-panel .dashboard-invoices-table__payment-badge.is-cash {
    color: #047857 !important;
}

.dashboard-page--reference-theme .dashboard-invoices-panel .dashboard-invoices-table__payment-badge.is-installment {
    color: #b45309 !important;
}

.dashboard-page--reference-theme .dashboard-invoices-panel .dashboard-invoices-table__date {
    color: #475569 !important;
}

.dashboard-invoices-table__actions-column {
    min-width: 280px;
}

.dashboard-invoices-table__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-invoices-table__actions .btn,
.dashboard-invoices-table__actions form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    border-width: 1px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.dashboard-invoices-table__actions .btn:hover,
.dashboard-invoices-table__actions .btn:focus,
.dashboard-invoices-table__actions form .btn:hover,
.dashboard-invoices-table__actions form .btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.dashboard-invoices-table__actions form {
    margin: 0;
}

.dashboard-invoices-table__view-btn {
    width: auto;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.22);
}

.dashboard-invoices-table__view-btn:hover,
.dashboard-invoices-table__view-btn:focus {
    color: #ffffff;
    background: #2563eb;
    border-color: #2563eb;
}

.dashboard-invoices-table__edit-btn {
    width: auto;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.22);
}

.dashboard-invoices-table__edit-btn:hover,
.dashboard-invoices-table__edit-btn:focus {
    color: #ffffff;
    background: #7c3aed;
    border-color: #7c3aed;
}

.dashboard-invoices-table__pay-btn {
    width: auto;
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.24);
}

.dashboard-invoices-table__pay-btn:hover,
.dashboard-invoices-table__pay-btn:focus {
    color: #ffffff;
    background: #059669;
    border-color: #059669;
}

.dashboard-invoices-table__actions .btn-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.dashboard-invoices-table__actions .btn-danger:hover,
.dashboard-invoices-table__actions .btn-danger:focus {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
}

@media (max-width: 767.98px) {
    .dashboard-invoices-table__actions-column {
        min-width: 220px;
    }

    .dashboard-invoices-table__actions {
        min-width: 200px;
    }

    .dashboard-invoices-table__actions .btn,
    .dashboard-invoices-table__actions form .btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
    }
}

.quick-actions-groups--local {
    column-count: 3;
    column-gap: 14px;
}

.action-group--local {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin: 0 0 14px;
}

.action-links--local {
    display: flex;
    flex-wrap: wrap;
}

.welcome-action--local {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    margin-right: 0;
    padding: 14px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    width: 100%;
    justify-content: flex-start;
    transition: all 0.3s ease;
    min-height: 64px;
}

.welcome-action--local:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    color: #fff;
}

.welcome-action--local i {
    font-size: 1.25rem;
}

.action-links--local .welcome-action--local:nth-child(1) { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.action-links--local .welcome-action--local:nth-child(2) { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.action-links--local .welcome-action--local:nth-child(3) { background: linear-gradient(135deg, #f59e0b, #b45309); }
.action-links--local .welcome-action--local:nth-child(4) { background: linear-gradient(135deg, #6366f1, #4338ca); }
.action-links--local .welcome-action--local:nth-child(5) { background: linear-gradient(135deg, #f43f5e, #be123c); }

.invoice-page-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    background: linear-gradient(135deg, #ffffff, #f4f8ff);
    border: 1px solid #e3ebf8;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.invoice-page-header__content {
    flex: 1;
}

.invoice-page-header__content h1 {
    color: #172554;
}

.invoice-page-header__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 0.75rem;
    min-width: 320px;
}

.invoice-stat-card {
    background: #fff;
    border: 1px solid #dbe7ff;
    border-radius: 18px;
    padding: 1rem;
    text-align: center;
}

.invoice-stat-card__label {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.invoice-stat-card__value {
    color: #0f172a;
    font-size: 1.2rem;
}

.invoice-form-panel,
.invoice-table-panel {
    border: 1px solid #e6edf8;
}

.invoice-section-heading h2 {
    color: #1e293b;
    font-size: 1.4rem;
}

.invoice-form-block {
    background: #f8fbff;
    border: 1px solid #e5eefc;
    border-radius: 20px;
    padding: 1.1rem;
}

.invoice-form-block--accent {
    background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

.invoice-form-block__title {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.invoice-form .form-label {
    font-weight: 700;
    color: #334155;
}

.invoice-form .form-control,
.invoice-form .form-select {
    border-radius: 12px;
    border-color: #d7e3f4;
    min-height: 46px;
}

.invoice-form textarea.form-control {
    min-height: 110px;
}

.invoice-table-wrap {
    border-radius: 16px;
    overflow: hidden;
}

.invoice-table-panel table thead th,
.invoice-table-wrap table thead th {
    white-space: nowrap;
    color: #334155;
}

.invoice-table-panel__meta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
}

.dashboard-info-box p:last-child,
.dashboard-info-box ul:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .navbar .navbar-collapse {
        width: 100%;
        margin-top: 0.85rem;
        flex-grow: 1;
        padding: 0.75rem;
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.72);
        border: 1px solid rgba(226, 232, 240, 0.12);
    }

    .site-navbar .container-fluid {
        flex-direction: row-reverse;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-navbar .navbar-brand {
        font-size: 1rem;
        max-width: calc(100% - 58px);
    }

    .site-navbar__logo {
        min-width: 76px;
        height: 34px;
        padding: 0 0.75rem;
        font-size: 0.74rem;
    }

    .site-navbar__brand-title {
        font-size: 0.95rem;
    }

    .site-navbar__brand-subtitle {
        font-size: 0.62rem;
        letter-spacing: 0.7px;
    }

    .navbar .nav-link {
        width: 100%;
        padding: 0.76rem 0.9rem;
    }

    .navbar .btn {
        width: 100%;
    }

    .navbar .dropdown-menu {
        width: 100%;
        min-width: 100%;
        max-height: 56vh;
        margin-top: 0.35rem;
        box-shadow: none;
    }

    .navbar .dropdown-item {
        white-space: normal;
    }

    .site-navbar__user-badge {
        width: 100%;
        max-width: 100%;
        text-align: center;
        justify-content: center;
    }

    .login-container,
    .signup-container,
    .hero-card,
    .dashboard-card {
        max-width: 100%;
        padding: 1.25rem;
    }

    .responsive-panel {
        padding: 1rem !important;
        border-radius: 12px !important;
    }

    .home-container,
    .dashboard-page,
    .page-content {
        padding: 0.2rem;
    }

    .page-content section.container,
    .dashboard-page section.container {
        padding-left: 0.1rem;
        padding-right: 0.1rem;
    }

    .dashboard-grid {
        gap: 0.75rem;
    }

    .dashboard-hero {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        border-radius: 20px;
    }

    .dashboard-reference-hero {
        padding: 1.1rem;
        border-radius: 18px;
    }


    .dashboard-hero__actions {
        flex-direction: column;
    }

    .dashboard-hero__actions .btn {
        width: 100%;
    }

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

    .invoice-details-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-panel--local {
        padding: 20px;
    }

    .dashboard-invoices-panel {
        padding: 1.25rem !important;
    }

    .dashboard-invoices-panel__title {
        font-size: 1.2rem;
    }

    .dashboard-invoices-panel__action {
        width: 100%;
        text-align: center;
    }

    .dashboard-invoices-table thead th,
    .dashboard-invoices-table tbody td {
        padding: 0.8rem 0.75rem;
    }

    .dashboard-invoices-table__invoice-number,
    .dashboard-invoices-table__date {
        white-space: nowrap;
    }

    .quick-actions-groups--local {
        column-count: 1;
        column-gap: 0;
    }

    .dashboard-panel {
        padding: 1rem;
        border-radius: 18px;
    }

    .dashboard-summary-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-page-header {
        flex-direction: column;
        padding: 1rem;
        border-radius: 18px;
    }

    .invoice-page-header__stats {
        grid-template-columns: 1fr;
        min-width: 100%;
    }

    .invoice-form-block {
        padding: 0.9rem;
        border-radius: 16px;
    }

    .dashboard-header h1,
    .hero-card h1 {
        font-size: 1.6rem;
    }

    .dashboard-info-box,
    .hero-card,
    .login-container,
    .signup-container {
        border-radius: 12px;
    }

    .home-actions {
        flex-direction: column;
    }

    .home-actions .btn {
        width: 100%;
    }

    .responsive-actions {
        flex-direction: column !important;
    }

    .responsive-actions .btn {
        width: 100%;
    }
}
