:root {
    --bg-main: #f3f6fb;
    --bg-soft: #eef3f9;
    --bg-card: #ffffff;

    --text-main: #172033;
    --text-soft: #5b6475;
    --text-muted: #7b8496;

    --primary: #174a8b;
    --primary-dark: #102f5f;
    --primary-light: #e7f0ff;

    --danger: #dc3545;
    --danger-dark: #bb2d3b;

    --success-bg: #dcfce7;
    --success-text: #166534;

    --warning-bg: #fef3c7;
    --warning-text: #92400e;

    --danger-bg: #fee2e2;
    --danger-text: #991b1b;

    --info-bg: #dbeafe;
    --info-text: #1d4ed8;

    --border: #d9e1ec;

    --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 20px 55px rgba(15, 23, 42, 0.12);

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 9px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(23, 74, 139, 0.12), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
    color: var(--text-main);
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(217, 225, 236, 0.9);
    padding: 18px 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;
    top: 0;
    z-index: 100;

    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.8px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo::before {
    content: "◆";
    font-size: 18px;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid #bfd6ff;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a {
    font-weight: 800;
    color: var(--primary);
    padding: 10px 12px;
    border-radius: 999px;
}

.nav a:hover {
    background: var(--primary-light);
    text-decoration: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-main);
}

.container {
    max-width: 1500px;
    margin: 44px auto;
    padding: 0 28px;
}

.page-title {
    margin-top: 0;
    margin-bottom: 34px;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1.4px;
    color: #111827;
}

.card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(217, 225, 236, 0.9);
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 26px;
    letter-spacing: -0.5px;
}

.card p {
    font-size: 17px;
    line-height: 1.65;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: linear-gradient(135deg, var(--primary), #2168bd);
    color: #fff;

    padding: 13px 20px;
    border-radius: var(--radius-md);

    cursor: pointer;
    font-weight: 800;
    font-size: 15px;

    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 24px rgba(27, 75, 145, 0.22);
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(27, 75, 145, 0.28);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ef4b5d);
    box-shadow: 0 10px 24px rgba(220, 53, 69, 0.22);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-dark), #dc3545);
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table th,
.table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.table th {
    background: #f7f9fc;
    color: var(--text-soft);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: #f8fbff;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.badge-info {
    background: var(--info-bg);
    color: var(--info-text);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.badge-critical {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.flash-error,
.flash-success {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.flash-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #fecaca;
}

.flash-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #bbf7d0;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 15px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(23, 74, 139, 0.12);
}

@media (max-width: 900px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .topbar-left,
    .topbar-right,
    .nav {
        flex-wrap: wrap;
    }

    .page-title {
        font-size: 34px;
    }

    .card {
        padding: 24px;
    }
}
.dashboard-hero {

    display: grid;
    grid-template-columns: 1.4fr 0.8fr;

    gap: 28px;

    margin-bottom: 34px;
}

.dashboard-hero-left {

    background:
        linear-gradient(
            135deg,
            #173b73 0%,
            #1f5aa8 100%
        );

    color: white;

    padding: 42px;

    border-radius: 28px;

    box-shadow:
        0 24px 60px rgba(23,74,139,0.24);
}

.dashboard-hero-left h2 {

    margin-top: 18px;
    margin-bottom: 18px;

    font-size: 44px;

    line-height: 1.1;

    letter-spacing: -1.8px;
}

.dashboard-hero-left p {

    color: rgba(255,255,255,0.82);

    font-size: 18px;

    line-height: 1.7;
}

.hero-badge {

    display: inline-flex;

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(255,255,255,0.14);

    border: 1px solid rgba(255,255,255,0.18);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.08em;
}

.dashboard-hero-right {

    display: flex;
}

.system-status-card {

    width: 100%;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f9fc 100%
        );

    border-radius: 28px;

    padding: 34px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-soft);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-time {

    margin-top: 24px;

    font-size: 30px;

    font-weight: 900;

    letter-spacing: -1px;
}

.status-sub {

    margin-top: 14px;

    color: var(--text-soft);

    font-size: 15px;
}

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 24px;

    margin-bottom: 34px;
}

.stat-card {

    min-height: 220px;
}

.stat-label {

    color: var(--text-soft);

    font-size: 15px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}

.stat-value {

    margin-top: 26px;

    font-size: 58px;

    font-weight: 900;

    letter-spacing: -2px;
}

.stat-date {

    margin-top: 28px;

    font-size: 24px;

    font-weight: 800;

    line-height: 1.5;
}

.stat-sub {

    margin-top: 18px;

    color: var(--text-muted);

    font-size: 14px;
}

.dashboard-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 28px;
}

.info-list {

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-row {

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 14px;

    border-bottom: 1px solid var(--border);
}

.system-list {

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.system-item {

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);
}

@media (max-width: 1200px) {

    .dashboard-hero,
    .stats-grid,
    .dashboard-grid {

        grid-template-columns: 1fr;
    }

    .dashboard-hero-left h2 {

        font-size: 34px;
    }
}
.invoice-hero {

    display: grid;

    grid-template-columns:
        1.3fr 0.7fr;

    gap: 28px;

    margin-bottom: 34px;
}

.invoice-hero-left {

    background:
        linear-gradient(
            135deg,
            #173b73 0%,
            #1f5aa8 100%
        );

    color: white;

    padding: 38px;

    border-radius: 28px;

    box-shadow:
        0 24px 60px rgba(23,74,139,0.24);
}

.invoice-hero-left h2 {

    margin-top: 16px;
    margin-bottom: 14px;

    font-size: 46px;

    font-weight: 900;

    letter-spacing: -2px;
}

.invoice-hero-left p {

    color: rgba(255,255,255,0.82);

    font-size: 18px;
}

.invoice-hero-right {

    display: flex;
}

.invoice-warning-box,
.invoice-ok-box {

    width: 100%;

    border-radius: 28px;

    padding: 34px;

    box-shadow: var(--shadow-soft);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.invoice-warning-box {

    background:
        linear-gradient(
            180deg,
            #fff1f2 0%,
            #ffe4e6 100%
        );

    border: 1px solid #fecdd3;
}

.invoice-ok-box {

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #eef5ff 100%
        );

    border: 1px solid #dbeafe;
}

.warning-title {

    font-size: 28px;

    font-weight: 900;

    color: #991b1b;
}

.warning-sub,
.ok-sub {

    margin-top: 12px;

    color: var(--text-soft);

    line-height: 1.6;
}

.invoice-meta-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.invoice-meta-grid p {

    margin: 0;

    padding: 18px;

    background: #f8fbff;

    border-radius: 14px;

    border: 1px solid #e2e8f0;
}

.totals-card {

    background:
        linear-gradient(
            135deg,
            #132b4f 0%,
            #1b4b91 100%
        );

    color: white;

    border-radius: 28px;

    padding: 36px;

    margin-bottom: 32px;

    box-shadow:
        0 24px 60px rgba(23,74,139,0.22);
}

.totals-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 18px 0;

    border-bottom:
        1px solid rgba(255,255,255,0.12);
}

.totals-grand {

    border-bottom: none;

    margin-top: 12px;
}

.totals-label {

    font-size: 17px;

    color: rgba(255,255,255,0.82);
}

.totals-value {

    font-size: 24px;

    font-weight: 800;
}

.totals-grand-value {

    font-size: 40px;

    font-weight: 900;

    letter-spacing: -1px;
}

@media (max-width: 1200px) {

    .invoice-hero,
    .invoice-meta-grid {

        grid-template-columns: 1fr;
    }

    .invoice-hero-left h2 {

        font-size: 34px;
    }

    .totals-grand-value {

        font-size: 30px;
    }
}
.logo-wrapper {

    display: flex;
    align-items: center;

    gap: 14px;

    text-decoration: none;
}

.logo-wrapper:hover {

    text-decoration: none;
}

.logo-shield {

    width: 52px;
    height: 52px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #173b73 0%,
            #1f5aa8 100%
        );

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 900;

    letter-spacing: -0.5px;

    box-shadow:
        0 14px 34px rgba(23,74,139,0.28);
}

.logo-text-group {

    display: flex;
    flex-direction: column;
}

.logo-text {

    font-size: 24px;

    font-weight: 900;

    letter-spacing: -1px;

    color: var(--primary-dark);
}

.logo-sub {

    margin-top: 2px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: var(--text-muted);
}

.topbar-user {

    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.topbar-user-label {

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    color: var(--text-muted);

    font-weight: 700;
}

.topbar-user-name {

    margin-top: 2px;

    font-size: 15px;

    font-weight: 800;

    color: var(--text-main);
}

.topbar-user-name span {

    color: var(--text-soft);

    font-weight: 700;
}
.logo-image {

    height: 52px;

    width: auto;

    display: block;
}
.invoice-list-hero {

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 24px;

    margin-bottom: 34px;

    padding: 34px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #173b73 0%,
            #1f5aa8 100%
        );

    color: white;

    box-shadow:
        0 24px 60px rgba(23,74,139,0.22);
}

.invoice-list-hero h2 {

    margin-top: 14px;
    margin-bottom: 14px;

    font-size: 40px;

    font-weight: 900;

    letter-spacing: -1.5px;
}

.invoice-list-hero p {

    color: rgba(255,255,255,0.82);

    font-size: 17px;
}

.invoice-list-actions {

    display: flex;
    align-items: center;
}

.invoice-table td {

    vertical-align: middle;
}

.invoice-number-cell {

    display: flex;
    flex-direction: column;
}

.invoice-number-link {

    font-size: 16px;

    font-weight: 900;

    color: var(--primary-dark);
}

.invoice-number-link:hover {

    text-decoration: none;
}

.invoice-id-sub {

    margin-top: 6px;

    font-size: 12px;

    color: var(--text-muted);
}

.table-main-text {

    font-weight: 700;

    color: var(--text-main);
}

.invoice-total {

    font-size: 18px;

    font-weight: 900;

    color: var(--primary-dark);
}

.table-date {

    font-size: 13px;

    color: var(--text-soft);

    line-height: 1.5;
}

.invoice-actions {

    display: flex;

    gap: 10px;
}

.invoice-actions .btn {

    padding: 10px 14px;

    font-size: 13px;
}

@media (max-width: 1200px) {

    .invoice-list-hero {

        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-actions {

        flex-direction: column;
    }
}
.audit-hero {

    display: grid;

    grid-template-columns:
        1.3fr 0.7fr;

    gap: 28px;

    margin-bottom: 34px;
}

.audit-hero > div:first-child {

    background:
        linear-gradient(
            135deg,
            #132b4f 0%,
            #173b73 100%
        );

    color: white;

    padding: 38px;

    border-radius: 28px;

    box-shadow:
        0 24px 60px rgba(23,74,139,0.22);
}

.audit-hero h2 {

    margin-top: 14px;
    margin-bottom: 14px;

    font-size: 42px;

    font-weight: 900;

    letter-spacing: -1.5px;
}

.audit-hero p {

    color: rgba(255,255,255,0.82);

    font-size: 17px;

    line-height: 1.7;
}

.audit-status-card {

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f9fc 100%
        );

    border-radius: 28px;

    padding: 34px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-soft);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.audit-status-title {

    margin-top: 24px;

    font-size: 30px;

    font-weight: 900;

    letter-spacing: -1px;
}

.audit-status-sub {

    margin-top: 12px;

    color: var(--text-soft);

    line-height: 1.6;
}

.audit-log-list {

    display: flex;
    flex-direction: column;

    gap: 24px;
}

.audit-log-card {

    background: rgba(255,255,255,0.94);

    border-radius: 24px;

    padding: 28px;

    border: 1px solid rgba(217,225,236,0.9);

    box-shadow: var(--shadow-soft);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.audit-log-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 18px 44px rgba(15,23,42,0.10);
}

.audit-log-top {

    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;
}

.audit-event {

    font-size: 24px;

    font-weight: 900;

    letter-spacing: -0.7px;

    color: var(--primary-dark);
}

.audit-time {

    margin-top: 8px;

    color: var(--text-soft);

    font-size: 14px;
}

.audit-message {

    margin-top: 24px;

    font-size: 17px;

    line-height: 1.7;

    color: var(--text-main);
}

.audit-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;

    margin-top: 28px;
}

.audit-meta-box {

    padding: 18px;

    border-radius: 16px;

    background: #f8fbff;

    border: 1px solid #e2e8f0;
}

.audit-meta-label {

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 0.08em;

    color: var(--text-muted);

    text-transform: uppercase;
}

.audit-meta-value {

    margin-top: 10px;

    font-size: 15px;

    font-weight: 700;

    color: var(--text-main);
}

.audit-request-id {

    margin-top: 10px;

    font-size: 13px;

    font-family: monospace;

    word-break: break-all;

    color: var(--primary-dark);
}

@media (max-width: 1200px) {

    .audit-hero,
    .audit-grid {

        grid-template-columns: 1fr;
    }

    .audit-hero h2 {

        font-size: 34px;
    }
}
.companies-hero {

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 24px;

    margin-bottom: 34px;

    padding: 34px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #132b4f 0%,
            #173b73 100%
        );

    color: white;

    box-shadow:
        0 24px 60px rgba(23,74,139,0.22);
}

.companies-hero h2 {

    margin-top: 14px;
    margin-bottom: 14px;

    font-size: 40px;

    font-weight: 900;

    letter-spacing: -1.5px;
}

.companies-hero p {

    color: rgba(255,255,255,0.82);

    font-size: 17px;

    line-height: 1.7;
}

.companies-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(380px, 1fr));

    gap: 28px;
}

.company-card {

    background: rgba(255,255,255,0.94);

    border-radius: 28px;

    padding: 28px;

    border: 1px solid rgba(217,225,236,0.9);

    box-shadow: var(--shadow-soft);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.company-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 18px 44px rgba(15,23,42,0.10);
}

.company-card-top {

    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 18px;
}

.company-name {

    font-size: 24px;

    font-weight: 900;

    letter-spacing: -0.7px;

    color: var(--primary-dark);
}

.company-id {

    margin-top: 8px;

    font-size: 12px;

    color: var(--text-muted);

    letter-spacing: 0.04em;
}

.company-tax-box {

    margin-top: 24px;

    padding: 20px;

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #eef5ff 100%
        );

    border: 1px solid #dbeafe;
}

.company-tax-label {

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: var(--text-muted);
}

.company-tax-number {

    margin-top: 10px;

    font-size: 28px;

    font-weight: 900;

    letter-spacing: -1px;

    color: var(--primary-dark);
}

.company-meta-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

    margin-top: 24px;
}

.company-meta-item {

    padding: 18px;

    border-radius: 16px;

    background: #f8fbff;

    border: 1px solid #e2e8f0;
}

.company-meta-label {

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 0.08em;

    color: var(--text-muted);

    text-transform: uppercase;
}

.company-meta-value {

    margin-top: 10px;

    font-size: 15px;

    font-weight: 700;

    color: var(--text-main);

    word-break: break-word;
}

.company-card-actions {

    margin-top: 28px;

    display: flex;
    justify-content: flex-end;
}

@media (max-width: 1200px) {

    .companies-hero {

        flex-direction: column;
        align-items: flex-start;
    }

    .company-meta-grid {

        grid-template-columns: 1fr;
    }
}
.company-show-hero {

    display: grid;

    grid-template-columns:
        1.3fr 0.7fr;

    gap: 28px;

    margin-bottom: 34px;
}

.company-show-left {

    background:
        linear-gradient(
            135deg,
            #132b4f 0%,
            #173b73 100%
        );

    color: white;

    padding: 38px;

    border-radius: 28px;

    box-shadow:
        0 24px 60px rgba(23,74,139,0.22);
}

.company-show-left h2 {

    margin-top: 14px;
    margin-bottom: 14px;

    font-size: 42px;

    font-weight: 900;

    letter-spacing: -1.5px;
}

.company-show-left p {

    color: rgba(255,255,255,0.82);

    font-size: 17px;

    line-height: 1.7;
}

.company-show-right {

    display: flex;
}

.company-status-card {

    width: 100%;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f9fc 100%
        );

    border-radius: 28px;

    padding: 34px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-soft);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-status-title {

    margin-top: 24px;

    font-size: 30px;

    font-weight: 900;

    letter-spacing: -1px;
}

.company-status-sub {

    margin-top: 12px;

    color: var(--text-soft);

    line-height: 1.6;
}

.company-show-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 28px;

    margin-bottom: 28px;
}

.company-bank-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;
}

.company-bank-card {

    padding: 24px;

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #eef5ff 100%
        );

    border: 1px solid #dbeafe;
}

.company-bank-label {

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: var(--text-muted);
}

.company-bank-value {

    margin-top: 14px;

    font-size: 24px;

    font-weight: 900;

    letter-spacing: -0.5px;

    color: var(--primary-dark);

    word-break: break-word;
}

@media (max-width: 1200px) {

    .company-show-hero,
    .company-show-grid,
    .company-bank-grid {

        grid-template-columns: 1fr;
    }

    .company-show-left h2 {

        font-size: 34px;
    }
}
.timeline {

    position: relative;

    padding-left: 34px;
}

.timeline::before {

    content: '';

    position: absolute;

    left: 10px;
    top: 0;
    bottom: 0;

    width: 2px;

    background:
        linear-gradient(
            180deg,
            #173b73 0%,
            #dbeafe 100%
        );
}

.timeline-item {

    position: relative;

    margin-bottom: 28px;
}

.timeline-dot {

    position: absolute;

    left: -30px;
    top: 10px;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: #173b73;

    border: 4px solid white;

    box-shadow:
        0 0 0 2px #dbeafe;
}

.timeline-content {

    background: #f8fbff;

    border-radius: 20px;

    padding: 22px;

    border: 1px solid #dbeafe;
}

.timeline-top {

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.timeline-status-group {

    display: flex;
    align-items: center;
    gap: 14px;
}

.timeline-old-status {

    font-size: 13px;

    color: var(--text-soft);
}

.timeline-date {

    font-size: 13px;

    color: var(--text-soft);
}

.timeline-message {

    margin-top: 18px;

    font-size: 16px;

    line-height: 1.7;
}

.timeline-meta {

    margin-top: 18px;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    color: var(--text-muted);
}

.archive-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(420px, 1fr));

    gap: 24px;
}

.archive-card {

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    border-radius: 24px;

    padding: 24px;

    border: 1px solid #dbeafe;

    box-shadow: var(--shadow-soft);
}

.archive-top {

    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;
}

.archive-file-type {

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: var(--text-muted);
}

.archive-file-name {

    margin-top: 10px;

    font-size: 20px;

    font-weight: 900;

    color: var(--primary-dark);

    word-break: break-word;
}

.archive-meta-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

    margin-top: 24px;
}

.archive-meta-box {

    padding: 18px;

    border-radius: 16px;

    background: white;

    border: 1px solid #e2e8f0;
}

.archive-meta-label {

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: var(--text-muted);
}

.archive-meta-value {

    margin-top: 10px;

    font-size: 14px;

    font-weight: 700;

    color: var(--text-main);

    line-height: 1.6;
}

.archive-hash-block {

    margin-top: 24px;

    padding: 18px;

    border-radius: 16px;

    background: #132b4f;

    color: white;
}

.archive-hash {

    margin-top: 12px;

    font-size: 13px;

    font-family: monospace;

    line-height: 1.8;

    word-break: break-all;
}

@media (max-width: 1200px) {

    .archive-grid,
    .archive-meta-grid {

        grid-template-columns: 1fr;
    }
}
.public-hero {
    margin-bottom: 34px;
    padding: 48px;
    border-radius: 28px;
    background: linear-gradient(135deg, #132b4f 0%, #173b73 100%);
    color: white;
    box-shadow: 0 24px 60px rgba(23, 74, 139, 0.22);
}

.public-hero h1 {
    margin: 18px 0;
    font-size: 54px;
    font-weight: 900;
    letter-spacing: -2px;
}

.public-hero p {
    max-width: 780px;
    color: rgba(255,255,255,0.82);
    font-size: 19px;
    line-height: 1.7;
}

.public-hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: white;
    color: var(--primary-dark);
}

.public-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 1200px) {
    .public-grid {
        grid-template-columns: 1fr;
    }

    .public-hero h1 {
        font-size: 38px;
    }
}
.legal-hero {
    margin-bottom: 34px;
    padding: 48px;
    border-radius: 28px;
    background: linear-gradient(135deg, #132b4f 0%, #173b73 100%);
    color: white;
    box-shadow: 0 24px 60px rgba(23, 74, 139, 0.22);
}

.legal-hero h1 {
    margin: 18px 0;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -1.8px;
}

.legal-hero p {
    max-width: 850px;
    color: rgba(255,255,255,0.82);
    font-size: 18px;
    line-height: 1.7;
}

.legal-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.legal-meta-row span {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 13px;
    font-weight: 800;
}

.legal-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 110px;
}

.legal-sidebar a {
    display: block;
    padding: 11px 0;
    color: var(--primary-dark);
    font-weight: 800;
    border-bottom: 1px solid var(--border);
}

.legal-sidebar a:hover {
    text-decoration: none;
    color: var(--primary);
}

.legal-section h2 {
    color: var(--primary-dark);
}

.legal-section h3 {
    margin-top: 28px;
    font-size: 20px;
    color: var(--text-main);
}

.legal-section p,
.legal-section li {
    font-size: 16px;
    line-height: 1.75;
}

@media (max-width: 1200px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-hero h1 {
        font-size: 36px;
    }
}
/* ==========================================
   HEADER COMPACT FIX
   ========================================== */

.logo-sub {
    display: none !important;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-text {
    white-space: nowrap;
    font-size: 36px;
    font-weight: 800;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    min-width: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.company-switch-form {
    margin: 0;
}

.company-switch-select {
    min-width: 220px;
    max-width: 260px;
}

.topbar-user-label {
    display: none;
}

.topbar-user-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
}

.topbar-user-name span {
    font-size: 13px;
    opacity: .75;
}

.btn-danger {
    padding: 12px 24px !important;
    min-width: auto !important;
    white-space: nowrap;
}

/* 1600px alatt kisebb logó */

@media (max-width: 1600px) {

    .logo-text {
        font-size: 30px;
    }

    .nav {
        gap: 20px;
    }
}

/* 1400px alatt még kompaktabb */

@media (max-width: 1400px) {

    .logo-text {
        font-size: 26px;
    }

    .company-switch-select {
        min-width: 180px;
    }

    .nav {
        gap: 16px;
    }
}
/* ==========================================
   HEADER FINAL COMPACT FIX
   ========================================== */

.logo-sub {
    display: none !important;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.logo-image {
    width: 44px;
    height: 44px;
}

.logo-text {
    font-size: 24px !important;
    line-height: 1;
    white-space: nowrap;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1 1 auto;
    min-width: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.nav a {
    white-space: nowrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 0;
}

.company-switch-form {
    margin: 0;
    flex: 0 0 auto;
}

.company-switch-select {
    width: 210px !important;
    max-width: 210px !important;
}

.topbar-user {
    flex: 0 0 auto;
    min-width: 120px;
}

.topbar-user-label {
    display: none !important;
}

.topbar-user-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
    font-size: 16px;
}

.topbar-user-name span {
    display: block;
    font-size: 13px;
    opacity: .75;
}

.topbar-right .btn-danger {
    padding: 10px 18px !important;
    min-width: auto !important;
    white-space: nowrap;
}

/* 1500px alatt még tömörebb */
@media (max-width: 1500px) {
    .logo-text {
        font-size: 21px !important;
    }

    .nav {
        gap: 14px;
    }

    .company-switch-select {
        width: 180px !important;
        max-width: 180px !important;
    }

    .topbar-right .btn-danger {
        padding: 9px 14px !important;
    }
}