/* Headers now handled by headers.css */

/* Accounting Tab Specific Styling for AMD Construction Pro */

/* --- Main Accounting Layout: QuickBooks Style --- */
#accounting-tab {
    height: 100%;
    width: 100vw;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f4f6fa;
}

.accounting-quickbooks-layout {
    display: grid;
    grid-template-columns: minmax(280px, 320px) 1fr;
    gap: 0;
    height: 100%;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #f4f6fa;
}

/* --- Left Sidebar Navigation --- */
.accounting-sidebar {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid #e1e5e9;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.sidebar-title {
    padding: 16px 20px 12px 20px;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.sidebar-group {
    padding: 12px 20px 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.sidebar-account {
    font-size: 11px;
    color: #6c757d;
    font-weight: 400;
    margin-left: 8px;
}

.sidebar-link {
    display: block;
    width: 100%;
    padding: 10px 20px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: #f8f9fa;
    color: #2c5aa0;
}

.sidebar-link.active {
    background-color: #e3f2fd;
    color: #2c5aa0;
    border-left-color: #2c5aa0;
    font-weight: 500;
}

.sidebar-footer {
    border-top: 1px solid #e1e5e9;
    padding: 12px 0;
}

/* --- Main Content Area --- */
.accounting-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    min-height: 0;
    background: #f4f6fa;
}

.accounting-content-scroll {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 24px;
}

.accounting-content-scroll.accounts-view {
    overflow: hidden;
    padding-bottom: 24px;
    flex: 1;
    min-height: 0;
}

.accounting-header {
    background: #fff;
    border-bottom: 1px solid #e1e5e9;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-header {
    padding: 20px 24px 16px 24px;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c5aa0;
    margin: 0;
}

.accounting-scope-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 14px 24px;
    background: #fff;
    border-top: 1px solid #eef2f6;
    flex-wrap: wrap;
}

.accounting-scope-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #495057;
    font-weight: 600;
}

.accounting-scope-control span {
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

.accounting-scope-control select {
    min-width: 180px;
    border: 1px solid #d5dbe3;
    border-radius: 6px;
    background: #fff;
    color: #2c3e50;
    padding: 7px 10px;
    font-size: 13px;
}

.accounting-scope-control select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.12);
}

.accounting-scope-note {
    margin-left: auto;
    font-size: 12px;
    color: #54606c;
    background: #f6f9fc;
    border: 1px solid #e4eaf2;
    border-radius: 999px;
    padding: 7px 12px;
}

/* --- Tab Navigation Ribbon --- */
.accounting-tabs {
    display: flex;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    padding: 0 24px;
    overflow-x: auto;
}

.accounting-tab {
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.accounting-tab:hover {
    color: #2c5aa0;
    background-color: rgba(44, 90, 160, 0.05);
}

.accounting-tab.active {
    color: #2c5aa0;
    border-bottom-color: #2c5aa0;
    background-color: #fff;
    font-weight: 500;
}

/* --- Sales Summary Section --- */
.accounting-sales-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
    background: #fff;
    margin: 0;
}

.accounting-financial-health {
    padding: 0 24px 24px 24px;
    background: #fff;
}

.accounting-financial-health .financial-summary {
    margin: 0;
}

.sales-summary-item {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    transition: all 0.2s ease;
}

.sales-summary-item:hover {
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.1);
    transform: translateY(-1px);
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Progress Bar --- */
.sales-progress-bar {
    display: flex;
    height: 6px;
    background: #e9ecef;
    margin: 0 24px 24px 24px;
    border-radius: 3px;
    overflow: hidden;
}

.bar {
    height: 100%;
    transition: width 0.3s ease;
}

.bar.estimates { background: #17a2b8; }
.bar.unbilled { background: #6c757d; }
.bar.overdue { background: #dc3545; }
.bar.open { background: #ffc107; }
.bar.paid { background: #28a745; }

/* --- Filters Section --- */
.accounting-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e1e5e9;
    flex-wrap: wrap;
}

.accounting-filters .btn {
    padding: 8px 16px;
    border: 1px solid #2c5aa0;
    background: transparent;
    color: #2c5aa0;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accounting-filters .btn:hover {
    background: #2c5aa0;
    color: #fff;
}

.accounting-filters select,
.accounting-filters input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #495057;
}

.accounting-filters select:focus,
.accounting-filters input:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

.filter-customer {
    min-width: 200px;
}

/* --- Table Section --- */
.accounting-table-section {
    flex: 1;
    overflow: hidden;
    min-height: 280px;
    background: #fff;
    margin: 0 24px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accounting-table-wrapper {
    height: 100%;
    overflow: auto;
    max-height: 100%;
}

.accounting-table-section.accounts-view {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    max-height: 100%;
    height: 100%;
    margin-bottom: 0;
}

.accounting-table-section.accounts-view .accounting-table-wrapper {
    flex: 1;
    min-height: 0;
}

.accounting-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 860px;
}

.accounting-table thead {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.accounting-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e1e5e9;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.accounting-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.accounting-table tbody tr:hover {
    background-color: #f8f9fa;
}

.accounting-table tbody tr:last-child td {
    border-bottom: none;
}

.accounting-cash-forecast-panel {
    margin: 0 24px 16px;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.accounting-cash-forecast-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.accounting-cash-forecast-header h4 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
}

.accounting-cash-forecast-header p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.accounting-cash-forecast-kpis {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.accounting-cash-forecast-kpis div {
    min-width: 130px;
    padding: 9px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.accounting-cash-forecast-kpis span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.accounting-cash-forecast-kpis strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 15px;
}

.accounting-cash-forecast-bars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.accounting-cash-forecast-bar-row {
    display: grid;
    grid-template-columns: 58px minmax(80px, 1fr) 92px;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 12px;
}

.accounting-cash-forecast-bar-track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.accounting-cash-forecast-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #14b8a6 0%, #047857 100%);
}

.accounting-cash-forecast-bar.is-negative {
    background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.accounting-cash-forecast-bar-row strong {
    text-align: right;
    font-size: 12px;
}

.accounting-cash-forecast-table-wrap {
    max-height: 320px;
    overflow: auto;
}

.accounting-cash-forecast-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
}

.accounting-cash-forecast-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f1f5f9;
    color: #334155;
    text-align: right;
    padding: 9px 10px;
    border-bottom: 1px solid #cbd5e1;
    font-weight: 800;
    white-space: nowrap;
}

.accounting-cash-forecast-table th:first-child,
.accounting-cash-forecast-table th:last-child,
.accounting-cash-forecast-table td:first-child,
.accounting-cash-forecast-table td:last-child {
    text-align: left;
}

.accounting-cash-forecast-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
    color: #1f2937;
    white-space: nowrap;
}

.accounting-cash-forecast-table td:last-child {
    white-space: normal;
    min-width: 180px;
}

@media (max-width: 1180px) {
    .accounting-cash-forecast-header,
    .accounting-cash-forecast-bars {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .accounting-cash-forecast-kpis {
        flex-wrap: wrap;
    }
}

/* --- Table Actions --- */
.accounting-table-actions {
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid #e1e5e9;
}

.accounting-table-actions .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accounting-table-actions .btn.green {
    background: #28a745;
    color: #fff;
}

.accounting-table-actions .btn.green:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* --- Section Content Areas --- */
.accounting-section {
    display: none;
    padding: 24px;
    background: #fff;
    margin: 24px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accounting-section.active {
    display: block;
}

/* --- Financial Summary Items --- */
.financial-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.financial-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    transition: all 0.2s ease;
}

.financial-item:hover {
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.1);
    transform: translateY(-1px);
}

.financial-item label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.financial-item span {
    font-size: 20px;
    font-weight: 700;
    color: #2c5aa0;
}

/* --- Status Badges --- */
.status {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.status-paid { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-overdue { background: #f8d7da; color: #721c24; }
.status-draft { background: #e2e3e5; color: #383d41; }
.status-active { background: #d1ecf1; color: #0c5460; }
.status-inactive { background: #f1f3f5; color: #6c757d; }

/* --- Chart of Accounts --- */
.account-group-row td {
    background: #f8f9fb;
    color: #2c5aa0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.6px;
}

.account-group-row.level-sub td {
    background: #f1f4f8;
    color: #3a4c6a;
    text-transform: none;
    font-size: 12px;
}

.account-group-cell {
    padding: 10px 16px;
}

.account-group-row.level-sub .account-group-cell {
    padding-left: 32px;
}

.account-name {
    font-weight: 600;
    color: #2f3e52;
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-number {
    color: #6c757d;
    font-weight: 500;
}

.account-subaccount {
    padding-left: 28px;
    position: relative;
}

.account-subaccount::before {
    content: '↳';
    position: absolute;
    left: 10px;
    color: #9aa4b2;
}

.account-row[data-group*="::"] .account-name.account-subaccount {
    padding-left: 44px;
}

.account-row[data-group*="::"] .account-name.account-subaccount::before {
    left: 24px;
}

.account-balance {
    font-weight: 600;
}

.account-number-input {
    width: 64px;
    margin-right: 6px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    color: #495057;
    background: #fff;
}

.account-name-input {
    flex: 1;
    min-width: 180px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 13px;
    color: inherit;
    background: transparent;
}

.account-name-input:focus {
    outline: none;
    border-color: #cbd3dc;
    background: #fff;
}

.account-group-input {
    border: 1px solid transparent;
    background: transparent;
    font-weight: 600;
    font-size: 12px;
    color: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    padding: 2px 6px;
    border-radius: 4px;
    width: 100%;
    min-width: 240px;
    max-width: 520px;
}

.account-group-input:focus {
    outline: none;
    border-color: #cbd3dc;
    background: #fff;
}

.account-group-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.account-group-toggle .caret {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.account-group-row.is-collapsed .caret {
    transform: rotate(-90deg);
}

.account-group-row[draggable="true"] {
    cursor: grab;
}

.account-group-row.dragging {
    opacity: 0.6;
}

.account-group-delete {
    margin-left: 6px;
    padding: 2px 6px;
    line-height: 1;
}

.account-row.is-hidden {
    display: none;
}

.account-group-row.is-hidden {
    display: none;
}

.positive {
    color: #28a745;
    font-weight: 600;
}

.negative {
    color: #dc3545;
    font-weight: 600;
}

/* --- Button Styles --- */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background: #2c5aa0;
    color: #fff;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(44, 90, 160, 0.3);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-primary { background: #2c5aa0; color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-success { background: #28a745; color: #fff; }
.btn-danger { background: #dc3545; color: #fff; }

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .accounting-quickbooks-layout {
        grid-template-columns: 250px 1fr;
    }
    
    .financial-summary {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 900px) {
    .accounting-quickbooks-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .accounting-sidebar {
        order: 2;
        border-right: none;
        border-top: 1px solid #e1e5e9;
    }
    
    .accounting-main {
        order: 1;
    }
    
    .accounting-sales-summary {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .accounting-filters {
        flex-wrap: wrap;
        gap: 8px;
    }
}

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

    .accounting-scope-toolbar {
        padding: 10px 12px 12px 12px;
        align-items: stretch;
    }

    .accounting-scope-control {
        width: 100%;
        justify-content: space-between;
    }

    .accounting-scope-control select {
        min-width: 0;
        width: 100%;
        max-width: 220px;
    }

    .accounting-scope-note {
        margin-left: 0;
        width: 100%;
        border-radius: 10px;
    }
    
    .accounting-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .accounting-tabs::-webkit-scrollbar {
        display: none;
    }
}

    /* --- Accounts Toolbar --- */
    .accounts-toolbar {
        align-items: center;
        gap: 12px;
    }

    .accounts-toolbar .filter-customer {
        min-width: 220px;
    }

    .accounts-toolbar-actions {
        margin-left: auto;
        display: flex;
        gap: 10px;
    }

    .accounts-header-actions {
        display: inline-flex;
        align-items: center;
        margin-right: 6px;
    }

    .accounts-toggle-all {
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: 12px;
        color: #6c757d;
        padding: 2px 4px;
    }

    .accounts-toggle-all:hover {
        color: #2c5aa0;
    }

    /* --- Accounting Modal --- */
    .accounting-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .accounting-modal {
        width: min(640px, 92vw);
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .accounting-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .accounting-modal-header h4 {
        margin: 0;
        font-size: 18px;
        color: #2c5aa0;
    }

    .accounting-modal-close {
        border: none;
        background: transparent;
        font-size: 20px;
        cursor: pointer;
        color: #6c757d;
    }

    .accounting-modal-body {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .accounting-modal-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }

    .accounting-modal-body label {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 12px;
        color: #6c757d;
    }

    .accounting-modal-body input,
    .accounting-modal-body select,
    .accounting-modal-body textarea {
        padding: 8px 10px;
        border: 1px solid #ced4da;
        border-radius: 6px;
        font-size: 13px;
    }

    .accounting-modal-checkbox {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        color: #495057;
    }

    .accounting-modal-parent.hidden {
        display: none;
    }

    .accounting-modal-grid.hidden {
        display: none;
    }

    .accounting-modal-extra {
        display: flex;
        gap: 12px;
        align-items: center;
        flex-wrap: wrap;
    }

    .accounting-modal-extra label {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 12px;
        color: #6c757d;
        min-width: 220px;
    }

    .accounting-modal-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

    .accounting-policy-detail {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 13px;
        color: #495057;
    }

    .accounting-policy-meta {
        color: #6c757d;
        font-size: 12px;
    }

    .accounting-policy-metric-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .accounting-policy-metric {
        border: 1px solid #e1e5e9;
        border-radius: 8px;
        background: #f8fafc;
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .accounting-policy-metric-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #6c757d;
    }

    .accounting-policy-metric-value {
        font-size: 16px;
        font-weight: 600;
        color: #1f2937;
    }

    .accounting-policy-notes {
        color: #6c757d;
        font-size: 12px;
    }

    .accounting-policy-adjustments {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .accounting-policy-adjustment-row {
        border: 1px solid #d7deea;
        border-radius: 8px;
        padding: 10px;
        background: #fbfcfe;
    }

    .accounting-policy-snapshot-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 8px;
        border-radius: 999px;
        background: #eaf2ff;
        color: #2c5aa0;
        font-size: 12px;
        font-weight: 600;
    }

    .accounting-policy-snapshot-badge--working_reference {
        background: #eef6ff;
        color: #1d4ed8;
    }

    .accounting-policy-snapshot-badge--period_closed {
        background: #ecfdf3;
        color: #166534;
    }

    .accounting-policy-snapshot-badge--period_finalized {
        background: #fef3c7;
        color: #92400e;
    }

    .accounting-policy-snapshot-badge--live_working_context {
        background: #f3f4f6;
        color: #374151;
    }

    .accounting-period-lock-card {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px 12px;
        border: 1px solid #e1e8f0;
        border-radius: 8px;
        background: #f8fbff;
    }

    .accounting-period-lock-summary {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .accounting-period-lock-line {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        color: #334155;
    }

    .accounting-period-lock-note {
        color: #475569;
        font-size: 12px;
        line-height: 1.4;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        padding: 8px 10px;
    }

    .accounting-period-lock-history {
        margin: 0;
        padding-left: 18px;
        color: #475569;
        font-size: 12px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .accounting-period-lock-history li span {
        color: #64748b;
        margin-left: 6px;
    }

    .accounting-period-lock-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .accounting-period-lock-actions small {
        color: #64748b;
        line-height: 1.3;
    }

    .accounting-period-lock-banner {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        padding: 10px 12px;
        border: 1px solid #dbeafe;
        background: #eff6ff;
        border-radius: 8px;
        color: #1e3a8a;
        font-size: 13px;
    }

    .accounting-period-lock-help {
        color: #64748b;
        font-size: 12px;
        line-height: 1.4;
    }
