a {
    text-decoration:none;
}
/* Ensure DT tables stretch fully when shown */
table.dataTable { width: 100% !important; }

.table .badge {
  font-size: 0.8rem;
  padding: 0.35em 0.6em;
}

.table th {
    font-weight:normal;
    background-color:#01579b !important;
    color:#fff;
}

.table th.light-th {
    background-color:#fff !important;
    color:#01579b;
}

.guardian-button {
    background-color:#fff !important;
    color:#01579b;
    border: none;
}

.point {
    cursor:pointer;
}

.tableLink {
    color: #01579b;
    cursor:pointer;
}

.page-item.active .page-link {
    background-color: #01579b;
    border-color: #01579b;
}

.right-txt {
	text-align:right;
}

.center-txt {
	text-align:center;
}

.left-txt {
	text-align:left;
}

.red-txt {
	color:#dc3545 !important;
}

.green-txt {
	color:#198754 !important;
}

.orange-txt {
	color:orange !important;
}

.blue-txt {
	color:blue !important;
}

.grey-txt {
	color:rgb(224, 224, 224) !important;
}

.unselected-icon {
    opacity:0.2;
  }

/* Datatables */
td.details-control {
    background: url('../img/details_open.png') no-repeat center center;
    cursor: pointer;
}
tr.shown td.details-control {
    background: url('../img/details_close.png') no-repeat center center;
    cursor: pointer;
}

.tableIcon {
    font-size: 1.25rem;
    color: #01579b;
    cursor:pointer;
}

.tableIconNoPoint {
    font-size: 1.25rem;
    color: #01579b;
}

/* Modals */
.modal-header {
    background-color:#01579b;
    color:#fff;
}

/* Loader */
.loader {
    position: fixed;
    z-index: 999;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
}

/* Accordions */
.accordion-button, .accordion-button:not(.collapsed) {
    background-color:#01579b;
    color:#fff;
}

/* Select2 */
.select2-selection__rendered {
    line-height: 36px !important;
}
.select2-container .select2-selection--single {
    height: 36px !important;
}
.select2-selection__arrow {
    height: 36px !important;
}

/* Calendar */
.fc .fc-button-primary {
    background-color: #01579b !important;
    border-color: #fff !important;
}

.fc-event {
    border-color:#fff !important;
}

.kpi {
  text-align: center;
  background-color: #f8f9fa;  /* light Bootstrap gray */
  border-radius: 0.5rem;
  padding: 0.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kpi .label {
  justify-content: center;
  font-size: 0.9rem;
  color: #555;
}

.kpi .value {
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #01579b;;
}

.call-summary-tooltip .tooltip-inner {
    max-width: 320px;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    text-align: left;
}

.call-summary-tooltip .tooltip-inner .tooltip-row + .tooltip-row {
    margin-top: 0.35rem;
}

#quoteSnapshot .quote-product-list {
    font-size: 0.85rem;
}

#quoteSnapshot .quote-product-item + .quote-product-item {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

#quoteSnapshot .quote-product-title {
    font-weight: 600;
}

#quoteSnapshot .quote-product-meta {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
}

#quoteProductToggle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

#quoteProductToggle:hover,
#quoteProductToggle:focus {
    color: #fff;
    text-decoration: underline;
}

/* Client dashboard KPIs */
.client-dashboard .client-kpi-section {
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.client-dashboard .client-kpi-strip {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.client-dashboard .client-kpi-strip {
    row-gap: 1.25rem;
}

.client-dashboard .client-kpi-card {
    flex: 1 1 0;
    background: linear-gradient(135deg, #0d1b2a, #12263a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.85rem;
    padding: 0.75rem 0.9rem;
    color: #f8f9fa;
    min-width: 170px;
    box-shadow: 0 8px 20px rgba(13, 27, 42, 0.3);
    text-align: center;
}

.client-dashboard .client-kpi-label {
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    font-size: 0.75rem;
    color: rgba(248, 249, 250, 0.85);
    margin-bottom: 0.35rem;
}

.client-dashboard .client-kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.35rem;
    color: #e9ecef;
}

.client-dashboard .client-kpi-subtext {
    font-size: 0.85rem;
    color: rgba(248, 249, 250, 0.75);
    line-height: 1.3;
}

.client-dashboard .client-kpi-positive {
    color: #53d185;
}

/* Client dashboard open pipeline */
.client-dashboard .open-pipeline-panel {
    min-height: auto;
}

.client-dashboard .open-pipeline-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.client-dashboard .pipeline-card {
    position: relative;
    background: linear-gradient(145deg, #0f1b2f, #16213a);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.85rem;
    padding: 0.85rem 1rem 0.9rem 1.1rem;
    box-shadow: 0 10px 18px rgba(8, 16, 28, 0.35);
    color: #f8f9fa;
}

.client-dashboard .pipeline-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 0.85rem 0 0 0.85rem;
    background: var(--pipeline-accent, #fbbf24);
}

.client-dashboard .pipeline-card-estimates {
    --pipeline-accent: #8b5cf6;
}

.client-dashboard .pipeline-card-jobs {
    --pipeline-accent: linear-gradient(180deg, #3b82f6 0%, #3b82f6 33.33%, #34d399 33.33%, #34d399 66.66%, #fbbf24 66.66%, #fbbf24 100%);
}

.client-dashboard .pipeline-card-risk {
    --pipeline-accent: #f87171;
}

.client-dashboard .pipeline-label {
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    font-size: 0.72rem;
    color: rgba(248, 249, 250, 0.82);
    margin-bottom: 0.35rem;
}

.client-dashboard .pipeline-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #f8f9fa;
    margin-bottom: 0.45rem;
}

.client-dashboard .pipeline-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(248, 249, 250, 0.8);
}

.client-dashboard .pipeline-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(248, 249, 250, 0.9);
}

.client-dashboard .pipeline-risk-badge.is-red {
    background: rgba(248, 113, 113, 0.18);
    color: #f87171;
}

.client-dashboard .pipeline-risk-badge.is-amber {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
}

.client-dashboard .pipeline-risk-badge.is-green {
    background: rgba(52, 211, 153, 0.18);
    color: #34d399;
}

.client-dashboard .open-pipeline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.client-dashboard .pipeline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.client-dashboard .pipeline-btn.is-secondary {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.client-dashboard .pipeline-btn:hover,
.client-dashboard .pipeline-btn:focus {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.85);
    color: #ddd6fe;
}

.client-dashboard .pipeline-btn.is-secondary:hover,
.client-dashboard .pipeline-btn.is-secondary:focus {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.85);
    color: #bfdbfe;
}

@media (max-width: 1200px) {
    .client-dashboard .client-kpi-strip {
        flex-wrap: wrap;
    }

    .client-dashboard .client-kpi-card {
        flex: 1 1 calc(20% - 0.75rem);
    }
}

@media (max-width: 992px) {
    .client-dashboard .client-kpi-strip {
        flex-wrap: wrap;
    }

    .client-dashboard .client-kpi-card {
        min-width: 150px;
    }

    .client-dashboard .open-pipeline-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Client dashboard panels */
.client-dashboard .client-panel-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-dashboard .pipeline-revenue-row .client-panel {
    height: 100%;
}

@media (min-width: 1920px) {
    .client-dashboard .pipeline-revenue-row .pipeline-revenue-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.client-dashboard .client-panel {
    background: linear-gradient(160deg, #101b2d, #151f33);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    color: #f8f9fa;
    box-shadow: 0 14px 28px rgba(6, 15, 27, 0.35);
    min-height: 260px;
}

.client-dashboard .client-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.client-dashboard .client-panel-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-align: right;
}

.client-dashboard .client-panel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #f8f9fa;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.client-dashboard .client-panel-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
}

.client-dashboard .client-panel-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.client-dashboard .client-panel-header-split {
    align-items: center;
}

.client-dashboard .client-panel-title {
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-weight: 800;
    font-size: 0.78rem;
    color: #f8f9fa;
}

.client-dashboard .client-panel-subtitle,
.client-dashboard .client-panel-meta {
    font-size: 0.75rem;
    color: rgba(248, 249, 250, 0.7);
}

.client-dashboard .client-panel-body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.client-dashboard .client-panel-center {
    align-items: center;
    text-align: center;
}

.client-dashboard .client-panel-footer {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: rgba(248, 249, 250, 0.65);
    line-height: 1.4;
}

.sites-table-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#sitesTable thead th {
    background: #121d30;
    color: #d5eafe;
    padding: 0.6rem 0.75rem;
    font-size: 0.76rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
}

#sitesTable thead th:first-child {
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

#sitesTable thead th:last-child {
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

#sitesTable tbody tr {
    background: #171e2e;
    color: #d5eafe;
}

#sitesTable tbody tr td {
    color: inherit;
}

#sitesTable tbody tr td {
    background: #171e2e;
}

.site-asset-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0.75rem 0.5rem 1.8rem;
    border-top: 1px solid rgba(248, 249, 250, 0.08);
    border-bottom: 1px solid rgba(248, 249, 250, 0.08);
}

.site-asset-row {
    padding: 0.3rem 0;
    min-height: 40px;
    border-bottom: 1px solid rgba(248, 249, 250, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-asset-header {
    font-size: 0.65rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(248, 249, 250, 0.65);
}

.site-asset-serial {
    width: 12%;
    min-width: 120px;
    font-weight: 600;
    color: rgba(248, 249, 250, 0.9);
}

.site-asset-location {
    width: 12%;
    min-width: 120px;
    color: rgba(248, 249, 250, 0.75);
}

.site-asset-w3w {
    width: 12%;
    min-width: 120px;
    color: rgba(248, 249, 250, 0.75);
}

.site-asset-w3w a {
    color: inherit;
    text-decoration: underline;
}

.site-asset-serial a {
    color: inherit;
    text-decoration: underline;
}

.site-asset-product {
    width: 12%;
    min-width: 140px;
    color: rgba(248, 249, 250, 0.75);
}

.site-asset-ppm {
    width: 8%;
    min-width: 100px;
    text-align: center;
}

.site-asset-rag {
    width: 8%;
    min-width: 100px;
    text-align: center;
}

.site-asset-estimates,
.site-asset-installs,
.site-asset-repairs,
.site-asset-services {
    width: 8%;
    min-width: 90px;
    text-align: center;
}

.site-asset-last-visit {
    width: 10%;
    min-width: 110px;
    text-align: center;
}

.site-asset-row:last-child {
    border-bottom: none;
}

.new-customers-chart {
    position: relative;
    height: 440px;
    overflow: hidden;
}

.new-customers-chart canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.client-dashboard .client-panel.is-collapsed {
    min-height: 0;
}

.client-dashboard .client-panel.is-collapsed .client-panel-header {
    margin-bottom: 0;
}

.client-dashboard .client-panel.is-collapsed .client-panel-body,
.client-dashboard .client-panel.is-collapsed .client-panel-footer {
    display: none;
}

.client-dashboard .client-panel.is-collapsed .client-panel-footer {
    display: none !important;
}

.client-dashboard .revenue-row {
    display: grid;
    grid-template-columns: 110px 1fr 70px;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.85rem;
}

.client-dashboard .revenue-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: rgba(248, 249, 250, 0.9);
}

.client-dashboard .revenue-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bar-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.client-dashboard .revenue-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
}

.client-dashboard .revenue-bar span {
    display: block;
    height: 100%;
    width: var(--bar-fill, 0%);
    background: var(--bar-color, #3b82f6);
    border-radius: 999px;
}

.client-dashboard .revenue-bar .revenue-segment {
    display: block;
    height: 100%;
}

.client-dashboard .revenue-value {
    text-align: right;
    font-weight: 700;
}

.client-dashboard .revenue-row-total {
    margin-top: 0.2rem;
    padding-top: 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.client-dashboard .revenue-row-total .revenue-label,
.client-dashboard .revenue-row-total .revenue-value {
    font-weight: 800;
}

.client-dashboard .revenue-change {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(248, 249, 250, 0.7);
}

.client-dashboard .revenue-change.is-positive {
    color: #34d399;
}

.client-dashboard .revenue-change.is-negative {
    color: #f87171;
}

.client-dashboard .revenue-year-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.client-dashboard .revenue-year-panel-body {
    position: relative;
}

.client-dashboard .revenue-year-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 15, 25, 0.6);
    border-radius: 0.85rem;
    z-index: 2;
}

.client-dashboard .revenue-year-legend button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #f8f9fa;
    font-size: 0.72rem;
    font-weight: 600;
}

.client-dashboard .revenue-year-legend button.is-muted {
    opacity: 0.45;
}

.client-dashboard .revenue-year-legend .legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.client-dashboard .revenue-year-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.client-dashboard .revenue-toggle {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #f8f9fa;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
}

.client-dashboard .revenue-toggle.is-active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Light mode readability for the top Revenue Basis toolbar */
body:not(.dark-mode) .client-dashboard .dashboard-revenue-toolbar .client-panel-meta {
    color: #334155;
    font-weight: 600;
}

body:not(.dark-mode) .client-dashboard .dashboard-revenue-toolbar .revenue-toggle {
    border-color: #94a3b8;
    background: #ffffff;
    color: #0f172a;
}

body:not(.dark-mode) .client-dashboard .dashboard-revenue-toolbar .revenue-toggle:hover,
body:not(.dark-mode) .client-dashboard .dashboard-revenue-toolbar .revenue-toggle:focus {
    border-color: #64748b;
    background: #f8fafc;
}

body:not(.dark-mode) .client-dashboard .dashboard-revenue-toolbar .revenue-toggle.is-active {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #ffffff;
}

.client-dashboard .revenue-year-charts {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    flex-wrap: nowrap;
}

.client-dashboard .revenue-year-card {
    flex: 1 1 0;
    min-width: 120px;
    max-width: 180px;
    padding: 0.65rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.client-dashboard .revenue-year-title {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(248, 249, 250, 0.7);
}

.client-dashboard .revenue-year-canvas {
    position: relative;
    flex: 1;
    min-height: 120px;
}

.client-dashboard .revenue-year-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .client-dashboard .revenue-year-charts {
        gap: 0.4rem;
    }

    .client-dashboard .revenue-year-card {
        min-width: 70px;
        padding: 0.45rem;
    }

    .client-dashboard .revenue-year-canvas {
        min-height: 80px;
    }

    .client-dashboard .revenue-year-title {
        font-size: 0.65rem;
    }
}

.client-dashboard .coverage-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--accent, #34d399) calc(var(--value, 0) * 1%), rgba(255, 255, 255, 0.08) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.client-dashboard .coverage-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.client-dashboard .coverage-value {
    font-size: 1.6rem;
    font-weight: 800;
}

.client-dashboard .coverage-label {
    font-size: 0.75rem;
    color: rgba(248, 249, 250, 0.75);
}

.client-dashboard .coverage-stats {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.client-dashboard .coverage-stat-value {
    font-weight: 800;
    font-size: 1rem;
}

.client-dashboard .coverage-stat-label {
    font-size: 0.72rem;
    color: rgba(248, 249, 250, 0.65);
}

.client-dashboard .risk-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.client-dashboard .risk-tab {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(248, 249, 250, 0.6);
}

.client-dashboard .risk-tab.is-active {
    color: #f8f9fa;
}

.client-dashboard .risk-row {
    display: grid;
    grid-template-columns: 110px 1fr 90px;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.82rem;
}

.client-dashboard .risk-row-stacked {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
}

.client-dashboard .risk-row-stacked .risk-row-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-dashboard .risk-row-stacked .risk-bar {
    width: 100%;
}

.client-dashboard .risk-row-stacked .risk-btn {
    margin-left: auto;
}

.client-dashboard .risk-label {
    font-weight: 600;
    color: rgba(248, 249, 250, 0.85);
}

.client-dashboard .risk-meta {
    font-size: 0.7rem;
    color: rgba(248, 249, 250, 0.6);
}

.client-dashboard .risk-list {
    display: none;
    flex-direction: column;
    gap: 0.7rem;
}

.client-dashboard .risk-list.is-active {
    display: flex;
}

.client-dashboard .risk-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.client-dashboard .risk-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: #34d399;
    border-radius: 999px;
}

.client-dashboard .risk-btn {
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.client-dashboard .client-panel-grid-wide {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, 0.85fr) minmax(0, 1.4fr);
}

.client-dashboard .status-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.8rem;
}

.client-dashboard .status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(248, 249, 250, 0.85);
}

.client-dashboard .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    flex: 0 0 auto;
}

.client-dashboard .status-dot.is-amber {
    background: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

.client-dashboard .status-dot.is-red {
    background: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
}

.client-dashboard .status-dot.is-green {
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

.client-dashboard .status-note {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: rgba(248, 249, 250, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-dashboard .status-note-expandable {
    align-items: flex-start;
}

.client-dashboard .status-note-text {
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.client-dashboard .status-note-text.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.client-dashboard .status-note-toggle {
    border: none;
    background: none;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #60a5fa;
}

.client-dashboard .status-note-toggle:hover {
    color: #93c5fd;
}

.client-dashboard .status-note-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(96, 165, 250, 0.18);
    color: #60a5fa;
    flex: 0 0 auto;
}

.client-dashboard .status-note.is-alert {
    color: rgba(248, 249, 250, 0.72);
}

.client-dashboard .status-note.is-alert .status-note-icon {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.client-dashboard .alerts-view-link {
    border: none;
    background: none;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #60a5fa;
}

.client-dashboard .alerts-view-link:hover {
    color: #93c5fd;
}

.client-dashboard .alerts-jobs-view-link {
    border: none;
    background: none;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #60a5fa;
}

.client-dashboard .alerts-jobs-view-link:hover {
    color: #93c5fd;
}

.client-dashboard .alerts-asset-list {
    display: block;
}

.client-dashboard .alerts-asset-flag {
    width: 80px;
    text-align: center;
}

.client-dashboard .alerts-jobs-list {
    display: block;
}

.client-dashboard .alerts-asset-row {
    padding: 0.5rem 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.6rem;
}

.client-dashboard .alerts-asset-link {
    color: #f8f9fa;
    font-weight: 600;
    text-decoration: none;
}

.client-dashboard .alerts-asset-link:hover {
    text-decoration: underline;
}

.client-dashboard .alerts-asset-site {
    color: rgba(248, 249, 250, 0.6);
    font-size: 0.75rem;
}

.client-dashboard .client-panel-table {
    padding: 1.1rem 1.2rem 1.25rem;
}

.client-dashboard .open-estimates-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    font-size: 0.78rem;
    table-layout: fixed;
}

.client-dashboard .open-estimates-table thead th {
    text-align: left;
    font-size: 0.62rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(248, 249, 250, 0.55);
    font-weight: 700;
    padding: 0 0.75rem 0.3rem;
}

.client-dashboard .open-estimates-table .table-head-center,
.client-dashboard .open-jobs-table .table-head-center {
    text-align: center;
}

.client-dashboard .open-estimates-table .table-head-right,
.client-dashboard .open-jobs-table .table-head-right {
    text-align: right;
}

.client-dashboard .open-estimates-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.client-dashboard .open-estimates-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.12);
}

.client-dashboard .open-estimates-table tbody tr {
    cursor: pointer;
}

.client-dashboard .open-estimates-table td {
    padding: 0.65rem 0.75rem;
    color: rgba(248, 249, 250, 0.88);
    vertical-align: middle;
}

.client-dashboard .open-estimates-table th:nth-child(1),
.client-dashboard .open-jobs-table th:nth-child(1) {
    width: 13%;
}

.client-dashboard .open-estimates-table th:nth-child(2),
.client-dashboard .open-jobs-table th:nth-child(2) {
    width: 18%;
}

.client-dashboard .open-estimates-table th:nth-child(3),
.client-dashboard .open-jobs-table th:nth-child(3) {
    width: 20%;
}

.client-dashboard .open-estimates-table th:nth-child(4),
.client-dashboard .open-jobs-table th:nth-child(4) {
    width: 12%;
}

.client-dashboard .open-estimates-table th:nth-child(5),
.client-dashboard .open-jobs-table th:nth-child(5) {
    width: 7%;
}

.client-dashboard .open-estimates-table th:nth-child(6),
.client-dashboard .open-jobs-table th:nth-child(6) {
    width: 10%;
}

.client-dashboard .open-estimates-table th:nth-child(7),
.client-dashboard .open-jobs-table th:nth-child(7) {
    width: 10%;
}

.client-dashboard .open-estimates-table th:nth-child(8),
.client-dashboard .open-jobs-table th:nth-child(8) {
    width: 5%;
}

.client-dashboard .open-estimates-table th:nth-child(9),
.client-dashboard .open-jobs-table th:nth-child(9) {
    width: 5%;
}

.client-dashboard .open-estimates-table td:nth-child(5),
.client-dashboard .open-jobs-table td:nth-child(5),
.client-dashboard .open-estimates-table td:nth-child(7),
.client-dashboard .open-jobs-table td:nth-child(7),
.client-dashboard .open-estimates-table td:nth-child(8),
.client-dashboard .open-jobs-table td:nth-child(8),
.client-dashboard .open-estimates-table td:nth-child(9),
.client-dashboard .open-jobs-table td:nth-child(9) {
    text-align: center;
}

.client-dashboard .open-estimates-table td:nth-child(6),
.client-dashboard .open-jobs-table td:nth-child(6) {
    text-align: right;
}

.client-dashboard .open-estimates-table td:nth-child(6) {
    text-align: center;
}

.client-dashboard .open-jobs-table td:nth-child(5),
.client-dashboard .open-jobs-table td:nth-child(6),
.client-dashboard .open-jobs-table td:nth-child(7),
.client-dashboard .open-jobs-table td:nth-child(8),
.client-dashboard .open-jobs-table td:nth-child(9) {
    text-align: center;
}

.client-dashboard .open-estimates-table td:first-child {
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.client-dashboard .open-estimates-table td:last-child {
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.client-dashboard .estimate-ref {
    font-weight: 700;
    color: #f8fafc;
}

.client-dashboard .estimate-meta {
    font-size: 0.68rem;
    color: rgba(248, 249, 250, 0.55);
}

.client-dashboard .estimate-link {
    color: inherit;
    text-decoration: none;
}

.client-dashboard .estimate-link:hover {
    color: #93c5fd;
}

.client-dashboard .site-title {
    font-weight: 600;
    color: #dbeafe;
}

.client-dashboard .site-ref {
    font-size: 0.68rem;
    color: rgba(248, 249, 250, 0.55);
}

.client-dashboard .age-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    border: 1px solid rgba(248, 249, 250, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(248, 249, 250, 0.85);
}

.client-dashboard .age-badge.is-amber {
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

.client-dashboard .age-badge.is-red {
    border-color: rgba(248, 113, 113, 0.5);
    color: #f87171;
}

.client-dashboard .age-badge.is-green {
    border-color: rgba(52, 211, 153, 0.5);
    color: #34d399;
}

.client-dashboard .status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: rgba(148, 163, 184, 0.2);
    color: rgba(248, 249, 250, 0.8);
}

.client-dashboard .status-pill.is-amber {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
}

.client-dashboard .status-pill.is-red {
    background: rgba(248, 113, 113, 0.18);
    color: #f87171;
}

.client-dashboard .status-pill.is-green {
    background: rgba(52, 211, 153, 0.18);
    color: #34d399;
}

.client-dashboard .status-pill.is-blue {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.client-dashboard .estimate-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: rgba(148, 163, 184, 0.18);
    color: rgba(248, 249, 250, 0.7);
}

.client-dashboard .estimate-type-badge.is-repair {
    background: rgba(52, 211, 153, 0.18);
    color: #34d399;
}

.client-dashboard .estimate-type-badge.is-install {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.client-dashboard .estimate-type-badge.is-service {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
}

.client-dashboard .currency-cell {
    font-weight: 700;
    text-align: right;
}

.client-dashboard .table-age-cell,
.client-dashboard .table-status-cell {
    text-align: center;
}

.client-dashboard .open-jobs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    font-size: 0.76rem;
    table-layout: fixed;
}

.client-dashboard .open-jobs-table thead th {
    text-align: left;
    font-size: 0.6rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(248, 249, 250, 0.55);
    font-weight: 700;
    padding: 0 0.75rem 0.3rem;
}

.client-dashboard .open-jobs-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.client-dashboard .open-jobs-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.12);
}

.client-dashboard .open-jobs-table tbody tr {
    cursor: pointer;
}

.client-dashboard .open-jobs-table td {
    padding: 0.6rem 0.75rem;
    color: rgba(248, 249, 250, 0.88);
    vertical-align: middle;
}

.client-dashboard .open-jobs-table td:first-child {
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.client-dashboard .open-jobs-table td:last-child {
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.client-dashboard .table-expand {
    display: flex;
    justify-content: flex-start;
}

.client-dashboard .table-expand-toggle {
    border: none;
    background: none;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #60a5fa;
}

.client-dashboard .table-expand-toggle:hover {
    color: #93c5fd;
}

.client-dashboard .job-type {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: rgba(148, 163, 184, 0.15);
    color: rgba(248, 249, 250, 0.8);
}

.site-summary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 0.8rem;
    opacity: 0.85;
}

.site-summary-link:hover {
    opacity: 1;
}

.site-summary-link.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.job-notes-tooltip .tooltip-inner {
    max-width: min(90vw, 420px);
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: none;
    text-align: left;
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 0.65rem 0.75rem;
}

.job-notes-tooltip .tooltip-inner::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.job-notes-tooltip .job-notes-item + .job-notes-item {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.job-notes-tooltip .job-notes-meta {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.2rem;
}

.job-notes-tooltip .job-notes-text {
    color: rgba(255, 255, 255, 0.9);
    word-break: break-word;
}

.job-notes-tooltip .job-notes-empty {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
}

.job-notes-fallback {
    position: fixed;
    z-index: 1080;
    max-width: min(90vw, 420px);
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: none;
    background: rgba(17, 24, 39, 0.98);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.4rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    padding: 0.65rem 0.75rem;
    text-align: left;
    font-size: 0.72rem;
    line-height: 1.35;
}

.job-notes-fallback::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.job-notes-fallback.is-hidden {
    display: none;
}

.client-dashboard .job-type.is-repair {
    background: rgba(52, 211, 153, 0.18);
    color: #34d399;
}

.client-dashboard .job-type.is-install {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.client-dashboard .job-ref {
    font-weight: 700;
    color: #f8fafc;
}

.client-dashboard .job-meta {
    font-size: 0.66rem;
    color: rgba(248, 249, 250, 0.55);
}

.client-dashboard .job-site {
    font-weight: 600;
    color: #dbeafe;
}

.client-dashboard .job-submeta {
    font-size: 0.66rem;
    color: rgba(248, 249, 250, 0.55);
}

.client-dashboard .job-assign {
    font-weight: 600;
    color: rgba(248, 249, 250, 0.85);
}

.client-dashboard .job-assign-meta {
    font-size: 0.66rem;
    color: rgba(248, 249, 250, 0.55);
}

.client-dashboard .rag-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    border: 1px solid rgba(248, 249, 250, 0.18);
    color: rgba(248, 249, 250, 0.8);
}

.client-dashboard .rag-badge.is-red {
    border-color: rgba(248, 113, 113, 0.5);
    color: #f87171;
}

.client-dashboard .rag-badge.is-amber {
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

.client-dashboard .rag-badge.is-green {
    border-color: rgba(52, 211, 153, 0.5);
    color: #34d399;
}

.client-dashboard .jobs-note {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    color: rgba(248, 249, 250, 0.6);
}

.client-dashboard .service-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    align-items: center;
    justify-content: space-between;
}

.client-dashboard .open-jobs-toolbar,
.client-dashboard .open-estimates-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.client-dashboard .service-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.client-dashboard .filter-pill {
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: rgba(148, 163, 184, 0.18);
    color: rgba(248, 249, 250, 0.7);
    cursor: pointer;
}

.client-dashboard .filter-pill.is-active {
    background: rgba(251, 191, 36, 0.22);
    color: #fbbf24;
}

.client-dashboard .service-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.client-dashboard .summary-pill {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(248, 249, 250, 0.75);
    letter-spacing: 0.2px;
}

.client-dashboard .summary-pill strong {
    color: #f8fafc;
}

.client-dashboard .service-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.client-dashboard .service-select {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(248, 249, 250, 0.75);
    border-radius: 999px;
    font-size: 0.65rem;
    padding: 0.25rem 0.8rem;
}

.client-dashboard .service-jobs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    font-size: 0.74rem;
}

.client-dashboard .service-jobs-table thead th {
    text-align: left;
    font-size: 0.6rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(248, 249, 250, 0.55);
    font-weight: 700;
    padding: 0 0.75rem 0.3rem;
}

.client-dashboard .service-jobs-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.client-dashboard .service-jobs-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.12);
}

.client-dashboard .service-jobs-table tbody tr {
    cursor: pointer;
}

.client-dashboard .service-jobs-table td {
    padding: 0.6rem 0.75rem;
    color: rgba(248, 249, 250, 0.88);
    vertical-align: middle;
}

.client-dashboard .service-jobs-table td:first-child {
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.client-dashboard .service-jobs-table td:last-child {
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.client-dashboard .due-date {
    font-weight: 700;
    color: #f8fafc;
}

.client-dashboard .due-window {
    font-size: 0.66rem;
    color: rgba(248, 249, 250, 0.55);
}

.client-dashboard .service-ref {
    font-weight: 700;
    color: #f8fafc;
}

.client-dashboard .service-tag {
    font-size: 0.66rem;
    color: rgba(248, 249, 250, 0.55);
}

.client-dashboard .service-ref-link {
    color: inherit;
    text-decoration: none;
}

.client-dashboard .service-ref-link:hover {
    color: #93c5fd;
}

.client-dashboard .service-status {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
}

.history-timeline {
    position: relative;
    width: 80%;
    height: 140px;
    margin: 8px auto 16px;
    overflow: visible;
    padding: 0 24px;
}

.history-timeline-shell {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.history-timeline-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.history-timeline-filters .timeline-filter {
    border-color: #d1d5db;
}

.history-timeline-filters .timeline-filter.is-active {
    color: #111827;
}

.history-timeline-filters .timeline-filter[data-filter="estimate"].is-active {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.history-timeline-filters .timeline-filter[data-filter="repair"].is-active {
    background: #34d399;
    border-color: #34d399;
}

.history-timeline-filters .timeline-filter[data-filter="service"].is-active {
    background: #fbbf24;
    border-color: #fbbf24;
}

.history-timeline-filters .timeline-filter[data-filter="install"].is-active {
    background: #3b82f6;
    border-color: #3b82f6;
}

.history-timeline-filters .timeline-filter[data-filter="remedial"].is-active {
    background: #fb7185;
    border-color: #fb7185;
}

.history-timeline-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.history-timeline-scroll {
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 8px;
}

.history-timeline-scroll.is-dragging {
    cursor: grabbing;
}

.history-timeline-scroll:hover {
    cursor: grab;
}

.history-timeline.is-zoomed {
    margin: 8px 0 16px;
}

.history-timeline-range {
    margin: 4px 0 0;
}

.history-timeline .timeline-line {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 50%;
    height: 2px;
    background: #d1d5db;
}

.history-timeline .timeline-grid {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    right: 24px;
    pointer-events: none;
}

.history-timeline .timeline-gridline {
    position: absolute;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: rgba(107, 114, 128, 0.35);
}

.history-timeline .timeline-gridline--year {
    width: 2px;
    background: rgba(107, 114, 128, 0.65);
}

.history-timeline .timeline-crosshair {
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: rgba(17, 24, 39, 0.5);
    opacity: 0;
    pointer-events: none;
}

.history-timeline .timeline-hover-date {
    position: absolute;
    top: 6px;
    transform: translateX(-50%);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(17, 24, 39, 0.9);
    color: #fff;
    opacity: 0;
    pointer-events: none;
}

.history-timeline .timeline-year-label {
    position: absolute;
    bottom: -18px;
    left: 6px;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

.history-timeline .timeline-items {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    right: 24px;
}

.history-timeline .timeline-item {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    max-width: 180px;
}

.history-timeline .timeline-item--job {
    top: 12px;
}

.history-timeline .timeline-item--estimate {
    bottom: 12px;
}

.history-timeline .timeline-bubble {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    color: #111827;
    background: #e5e7eb;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.history-timeline .timeline-bubble-link {
    text-decoration: none;
    color: inherit;
}

.history-timeline .timeline-bubble-link:hover .timeline-bubble {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
}

.history-timeline .timeline-date {
    display: block;
    font-size: 11px;
    opacity: 0.9;
}

.history-timeline .timeline-label {
    position: absolute;
    top: calc(50% + 8px);
    font-size: 12px;
    color: #6b7280;
}

.history-timeline .timeline-label--start {
    left: 24px;
    transform: translateX(0);
}

.history-timeline .timeline-label--end {
    right: 24px;
    transform: translateX(0);
    text-align: right;
}

.history-timeline.is-empty .timeline-line {
    opacity: 0.4;
}

.history-timeline.is-empty .timeline-label {
    color: #9ca3af;
}

.repair-summary-timeline {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}

.repair-summary-timeline__items {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: max-content;
    padding-bottom: 24px;
}

.repair-summary-timeline__items::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 19px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #14b8a6 0%, #3b82f6 70%, #64748b 100%);
}

.repair-summary-timeline__item {
    position: relative;
    width: 170px;
    flex: 0 0 170px;
}

.repair-summary-timeline__card {
    min-height: 84px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(31, 41, 55, 0.1);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.08);
}

.repair-summary-timeline__title {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    line-height: 1.2;
}

.repair-summary-timeline__date {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.repair-summary-timeline__meta {
    margin-top: 6px;
    font-size: 12px;
    color: #475569;
    line-height: 1.2;
}

.repair-summary-timeline__dot-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.repair-summary-timeline__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.repair-summary-timeline__item--start .repair-summary-timeline__dot {
    background: #14b8a6;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.35);
}

.repair-summary-timeline__item--status .repair-summary-timeline__dot {
    background: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.repair-summary-timeline__item--scheduled .repair-summary-timeline__dot {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}

.repair-summary-timeline__item--estimate_sent .repair-summary-timeline__dot {
    background: #06b6d4;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.35);
}

.repair-summary-timeline__item--repair_date .repair-summary-timeline__dot {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
}

.repair-summary-timeline__item--linked_estimate .repair-summary-timeline__dot {
    background: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35);
}

.repair-summary-timeline__delta {
    margin-top: 4px;
    font-size: 12px;
    color: #0f766e;
    text-align: center;
    font-weight: 600;
}

.repair-summary-timeline.is-empty .repair-summary-timeline__items::after {
    opacity: 0.35;
}

@media (max-width: 1200px) {
    .client-dashboard .client-panel-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .client-dashboard .client-panel-grid-wide {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

}

@media (max-width: 768px) {
    .client-dashboard .client-panel-grid {
        grid-template-columns: 1fr;
    }

    .client-dashboard .client-panel-grid-wide {
        grid-template-columns: 1fr;
    }

    .client-dashboard .client-panel {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .history-timeline-shell {
        flex-direction: column;
    }

    .history-timeline-filters {
        gap: 4px;
    }

    .history-timeline-controls {
        flex-direction: row;
        align-items: center;
        margin-top: 0;
    }

    .history-timeline {
        height: 120px;
    }

    .history-timeline .timeline-bubble {
        font-size: 11px;
    }
}
