:root {
    --background: #FFF;
    --onBackground: #000;
    --onSurfaceVariant: #222;
    --outline: #999;
    --secondary: #0B75DF;
    --secondaryDark: #003d80;
    --secondaryLight: #16A1FB;
    --surface: #f8fafc;
    --onSurface: #64748b;
    --surfaceVariant: #fafafa;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-contents {
    display: flex;
    flex-direction: row;
    overflow-y: hidden;
}

.admin-menu {
    width: 210px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.admin-content {
    width: calc(100vw - 210px);
    height: calc(100vh - 60px);
    overflow-y: scroll;
}

.menu li {
    margin: 6px 0;
}

.menu a {
    display: flex;
    flex-direction: row;
    align-content: center;
    color: var(--text-color);
    width: 100%;
    font-size: 15px;
}

.facilities-item span {
    font-weight: 700;
    font-size: 1.2rem;
}

.card-dashboard {
    padding: 12px;
    background-color: var(--secondaryLight);
    border-radius: 12px;
    color: var(--onBackground);
    cursor: pointer;
}

.dashboard-summary {
    margin-top: 10px;
}

.charts {
    width: 100%;
    height: 350px;
    margin-bottom: 10px;
}

.chart, .chart-wide {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart h3 {
    text-align: center;
}

.canvas {
    width: 100%;
    height: calc(100% - 16px);
    padding: 4px 0;
}

.header a {
    height: 24px;
}

.header h1 {
    margin-left: 24px;
    color: var(--onBackground);
}

table {
    border-spacing: 0;
}

.red1 {
    background-color: #ff0000;
    color: #fdd5d5;
}

.yellow1 {
    background-color: #ffff00;
    color: #696910;
}

.green1 {
    background-color: #008000;
    color: #00ff40;
}

.black {
    background-color: #000000;
    color: #bbbbbb;
}

.action-group {
    display: flex;
    align-items: center;
    border-radius: 10px;
    background-color: var(--background);
    color: var(--onBackground);
    overflow: hidden;
    border: 1px solid rgba(53, 52, 52, 0.226);
    margin: 4px;
    padding: 4px 8px;
    cursor: pointer;
}

.radio-input input, .radio-input1 input {
    display: none;
}

.radios {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 10px;
    background-color: var(--background);
    color: var(--onBackground);
    width: var(--container_width);
    overflow: hidden;
    border: 1px solid rgba(53, 52, 52, 0.226);
    margin: 4px;
}

.radio-input {
    --container_width: 700px;
}

.radio-input1 {
    --container_width: 238px;
}

.radio-input label, .radio-input1 label {
    width: 100%;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    font-weight: 600;
    letter-spacing: -1px;
    font-size: 14px;
}

.selections {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 0;
    left: 0;
    top: 0;
    transition: .15s ease;
}

.selection {
    width: calc(var(--container_width) / 7);
    --width_divider: 7;
}

.selection1 {
    width: calc(var(--container_width) / 2);
    --width_divider: 2;
}

.radio-input label:has(input:checked), .radio-input1 label:has(input:checked) {
    color: #fff;
}

.radio-input label:has(input:checked) ~ .selection, .radio-input1 label:has(input:checked) ~ .selection1 {
    background-color: rgb(11 117 223);
    display: inline-block;
}

.radio-input1 label:nth-child(1):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 0/var(--width_divider)));
}

.radio-input1 label:nth-child(2):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 1/var(--width_divider)));
}

.radio-input label:nth-child(1):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 0/var(--width_divider)));
}

.radio-input label:nth-child(2):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 1/var(--width_divider)));
}

.radio-input label:nth-child(3):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 2/var(--width_divider)));
}

.radio-input label:nth-child(4):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 3/var(--width_divider)));
}

.radio-input label:nth-child(5):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 4/var(--width_divider)));
}

.radio-input label:nth-child(6):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 5/var(--width_divider)));
}

.radio-input label:nth-child(7):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 6/var(--width_divider)));
}

table {
    border-spacing: 0;
    border-radius: 6px;
    overflow: hidden;
    width: calc(100% - 10px);
    margin: 5px;
    position: relative;
    padding: 2px;
}

tr {
    width: 100%;
}

td, tr {
    border-bottom: 1px solid var(--onPrimary);
}

table * {
    position: relative;
}

table thead tr {
    height: 48px;
    font-size: 14px;
}

table tbody tr {
    height: 24px;
    font-size: 12px;
}

table thead tr th {
    background-color: var(--secondary);
    color: var(--onPrimary);
}

table tbody tr td {
    background-color: var(--background);
    color: var(--onBackground);
}

table tbody tr:last-child {
    border: 0;
}

table td, table th {
    text-align: left;
    padding-left: 4px;
}

table td.l, table th.l {
    text-align: right;
}

table td.c, table th.c {
    text-align: center;
}

table td.r, table th.r {
    text-align: center;
}

.tt-code {
    width: 5%;
}

.tt-desc {
    width: 35%;
}

.tt-email {
    width: 25%;
}

.tt-update, .tt-disc {
    width: 6.66%;
}

.tt-order {
    width: 10%;
}

.system-left {
    width: 15vw;
    height: 100%;
    overflow-y: scroll;
}

.system-right {
    width: 85vw;
    overflow-x: hidden;
    overflow-y: scroll;
    height: 100%;
}

.system-right ul {
    overflow-x: hidden;
    overflow-y: hidden;
}

.system-summary .card-dashboard {
    margin: 1px;
}

.heart-container {
    position: relative;
    width: 36px;
    height: 36px;
    transition: .3s;
}

.heart-container .checkbox {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 20;
    cursor: pointer;
}

.heart-container .svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.heart-container .svg-outline,
.heart-container .svg-filled {
    fill: var(--onPrimary);
    position: absolute;
}

.heart-container .svg-filled {
    animation: keyframes-svg-filled 1s;
    display: none;
}

.heart-container .svg-celebrate {
    position: absolute;
    animation: keyframes-svg-celebrate .5s;
    animation-fill-mode: forwards;
    display: none;
    stroke: var(--onPrimary);
    fill: var(--onPrimary);
    stroke-width: 2px;
}

.heart-container .checkbox:checked~.svg-container .svg-filled {
    display: block
}

.heart-container .checkbox:checked~.svg-container .svg-celebrate {
    display: block
}

@keyframes keyframes-svg-filled {
    0% {
        transform: scale(0);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
        filter: brightness(1.5);
    }
}

@keyframes keyframes-svg-celebrate {
    0% {
        transform: scale(0);
    }
    50% {
        opacity: 1;
        filter: brightness(1.5);
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
        display: none;
    }
}

.health {
    padding: 0 32px;
}

.health h1 {
    text-align: center;
}

.user-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    overflow: hidden;
}

.user-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-content {
    padding: 20px;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f2f5;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 4px;
}

.user-email {
    font-size: 14px;
    color: #718096;
    word-break: break-all;
}

.user-details {
    margin-bottom: 20px;
}

.max-lines {
    display: block;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow: hidden;
    max-height: 3.3em;
    line-height: 1.1em;
}

.smallest-font {
    font-size: 0.6rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-grid > * {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 12px;
    color: #2d3748;
    font-weight: 500;
    line-height: 1.1em;
    max-height: 2.2em;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow: hidden;
}

.issue-area {
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--onPrimary);
    font-size: 12px;
    width: 100%;
    margin-top: 6px;
    margin-bottom: 18px;
}

.issue-title {
    font-weight: bold;
    font-size: 14px;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 20px;
}

.access-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.access-none, .status-closed {
    background: #e2e8f0;
    color: #4a5568;
}

.access-viewer, .status-in-process, .priority-medium {
    background: #bee3f8;
    color: #2c5aa0;
}

.access-editor, .status-resolved, .priority-low {
    background: #c6f6d5;
    color: #276749;
}

.access-medical, .priority-high {
    background: #faf089;
    color: #744210;
}

.access-administrator, .status-unresolved, .priority-urgent {
    background: #fed7d7;
    color: #c53030;
}

.access-owner {
    background: #805ad5;
    color: #ffffff;
}

.action-bar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-icon {
    padding: 8px;
}

.btn-danger {
    background: #fed7d7;
    color: #c53030;
}

.btn-danger:hover {
    background: #feb2b2;
}

body.dark .user-card {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark .user-name {
    color: #e2e8f0;
}

body.dark .user-email {
    color: #a0aec0;
}

body.dark .detail-label {
    color: #a0aec0;
}

body.dark .detail-value {
    color: #e2e8f0;
}

body.dark .user-header,
body.dark .action-bar {
    border-color: #4a5568;
}

.audit-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.audit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.audit-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--surface);
}

.audit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.audit-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    aspect-ratio: 1 / 1;
}

.minor-audit .audit-icon {
    background-color: #f0f9ff;
    color: #0369a1;
}

.duplicate-audit .audit-icon {
    background-color: #fef2f2;
    color: #dc2626;
}

.audit-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--onSurfaceVariant);
    margin-bottom: 4px;
}

.audit-description {
    font-size: 14px;
    color: var(--onSurface);
    line-height: 1.5;
}

.audit-stats {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    background: var(--background);
    border-radius: var(--border-radius-sm);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--onSurfaceVariant);
}

.stat-label {
    font-size: 12px;
    color: var(--onSurface);
    margin-top: 4px;
}

.audit-actions {
    display: flex;
    gap: 12px;
}

.btn-audit {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondaryDark);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--onSurfaceVariant);
    border: 1px solid var(--surface);
}

.btn-secondary:hover {
    background-color: var(--background);
}

#map {
    height: 100%;
    width: 100%;
}

.filter-panel {
    position: absolute;
    top: 70px;
    right: 10px;
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 280px;
    max-height: 80vh;
    overflow-y: auto;
}

.filter-panel h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.filter-group {
    margin-bottom: 12px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 12px;
    color: #555;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.filter-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

#apply-filters {
    background: #007bff;
    color: white;
}

#apply-filters:hover {
    background: #0056b3;
}

#reset-filters {
    background: #6c757d;
    color: white;
}

#reset-filters:hover {
    background: #545b62;
}

.stats {
    margin-top: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
}

.custom-popup {
    font-family: Arial, sans-serif;
    min-width: 200px;
}

.popup-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.popup-detail {
    font-size: 12px;
    margin: 2px 0;
    color: #666;
}

.legend {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    line-height: 1.5;
}

.legend h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.legend i {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    opacity: 0.7;
    display: inline-block;
    text-align: center;
}

.legend-container {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.legend-container h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #333;
}

.legend-section {
    margin-bottom: 10px;
}

.legend-section h5 {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    color: #555;
    font-weight: bold;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.85em;
    color: var(--onSurface);
}

.legend-item::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 3px;
    border: 1px solid #ccc;
    flex-shrink: 0;
}

.legend-item[data-color="#5BC0DE"]::before { background-color: #5BC0DE; border-color: #337ab7; }
.legend-item[data-color="#D9534F"]::before { background-color: #D9534F; border-color: #d43f3a; }
.legend-item[data-color="#5CB85C"]::before { background-color: #5CB85C; border-color: #4cae4c; }
.legend-item[data-color="#777777"]::before { background-color: #777777; border-color: #666; }
.legend-item[data-color="#F0AD4E"]::before { background-color: #F0AD4E; border-color: #eea236; }

.legend-shape {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    stroke: #333;
    stroke-linecap: round;
}

.legend-container hr {
    border: none;
    border-top: 1px dashed #eee;
    margin: 10px 0;
}

.analytics-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.timeframe-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #555;
    margin: 8px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 10px;
}

.card {
    background: var(--background);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.card-label {
    font-size: 14px;
    opacity: 0.9;
}

.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.analytics-table th {
    background: linear-gradient(135deg, #0B75DF 0%, #4361ee 100%);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.analytics-table tbody tr {
    transition: background-color 0.2s ease;
}

.analytics-table tbody tr:hover {
    background-color: #f8f9fa;
}

.analytics-table tbody tr:last-child td {
    border-bottom: none;
}

.trend-up {
    color: #27ae60;
    font-weight: bold;
}

.trend-down {
    color: #e74c3c;
    font-weight: bold;
}

.trend-neutral {
    color: #95a5a6;
    font-weight: bold;
}

.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.trend-up .trend-indicator {
    background: rgba(39, 174, 96, 0.1);
}

.trend-down .trend-indicator {
    background: rgba(231, 76, 60, 0.1);
}

.trend-neutral .trend-indicator {
    background: rgba(149, 165, 166, 0.1);
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.report-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: flex-end;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-sheet-overlay.active {
    display: flex;
    opacity: 1;
}

.report-sheet {
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.2);
    padding: 8px 24px;
    z-index: 10;
}

.report-sheet-overlay.active .report-sheet {
    transform: translateY(0);
}

.report-sheet::before {
    content: '';
    width: 40px;
    height: 4px;
    background: var(--outlineVariant);
    border-radius: 2px;
    margin: 12px auto;
    display: block;
}

.report-sheet-content {
    overflow-y: scroll;
    flex: 1;
    margin: 10px 0;
    z-index: 10;
}

.report-sheet-content .card-input {
    margin-bottom: 8px;
    transform: none !important;
    opacity: 1 !important;
}

.menu-subheader {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding: 0.75rem 1rem 0.5rem 1rem;
    border-left: 3px solid #3b82f6;
    margin-left: 0.5rem;
}

@media screen and (min-width: 1px) {
    .analytics-container {
        padding: 10px;
    }
    .dashboard-card {
        padding: 1rem;
    }
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .user-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .email-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    .action-section {
        flex-direction: column;
        align-items: stretch;
    }
    .action-bar {
        justify-content: center;
    }
    .btn-download,
    .btn-refresh {
        justify-content: center;
    }
    .stat-card {
        padding: 0.75rem;
    }
    .card-content {
        padding: 16px;
    }
    .stat-number {
        font-size: 1.25rem;
    }
    .table-container {
        overflow-x: auto;
    }
    .analytics-table {
        min-width: 800px;
    }
    .charts {
        display: flex;
        flex-direction: column;
        height: 1050px;
    }
    .chart,
    .chart-wide,
    .chart-widest,
    .chart-half {
        width: 100%;
        height: 350px;
        margin: 5px;
    }
    .admin-menu {
        width: 40px;
    }
    .admin-content {
        width: calc(100vw - 40px);
    }
    .admin-menu ul li span:nth-of-type(2) {
        display: none;
    }
}

@media screen and (min-width: 360px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    .stat-card {
        padding: 0.75rem;
    }
}

@media screen and (min-width: 640px) {
    .summary-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .email-input-group {
        flex-direction: row;
        align-items: center;
    }
    .action-section {
        flex-direction: row;
        align-items: center;
    }
    .action-bar {
        justify-content: flex-start;
    }
    .user-header {
        flex-direction: row;
        text-align: left;
        gap: 20px;
    }
}

@media screen and (min-width: 960px) {
    .analytics-container {
        padding: 20px;
    }
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .dashboard-card {
        padding: 1.5rem;
    }
    .card-content {
        padding: 24px;
    }
}

@media screen and (min-width: 1280px) {
    .charts {
        display: flex;
        flex-direction: row;
        height: 350px;
    }
    .chart {
        width: 33.3%;
        height: 100%;
        margin: 5px;
    }
    .chart-half {
        width: 50%;
        height: 350px;
        margin: 5px;
    }
    .chart-wide {
        width: 66.6%;
        height: 350px;
        margin: 5px;
    }
    .analytics-container {
        max-width: 1280px;
        margin: 0 auto;
    }
    .admin-menu {
        width: 220px;
    }
    .admin-content {
        width: calc(100vw - 220px);
    }
    .admin-menu ul li span:nth-of-type(2) {
        display: flex;
    }
}

@media screen and (min-width: 1440px) {
    .analytics-container {
        max-width: 1440px;
        padding: 30px;
        margin: 0 auto;
    }
    .stats-grid {
        gap: 1.5rem;
    }
    .stat-card {
        padding: 1rem;
    }
    .stat-number {
        font-size: 1.75rem;
    }
    .dashboard-card {
        padding: 2rem;
    }
    .card-content {
        padding: 28px;
    }
}
