:root {
    --accent: #1f58c7;
    --text: #495057;
    --text-muted: #6c757d;
    --border: #e9edf4;
    --sidebar-solid: #1e3a5f;
    --sidebar-text-soft: rgba(255, 255, 255, 0.72);
    --sidebar-text-strong: #ffffff;
    --sidebar-open: rgba(255, 255, 255, 0.08);
    --sidebar-active: #4f8df3;
    --sidebar-active-2: #2f6fe2;
    --sidebar-active-text: #ffffff;
}

body {
    color: var(--text);
}

.page-content {
    background-color: #f4f7fb;
}

.page-title-box {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
    min-height: auto;
    padding: 0.1rem 0 0.35rem;
}

.page-title-main {
    color: #1f2937;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.page-title-right .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
}

.page-title-right .breadcrumb a {
    color: #475569;
    text-decoration: none;
}

.page-title-right .breadcrumb a:hover {
    color: var(--accent);
}

.page-title-right .breadcrumb span {
    color: #0f172a;
}

.card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card-header {
    align-items: center;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
    border-bottom: 1px solid var(--border);
    color: #1f2937;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.card-panel {
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    background: #f8f9fb;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.9rem 1rem;
    text-transform: uppercase;
}

.data-table tbody td {
    border-bottom: 1px solid var(--border);
    padding: 0.95rem 1rem;
    vertical-align: middle;
}

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

.data-table tbody tr:hover td {
    background: rgba(31, 88, 199, 0.035);
}

.table-empty {
    color: var(--text-muted);
    padding: 2rem !important;
    text-align: center;
}

.btn-outline {
    background: #fff;
    border: 1px solid rgba(31, 88, 199, 0.24);
    color: var(--accent);
}

.btn-outline:hover {
    background: rgba(31, 88, 199, 0.08);
    border-color: rgba(31, 88, 199, 0.35);
    color: var(--accent);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.inline-form {
    display: inline;
    margin: 0;
}

.card-header-action {
    margin-left: auto;
}

.card-header .btn,
.card-header-bar .btn {
    border-radius: 0.65rem;
    box-shadow: none;
    font-weight: 700;
    padding: 0.48rem 0.9rem;
}

.card-header .btn-sm,
.card-header-bar .btn-sm {
    font-size: 0.82rem;
    line-height: 1.2;
}

.card-header .btn-primary,
.card-header-bar .btn-primary {
    background: linear-gradient(135deg, #1f58c7 0%, #1849a8 100%);
    border: 1px solid transparent;
    color: #fff;
}

.card-header .btn-primary:hover,
.card-header-bar .btn-primary:hover {
    color: #fff;
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.card-header .btn-outline,
.card-header-bar .btn-outline {
    background: #fff;
    border-color: rgba(31, 88, 199, 0.18);
    color: var(--accent);
}

.empty-cell {
    color: var(--text-muted);
    padding: 1.5rem !important;
    text-align: center;
}

.empty-cell-lg {
    padding: 2rem !important;
}

.home-title {
    color: #1f2937;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.section-title-spaced {
    margin-top: 1.5rem;
}

.intro-text {
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 70ch;
}

.home-title-lg {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
}

.home-section-card {
    margin-bottom: 1.25rem;
}

.home-info-grid,
.home-capability-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.home-capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-info-card,
.home-capability-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    padding: 1rem 1.05rem;
}

.home-info-card h3,
.home-capability-card h3 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.7rem;
}

.home-capability-card p {
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.home-feature-list {
    color: var(--text-muted);
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.1rem;
}

.home-feature-list li {
    line-height: 1.55;
}

.detail-dl {
    display: grid;
    gap: 0.4rem 1.5rem;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    margin: 0;
}

.detail-dl dt {
    color: var(--text-muted);
    font-weight: 600;
}

.detail-dl dd {
    margin: 0;
}

.detail-tabs,
.contract-detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.detail-tabs a,
.contract-detail-tabs a {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    padding: 0.65rem 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.detail-tabs a:hover,
.contract-detail-tabs a:hover,
.detail-tabs a.active,
.contract-detail-tabs a.active {
    background: rgba(31, 88, 199, 0.08);
    border-color: rgba(31, 88, 199, 0.2);
    color: var(--accent);
}

.chip {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
}

.chip-muted,
.detail-placeholder,
.plan-card-muted {
    color: var(--text-muted);
}

.plan-list {
    display: grid;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.plan-list-item {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.plan-list-cards {
    gap: 0.85rem;
}

.plan-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    padding: 1rem 1.05rem;
}

.plan-card-title {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.9rem;
}

.plan-entry-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    padding: 0.95rem 1rem;
}

.plan-entry-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.plan-entry-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.plan-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.plan-entry-meta {
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    line-height: 1.6;
}

.plan-badge {
    background: rgba(31, 88, 199, 0.08);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
}

.alert-danger,
.alert-warning,
.alert-success,
.alert-info {
    border-width: 1px;
}

.page-subtitle,
.contract-detail-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.detail-section,
.contract-detail-section,
.lgp-section {
    margin-bottom: 1.5rem;
}

.ground-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.detail-placeholder {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.925rem;
}

.detail-block-title {
    margin: 1.25rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.detail-block-title:first-of-type {
    margin-top: 0;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.chip-grid {
    display: grid;
    gap: 1rem;
}

.chip-title {
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-header-bar {
    align-items: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #27476f 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.card-header-bar .btn {
    margin-left: auto;
}

.card-header-bar,
.card-header {
    min-height: 64px;
}

.card-toolbar {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
}

.toolbar-search {
    align-items: center;
    display: flex;
    min-width: min(100%, 320px);
    position: relative;
}

.search-icon {
    color: #94a3b8;
    font-size: 0.95rem;
    left: 0.9rem;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.search-input {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    font-size: 0.9rem;
    min-width: 220px;
    padding: 0.58rem 0.85rem 0.58rem 2.35rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.search-input:focus,
.per-page-select:focus {
    border-color: rgba(31, 88, 199, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(31, 88, 199, 0.12);
    outline: none;
}

.toolbar-show {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.per-page-select {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    font-size: 0.9rem;
    padding: 0.4rem 0.7rem;
}

.sort-icons {
    color: #94a3b8;
    font-size: 0.72rem;
    margin-left: 0.25rem;
}

.card-pagination {
    align-items: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    font-size: 0.875rem;
}

.pagination-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
}

.pagination-pages {
    align-items: center;
    display: flex;
    gap: 0.35rem;
}

.page-num {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    color: #64748b;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-width: 2.1rem;
    min-height: 2.1rem;
    padding: 0.25rem 0.7rem;
    text-decoration: none;
}

.page-num.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.page-num.dots {
    background: transparent;
    border-color: transparent;
    color: #94a3b8;
    min-width: auto;
    padding: 0 0.15rem;
}

.table-empty-red {
    color: #dc2626;
}

.btn-pregled {
    align-items: center;
    background: linear-gradient(135deg, var(--accent) 0%, #1748a6 100%);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(31, 88, 199, 0.22);
    color: #fff;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    text-decoration: none;
    width: 2rem;
}

.btn-pregled:hover {
    color: #fff;
    filter: brightness(1.05);
}

.report-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 1rem;
}

.report-tile {
    background:
        linear-gradient(180deg, rgba(31, 88, 199, 0.035), rgba(31, 88, 199, 0)),
        #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    color: var(--text);
    display: block;
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.report-tile h3 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.45rem;
}

.report-tile p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.report-tile:hover {
    border-color: rgba(31, 88, 199, 0.22);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
    color: var(--text);
    transform: translateY(-2px);
}

.page-hero {
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.page-hero .card-body {
    background:
        radial-gradient(circle at top right, rgba(31, 88, 199, 0.065), transparent 24%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 1));
    padding: 1.35rem;
}

.page-hero-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.page-hero-eyebrow {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.page-hero-text {
    color: var(--text-muted);
    margin: 0;
    max-width: 72ch;
    line-height: 1.65;
}

.page-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-hero-actions .btn {
    white-space: nowrap;
}

.filter-toolbar {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-toolbar-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-field {
    min-width: 0;
}

.filter-field label {
    color: #475569;
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.filter-toolbar-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.report-hero-head {
    gap: 1.25rem;
}

.report-hero-actions {
    justify-content: flex-end;
    min-width: 260px;
}

.report-filter-toolbar-grid .filter-field:first-child {
    grid-column: span 2;
}

.toolbar-search-form,
.toolbar-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.toolbar-filters {
    justify-content: flex-end;
}

.search-input-sm {
    min-width: 190px;
    width: auto;
}

.report-grid-compact {
    margin-bottom: 1.25rem;
}

.report-tile-static {
    cursor: default;
}

.report-tile-static:hover {
    transform: none;
}

.report-metric {
    color: #1f2937 !important;
    font-size: 1.5rem !important;
    font-weight: 800;
    line-height: 1.2;
}

.report-metric-sm {
    font-size: 1rem !important;
    font-weight: 700;
    word-break: break-word;
}

.lgp-pregled-title {
    margin: 0 0 0.25rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
}

.lgp-pregled-subtitle {
    margin: 0 0 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.lgp-eyebrow {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.lgp-shell {
    display: grid;
    gap: 1.25rem;
}

.lgp-hero {
    overflow: hidden;
}

.lgp-hero .card-body {
    background:
        radial-gradient(circle at top right, rgba(31, 88, 199, 0.07), transparent 24%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 1));
    padding: 1.35rem;
}

.lgp-hero-main {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.lgp-hero-copy {
    max-width: 720px;
}

.lgp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.lgp-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.lgp-summary-pill,
.lgp-note,
.lgo-overview-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.lgp-summary-pill {
    flex: 1 1 220px;
    min-width: 220px;
    padding: 0.95rem 1rem;
}

.lgp-summary-pill strong,
.lgp-note p {
    color: #1f2937;
    display: block;
    margin: 0;
}

.lgp-summary-label {
    color: var(--text-muted);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.lgp-note {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
}

.lgo-overview-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.lgo-overview-card {
    grid-column: span 4;
    padding: 1rem 1.05rem;
}

.lgo-overview-card-wide {
    grid-column: span 8;
}

.lgo-overview-top {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.lgo-card-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 0.85rem;
}

.lgo-card-link {
    color: var(--accent);
    display: inline-flex;
    font-weight: 700;
    text-decoration: none;
}

.lgo-card-link:hover {
    text-decoration: underline;
}

.status-chip {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
}

.status-chip-success {
    background: rgba(21, 128, 61, 0.1);
    color: #166534;
}

.status-chip-muted {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.form-shell .card-body {
    padding-top: 1.1rem;
}

.form-grid {
    display: grid;
    gap: 0.9rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0.5rem;
}

.section-actions {
    margin-bottom: 0.85rem;
}

.contract-overview-grid .lgo-overview-card {
    grid-column: span 4;
}

.contract-overview-grid .lgo-overview-card-wide {
    grid-column: span 12;
}

@media (max-width: 1399.98px) {
    .contract-overview-grid .lgo-overview-card {
        grid-column: span 6;
    }

    .contract-overview-grid .lgo-overview-card-wide {
        grid-column: span 12;
    }

    .contract-overview-grid .detail-dl {
        gap: 0.35rem 1rem;
        grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
    }
}

@media (max-width: 1199.98px) {
    .contract-overview-grid .lgo-overview-card,
    .contract-overview-grid .lgo-overview-card-wide {
        grid-column: span 12;
    }

    .contract-overview-grid .detail-dl {
        grid-template-columns: 1fr;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .plan-entry-meta {
        flex-direction: column;
        gap: 0.35rem;
    }
}

@media (max-width: 991.98px) {
    .plan-entry-head {
        flex-direction: column;
    }

    .plan-entry-actions {
        width: 100%;
    }

    .plan-entry-actions .btn,
    .plan-entry-actions .inline-form {
        width: 100%;
    }

    .plan-entry-actions .inline-form .btn {
        width: 100%;
    }
}

.lgo-list {
    padding-left: 0;
}

.lgo-group {
    margin-bottom: 1.25rem;
}

.lgo-group:last-child {
    margin-bottom: 0;
}

.lgo-group-title {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
}

.lgo-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.lgo-items {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
}

.lgo-items li {
    margin: 0.25rem 0;
}

.lgo-link {
    color: var(--accent);
    text-decoration: none;
}

.lgo-link:hover {
    text-decoration: underline;
}

.lgo-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.lgo-items-with-arrow {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    overflow: hidden;
    padding-left: 0;
}

.lgo-items-with-arrow li {
    border-bottom: 1px solid var(--border);
    margin: 0;
}

.lgo-items-with-arrow li:last-child {
    border-bottom: none;
}

.lgo-items-with-arrow .lgo-link {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
}

.lgo-items-with-arrow .lgo-link::before {
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    content: "";
    display: inline-block;
    flex-shrink: 0;
    height: 0.5rem;
    transform: rotate(-45deg);
    width: 0.5rem;
}

.card-body-table .table-responsive {
    margin-bottom: 1rem;
    overflow-x: auto;
}

.lgo1-table {
    font-size: 0.85rem;
    min-width: 640px;
}

.lgo1-table th,
.lgo1-table td,
.lgo2-table th,
.lgo2-table td,
.lgo11-table th,
.lgo11-table td {
    border: 1px solid var(--border);
    padding: 0.5rem 0.7rem;
    vertical-align: top;
}

.lgo1-subhead th {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.lgo1-group-label {
    background: #eef4ff !important;
    color: #1f2937;
    font-weight: 700;
}

.lgo2-dl {
    display: grid;
    gap: 0.35rem 1.5rem;
    grid-template-columns: 280px 1fr;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.lgo2-dl dt {
    color: var(--text-muted);
    font-weight: 600;
}

.lgo2-dl dd {
    margin: 0;
}

.lgo2-block {
    margin-bottom: 1rem;
}

.lgo2-label {
    color: #1f2937;
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.lgo2-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.lgo2-table-title {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.lgo2-table {
    font-size: 0.9rem;
    max-width: 320px;
}

.lgo11-table {
    width: 100%;
}

.lgo-overview-card .lgo-items-with-arrow {
    margin-top: 0.85rem;
}

.data-table-sortable thead th {
    white-space: nowrap;
}

.logo-lg img,
.logo-sm img,
.topbar-project-logo,
.authentication-brand img {
    width: auto;
}

.sidebar-user-menu .dropdown-item i {
    min-width: 1.25rem;
}

#page-topbar .navbar-brand-box .logo img {
    width: auto;
}

#page-topbar .page-title {
    color: #1f2937;
    font-size: 1rem !important;
    font-weight: 700;
}

#page-topbar .header-profile-avatar {
    background: rgba(31, 88, 199, 0.12);
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
}

#page-topbar .user {
    gap: 0.35rem;
}

#page-topbar .search-box .search-icon {
    color: var(--text-muted);
}

.navbar-header .vertical-menu-btn {
    align-items: center;
    color: #1f2937;
    display: inline-flex !important;
    justify-content: center;
    margin-right: 0.35rem;
}

.navbar-header .vertical-menu-btn i {
    color: inherit;
    font-size: 1.35rem;
}

#page-topbar .page-title-box {
    align-items: center;
    display: flex !important;
    margin: 0 0 0 0.35rem;
    min-height: 2.65rem;
    padding: 0;
}

#page-topbar .page-title {
    color: #0f172a;
    font-size: 1.05rem !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    margin: 0;
}

@media (max-width: 767.98px) {
    #page-topbar .page-title-box {
        margin-left: 0.25rem;
    }
}

.vertical-menu,
.navbar-brand-box,
body[data-sidebar="dark"] .vertical-menu,
body[data-sidebar="dark"] .navbar-brand-box {
    background: var(--sidebar-solid) !important;
}

.vertical-menu {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 18px rgba(15, 23, 42, 0.18);
}

.vertical-menu .simplebar-content-wrapper,
.sidebar-menu-scroll {
    background: var(--sidebar-solid);
}

.navbar-brand-box {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-title,
body[data-sidebar="dark"] .menu-title {
    color: rgba(255, 255, 255, 0.5) !important;
}

#sidebar-menu ul li a,
body[data-sidebar="dark"] #sidebar-menu ul li a {
    color: var(--sidebar-text-soft) !important;
    margin: 0 12px;
}

#sidebar-menu ul li a .nav-icon,
body[data-sidebar="dark"] #sidebar-menu ul li a .nav-icon {
    color: var(--sidebar-text-soft) !important;
    fill: var(--sidebar-text-soft) !important;
}

#sidebar-menu ul li > a:hover,
#sidebar-menu ul li > a:focus,
body[data-sidebar="dark"] #sidebar-menu ul li > a:hover,
body[data-sidebar="dark"] #sidebar-menu ul li > a:focus {
    background: var(--sidebar-open) !important;
    color: var(--sidebar-text-strong) !important;
    margin-left: 12px;
}

#sidebar-menu ul li > a:hover .nav-icon,
#sidebar-menu ul li > a:focus .nav-icon,
body[data-sidebar="dark"] #sidebar-menu ul li > a:hover .nav-icon,
body[data-sidebar="dark"] #sidebar-menu ul li > a:focus .nav-icon {
    color: var(--sidebar-text-strong) !important;
    fill: var(--sidebar-text-strong) !important;
}

#sidebar-menu > ul > li.mm-active > a,
body[data-sidebar="dark"] #sidebar-menu > ul > li.mm-active > a {
    background: var(--sidebar-open) !important;
    color: var(--sidebar-text-strong) !important;
}

#sidebar-menu > ul > li.mm-active > a .nav-icon,
body[data-sidebar="dark"] #sidebar-menu > ul > li.mm-active > a .nav-icon,
#sidebar-menu > ul > li.mm-active > a.has-arrow::after,
body[data-sidebar="dark"] #sidebar-menu > ul > li.mm-active > a.has-arrow::after {
    color: var(--sidebar-text-strong) !important;
    fill: var(--sidebar-text-strong) !important;
}

#sidebar-menu ul li ul.sub-menu,
body[data-sidebar="dark"] #sidebar-menu ul li ul.sub-menu {
    margin-top: 0.3rem;
    padding-bottom: 0.35rem;
}

#sidebar-menu ul li ul.sub-menu::before,
body[data-sidebar="dark"] #sidebar-menu ul li ul.sub-menu::before {
    background: rgba(255, 255, 255, 0.14) !important;
}

#sidebar-menu ul li ul.sub-menu li a,
body[data-sidebar="dark"] #sidebar-menu ul li ul.sub-menu li a {
    background: transparent !important;
    border-radius: 0.85rem;
    border: 1px solid transparent;
    color: var(--sidebar-text-soft) !important;
    font-size: 13px;
    font-weight: 600;
    margin: 4px 12px 4px 24px;
    padding: 0.72rem 1rem 0.72rem 1.15rem;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

#sidebar-menu ul li ul.sub-menu li a::before,
body[data-sidebar="dark"] #sidebar-menu ul li ul.sub-menu li a::before {
    border-color: transparent transparent rgba(255, 255, 255, 0.3) transparent !important;
}

#sidebar-menu ul li ul.sub-menu li a:hover,
body[data-sidebar="dark"] #sidebar-menu ul li ul.sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--sidebar-text-strong) !important;
}

#sidebar-menu ul li ul.sub-menu li a:hover::before,
body[data-sidebar="dark"] #sidebar-menu ul li ul.sub-menu li a:hover::before {
    border-color: transparent transparent rgba(255, 255, 255, 0.7) transparent !important;
}

#sidebar-menu ul li ul.sub-menu li a.active,
body[data-sidebar="dark"] #sidebar-menu ul li ul.sub-menu li a.active {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none;
    color: var(--sidebar-text-strong) !important;
    font-weight: 700;
    letter-spacing: 0;
}

#sidebar-menu ul li ul.sub-menu li a.active::before,
body[data-sidebar="dark"] #sidebar-menu ul li ul.sub-menu li a.active::before {
    border-color: transparent transparent rgba(255, 255, 255, 0.92) transparent !important;
}

#sidebar-menu > ul > li.mm-active ul.sub-menu li.mm-active > a,
body[data-sidebar="dark"] #sidebar-menu > ul > li.mm-active ul.sub-menu li.mm-active > a {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--sidebar-text-strong) !important;
}

.auth-card {
    border-radius: 1rem;
    overflow: hidden;
}

.auth-side-panel {
    align-items: flex-start;
    background: linear-gradient(155deg, #1f58c7 0%, #173b8f 100%);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    padding: 2rem;
}

.authentication-brand img {
    max-height: 48px;
}

.authentication-brand a {
    background: linear-gradient(155deg, #1e3a5f 0%, #27476f 100%);
    border-radius: 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    padding: 0.9rem 1.15rem;
}

.authentication-brand .brand-title {
    color: #ffffff;
}

.authentication-brand img {
    display: block;
}

.avatar-title {
    align-items: center;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.gpg-top-summary {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.compact-dl {
    gap: 0.55rem 1rem;
}

.gpg-status-list,
.gpg-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.gpg-quick-links .btn {
    min-width: 0;
}

.gpg-metric-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.gpg-metric-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.1rem;
}

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

.gpg-metric-value {
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1.1;
}

.gpg-metric-note {
    color: #475569;
    font-size: 0.92rem;
}

.section-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.gpg-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gpg-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 1rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    padding: 1rem 1.05rem;
}

.gpg-summary-card .detail-block-title {
    margin: 0;
}

.gpg-summary-card .lgo-card-text {
    min-height: 3.2rem;
}

.form-help-text {
    color: #475569;
    font-size: 0.92rem;
    margin: 0.15rem 0 1rem;
}

@media (max-width: 991.98px) {
    .detail-dl {
        grid-template-columns: 1fr;
    }

    .lgo2-dl {
        grid-template-columns: 1fr;
    }

    .lgp-summary-pill {
        min-width: 100%;
    }

    .lgo-overview-card,
    .lgo-overview-card-wide {
        grid-column: span 1;
    }

    .lgo-overview-grid {
        grid-template-columns: 1fr;
    }

    .page-title-box {
        gap: 0.5rem;
        padding: 0.1rem 0 0.35rem;
    }

    .page-hero .card-body {
        padding: 1.1rem;
    }

    .toolbar-search-form,
    .toolbar-filters {
        width: 100%;
    }

    .toolbar-filters {
        justify-content: flex-start;
    }

    .search-input-sm {
        min-width: 100%;
        width: 100%;
    }

    .card-toolbar {
        align-items: stretch;
    }

    .toolbar-search,
    .toolbar-show {
        width: 100%;
    }

    .page-title-right {
        width: 100%;
    }

    .page-title-right .breadcrumb {
        width: 100%;
    }

    .gpg-top-summary {
        grid-template-columns: 1fr;
    }

    .gpg-metric-grid {
        grid-template-columns: 1fr;
    }

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

    .home-info-grid,
    .home-capability-grid {
        grid-template-columns: 1fr;
    }

    .filter-toolbar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

.report-filter-toolbar-grid .filter-field:first-child {
    grid-column: span 2;
}

.report-page .card {
    overflow: hidden;
}

.report-page .card + .card,
.report-page .card + section.card,
.report-page section.card + section.card,
.report-page .report-grid + section.card {
    margin-top: 1rem;
}

.report-page .filter-toolbar {
    gap: 0.8rem;
    margin-bottom: 1.15rem;
}

.report-page .filter-toolbar-grid {
    gap: 0.8rem;
}

.report-page .filter-toolbar-actions {
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
}

.report-page .table-wrapper {
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    overflow: auto;
}

.report-page .data-table {
    min-width: 640px;
}

.report-page .data-table thead th {
    background: #f8fafc;
    font-size: 0.72rem;
    padding: 0.8rem 0.95rem;
}

.report-page .data-table tbody td {
    padding: 0.8rem 0.95rem;
}

.report-page .ground-title {
    margin: 1.1rem 0 0.75rem;
}

.report-page .card-pagination {
    background: #fbfdff;
    border-top: 0;
    gap: 0.9rem;
    margin-top: 0.8rem;
    padding: 0.85rem 0;
}

.report-page .pagination-info {
    font-size: 0.84rem;
}

.report-page .toolbar-show {
    gap: 0.45rem;
}

.report-page .per-page-select {
    min-width: 72px;
    padding-right: 2rem;
}

.report-page .lgp-summary-strip {
    margin-top: 0.35rem;
}

    .report-hero-actions {
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
    }

    .report-page .card-pagination,
    .pagination-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-page .pagination-pages {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .filter-toolbar-grid {
        grid-template-columns: 1fr;
    }

    .report-filter-toolbar-grid .filter-field:first-child {
        grid-column: span 1;
    }

    .filter-toolbar-actions,
    .page-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-toolbar-actions .btn,
    .page-hero-actions .btn {
        width: 100%;
    }
}
