:root {
    --cmis-500: #0568fa;
    --cmis-600: #055be0;
    --cmis-700: #044bc0;
    --cmis-050: #eaf2ff;
}

html,
body {
    height: 100%;
}

body {
    background: #f8f9fa;
}

body.cmis-shell {
    height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cmis-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    flex: 0 0 auto;
}

.cmis-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.cmis-footer {
    margin-top: auto;
    flex: 0 0 auto;
}

.nav-cmis {
    --cmis-text: #ffffff;
    background: linear-gradient(180deg, var(--cmis-500) 0%, var(--cmis-600) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 14px rgba(5, 104, 250, 0.25);
}

.nav-cmis,
.nav-cmis .dropdown-menu,
.nav-cmis .nav-link {
    color: var(--cmis-text);
    opacity: 0.95;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
}

.nav-cmis .nav-link:hover,
.nav-cmis .nav-link:focus {
    color: #fff;
    opacity: 1;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

.nav-cmis .nav-link {
    border-bottom: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-cmis .nav-link.active,
.nav-cmis .nav-link[aria-current="page"] {
    color: #fff;
    border-bottom-color: #fff;
}

.nav-cmis .cmis-user-meta {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: none;
    white-space: nowrap;
}

.nav-cmis .cmis-logout-icon {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
}

.nav-cmis .cmis-logout-icon:hover,
.nav-cmis .cmis-logout-icon:focus {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

.nav-cmis .dropdown-menu {
    background: var(--cmis-700);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem;
    z-index: 2000;
}

.nav-cmis .dropdown-item {
    color: #fff;
    border-radius: 0.35rem;
}

.nav-cmis .dropdown-item:hover,
.nav-cmis .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cmis-agency-logo {
    max-height: 34px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px;
}

.footer-cmis {
    background: linear-gradient(180deg, var(--cmis-700) 0%, var(--cmis-600) 100%);
    color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 12px rgba(5, 104, 250, 0.15);
}

.footer-cmis a {
    color: #fff;
    text-decoration: underline;
    opacity: 0.95;
}

.footer-cmis a:hover,
.footer-cmis a:focus {
    opacity: 1;
}

.footer-cmis-copy {
    color: rgba(255, 255, 255, 0.93);
}

.footer-cmis-copy a {
    color: rgba(255, 255, 255, 0.98);
}

.footer-cmis-copy a:hover,
.footer-cmis-copy a:focus {
    color: #ffffff;
}

.widget-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    background: #fff;
}

.cmis-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.cmis-page-title {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #212529;
    margin: 0;
}

.cmis-page-subtitle {
    font-size: .72rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

.cmis-kpi-card {
    border: 1px solid #dee2e6;
    border-radius: .45rem;
    background: #fff;
    padding: .7rem .9rem;
}

.cmis-activity-feed {
    max-height: 560px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.cmis-activity-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
}

.cmis-activity-dot {
    position: absolute;
    left: 0.2rem;
    top: 0.9rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #20c997);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.cmis-activity-card {
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.04), rgba(13, 110, 253, 0.01));
}

.cmis-section-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #495057;
}

.cmis-table thead th {
    background: var(--cmis-500);
    color: #fff;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    border-color: var(--cmis-600);
}

.cmis-table {
    table-layout: fixed;
    width: 100%;
}

.cmis-monthly-costs-scroll {
    overflow-x: auto;
    width: 100%;
}

.cmis-project-monthly-costs-block {
    margin-top: 0.25rem;
    position: relative;
    z-index: 0;
    clear: both;
}

.cmis-monthly-costs-matrix {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.cmis-monthly-costs-matrix .cmis-monthly-col,
.cmis-monthly-costs-matrix .cmis-monthly-col-cell {
    min-width: 7.5rem;
}

.cmis-monthly-costs-matrix .cmis-monthly-cost-input {
    min-width: 7rem;
}

.cmis-no-spinner::-webkit-outer-spin-button,
.cmis-no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cmis-no-spinner[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.cmis-project-description {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cmis-filter-bar {
    padding: .65rem .75rem;
    border: 1px solid #dee2e6;
    border-radius: .45rem;
    background: #fff;
    margin-bottom: .75rem;
}

.cmis-form label {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6c757d;
}

.cmis-form input[type="text"],
.cmis-form input[type="number"],
.cmis-form input[type="date"],
.cmis-form select,
.cmis-form textarea,
.cmis-form .dropzone-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.cmis-form textarea {
    resize: vertical;
}

.cmis-icon-btn {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
}

.cmis-status-chip {
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}

.metric-label {
    color: #6c757d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.metric-value {
    color: #0f172a;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.35rem;
    margin-bottom: 0.2rem;
}

.skeleton-loader {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.skeleton {
    background: linear-gradient(90deg, #eeeeee 25%, #dddddd 50%, #eeeeee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
    height: 16px;
}

.skeleton-title {
    width: 60%;
    height: 20px;
}

.select2-container--bootstrap-5 .select2-dropdown,
.select2-dropdown {
    z-index: 2000;
}

.select2-results__options {
    max-height: 400px !important;
}

.select2-results__option {
    padding: 10px 12px !important;
    font-size: 1rem;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    min-height: 45px;
}

.cmis-dropzone {
    border: 2px dashed #adb5bd;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.cmis-dropzone:hover,
.cmis-dropzone.is-dragover {
    border-color: var(--cmis-500);
    background: #eef4ff;
}

.cmis-dropzone-label {
    font-weight: 600;
    color: #0f172a;
}

.cmis-dropzone-hint {
    font-size: .85rem;
    color: #6c757d;
    margin-top: .25rem;
}

.cmis-dropzone .dropzone-input {
    display: none;
}

.cmis-project-image-preview {
    max-height: 220px;
    width: auto;
    object-fit: contain;
}

.landing-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.landing-hero,
.landing-section,
.landing-cta {
    border-radius: 1rem;
    border-color: #dce6f7;
    box-shadow: 0 14px 30px rgba(4, 75, 192, 0.06);
}

.landing-hero {
    background: linear-gradient(135deg, #f7faff 0%, #edf3ff 52%, #f8fbff 100%);
}

.landing-cta {
    background: linear-gradient(180deg, #f5f9ff 0%, #ebf2ff 100%);
}

.landing-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4e73b8;
}

.landing-title {
    margin: 0;
    font-size: clamp(1.9rem, 2.4vw, 2.7rem);
    line-height: 1.18;
    font-weight: 700;
    color: #0f2342;
    letter-spacing: -0.01em;
}

.landing-title em {
    color: #055be0;
    font-style: normal;
}

.landing-h2 {
    margin: 0;
    font-size: clamp(1.25rem, 1.6vw, 1.6rem);
    line-height: 1.3;
    font-weight: 650;
    color: #162a4a;
}

.landing-subtitle,
.landing-body,
.landing-card-body,
.landing-list li,
.landing-trust {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.65;
}

.landing-list {
    padding-left: 1.25rem;
}

.landing-list li + li {
    margin-top: 0.5rem;
}

.landing-benefit-card {
    border: 1px solid #d7e3f7;
    border-radius: 0.8rem;
    background: #fafdff;
    box-shadow: 0 6px 16px rgba(5, 104, 250, 0.05);
}

.landing-card-title {
    font-size: 1.02rem;
    line-height: 1.4;
    font-weight: 650;
    color: #102748;
    margin-bottom: 0.55rem;
}

.landing-btn {
    min-width: 180px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

@media (max-width: 767.98px) {
    .landing-subtitle,
    .landing-body,
    .landing-card-body,
    .landing-list li,
    .landing-trust {
        font-size: 0.95rem;
    }

    .landing-hero,
    .landing-section,
    .landing-cta {
        border-radius: 0.85rem;
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
