/* theme.css - Global Design Tokens & Navigation */
:root {
    /* Eye-Comfort Canvas & Surfaces */
    --bg-main: #ebf0f5;         
    --surface: #ffffff;         
    --border-subtle: #e2e8f0;    
    
    /* Typography */
    --text-heading: #0f172a;     
    --text-main: #334155;        
    --text-muted: #64748b;       
    --text-light: #94a3b8;       
    
    /* Operational Green Accents */
    --primary-green: #059669;
    --primary-green-light: #d1fae5;
    --primary-green-hover: #047857;

    /* Status & Utility Accents */
    --danger-color: #dc2626;

    /* Top Navigation Header */
    --nav-bg: #060911;
    --nav-border: #1e293b;
    --nav-text: #f8fafc;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: system-ui, -apple-system, sans-serif; 
}

body { 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
}

/* Shared Top Navigation Bar */
.top-nav { 
    background: var(--nav-bg); 
    padding: 12px 32px; 
    border-bottom: 1px solid var(--nav-border); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    position: sticky; 
    top: 0; 
    z-index: 100;
}

.brand { 
    font-size: 0.95rem; 
    font-weight: 700; 
    color: var(--nav-text); 
    letter-spacing: -0.01em; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.brand span { 
    color: #10b981; 
    font-weight: 400; 
}

/* Right Header Group */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Header User Identity Badge */
.user-email-badge {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
}

/* Main Portal Navigation Link */
.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.back-link:hover { 
    color: #ffffff; 
}

/* Cloudflare Access Logout Button */
.logout-btn {
    color: var(--text-light);
    background: #111726;
    border: 1px solid var(--nav-border);
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.logout-btn:hover {
    color: var(--nav-text);
    background: rgba(255, 255, 255, 0.08);
    border-color: #334155;
}

/* Main Container Layout */
.page-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 32px;
    flex-grow: 1;
}

/* ==========================================================================
   REPORTS DASHBOARD & MODAL STYLING (Safe Extensions for reports.html)
   ========================================================================== */

/* Header Layout Elements */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 4px 0 0 0;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 4px 0 0 0;
}

/* Buttons */
.btn-action {
    background-color: var(--primary-green);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-action:hover {
    background-color: var(--primary-green-hover);
}

.btn-secondary {
    background-color: #64748b;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #475569;
}

/* Content Cards & Tables */
.content-card {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.reports-table th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.reports-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    line-height: 1.5;
    color: var(--text-main);
}

.reports-table tr:last-child td {
    border-bottom: none;
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.clickable-row:hover {
    background-color: #f8fafc;
}

/* Modal Engine */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(4px);
    z-index: 1000; 
    justify-content: center; 
    align-items: center; 
    padding: 1rem; 
    box-sizing: border-box;
}

/* Forces flexbox centering whether opened via class (.active) or inline script (display: block) */
.modal.active,
.modal[style*="display: block"] {
    display: flex !important;
}

.modal-content { 
    background: var(--surface); 
    width: 100%; 
    max-width: 800px; 
    border-radius: 12px; 
    padding: 24px; 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); 
    max-height: 90vh; 
    overflow-y: auto; 
    border: 1px solid var(--border-subtle);
    box-sizing: border-box;
}

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 18px; 
    border-bottom: 1px solid var(--border-subtle); 
    padding-bottom: 12px; 
}

.close-btn { 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--text-muted); 
}

.modal-footer { 
    display: flex; 
    justify-content: flex-end; 
    gap: 10px; 
    margin-top: 24px; 
    border-top: 1px solid var(--border-subtle); 
    padding-top: 16px; 
}

.section-header-modal { 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    margin: 20px 0 12px 0; 
    border-left: 3px solid var(--primary-green); 
    padding-left: 8px; 
}

.detail-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    margin-bottom: 12px; 
}

.detail-card { 
    background: #f8fafc; 
    border: 1px solid var(--border-subtle); 
    padding: 10px 12px; 
    border-radius: 6px; 
}

.detail-card label { 
    font-size: 10.5px; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--text-muted); 
    display: block; 
    margin-bottom: 2px; 
}

.detail-card p { 
    font-size: 13.5px; 
    color: var(--text-heading); 
    margin: 0;
    word-break: break-word; 
    white-space: pre-wrap; 
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13.5px;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-heading);
}

.text-danger { color: var(--danger-color); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ==========================================================================
   MAINTENANCE & CABLE CHECK DASHBOARD (Scoped under .portal-dashboard)
   ========================================================================== */

.portal-dashboard .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.portal-dashboard .btn-portal {
    background: #64748b;
    text-decoration: none;
    padding: 8px 16px;
    color: #ffffff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.15s ease;
}

.portal-dashboard .btn-portal:hover { 
    background: #475569; 
}

/* Navigation View Buttons */
.portal-dashboard .view-nav {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.portal-dashboard .view-btn {
    background-color: #64748b;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 0.15s ease;
}

.portal-dashboard .view-btn.active {
    background-color: var(--primary-green);
}

.portal-dashboard .view-section { 
    display: none; 
}

.portal-dashboard .view-section.active-section { 
    display: block; 
}

/* Cards & Forms */
.portal-dashboard .card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.portal-dashboard .card {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.portal-dashboard .card h3 {
    margin-top: 0;
    font-size: 18px;
    color: var(--text-heading);
}

.portal-dashboard label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-heading);
}

.portal-dashboard input[type="text"],
.portal-dashboard input[type="date"],
.portal-dashboard textarea,
.portal-dashboard select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 12px;
    font-size: 13.5px;
    font-family: inherit;
    background-color: #ffffff;
}

.portal-dashboard textarea {
    resize: vertical;
    height: 60px;
}

.portal-dashboard button {
    background-color: var(--primary-green);
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 0.15s ease;
}

.portal-dashboard button:hover { 
    background-color: var(--primary-green-hover); 
}

/* Filter Bar & Table Container Cards */
.portal-dashboard .filter-bar {
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.portal-dashboard .filter-btn {
    background-color: #e2e8f0;
    color: var(--text-main);
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.portal-dashboard .filter-btn.active {
    background-color: var(--primary-green);
    color: #ffffff;
}

.portal-dashboard .table-card {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.portal-dashboard table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.portal-dashboard th, 
.portal-dashboard td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
}

.portal-dashboard th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.portal-dashboard tr.ticket-row { 
    cursor: pointer; 
}

.portal-dashboard tr.ticket-row:hover { 
    background-color: #f8fafc; 
}

.portal-dashboard .no-tickets {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

/* Status Badges & Legend */
.portal-dashboard .status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.portal-dashboard .status-open { background-color: #e0f2fe; color: #0284c7; }
.portal-dashboard .status-inprogress { background-color: #fef3c7; color: #d97706; }
.portal-dashboard .status-resolved { background-color: var(--primary-green-light); color: var(--primary-green); }

.portal-dashboard .badge-complete { background-color: var(--primary-green-light); color: var(--primary-green); padding: 4px 8px; border-radius: 4px; font-weight: 700; font-size: 11px; }
.portal-dashboard .badge-inprogress { background-color: #fef3c7; color: #d97706; padding: 4px 8px; border-radius: 4px; font-weight: 700; font-size: 11px; }
.portal-dashboard .badge-overdue { background-color: #fee2e2; color: var(--danger-color); padding: 4px 8px; border-radius: 4px; font-weight: 700; font-size: 11px; }

.portal-dashboard .legend-box {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: var(--text-main);
}

.portal-dashboard .legend-box strong {
    color: var(--text-heading);
    display: block;
    margin-bottom: 6px;
}

.portal-dashboard .legend-items { display: flex; gap: 20px; flex-wrap: wrap; }
.portal-dashboard .legend-item { display: flex; align-items: center; gap: 6px; }

/* Checklist Matrix Spreadsheet Table */
.portal-dashboard .spreadsheet-container {
    overflow-x: auto;
    max-height: 650px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.portal-dashboard .matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.portal-dashboard .matrix-table th, 
.portal-dashboard .matrix-table td {
    padding: 6px 4px;
    border-bottom: 1px solid var(--border-subtle);
    border-right: 1px solid #f1f5f9;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-dashboard .matrix-table th {
    background-color: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: center;
    font-size: 11px;
    color: var(--text-heading);
    border-bottom: 2px solid #cbd5e1;
    white-space: normal;
    word-wrap: break-word;
    height: 45px;
}

.portal-dashboard .matrix-table td { text-align: center; }

.portal-dashboard .matrix-table th:nth-child(1), .portal-dashboard .matrix-table td:nth-child(1) { width: 95px; min-width: 95px; }
.portal-dashboard .matrix-table th:nth-child(2), .portal-dashboard .matrix-table td:nth-child(2) { width: 95px; min-width: 95px; }
.portal-dashboard .matrix-table th:nth-child(n+3):nth-child(-n+12),
.portal-dashboard .matrix-table td:nth-child(n+3):nth-child(-n+12) { width: 55px; min-width: 55px; text-align: center; }
.portal-dashboard .matrix-table th:nth-child(13), .portal-dashboard .matrix-table td:nth-child(13) { width: 65px; min-width: 65px; }
.portal-dashboard .matrix-table th:nth-child(14), .portal-dashboard .matrix-table td:nth-child(14) { width: 110px; min-width: 110px; }
.portal-dashboard .matrix-table th:nth-child(15), .portal-dashboard .matrix-table td:nth-child(15) { width: 110px; min-width: 110px; }
.portal-dashboard .matrix-table th:nth-child(16), .portal-dashboard .matrix-table td:nth-child(16) { width: 120px; min-width: 120px; }

.portal-dashboard .matrix-table td.station-col {
    text-align: left;
    font-weight: 700;
    background-color: var(--surface);
    position: sticky;
    left: 0;
    z-index: 1;
    border-right: 2px solid #cbd5e1;
}

.portal-dashboard .matrix-table th.station-th {
    position: sticky;
    left: 0;
    z-index: 3;
    background-color: #f8fafc;
    border-right: 2px solid #cbd5e1;
}

.portal-dashboard .slim-select {
    width: 45px;
    padding: 1px;
    font-size: 11px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
    margin-bottom: 0;
}

.portal-dashboard .slim-select.val-green { background-color: var(--primary-green-light) !important; color: var(--primary-green-hover); font-weight: bold; }
.portal-dashboard .slim-select.val-red { background-color: #fee2e2 !important; color: var(--danger-color); font-weight: bold; }

.portal-dashboard .ticket-alert-badge {
    font-size: 9px;
    color: var(--danger-color);
    background-color: #fee2e2;
    padding: 1px 3px;
    border-radius: 3px;
    margin-top: 2px;
    display: block;
    font-weight: bold;
    line-height: 1.1;
}

.portal-dashboard .slim-input {
    width: 100%;
    padding: 3px;
    font-size: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 0;
}

.portal-dashboard .slim-date {
    width: 90px;
    padding: 3px;
    font-size: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #f8fafc;
    margin-bottom: 0;
}

.portal-dashboard .row-passed { background-color: #ecfdf5 !important; }
.portal-dashboard .row-passed td.station-col { background-color: #ecfdf5 !important; }
.portal-dashboard .history-dropdown-row { background-color: #f8fafc; }

/* Dashboard Modal Extras */
.portal-dashboard .timeline-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 10px;
    font-size: 12px;
    font-family: monospace;
    white-space: pre-wrap;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 15px;
    color: var(--text-main);
}

.portal-dashboard .modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

/* ==========================================================================
   GLOBAL BADGES & STATUS PILLS (Restores Table Badges Site-Wide)
   ========================================================================== */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

/* Open / Normal SLA (Blue) */
.badge-info {
    background-color: #e0f2fe;
    color: #0284c7;
}

/* In Progress / Aging (Yellow / Amber) */
.badge-warning {
    background-color: #fef3c7;
    color: #d97706;
}

/* Resolved / Completed (Green) */
.badge-success {
    background-color: var(--primary-green-light);
    color: var(--primary-green);
}

/* Critical / Overdue (Red) */
.badge-danger {
    background-color: #fee2e2;
    color: var(--danger-color);
}

/* Prevent search & filter inputs from expanding to 100% width */
.search-box .form-control {
    width: auto;
    flex-shrink: 0;
}

/* ==========================================================================
   PORTAL DASHBOARD GRID & CARD COMPONENTS (Safe Extensions)
   ========================================================================== */

/* Top Search Bar Input */
.search-box { 
    background: #111726; 
    border: 1px solid var(--nav-border); 
    border-radius: 8px; 
    padding: 6px 12px; 
    width: 380px; 
    display: flex; 
    align-items: center; 
    gap: 8px;
    transition: border-color 0.15s ease;
}
.search-box:focus-within { border-color: var(--primary-green); }
.search-box svg { stroke: var(--text-muted); }
.search-box input { background: transparent; border: none; outline: none; color: #fff; font-size: 13px; width: 100%; }

/* Header Status Badges */
.status-badge { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.status-badge.operational { color: #10b981; }
.status-badge.degraded { color: #f87171; }
.status-badge.checking { color: var(--text-light); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background-color: currentColor; display: inline-block; }

/* Quick Action Banner Row */
.quick-actions-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.quick-actions-label { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.quick-btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-btn {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-heading);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.quick-btn:hover { background: #ffffff; border-color: var(--primary-green); color: var(--primary-green); transform: translateY(-1px); }

/* Main Three-Column Layout */
.main-grid { display: grid; grid-template-columns: 240px 1fr 260px; gap: 24px; }
.sidebar-stack { display: flex; flex-direction: column; gap: 16px; }
.cards-column { display: flex; flex-direction: column; gap: 24px; }
.section-header { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* Dashboard Interactive Action Cards */
.card { 
    position: relative;
    background: var(--surface); 
    border: 1px solid var(--border-subtle); 
    border-radius: 10px; 
    padding: 18px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover { border-color: var(--primary-green); transform: translateY(-2px); box-shadow: 0 8px 20px -4px rgba(0,0,0,0.06); }

.card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.icon-box {
    width: 36px; height: 36px;
    background: var(--primary-green-light);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--primary-green);
}
.card-titles h3 { font-size: 0.9rem; color: var(--text-heading); font-weight: 700; margin-bottom: 4px; }
.card-titles p { color: var(--text-muted); font-size: 12px; line-height: 1.4; }

.card-action { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--border-subtle); z-index: 2; }
.btn-link { font-size: 12px; font-weight: 700; color: var(--primary-green); text-decoration: none; margin-left: auto; }
.btn-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.legacy-link { font-size: 11px; color: #d97706; text-decoration: none; font-weight: 600; position: relative; z-index: 2; }

/* Knowledgebase & Status Sidebar Cards */
.kb-card { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 18px; }
.kb-header h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-heading); }
.kb-header p { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.kb-badge { font-size: 10px; font-weight: 700; background: #f1f5f9; color: var(--text-muted); padding: 2px 8px; border-radius: 10px; display: inline-block; margin-top: 8px; }
.kb-divider { height: 1px; background: var(--border-subtle); margin: 14px 0; }
.kb-group-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.kb-list { list-style: none; }
.kb-list li { margin-bottom: 6px; }
.kb-list a { font-size: 12px; color: var(--text-main); text-decoration: none; font-weight: 500; }
.kb-list a:hover { color: var(--primary-green); }
.kb-footer-link { font-size: 12px; font-weight: 700; color: var(--primary-green); text-decoration: none; }

.cloud-status-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.cloud-service-name { font-size: 12px; font-weight: 600; color: var(--text-heading); display: flex; align-items: center; gap: 8px; text-decoration: none; }

.status-pill { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 12px; display: inline-flex; align-items: center; gap: 5px; }
.status-pill.operational { background: var(--primary-green-light); color: var(--primary-green); }
.status-pill.minor { background: #fef3c7; color: #d97706; }
.status-pill.degraded { background: #fee2e2; color: var(--danger-color); }
.status-pill.checking { background: #f1f5f9; color: var(--text-muted); }

.text-green { color: var(--primary-green); }

footer { text-align: center; color: var(--text-muted); font-size: 11.5px; padding: 20px; border-top: 1px solid var(--border-subtle); margin-top: 32px; }

/* Responsive break for tablets */
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; }
    .search-box { width: 100%; }
}
