/* ═══ LogIT Dashboard ═══ */

:root {
    --brand: rgb(77, 39, 119);
    --brand-dark: rgb(57, 29, 89);
    --orange: #e8740c;
    --violet: #7c3aed;
    --red: #dc2626;
    --green: #16a34a;
    --amber: #d97706;
    --teal: #0d9488;
    --dark: #374151;
    --navy: #1e3a5f;
    --blue: #2563eb;
    --bg: #f4f6fa;
    --card: #fff;
    --border: #d0d5e0;
    --text: #333;
    --text-light: #888;
    --text-muted: #bbb;
    --shadow: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
}

/* ═══ TOP BAR ═══ */

.top-bar {
    background: var(--card);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.title-group {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-right: auto;
}

.dashboard-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand);
    margin: 0;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid var(--brand);
    border-radius: 6px;
    background: transparent;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-export:hover { background: var(--brand); color: #fff; }

.date-group {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.btn-date {
    padding: 6px 14px;
    border: none;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-right: 1px solid #e0e3ea;
    transition: all 0.15s;
}
.btn-date:last-child { border-right: none; }
.btn-date:hover { background: #f0f2f8; }
.btn-date.active { background: var(--brand); color: #fff; }

.btn-reset {
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-reset:hover { border-color: var(--red); color: var(--red); background: #fef5f5; }

.custom-date-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.btn-apply {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.btn-apply:hover { background: var(--brand-dark); }

.date-display {
    font-size: 13px;
    color: #777;
    white-space: nowrap;
}
.date-display.all-records { color: var(--brand); font-weight: 600; }

.toggle-group {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.btn-toggle {
    padding: 6px 16px;
    border: none;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-right: 1px solid #e0e3ea;
    transition: all 0.15s;
}
.btn-toggle:last-child { border-right: none; }
.btn-toggle:hover { background: #f0f2f8; }
.btn-toggle.active-all { background: var(--brand); color: #fff; }
.btn-toggle.active-rm { background: var(--orange); color: #fff; }
.btn-toggle.active-pm { background: var(--violet); color: #fff; }

/* ═══ USER MENU ═══ */

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.btn-logout {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-logout:hover { border-color: var(--red); color: var(--red); }

.btn-admin {
    padding: 5px 12px;
    border: 1px solid var(--brand);
    border-radius: 4px;
    background: #fff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-admin:hover { background: var(--brand); color: #fff; }

/* ═══ ADMIN PAGE ═══ */

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand);
    margin: 0;
}

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

.btn-add {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-add:hover { background: var(--brand-dark); }

.btn-back {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-back:hover { border-color: var(--brand); color: var(--brand); }

/* User table */
.admin-grid {
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.user-table th {
    background: #f8f9fb;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e5e7eb;
}

.user-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f4;
    color: var(--text);
}

.user-table tr:hover td { background: #faf9fc; }
.row-inactive td { opacity: 0.5; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.badge-green { background: #dcfce7; color: #16a34a; }
.badge-red { background: #fef2f2; color: #dc2626; }
.badge-purple { background: #f3e8ff; color: rgb(77,39,119); }
.badge-blue { background: #dbeafe; color: #2563eb; }
.badge-gray { background: #f3f4f6; color: #9ca3af; }

.action-cell { display: flex; gap: 6px; }

.btn-action {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-action:hover { border-color: var(--brand); color: var(--brand); }

.btn-link {
    background: none;
    border: none;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* Dialogs */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.dialog-sm { max-width: 380px; }
.dialog-lg { max-width: 700px; }

.dialog h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand);
    margin: 0 0 16px 0;
}

.dialog-sub {
    font-size: 13px;
    color: #999;
    margin: -8px 0 16px 0;
}

.dialog-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.form-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-field input:focus { outline: none; border-color: var(--brand); }

.form-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
.form-field select:focus { outline: none; border-color: var(--brand); }

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); }

.dialog-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-save {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.btn-save:hover { background: var(--brand-dark); }

.btn-cancel {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
}

/* Facility assignment */
.facility-summary {
    font-size: 13px;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 12px;
}

.facility-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
}

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

.region-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #f8f9fb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.region-count {
    font-size: 11px;
    color: #999;
    margin-left: auto;
}

.facility-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 6px 0 0 28px;
}

.facility-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    padding: 3px 0;
}

/* Toast */
.toast-success {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #16a34a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ═══ LOGIN PAGE ═══ */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: rgb(77, 39, 119);
    margin: 0 0 8px 0;
}

.login-header p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d0d5e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    transition: border-color 0.15s;
}

.login-field input:focus {
    outline: none;
    border-color: rgb(77, 39, 119);
}

.login-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgb(77, 39, 119);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 8px;
}

.login-button:hover {
    background: rgb(57, 29, 89);
}

/* ═══ ADMIN FILTER BAR ═══ */

.admin-filter-bar {
    background: var(--card);
    border-radius: 12px;
    padding: 12px 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

/* Telerik dropdown font override */
.k-multiselect,
.k-multiselect .k-input-inner,
.k-list-item,
.k-popup .k-list-item,
.k-chip-label {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    font-size: 13px !important;
}

/* ═══ SECTIONS ═══ */

.kpi-section {
    margin-bottom: 28px;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-left: 4px;
}

/* ═══ TILES ═══ */

.tile-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}
.tile-3col { grid-template-columns: repeat(3, 1fr); }
.tile-4col { grid-template-columns: repeat(4, 1fr); }

.tile {
    background: var(--card);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: var(--shadow);
    border-left: 4px solid transparent;
    transition: box-shadow 0.2s, transform 0.15s, opacity 0.2s;
}
.tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.tile-dimmed { opacity: 0.35; }

.tile-purple { border-left-color: var(--brand); }
.tile-orange { border-left-color: var(--orange); }
.tile-violet { border-left-color: var(--violet); }
.tile-red { border-left-color: var(--red); }
.tile-green { border-left-color: var(--green); }
.tile-amber { border-left-color: var(--amber); }
.tile-teal { border-left-color: var(--teal); }
.tile-dark { border-left-color: var(--dark); }
.tile-blue { border-left-color: var(--blue); }

.tile-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.tile-value {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2px;
}
.tile-value.purple { color: var(--brand); }
.tile-value.orange { color: var(--orange); }
.tile-value.violet { color: var(--violet); }
.tile-value.red { color: var(--red); }
.tile-value.green { color: var(--green); }
.tile-value.amber { color: var(--amber); }
.tile-value.teal { color: var(--teal); }
.tile-value.dark { color: var(--dark); }
.tile-value.blue { color: var(--blue); }

.tile-sub {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
}

.tile-range {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

.tile-unit {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
}

.tile-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.tile-link.purple { color: var(--brand); }
.tile-link.red { color: var(--red); }
.tile-link.green { color: var(--green); }
.tile-link:hover { opacity: 0.7; }

/* ═══ CHARTS ═══ */

.chart-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}
.chart-3col { grid-template-columns: repeat(3, 1fr); }

.chart-card {
    background: var(--card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.chart-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin: 0 0 8px 0;
    text-align: center;
    width: 100%;
}

.bar-chart-card {
    background: var(--card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.bar-chart-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin: 0 0 8px 0;
}

.bar-chart-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    padding: 4px 0;
    transition: color 0.15s;
}
.bar-chart-toggle:hover { color: rgb(77, 39, 119); }

.bar-chart-export {
    margin-left: auto;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.bar-chart-export:hover { border-color: var(--brand); color: var(--brand); }

.toggle-chevron {
    display: inline-block;
    font-size: 10px;
    color: #999;
    transition: transform 0.2s ease;
}
.toggle-chevron.open {
    transform: rotate(90deg);
}

/* ═══ GRID ═══ */

.grid-card {
    background: var(--card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.grid-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #444;
    margin: 0 0 12px 0;
}

/* Drill-through grid modal */
.dialog-grid {
    max-width: 95vw;
    width: 95vw;
    max-height: 90vh;
    padding: 24px;
}

.dialog-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dialog-grid-header h3 {
    margin: 0;
}

.dialog-grid-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Grid cell styles */
.grid-type-rm {
    display: inline-block;
    background: #fff7ed;
    color: #e8740c;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.grid-type-pm {
    display: inline-block;
    background: #f3e8ff;
    color: #7c3aed;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.grid-priority-p1 { color: #dc2626; font-weight: 600; }
.grid-priority-p2 { color: #d97706; font-weight: 600; }
.grid-priority-p3 { color: #2563eb; font-weight: 600; }
.grid-priority-p4 { color: #6b7280; font-weight: 600; }
.grid-priority-default { color: #555; }

.grid-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: #f3f4f6;
    color: #555;
}

.grid-days-high { color: #dc2626; font-weight: 700; }
.grid-days-med { color: #d97706; font-weight: 600; }
.grid-days-low { color: #16a34a; }

/* ═══ SVG DONUT CHART ═══ */

.donut-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.donut-chart-title {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}

.donut-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 14px;
}

.donut-svg {
    width: 100%;
    height: 100%;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-center-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}

.donut-center-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    margin-top: 2px;
}

.donut-center-range {
    font-size: 9px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 3px;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
}

.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 1024px) {
    .tile-3col, .tile-4col { grid-template-columns: repeat(2, 1fr); }
    .chart-3col { grid-template-columns: 1fr; }
    .top-bar { flex-direction: column; align-items: stretch; }
    .title-group { margin-right: 0; }
}

@media (max-width: 640px) {
    .tile-3col, .tile-4col { grid-template-columns: 1fr; }
    .dashboard-container { padding: 12px; }
}

/* ═══ PRINT STYLES ═══ */

@media print {
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

    body { background: #fff !important; }
    .dashboard-container { padding: 0; max-width: 100%; }

    /* Hide controls and non-content elements */
    .btn-export, .date-group, .btn-reset, .custom-date-group,
    .toggle-group, .btn-apply, .user-menu, .admin-filter-bar { display: none !important; }
    .toggle-chevron { display: none !important; }

    /* Hide all bar charts and modals from PDF export */
    .bar-chart-card { display: none !important; }
    .dialog-overlay { display: none !important; }

    /* Keep title and date display */
    .top-bar {
        box-shadow: none;
        border-bottom: 2px solid #e5e7eb;
        border-radius: 0;
        padding: 12px 0;
        margin-bottom: 16px;
    }

    .date-display { font-size: 14px; font-weight: 700; }

    /* Clean up cards */
    .tile, .chart-card, .grid-card {
        box-shadow: none !important;
        border: 1px solid #e5e7eb;
        break-inside: avoid;
    }
    .tile:hover { transform: none; }

    /* Section breaks - keep headers with content, allow sections to split */
    .kpi-section { margin-bottom: 12px; }
    .section-label { page-break-after: avoid; margin-bottom: 4px; }
    .tile-row { page-break-inside: avoid; }
    .chart-row { page-break-inside: avoid; }

    /* Reduce spacing */
    .tile-row, .chart-row { gap: 8px; margin-bottom: 8px; }
    .section-label { margin-bottom: 6px; }
    .tile { padding: 14px 16px; }
    .tile-value { font-size: 30px; }

    /* Donuts smaller for print */
    .donut-wrapper { width: 130px; height: 130px; }
    .donut-center-value { font-size: 18px; }
    .donut-center-label { font-size: 9px; }
    .donut-center-range { font-size: 8px; }
    .donut-chart-title { font-size: 11px; }
    .legend-item { font-size: 10px; }
    .legend-swatch { width: 10px; height: 10px; }

    /* Dim class should not apply in print */
    .tile-dimmed { opacity: 1 !important; }

    /* Page setup */
    @page {
        size: A4 landscape;
        margin: 10mm;
    }
}
