/* Gig UK brand — sourced from gig.uk.net */
:root {
    --gig-navy: #002659;
    --gig-navy-mid: #003d7a;
    --gig-navy-dark: #001a3d;
    --gig-teal: #1cbbb4;
    --gig-teal-dark: #17a39d;
    --gig-teal-light: rgba(28, 187, 180, 0.12);
    --gig-surface: #f1f5f9;
    --gig-surface-alt: #f8fafc;
    --gig-text: #020817;
    --gig-text-muted: #64748b;
    --gig-border: rgba(0, 38, 89, 0.1);
    --gig-sidebar: #192335;
    --gig-sidebar-dark: #121a28;
    --gig-sidebar-border: rgba(255, 255, 255, 0.08);
    --gig-card-shadow: 0 0.35rem 1.25rem rgba(0, 38, 89, 0.06);

    /* Bootstrap overrides */
    --bs-primary: #1cbbb4;
    --bs-primary-rgb: 28, 187, 180;
    --bs-success: #1cbbb4;
    --bs-success-rgb: 28, 187, 180;
    --bs-link-color: #002659;
    --bs-link-hover-color: #1cbbb4;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body.app-body {
    background: linear-gradient(180deg, var(--gig-surface) 0%, var(--gig-surface-alt) 220px, #ffffff 220px);
    font-family: var(--bs-body-font-family);
    color: var(--gig-text);
    min-height: 100vh;
}

/* Navbar */
.app-navbar {
    background: linear-gradient(135deg, var(--gig-navy) 0%, var(--gig-navy-mid) 100%);
    box-shadow: 0 2px 16px rgba(0, 38, 89, 0.25);
}

.brand-title {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #fff;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
}

.app-main {
    max-width: 1400px;
}

/* Stat cards */
.stat-card {
    background: #fff;
    border: 1px solid var(--gig-border);
    border-radius: 1rem;
    box-shadow: var(--gig-card-shadow);
    overflow: hidden;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 2rem rgba(0, 38, 89, 0.12);
}

.stat-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    font-size: 2.25rem;
    color: #fff;
}

.stat-icon-teal {
    background: linear-gradient(160deg, var(--gig-teal) 0%, var(--gig-teal-dark) 100%);
}

.stat-icon-navy {
    background: linear-gradient(160deg, var(--gig-navy-mid) 0%, var(--gig-navy) 100%);
}

.stat-card-body {
    padding: 1.25rem;
}

.stat-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gig-text-muted);
    margin-bottom: 0.35rem;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gig-navy);
    margin: 0;
}

/* Content cards */
.content-card {
    background: #fff;
    border: 1px solid var(--gig-border);
    border-radius: 1rem;
    box-shadow: var(--gig-card-shadow);
    padding: 1.5rem;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gig-navy);
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--gig-text-muted);
    margin-bottom: 0;
}

.breadcrumb a {
    color: var(--gig-teal-dark);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--gig-navy);
    text-decoration: underline;
}

.vlan-badge {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
}

.vlan-badge-id {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--gig-navy);
}

.vlan-badge-block {
    font-size: 0.75rem;
    color: var(--gig-text-muted);
}

.traffic-chart-wrap {
    position: relative;
    height: 280px;
}

.apartment-traffic-chart-wrap {
    height: 240px;
}

.wondrwall-tab-panel {
    position: relative;
}

.wondrwall-tab-logo {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    height: 26px;
    width: auto;
    object-fit: contain;
}

.wondrwall-tab-intro {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 9rem 0.75rem 1rem;
    border: 1px solid var(--gig-border, #e8ecf1);
    border-radius: 0.75rem;
    background: #fafbfc;
}

.wondrwall-hero-image {
    width: 88px;
    height: 88px;
    object-fit: contain;
    flex-shrink: 0;
    padding: 0.65rem;
    border-radius: 0.75rem;
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.wondrwall-device-col {
    width: 64px;
}

.wondrwall-device-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    padding: 0.35rem;
    border-radius: 0.5rem;
    background: #1e293b;
}

.wondrwall-empty-image {
    width: 96px;
    height: 96px;
    object-fit: contain;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.wondrwall-lease-row {
    background: rgba(28, 187, 180, 0.08);
}

.wondrwall-lease-mac {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.wondrwall-lease-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    padding: 0.15rem;
    border-radius: 0.25rem;
    background: #1e293b;
}

.vendor-with-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
}

.vendor-logo-thumb {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0.25rem;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.vendor-label {
    line-height: 1.2;
}

.ap-port-edit-panel {
    padding: 1rem 1.25rem;
    border: 1px solid var(--gig-border);
    border-radius: 0.75rem;
    background: #fafbfc;
}

.mikrotik-graph-frame-wrap {
    border: 1px solid var(--gig-border);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
    min-height: 520px;
}

.mikrotik-graph-frame {
    display: block;
    width: 100%;
    height: 560px;
    border: 0;
    background: #fff;
}

.nav-tabs .nav-link {
    color: var(--gig-navy);
}

.nav-tabs .nav-link.active {
    color: var(--gig-teal-dark);
    font-weight: 600;
}

.form-card {
    max-width: 720px;
}

.btn-primary {
    --bs-btn-bg: var(--gig-teal);
    --bs-btn-border-color: var(--gig-teal);
    --bs-btn-hover-bg: var(--gig-teal-dark);
    --bs-btn-hover-border-color: var(--gig-teal-dark);
    --bs-btn-active-bg: var(--gig-teal-dark);
    --bs-btn-active-border-color: var(--gig-teal-dark);
    --bs-btn-focus-shadow-rgb: 28, 187, 180;
    font-weight: 600;
}

/* Gig buttons */
.btn-gig {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--gig-teal);
    --bs-btn-border-color: var(--gig-teal);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--gig-teal-dark);
    --bs-btn-hover-border-color: var(--gig-teal-dark);
    --bs-btn-focus-shadow-rgb: 28, 187, 180;
    --bs-btn-active-bg: var(--gig-teal-dark);
    --bs-btn-active-border-color: var(--gig-teal-dark);
    font-weight: 600;
}

.btn-outline-gig {
    --bs-btn-color: var(--gig-navy);
    --bs-btn-border-color: var(--gig-navy);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--gig-navy);
    --bs-btn-hover-border-color: var(--gig-navy);
    --bs-btn-focus-shadow-rgb: 0, 38, 89;
    --bs-btn-active-bg: var(--gig-navy);
    --bs-btn-active-border-color: var(--gig-navy);
    font-weight: 600;
}

.btn-success {
    --bs-btn-bg: var(--gig-teal);
    --bs-btn-border-color: var(--gig-teal);
    --bs-btn-hover-bg: var(--gig-teal-dark);
    --bs-btn-hover-border-color: var(--gig-teal-dark);
}

/* Status badges */
.badge-gig-vacant {
    background: rgba(0, 38, 89, 0.08);
    color: var(--gig-navy);
    font-weight: 600;
}

.badge-gig-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    font-weight: 600;
}

.badge-gig-occupied {
    background: var(--gig-teal-light);
    color: var(--gig-teal-dark);
    font-weight: 600;
}

/* Alerts */
.alert-primary {
    --bs-alert-color: var(--gig-navy);
    --bs-alert-bg: rgba(0, 38, 89, 0.08);
    --bs-alert-border-color: rgba(0, 38, 89, 0.15);
}

.alert-success {
    --bs-alert-color: #0f766e;
    --bs-alert-bg: var(--gig-teal-light);
    --bs-alert-border-color: rgba(28, 187, 180, 0.3);
}

.alert-info {
    --bs-alert-color: var(--gig-navy);
    --bs-alert-bg: rgba(28, 187, 180, 0.08);
    --bs-alert-border-color: rgba(28, 187, 180, 0.25);
}

/* Table */
.password-mask {
    font-family: ui-monospace, monospace;
    letter-spacing: 0.05em;
}

.password-toggle {
    border: none;
    background: transparent;
    color: var(--gig-teal-dark);
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.password-toggle:hover {
    color: var(--gig-navy);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gig-text-muted);
    border-bottom-color: var(--gig-border);
}

.table-hover > tbody > tr:hover > * {
    --bs-table-hover-bg: rgba(28, 187, 180, 0.05);
}

/* DataTables */
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--gig-teal);
    box-shadow: 0 0 0 0.2rem rgba(28, 187, 180, 0.2);
}

.page-item.active .page-link {
    background-color: var(--gig-teal);
    border-color: var(--gig-teal);
}

.page-link {
    color: var(--gig-navy);
}

.page-link:hover {
    color: var(--gig-teal-dark);
}

/* Form focus */
.form-control:focus,
.form-select:focus {
    border-color: var(--gig-teal);
    box-shadow: 0 0 0 0.2rem rgba(28, 187, 180, 0.2);
}

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gig-navy-dark) 0%, var(--gig-navy) 45%, var(--gig-teal-dark) 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(28, 187, 180, 0.25) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(28, 187, 180, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 4rem rgba(0, 26, 61, 0.35);
    padding: 2rem;
}

.login-card .logo {
    width: 80px;
    height: auto;
    object-fit: contain;
    background: transparent;
}

.login-card h1 {
    color: var(--gig-navy);
    font-weight: 700;
}

.login-card .text-muted {
    color: var(--gig-text-muted) !important;
}

.btn-loading {
    pointer-events: none;
    opacity: 0.75;
}

@media (max-width: 767.98px) {
    .stat-card-value {
        font-size: 1.4rem;
    }
}

/* Sidebar app shell */
body.app-shell {
    background: var(--gig-surface-alt);
    min-height: 100vh;
    overflow-x: hidden;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    background: var(--gig-sidebar);
    padding: 1.25rem 0;
    z-index: 1040;
    overflow-y: auto;
    transition: transform 0.25s ease;
}

.sidebar-brand {
    padding: 0 1.25rem 1.25rem;
    border-bottom: 1px solid var(--gig-sidebar-border);
    margin-bottom: 1rem;
}

.sidebar-brand-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    text-decoration: none;
}

.sidebar-brand-logo {
    display: block;
    width: 88px;
    height: auto;
    background: transparent;
}

.sidebar-brand-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.sidebar-brand-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-link.active {
    color: #fff;
    background: rgba(28, 187, 180, 0.15);
    border-left-color: var(--gig-teal);
}

.sidebar-icon {
    width: 1.25rem;
    text-align: center;
    opacity: 0.9;
}

.app-content-wrap {
    margin-left: 240px;
    min-height: 100vh;
    width: calc(100% - 240px);
    flex: 1;
}

.app-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--gig-border);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-topbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gig-navy);
    margin: 0;
    flex: 1;
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-main-panel {
    padding: 1.5rem;
    max-width: 1400px;
}

.sidebar-toggle {
    color: var(--gig-navy);
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1035;
}

.sidebar-backdrop.show {
    display: block;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-chip {
    border: 1px solid var(--gig-border);
    background: #fff;
    color: var(--gig-navy);
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--gig-teal);
    border-color: var(--gig-teal);
    color: #fff;
}

.filter-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    margin-left: 0.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: rgba(0, 38, 89, 0.08);
    font-size: 0.75rem;
    font-weight: 700;
}

.filter-chip.active .filter-chip-count {
    background: rgba(255, 255, 255, 0.22);
}

.apartments-page {
    display: grid;
    gap: 1rem;
}

.apartments-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--gig-navy) 0%, var(--gig-navy-mid) 55%, #0a5c6d 100%);
    color: #fff;
    box-shadow: var(--gig-card-shadow);
}

.apartments-hero-title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.apartments-hero-lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.apartments-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    gap: 0.75rem;
    min-width: min(100%, 320px);
}

.apartments-stat {
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.apartments-stat.has-alert {
    background: rgba(255, 193, 7, 0.16);
    border-color: rgba(255, 193, 7, 0.35);
}

.apartments-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.apartments-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.apartments-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.apartments-filter-chips {
    margin-bottom: 0;
}

.apartments-search-wrap {
    position: relative;
    width: min(100%, 280px);
}

.apartments-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gig-text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.apartments-search-input {
    padding-left: 2.25rem;
    border-radius: 2rem;
    border-color: var(--gig-border);
}

.apartments-table-card {
    margin-bottom: 0;
}

.apartments-flat-label {
    color: var(--gig-navy);
}

.apartments-tenant-name {
    display: block;
    font-weight: 600;
}

.apartments-tenant-email {
    display: block;
    font-size: 0.8rem;
    color: var(--gig-text-muted);
}

.ethernet-port-issue-row {
    background: rgba(220, 53, 69, 0.06);
}

.ethernet-port-issue-row:hover {
    background: rgba(220, 53, 69, 0.1);
}

.tariff-plan-card {
    border: 1px solid var(--gig-border);
}

.tariff-plan-default {
    border-color: rgba(28, 187, 180, 0.45);
    box-shadow: inset 0 0 0 1px rgba(28, 187, 180, 0.15);
}

.settings-form .form-text {
    color: var(--gig-text-muted);
}

.settings-file-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    border: 1px solid var(--gig-border);
    border-radius: 0.85rem;
    background: var(--gig-surface-alt);
}

.settings-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.settings-file-details {
    flex: 1;
    min-width: 12rem;
}

.settings-file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.settings-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.settings-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--gig-border);
    border-radius: 999px;
    background: #fff;
    color: var(--gig-navy);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.settings-subnav-link:hover {
    border-color: rgba(28, 187, 180, 0.45);
    color: var(--gig-navy);
    background: rgba(28, 187, 180, 0.06);
}

.settings-subnav-link.is-active {
    border-color: var(--gig-teal);
    background: rgba(28, 187, 180, 0.12);
    color: var(--gig-navy);
}

.email-template-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.email-template-slug {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gig-text-muted);
}

.email-template-meta {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.email-template-meta dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gig-text-muted);
}

.email-template-meta dd {
    margin: 0.15rem 0 0;
    color: var(--gig-navy);
}

.email-template-editor {
    min-height: 28rem;
    font-size: 0.82rem;
    line-height: 1.45;
    tab-size: 2;
}

.email-template-placeholders {
    white-space: pre-wrap;
    background: var(--gig-surface-alt);
    border: 1px solid var(--gig-border);
    border-radius: 0.65rem;
    padding: 0.85rem 1rem;
    color: var(--gig-text);
}

.alert-panel {
    border-left: 4px solid var(--gig-teal);
}

.alert-panel.warning {
    border-left-color: #f59e0b;
}

.alert-panel.danger {
    border-left-color: #dc3545;
}

.row-offline {
    background: rgba(220, 53, 69, 0.06) !important;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.detail-card {
    background: #fff;
    border: 1px solid var(--gig-border);
    border-radius: 1rem;
    box-shadow: var(--gig-card-shadow);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gig-border);
}

.detail-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gig-navy);
}

.detail-card-title h2 {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.detail-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: rgba(28, 187, 180, 0.12);
    color: var(--gig-teal-dark);
    font-size: 0.95rem;
}

.detail-card-wifi .detail-card-icon {
    background: rgba(25, 35, 53, 0.08);
    color: var(--gig-navy);
}

.detail-card-wifi-body {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.detail-card-wifi-content {
    flex: 1;
    min-width: 0;
}

.detail-card-wifi-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 7.5rem;
    padding-left: 0.5rem;
}

.wifi-ap-image {
    width: 100%;
    max-width: 7rem;
    height: auto;
    object-fit: contain;
}

.detail-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
}

.detail-highlight {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gig-navy);
    margin: 0;
}

.detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    min-height: 8rem;
    color: var(--gig-text-muted);
}

.detail-empty i {
    font-size: 1.75rem;
    opacity: 0.35;
}

.detail-contact-list li + li {
    margin-top: 0.5rem;
}

.detail-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--gig-navy);
    text-decoration: none;
    font-weight: 500;
}

.detail-contact-link i {
    width: 1rem;
    color: var(--gig-teal-dark);
    text-align: center;
}

.detail-contact-link:hover {
    color: var(--gig-teal-dark);
}

.detail-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gig-border);
}

.detail-meta-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gig-text-muted);
}

.detail-meta-value {
    font-weight: 600;
    color: var(--gig-navy);
}

.wifi-credential-grid {
    display: grid;
    gap: 0.85rem;
}

.wifi-credential {
    padding: 0.85rem 1rem;
    border: 1px solid var(--gig-border);
    border-radius: 0.75rem;
    background: #fafbfc;
}

.wifi-credential-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gig-text-muted);
    margin-bottom: 0.35rem;
}

.wifi-credential-value {
    display: block;
    font-size: 0.95rem;
    color: var(--gig-navy);
    word-break: break-all;
}

.wifi-password-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.wifi-ap-summary {
    padding: 0.85rem 1rem;
    border: 1px solid var(--gig-border);
    border-radius: 0.75rem;
    background: linear-gradient(180deg, rgba(28, 187, 180, 0.05), #fff);
}

.wifi-ap-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.wifi-ap-model {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}

.wifi-ap-model-code {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gig-navy);
}

.wifi-ap-model-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gig-text);
}

.wifi-ap-meta code {
    font-size: 0.82rem;
}

.detail-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--gig-border);
    border-radius: 999px;
    background: #fff;
    font-size: 0.875rem;
}

.detail-chip-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gig-text-muted);
}

.detail-chip .vlan-badge {
    flex-direction: row;
    align-items: baseline;
    gap: 0.35rem;
}

.detail-chip .vlan-badge-block {
    font-size: inherit;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .app-content-wrap {
        margin-left: 0;
        width: 100%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-card-wifi-body {
        flex-direction: column;
    }

    .detail-card-wifi-visual {
        width: 100%;
        padding: 0.5rem 0 0;
    }

    .wifi-ap-image {
        max-width: 5.5rem;
    }
}

.clickable-row {
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gig-text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    opacity: 0.35;
    margin-bottom: 1rem;
}

.access-points-loading .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--gig-teal);
    border-width: 0.2em;
}

.text-gig {
    color: var(--gig-teal) !important;
}

/* WiFi signal strength */
.signal-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 9rem;
}

.signal-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.signal-bar {
    display: block;
    width: 4px;
    border-radius: 1px;
    background: rgba(0, 38, 89, 0.15);
}

.signal-bar:nth-child(1) { height: 4px; }
.signal-bar:nth-child(2) { height: 7px; }
.signal-bar:nth-child(3) { height: 10px; }
.signal-bar:nth-child(4) { height: 14px; }

.signal-bar.is-active {
    background: currentColor;
}

.signal-label {
    font-size: 0.8125rem;
    font-weight: 600;
}

.signal-dbm {
    font-size: 0.75rem;
    color: var(--gig-text-muted);
}

.signal-excellent {
    color: #0f766e;
}

.signal-good {
    color: var(--gig-navy);
}

.signal-poor {
    color: #b45309;
}

.signal-unknown {
    color: var(--gig-text-muted);
}

/* Dashboard */
.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 1.75rem;
    border-radius: 1rem;
    background: linear-gradient(
        135deg,
        var(--gig-navy) 0%,
        #0b4a63 42%,
        var(--gig-teal-dark) 100%
    );
    color: #fff;
    border: 1px solid rgba(28, 187, 180, 0.35);
    box-shadow:
        0 1rem 2.5rem rgba(0, 38, 89, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.35rem;
    background: linear-gradient(180deg, #86efac 0%, var(--gig-teal) 50%, var(--gig-teal-dark) 100%);
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    right: -3rem;
    top: -4rem;
    width: 14rem;
    height: 14rem;
    background: radial-gradient(circle, rgba(28, 187, 180, 0.28) 0%, transparent 68%);
    pointer-events: none;
}

.dashboard-hero-content,
.dashboard-hero-alert,
.dashboard-hero-status {
    position: relative;
    z-index: 1;
}

.dashboard-hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(167, 243, 208, 0.95);
}

.dashboard-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.dashboard-hero-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.dashboard-hero-alert,
.dashboard-hero-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 8rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(28, 187, 180, 0.28);
    text-align: center;
    backdrop-filter: blur(4px);
}

.dashboard-hero-alert-count {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: #fde68a;
}

.dashboard-hero-alert-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
}

.dashboard-hero-status {
    flex-direction: row;
    gap: 0.5rem;
    color: #a7f3d0;
    font-weight: 600;
    background: rgba(28, 187, 180, 0.14);
    border-color: rgba(28, 187, 180, 0.4);
}

.dashboard-kpi {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.1rem 1.15rem;
    background: #fff;
    border: 1px solid var(--gig-border);
    border-radius: 1rem;
    box-shadow: var(--gig-card-shadow);
}

.dashboard-kpi-warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}

.dashboard-kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.dashboard-kpi-icon-navy {
    background: linear-gradient(160deg, var(--gig-navy-mid), var(--gig-navy));
}

.dashboard-kpi-icon-teal {
    background: linear-gradient(160deg, var(--gig-teal), var(--gig-teal-dark));
}

.dashboard-kpi-icon-amber {
    background: linear-gradient(160deg, #f59e0b, #d97706);
}

.dashboard-kpi-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--gig-text-muted);
}

.dashboard-kpi-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--gig-navy);
    line-height: 1.1;
}

.dashboard-kpi-value-sm {
    font-size: 1.15rem;
}

.dashboard-kpi-suffix {
    font-size: 1rem;
    color: var(--gig-text-muted);
    font-weight: 600;
}

.dashboard-kpi-meta {
    font-size: 0.8rem;
    color: var(--gig-text-muted);
}

.dashboard-attention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
}

.dashboard-attention-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-attention-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 38, 89, 0.08);
    color: inherit;
}

.dashboard-attention-item strong {
    font-size: 1.35rem;
    line-height: 1;
}

.dashboard-attention-item span {
    font-size: 0.82rem;
    color: var(--gig-text-muted);
}

.dashboard-attention-danger {
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.15);
}

.dashboard-attention-danger strong {
    color: #b91c1c;
}

.dashboard-attention-warning {
    background: #fffbeb;
    border-color: rgba(245, 158, 11, 0.18);
}

.dashboard-attention-warning strong {
    color: #b45309;
}

.dashboard-attention-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--gig-border);
    text-decoration: none;
    color: inherit;
}

.dashboard-attention-row:last-child {
    border-bottom: 0;
}

.dashboard-attention-row:hover {
    color: var(--gig-teal-dark);
}

.dashboard-split-stat {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dashboard-ring {
    --pct: 0;
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    background: conic-gradient(var(--gig-teal) 0 calc(var(--pct) * 1%), #e2e8f0 calc(var(--pct) * 1%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-ring-inner {
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dashboard-ring-inner strong {
    font-size: 1.35rem;
    color: var(--gig-navy);
}

.dashboard-ring-inner span {
    font-size: 0.72rem;
    color: var(--gig-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-legend {
    flex: 1;
    min-width: 10rem;
}

.dashboard-legend-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
}

.dashboard-legend-item strong {
    margin-left: auto;
    color: var(--gig-navy);
}

.dashboard-legend-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.dashboard-legend-occupied {
    background: var(--gig-teal);
}

.dashboard-legend-vacant {
    background: #cbd5e1;
}

.dashboard-legend-pending {
    background: #f59e0b;
}

.dashboard-tariff-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-tariff-bar {
    height: 0.55rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.dashboard-tariff-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gig-teal), var(--gig-navy-mid));
}

.dashboard-metric-list {
    display: grid;
    gap: 0.85rem;
}

.dashboard-metric-list > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--gig-border);
}

.dashboard-metric-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dashboard-metric-list dt {
    font-size: 0.85rem;
    color: var(--gig-text-muted);
    margin: 0;
}

.dashboard-metric-list dd {
    margin: 0;
    font-weight: 600;
    color: var(--gig-navy);
    text-align: right;
}

.dashboard-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.dashboard-quick-links-grid a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--gig-border);
    border-radius: 0.8rem;
    text-decoration: none;
    color: var(--gig-navy);
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dashboard-quick-links-grid a:hover {
    border-color: rgba(28, 187, 180, 0.45);
    background: var(--gig-teal-light);
    color: var(--gig-navy);
}

.dashboard-quick-links-grid i {
    color: var(--gig-teal-dark);
    width: 1rem;
    text-align: center;
}

.dashboard-offline-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--gig-border);
}

.dashboard-offline-item:last-child {
    border-bottom: 0;
}

.dashboard-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gig-border);
}

.dashboard-timeline-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-timeline-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--gig-teal);
    margin-top: 0.35rem;
}

.dashboard-timeline-dot-warning {
    background: #f59e0b;
}

.dashboard-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gig-text-muted);
    border-bottom-width: 1px;
}

@media (max-width: 767.98px) {
    .dashboard-hero {
        padding: 1.15rem;
    }

    .dashboard-hero-title {
        font-size: 1.35rem;
    }

    .dashboard-kpi-value {
        font-size: 1.35rem;
    }
}

