/* Wells Center - Professional Client Grade Theme */

.wc-page,
.wc-command-page {
    min-height: 100%;
    padding: 22px;
    color: inherit;
    background: transparent;
}

.wc-pro-page {
    display: grid;
    gap: 16px;
}

/* Hero */

.wc-pro-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 4px 6px;
}

.wc-pro-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wc-pro-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #7dd3fc;
    background: linear-gradient(145deg, rgba(14,165,233,.22), rgba(15,23,42,.9));
    border: 1px solid rgba(125,211,252,.28);
    box-shadow: 0 12px 26px rgba(14,165,233,.12);
    font-size: 25px;
    font-weight: 900;
}

.wc-pro-eyebrow {
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wc-pro-title h1 {
    margin: 2px 0 4px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    color: #f8fafc;
    letter-spacing: -.04em;
}

.wc-pro-title p {
    margin: 0;
    color: rgba(203,213,225,.72);
    font-size: 14px;
    font-weight: 600;
}

.wc-pro-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wc-pro-refresh-meta {
    display: grid;
    gap: 2px;
    text-align: right;
    color: rgba(148,163,184,.9);
    font-size: 12px;
    font-weight: 800;
}

    .wc-pro-refresh-meta b {
        color: #e2e8f0;
    }

.wc-pro-refresh {
    min-width: 150px;
    height: 44px;
    border-radius: 13px;
}

/* Buttons */

.wc-refresh,
.wc-refresh-command,
.wc-full-details,
.wc-open-pdf,
.wc-pdf-card a,
.btn-history,
.btn-tree,
.wc-pager-mini {
    border: 1px solid rgba(214,173,58,.28);
    background: rgba(214,173,58,.12);
    color: var(--gold);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
    text-decoration: none;
}

    .wc-refresh:hover,
    .wc-refresh-command:hover,
    .wc-full-details:hover,
    .btn-history:hover,
    .btn-tree:hover,
    .wc-pager-mini:hover {
        background: rgba(214,173,58,.20);
    }

.wc-refresh-command,
.btn-history,
.btn-tree,
.wc-well-item,
.wc-full-details,
.wc-pager-mini,
.wc-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .wc-refresh-command:disabled,
    .btn-history:disabled,
    .btn-tree:disabled,
    .wc-well-item:disabled,
    .wc-full-details:disabled,
    .wc-pager-mini:disabled,
    .wc-page-size:disabled,
    .wc-tab:disabled {
        opacity: .65;
        cursor: wait;
    }

/* KPI */

.wc-pro-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 14px;
}

.wc-pro-kpi {
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,.18);
    background: radial-gradient(circle at top left, rgba(56,189,248,.08), transparent 34%), linear-gradient(180deg, rgba(15,23,42,.92), rgba(15,23,42,.72));
    box-shadow: 0 16px 35px rgba(0,0,0,.18);
}

    .wc-pro-kpi.selected {
        border-color: rgba(167,139,250,.32);
    }

.wc-pro-kpi-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

    .wc-pro-kpi-icon.blue {
        background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
    }

    .wc-pro-kpi-icon.green {
        background: linear-gradient(135deg, #22c55e, #15803d);
    }

    .wc-pro-kpi-icon.cyan {
        background: linear-gradient(135deg, #38bdf8, #0369a1);
    }

    .wc-pro-kpi-icon.amber {
        background: linear-gradient(135deg, #f59e0b, #92400e);
    }

    .wc-pro-kpi-icon.purple {
        background: linear-gradient(135deg, #8b5cf6, #4c1d95);
    }

.wc-pro-kpi span {
    display: block;
    color: rgba(203,213,225,.72);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.wc-pro-kpi b {
    display: block;
    color: #f8fafc;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.wc-pro-kpi small {
    color: rgba(148,163,184,.82);
    font-size: 12px;
    font-weight: 700;
}

/* Main layout */

.wc-pro-shell {
    display: grid;
    grid-template-columns: 280px minmax(620px, 1fr) 330px;
    gap: 14px;
    min-height: 670px;
}

.wc-pro-explorer,
.wc-pro-main,
.wc-pro-passport {
    border-radius: 20px;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(15,23,42,.78);
    box-shadow: 0 18px 45px rgba(0,0,0,.20);
    overflow: hidden;
}

/* Explorer */

.wc-pro-panel-head,
.wc-pro-passport-head,
.wc-pro-main-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid rgba(148,163,184,.14);
}

    .wc-pro-panel-head span,
    .wc-pro-passport-head span {
        color: #7dd3fc;
        font-size: 12px;
        font-weight: 950;
        text-transform: uppercase;
    }

    .wc-pro-panel-head b,
    .wc-pro-passport-head small {
        display: block;
        margin-top: 3px;
        color: rgba(226,232,240,.78);
        font-size: 12px;
        font-weight: 800;
    }

.wc-filter-stack {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.wc-pro-filters {
    padding: 14px;
    border-bottom: 1px solid rgba(148,163,184,.12);
}

.wc-search-wrap {
    position: relative;
}

    .wc-search-wrap span {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted-text);
    }

.wc-search,
.wc-search-command,
.wc-select {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--panel-bg);
    color: inherit;
    outline: none;
}

    .wc-search:focus,
    .wc-select:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(214,173,58,.10);
    }

.wc-pro-list-label {
    padding: 12px 14px 8px;
    display: flex;
    justify-content: space-between;
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 950;
}

.wc-pro-well-list {
    padding: 0 12px 12px;
    max-height: 430px;
    overflow: auto;
}

.wc-pro-well-item {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    justify-content: flex-start;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: rgba(30,41,59,.54);
    border: 1px solid rgba(148,163,184,.13);
    color: #e2e8f0;
    transition: .18s ease;
}

    .wc-pro-well-item:hover {
        transform: translateX(3px);
        border-color: rgba(125,211,252,.35);
        background: rgba(14,165,233,.10);
    }

    .wc-pro-well-item.active {
        background: linear-gradient(90deg, rgba(14,165,233,.24), rgba(14,165,233,.06));
        border-color: rgba(125,211,252,.50);
        box-shadow: inset 3px 0 0 #38bdf8;
    }

.wc-pro-well-icon {
    color: #7dd3fc;
    width: 18px;
}

.wc-pro-well-main {
    flex: 1;
    display: grid;
    gap: 1px;
    text-align: left;
}

    .wc-pro-well-main b {
        font-size: 12px;
    }

    .wc-pro-well-main small {
        color: rgba(148,163,184,.75);
        font-size: 11px;
        font-weight: 800;
    }

.wc-pro-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

    .wc-pro-dot.ok {
        background: #22c55e;
        box-shadow: 0 0 0 4px rgba(34,197,94,.12);
    }

    .wc-pro-dot.idle {
        background: #94a3b8;
        box-shadow: 0 0 0 4px rgba(148,163,184,.10);
    }

.wc-pro-mini-pager,
.wc-explorer-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid rgba(148,163,184,.12);
    color: var(--muted-text);
    font-size: 12px;
    font-weight: 900;
}

/* Center */

.wc-pro-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.wc-pro-main-head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 18px;
    letter-spacing: -.02em;
}

.wc-pro-main-head p {
    margin: 4px 0 0;
    color: rgba(148,163,184,.85);
    font-size: 12px;
    font-weight: 700;
}

.wc-pro-tabs {
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 13px;
    overflow: hidden;
    background: rgba(2,6,23,.32);
    display: flex;
    gap: 0;
}

    .wc-pro-tabs .wc-tab {
        height: 36px;
        border: 0;
        border-radius: 0;
        padding: 0 14px;
        background: transparent;
        color: inherit;
        font-weight: 900;
    }

        .wc-pro-tabs .wc-tab.active {
            background: rgba(14,165,233,.18);
            color: #7dd3fc;
            box-shadow: inset 0 -2px 0 #38bdf8;
        }

.wc-pro-table-card {
    max-height: 560px;
    overflow: auto;
    border-bottom: 1px solid rgba(148,163,184,.12);
}

.wc-pro-table {
    width: 100%;
    border-collapse: collapse;
}

    .wc-pro-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        height: 44px;
        padding: 0 16px;
        color: rgba(203,213,225,.72);
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        background: rgba(15,23,42,.96);
        border-bottom: 1px solid rgba(148,163,184,.16);
        text-align: left;
        white-space: nowrap;
    }

    .wc-pro-table tbody td {
        padding: 14px 16px;
        border-bottom: 1px solid rgba(148,163,184,.11);
        color: #e2e8f0;
        font-size: 13px;
        font-weight: 750;
        white-space: nowrap;
    }

    .wc-pro-table tbody tr {
        transition: .16s ease;
        cursor: pointer;
    }

        .wc-pro-table tbody tr:hover {
            background: rgba(14,165,233,.065);
        }

        .wc-pro-table tbody tr.wc-selected-row {
            background: rgba(14,165,233,.10);
            box-shadow: inset 3px 0 0 #38bdf8;
        }

.wc-pro-well-cell {
    display: grid;
    gap: 3px;
}

    .wc-pro-well-cell small {
        color: rgba(148,163,184,.72);
        font-size: 11px;
    }

.wc-well-badge,
.wc-pdf-link,
.wc-pdf-button {
    color: var(--gold);
    font-weight: 900;
    text-decoration: none;
}

.wc-pro-status {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
}

    .wc-pro-status.visited {
        color: #22c55e;
        background: rgba(34,197,94,.13);
        border: 1px solid rgba(34,197,94,.26);
    }

    .wc-pro-status.novisit {
        color: #cbd5e1;
        background: rgba(148,163,184,.10);
        border: 1px solid rgba(148,163,184,.16);
    }

.wc-pro-action-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-history,
.btn-tree {
    padding: 8px 12px;
    border-radius: 8px;
    margin-right: 0;
}

.wc-pro-table-pager,
.wc-table-pager {
    min-height: 62px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    color: var(--muted-text);
    font-size: 13px;
    font-weight: 800;
    background: rgba(2,6,23,.22);
}

.wc-table-pager-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.wc-pager-mini {
    height: 34px;
    padding: 0 12px;
}

    .wc-pager-mini.active {
        background: var(--gold);
        color: #111827;
        border-color: var(--gold);
    }

    .wc-pager-mini:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.wc-pager-dots {
    padding: 0 4px;
    color: var(--muted-text);
}

.wc-page-size {
    height: 36px;
    min-width: 105px;
    border-radius: 9px;
    border: 1px solid var(--card-border);
    background: var(--panel-bg);
    color: inherit;
    padding: 0 10px;
    font-weight: 800;
    outline: none;
}

/* Passport */

.wc-pro-passport {
    padding: 0;
}

.wc-pro-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34,197,94,.12);
}

.wc-pro-passport-title {
    padding: 16px 16px 10px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

    .wc-pro-passport-title > div {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .wc-pro-passport-title h2 {
        margin: 0;
        color: #f8fafc;
        font-size: 25px;
        letter-spacing: -.04em;
    }

    .wc-pro-passport-title small {
        padding: 5px 10px;
        border-radius: 999px;
        color: #22c55e;
        background: rgba(34,197,94,.12);
        border: 1px solid rgba(34,197,94,.22);
        font-size: 11px;
        font-weight: 950;
    }

.wc-pro-passport-grid {
    margin: 0 16px 14px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,.14);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

    .wc-pro-passport-grid div {
        padding: 12px;
        background: rgba(30,41,59,.28);
        border-right: 1px solid rgba(148,163,184,.12);
        border-bottom: 1px solid rgba(148,163,184,.12);
    }

        .wc-pro-passport-grid div:nth-child(even) {
            border-right: none;
        }

    .wc-pro-passport-grid span {
        display: block;
        color: var(--muted-text);
        font-size: 12px;
        margin-bottom: 5px;
    }

    .wc-pro-passport-grid b {
        font-size: 14px;
    }

.wc-pro-section {
    margin: 14px 16px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,.14);
    background: rgba(2,6,23,.24);
}

.wc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--gold);
    font-weight: 950;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
}

    .wc-section-head button {
        border: none;
        background: transparent;
        color: var(--gold);
        cursor: pointer;
        font-weight: 900;
    }

.wc-pro-pdf-card,
.wc-pdf-card {
    min-height: 62px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
}

.wc-doc-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(214,173,58,.10);
    color: var(--gold);
}

.wc-pdf-card small {
    display: block;
    color: var(--muted-text);
    margin-top: 4px;
}

.wc-pro-pdf-card a,
.wc-pdf-card a,
.wc-open-pdf {
    margin-left: auto;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    background: rgba(14,165,233,.16);
    border: 1px solid rgba(125,211,252,.24);
    color: #7dd3fc;
    font-weight: 950;
    text-decoration: none;
}

.wc-pro-mini-tree {
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px dashed rgba(125,211,252,.18);
    background: rgba(15,23,42,.32);
}

    .wc-pro-mini-tree .readonly-tree-shell {
        min-height: 150px;
        border: 0;
        border-radius: 0;
    }

    .wc-pro-mini-tree .readonly-tree-canvas {
        transform: scale(.45);
        transform-origin: top left;
    }

.wc-tree-mini-empty,
.wc-muted-box,
.wc-empty-list {
    border: 1px dashed var(--card-border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    color: var(--muted-text);
    margin-top: 10px;
}

.wc-valve-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

    .wc-valve-summary-grid div {
        min-height: 74px;
        border-radius: 14px;
        padding: 14px 8px;
        text-align: center;
        border: 1px solid var(--card-border);
    }

    .wc-valve-summary-grid b {
        display: block;
        font-size: 25px;
    }

    .wc-valve-summary-grid span {
        display: block;
        margin-top: 5px;
        color: var(--muted-text);
        font-size: 12px;
    }

    .wc-valve-summary-grid .ok {
        color: #22c55e;
        background: rgba(34,197,94,.08);
        border-color: rgba(34,197,94,.25);
    }

    .wc-valve-summary-grid .bad {
        color: #ef4444;
        background: rgba(239,68,68,.08);
        border-color: rgba(239,68,68,.25);
    }

    .wc-valve-summary-grid .unk {
        color: var(--gold);
        background: rgba(214,173,58,.08);
        border-color: rgba(214,173,58,.25);
    }

.wc-pro-full-details {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14,165,233,.90), rgba(29,78,216,.90));
    color: #fff;
    border: 0;
    font-weight: 950;
}

.wc-pro-passport-empty {
    min-height: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted-text);
    text-align: center;
    padding: 42px 20px;
}

    .wc-pro-passport-empty div {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: rgba(214,173,58,.12);
        color: var(--gold);
        font-size: 34px;
    }

/* Modals */

.wc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.wc-modal {
    width: min(1200px,95vw);
    max-height: 90vh;
    overflow: auto;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: var(--panel-bg);
    color: inherit;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.wc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
}

    .wc-modal-header h3 {
        margin: 0;
        color: var(--gold);
    }

    .wc-modal-header button,
    .wc-close {
        border: none;
        background: transparent;
        color: inherit;
        font-size: 26px;
        cursor: pointer;
    }

.wc-history-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.wc-info-card,
.wc-tree-card,
.wc-valves-card {
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--gold);
    background: var(--panel-bg);
    color: inherit;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

    .wc-info-card span {
        display: block;
        color: var(--muted-text);
        font-size: 12px;
        margin-bottom: 8px;
    }

    .wc-info-card b {
        font-size: 24px;
    }

/* Tree Modal */

.wc-tree-modal,
.wc-pro-tree-modal {
    width: min(1500px, 96vw);
    max-height: 92vh;
}

.wc-tree-head {
    min-height: 82px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

    .wc-tree-head h2 {
        margin: 0;
        color: var(--gold);
        font-size: 28px;
        font-weight: 950;
    }

.wc-tree-sub {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: inherit;
    font-size: 14px;
}

.wc-tree-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-tree-content {
    padding: 18px;
}

.wc-tree-top {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 14px;
    align-items: start;
}

.wc-tree-card h4,
.wc-valves-card h4 {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 15px;
    font-weight: 950;
}

.wc-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--card-border);
    padding: 10px 0;
    gap: 12px;
}

    .wc-row span {
        color: var(--muted-text);
    }

.wc-status-box {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(34,197,94,.12);
    color: #22c55e;
    font-weight: 950;
    text-align: center;
}

.wc-tree-card {
    background: var(--panel-bg);
}

    .wc-tree-card h4 {
        color: #0ea5e9;
    }

.wc-tree-top {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 14px;
    align-items: start;
}

.wc-tree-image-wrap {
    width: 100%;
    height: 230px;
    min-height: 230px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 8px;
    box-sizing: border-box;
}

.tree-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.tree-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    background: transparent;
    border-radius: 0;
}
.wc-valves-card {
    margin-top: 16px;
}

.wc-valves-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.wc-legend {
    display: flex;
    gap: 18px;
    color: var(--muted-text);
    font-size: 13px;
    font-weight: 700;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

    .dot.green {
        background: #22c55e;
    }

    .dot.red {
        background: #ef4444;
    }

    .dot.gray {
        background: #94a3b8;
    }

.wc-valves-scroll {
    max-height: 350px;
    overflow: auto;
    border: 1px solid var(--card-border);
    border-radius: 12px;
}

.wc-green,
.wc-status-pass {
    color: #22c55e;
    font-weight: 950;
}

.wc-red,
.wc-status-fail {
    color: #ef4444;
    font-weight: 950;
}

.wc-status-unknown {
    color: #94a3b8;
    font-weight: 950;
}

.wc-empty-cell {
    text-align: center;
    padding: 30px;
    color: var(--muted-text);
}

/* General table fallback */

.wc-table {
    width: 100%;
    border-collapse: collapse;
}

    .wc-table th {
        text-align: left;
        padding: 17px 18px;
        color: var(--muted-text);
        font-size: 12px;
        text-transform: uppercase;
        font-weight: 950;
        white-space: nowrap;
    }

    .wc-table td {
        padding: 15px 18px;
        border-top: 1px solid var(--card-border);
        color: inherit;
        white-space: nowrap;
    }

/* Map */

.wc-map-box,
.wc-pro-map-box {
    height: 600px;
    border-radius: 0;
    border: 0;
    overflow: hidden;
}

#leafletMap {
    width: 100%;
    height: 100%;
}

.custom-well-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px rgba(214,173,58,.18), 0 8px 20px rgba(0,0,0,.30);
}

    .custom-well-marker.visited-map {
        background: #22c55e;
    }

    .custom-well-marker.notvisited-map {
        background: #ef4444;
    }

    .custom-well-marker.selected-map {
        background: var(--gold);
        box-shadow: 0 0 0 6px rgba(214,173,58,.25), 0 10px 25px rgba(0,0,0,.35);
    }

.map-popup,
.map-popup-title {
    color: #111827;
    font-size: 13px;
}

.map-popup-title {
    font-weight: 900;
    margin-bottom: 6px;
}

.map-popup-line {
    margin: 3px 0;
}

/* Loading */

.wc-inline-spinner {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 50%;
    border: 2px solid rgba(214,173,58,.22);
    border-top-color: var(--gold);
    animation: wcSpin .75s linear infinite;
}

.wc-item-spinner {
    margin-left: auto;
}

.wc-row-loading {
    opacity: .72;
    pointer-events: none;
}

@keyframes wcSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */

@media(max-width: 1380px) {
    .wc-pro-shell {
        grid-template-columns: 260px minmax(560px, 1fr) 310px;
    }

    .wc-pro-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 1100px) {
    .wc-pro-shell {
        grid-template-columns: 1fr;
    }

    .wc-pro-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wc-pro-actions {
        align-items: flex-end;
        flex-direction: column;
    }

    .wc-tree-top {
        grid-template-columns: 1fr;
    }

    .wc-history-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 700px) {
    .wc-pro-page {
        padding: 14px;
    }

    .wc-pro-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .wc-pro-kpi-grid {
        grid-template-columns: 1fr;
    }

    .wc-table-pager,
    .wc-pro-table-pager {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .wc-table-pager-actions {
        justify-content: flex-start;
    }

    .wc-pro-passport-grid {
        grid-template-columns: 1fr;
    }

    .wc-history-cards {
        grid-template-columns: 1fr;
    }
}

.custom-well-marker {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255,255,255,.95);
    box-shadow: 0 0 0 5px rgba(15,23,42,.25), 0 10px 22px rgba(0,0,0,.32);
}

    .custom-well-marker span {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(255,255,255,.95);
    }

    .custom-well-marker.visited-map {
        background: #22c55e;
    }

    .custom-well-marker.notvisited-map {
        background: #ef4444;
    }

    .custom-well-marker.selected-map {
        background: var(--gold);
        box-shadow: 0 0 0 7px rgba(214,173,58,.24), 0 14px 30px rgba(0,0,0,.42);
    }

    .custom-well-marker.hover-map {
        transform: scale(1.12);
    }

    .custom-well-marker.fallback-coordinate {
        opacity: .72;
        border-style: dashed;
    }

.invhub-map-legend {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15,23,42,.92);
    color: #e2e8f0;
    border: 1px solid rgba(148,163,184,.22);
    box-shadow: 0 14px 35px rgba(0,0,0,.28);
    font-size: 12px;
    font-weight: 800;
}

    .invhub-map-legend .legend-title {
        color: #7dd3fc;
        font-weight: 950;
        margin-bottom: 8px;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: .08em;
    }

    .invhub-map-legend div {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 6px 0;
    }

.legend-dot,
.legend-ring {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    display: inline-block;
}

    .legend-dot.visited {
        background: #22c55e;
    }

    .legend-dot.notvisited {
        background: #ef4444;
    }

    .legend-dot.selected {
        background: var(--gold);
    }

.legend-ring {
    border: 2px solid #e2e8f0;
    background: transparent;
}

.invhub-map-reset {
    height: 34px;
    min-width: 46px;
    border: 1px solid rgba(148,163,184,.25);
    border-radius: 10px;
    background: rgba(15,23,42,.92);
    color: #e2e8f0;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.28);
}

    .invhub-map-reset:hover {
        background: rgba(30,41,59,.96);
        color: #7dd3fc;
    }

.leaflet-popup-content-wrapper {
    border-radius: 16px;
    padding: 0;
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

.leaflet-popup-content {
    margin: 0;
}

.leaflet-popup-tip {
    background: #0f172a;
}

.map-popup.pro {
    min-width: 240px;
    padding: 14px;
}

.map-popup-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.map-popup-title {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 950;
}

.map-popup-sub {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 2px;
}

.map-popup-status {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
}

    .map-popup-status.visited {
        color: #22c55e;
        background: rgba(34,197,94,.14);
        border: 1px solid rgba(34,197,94,.26);
    }

    .map-popup-status.novisit {
        color: #f87171;
        background: rgba(239,68,68,.14);
        border: 1px solid rgba(239,68,68,.26);
    }

.map-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .map-popup-grid div {
        padding: 10px;
        border-radius: 12px;
        background: rgba(30,41,59,.72);
        border: 1px solid rgba(148,163,184,.14);
    }

    .map-popup-grid span {
        display: block;
        color: #94a3b8;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .map-popup-grid b {
        color: #e2e8f0;
        font-size: 12px;
    }