.gdi-contracts {
    --gdi-bg: #f4f7ff;
    --gdi-border: #d7e0ee;
    --gdi-text: #10243f;
    --gdi-muted: #5e7189;
    --gdi-primary: #1f5fbf;
    --gdi-primary-soft: #e9f0ff;
    --gdi-shadow: 0 12px 35px rgba(15, 33, 61, 0.12);
    color: var(--gdi-text);
}

.gdi-contracts__hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #183763;
    background: radial-gradient(circle at 10% 20%, #2f71d8 0%, #1c4f9f 35%, #0f2b57 100%);
    color: #fff;
    padding: 1.45rem 1.5rem;
    box-shadow: var(--gdi-shadow);
}
.gdi-contracts__hero::after {
    content: "";
    position: absolute;
    right: -12%;
    top: -60%;
    width: 52%;
    height: 260%;
    transform: rotate(16deg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
    pointer-events: none;
}
.gdi-contracts__hero-row { position: relative; z-index: 1; }
.gdi-contracts__hero-copy p { color: rgba(241, 245, 255, 0.92); max-width: 760px; }
.gdi-contracts__hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gdi-hero-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.24rem 0.68rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}
.gdi-hero-pill--city { background: rgba(23, 196, 150, 0.22); border-color: rgba(127, 255, 219, 0.45); }

.gdi-contracts__view-switch .btn {
    border-radius: 10px;
    border-width: 1px;
    min-width: 88px;
}
.gdi-contracts__view-switch .btn.btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}
.gdi-contracts__view-switch .btn.btn-outline-primary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.gdi-contracts__search-panel {
    border: 1px solid var(--gdi-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
    box-shadow: 0 10px 30px rgba(15, 33, 61, 0.08);
    padding: 1rem;
}
.gdi-search-label {
    margin-bottom: 0.32rem;
    color: #264872;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.gdi-contracts__search-panel .form-control {
    border-color: #c8d5eb;
    border-radius: 12px;
    box-shadow: none;
}
.gdi-contracts__search-panel .form-control:focus {
    border-color: #5d88d8;
    box-shadow: 0 0 0 4px rgba(31, 95, 191, 0.12);
}
.gdi-search-submit {
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.gdi-contracts__search-note {
    margin-top: 0.55rem;
    color: var(--gdi-muted);
    font-size: 0.8rem;
}
.gdi-active-filters {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
}
.gdi-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.26rem 0.64rem;
    border-radius: 999px;
    background: var(--gdi-primary-soft);
    border: 1px solid #c8dafc;
    color: #1e3b64;
    font-size: 0.8rem;
}
.gdi-filter-reset {
    color: #1f5fbf;
    font-size: 0.83rem;
    text-decoration: none;
    border-bottom: 1px dashed rgba(31, 95, 191, 0.45);
}
.gdi-filter-reset:hover { color: #0f4189; border-bottom-color: #0f4189; }

.gdi-contract-card {
    border: 1px solid var(--gdi-border);
    border-left: 4px solid #7ea6e7;
    border-radius: 16px;
    padding: 1.05rem 1.2rem;
    margin-bottom: 0.95rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(31, 95, 191, 0.06) 0%, transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 28px rgba(15, 33, 61, 0.07);
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
    position: relative;
}
.gdi-contract-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.gdi-contract-card:hover {
    transform: translateY(-2px);
    border-color: #c2d4ef;
    border-left-color: #1f5fbf;
    box-shadow: 0 14px 34px rgba(15, 33, 61, 0.12);
}
.gdi-contract-card__title {
    font-weight: 700;
    color: #10243f;
    text-decoration: none;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}
.gdi-contract-card__title:hover { color: #1f5fbf; }
.gdi-contract-card__price { font-weight: 700; color: #0f766e; white-space: nowrap; }
.gdi-contract-card__city { display: flex; }
.gdi-city-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.23rem 0.66rem;
    border: 1px solid #c8dafc;
    background: #edf3ff;
    color: #1d4a8e;
    font-size: 0.76rem;
    font-weight: 600;
}
.gdi-contract-card__matches {
    border-top: 1px dashed #dbe5f3;
    padding-top: 0.58rem;
}
.gdi-contract-card__matches-title {
    font-size: 0.72rem;
    color: #5f748f;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.34rem;
    font-weight: 600;
}
.gdi-contract-card__matches-list { display: flex; flex-direction: column; gap: 0.34rem; }
.gdi-contract-hit {
    display: inline-flex;
    align-items: center;
    color: #2d4260;
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1.33;
    background: #f6f9ff;
    border: 1px solid #d7e4f8;
    border-radius: 8px;
    padding: 0.35rem 0.52rem;
}
.gdi-contract-hit:hover {
    border-color: #acc8f2;
    background: #eaf2ff;
    color: #1e4a8d;
}

.gdi-contracts__map-wrap {
    border-radius: 18px;
    border: 1px solid #b8cae6;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    box-shadow: 0 16px 42px rgba(15, 33, 61, 0.12);
    overflow: hidden;
}
.gdi-contracts__map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #d7e4f8;
    background: linear-gradient(90deg, #edf3ff 0%, #f8fbff 100%);
}
.gdi-contracts__map-toolbar-title {
    font-weight: 700;
    color: #15365f;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.gdi-contracts__map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    font-size: 0.78rem;
    color: #4f6583;
}
.gdi-map-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.gdi-map-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}
.gdi-map-legend__item--muted { opacity: 0.85; }

.gdi-contracts__map {
    height: min(72vh, 690px);
    border-radius: 0;
    border: 0;
    background: #dbe7f8;
    position: relative;
    box-shadow: none;
}
.gdi-contracts__map-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #4f6583;
    background: rgba(248, 252, 255, 0.92);
    font-size: 0.95rem;
    z-index: 500;
}

.gdi-contract-block {
    background: #fff;
    border: 1px solid #d9e3f2;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    box-shadow: 0 8px 22px rgba(15, 33, 61, 0.05);
}
.gdi-estimate-wrap {
    background: #fff;
    border: 1px solid #d9e3f2;
    border-radius: 12px;
    padding: 1rem;
}
.gdi-estimate-wrap.table-responsive { max-height: min(72vh, 690px); overflow: auto; }
.gdi-estimate-doc { display: flex; flex-direction: column; gap: 1.5rem; }
.gdi-estimate-section h3 { color: #193f71; margin-bottom: 0.75rem; font-weight: 700; }
.gdi-estimate-table { font-size: 0.85rem; margin-bottom: 0; }
.gdi-estimate-table th { background: #eef4ff; white-space: nowrap; vertical-align: top; }
.gdi-estimate-table td { vertical-align: top; word-break: break-word; }

.gdi-estimate-app { display: flex; flex-direction: column; gap: 1rem; }

.gdi-estimate-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 220px;
    padding: 2rem 1.5rem;
    border: 1px dashed #c5d4ea;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
    text-align: center;
}
.gdi-estimate-loader__spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #d8e4f5;
    border-top-color: #2f5ea8;
    border-radius: 50%;
    animation: gdi-estimate-spin 0.85s linear infinite;
}
.gdi-estimate-loader__title {
    margin: 0;
    font-weight: 700;
    color: #1e3a5f;
}
@keyframes gdi-estimate-spin {
    to { transform: rotate(360deg); }
}

.gdi-estimate-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 0.72rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid #d8e3f5;
    box-shadow: 0 10px 24px rgba(15, 33, 61, 0.08);
}
.gdi-estimate-search-wrap { flex: 1 1 220px; max-width: 420px; }
.gdi-estimate-search {
    border-radius: 999px;
    border-color: #c8d8f2;
    background: #fff;
}
.gdi-estimate-search:focus { border-color: #4c75c8; box-shadow: 0 0 0 3px rgba(76, 117, 200, 0.15); }
.gdi-estimate-toolbar__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.gdi-estimate-stats { font-size: 0.81rem; color: #5f738e; white-space: nowrap; }
.gdi-estimate-hint {
    margin-top: -0.15rem;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    color: #5f738e;
    padding-left: 0.1rem;
}

.gdi-estimate-panels { display: flex; flex-direction: column; gap: 0.75rem; }
.gdi-estimate-panel {
    border: 1px solid #d8e3f5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
}
.gdi-estimate-panel.is-open { box-shadow: 0 8px 24px rgba(30, 58, 95, 0.1); }
.gdi-estimate-panel__head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 0;
    background: linear-gradient(90deg, #eef4ff 0%, #ffffff 100%);
    cursor: pointer;
    text-align: left;
}
.gdi-estimate-panel__head:hover { background: #e9f1ff; }
.gdi-estimate-panel__title { flex: 1; font-weight: 700; color: #173f73; font-size: 0.94rem; }
.gdi-estimate-panel__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.gdi-estimate-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #e9f0ff;
    color: #335ca1;
    white-space: nowrap;
}
.gdi-estimate-badge--count { background: #ebfdf5; color: #0b7d5b; }
.gdi-estimate-panel__chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid #5f748f;
    border-bottom: 2px solid #5f748f;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-left: 0.25rem;
}
.gdi-estimate-panel.is-open .gdi-estimate-panel__chev { transform: rotate(-135deg); margin-top: 4px; }
.gdi-estimate-panel__body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.gdi-estimate-panel.is-open .gdi-estimate-panel__body { max-height: 2200px; }

.gdi-estimate-scroll {
    overflow: auto;
    max-height: min(70vh, 640px);
    margin: 0.15rem 0.45rem 0.75rem;
    border: 1px solid #dae5f6;
    border-radius: 10px;
    background: #fff;
}
.gdi-estimate-grid {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.84rem;
}
.gdi-estimate-grid thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #173f73;
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 0.65rem;
    white-space: nowrap;
    text-align: left;
}
.gdi-estimate-grid thead th:first-child { border-radius: 8px 0 0 0; }
.gdi-estimate-grid thead th:last-child { border-radius: 0 8px 0 0; }
.gdi-estimate-grid tbody td {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid #eef3fb;
    vertical-align: top;
}
.gdi-estimate-grid tbody tr:hover td { background: #f4f8ff; }
.gdi-estimate-cell-name { min-width: 240px; max-width: 560px; word-break: break-word; }
.gdi-estimate-cell-num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.gdi-estimate-filter {
    display: inline;
    border: 0;
    padding: 0;
    margin: 0;
    text-align: left;
    background: transparent;
    color: #0f2846;
    cursor: pointer;
    border-bottom: 1px dashed transparent;
}
.gdi-estimate-filter:hover { color: #1f5fbf; border-bottom-color: rgba(31, 95, 191, 0.45); }
.gdi-estimate-filter:focus-visible {
    outline: 2px solid rgba(31, 95, 191, 0.35);
    outline-offset: 2px;
    border-radius: 4px;
}
.gdi-estimate-mark {
    background: #fff59d;
    color: inherit;
    padding: 0 0.09rem;
    border-radius: 2px;
}

.gdi-estimate-reference {
    margin: 0.85rem 1rem 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #f7f9fc;
    border: 1px solid #e3eaf5;
}
.gdi-estimate-reference__title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5f738e;
    margin-bottom: 0.55rem;
}
.gdi-estimate-reference__list {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.gdi-estimate-reference__item {
    font-size: 0.84rem;
    line-height: 1.45;
    color: #334155;
    word-break: break-word;
}
.gdi-estimate-badge--ref {
    background: #f3f0ff;
    color: #5b4bb7;
}

.gdi-attachments-list a { word-break: break-word; }

/* ——— Contract detail page ——— */
.gdi-contract-detail .breadcrumb a { color: #1f5fbf; text-decoration: none; }
.gdi-contract-detail .breadcrumb a:hover { text-decoration: underline; }

.gdi-detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #183763;
    background: radial-gradient(circle at 8% 18%, #2f71d8 0%, #1c4f9f 38%, #0f2b57 100%);
    color: #fff;
    padding: 1.35rem 1.45rem;
    box-shadow: var(--gdi-shadow);
}
.gdi-detail-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -55%;
    width: 48%;
    height: 240%;
    transform: rotate(14deg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent);
    pointer-events: none;
}
.gdi-detail-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}
.gdi-detail-hero__title {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.35;
    margin: 0.55rem 0 0.65rem;
    max-width: 920px;
}
.gdi-detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    font-size: 0.82rem;
    color: rgba(241, 245, 255, 0.88);
}
.gdi-detail-hero__aside { text-align: right; min-width: 160px; }
.gdi-detail-hero__price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #7ef0c8;
    margin-bottom: 0.55rem;
    white-space: nowrap;
}
.gdi-detail-hero__link {
    border-radius: 10px;
    font-weight: 600;
}
.gdi-detail-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.gdi-detail-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.76rem;
}
.gdi-detail-badge--city { background: rgba(23, 196, 150, 0.22); border-color: rgba(127, 255, 219, 0.45); }
.gdi-detail-badge--route { background: rgba(255, 193, 7, 0.22); border-color: rgba(255, 220, 120, 0.5); color: #fff8e1; }

.gdi-detail-tabs {
    border-bottom: 1px solid #d5e0f0;
    gap: 0.25rem;
}
.gdi-detail-tabs .nav-link {
    border: 0;
    border-radius: 10px 10px 0 0;
    color: #4a6280;
    font-weight: 600;
    padding: 0.55rem 1rem;
}
.gdi-detail-tabs .nav-link.active {
    color: #1f5fbf;
    background: #eef4ff;
    border-bottom: 2px solid #1f5fbf;
}

.gdi-detail-panel {
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    border: 1px solid #d9e3f2;
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 8px 24px rgba(15, 33, 61, 0.06);
}
.gdi-detail-panel--sticky { position: sticky; top: 1rem; }
.gdi-detail-panel--map { padding-bottom: 0.85rem; }
.gdi-detail-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.gdi-detail-panel__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #173f73;
    margin: 0 0 0.85rem;
    letter-spacing: 0.01em;
}
.gdi-detail-panel__head .gdi-detail-panel__title { margin-bottom: 0; }
.gdi-detail-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    background: #edf3ff;
    border: 1px solid #c8dafc;
    color: #1d4a8e;
    font-size: 0.74rem;
    font-weight: 700;
}
.gdi-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
}
.gdi-detail-field__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5f738e;
    margin-bottom: 0.18rem;
    font-weight: 600;
}
.gdi-detail-field__value { font-size: 0.9rem; color: #1a3354; word-break: break-word; }
.gdi-detail-text { font-size: 0.9rem; line-height: 1.55; color: #243b5c; }
.gdi-detail-muted { color: #5f738e; font-size: 0.88rem; }
.gdi-detail-note { font-size: 0.84rem; color: #5f738e; margin-bottom: 1rem; }

.gdi-detail-map {
    height: min(48vh, 420px);
    border-radius: 12px;
    border: 1px solid #c8d7ee;
    background: #dbe7f8;
    overflow: hidden;
}
.gdi-detail-map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #4f6583;
    font-size: 0.9rem;
}
.gdi-detail-route-cities {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-size: 0.84rem;
}
.gdi-detail-route-city {
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    background: #eef4ff;
    border: 1px solid #c8dafc;
    color: #1d4a8e;
    font-weight: 600;
}
.gdi-detail-route-arrow { color: #7ea6e7; font-weight: 700; }
.gdi-detail-map-address {
    margin: 0.65rem 0 0;
    font-size: 0.84rem;
    color: #5f738e;
}

.gdi-detail-table-wrap {
    border: 1px solid #dae5f6;
    border-radius: 10px;
    overflow: auto;
    max-height: min(60vh, 520px);
}
.gdi-detail-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.84rem;
    margin: 0;
}
.gdi-detail-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #173f73;
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 0.65rem;
    white-space: nowrap;
    text-align: left;
}
.gdi-detail-table tbody td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid #eef3fb;
    vertical-align: top;
}
.gdi-detail-table tbody tr:hover td { background: #f4f8ff; }
.gdi-detail-org-name { font-weight: 600; color: #1a3354; }
.gdi-detail-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gdi-detail-attachments {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: min(70vh, 640px);
    overflow: auto;
}
.gdi-detail-attachments a {
    display: block;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid #d7e4f8;
    background: #f6f9ff;
    color: #2d4260;
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1.35;
    word-break: break-word;
}
.gdi-detail-attachments a:hover {
    border-color: #acc8f2;
    background: #eaf2ff;
    color: #1e4a8d;
}

.gdi-detail-pager {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.gdi-detail-pager__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}
.gdi-detail-pager__btn {
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #c8d8f2;
    background: #fff;
    color: #1f5fbf;
    font-weight: 600;
    cursor: pointer;
}
.gdi-detail-pager__btn:hover:not(:disabled) { background: #eef4ff; }
.gdi-detail-pager__btn.is-active {
    background: #1f5fbf;
    border-color: #1f5fbf;
    color: #fff;
}
.gdi-detail-pager__btn:disabled { opacity: 0.45; cursor: default; }
.gdi-detail-pager__dots { color: #5f738e; padding: 0 0.2rem; }
.gdi-detail-pager__info { font-size: 0.8rem; color: #5f738e; }

.gdi-detail-alert { border-radius: 12px; }

.gdi-detail-execution {
    border: 1px solid #c8d8f2;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    padding: 1.15rem 1.25rem;
    box-shadow: 0 10px 28px rgba(15, 33, 61, 0.08);
}
.gdi-detail-execution__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.gdi-detail-execution__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #173f73;
}
.gdi-detail-execution__pct {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f766e;
    font-variant-numeric: tabular-nums;
}
.gdi-detail-progress {
    height: 14px;
    border-radius: 999px;
    background: #e3ebf8;
    overflow: hidden;
    border: 1px solid #c8d8f2;
}
.gdi-detail-progress__bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f5fbf 0%, #17c496 100%);
    transition: width 0.45s ease;
    min-width: 2px;
}
.gdi-detail-progress--paid { height: 10px; background: #eef2f8; }

/* Leaflet map markers & popups */
.gdi-map-marker {
    background: transparent;
    border: 0;
}
.gdi-map-marker__pin {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.45);
}
.gdi-map-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 14px;
    border: 1px solid #c8d7ee;
    box-shadow: 0 14px 34px rgba(15, 33, 61, 0.18);
    padding: 0;
}
.gdi-map-popup-wrap .leaflet-popup-content {
    margin: 0;
    min-width: 220px;
}
.gdi-map-popup {
    padding: 0.85rem 0.95rem;
}
.gdi-map-popup__title {
    font-weight: 700;
    color: #10243f;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}
.gdi-map-popup__price {
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 0.35rem;
}
.gdi-map-popup__city {
    font-size: 0.82rem;
    color: #1d4a8e;
    margin-bottom: 0.25rem;
}
.gdi-map-popup__addr {
    font-size: 0.78rem;
    color: #5e7189;
    line-height: 1.35;
    margin-bottom: 0.55rem;
}
.gdi-map-popup__link {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f5fbf;
    text-decoration: none;
}
.gdi-map-popup__link:hover { color: #0f4189; text-decoration: underline; }
.gdi-detail-progress__bar--paid {
    background: linear-gradient(90deg, #5b7fd6 0%, #94a9d8 100%);
}
.gdi-detail-progress__label {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #5f738e;
}
.gdi-detail-execution__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}
.gdi-detail-execution__item-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5f738e;
    margin-bottom: 0.2rem;
    font-weight: 600;
}
.gdi-detail-execution__item-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a3354;
    word-break: break-word;
}
.gdi-detail-execution__item-value--accent { color: #0f766e; }

@media (max-width: 992px) {
    .gdi-detail-hero__aside { text-align: left; width: 100%; }
    .gdi-detail-panel--sticky { position: static; }
}
@media (max-width: 576px) {
    .gdi-detail-hero { padding: 1rem; }
    .gdi-detail-map { height: 280px; }
}

@media (max-width: 992px) {
    .gdi-contracts__hero { padding: 1.1rem 1.1rem; }
    .gdi-contracts__view-switch { width: 100%; }
    .gdi-contracts__view-switch .btn { flex: 1 1 0; }
}
@media (max-width: 576px) {
    .gdi-contracts__search-panel { padding: 0.85rem; }
    .gdi-estimate-toolbar { position: static; }
    .gdi-estimate-search-wrap { max-width: none; }
    .gdi-estimate-scroll { max-height: 70vh; margin: 0.15rem 0 0.6rem; }
}
