﻿/* annual-report-styles.css */
/* ??????? ?? ??????? ????? - ?????????? 2 */

body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ????? ??-?????? ???????? ?? ?????? ?????? */
.container,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 1320px;
}

.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .header h1 {
        font-size: 1.5rem;
        margin: 0;
        font-weight: 600;
    }

.company-info {
    background: white;
    border-radius: 8px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin: 0 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

    .company-info .row > div {
        margin-bottom: 1rem;
    }

.progress-section {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.progress {
    height: 10px;
    border-radius: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    transition: width 0.3s ease;
}

.nav-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

    .nav-tabs .nav-link {
        border: none;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 500;
        padding: 1rem 1.5rem;
        position: relative;
        transition: all 0.3s ease;
    }

        .nav-tabs .nav-link:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.1);
        }

        .nav-tabs .nav-link.active {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.2);
            border-bottom: 3px solid #ffffff;
            font-weight: 600;
        }

.form-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.section-title {
    color: #1e3c72;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.subsection-title {
    color: #2a5298;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-left: 4px solid #2a5298;
}

.group-header {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
    padding: 0.75rem 1rem;
    margin: 1rem 0 0.5rem 0;
    border-left: 4px solid #1976d2;
}

.form-row {
    display: grid;
    grid-template-columns: 100px 1fr 200px 200px;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

    .form-row:hover {
        background: #f8f9fa;
    }

    .form-row label {
        color: #666;
        font-size: 0.9rem;
        font-weight: 500;
        margin: 0;
    }

    .form-row .description {
        color: #333;
        font-size: 0.95rem;
    }

    .form-row input {
        height: 38px;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 0.5rem;
        font-size: 0.9rem;
        transition: all 0.2s;
    }

        .form-row input:focus {
            outline: none;
            border-color: #2a5298;
            box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
        }

        .form-row input[readonly] {
            background-color: #f5f5f5;
            color: #666;
            cursor: not-allowed;
        }

        .form-row input.calculated {
            background-color: #e8f5e9;
            font-weight: 600;
        }

.action-buttons {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn {
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border: none;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
    }

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    border: none;
}

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    }

.required {
    color: #dc3545;
    margin-left: 3px;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .header h1 {
        font-size: 1.25rem;
    }
}

/* ??????? */
.table {
    margin-bottom: 0;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-light {
    background-color: #f8f9fa;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.table td input.form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
}

    .table td input.form-control:focus {
        outline: none;
        border-color: #2a5298;
        box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    }

.table td input.calculated {
    background-color: #e8f5e9;
    font-weight: 600;
}

.table-primary {
    background-color: #e3f2fd;
}

.table-success {
    background-color: #e8f5e9;
}

/* Alert ??????? */
.alert {
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-info {
    background-color: #e3f2fd;
    border-left-color: #2196F3;
    color: #1565C0;
}

.alert i {
    margin-right: 0.5rem;
}

/* Badge ??????? */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
}

    .badge.bg-primary {
        background-color: #2a5298 !important;
    }

    .badge.bg-danger {
        background-color: #dc3545 !important;
    }

    .badge.bg-warning {
        background-color: #ffc107 !important;
        color: #000 !important;
    }

    .badge.bg-info {
        background-color: #17a2b8 !important;
    }

/* Prototype Users list */
.prototype-users-table th {
    background: #eef2f6;
    color: #3f4d5c;
    font-weight: 700;
    white-space: nowrap;
}

.prototype-users-table td {
    vertical-align: middle;
}

.prototype-users-table .roles-list {
    line-height: 1.35;
    color: #425466;
}

    .prototype-users-table .roles-list div {
        margin-bottom: 2px;
    }

.access-pill {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    background: #d8f4e5;
    color: #1a9b63;
    white-space: nowrap;
}

.access-pill--inactive {
    background: #fde2e2;
    color: #b42318;
}

.prototype-grid-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

    .prototype-grid-footer .page-size {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .prototype-grid-footer .form-select {
        width: 90px;
    }

.badge.bg-success {
    background-color: #28a745 !important;
}

/* ??????? ??????? */
.text-muted {
    color: #6c757d;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

/* Equity ??????? */
.equity-table {
    font-size: 0.875rem;
    min-width: 1400px;
    width: 100%;
}

    .equity-table th {
        font-size: 0.813rem;
        padding: 0.6rem 0.5rem;
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
        background-color: #f8f9fa;
        font-weight: 600;
    }

    .equity-table td {
        padding: 0.5rem;
        vertical-align: middle;
    }

        .equity-table td:first-child {
            text-align: center;
            font-weight: 600;
            color: #666;
            white-space: nowrap;
        }

        .equity-table td:nth-child(2) {
            font-size: 0.875rem;
            padding-left: 0.75rem;
            padding-right: 0.75rem;
        }

    .equity-table .form-control {
        padding: 0.375rem 0.5rem;
        font-size: 0.85rem;
        min-width: 80px;
    }

    .equity-table .group-row td {
        background-color: #f8f9fa;
        font-weight: 600;
    }

    .equity-table .ps-4 {
        padding-left: 2rem !important;
    }

/* Assets ??????? */
.assets-table {
    font-size: 0.85rem;
}

    .assets-table th {
        font-size: 0.8rem;
        padding: 0.5rem;
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
        background-color: #f8f9fa;
    }

    .assets-table td {
        padding: 0.5rem;
        vertical-align: middle;
    }

        .assets-table td:first-child {
            text-align: center;
            font-weight: 600;
            color: #666;
        }

        .assets-table td:nth-child(2) {
            font-size: 0.9rem;
        }

    .assets-table .form-control {
        padding: 0.375rem 0.5rem;
        font-size: 0.85rem;
        min-width: 90px;
    }

    .assets-table .group-row td {
        background-color: #e3f2fd;
        font-weight: 600;
        color: #1976d2;
    }

    .assets-table .ps-4 {
        padding-left: 2rem !important;
    }

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1400px) {
    .equity-table {
        font-size: 0.75rem;
    }

        .equity-table th {
            font-size: 0.7rem;
            padding: 0.4rem;
        }

        .equity-table .form-control {
            font-size: 0.75rem;
            min-width: 70px;
        }

    .assets-table {
        font-size: 0.75rem;
    }

        .assets-table th {
            font-size: 0.7rem;
            padding: 0.4rem;
        }

        .assets-table .form-control {
            font-size: 0.75rem;
            min-width: 70px;
        }
}


.page-header {
    background: white;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

.filters-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.filters-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group {
    margin-bottom: 0;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.reports-section {
    background: white;
    border-radius: 8px;
    padding: 1.25rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.split-view {
    display: flex;
    gap: 0;
    min-height: 70vh;
}

.pane {
    background: transparent;
    display: flex;
    flex-direction: column;
}

.left-pane {
    flex: 1 1 45%;
    min-width: 360px;
    gap: 1.25rem;
}

.right-pane {
    flex: 1 1 55%;
    min-width: 320px;
    margin-left: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.detail-actions {
    display: flex; /* ? */
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start; /* ? ????? */
    margin: 0.75rem 0 0.25rem 0.75rem;
}

.detail-btn {
    border: none;
    border-radius: 8px;
    padding: 0.35rem 1.0rem;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    font-size: 0.85rem;
    cursor: pointer;
}

    .detail-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.16);
    }

    .detail-btn:active {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    }

    .detail-btn.validate {
        background: linear-gradient(135deg, #1e7aea, #155bcc);
    }

    .detail-btn.generate {
        background: linear-gradient(135deg, #9b51e0, #7b3bb1);
    }

    .detail-btn.export {
        background: linear-gradient(135deg, #0ea5e9, #0369a1);
    }

    .detail-btn.complete {
        background: linear-gradient(135deg, #2e8b57, #237145);
    }

    .detail-btn.cancel {
        background: linear-gradient(135deg, #ff6f61, #e14b3f);
    }

    .detail-btn i {
        font-size: 1rem;
    }

.divider {
    width: 14px;
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 0.25rem;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 1px;
        background: #e0e0e0;
    }

.divider-grip {
    width: 6px;
    height: 48px;
    background: #dee2e6;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
    transition: background 0.2s;
    position: relative;
    z-index: 1;
}

.divider:hover .divider-grip {
    background: #cfd4da;
}

body.resizing {
    user-select: none;
}

.details-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #edf0f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.details-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3c72;
}

.details-subtitle {
    margin: 0.25rem 0 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.details-body {
    padding: 1.5rem;
    padding-top: .5rem;
    flex: 1;
}

.details-summary .details-body {
    padding-bottom: 1rem;
}

.details-content {
    display: flex;
    flex-direction: column;
}

.details-placeholder {
    border: 1px dashed #d7dce2;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: #8a9099;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 240px;
}

    .details-placeholder i {
        font-size: 2rem;
        color: #c8ced6;
    }

.detail-card {
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-radius: 10px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
}

.detail-tabs {
    border-bottom: 2px solid #e9ecef;
    padding: 0 1rem;
    margin: 0;
}

    .detail-tabs .nav-link {
        color: #6c757d;
        border: none;
        border-bottom: 3px solid transparent;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        font-weight: 500;
        margin-right: 1rem;
        transition: all 0.2s;
    }

        .detail-tabs .nav-link:hover {
            color: #2a5298;
            border-bottom-color: #2a5298;
        }

        .detail-tabs .nav-link.active {
            color: #2a5298;
            background: transparent;
            border-bottom-color: #2a5298;
        }

#detail-tab-content {
    padding: 0;
}

.spravki-list {
    padding: 0 1rem 1rem 1rem;
}

.spravki-ol {
    list-style-position: inside;
    padding: 0;
    margin: 0;
}

    .spravki-ol li {
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

        .spravki-ol li:last-child {
            border-bottom: none;
        }

.spravka-link {
    color: #2a5298;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    transition: color 0.2s;
}

    .spravka-link:hover {
        color: #1e3c72;
        text-decoration: underline;
    }

.spravka-actions {
    display: flex;
    gap: 0.25rem;
    white-space: nowrap;
}

    .spravki-ol .spravka-actions .action-btn {
        width: 28px;
        height: 28px;
        padding: 0;
        font-size: 0.75rem;
    }

.spravki-placeholder,
.errors-placeholder,
.info-placeholder {
    border: 1px dashed #d7dce2;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: #8a9099;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 240px;
    margin: 1rem;
}

    .spravki-placeholder i,
    .errors-placeholder i,
    .info-placeholder i {
        font-size: 2rem;
        color: #c8ced6;
    }

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-value {
    font-size: 1rem;
    color: #1f2a3d;
    font-weight: 600;
}

.row-selected {
    background: #f4f6fb;
    box-shadow: inset 3px 0 0 #2a5298;
}

.reports-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 1.5rem;
}

.reports-count {
    color: #6c757d;
    font-weight: normal;
    font-size: 1rem;
}

.reports-table {
    margin-bottom: 0;
}

    .reports-table thead th {
        background-color: #f8f9fa;
        color: #495057;
        font-weight: 600;
        font-size: 0.875rem;
        padding: 0.75rem;
        border-bottom: 2px solid #dee2e6;
        white-space: nowrap;
    }

    .reports-table tbody td {
        padding: 0.75rem 0.5rem;
        vertical-align: middle;
        font-size: 0.9rem;
    }

    .reports-table tbody tr {
        transition: background-color 0.2s;
    }

        .reports-table tbody tr:hover {
            background-color: #f8f9fa;
        }

.eik-cell {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
}

.company-name {
    color: #333;
    font-weight: 500;
    line-height: 1.2;
}

.year-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.date-cell {
    color: #6c757d;
    font-size: 0.85rem;
}

/* ???????? ????????? ?????? */
.correction-badge {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.2;
}

.correction-yes {
    background: #e3f2fd;
    color: #1976d2;
}

.correction-no {
    background: #eef1f4;
    color: #6c757d;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    display: inline-block;
}

.status-published {
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
    color: white;
}

.status-rejected {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.status-errors {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.actions-cell {
    white-space: nowrap;
}

.action-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f8f9fa;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 0.125rem;
    font-size: 0.85rem;
}

/* ???? ?? ?????? ????? ? ??????? */
.reports-table tbody tr.selected {
    background-color: #d4d8e0 !important;
    border-left: 4px solid #2a5298 !important;
    position: relative;
}

    .reports-table tbody tr.selected td {
        background-color: #d4d8e0 !important;
    }

    .reports-table tbody tr.selected:hover,
    .reports-table tbody tr.selected:hover td {
        background-color: #c5cad5 !important;
    }

}

.action-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.action-btn.edit:hover {
    background: #e3f2fd;
    color: #2196F3;
}

.action-btn.view:hover {
    background: #e8f5e9;
    color: #4CAF50;
}

.action-btn.delete:hover {
    background: #ffebee;
    color: #f44336;
}

.search-input {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

    .search-input:focus {
        outline: none;
        border-color: #2a5298;
        box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    }

.btn-new-report {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn-new-report:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
        color: white;
    }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: #dee2e6;
    }

@media (max-width: 768px) {
    .reports-table {
        font-size: 0.85rem;
    }

        .reports-table thead th,
        .reports-table tbody td {
            padding: 0.75rem 0.5rem;
        }

    .action-btn {
        width: 32px;
        height: 32px;
        margin: 0 0.125rem;
    }
}

.view-header {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.back-link {
    color: #2a5298;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

    .back-link:hover {
        color: #1e3c72;
    }

.company-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.company-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.company-details {
    flex: 1;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.company-meta {
    display: flex;
    gap: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.company-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.year-badge-large {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    color: #2a5298;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-buttons-top {
    display: flex;
    gap: 1rem;
}

.btn-validate {
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-export {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.report-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.report-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.view-tabs {
    background: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

    .view-tabs .nav-tabs {
        border-bottom: 2px solid #e0e0e0;
        padding: 1rem 1rem 0 1rem;
    }

    .view-tabs .nav-link {
        border: none;
        color: #666;
        font-weight: 500;
        padding: 1rem 1.5rem;
        background: transparent;
        border-radius: 6px 6px 0 0;
        margin-right: 0.5rem;
    }

        .view-tabs .nav-link:hover {
            color: #2a5298;
            background: rgba(42, 82, 152, 0.05);
        }

        .view-tabs .nav-link.active {
            color: white;
            background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
            border-bottom: none;
        }

.view-content {
    padding: 2rem;
}

.data-table {
    width: 100%;
    margin-bottom: 1.5rem;
}

    .data-table thead th {
        background-color: #f8f9fa;
        color: #495057;
        font-weight: 600;
        font-size: 0.85rem;
        padding: 0.75rem;
        border-bottom: 2px solid #dee2e6;
        text-align: right;
    }

        .data-table thead th:first-child,
        .data-table thead th:nth-child(2) {
            text-align: left;
        }

    .data-table tbody td {
        padding: 0.75rem;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.9rem;
    }

        .data-table tbody td:first-child {
            color: #6c757d;
            font-weight: 600;
            width: 100px;
        }

        .data-table tbody td:nth-child(2) {
            color: #333;
            font-weight: 500;
        }

        .data-table tbody td.amount {
            text-align: right;
            font-family: 'Courier New', monospace;
            font-weight: 600;
        }

.section-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    padding: 0.75rem 1rem;
    margin: 1.5rem 0 0.5rem 0;
    border-left: 4px solid #2196F3;
    font-weight: 600;
    color: #1976d2;
}

.subsection-header {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.group-total {
    background-color: #e8f5e9 !important;
    font-weight: 700;
}

.grand-total {
    background-color: #c8e6c9 !important;
    font-weight: 700;
    font-size: 1.05rem;
}

.indent-1 {
    padding-left: 2rem !important;
}

.indent-2 {
    padding-left: 3rem !important;
}

@media print {
    .header, .action-buttons-top, .back-link, .view-tabs .nav-tabs {
        display: none;
    }

    .view-content {
        padding: 0;
    }
}

.gfo-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.gfo-section {
    border-bottom: 1px solid #e0e0e0;
}

    .gfo-section:last-child {
        border-bottom: none;
    }

.gfo-section-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a5490;
    transition: all 0.3s ease;
}

    .gfo-section-header:hover {
        background: #f0f1f3;
    }

    .gfo-section-header.collapsed {
        border-bottom: none;
    }

    .gfo-section-header i.toggle-icon {
        transition: transform 0.3s ease;
        font-size: 1.1rem;
    }

    .gfo-section-header.collapsed i.toggle-icon {
        transform: rotate(-90deg);
    }

.gfo-section-content {
    padding: 1.5rem;
    display: none;
    background: #fafafa;
}

    .gfo-section-content.show {
        display: block;
    }

.gfo-subsection {
    margin-bottom: 1.5rem;
}

    .gfo-subsection:last-child {
        margin-bottom: 0;
    }

.gfo-subsection-header {
    padding: 0.75rem 1rem;
    background: #e8f4f8;
    border-left: 3px solid #1a5490;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1a5490;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

    .gfo-subsection-header:hover {
        background: #d4ebf5;
    }

    .gfo-subsection-header i.sub-toggle {
        transition: transform 0.3s ease;
        font-size: 0.9rem;
    }

    .gfo-subsection-header.collapsed i.sub-toggle {
        transform: rotate(-90deg);
    }

.gfo-subsection-content {
    display: none;
    padding-left: 1rem;
}

    .gfo-subsection-content.show {
        display: block;
    }

.gfo-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

    .gfo-item:last-child {
        border-bottom: none;
    }

    .gfo-item input[type="checkbox"] {
        margin-right: 0.75rem;
        cursor: pointer;
        width: 18px;
        height: 18px;
    }

.gfo-item-code {
    min-width: 80px;
    font-weight: 600;
    color: #1a5490;
    font-family: 'Courier New', monospace;
    margin-right: 0.5rem;
}

.gfo-item-label {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
}

.gfo-item-value {
    min-width: 120px;
    text-align: right;
    font-weight: 500;
    color: #666;
    font-family: 'Courier New', monospace;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: #999;
}

    .empty-state i {
        font-size: 2.5rem;
        color: #ccc;
        display: block;
        margin-bottom: 0.5rem;
    }

.info-alert {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    color: #1565c0;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .action-btn:hover {
        background: #f0f1f3;
        border-color: #1a5490;
        color: #1a5490;
    }

    .action-btn.primary {
        background: #1a5490;
        color: white;
        border-color: #1a5490;
    }

        .action-btn.primary:hover {
            background: #0f3557;
        }

.item-count {
    font-size: 0.85rem;
    color: #999;
    margin-left: 0.5rem;
}

.gfo-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.gfo-section {
    border-bottom: 1px solid #e0e0e0;
}

    .gfo-section:last-child {
        border-bottom: none;
    }

.gfo-section-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a5490;
    transition: all 0.3s ease;
}

    .gfo-section-header:hover {
        background: #f0f1f3;
    }

    .gfo-section-header.collapsed {
        border-bottom: none;
    }

    .gfo-section-header i.toggle-icon {
        transition: transform 0.3s ease;
        font-size: 1.1rem;
    }

    .gfo-section-header.collapsed i.toggle-icon {
        transform: rotate(-90deg);
    }

.gfo-section-content {
    padding: 1.5rem;
    display: none;
    background: #fafafa;
}

    .gfo-section-content.show {
        display: block;
    }

.balance-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.balance-column {
    flex: 1;
}

    .balance-column h5 {
        color: #1a5490;
        font-weight: 600;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #1a5490;
        font-size: 1rem;
    }

@media (max-width: 768px) {
    .balance-split {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.gfo-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

    .gfo-item:last-child {
        border-bottom: none;
    }

    .gfo-item input[type="checkbox"] {
        margin-right: 0.75rem;
        cursor: pointer;
        width: 18px;
        height: 18px;
    }

.gfo-item-code {
    min-width: 80px;
    font-weight: 600;
    color: #1a5490;
    font-family: 'Courier New', monospace;
    margin-right: 0.5rem;
}

.gfo-item-label {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
}

.gfo-item-value {
    min-width: 120px;
    text-align: right;
    font-weight: 500;
    color: #666;
    font-family: 'Courier New', monospace;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: #999;
}

    .empty-state i {
        font-size: 2.5rem;
        color: #ccc;
        display: block;
        margin-bottom: 0.5rem;
    }

.info-alert {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    color: #1565c0;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.action-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .action-btn:hover {
        background: #f0f1f3;
        border-color: #1a5490;
        color: #1a5490;
    }

    .action-btn.primary {
        background: #1a5490;
        color: white;
        border-color: #1a5490;
    }

        .action-btn.primary:hover {
            background: #0f3557;
            border-color: #0f3557;
        }

.item-count {
    font-size: 0.85rem;
    color: #999;
    margin-left: 0.5rem;
}

.gfo-tabs {
    margin-top: 1.5rem;
}

.gfo-tab-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f6f8fb;
    border: 1px solid #e1e6ee;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}

.gfo-tab-button {
    border: 1px solid transparent;
    background: transparent;
    color: #4f5d75;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.18s ease;
}

    .gfo-tab-button:hover {
        color: #2c3a4f;
        background: #eef2f7;
    }

    .gfo-tab-button.active {
        background: #ffffff;
        border-color: #d7dde6;
        color: #1f2a3d;
        box-shadow: inset 0 0 0 1px #d7dde6, 0 2px 6px rgba(16, 24, 40, 0.06);
    }

.gfo-tab-panels {
    margin-top: 14px;
}

.gfo-tab-panel {
    display: none;
}

    .gfo-tab-panel.active {
        display: block;
    }

.tab-placeholder {
    border: 1px dashed #d7dde6;
    border-radius: 10px;
    padding: 24px;
    color: #6b778c;
    background: #fbfcfe;
    text-align: center;
}

.gfo-preview-btn {
    background-color: #1d78e1;
    border-color: #1d78e1;
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(29, 120, 225, 0.35);
}

    .gfo-preview-btn:hover {
        background-color: #1762ba;
        border-color: #1762ba;
        color: #fff;
    }

/* Attach tab styling */
.attach-card {
    background: #f8fbff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 20px 26px;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.04);
}

.attach-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2a3d;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.attach-desc {
    color: #4f5d75;
    margin-bottom: 18px;
}

.attach-input {
    max-width: 480px;
}

.attach-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8a94a6;
    padding: 32px 12px;
    gap: 8px;
}

    .attach-empty .bi-upload {
        font-size: 48px;
    }

.attach-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attach-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.attach-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f2a3d;
    font-weight: 600;
}

.attach-item-meta {
    color: #6b778c;
    font-size: 0.9rem;
}

.attach-remove {
    border: none;
    background: transparent;
    color: #b42318;
    font-weight: 600;
}

    .attach-remove:hover {
        color: #7f1d1d;
    }

/* Package tab styling */
.pkg-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.pkg-stat-card {
    background: #f8fbff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.pkg-stat-label {
    color: #4f5d75;
    font-weight: 600;
    font-size: 0.95rem;
}

.pkg-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
}

.pkg-section-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 14px 6px;
    margin-bottom: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.pkg-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1f2a3d;
    margin-bottom: 6px;
}

.pkg-section-meta {
    display: flex;
    gap: 14px;
    color: #6b778c;
    font-size: 0.95rem;
}

.pkg-files-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.pkg-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1f2a3d;
}

.pkg-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9edf2;
}

.pkg-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2a3d;
    font-weight: 600;
}

.pkg-file-meta {
    color: #6b778c;
    font-size: 0.9rem;
}

.pkg-download-btn {
    border: 1px solid #1d78e1;
    color: #1d78e1;
    background: #e8f2ff;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
}

    .pkg-download-btn:hover {
        background: #d7e8ff;
        color: #155ab0;
        border-color: #155ab0;
    }

/* Export buttons bar */
.export-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.export-btn {
    border: 1px solid #d7dde6;
    background: #ffffff;
    color: #1f2a3d;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.18s ease;
}

    .export-btn:hover {
        background: #f8fbff;
        border-color: #b8c0cc;
        color: #0f172a;
    }

    .export-btn.primary {
        background: #1d78e1;
        border-color: #1d78e1;
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(29, 120, 225, 0.35);
    }

        .export-btn.primary:hover {
            background: #1762ba;
            border-color: #1762ba;
        }

/* Preview XML code */
.preview-container {
    background: #f5f7fb;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    overflow: auto;
}

.preview-header {
    font-weight: 700;
    color: #1f2a3d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #2d3748;
    line-height: 1.5;
}

    .code-block pre {
        margin: 0;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

.code-tag {
    color: #c41e3a;
}

.code-attr {
    color: #1d78e1;
}

.code-text {
    color: #22863a;
}

/* Table Styles for Balance Sheet */
.balance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

    .balance-table thead {
        background-color: #e3f2fd;
        color: #1976d2;
        font-weight: 600;
    }

    .balance-table th {
        padding: 1rem;
        text-align: left;
        border: 1px solid #ddd;
        font-size: 0.95rem;
    }

    .balance-table td {
        padding: 0.75rem 1rem;
        border: 1px solid #f0f0f0;
        font-size: 0.9rem;
    }

    .balance-table tbody tr:hover {
        background-color: #f8f9fa;
    }

    .balance-table td input {
        height: 38px;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 0.5rem;
        font-size: 0.9rem;
        width: 100%;
        transition: all 0.2s;
    }

        .balance-table td input:focus {
            outline: none;
            border-color: #2a5298;
            box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
        }

        .balance-table td input[readonly] {
            background-color: #f5f5f5;
            color: #666;
            cursor: not-allowed;
        }

        .balance-table td input.calculated {
            background-color: #e8f5e9;
            font-weight: 600;
        }

    .balance-table .code-col {
        width: 80px;
        font-weight: 500;
        color: #666;
    }

    .balance-table .desc-col {
        width: auto;
        color: #333;
    }

    .balance-table .group-header-row {
        background-color: #e3f2fd;
        color: #1976d2;
        font-weight: 600;
    }

    .balance-table .subsection-header {
        background-color: #f8f9fa;
        color: #2a5298;
        font-weight: 600;
        border-left: 4px solid #2a5298;
    }

/* AAR Table styled */
.aar-table-styled {
    width: 100%;
    border-collapse: collapse;
    margin: .2rem 0 1rem 0;
    border: 2px solid #ddd;
}

    .aar-table-styled.chapter-header-table {
        border-collapse: collapse;
        margin: 0 0 0 0;
        border: 0px;
    }

        .aar-table-styled.chapter-header-table tr.group-header-row {
            background-color: white;
            color: #1976d2;
            font-weight: 600;
        }

    .aar-table-styled thead {
        background-color: #e3f2fd;
        color: #1976d2;
        font-weight: 600;
    }

    .aar-table-styled tfoot {
        background-color: #e3f2fd;
        font-weight: 800;
    }

    .aar-table-styled th {
        padding: .3rem;
        text-align: center;
        border: 1px solid #ddd;
        font-size: 0.8rem;
        font-weight: normal;
    }

        .aar-table-styled th.column-code {
            border-bottom: 2px solid #ddd;
            text-align: center;
            color: #333;
        }


    .aar-table-styled .aar-table-row-header {
        background-color: white;
        color: #333;
        font-weight: bold;
    }


    .aar-table-styled .aar-table-row-header th {
        font-weight: bold;
    }


    .aar-table-styled td {
        padding: .1rem .5rem;
        border: 1px solid #f0f0f0;
        font-size: 0.9rem;
    }

    .aar-table-styled tbody tr:hover {
        background-color: #f8f9fa;
    }

    .aar-table-styled td input {
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 0 0.5rem;
        font-size: 0.9rem;
        width: 100%;
        transition: all 0.2s;
    }

        .aar-table-styled td input[text] {
            height: 38px;
        }

        .aar-table-styled td input:focus {
            outline: none;
            border-color: #2a5298;
            box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
        }

        .aar-table-styled td input[readonly] {
            background-color: #f5f5f5;
            color: #666;
            cursor: not-allowed;
        }

        .aar-table-styled td input.calculated {
            background-color: #e8f5e9;
            font-weight: 600;
        }

    .aar-table-styled .code-col {
        /*width: 80px;*/
        text-align: center;
        font-weight: 500;
        color: #666;
        border-left: 2px solid #ddd;
        border-right: 2px solid #ddd;
    }

    .aar-table-styled .desc-col {
        /*width: auto;*/
        color: #333;
    }

    .aar-table-styled .group-header-row {
        background-color: #e3f2fd;
        color: #1976d2;
        font-weight: 600;
    }

    .aar-table-styled .subsection-header {
        background-color: #f8f9fa;
        color: #2a5298;
        font-weight: 600;
        border-left: 4px solid #2a5298;
    }


/* Bootstrap Tab Pane Visibility - Override any conflicting styles */
.tab-content > .tab-pane {
    display: none;
}

    .tab-content > .tab-pane.active {
        display: block;
    }

/* ???? ??????? ?? ?????? ?? ?????????????? */
.mandatory-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #ff6b6b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.75rem;
}

    .mandatory-badge i {
        font-size: 0.85rem;
    }

/* ??????? ?? ???????????? ??????????? */
.mandatory-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #fffbea;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 4px;
    margin: 0;
}

    .mandatory-note i {
        color: #ffc107;
        margin-top: 0.25rem;
        flex-shrink: 0;
        font-size: 1.2rem;
    }

.mandatory-note {
    color: #664d03;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* CSS ?? ?????????? ?? ??????? ?? ???????????? ? ????????? ?? ??????? ?? ??? */
.balance-table .form-check-input,
.equity-table .form-check-input,
.assets-table .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    vertical-align: middle;
}

/* ??????? ?? ???????????? ?? ?????? */
.validation-results {
    background: white;
    border-radius: 8px;
    padding: .5rem;
    margin-bottom: .5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-left: 4px solid #dc3545;
}

    .validation-results.success {
        background: white;
        border-radius: 8px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        border-left: 4px solid #388E3C;
    }

    .validation-results.hidden {
        display: none;
    }

.validation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .2rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #e0e0e0;
}

.validation-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: .9rem;
    font-weight: 600;
    color: #495057;
}

    .validation-title i {
        color: #ffc107;
        font-size: 1.5rem;
    }

.error-count {
    background: #dc3545;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.error-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #fff5f5;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
}

    .error-item i {
        color: #dc3545;
        font-size: 1.2rem;
        margin-top: 0.1rem;
        flex-shrink: 0;
    }

.error-text {
    color: #dc3545;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.error-list::-webkit-scrollbar {
    width: 8px;
}

.error-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.error-list::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 10px;
}

    .error-list::-webkit-scrollbar-thumb:hover {
        background: #c82333;
    }

/* ???????? ??????? ?? ????? ? ??? ????????? */
.validation-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.error-count, .warning-count {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   Report Selection List - GFO Report Types
   ======================================== */
.report-selection-list {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.report-selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .report-selection-item:last-child {
        border-bottom: none;
    }

    .report-selection-item:hover {
        background-color: #fafbfc;
    }

.report-selection-label {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.report-selection-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

    .report-selection-options .form-check-label {
        font-size: 0.875rem;
        color: #555;
    }

.report-selection-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
}

    .report-selection-checkbox .form-check-input {
        margin: 0;
    }

    .report-selection-checkbox .text-muted {
        font-size: 0.875rem;
    }

.error-count {
    background: #dc3545;
    color: white;
}

    .error-count:hover {
        background: #c82333;
    }

.warning-count {
    background: #fd7e14;
    color: white;
}

    .warning-count:hover {
        background: #e96d00;
    }

.validation-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: .5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.validation-tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .validation-tab-btn:hover {
        color: #333;
    }

    .validation-tab-btn.active {
        color: #dc3545;
        border-bottom-color: #dc3545;
    }

        .validation-tab-btn.active.warnings {
            color: #fd7e14;
            border-bottom-color: #fd7e14;
        }

.error-item.warning {
    background: #fff8f0;
    border-left-color: #fd7e14;
}

    .error-item.warning i {
        color: #fd7e14;
    }

    .error-item.warning .error-text {
        color: #fd7e14;
    }

.form-table-title {
    text-transform: uppercase;
    margin: 1rem 0 0 0;
    margin-bottom: .4rem;
    font-size: 1.2rem;
}

.form-table-subtitle {
}

.form-section-separator {
    margin-top: 40px;
}

.info-section-separator {
    margin-top: 40px;
}

.table-section-header {
    font-size: 1rem;
    text-align: left;
    margin-top: 10px;
}

.section-footnotes {
    font-size: 10px;
}

.table-aar {
    width: 100%;
    border: 2px solid black;
    font-size: .8rem;
}

    .table-aar th,
    .table-aar td {
        border: 1px solid #495057;
    }

    .table-aar th {
        text-align: center;
        font-weight: normal;
    }

        .table-aar th.column-title {
            padding-left: .2rem;
            padding-right: .2rem;
        }

    .table-aar td {
        font-weight: normal;
    }

        .table-aar td.code, .table-aar th.code {
            border-left: 2px solid black;
            border-right: 2px solid black;
            text-align: center;
            white-space: nowrap;
            width: 1%;
        }

        .table-aar td.row-title {
            padding-left: .5rem;
            padding-right: .5rem;
        }

        .table-aar td.main-item {
            font-weight: bold;
        }

        .table-aar td.main-sub-item {
            font-weight: 400;
        }

    .table-aar th.column-code {
        border-bottom: 2px solid black;
        text-align: center
    }

.table-aar-header {
    width: 100%;
    border: 0px solid transparent;
    font-size: .8rem;
}


.table-aar-form-header-left {
    border: 2px solid black;
    width: 18rem;
    font-size: .9rem;
}

    .table-aar-form-header-left td {
        padding-left: .2rem;
    }

.table-aar-form-header {
    border: 2px solid black;
    width: 18rem;
    font-size: .9rem;
}

    .table-aar-form-header td {
        padding-left: .2rem;
        padding-right: .2rem;
    }

    .table-aar-form-header tr.number-row td {
        border: 1px solid #231f20;
        font-weight: normal;
        width: 1.2rem;
        text-align: center;
    }

.print_template .table-aar {
    font-size: 12px;
}

    .print_template .table-aar td.cell-data {
        white-space: nowrap;
        text-align: right;
        padding-left: .3rem;
        padding-right: .3rem;
    }

.print_template .form-section-separator {
    margin-top: unset;
    page-break-before: always;
}

.print_template .info-section-separator {
    page-break-before: avoid;
}

.table-info-section {
    font-size: .8rem;
    border: 0px solid transparent;
}

    .table-info-section td.label {
        padding-left: .3rem;
        padding-right: .3rem;
        white-space: nowrap;
    }

    .table-info-section td.hint-text {
        font-size: 10px;
        padding-left: .3rem;
        padding-right: .3rem;
        white-space: nowrap;
        text-align: center;
    }


.aar-border {
    border: 0.5px solid #495057;
}

.income-statement1-container, .income-statement2-container,
.cashflow-statement-container, .equity-statement-container,
.balance-container {
    margin: auto;
}

.print_template .income-statement1-container,
.print_template .income-statement2-container,
.print_template .cashflow-statement-container,
.print_template .equity-statement-container,
.print_template .balance-container {
    width: 100%;
}

.generic-form-container {
    margin: 0 auto;
}

.print_template .generic-form-container {
    width: 100%;
}

.bg-report-snapshot {
    background-color: #F8D7DA;
}

.bg-report-cancelled {
    background-color: #9EC5FE;
}

.bg-report-sent {
    background-color: #0DCAF0;
}

/* ========================================
   ??????? ?? ?????? ? ?????? ?? ?????????
   ======================================== */

/* ????????? ?? ???????? - Summary boxes */
.errors-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.errors-summary-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

    .errors-summary-header .summary-box {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.85rem;
        border-radius: 6px;
        border: 1px solid;
    }

        .errors-summary-header .summary-box i {
            font-size: 1rem;
            flex-shrink: 0;
        }

    .errors-summary-header .summary-label {
        font-size: 0.85rem;
        font-weight: 500;
    }

    .errors-summary-header .summary-value {
        font-size: 0.85rem;
        font-weight: 700;
    }

    /* ?????? - ??????? */
    .errors-summary-header .summary-errors {
        background-color: #f8d7da;
        border-color: #f5c6cb;
        color: #721c24;
    }

        .errors-summary-header .summary-errors i {
            color: #dc3545;
        }

    /* ?????????????? - ????? */
    .errors-summary-header .summary-warnings {
        background-color: #fff3cd;
        border-color: #ffeeba;
        color: #856404;
    }

        .errors-summary-header .summary-warnings i {
            color: #ffc107;
        }

/* ??????? */
.errors-legend {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #666;
}

    .errors-legend .legend-item {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

        .errors-legend .legend-item i {
            font-size: 0.85rem;
        }

/* ????? ?????? (collapsible sections) */
.errors-groups {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.error-group {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

.error-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background-color: #f8f9fa;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid transparent;
}

    .error-group-header:hover {
        background-color: #e9ecef;
    }

    .error-group-header[aria-expanded="true"] {
        background-color: #e9ecef;
        border-bottom: 1px solid #dee2e6;
    }

    .error-group-header .collapse-icon {
        font-size: 0.85rem;
        color: #666;
        transition: transform 0.2s ease;
    }

    .error-group-header[aria-expanded="true"] .collapse-icon {
        transform: rotate(90deg);
    }

    .error-group-header .group-title {
        font-weight: 600;
        font-size: 0.9rem;
        color: #333;
        flex-grow: 1;
    }

    .error-group-header .group-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        border-radius: 10px;
        font-weight: 500;
    }

    .error-group-header .error-badge {
        background-color: #f8d7da;
        color: #721c24;
    }

    .error-group-header .warning-badge {
        background-color: #fff3cd;
        color: #856404;
    }

/* ???? ?? ??????? ?????? */
.error-group-body {
    background-color: #fff;
}

.errors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .errors-list li {
        padding: 0.5rem 0.85rem 0.5rem 1.5rem;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.85rem;
        line-height: 1.4;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }

        .errors-list li:last-child {
            border-bottom: none;
        }

        .errors-list li i {
            flex-shrink: 0;
            margin-top: 0.1rem;
        }

/* ?????? (???????) */
.error-item.error {
    color: #721c24;
    background-color: #fff5f5;
}

    .error-item.error i {
        color: #dc3545;
    }

/* ?????????????? (????????) */
.error-item.warning {
    color: #856404;
    background-color: #fffef5;
}

    .error-item.warning i {
        color: #ffc107;
    }

/* ??? ?????? */
.no-errors {
    color: #155724;
    background-color: #f5fff5;
    font-style: italic;
}

    .no-errors i {
        color: #28a745;
    }

/* ??????????? ?? ????? ?? ?????? */
.errors-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

    .errors-placeholder i {
        font-size: 3rem;
        margin-bottom: 1rem;
        display: block;
    }

    .errors-placeholder p {
        margin: 0;
        font-size: 1rem;
    }

/* ????????? ? ?????? ? ?????? */
.errors-content {
    max-height: calc(100vh - 500px);
    overflow-y: auto;
}

/* Hover ????? ?? ???????? */
.errors-list li:hover {
    filter: brightness(0.98);
}

.validation-summary-valid {
    display: none;
}

.fill-success {
    background-color: #d4f5cb;
    font-weight: bold;
}

.fill-error {
    background-color: #f8d2d2;
    font-weight: bold;
}

.fill-warning {
    background-color: #f8f0d2;
    font-weight: bold;
}

/* ===== AFS Page Sections ===== */
.afs-section {
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    overflow: hidden;
}

.afs-section-title {
    background: #f3f6fa;
    border-bottom: 1px solid #dee2e6;
    padding: .65rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    color: #344767;
    display: flex;
    align-items: center;
}

.afs-section-body {
    padding: 1rem 1rem .75rem;
}

.afs-section .company-card {
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin: 0;
}

/* ===== Report Details: ???????? ?????????? ===== */
.detail-section-title {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    padding: .4rem 0 .5rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: .5rem;
}

/* Timeline */
.report-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: .25rem;
}

.report-timeline-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .5rem .5rem .5rem 0;
    border-left: 3px solid transparent;
    margin-left: .25rem;
}

.report-timeline-item--nsi {
    border-left: 3px solid #0dcaf0;
    background: #f5fcff;
    border-radius: 0 .3rem .3rem 0;
    padding-left: .5rem;
}

.report-timeline-item--empty {
    opacity: .7;
}

.report-timeline-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .85rem;
    color: #fff;
    margin-top: .1rem;
}

.report-timeline-body {
    flex: 1;
}

.report-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-bottom: .1rem;
}

.report-timeline-date {
    font-size: .78rem;
    color: #6c757d;
}

.report-timeline-user {
    font-size: .8rem;
    font-weight: 500;
    color: #344767;
}

.report-timeline-action {
    font-size: .82rem;
    color: #495057;
}

/* Internal note cards */
.internal-note-card {
    background: #fff;
    border-left: 3px solid #0dcaf0;
    border-radius: .35rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    padding: .7rem 1rem;
}

/* ===== Report Details: ???????? ?????????? — ??? ?????? ===== */

/* ????????? ?????? */
.sinfo-section-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: .6rem;
}

/* ????? ???? ?? ??????? */
.sinfo-contact-card {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: .4rem;
    padding: .85rem 1.1rem;
}

.sinfo-contact-field-label {
    font-size: .75rem;
    color: #9ca3af;
    margin-bottom: .15rem;
}

.sinfo-contact-field-value {
    font-size: .9rem;
    font-weight: 600;
    color: #1e293b;
}

/* Timeline */
.sinfo-timeline {
    display: flex;
    flex-direction: column;
    padding-left: .25rem;
}

.sinfo-tl-item {
    display: flex;
    gap: .9rem;
    align-items: stretch;
    position: relative;
}
    /* ?????????? ????? ????? ??????? */
    .sinfo-tl-item:not(.sinfo-tl-item--last) .sinfo-tl-dot::after {
        content: '';
        display: block;
        width: 2px;
        background: #e5e7eb;
        position: absolute;
        top: 1.1rem;
        left: .5rem;
        bottom: 0;
        transform: translateX(-50%);
    }

.sinfo-tl-dot {
    position: relative;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: .25rem;
    border: 2.5px solid transparent;
    background-clip: padding-box;
    z-index: 1;
}

.sinfo-tl-dot--blue {
    border-color: #3b82f6;
    background: #fff;
}

.sinfo-tl-dot--green {
    border-color: #22c55e;
    background: #fff;
}

.sinfo-tl-dot--orange {
    border-color: #f97316;
    background: #fff;
}

.sinfo-tl-content {
    padding-bottom: 1.1rem;
    flex: 1;
}

.sinfo-tl-action {
    font-size: .875rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.sinfo-tl-meta {
    font-size: .78rem;
    color: #6b7280;
    margin-top: .1rem;
}

/* ??? ??? — ???? ???? ????? */
.sinfo-tl-item--nsi {
    background: #f0f7ff;
    border-left: 3px solid #0dcaf0;
    border-radius: 0 .3rem .3rem 0;
    padding-left: .4rem;
    margin-left: -.4rem;
}

/* ===== Survey Detail Tabs =====*/
.survey-form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: .15rem .4rem;
    border-radius: 50rem;
    font-size: .75rem;
    font-weight: 700;
}

.survey-form-badge--blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.survey-form-badge--teal {
    background: #ccfbf1;
    color: #0f766e;
}

.survey-req-pill {
    display: inline-block;
    padding: .18rem .55rem;
    border-radius: 50rem;
    font-size: .74rem;
    font-weight: 600;
}

.survey-req-pill--required {
    background: #fee2e2;
    color: #b91c1c;
}

.survey-req-pill--optional {
    background: #f3f4f6;
    color: #6b7280;
}

/* ===== Survey Rules & Periods =====*/
.rule-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .4rem;
    padding: .8rem 1rem;
}

.rule-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: .3rem;
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rule-type-badge--lk {
    background: #fee2e2;
    color: #b91c1c;
}

.rule-type-badge--pr {
    background: #fef3c7;
    color: #b45309;
}

.rule-context {
    font-size: .75rem;
    color: #6b7280;
    margin-bottom: .2rem;
}

.rule-formula {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-family: monospace;
    font-size: .78rem;
    padding: .15rem .5rem;
    border-radius: .25rem;
    margin-bottom: .3rem;
}

.rule-desc {
    font-size: .825rem;
    color: #374151;
}

.flex-1 {
    flex: 1;
}

.periods-field-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: .35rem;
    display: block;
}

/* ===== Organizational Tree Structure ===== */
.org-tree-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.org-tree {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.tree-node {
    margin-left: 0;
    list-style: none;
    padding-left: 0;
}

    .tree-node li {
        list-style: none;
        margin: 0;
        padding: 0;
        position: relative;
        padding-left: 1.5rem;
    }

        .tree-node li:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 1px;
            height: 100%;
            border-left: 1px solid #d0d0d0;
        }

        .tree-node li:last-child:before {
            display: none;
        }

.tree-toggle {
    display: inline-block;
    cursor: pointer;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    user-select: none;
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    margin-right: 8px;
    color: #666;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .tree-toggle:hover {
        background: #e0e0e0;
        color: #333;
    }

    .tree-toggle.expanded {
        background: #2a5298;
        color: white;
        border-color: #2a5298;
    }

.tree-content {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f9f9f9;
    border-radius: 4px;
    margin: 0.5rem 0;
    flex-grow: 1;
    gap: 0.75rem;
}

    .tree-content.parent {
        background: linear-gradient(135deg, #e8f1f8 0%, #f3f7fc 100%);
        border-left: 4px solid #2a5298;
        font-weight: 500;
    }

    .tree-content.child {
        background: #fafafa;
        margin-left: 2rem;
    }

    .tree-content .code {
        display: inline-block;
        background: white;
        padding: 0.35rem 0.65rem;
        border-radius: 3px;
        font-weight: 600;
        color: #2a5298;
        min-width: 70px;
        text-align: center;
        border: 1px solid #d1e7f7;
    }

    .tree-content .name {
        flex-grow: 1;
        color: #333;
    }

    .tree-content .type {
        display: inline-block;
        background: #d1e7f7;
        color: #0c5aa0;
        padding: 0.3rem 0.75rem;
        border-radius: 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .tree-content .status {
        display: inline-block;
        padding: 0.3rem 0.75rem;
        border-radius: 12px;
        font-size: 0.8rem;
        font-weight: 500;
        white-space: nowrap;
    }

        .tree-content .status.active {
            background: #d4edda;
            color: #155724;
        }

        .tree-content .status.inactive {
            background: #f8d7da;
            color: #721c24;
        }

.tree-children {
    display: none;
}

    .tree-children.show {
        display: block;
    }

/* ===== Organizational Tree Item Selection ===== */
.org-tree-item {
    margin-bottom: 0.5rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

    .org-tree-item:hover {
        background-color: #f5f5f5;
    }

    .org-tree-item.selected {
        background-color: #d1e7f7;
        border-left: 4px solid #2a5298;
        padding-left: calc(0.5rem - 4px);
        font-weight: 500;
    }

        .org-tree-item.selected span:not(.tree-toggle) {
            color: #1e3c72;
        }

.tree-item-expanded {
    background-color: #e3f2fd;
    padding: 0.5rem;
    border-radius: 4px;
}

.tree-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-weight: bold;
    width: 28px;
    height: 28px;
    background: #2a5298;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

    .tree-toggle-icon:hover {
        background-color: #1e3c72;
        transform: scale(1.05);
    }

.tree-leaf-icon {
    display: inline-block;
    margin-right: 8px;
    font-weight: bold;
    width: 20px;
    text-align: center;
    color: #999;
}

.field-validation-error {
    color: #dc3545 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* ── Report meta bar ─────────────────────────────────────── */
.report-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 1rem;
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.55rem;
    font-size: 0.8rem;
}

.report-meta-bar .rmb-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #4a5568;
    line-height: 1.25;
}

.report-meta-bar .rmb-label {
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.report-meta-bar .rmb-value {
    color: #1f2a3d;
    font-weight: 500;
}

.report-meta-bar .rmb-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1.5px solid #adb5bd;
    border-radius: 3px;
    font-size: 0.68rem;
    color: #fff;
    background: #fff;
    flex-shrink: 0;
}

.report-meta-bar .rmb-check.checked {
    background: #2a5298;
    border-color: #2a5298;
}

.report-meta-bar .rmb-spacer {
    flex: 1;
}

.report-meta-bar .rmb-item-state {
    align-items: flex-start;
}

.report-meta-bar .rmb-state-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.report-meta-bar .rmb-state {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.42rem;
    border-radius: 999px;
    border: 1px solid;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
}

.report-meta-bar .rmb-state i {
    font-size: 0.72rem;
}

.report-meta-bar .rmb-state-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.report-meta-bar .rmb-state-error i {
    color: #dc3545;
}

.report-meta-bar .rmb-state-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.report-meta-bar .rmb-state-warning i {
    color: #ffc107;
}

.btn-promyana {
    font-size: 0.78rem;
    padding: 0.2rem 0.65rem;
    white-space: nowrap;
}

.detail-card--report {
    padding: 0.9rem;
    gap: 0.55rem 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card--report .detail-label {
    font-size: 0.76rem;
    margin-bottom: 0.02rem;
}

.detail-card--report .detail-value {
    font-size: 0.74rem;
}

.detail-card-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.15rem;
}

.detail-actions {
    margin: 0.55rem 0 0.2rem 0.55rem;
}

.detail-actions .mb-4 {
    margin-bottom: 0.2rem !important;
}

@media (max-width: 1200px) {
    .detail-card--report {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .detail-card--report {
        grid-template-columns: 1fr;
    }
}

