/* =========================================================
   STRATAFLEET UI — SPECIALTY WIDGET LAYER
   Owns:
   - specialty dashboard widgets not already owned by cards
   - compact utility blocks
   - small compliance-specific helpers
   - mini telemetry shells

   Does NOT own:
   - generic list items
   - generic stat rows
   - generic chart boxes
   - generic alert bars
   - generic panel/card surfaces
   ========================================================= */


/* =========================================================
   SPECIALTY WIDGET COLUMNS / STACKS
   ========================================================= */

.sf-widget-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.sf-widget-cluster {
    display: grid;
    gap: 14px;
}

.sf-widget-cluster-tight {
    display: grid;
    gap: 10px;
}


/* =========================================================
   COMPACT EXEC / TELEMETRY BLOCKS
   ========================================================= */

.sf-telemetry-tile {
    position: relative;
    min-width: 0;
    border-radius: 18px;
    overflow: hidden;
    padding: 14px 14px 15px;
    background:
        linear-gradient(180deg, rgba(12, 19, 34, 0.86), rgba(9, 16, 29, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow:
        0 12px 24px rgba(2, 6, 23, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.sf-telemetry-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.07), transparent 34%);
}

.sf-telemetry-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--sf-text-soft);
}

.sf-telemetry-value {
    margin-top: 8px;
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #f8fafc;
}

.sf-telemetry-sub {
    margin-top: 8px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--sf-text-soft);
}

.sf-telemetry-inline {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


/* =========================================================
   MINI SIGNAL / STATUS WIDGETS
   ========================================================= */

.sf-signal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.sf-signal-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf-signal-copy {
    min-width: 0;
}

.sf-signal-title {
    font-size: 0.87rem;
    font-weight: 800;
    color: #f8fafc;
}

.sf-signal-sub {
    margin-top: 3px;
    font-size: 0.79rem;
    line-height: 1.4;
    color: var(--sf-text-soft);
}

.sf-signal-value {
    flex: 0 0 auto;
    font-size: 0.94rem;
    font-weight: 800;
    color: #ffffff;
}

.sf-signal-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
}

.sf-signal-dot-info {
    background: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.24);
}

.sf-signal-dot-success {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.22);
}

.sf-signal-dot-warning {
    background: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.22);
}

.sf-signal-dot-danger {
    background: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.22);
}


/* =========================================================
   MINI PROGRESS / TRACK WIDGETS
   ========================================================= */

.sf-mini-progress-stack {
    display: grid;
    gap: 12px;
}

.sf-mini-progress-item {
    display: grid;
    gap: 8px;
}

.sf-mini-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 0.80rem;
    color: var(--sf-text-soft);
}

.sf-mini-progress-title {
    font-weight: 700;
    color: #e2e8f0;
}

.sf-mini-progress-value {
    font-weight: 800;
    color: #f8fafc;
}

.sf-mini-progress-track {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.07);
}

.sf-mini-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sf-cyan), var(--sf-blue));
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}

.sf-mini-progress-bar-success {
    background: linear-gradient(90deg, #22c55e, #4ade80);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.18);
}

.sf-mini-progress-bar-warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.18);
}

.sf-mini-progress-bar-danger {
    background: linear-gradient(90deg, #ef4444, #f87171);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.18);
}


/* =========================================================
   COMPLIANCE-SPECIFIC HELPERS
   ========================================================= */

.sf-compliance-stack {
    display: grid;
    gap: 12px;
}

.sf-compliance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.sf-compliance-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sf-compliance-item-copy {
    min-width: 0;
}

.sf-compliance-item-title {
    font-size: 0.87rem;
    font-weight: 800;
    color: #f8fafc;
}

.sf-compliance-item-sub {
    margin-top: 3px;
    font-size: 0.80rem;
    line-height: 1.4;
    color: var(--sf-text-soft);
}

.sf-compliance-item-value {
    flex: 0 0 auto;
}

.sf-compliance-accent {
    width: 14px;
    height: 54px;
    border-radius: 999px;
    flex: 0 0 auto;
    opacity: 0.94;
}

.sf-compliance-accent-warning {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.82), rgba(245, 158, 11, 0.16));
}

.sf-compliance-accent-danger {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.82), rgba(239, 68, 68, 0.16));
}

.sf-compliance-accent-info {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.82), rgba(56, 189, 248, 0.16));
}

.sf-compliance-accent-success {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.82), rgba(34, 197, 94, 0.16));
}


/* =========================================================
   MINI CHART / SPARK SURFACES
   ========================================================= */

.sf-spark-shell {
    position: relative;
    min-height: 74px;
    border-radius: 14px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.05), rgba(56, 189, 248, 0.01)),
        rgba(255,255,255,0.02);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.sf-spark-shell svg,
.sf-spark-shell canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sf-spark-shell canvas {
    width: 100% !important;
    height: 100% !important;
}


/* =========================================================
   DENSE RESPONSIVE HELPERS
   ========================================================= */

@media (max-width: 860px) {
    .sf-signal-row,
    .sf-compliance-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .sf-signal-value,
    .sf-compliance-item-value {
        width: 100%;
    }
}