.final100-overlay {
    position: fixed;
    left: 208px;
    right: 0;
    top: 70px;
    bottom: 0;
    z-index: 450;
    overflow: auto;
    background: #f5f7fb;
    padding: 28px 30px 60px;
    box-sizing: border-box;
}

.final100-overlay[hidden] {
    display: none !important;
}

.final100-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}

.final100-header h1 {
    margin: 0 0 5px;
    font-size: 25px;
    color: #0f172a;
}

.final100-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.final100-primary,
.final100-secondary,
.final100-danger,
.final100-small {
    border-radius: 8px;
    min-height: 38px;
    padding: 0 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.final100-primary {
    background: #2563eb;
    color: white;
    border: 1px solid #2563eb;
}

.final100-secondary,
.final100-small {
    background: white;
    color: #0f172a;
    border: 1px solid #dbe2ea;
}

.final100-danger {
    background: white;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.final100-small {
    min-height: 31px;
    padding: 0 9px;
}

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

.final100-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 17px;
}

.final100-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 7px;
}

.final100-card strong {
    display: block;
    font-size: 23px;
    color: #0f172a;
}

.final100-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
}

.final100-panel-head {
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.final100-panel-head h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.final100-panel-head p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.final100-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.final100-search,
.final100-select,
.final100-input {
    height: 40px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: white;
    padding: 0 11px;
    font: inherit;
}

.final100-search {
    width: min(420px, 100%);
}

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

.final100-table {
    width: 100%;
    min-width: 950px;
    border-collapse: collapse;
}

.final100-table th {
    padding: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.final100-table td {
    padding: 12px;
    font-size: 13px;
    color: #0f172a;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.final100-table tbody tr:last-child td {
    border-bottom: 0;
}

.final100-table tbody tr:hover {
    background: #f8fafc;
}

.final100-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.final100-empty {
    text-align: center !important;
    color: #64748b !important;
    padding: 32px !important;
}

.final100-money {
    font-weight: 700;
    white-space: nowrap;
}

.final100-badge {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.final100-green {
    background: #dcfce7;
    color: #166534;
}

.final100-red {
    background: #fee2e2;
    color: #991b1b;
}

.final100-orange {
    background: #ffedd5;
    color: #9a3412;
}

.final100-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.final100-gray {
    background: #f1f5f9;
    color: #475569;
}

.final100-modal[hidden] {
    display: none !important;
}

.final100-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.final100-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .6);
}

.final100-modal-card {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-sizing: border-box;
}

.final100-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.final100-modal-head h2 {
    margin: 0 0 4px;
}

.final100-modal-head p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.final100-x {
    border: 0;
    background: transparent;
    font-size: 27px;
    cursor: pointer;
}

.final100-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.final100-field {
    margin-bottom: 14px;
}

.final100-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.final100-field input,
.final100-field select,
.final100-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    padding: 10px 11px;
    font: inherit;
    background: white;
}

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

.final100-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    border-top: 1px solid #e5e7eb;
    padding-top: 17px;
    margin-top: 12px;
}

.final100-item-row {
    display: grid;
    grid-template-columns: 1fr 90px 125px 44px;
    gap: 8px;
    margin-bottom: 8px;
}

.final100-item-row input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    padding: 10px;
}

.final100-item-remove {
    border: 1px solid #fecaca;
    color: #dc2626;
    background: white;
    border-radius: 8px;
    cursor: pointer;
}

.final100-total {
    text-align: right;
    font-size: 20px;
    font-weight: 800;
    margin-top: 15px;
}

.final100-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.final100-backup-card {
    padding: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.final100-backup-card:last-child {
    border-bottom: 0;
}

.final100-muted {
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .final100-summary {
        grid-template-columns: 1fr 1fr;
    }

    .final100-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .final100-overlay {
        left: 0;
        padding: 20px;
    }

    .final100-summary,
    .final100-grid {
        grid-template-columns: 1fr;
    }

    .final100-item-row {
        grid-template-columns: 1fr;
    }

    .final100-header {
        flex-direction: column;
    }
}
