﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1861ac;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    /*  background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #6688b2 70%);*/
    background-color: #6688b2;
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

            .sidebar-container {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: 0;
    background-color: #6688b2;
    display: flex;
    flex-direction: column;
}

.sidebar-body {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 1rem;
}


.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}
@media (max-width: 767.98px) {
    .collapse.sidebar-body {
        display: none !important;
    }

    .sidebar-container {
        width: 100%;
        height: auto;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 320px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.header-container {
    height: 100px;
    background-color: #6688b2;
    /*background-image: url('/images/header-bg.png');*/ /* Opsionale: sfond institucional */
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo-img {
    height: 80px;
}

.institution-title {
    align-content:center;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

@media (max-width: 767.98px) {
    .header-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        height: auto;
        padding: 0.5rem 1rem;
    }

    .portal-shell .header-container,
    .app-shell .header-container {
        flex-direction: row !important;
        align-items: center !important;
        text-align: left;
        height: 76px !important;
        min-height: 76px;
        padding: 0 20px !important;
    }

        .header-container > div {
            margin-bottom: 0.5rem;
        }

    .portal-shell .header-container > div,
    .app-shell .header-container > div {
        margin-bottom: 0;
    }

    .logo-img {
        height: 60px;
    }

    .institution-title {
        font-size: 1.1rem;
    }

    .header-container .dropdown,
    .header-container a.btn {
        margin-top: 0.5rem;
    }
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 0.25);
}

.input-group-text {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}


@media (max-width: 768px) {
    .input-group select {
        width: 100% !important;
    }

    .input-group-text {
        min-width: 40px;
    }

    .form-section > .row .btn-primary,
    .form-section > .row .btn-success,
    .auth-btn-save,
    .login-panel .btn {
        width: 100%;
    }

    .btn-sm,
    .table .btn,
    .header-container .btn,
    .field-action,
    .xml-drop-btn,
    .excel-btn,
    .mobile-menu-btn,
    .filter-row .btn {
        width: auto;
    }

    .form-label {
        margin-bottom: 0.25rem;
    }

    .app-content.px-4 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .filter-row .filter-field,
    .filter-row .filter-field--date {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .field-with-action {
        flex-direction: column;
        align-items: stretch;
    }

    .field-action,
    .justify-content-end > .save-btn {
        width: 100%;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #xml-dropzone.xml-drop--ready,
    #xml-dropzone.xml-drop--send {
        flex-wrap: wrap !important;
    }

    #xml-dropzone.xml-drop--ready .xml-drop-btn,
    #xml-dropzone.xml-drop--send .xml-drop-btn {
        margin-left: 0;
        width: 100%;
    }

    .welcome-hero,
    .welcome-hero-in {
        padding: 22px 16px;
    }

    .form-header__content,
    .form-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}
label {
    margin-top: .5rem !important;
    margin-bottom: 0 !important;
}

/* spinner rrethor */

.loader {
    --d: 22px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    color: #1861ac;
    box-shadow: calc(1*var(--d)) calc(0*var(--d)) 0 0, calc(0.707*var(--d)) calc(0.707*var(--d)) 0 1px, calc(0*var(--d)) calc(1*var(--d)) 0 2px, calc(-0.707*var(--d)) calc(0.707*var(--d)) 0 3px, calc(-1*var(--d)) calc(0*var(--d)) 0 4px, calc(-0.707*var(--d)) calc(-0.707*var(--d))0 5px, calc(0*var(--d)) calc(-1*var(--d)) 0 6px;
    animation: l27 1s infinite steps(8);
}

@keyframes l27 {
    100% {
        transform: rotate(1turn)
    }
}

/* Vendos loader + tekst krah për krah */
.busy-inline {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Toast/alert pak më premium */
.alert {
    position: relative;
}

    .alert pre {
        white-space: pre-wrap;
        margin: 0;
    }

    .alert.alert-success {
        border-left: 4px solid #28a745;
    }

    .alert.alert-danger {
        border-left: 4px solid #dc3545;
    }

    /* Buton mbylljeje (X) më i dukshëm */
    .alert .btn-close {
        position: absolute;
        right: .75rem;
        top: .6rem;
        opacity: .6;
    }

        .alert .btn-close:hover {
            opacity: 1;
        }

/* Pamje si portali eOFI — vetëm UI */
html, body, body.bg-light {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
    background: linear-gradient(180deg, #eef3f9 0%, #f5f7fb 42%, #f5f7fb 100%) !important;
}

a, .btn-link {
    color: #3b5b81;
}

.text-primary {
    color: #1e293b !important;
}

.content h3,
h3.text-primary {
    color: #2d4563 !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sidebar,
.sidebar-container {
    background: linear-gradient(180deg, #2d4563 0%, #3b5b81 58%, #4a72a1 100%);
}

.sidebar-brand {
    height: 76px;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    background-image:
        linear-gradient(135deg, rgba(45, 69, 99, 0.9) 0%, rgba(59, 91, 129, 0.82) 48%, rgba(74, 114, 161, 0.72) 100%),
        url("../images/header-background.png");
    background-size: cover;
    background-position: left center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(45, 69, 99, 0.18);
}

.sidebar-brand .logo-img {
    height: 52px;
    width: auto;
    max-width: calc(100% - 8px);
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}

.sidebar-menu-btn {
    flex-shrink: 0;
}

.sidebar .oi {
    width: 1.35rem;
    font-size: 0.95rem;
}

.sidebar .nav-item {
    font-size: 0.92rem;
    padding-bottom: 0;
}

.sidebar .nav-item a {
    color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    height: auto;
    min-height: 40px;
    margin: 2px 10px;
    padding: 8px 12px;
    line-height: 1.3;
    font-weight: 600;
}

.sidebar .nav-item a.active {
    background: #fff;
    color: #3b5b81;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.sidebar .nav-item a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar .nav-item a.active:hover {
    color: #3b5b81;
}

.header-container {
    min-height: 76px;
    height: auto;
    box-sizing: border-box;
    padding: 0 28px;
    background-image:
        linear-gradient(135deg, rgba(45, 69, 99, 0.9) 0%, rgba(59, 91, 129, 0.82) 48%, rgba(74, 114, 161, 0.72) 100%),
        url("../images/header-background.png");
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(45, 69, 99, 0.28);
}

.header-brand {
    gap: 14px;
}

.header-container .logo-img {
    height: 54px;
}

.institution-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.user-badge {
    max-width: 220px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.user-badge-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
}

.header-container .btn {
    width: auto;
    border-radius: 10px;
    font-weight: 700;
}

.header-container .btn-light {
    color: #3b5b81;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
}

.header-container .btn-danger {
    background: rgba(220, 38, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.content {
    position: relative;
    z-index: 0;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.content .container.bg-white,
.content .card {
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(31, 41, 55, 0.04), 0 18px 48px rgba(31, 41, 55, 0.08);
}

.content .card {
    overflow: hidden;
    margin-bottom: 16px;
    background: #fff;
}

.content .card-header,
#cardDocs,
#cardExt,
#cardExe {
    background: linear-gradient(135deg, #3b5b81 0%, #4a72a1 100%) !important;
    color: #fff !important;
    border: none;
    font-weight: 700;
}

label {
    font-size: 12px;
    font-weight: 700;
    color: #3b5b81;
    letter-spacing: 0.03em;
}

.form-control,
.form-select,
textarea.form-control {
    border: 1px solid #b3c5db;
    border-radius: 10px;
    color: #1f2937;
    min-height: 40px;
}

.form-control:focus,
.form-select:focus {
    border-color: #4a72a1;
    box-shadow: 0 0 0 3px rgba(74, 114, 161, 0.18);
}

.btn {
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #4a72a1 0%, #3b5b81 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(59, 91, 129, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #3b5b81 0%, #2d4563 100%);
    color: #fff;
}

.btn-outline-primary {
    color: #3b5b81;
    border-color: #b3c5db;
    background: #fff;
}

.btn-outline-primary:hover {
    color: #fff;
    background: #4a72a1;
    border-color: #4a72a1;
}

.btn-outline-secondary {
    border-radius: 10px;
    color: #3b5b81;
    border-color: #d6e2ee;
    background: #fff;
}

.btn-success {
    border: none;
    border-radius: 10px;
    font-weight: 700;
}

.content table {
    color: #1f2937;
    border-color: #e6edf5;
}

.content table thead th,
.content .table-light {
    background: #edf2f8 !important;
    color: #2d4563 !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-color: #d6e2ee !important;
}

.content table td,
.content table th {
    border-color: #e6edf5;
    vertical-align: middle;
}

.content .table-hover tbody tr:hover {
    background: #f4f8fc;
}

.table-responsive {
    border: 1px solid #e6edf5;
    border-radius: 14px;
    overflow: auto;
}

.xml-page {
    max-width: 920px;
}

.xml-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.xml-step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #e6edf4;
    background: #fff;
    color: #94a3b8;
}

.xml-step.active {
    border-color: #b3c5db;
    background: #f8fbff;
    color: #2d4563;
    box-shadow: 0 6px 18px rgba(45, 69, 99, 0.08);
}

.xml-step.done {
    border-color: #b7d7c4;
    color: #166534;
}

.xml-step-no {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #edf2f8;
    color: #3b5b81;
    font-size: 13px;
    font-weight: 800;
}

.xml-step.active .xml-step-no {
    background: #3b5b81;
    color: #fff;
}

.xml-step.done .xml-step-no {
    background: #16a34a;
    color: #fff;
}

.xml-step strong,
.xml-step span {
    display: block;
    min-width: 0;
}

.xml-step strong {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.xml-step > div span {
    font-size: 12px;
    font-weight: 600;
}

.xml-step > .xml-step-no {
    display: grid;
}

.xml-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.xml-panel-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #2d4563;
}

.xml-panel-head p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}

.xml-chip {
    margin-left: auto;
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d6e2ee;
    background: #f8fbff;
    color: #3b5b81;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

#xml-dropzone,
.xml-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 240px;
    padding: 36px 24px;
    border-radius: 18px !important;
    border: 1.5px dashed #8fa8c7 !important;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #edf2f8 100%) !important;
    color: #3b5b81 !important;
    text-align: center;
    cursor: pointer;
}

.xml-drop-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #3b5b81;
    box-shadow: 0 8px 24px rgba(45, 69, 99, 0.12);
}

.xml-drop-icon svg {
    width: 28px;
    height: 28px;
}

.xml-drop-title {
    margin: 8px 0 0;
    font-size: 18px;
    font-weight: 800;
    color: #2d4563;
}

.xml-drop-hint {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.xml-drop-btn {
    margin-top: 8px;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #4a72a1 0%, #3b5b81 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(45, 69, 99, 0.22);
}

#xml-dropzone.xml-drop--ready {
    min-height: 0 !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 10px 14px !important;
    text-align: left;
}

#xml-dropzone.xml-drop--ready .xml-drop-icon {
    width: 36px;
    height: 36px;
    box-shadow: none;
}

#xml-dropzone.xml-drop--ready .xml-drop-icon svg {
    width: 18px;
    height: 18px;
}

.xml-drop-copy {
    flex: 1 1 180px;
    min-width: 0;
}

#xml-dropzone.xml-drop--ready .xml-drop-title {
    margin: 0;
    font-size: 14px;
}

#xml-dropzone.xml-drop--ready .xml-drop-hint {
    margin-top: 2px;
}

#xml-dropzone.xml-drop--ready .xml-drop-btn {
    margin-top: 0;
    margin-left: auto;
    padding: 6px 12px;
    font-size: 12px;
    background: #fff;
    color: #3b5b81;
    border: 1px solid #b3c5db;
    box-shadow: none;
}

.xml-sign-btn {
    min-width: 260px;
    height: 48px !important;
    padding: 0 22px !important;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #4a72a1 0%, #3b5b81 100%) !important;
    color: #fff !important;
    font-size: 15px;
    box-shadow: 0 8px 18px rgba(45, 69, 99, 0.22);
}

.xml-sign-btn:disabled {
    opacity: 0.55;
    box-shadow: none;
}

#xml-dropzone.xml-drop--send {
    min-height: 0 !important;
    height: auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 12px 16px !important;
    border-style: solid !important;
    border-color: #b7d7c4 !important;
    background: #f3faf6 !important;
}

.xml-send-btn {
    min-width: 240px;
    height: 48px !important;
    padding: 0 22px !important;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #16a34a 0%, #166534 100%) !important;
    color: #fff !important;
    font-size: 15px;
    box-shadow: 0 8px 18px rgba(22, 101, 52, 0.22);
}

.xml-send-btn:disabled {
    opacity: 0.55;
    box-shadow: none;
}

.xml-alert {
    margin-top: 12px;
}

.xml-page .progress {
    margin-top: 12px;
}

.xml-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.xml-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 700;
}

.xml-preview {
    margin-top: 16px;
}

.xml-preview textarea {
    min-height: 180px;
    border-radius: 14px;
    border: 1px solid #d6e2ee;
    background: #fff;
}

@media (max-width: 800px) {
    .xml-steps {
        grid-template-columns: 1fr;
    }
}

.home-page {
    max-width: 1080px;
    margin: 0 auto;
}

.welcome-hero {
    margin: 0 0 28px;
    padding: 36px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, #2d4563 0%, #3b5b81 55%, #4a72a1 100%);
    color: #fff;
    box-shadow: 0 16px 48px rgba(45, 69, 99, 0.22);
}

.welcome-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    font-weight: 700;
}

.welcome-hero h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.welcome-hero p {
    margin: 0;
    max-width: 720px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-note {
    margin-top: 14px !important;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.welcome-hero strong {
    color: #fff;
}

.welcome-hero-in {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.welcome-hero-copy {
    min-width: 0;
    flex: 1;
}

.welcome-hero-in h1 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.2;
}

.welcome-hero-in p {
    max-width: 560px;
}

.session-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .session-status {
        white-space: normal;
    }
}

.header-auth-link,
.header-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
}

.header-auth-link {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 8px 16px;
}

.header-auth-link:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.header-auth-btn {
    color: #3b5b81;
    background: #fff;
    border: none;
    padding: 8px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
}

.header-auth-btn:hover {
    color: #2d4563;
    background: #edf2f8;
}

.app-shell .header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    height: 88px;
    min-height: 88px;
    justify-content: center !important;
    padding: 0 28px;
    gap: 18px;
}

.app-shell .header-brand {
    flex: 0 0 auto;
    gap: 14px;
}

.header-center {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.app-shell .header-actions--desktop {
    flex: 0 0 auto;
    gap: 12px;
}

.app-shell .institution-title {
    font-size: 18px;
}

.app-shell .header-brand .logo-img,
.app-shell .header-container .logo-img {
    height: 72px;
    width: auto;
    min-width: 180px;
    max-width: none;
    object-fit: contain;
}

.app-shell .user-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    white-space: nowrap;
}

.app-shell .user-badge-label {
    display: none;
}

.app-shell .header-actions .btn-light,
.app-shell .header-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.top-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
}

.top-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: transparent;
    border: none;
    padding: 0;
}

.top-nav-bar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav-item {
    position: relative;
}

.top-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border: none;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.top-nav-link:hover,
.top-nav-link.active,
button.top-nav-link.active,
a.top-nav-link.active {
    color: #3b5b81 !important;
    background: #fff !important;
}

.top-nav-caret {
    width: 14px;
    height: 14px;
}

.top-nav-drop {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e6edf5;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
    z-index: 40;
}

.top-nav-drop-wide {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr);
    gap: 6px 8px;
    min-width: 480px;
    padding: 14px;
}

.top-nav-label {
    display: block;
    padding: 4px 12px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6d8eb5;
}

.top-nav-drop a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: #2d4563;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.top-nav-drop a:hover,
.top-nav-drop a.active {
    background: #edf2f8;
    color: #2d4563;
}

.top-nav-user {
    display: none;
}

.app-menu-btn {
    display: none;
}

.portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 22px;
}

.portal-docs,
.side-card {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(31, 41, 55, 0.04), 0 18px 48px rgba(31, 41, 55, 0.08);
    padding: 22px;
}

.section-head,
.side-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f7;
}

.section-icon,
.side-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, #f8fafc 0%, #eef3f9 100%);
    color: #3b5b81;
    border: 1px solid rgba(74, 114, 161, 0.16);
}

.section-icon svg,
.side-icon svg,
.doc-download svg {
    width: 22px;
    height: 22px;
    display: block;
}

.section-head h2,
.side-card-head h3 {
    margin: 0 0 4px;
    color: #2d4563;
    font-weight: 800;
}

.section-head p,
.side-card-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.documents-empty {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    color: #3b5b81;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.doc-link:hover {
    background: #edf2f8;
    color: #2d4563;
}

.doc-badge {
    flex-shrink: 0;
    min-width: 42px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.doc-label {
    flex: 1;
    min-width: 0;
}

.doc-download {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #d6e2ee;
    color: #4a72a1;
}

.doc-download svg {
    width: 16px;
    height: 16px;
}

.nextsense-card.bg-success,
.nextsense-card.bg-danger,
#cardExe.bg-success,
#cardExe.bg-danger {
    background: #fff !important;
    color: inherit !important;
}

.nextsense-card.bg-success .side-icon {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
    color: #047857;
    border-color: rgba(4, 120, 87, 0.18);
}

.nextsense-card.bg-danger .side-icon {
    background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
    color: #c2410c;
    border-color: rgba(194, 65, 12, 0.18);
}

.ns-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e6edf5;
}

.ns-line:has(> p:empty),
.ns-line:has(> p[style*="none"]) {
    display: none;
}

.ns-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: #fff;
    color: #3b5b81;
    border: 1px solid #d6e2ee;
}

.ns-icon svg {
    width: 16px;
    height: 16px;
}

.nextsense-status,
.nextsense-hint {
    margin: 0;
    padding: 4px 0 0;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #334155;
}

#cardExt.bg-success .ns-line-main {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

#cardExt.bg-success .ns-line-main .ns-icon,
#cardExe.bg-success .ns-icon {
    color: #047857;
    border-color: #bbf7d0;
    background: #fff;
}

#cardExt.bg-danger #install-message {
    color: #9a3412;
}

.nextsense-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.nextsense-action svg {
    width: 16px;
    height: 16px;
}

.nextsense-action-install {
    background: linear-gradient(135deg, #4a72a1, #3b5b81);
}

.nextsense-action-login {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 8px 20px rgba(21, 128, 61, 0.2);
}

@media (max-width: 900px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.contact-card {
    padding: 24px 26px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #d6e2ee;
    box-shadow: 0 4px 6px rgba(31, 41, 55, 0.04), 0 16px 40px rgba(31, 41, 55, 0.06);
}

.contact-card-dejnosti {
    background: linear-gradient(180deg, #fff 0%, #edf2f8 100%);
}

.contact-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f7;
}

.contact-card h2 {
    margin: 0;
    color: #2d4563;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-card-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8fafc 0%, #eef3f9 100%);
    color: #3b5b81;
    border: 1px solid rgba(74, 114, 161, 0.16);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-address {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 18px;
    font-style: normal;
    font-size: 15px;
    line-height: 1.55;
    color: #334155;
}

.contact-address span:first-child {
    font-weight: 700;
    color: #1e293b;
}

.contact-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #3b5b81;
    text-decoration: none;
    background: #edf2f8;
    border: 1px solid #d6e2ee;
}

.contact-map-link svg {
    width: 16px;
    height: 16px;
}

.contact-detail {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e6edf5;
}

.contact-detail span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-detail a {
    color: #1e293b;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.contact-detail em {
    margin-left: 6px;
    color: #64748b;
    font-style: normal;
    font-size: 14px;
    font-weight: 600;
}

.app-footer {
    margin-top: auto;
    background: linear-gradient(135deg, #2d4563, #4a72a1);
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    padding: 18px 16px;
    font-size: 13px;
}

.app-footer p {
    margin: 0;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.app-shell {
    background: linear-gradient(180deg, #eef3f9 0%, #f5f7fb 40%, #f5f7fb 100%);
}

.app-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-width: 0;
}

.app-content {
    flex: 1;
}

.app-home {
    max-width: 1120px;
    margin: 4px auto 0;
}

.home-section-head {
    margin: 6px 0 16px;
}

.home-section-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #2d4563;
}

.home-section-head p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #64748b;
}

.app-shell .content .contact-grid {
    max-width: 1120px;
    margin-top: 22px;
    margin-left: auto;
    margin-right: auto;
}

.portal-shell {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #eef3f9 0%, #f5f7fb 40%, #f5f7fb 100%);
}

.portal-body {
    flex: 1;
}

.portal-shell .header-container {
    height: 88px;
    min-height: 88px;
    padding: 0 max(48px, calc((100% - 1060px) / 2));
    gap: 24px;
    overflow: visible;
}

.portal-shell .header-actions {
    gap: 8px;
}

.mobile-menu-btn,
.header-backdrop,
.header-nav-panel {
    display: none;
}

.mobile-menu-btn {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(45, 69, 99, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 205;
}

.header-nav-panel {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 20px 24px;
    background: linear-gradient(180deg, #3b5b81 0%, #2d4563 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    z-index: 210;
}

.header-actions--mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.header-actions--mobile .header-auth-link,
.header-actions--mobile .header-auth-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
}

.portal-shell .header-brand {
    gap: 14px;
    flex-shrink: 0;
}

.portal-shell .institution-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.portal-shell .header-brand .logo-img,
.portal-shell .header-container .logo-img {
    height: 72px !important;
    width: auto;
    max-width: none;
    min-width: 180px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}

.portal-shell .header-auth-link,
.portal-shell .header-auth-btn {
    font-size: 13px;
    border-radius: 10px;
    padding: 9px 16px;
}

.portal-shell .header-auth-link {
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.portal-shell .header-auth-btn {
    font-weight: 700;
    padding: 9px 18px;
}

.header-logo-link {
    display: flex;
    align-items: center;
}

.header-auth-link svg,
.header-auth-btn svg,
.hero-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.portal-shell .home-page {
    max-width: none;
    margin: 0;
}

.portal-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 48px 0;
    color: #fff;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 10% 80%, rgba(0, 0, 0, 0.08) 0%, transparent 60%),
        linear-gradient(155deg, #6d8eb5 0%, #4a72a1 42%, #3b5b81 100%);
}

.portal-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.portal-hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.portal-hero-orb-1 {
    width: 500px;
    height: 500px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 65%);
}

.portal-hero-orb-2 {
    width: 300px;
    height: 300px;
    bottom: 40px;
    left: -80px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.07) 0%, transparent 65%);
}

.portal-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
    padding-bottom: 72px;
}

.portal-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.portal-hero-lead {
    margin: 0 0 14px;
    max-width: 520px;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 600;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.94);
}

.portal-hero-text {
    margin: 0 0 32px;
    max-width: 500px;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
}

.welcome-badge {
    margin-bottom: 22px;
    padding: 7px 18px;
    letter-spacing: 0.04em;
}

.portal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-btn-light {
    background: #fff;
    color: #3b5b81;
    border-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.hero-btn-light:hover {
    background: #edf2f8;
    color: #2d4563;
    transform: translateY(-2px);
}

.hero-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.portal-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.portal-hero-features li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 600;
}

.hero-feature-icon,
.hero-float-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #fff;
}

.hero-feature-icon svg,
.hero-float-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.hero-float-icon {
    background: linear-gradient(145deg, #f8fafc 0%, #eef3f9 100%);
    color: #3b5b81;
    border-color: rgba(74, 114, 161, 0.14);
}

.portal-hero-aside {
    position: relative;
    height: 340px;
}

.hero-panel {
    position: absolute;
    inset: 24px 8px 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 24px 64px rgba(45, 69, 99, 0.3);
    padding: 18px;
    backdrop-filter: blur(20px);
}

.hero-panel-top {
    display: flex;
    gap: 6px;
}

.hero-panel-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.hero-panel-top span:first-child { background: rgba(255, 120, 120, 0.7); }
.hero-panel-top span:last-child { background: rgba(120, 220, 140, 0.7); }

.hero-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.hero-panel-tag {
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.hero-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 600;
    font-family: Consolas, "Courier New", monospace;
}

.hero-row span:nth-child(2) { text-align: center; }
.hero-row span:last-child { text-align: right; }

.hero-row-head {
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-signed {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(134, 239, 172, 0.35);
    font-size: 11px;
    font-weight: 700;
}

.hero-signed span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}

.hero-float {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #fff;
    color: #3b5b81;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    animation: hero-float 4s ease-in-out infinite;
}

.hero-float-1 { top: 0; right: 0; }
.hero-float-2 { bottom: 18px; left: -28px; animation-delay: 1.5s; }
.hero-float-3 { top: 42%; right: -28px; animation-delay: 0.8s; }

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.portal-hero-wave {
    display: block;
    width: 100%;
    height: 56px;
    margin-bottom: -1px;
}

.portal-shell .portal-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 8px;
}

.portal-shell .contact-grid {
    max-width: 1100px;
    width: calc(100% - 48px);
    margin: 12px auto 40px;
}

.najava-page {
    display: flex;
    justify-content: center;
    padding: 48px 16px 72px;
}

.native-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .portal-hero {
        padding: 36px 20px 0;
    }

    .portal-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 36px;
    }

    .portal-hero-aside {
        height: 300px;
    }

    .hero-float {
        display: none;
    }

    .portal-shell .header-container {
        flex-direction: row !important;
        align-items: center !important;
        height: 76px;
        min-height: 76px;
        padding: 0 20px;
        flex-wrap: nowrap;
    }

    .portal-shell .header-brand {
        flex: 1;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .portal-shell .institution-title {
        font-size: 15px;
        white-space: nowrap;
    }

    .portal-shell .header-brand .logo-img,
    .portal-shell .header-container .logo-img {
        height: 52px !important;
        min-width: 0 !important;
        max-width: 168px;
    }

    .portal-shell .header-actions--desktop {
        display: none !important;
    }

    .portal-shell .mobile-menu-btn {
        display: flex;
    }

    .portal-shell .header-backdrop {
        display: block;
    }

    .portal-shell .header-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    .portal-shell .header-nav-panel {
        display: flex;
    }

    .portal-shell .header-nav-panel.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .app-shell .header-container {
        height: 76px;
        min-height: 76px;
        justify-content: space-between !important;
        padding: 0 12px;
        gap: 10px;
    }

    .app-shell .header-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .app-shell .institution-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-shell .header-brand .logo-img,
    .app-shell .header-container .logo-img {
        height: 52px;
        min-width: 0;
    }

    .app-shell .header-actions--desktop {
        display: none !important;
    }

    .app-shell .mobile-menu-btn,
    .app-shell .app-menu-btn {
        display: flex;
        order: 3;
        margin-left: 0;
    }

    .app-shell .header-center {
        order: 2;
        flex: 1;
    }

    .app-shell .top-nav {
        display: none;
    }

    .app-shell .top-nav.open {
        display: flex;
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px 20px 24px;
        border-radius: 0;
        background: linear-gradient(180deg, #3b5b81 0%, #2d4563 100%);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
        z-index: 210;
    }

    .app-shell .top-nav.open .top-nav-bar {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 6px;
        padding: 0;
        background: transparent;
        border: none;
    }

    .app-shell .top-nav.open .top-nav-link {
        width: 100%;
        justify-content: center;
    }

    .app-shell .top-nav.open .top-nav-drop {
        position: static;
        min-width: 0;
        margin-top: 6px;
        box-shadow: none;
    }

    .app-shell .top-nav.open .top-nav-drop-wide {
        grid-template-columns: 1fr;
    }

    .app-shell .top-nav-user {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 8px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.home-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
}

.home-card .card-header,
#cardDocs,
#cardExt,
#cardExe {
    background: #fff !important;
    color: #2d4563 !important;
    border-bottom: 1px solid #e6edf5;
    padding: 16px 18px;
    font-size: 15px;
}

.home-card .oi {
    margin-right: 8px;
    color: #4a72a1;
}

.home-card .card-body {
    flex: 1;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    min-height: 96px;
}

.home-card .card-body p {
    margin: 0 0 6px;
}

.login-panel {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    color: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(31, 41, 55, 0.04), 0 20px 60px rgba(31, 41, 55, 0.1);
}

.auth-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.login-panel-head {
    padding: 28px 32px;
    background: linear-gradient(135deg, #3b5b81 0%, #4a72a1 100%);
    color: #fff;
}

.login-panel-head h1 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-panel-head p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.login-panel-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4a72a1 0%, #3b5b81 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 91, 129, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-btn-primary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.auth-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 91, 129, 0.35);
    color: #fff;
}

.auth-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-panel textarea,
.cert-preview {
    min-height: 96px;
    margin: 0;
    border: 1px solid #d6e2ee;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
}

.auth-footer-link {
    margin: 8px 0 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.auth-footer-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4a72a1;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer-link a svg {
    width: 16px;
    height: 16px;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .home-cards {
        grid-template-columns: 1fr;
    }
}

.alert {
    border-radius: 12px;
}

@media (max-width: 767.98px) {
    .header-container .btn {
        width: auto;
    }

    .header-container .logo-img {
        height: 46px;
    }

    .sidebar,
    .sidebar-container {
        height: auto;
    }

    .sidebar-body {
        margin: 8px 12px 0;
        padding: 8px 0 12px;
        border-radius: 16px;
        background: linear-gradient(180deg, #2d4563 0%, #3b5b81 70%, #4a72a1 100%);
    }
}

.content h3.text-center {
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem;
    font-size: 1.45rem;
}

.content .container.bg-white {
    margin-top: 1rem !important;
    padding: 28px 28px 24px !important;
}

.content label {
    display: block;
    margin: 0 0 6px !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #3b5b81;
}

.content label.me-2 {
    display: inline-flex;
    align-items: center;
    margin: 0 8px 0 0 !important;
}

.content select.form-control,
.content select.w-auto {
    width: 100% !important;
    display: block;
}

.content textarea.form-control {
    min-height: 84px;
}

.input-group {
    flex-wrap: nowrap;
}

.input-group > .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
}

.form-panel {
    margin-top: 8px;
    padding: 22px;
    border-radius: 16px;
    background: #f7fafc;
    border: 1px solid #e3ebf3;
}

.form-panel h5 {
    color: #2d4563;
    font-weight: 800;
}

.content .table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.content .table > :not(caption) > * > * {
    padding: 11px 14px;
    white-space: nowrap;
    text-align: left !important;
    border: none;
    border-bottom: 1px solid #e6edf5;
    background-clip: padding-box;
}

.content .table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eef3f9 !important;
    color: #2d4563 !important;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.content .table td.cell-text,
.content .table th.cell-text {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.35;
}

.content .table .col-act {
    width: 44px;
    max-width: 44px;
    padding-left: 8px;
    padding-right: 8px;
    white-space: nowrap;
}

.content .table .col-izvor {
    width: 78px;
    max-width: 78px;
    white-space: nowrap;
}

.content .table .col-matbr {
    width: 104px;
    min-width: 104px;
    max-width: 104px;
    padding-left: 8px;
    padding-right: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.content .table .col-naziv {
    width: 22%;
    max-width: none;
    white-space: normal;
    overflow-wrap: break-word;
}

.content .table .col-sektor {
    width: 72px;
    max-width: 72px;
    white-space: nowrap;
}

.content .table .col-nkd {
    width: 78px;
    max-width: 78px;
    white-space: nowrap;
}

.content .table .col-nkdname {
    width: 18%;
    max-width: none;
    white-space: normal;
    overflow-wrap: break-word;
}

.content .table .col-note {
    width: 16%;
    max-width: none;
    white-space: normal;
    overflow-wrap: break-word;
}

.content .table .col-date {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    white-space: nowrap !important;
}

.content .table .col-when {
    width: 148px;
    min-width: 148px;
    max-width: 148px;
    white-space: nowrap !important;
}

.content .table th.col-matbr,
.content .table th.col-izvor,
.content .table th.col-sektor,
.content .table th.col-nkd {
    white-space: normal;
    line-height: 1.2;
}

.content .table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.content .table tbody tr:hover td {
    background: #e8f0f8;
}

.content .table tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive {
    background: #fff;
}

.content h5 {
    color: #2d4563;
    font-weight: 700;
}

.cert-page {
    width: 100%;
    max-width: 820px;
    margin: 8px auto 24px;
    padding: 0 16px 24px;
}

.form-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(31, 41, 55, 0.04), 0 20px 60px rgba(31, 41, 55, 0.1);
    overflow: hidden;
}

.form-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2d4563 0%, #3b5b81 45%, #4a72a1 100%);
}

.form-header__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
        radial-gradient(circle at 8% 82%, rgba(255, 255, 255, 0.18) 0%, transparent 36%);
    pointer-events: none;
}

.form-header__content {
    position: relative;
    z-index: 1;
    padding: 30px 34px;
}

.form-header h2 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.form-header p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.form-body {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-section {
    padding: 22px 22px 18px;
    border-radius: 16px;
    background: #fafbfd;
    border: 1px solid #e8edf4;
}

.form-section__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8edf4;
}

.form-section__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #fff 0%, #edf2f8 100%);
    color: #3b5b81;
    border: 1px solid rgba(74, 114, 161, 0.14);
}

.form-section__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.form-section__title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2d4563;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.cert-page label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #3b5b81;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cert-page .form-control {
    height: 44px;
    border: 1px solid #d6e2ee;
    border-radius: 10px;
    font-size: 14px;
}

.cert-page .form-control[readonly] {
    background: #fff;
    color: #1f2937;
}

.cert-page .cert-preview {
    height: auto;
    margin-top: 14px;
}

.auth-btn-save {
    margin-top: 4px;
}

@media (max-width: 700px) {
    .field-row {
        grid-template-columns: 1fr;
    }

    .form-body,
    .form-header__content,
    .login-panel-body,
    .login-panel-head {
        padding: 22px 18px;
    }
}

.schema-grid,
.dash-user-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.schema-card,
.dash-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(179, 197, 219, 0.55);
    border-radius: 22px;
    box-shadow: 0 2px 4px rgba(31, 41, 55, 0.04), 0 16px 40px rgba(45, 69, 99, 0.08);
}

.schema-card {
    position: relative;
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.schema-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b5b81, #6d8eb5);
}

.schema-card--sif::before {
    background: linear-gradient(90deg, #0369a1, #38bdf8);
}

.schema-card-head,
.dash-card,
.dash-card-title {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.schema-kind {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #e8eef8, #d4dff5);
    border: 1px solid rgba(74, 114, 161, 0.22);
    color: #3b5b81;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.schema-kind-xml {
    background: linear-gradient(145deg, #e0f2fe, #bae6fd);
    border-color: rgba(14, 165, 233, 0.28);
    color: #0369a1;
}

.schema-card h3,
.dash-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #2d4563;
}

.schema-card p,
.dash-meta {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.schema-tree {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 10px 12px;
}

.schema-root {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #94a3b8;
}

.schema-root code {
    font-family: Consolas, "Cascadia Code", monospace;
    font-size: 12px;
    font-weight: 700;
    color: #3b5b81;
    padding: 2px 6px;
    border-radius: 5px;
    background: #edf2f8;
}

.schema-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.schema-mini div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e8edf3;
}

.schema-mini span {
    font-family: Consolas, "Cascadia Code", monospace;
    font-size: 12px;
    font-weight: 700;
    color: #3b5b81;
    line-height: 1.3;
}

.schema-mini small {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.2;
}

.schema-download {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b5b81 0%, #4a72a1 100%);
    box-shadow: 0 6px 18px rgba(45, 69, 99, 0.22);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.schema-download:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(45, 69, 99, 0.28);
}

.schema-download--sif {
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
    box-shadow: 0 6px 18px rgba(3, 105, 161, 0.22);
}

.schema-download svg {
    width: 16px;
    height: 16px;
}

.dash-card {
    padding: 22px 24px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.dash-card-link:hover {
    border-color: #8fa8c7;
    text-decoration: none;
    color: inherit;
}

.dash-card-block {
    display: block;
    align-items: stretch;
}

.dash-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #edf2f8, #d6e2ee);
    color: #3b5b81;
}

.dash-icon-user {
    background: linear-gradient(145deg, #e8eef8, #d4dff5);
    color: #2d4563;
}

.dash-icon-xml {
    background: linear-gradient(145deg, #e0f2fe, #bae6fd);
    color: #0369a1;
}

.dash-icon-lock {
    background: linear-gradient(145deg, #fef3c7, #fde68a);
    color: #b45309;
}

.dash-icon-help {
    background: linear-gradient(145deg, #fef9c3, #fde047);
    color: #a16207;
}

.dash-icon svg {
    width: 22px;
    height: 22px;
}

.dash-name {
    margin: 2px 0 0;
    font-size: 18px;
    font-weight: 800;
    color: #1e3a5f;
}

.dash-card-title {
    align-items: center;
    margin-bottom: 14px;
}

.dash-card-title h3 {
    margin: 0;
}

.session-list {
    margin: 0;
}

.session-list div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf2f8;
    font-size: 14px;
}

.session-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.session-list dt {
    color: #64748b;
    font-weight: 600;
}

.session-list dd {
    margin: 0;
    color: #1e3a5f;
    font-weight: 800;
    text-align: right;
}

.help-tips {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.help-tips li + li {
    margin-top: 10px;
}

.help-tips a {
    color: #3b5b81;
    font-weight: 800;
}

.system-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin: 4px 0 8px;
    padding: 20px 24px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 8% 50%, rgba(74, 222, 128, 0.14), transparent 42%),
        linear-gradient(135deg, #2d4563 0%, #3b5b81 58%, #1e3a5f 100%);
    box-shadow: 0 10px 36px rgba(45, 69, 99, 0.24);
    color: #fff;
}

.system-strip-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 8px;
}

.system-strip-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.16);
}

.strip-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px rgba(0, 0, 0, 0.18);
}

.strip-icon svg {
    width: 22px;
    height: 22px;
}

.strip-online {
    color: #86efac;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.35), rgba(22, 163, 74, 0.2));
}

.strip-secure {
    color: #93c5fd;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.35), rgba(37, 99, 235, 0.2));
}

.strip-format {
    color: #7dd3fc;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.35), rgba(2, 132, 199, 0.2));
}

.strip-icon-status {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4ade80;
    border: 2px solid rgba(15, 23, 42, 0.55);
}

.system-strip-item strong,
.system-strip-item > div span {
    display: block;
}

.system-strip-item strong {
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.system-strip-item > div span {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 800px) {
    .schema-grid,
    .dash-user-grid,
    .system-strip {
        grid-template-columns: 1fr;
    }

    .system-strip-divider {
        display: none;
    }
}

.data-page {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.data-page .table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.filter-row .filter-field {
    width: 148px;
    flex: 0 0 auto;
}

.filter-row .filter-field--date {
    width: 158px;
}

.filter-row .filter-field .form-control,
.filter-row .filter-field select {
    width: 100% !important;
}

.filter-row .btn {
    width: auto;
    white-space: nowrap;
}

.data-page .table th,
.data-page .table td {
    text-align: left !important;
}

.data-page .table td {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.data-page .form-card {
    max-width: none;
}

.data-page label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3b5b81;
}

.data-page .btn-primary,
.data-page .btn-success {
    background: linear-gradient(135deg, #4a72a1 0%, #3b5b81 100%);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    color: #fff;
}

.data-page .btn-outline-primary {
    border-radius: 10px;
    border-color: #b3c5db;
    color: #3b5b81;
    font-weight: 700;
    background: #fff;
}

.data-page .btn-outline-primary:hover {
    background: #edf2f8;
    color: #2d4563;
    border-color: #8fa8c7;
}

.data-page .form-section .form-control:not(.form-control-sm):not(textarea) {
    height: 44px;
    border: 1px solid #d6e2ee;
    border-radius: 12px;
    background: #fff;
    color: #1e3a5f;
    font-size: 14px;
    box-shadow: none;
}

.data-page .form-section textarea.form-control {
    height: auto;
    min-height: 84px;
    border: 1px solid #d6e2ee;
    border-radius: 12px;
    background: #fff;
    color: #1e3a5f;
    box-shadow: none;
}

.data-page .input-group {
    flex-wrap: nowrap;
    align-items: stretch;
}

.data-page .input-group > .form-control {
    min-width: 0;
    width: 1%;
    border-radius: 12px 0 0 12px;
}

.data-page .input-group > .btn {
    flex: 0 0 auto;
    height: 44px;
    white-space: nowrap;
    border-radius: 0 12px 12px 0;
    box-shadow: none;
}

.data-page .form-section .form-control:not(.form-control-sm):focus {
    border-color: #6d8eb5;
    box-shadow: 0 0 0 3px rgba(74, 114, 161, 0.16);
}

.data-page .form-section label {
    display: block;
    margin-bottom: 6px;
}

.data-page .form-section > .row.align-items-center label {
    display: inline;
    margin-bottom: 0;
}

.data-page .input-group > .input-group-text {
    display: flex;
    align-items: center;
    height: 44px;
    border: 1px solid #d6e2ee;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: #edf2f8;
    color: #3b5b81;
}

.data-page .input-group > .form-control:last-child {
    border-radius: 0 12px 12px 0;
}

.data-page .input-group-sm > .input-group-text,
.data-page .input-group-sm > .form-control {
    height: 36px;
    border-radius: 10px 0 0 10px;
}

.data-page .input-group-sm > .form-control {
    border-radius: 0 10px 10px 0;
}

.data-page .form-section .btn-primary,
.data-page .form-section .btn-success {
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(45, 69, 99, 0.18);
}

.field-with-action {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.field-with-action .form-control,
.field-with-action select.form-control {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
}

.field-action,
.save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 18px;
}

.field-action svg,
.save-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.save-btn {
    width: 100%;
    min-width: 160px;
}

.justify-content-end > .save-btn {
    width: auto;
}

.data-page .form-section .input-group > .btn {
    border-radius: 0 12px 12px 0;
    box-shadow: none;
}

.data-page .form-section > .row.align-items-center {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e6edf4;
}

.data-page .input-group-sm > .form-control,
.data-page .input-group-sm > .input-group-text {
    height: 36px;
    border-color: #d6e2ee;
}

.data-page .input-group-text {
    background: #edf2f8;
    color: #3b5b81;
    border-color: #d6e2ee;
}

.data-page .form-section .btn-outline-primary {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    border-radius: 12px;
    background: #fff;
}

.excel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px 0 6px;
    border-radius: 12px;
    border: 1px solid #b7d7c4;
    background: #fff;
    color: #166534;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.excel-btn:hover:not(:disabled) {
    background: #f0fdf4;
    border-color: #86efac;
    color: #14532d;
}

.excel-btn:disabled {
    opacity: 0.55;
}

.excel-btn__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #22c55e, #15803d);
    color: #fff;
    flex-shrink: 0;
}

.excel-btn__icon svg {
    width: 16px;
    height: 16px;
}

.cert-page .form-control {
    border-radius: 12px;
}

.cert-page .form-control:focus {
    border-color: #6d8eb5;
    box-shadow: 0 0 0 3px rgba(74, 114, 161, 0.16);
}

.data-page .table-responsive {
    border-radius: 14px;
    background: #fff;
}
