        :root {
            --white: #ffffff;
            --ivory: #faf8f4;
            --ivory2: #f2ede4;
            --charcoal: #1a1814;
            --gold: #b8952a;
            --gold2: #d4ae48;
            --sage: #6b8c72;
            --muted: #8c8680;
            --border: #ddd8ce;
            --green: #3d7a50;
            --red: #a03030;
            --font-display: Georgia, 'Times New Roman', serif;
            --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--font-body);
            color: var(--charcoal);
            background: var(--ivory);
        }

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

        .sidebar {
            width: 240px;
            min-width: 240px;
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            background: var(--charcoal);
            color: var(--ivory);
            padding: 24px 16px;
        }

        .logo {
            font-family: var(--font-display);
            font-size: 34px;
            line-height: 1;
            margin-bottom: 26px;
        }

        .nav {
            display: grid;
            gap: 8px;
        }

        .nav-btn {
            width: 100%;
            border: 1px solid transparent;
            border-radius: 10px;
            background: transparent;
            color: var(--ivory);
            font-size: 15px;
            text-align: left;
            padding: 10px 12px;
            cursor: pointer;
            font-family: var(--font-body);
        }

        .nav-btn.active {
            color: var(--gold2);
            border-color: rgba(212, 174, 72, 0.5);
            background: rgba(212, 174, 72, 0.08);
        }

        .main {
            margin-left: 240px;
            width: calc(100% - 240px);
            padding: 24px;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
            gap: 10px;
        }

        .section-title {
            font-family: var(--font-display);
            font-size: 36px;
            font-weight: 500;
        }

        .btn {
            border: 1px solid transparent;
            border-radius: 10px;
            background: var(--gold);
            color: var(--white);
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 500;
            padding: 10px 14px;
            cursor: pointer;
        }

        .btn.secondary {
            background: var(--white);
            color: var(--charcoal);
            border-color: var(--border);
        }

        .btn.danger {
            background: var(--red);
        }

        .view {
            display: none;
        }

        .view.active {
            display: block;
        }

        .metric-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px;
            margin-bottom: 14px;
        }

        .metric-card {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 14px;
        }

        .metric-label {
            font-size: 13px;
            color: var(--muted);
            margin-bottom: 8px;
        }

        .metric-value {
            font-size: 30px;
            font-weight: 600;
        }

        .panel {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
        }

        .panel-title {
            font-size: 18px;
            padding: 14px 16px;
            border-bottom: 1px solid var(--ivory2);
            font-weight: 500;
        }

        .table-wrap {
            width: 100%;
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            min-width: 980px;
        }

        th, td {
            padding: 12px 14px;
            border-bottom: 1px solid var(--ivory2);
            text-align: left;
            font-size: 14px;
        }

        th {
            background: var(--ivory2);
            font-weight: 500;
        }

        tr.clickable {
            cursor: pointer;
        }

        tr.clickable:hover {
            background: #f9f6ef;
        }

        .status-pill {
            display: inline-block;
            border-radius: 999px;
            padding: 3px 10px;
            font-size: 12px;
            background: #eff4f0;
            color: var(--green);
        }

        .status-pill.pending {
            background: #f8ecec;
            color: var(--red);
        }

        .list {
            display: grid;
            gap: 8px;
            padding: 14px 16px;
        }

        .list-item {
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 12px;
            background: var(--white);
        }

        .list-title {
            font-weight: 500;
            margin-bottom: 4px;
        }

        .muted {
            color: var(--muted);
            font-size: 13px;
        }

        .wizard {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px;
        }

        .step-indicator {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            margin-bottom: 14px;
        }

        .step-chip {
            border: 1px solid var(--border);
            border-radius: 999px;
            padding: 8px 12px;
            text-align: center;
            font-size: 13px;
            color: var(--muted);
            background: var(--ivory);
        }

        .step-chip.active {
            border-color: var(--gold2);
            background: rgba(212, 174, 72, 0.1);
            color: var(--charcoal);
            font-weight: 500;
        }

        .step {
            display: none;
        }

        .step.active {
            display: block;
        }

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

        .field {
            display: grid;
            gap: 5px;
        }

        .field.full {
            grid-column: 1 / -1;
        }

        .inline-choice {
            display: flex;
            gap: 14px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        label {
            font-size: 13px;
            color: var(--muted);
        }

        input, textarea, select {
            width: 100%;
            border: 1px solid var(--border);
            border-radius: 9px;
            padding: 10px;
            font-family: var(--font-body);
            font-size: 14px;
            background: var(--white);
        }

        textarea {
            min-height: 90px;
            resize: vertical;
        }

        .wizard-actions {
            margin-top: 12px;
            display: flex;
            justify-content: space-between;
            gap: 8px;
        }

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

        .depenses-table td:last-child {
            white-space: nowrap;
        }

        .modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.35);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 16px;
            z-index: 30;
        }

        .modal-backdrop.open {
            display: flex;
        }

        .modal {
            width: min(760px, 100%);
            max-height: 90vh;
            overflow-y: auto;
            background: var(--white);
            border-radius: 12px;
            border: 1px solid var(--border);
            padding: 16px;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .modal-title {
            font-family: var(--font-display);
            font-size: 30px;
        }

        .close-btn {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--white);
            cursor: pointer;
        }

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

        .detail {
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px;
        }

        .detail strong {
            display: block;
            color: var(--muted);
            font-size: 12px;
            margin-bottom: 3px;
            font-weight: 400;
        }

        .detail.full {
            grid-column: 1 / -1;
        }

        .modal-actions {
            margin-top: 14px;
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        .toast-wrap {
            position: fixed;
            right: 16px;
            bottom: 16px;
            display: grid;
            gap: 8px;
            z-index: 40;
        }

        .toast {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px 12px;
            min-width: 230px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            font-size: 14px;
        }

        .toast.success {
            border-color: #9ac7a3;
        }

        .toast.error {
            border-color: #deb4b4;
        }

        .badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.02em;
        }

        .badge-pending {
            background: #f0a500;
            color: #fff;
        }

        .badge-approved {
            background: #3d7a50;
            color: #fff;
        }

        .badge-rejected {
            background: #a03030;
            color: #fff;
        }

        .depenses-actions-cell {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
        }

        .rapport-card {
            border: 1px solid #bfc5d2;
            border-left: 6px solid #8fa0c2;
        }

        .rapport-card-gap {
            margin-top: 12px;
        }

        .rapport-section-title {
            text-transform: uppercase;
            font-size: 13px;
            letter-spacing: 0.05em;
            font-weight: 700;
            background: #eef1f7;
            border-bottom: 1px solid #c7cedd;
        }

        .rapport-villa-title {
            font-family: var(--font-display);
            font-size: 1.25rem;
            margin-bottom: 10px;
            color: var(--charcoal);
        }

        .rapport-resume-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
            align-items: start;
        }

        .rapport-summary-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 8px 16px;
            padding: 14px 16px;
            align-items: center;
        }

        .rapport-summary-total {
            font-weight: 700;
            border-top: 1px solid #d8deea;
            padding-top: 8px;
        }

        .rapport-metric {
            font-size: 1.15rem;
            font-weight: 600;
        }

        .rapport-net {
            font-size: 1.75rem;
            font-weight: 700;
            line-height: 1.2;
        }

        .rapport-net--big {
            font-size: 2.2rem;
            font-weight: 800;
        }

        .rapport-net--pos {
            color: var(--green);
        }

        .rapport-net--neg {
            color: var(--red);
        }

        .hidden {
            display: none;
        }

        .lang-switcher { display:flex; gap:8px; padding:16px; margin-top:auto; }
        .lang-btn { background:none; border:1px solid rgba(255,255,255,0.2); color:rgba(255,255,255,0.5); padding:4px 12px; border-radius:20px; cursor:pointer; font-size:12px; }
        .lang-btn.active { background:var(--gold); color:var(--charcoal); border-color:var(--gold); }

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

            .rapport-resume-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 860px) {
            .app {
                flex-direction: column;
            }

            .sidebar {
                position: static;
                width: 100%;
                min-width: 0;
            }

            .main {
                margin-left: 0;
                width: 100%;
            }

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

            .metric-grid,
            .step-indicator,
            .form-grid,
            .details-grid,
            .filter-bar {
                grid-template-columns: 1fr;
            }
        }
