html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

:root {
    --app-bg: #edf2f7;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #d8e2ee;
    --border-strong: #aebdd0;
    --text: #102033;
    --muted: #64748b;
    --primary: #0f6edb;
    --primary-dark: #0757b3;
    --danger: #b42318;
    --danger-bg: #fee4e2;
    --danger-border: #fda29b;
    --warning: #9a5b00;
    --warning-bg: #fff1c7;
    --success: #137a3a;
    --success-bg: #dcfce7;
    --info: #075985;
    --info-bg: #e0f2fe;
    --closed-bg: #eef2f6;
    --shadow-sm: 0 8px 24px rgba(16, 24, 40, .06);
    --shadow-md: 0 16px 44px rgba(16, 24, 40, .10);
}

body {
    margin-bottom: 60px;
    background: radial-gradient(circle at top left, #f7fbff 0, var(--app-bg) 360px);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    color: #075fa8;
    text-underline-offset: 3px;
}

a:hover {
    color: #034f8e;
}

.app-navbar {
    background: linear-gradient(90deg, #0c141d 0%, #111b26 55%, #142235 100%);
    min-height: 58px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.app-main {
    max-width: 1500px;
    padding-left: 24px;
    padding-right: 24px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f8fafc;
    font-weight: 700;
}

.app-brand:hover {
    color: #ffffff;
}

.app-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 34px;
    border-radius: 7px;
    background: #ffffff;
    padding: 5px 9px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.app-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.app-brand-text {
    letter-spacing: 0;
    line-height: 1;
}

.app-navbar .nav-link {
    color: rgba(255,255,255,.78);
    font-size: .92rem;
    border-radius: 7px;
    padding-left: .7rem;
    padding-right: .7rem;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, .07);
}

.app-navbar .dropdown-menu {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .18);
}

.ticket-page {
    max-width: 100%;
}

.ticket-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ticket-page-header h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0;
    color: #102033;
}

.ticket-page-subtitle {
    color: #667085;
    font-size: .92rem;
}

.ticket-filter {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.ticket-filter .form-control,
.ticket-filter .form-select,
.ticket-filter .btn {
    min-height: 38px;
    border-radius: 6px;
}

.ticket-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.ticket-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.ticket-page-indicator {
    color: #667085;
    font-size: .88rem;
}

.ticket-table {
    margin-bottom: 0;
    font-size: .88rem;
}

.ticket-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7f9fc;
    color: #24364a;
    border-bottom: 1px solid var(--border-strong);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
}

.ticket-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #24364a;
    text-decoration: none;
}

.ticket-sort-link:hover {
    color: #005ea8;
    text-decoration: none;
}

.ticket-sort-indicator {
    display: inline-block;
    min-width: 10px;
    color: #005ea8;
    font-size: .82rem;
    line-height: 1;
}

.ticket-table tbody td {
    border-color: #dce3ed;
    vertical-align: middle;
    padding-top: 12px;
    padding-bottom: 12px;
}

.ticket-row {
    transition: background-color .15s ease;
    background: #ffffff;
    border-left: 4px solid transparent;
}

.ticket-row:hover {
    background-color: #f5fbff;
}

.ticket-row-priority-low {
    background: #ffffff;
    border-left-color: #9db4d0;
}

.ticket-row-priority-normal {
    background: #fffdf7;
    border-left-color: #f1d47a;
}

.ticket-row-priority-high {
    background: #fff3ed;
    border-left-color: #f97316;
}

.ticket-row-priority-immediate {
    background: #fee8e7;
    border-left-color: #dc2626;
}

.ticket-row-closed {
    background: var(--closed-bg);
    color: #5d6b7c;
    border-left-color: #94a3b8;
}

.ticket-detail-row.ticket-row-priority-low > td,
.ticket-detail-row.ticket-row-priority-normal > td,
.ticket-detail-row.ticket-row-priority-high > td,
.ticket-detail-row.ticket-row-priority-immediate > td,
.ticket-detail-row.ticket-row-closed > td {
    background: transparent;
}

.ticket-number-col {
    width: 92px;
    white-space: nowrap;
}

.ticket-customer-col {
    width: 190px;
}

.ticket-subject-col {
    min-width: 500px;
}

.ticket-title-link {
    color: #075fa8;
    font-weight: 700;
    text-decoration: none;
}

.ticket-title-link:hover {
    text-decoration: underline;
}

.ticket-expand-btn {
    border: 1px solid #b8c5d6;
    background: #ffffff;
    color: #344054;
    border-radius: 7px;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    line-height: 1.35;
    font-size: .9rem;
    font-weight: 600;
}

.ticket-expand-btn:hover {
    border-color: #075fa8;
    color: #075fa8;
}

.ticket-customer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 1px solid #d4dce8;
    border-radius: 6px;
    background: #ffffff;
    padding: 3px;
}

.ticket-customer-logo img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

.ticket-preview,
.ticket-comment-preview {
    color: #5d6b7c;
    font-size: .79rem;
    line-height: 1.35;
    margin-top: 2px;
}

.ticket-comment-preview {
    color: #475467;
}

.ticket-meta {
    color: #1f2933;
    font-size: .83rem;
}

.ticket-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.ticket-pill-sm {
    min-width: 0;
    padding: 3px 8px;
    font-size: .76rem;
}

.priority-immediate {
    background: #8a1212;
    border-color: #8a1212;
    color: #ffffff;
}

.priority-high {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger);
}

.priority-normal {
    background: var(--warning-bg);
    border-color: #facc15;
    color: var(--warning);
}

.priority-low {
    background: #eef6ff;
    border-color: #b9d8ff;
    color: #0757b3;
}

.priority-default {
    background: #f1f5f9;
    border-color: #d8e2ee;
    color: #475569;
}

.status-new {
    background: var(--success-bg);
    border-color: #86efac;
    color: var(--success);
}

.status-progress,
.status-approved {
    background: var(--info-bg);
    border-color: #7dd3fc;
    color: var(--info);
}

.status-waiting {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

.status-closed {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

.status-default {
    background: #f1f5f9;
    border-color: #d8e2ee;
    color: #475569;
}

.ticket-detail-row > td {
    background: transparent;
}

.ticket-detail-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
    gap: 18px;
    padding: 22px 24px 26px;
    border-top: 1px solid #d7dee8;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.ticket-detail-page {
    max-width: 1320px;
    margin: 0 auto;
}

.ticket-detail-hero {
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-sm);
}

.ticket-detail-hero-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ticket-detail-hero h2 {
    margin: 0 0 10px;
    color: #102033;
    font-size: 1.9rem;
    font-weight: 700;
}

.ticket-quick-update-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) repeat(5, minmax(120px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.ticket-quick-update-form label {
    display: block;
    margin-bottom: 4px;
    color: #52667c;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ticket-quick-update-form .form-control {
    min-height: 38px;
}

.ticket-quick-update-form .btn {
    min-height: 38px;
    white-space: nowrap;
}

.ticket-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
}

.ticket-detail-main,
.ticket-side-panel,
.ticket-history-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .90);
    box-shadow: var(--shadow-sm);
}

.ticket-detail-main {
    padding: 22px 24px;
}

.ticket-side-panel {
    position: sticky;
    top: 78px;
    padding: 18px;
}

.ticket-history-panel {
    margin-top: 22px;
    padding: 18px 20px;
}

.ticket-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    color: #24364a;
}

.ticket-detail-meta strong {
    color: #102033;
}

.ticket-customer-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.ticket-customer-image-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 72px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    padding: 5px;
}

.ticket-customer-image-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ticket-section {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--border);
}

.ticket-section:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}

.ticket-section h4,
.ticket-side-panel h4,
.ticket-history-panel h4 {
    margin-bottom: 12px;
    color: #102033;
    font-size: 1.15rem;
    font-weight: 700;
}

.ticket-description-box,
.ticket-comment-body {
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #fbfdff;
    color: #172033;
    line-height: 1.6;
    white-space: pre-wrap;
}

.ticket-description-box:hover,
.ticket-comment-body:hover {
    outline: 1px solid #c7d7ea;
    background: #ffffff;
}

.ticket-comment-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
    margin-bottom: 12px;
}

.ticket-comment-card-private {
    border-color: #fbbf24;
    background: #fffbeb;
}

.ticket-comment-actions {
    margin-top: 10px;
}

.knowledge-summary-text,
.knowledge-content {
    white-space: pre-wrap;
}

.knowledge-content {
    line-height: 1.7;
}

.ticket-new-comment {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfdff;
}

.ticket-side-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ticket-attachment-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    padding: 10px;
}

.ticket-attachment-preview {
    max-width: 100%;
    max-height: 150px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 6px;
    object-fit: contain;
}

.ticket-dropzone {
    border: 2px dashed #bac7d8;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    color: #475569;
    transition: background-color .15s ease, border-color .15s ease;
}

.ticket-dropzone:hover {
    border-color: var(--primary);
    background: #f0f7ff;
}

.ticket-history-entry {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.ticket-history-entry:last-child {
    border-bottom: 0;
}

.ticket-company-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ticket-assignee-menu {
    max-height: 280px;
    min-width: 220px;
    overflow-y: auto;
    padding: 2px 0;
}

.ticket-assignee-menu .dropdown-item {
    border-radius: 0;
    font-size: .86rem;
    line-height: 1.25;
    white-space: normal;
}

.ticket-assignee-menu .dropdown-item.active {
    background: #eef4ff;
    color: #0b5cad;
    font-weight: 700;
}

.ticket-quick-update-form .select2-container {
    max-width: 100%;
}

.ticket-quick-update-form .select2-container .select2-selection--single {
    min-height: 38px;
    border-color: #cbd5e1;
    border-radius: 7px;
}

.ticket-quick-update-form .select2-container .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
    padding-right: 28px;
}

.ticket-quick-update-form .select2-container .select2-selection__arrow {
    height: 36px;
}

.ticket-detail-section {
    border: 1px solid #dce3ed;
    border-radius: 8px;
    background: #ffffff;
    padding: 16px 18px;
}

.ticket-detail-section h3 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf1f7;
    color: #101828;
    font-size: .95rem;
    font-weight: 700;
}

.btn {
    border-radius: 7px;
    font-weight: 600;
}

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

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

.form-control,
.form-select {
    border-color: #cbd5e1;
    border-radius: 7px;
}

.form-control:focus,
.form-select:focus {
    border-color: #7bb3f1;
    box-shadow: 0 0 0 .2rem rgba(15, 110, 219, .14);
}

.required-label::after {
    content: " *";
    color: #dc2626;
    font-weight: 800;
}

.knowledge-inline-link {
    font-weight: 700;
}

.card,
.statistics-summary-card,
.statistics-panel {
    border-color: var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.table:not(.ticket-table) {
    border-color: var(--border);
}

.table:not(.ticket-table) thead th {
    background: #f7f9fc;
    border-bottom-color: var(--border-strong);
    color: #24364a;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.table:not(.ticket-table) tbody tr:hover {
    background: #f8fbff;
}

.ticket-detail-text {
    color: #1f2933;
    white-space: pre-wrap;
    line-height: 1.65;
    font-size: .92rem;
}

.ticket-inline-image {
    display: block;
    max-width: min(520px, 100%);
    max-height: 360px;
    margin: 10px 0;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    background: #ffffff;
    object-fit: contain;
}

.ticket-comment-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 10px;
    color: #344054;
}

.ticket-comment-header span {
    color: #667085;
    font-size: .82rem;
}

.ticket-detail-empty {
    color: #667085;
}

.customer-page {
    max-width: 100%;
}

.customer-table {
    table-layout: fixed;
}

.customer-table td {
    height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
    white-space: nowrap;
}

.customer-table th,
.customer-table td {
    overflow: hidden;
}

.customer-number-col {
    width: 82px;
}

.customer-name-col {
    width: 205px;
}

.customer-firstname-col {
    width: 140px;
}

.customer-email-col {
    width: 285px;
}

.customer-phone-col {
    width: 130px;
}

.customer-city-col {
    width: 130px;
}

.customer-company-col,
.customer-table th:nth-child(7) {
    width: 180px;
}

.customer-status-col {
    width: 96px;
}

.customer-actions-col {
    width: 128px;
    text-align: right;
}

.customer-click-row {
    cursor: pointer;
}

.customer-click-row:hover .ticket-title-link {
    text-decoration: underline;
}

.customer-cell-text {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-email {
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.customer-actions .btn {
    min-width: 0;
    padding: 4px 9px;
    line-height: 1.25;
}

.admin-category-table {
    table-layout: fixed;
}

.admin-category-table th:nth-child(1) {
    width: 48%;
}

.admin-category-table th:nth-child(2),
.admin-category-table th:nth-child(3) {
    width: 150px;
}

.admin-category-table th:nth-child(4) {
    width: 190px;
}

.admin-lookup-table th:last-child,
.admin-lookup-table td:last-child {
    width: 160px;
}

.admin-lookup-table select {
    min-width: 190px;
}

.admin-category-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.statistics-page {
    max-width: 100%;
}

.statistics-filter .select2-container .select2-selection--single {
    min-height: 38px;
    border-color: #ced4da;
    border-radius: 6px;
}

.statistics-filter .select2-container .select2-selection__rendered {
    line-height: 36px;
}

.statistics-filter .select2-container .select2-selection__arrow {
    min-height: 36px;
}

.statistics-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.statistics-summary-card {
    background: #ffffff;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
}

.statistics-summary-card span {
    display: block;
    color: #667085;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.statistics-summary-card strong {
    display: block;
    margin-top: 6px;
    color: #101828;
    font-size: 1.35rem;
}

.statistics-phone-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #c7d7ea;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
}

.statistics-phone-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #075fa8;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.statistics-phone-panel h2 {
    margin: 0 0 10px;
    color: #101828;
    font-size: 1.05rem;
    font-weight: 800;
}

.statistics-phone-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.statistics-phone-values span {
    padding: 5px 8px;
    border: 1px solid #d9e0ea;
    border-radius: 999px;
    background: #ffffff;
    color: #475467;
    font-size: .85rem;
}

.statistics-phone-values strong {
    color: #101828;
}

.statistics-phone-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 260px;
}

.statistics-tabs {
    margin-bottom: 12px;
}

.statistics-tabs .nav-link {
    color: #475467;
    font-weight: 700;
}

.statistics-tabs .nav-link.active {
    color: #075fa8;
}

.statistics-tab-content {
    min-height: 220px;
}

.statistics-panel {
    background: #ffffff;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
}

.statistics-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.statistics-panel-header h2 {
    margin: 0;
    color: #101828;
    font-size: 1rem;
    font-weight: 700;
}

.statistics-panel-header span {
    color: #667085;
    font-size: .82rem;
}

.statistics-table td {
    white-space: nowrap;
}

.statistics-count-cell {
    width: 170px;
}

.statistics-count-cell span {
    display: inline-block;
    width: 40px;
    font-weight: 700;
}

.statistics-bar {
    display: inline-flex;
    width: 100px;
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: #e6ebf2;
    vertical-align: middle;
}

.statistics-bar div {
    border-radius: inherit;
    background: #075fa8;
}

.statistics-list {
    display: grid;
    gap: 8px;
}

.statistics-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border: 1px solid #edf1f7;
    border-radius: 6px;
    background: #fbfcfe;
}

.statistics-list-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.statistics-hours {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.statistics-hour {
    display: grid;
    justify-items: center;
    gap: 4px;
    color: #475467;
    font-size: .78rem;
}

.statistics-hour-bar {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 82px;
    overflow: hidden;
    border-radius: 6px;
    background: #edf1f7;
}

.statistics-hour-bar div {
    width: 100%;
    background: #075fa8;
}

.statistics-hour strong {
    color: #101828;
}

@media (max-width: 991px) {
    .ticket-page-header,
    .ticket-detail-panel {
        display: block;
    }

    .ticket-quick-update-form {
        grid-template-columns: 1fr 1fr;
    }

    .ticket-quick-update-form .btn {
        grid-column: 1 / -1;
    }

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

    .ticket-side-panel {
        position: static;
    }

    .ticket-detail-section + .ticket-detail-section {
        margin-top: 14px;
    }

    .app-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .statistics-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-phone-panel,
    .statistics-phone-actions {
        display: block;
    }

    .statistics-phone-actions .btn {
        width: 100%;
        margin-top: 8px;
    }

    .statistics-hours {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ========================================
   Bootstrap focus
======================================== */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ========================================
   Status badges
======================================== */

.status {
    padding: 3px 8px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
}

.green {
    background-color: #28a745;
}

.orange {
    background-color: #ffc107;
    color: black;
}

.red {
    background-color: #dc3545;
}

.gray {
    background-color: #6c757d;
}

/* ========================================
   Wiki
======================================== */

.wiki-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    line-height: 1.7;
}

    /* Headers */

    .wiki-content h1 {
        margin-top: 40px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #ddd;
        font-size: 2rem;
    }

    .wiki-content h2 {
        margin-top: 35px;
        margin-bottom: 15px;
        font-size: 1.5rem;
    }

    .wiki-content h3 {
        margin-top: 25px;
        margin-bottom: 10px;
        font-size: 1.2rem;
    }

    /* Links */

    .wiki-content a {
        text-decoration: none;
    }

        .wiki-content a:hover {
            text-decoration: underline;
        }

/* Collapse blocks */

.wiki-collapse {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    padding: 12px;
    margin-bottom: 20px;
}

    .wiki-collapse summary {
        cursor: pointer;
        font-weight: bold;
        font-size: 1rem;
    }

/* Tables */

.wiki-content table {
    width: 100%;
    margin-bottom: 20px;
}

.wiki-content td,
.wiki-content th {
    padding: 10px;
    border: 1px solid #ddd;
}

/* Lists */

.wiki-content ul {
    padding-left: 20px;
}

.wiki-content li {
    margin-bottom: 5px;
}

/* Code blocks */

.wiki-content code {
    background: #f1f1f1;
    padding: 2px 5px;
    border-radius: 4px;
}

/* Inline images */

.wiki-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}
