* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #444;
    line-height: 1.7;
    background-color: #f8f9fa;
}

/* Global select base — custom chevron, reset browser chrome */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e3a5f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    cursor: pointer;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Sidebar user section */
.sidebar-user {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-user-name {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.sidebar-user-name:hover {
    color: white;
    background-color: rgba(255,255,255,0.08);
}
.sidebar-logout {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.sidebar-logout:hover {
    color: white;
    background-color: rgba(255,255,255,0.08);
}

/* Layout */
.content-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    flex-shrink: 0;
    background-color: #253d56;
    padding: 0 0 0 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}
.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}
.sidebar nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}
.sidebar nav a:hover {
    background-color: rgba(255,255,255,0.08);
    color: white;
    border-left-color: rgba(255,255,255,0.3);
}
.sidebar nav a.active {
    background-color: rgba(255,255,255,0.1);
    border-left-color: #4da3ff;
    color: white;
}

/* Sidebar collapsible groups */
.sidebar nav a.sidebar-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.sidebar nav a.sidebar-group-header .chevron {
    font-size: 12px;
    transition: transform 0.2s ease;
}
.sidebar nav a.sidebar-group-header.open .chevron {
    transform: rotate(90deg);
}
.sidebar nav a.sidebar-sub {
    display: none;
    padding: 9px 24px 9px 44px;
    font-size: 13px;
    font-weight: 400;
    border-left: none;
}
.sidebar nav a.sidebar-sub-visible {
    display: block;
}
/* Nested sub-group header (e.g. MQTT inside Setup) */
.sidebar nav a.sidebar-subgroup-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}
.sidebar nav a.sidebar-subgroup-header.sidebar-sub-visible {
    display: flex;
}
.sidebar nav a.sidebar-subgroup-header .chevron {
    font-size: 11px;
    transition: transform 0.2s ease;
}
.sidebar nav a.sidebar-subgroup-header.open .chevron {
    transform: rotate(90deg);
}
/* Sub-sub items (e.g. MQTT children) */
.sidebar nav a.sidebar-sub-sub {
    display: none;
    padding-left: 62px;
    font-size: 12px;
}
.sidebar nav a.sidebar-sub-sub.sidebar-sub-sub-visible {
    display: block;
}

/* Main content */
main {
    padding: 36px 48px;
    flex: 1;
    min-width: 0;
    background-color: #fff;
}
main.main-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
}

/* Typography */
h1 {
    color: #1e3a5f;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 16px;
    flex-wrap: wrap;
}
.page-header h1 {
    margin-bottom: 0;
}
h2 {
    color: #1e3a5f;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}
a {
    color: #2b7de9;
}
a:hover {
    color: #1a5fbf;
}

/* Footer */
footer {
    background-color: #1e3a5f;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    padding: 24px 24px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Login brand */
.login-brand {
    text-align: center;
    margin-bottom: 32px;
}
.login-brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
}
.login-brand h1 {
    margin-bottom: 4px;
}
.login-brand-subtitle {
    color: #888;
    font-size: 14px;
}

/* Forms */
.auth-form {
    max-width: 420px;
    margin: 24px auto;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group select {
    padding-right: 36px;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #2b7de9;
    box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.15);
}

/* Standalone select controls (outside .form-group, e.g. quick-add forms, filter bars) */
.select-control {
    padding: 8px 32px 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.select-control:focus {
    outline: none;
    border-color: #2b7de9;
    box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.15);
}
/* Compact variant for toolbar/calendar selects */
.select-control-sm {
    padding: 4px 26px 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background-color: #fff;
    background-position: right 8px center;
    background-size: 12px;
    transition: border-color 0.2s ease;
}
.select-control-sm:focus {
    outline: none;
    border-color: #2b7de9;
    box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.15);
}
/* Multi-selects: no custom arrow */
select[multiple] {
    background-image: none;
    padding-right: 10px;
}

/* Buttons */
.btn {
    background-color: #2b7de9;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.btn:hover {
    background-color: #1a5fbf;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.btn-danger {
    background-color: #e04848;
}
.btn-danger:hover {
    background-color: #c63636;
}
.btn-sm {
    padding: 5px 12px;
    font-size: 11px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 18px;
    font-size: 14px;
}
.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}
.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Misc */
.auth-link {
    margin-top: 15px;
    color: #666;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.admin-table th, .admin-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.admin-table th {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #1e3a5f;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.admin-table tr:hover {
    background-color: #f8fafc;
}
.admin-table select {
    padding: 5px 28px 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Open Sans', Arial, sans-serif;
    background-position: right 8px center;
    background-size: 12px;
}

/* Sort headers */
.sort-header {
    color: #1e3a5f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sort-header:hover {
    color: #2b7de9;
}
.sort-header.sort-active {
    color: #2b7de9;
}

/* Role badges */
.role-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.role-admin {
    background-color: #dcfce7;
    color: #166534;
}
.role-user {
    background-color: #dbeafe;
    color: #1e40af;
}
.role-company_admin {
    background-color: #fef3c7;
    color: #b45309;
}
.role-terminal {
    background-color: #f3e8ff;
    color: #7c3aed;
}

/* Action buttons */
.inline-form {
    display: inline-block;
    margin-right: 5px;
}
.actions {
    white-space: nowrap;
}

/* Profile */
.profile-card {
    max-width: 700px;
    margin-top: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.profile-field {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
}
.profile-field:last-child {
    border-bottom: none;
}
.profile-label {
    font-weight: 700;
    color: #1e3a5f;
    width: 120px;
    flex-shrink: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.profile-value {
    color: #444;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

/* Profile card containing nested tables — allow full width */
.profile-card .admin-table {
    margin-top: 0;
    display: block;
    overflow-x: auto;
}

/* Company selector in sidebar */
.company-selector {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
}
.company-selector select {
    width: 100%;
    padding: 8px 32px 8px 10px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background-color: #1e3a5f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='0.7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    color: white;
    font-size: 13px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
}
.company-selector select:focus {
    outline: none;
    border-color: #4da3ff;
}
.company-selector-name {
    display: block;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 4px 0;
    text-align: center;
}
.company-logo-wrapper {
    text-align: center;
    margin-bottom: 8px;
}
.company-logo {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 4px;
}
.company-detail-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.logo-management {
    margin: 15px 0;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}
.logo-management h3 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

/* Summary cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.summary-card:hover {
    background: #eef4fb;
    border-color: #2b7de9;
    box-shadow: 0 2px 8px rgba(43, 125, 233, 0.12);
    transform: translateY(-2px);
}
.summary-card-count {
    font-size: 36px;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1;
    margin-bottom: 8px;
}
.summary-card-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard grid */
.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.dashboard-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
}
.dashboard-widget-small {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
}
.dashboard-widget-medium {
    flex: 0 0 calc(50% - 10px);
    min-width: 380px;
}
.dashboard-widget-large {
    flex: 0 0 100%;
}
.widget-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}
.widget-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.dashboard-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.dashboard-toolbar label {
    font-weight: 600;
    font-size: 14px;
}
.widget-body {
    position: relative;
    padding: 16px;
    min-height: 200px;
    max-height: 800px;
}
.widget-body canvas {
    max-height: 100%;
}
.chart-legend-toggle {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.chart-legend-toggle:hover,
.chart-legend-toggle.active {
    opacity: 1;
}
@media (max-width: 900px) {
    .dashboard-widget-small,
    .dashboard-widget-medium {
        flex: 0 0 100%;
    }
}

/* KPI Card Widget */
.kpi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px 16px;
    min-height: 160px;
}
.kpi-value {
    font-size: 48px;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.1;
    text-align: center;
}
.kpi-unit {
    font-size: 22px;
    font-weight: 400;
    color: #666;
    margin-left: 4px;
}
.kpi-change {
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
}
.kpi-sparkline-wrap {
    width: 100%;
    height: 40px;
    margin-top: 12px;
}
.kpi-sparkline {
    width: 100% !important;
    height: 40px !important;
}

/* Responsive KPI sizing */
.dashboard-widget-small .kpi-value {
    font-size: 36px;
}
.dashboard-widget-small .kpi-unit {
    font-size: 16px;
}
.dashboard-widget-small .kpi-change {
    font-size: 14px;
}

/* Status Indicator Widget */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 4px;
}
.status-tile {
    padding: 12px;
    border-radius: 6px;
    background: white;
    transition: box-shadow 0.15s;
}
.status-tile:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.status-tile-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 30px;
    border-left: none !important;
    background: transparent !important;
}
.status-tile-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.status-value {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 2px;
}
.status-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.status-stale {
    font-size: 11px;
    color: #999;
    font-style: italic;
    margin-top: 2px;
}

/* Weekly schedule calendar */
.schedule-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 12px;
}
.schedule-nav button {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 600;
    color: #444;
}
.schedule-nav button:hover {
    background-color: #f1f5f9;
    border-color: #2b7de9;
    color: #2b7de9;
}
.schedule-nav .schedule-nav-label {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a5f;
    min-width: 260px;
    text-align: center;
}

.schedule-calendar {
    display: grid;
    grid-template-columns: 50px repeat(7, 1fr);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}
.schedule-cal-header {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #1e3a5f;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    padding: 10px 4px;
    border-bottom: 1px solid #e5e7eb;
}
.schedule-cal-header.today {
    background-color: #dbeafe;
    color: #2b7de9;
}
.schedule-cal-corner {
    background-color: #f1f5f9;
    border-bottom: 1px solid #e5e7eb;
}
.schedule-cal-body {
    display: contents;
}
.schedule-hour-label {
    font-size: 11px;
    color: #888;
    text-align: right;
    padding: 0 6px;
    border-right: 1px solid #e5e7eb;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
}
.schedule-day-cell {
    position: relative;
    height: 40px;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f5f5f5;
}
.schedule-day-cell:last-child {
    border-right: none;
}
.schedule-block {
    position: absolute;
    left: 2px;
    right: 2px;
    background-color: #2b7de9;
    color: white;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    z-index: 1;
    cursor: default;
    min-height: 4px;
    opacity: 0.85;
}
.schedule-block:hover {
    opacity: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Sidebar toggle button (fixed, shown on mobile only) */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1001;
    background: rgba(30,58,95,0.85);
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 20px;
    cursor: pointer;
    padding: 6px 8px;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.sidebar-toggle:hover { background: #1e3a5f; color: white; }

/* Responsive: tablets and smaller */
@media (max-width: 768px) {
    /* Show hamburger toggle */
    .sidebar-toggle {
        display: block;
    }

    /* Sidebar: hidden by default, overlay on toggle */
    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    .sidebar.sidebar-open {
        left: 0;
        box-shadow: 4px 0 16px rgba(0,0,0,0.3);
    }

    /* Main content: full width */
    .content-wrapper {
        flex-direction: column;
    }
    main {
        padding: 20px 16px;
    }

    /* Tables scroll horizontally */
    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Profile card full width */
    .profile-card {
        max-width: 100%;
    }
    .profile-field {
        flex-wrap: wrap;
        gap: 4px;
    }
    .profile-label {
        width: auto;
        min-width: 100px;
    }

    /* Summary cards stack */
    .summary-cards {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    /* Forms */
    .auth-form {
        max-width: 100%;
    }
}

/* Back link arrow */
.auth-link a::before { content: '← '; }

/* Results count on list pages */
.results-count { font-size: 13px; color: #666; margin: 6px 0 0; }

/* Section h2 divider on detail pages */
h2.section-h2 { padding-bottom: 10px; border-bottom: 2px solid #e5e7eb; margin-bottom: 0; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #888; margin-bottom: 6px; flex-wrap: wrap; }
.breadcrumb a { color: #888; text-decoration: none; }
.breadcrumb a:hover { color: #2b7de9; text-decoration: underline; }
.breadcrumb-sep { color: #ccc; }

/* Empty state */
.empty-state { padding: 32px 24px; text-align: center; color: #666; }
.empty-state p { margin-bottom: 12px; }

/* Danger zone */
.danger-zone { margin-top: 32px; padding: 16px 20px; border: 1px solid #fecaca; border-radius: 6px; background: #fef2f2; }
.danger-zone-title { color: #dc2626; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.danger-zone-desc { font-size: 13px; color: #666; margin-bottom: 12px; }

/* Confirmation modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-box {
    background: white;
    border-radius: 8px;
    padding: 24px 28px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-message { font-size: 15px; color: #333; margin-bottom: 20px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* SVG icons */
.icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; fill: currentColor; }
.icon-lg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }

/* Responsive: phones */
@media (max-width: 480px) {
    main {
        padding: 16px 12px;
    }
    .summary-cards {
        grid-template-columns: 1fr 1fr;
    }
    .summary-card {
        padding: 16px 10px;
    }
    .summary-card-count {
        font-size: 28px;
    }
}
