html, body {
    min-width: 360px;
    margin: 0;
    background: #f7f8fc;
    color: #20243a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kpi-filter-panel { margin-bottom: 20px; padding: 18px 20px; }
.kpi-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.kpi-filters .field { min-width: 150px; }
.kpi-metric-grid { margin-bottom: 22px; }
.kpi-metric-grid .metric-card { min-height: 105px; }
.kpi-metric-grid .metric-card strong { font-variant-numeric: tabular-nums; }
.kpi-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.kpi-chart-card { min-width: 0; padding: 20px; }
.kpi-table-panel { margin-top: 20px; padding: 20px; }
.kpi-table-panel h2 { margin: 0 0 14px; font-size: 15px; }
.kpi-chart-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.kpi-chart-card > header h2 { margin: 0; font-size: 15px; }
.kpi-chart-card > header span { color: #85899c; font-size: 11px; }
.kpi-chart { display: flex; min-height: 145px; align-items: flex-end; gap: 7px; overflow-x: auto; padding: 8px 2px 0; }
.kpi-chart-column { display: flex; min-width: 28px; height: 125px; flex: 1 0 28px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.kpi-chart-bar { width: min(22px, 72%); min-height: 2px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #8b7cf6, #6555df); }
.kpi-chart-column small { color: #9296a7; font-size: 9px; white-space: nowrap; }
.kpi-chart-empty { display: grid; min-height: 90px; place-items: center; color: #9296a7; font-size: 12px; }
.kpi-trend-series { margin-top: 17px; }
.kpi-trend-title { margin-bottom: 5px; color: #686d82; font-size: 11px; font-weight: 650; }
.kpi-chart-compact { min-height: 95px; }
.kpi-chart-compact .kpi-chart-column { height: 75px; }
.kpi-subheading { margin: 24px 0 14px; font-size: 18px; }
.kpi-positive { color: #16835d !important; }
.kpi-negative { color: #c34355 !important; }
.customer-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gantt-signature-indicator { display: block; overflow: hidden; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.gantt-signature-signed { color: #15734f; }
.gantt-signature-unsigned { color: #9a6a1e; }
.customer-signature-panel { margin-top: 20px; padding: 22px; }
.customer-signature-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.customer-signature-notes { grid-column: 1 / -1; }
.customer-signature-notes textarea { min-height: 76px; resize: vertical; }
.customer-signature-canvas-wrap { margin-top: 18px; }
.customer-signature-canvas { display: block; width: 100%; height: 220px; border: 1px dashed #c9cbd8; border-radius: 10px; background: #fff; touch-action: none; }
.customer-signature-canvas-wrap > span { display: block; margin-top: 7px; color: #85899c; font-size: 11px; }
.customer-signature-summary { display: grid; justify-items: start; gap: 12px; }
.customer-signature-summary small { display: block; margin-top: 4px; color: #85899c; }
.customer-signature-image { display: block; width: min(100%, 560px); height: 170px; object-fit: contain; border: 1px solid #e2e4ec; border-radius: 8px; background: #fff; }
.customer-signature-immutable { color: #15734f; font-size: 12px; font-weight: 650; }
.ticket-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ticket-customer-autocomplete { position: relative; }
.ticket-autocomplete-options { position: absolute; z-index: 4; top: calc(100% + 4px); right: 0; left: 0; max-height: 260px; overflow-y: auto; border: 1px solid #e2e4ec; border-radius: 9px; background: #fff; box-shadow: 0 12px 28px #20243a1c; }
.ticket-autocomplete-option { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 0; background: #fff; color: #30354b; cursor: pointer; font: inherit; text-align: left; }
.ticket-autocomplete-option:hover, .ticket-autocomplete-option:focus { background: #f3f2ff; outline: none; }
.ticket-autocomplete-option small, .ticket-autocomplete-message { color: #85899c; font-size: 11px; }
.ticket-autocomplete-message { padding: 12px; }
.ticket-selector-error { margin-top: 12px; }
.ticket-related-grid > .field { position: relative; min-width: 0; }
.ticket-selector-input-row { display: flex; align-items: stretch; gap: 8px; }
.ticket-selector-input-row .control { min-width: 0; flex: 1; }
.ticket-selector-add { flex: 0 0 auto; white-space: nowrap; }
.ticket-selection-summary { display: block; margin-top: 7px; color: #676c81; font-size: 11px; }
.ticket-asset-selected { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 8px; }
.ticket-asset-selected > span { color: #454a60; font-weight: 650; }
.ticket-asset-selected small { grid-column: 1; }
.ticket-selection-clear, .ticket-no-asset { padding: 2px 0; border: 0; background: transparent; color: #6658d8; cursor: pointer; font: inherit; font-size: 11px; text-align: left; }
.ticket-selection-clear { grid-column: 2; grid-row: 1 / span 2; }
.ticket-no-asset { margin-top: 6px; }
.ticket-modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: #17192b80; }
.ticket-modal { width: min(600px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 24px; border: 1px solid #e8e9f0; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px #17192b3d; }
.ticket-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.ticket-modal-header h2 { margin: 0; color: #292d43; font-size: 19px; }
.ticket-modal-header p { margin: 6px 0 0; color: #85899c; font-size: 12px; }
.ticket-modal-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ticket-modal-customer { display: grid; gap: 4px; margin-bottom: 17px; padding: 12px 14px; border: 1px solid #e8e7fb; border-radius: 8px; background: #f8f7ff; color: #555a70; font-size: 12px; }
.ticket-modal-customer strong { color: #34384e; }
.ticket-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
@media (max-width: 900px) {
    .kpi-chart-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
    .customer-signature-fields { grid-template-columns: minmax(0, 1fr); }
    .customer-signature-notes { grid-column: auto; }
    .customer-signature-canvas { height: 190px; }
    .ticket-related-grid { grid-template-columns: minmax(0, 1fr); }
    .ticket-selector-input-row { flex-direction: column; }
    .ticket-selector-add { align-self: flex-start; }
    .ticket-modal-backdrop { align-items: end; padding: 0; }
    .ticket-modal { width: 100%; max-height: 92vh; padding: 20px; border-radius: 16px 16px 0 0; }
    .ticket-modal-fields { grid-template-columns: minmax(0, 1fr); }
    .user-form-grid { grid-template-columns: minmax(0, 1fr); }
}

a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 2;
    display: flex;
    width: 248px;
    flex-direction: column;
    padding: 28px 18px 18px;
    background: #171a2f;
    color: #c3c6d6;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 36px; color: #fff; font-size: 17px; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #7d68f5, #5744d4); color: white; font-size: 20px; font-weight: 800; }
.brand small, .sidebar-footer small { display: block; margin-top: 3px; color: #81869f; font-size: 9px; letter-spacing: 1.1px; }
.workspace-label { padding: 0 11px 12px; color: #777d98; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.side-nav { display: grid; gap: 5px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 9px; color: #adb1c7; font-size: 13px; font-weight: 550; }
.side-link:hover, .side-link.active { background: #292c47; color: #fff; }
.side-link.active .nav-icon { color: #a397ff; }
.nav-icon { width: 18px; color: #858aa5; font-size: 17px; text-align: center; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 18px 8px 4px; border-top: 1px solid #2e3046; color: #f3f3f7; font-size: 12px; }
.avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #3b3d5a; color: #d7d2ff; font-size: 10px; font-weight: 700; }
.main-content { min-height: 100vh; margin-left: 248px; }
.topbar { display: flex; height: 64px; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid #e9eaf0; background: #fff; }
.topbar-label { color: #81859a; font-size: 12px; }
.user-chip { display: flex; align-items: center; gap: 8px; color: #51566d; font-size: 12px; font-weight: 600; }
.online-dot, .priority-badge i { width: 7px; height: 7px; border-radius: 50%; background: #39b980; }
.content { max-width: 1440px; margin: 0 auto; padding: 40px 42px 64px; }
.page-heading, .form-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 27px; }
.eyebrow { margin-bottom: 10px; color: #8a8fa3; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; }
h1 { margin: 0; color: #20243a; font-size: clamp(26px, 3vw, 32px); font-weight: 720; letter-spacing: -1px; }
.page-heading p, .form-heading p { margin: 8px 0 0; color: #83889b; font-size: 13px; }

.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 650; transition: .15s ease; }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { padding: 0 16px; background: #6455df; color: #fff; box-shadow: 0 3px 8px #6455df2e; }
.button-primary:hover:not(:disabled) { background: #5142ca; }
.button-secondary, .button-page { padding: 0 12px; border-color: #e2e4ec; background: #fff; color: #555a70; }
.button-secondary:hover, .button-page:hover:not(:disabled) { background: #f6f6fb; }
.panel { overflow: hidden; border: 1px solid #e8e9f0; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px #23264308; }
.filter-toolbar { display: flex; flex-wrap: wrap; gap: 9px; padding: 16px 18px; border-bottom: 1px solid #eff0f4; }
.control { min-width: 0; height: 38px; padding: 0 11px; border: 1px solid #e2e4ec; border-radius: 7px; outline: none; background: #fff; color: #34384e; font: inherit; font-size: 12px; }
.control:focus { border-color: #8779ef; box-shadow: 0 0 0 3px #8879ef20; }
.search-wrap { position: relative; flex: 1 1 200px; }
.search-input { width: 100%; padding-left: 34px; }
.search-icon { position: absolute; top: 6px; left: 12px; color: #8b8fa2; font-size: 20px; }
.customer-filter { width: 150px; }
.select-filter { width: 145px; }
.ticket-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.ticket-table th { height: 43px; padding: 0 15px; background: #fbfbfd; color: #8a8fa1; font-size: 10px; font-weight: 650; text-align: left; }
.ticket-table td { height: 58px; padding: 0 15px; border-top: 1px solid #f0f1f5; color: #60657a; font-size: 12px; }
.ticket-table tbody tr:hover { background: #fcfcff; }
.sort-button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.ticket-number { color: #6558d9; font-size: 11px; font-weight: 700; }
.ticket-title { color: #2e3247; font-weight: 620; }
.ticket-title:hover, .ticket-number:hover { text-decoration: underline; }
.customer-id { color: #70758a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.priority-badge, .status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 20px; font-size: 10px; font-weight: 650; }
.priority-low { background: #f0f2f6; color: #6f7487; }
.priority-medium { background: #fff6df; color: #9c7118; }
.priority-high { background: #fff0e8; color: #c26836; }
.priority-critical { background: #fff0f1; color: #cb4652; }
.priority-low i { background: #8d93a3; }
.priority-medium i { background: #d9a834; }
.priority-high i { background: #e3824b; }
.priority-critical i { background: #dd5360; }
.status-open { background: #eef0ff; color: #6358c8; }
.status-assigned { background: #eaf5ff; color: #3677a9; }
.status-scheduled { background: #f1edff; color: #7759bd; }
.status-inprogress { background: #e8f5ff; color: #397fae; }
.status-waitingcustomer { background: #fff5e5; color: #a47722; }
.status-completed { background: #e8f8ef; color: #30865a; }
.status-closed { background: #f0f1f4; color: #73788a; }
.date-cell { color: #7d8295 !important; }
.icon-button { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #9195a7; cursor: pointer; font-size: 20px; }
.icon-button:hover { background: #fff0f1; color: #cb4652; }
.table-footer { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 10px 18px; border-top: 1px solid #eff0f4; color: #888da0; font-size: 11px; }
.table-footer strong { color: #555a70; }
.pagination { display: flex; align-items: center; gap: 10px; }
.button-page { min-height: 32px; font-size: 11px; }
.empty-state, .loading-state { display: flex; min-height: 230px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #8b90a2; font-size: 12px; }
.empty-state strong { color: #454a60; font-size: 14px; }
.empty-icon { display: grid; width: 45px; height: 45px; place-items: center; margin-bottom: 3px; border-radius: 14px; background: #f1efff; color: #7466e6; font-size: 22px; }
.spinner { width: 19px; height: 19px; border: 2px solid #e6e4f7; border-top-color: #6455df; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert-error { margin: 16px 18px 0; padding: 11px 13px; border: 1px solid #f2c8cd; border-radius: 7px; background: #fff5f5; color: #a53d49; font-size: 12px; }

.calendar-heading { align-items: center; }
.calendar-view-switch, .calendar-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.calendar-view-switch .active { border-color: #d7d2ff; background: #f3f1ff; color: #5d50c8; }
.calendar-panel { overflow: visible; }
.calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid #eff0f4; }
.calendar-period-title { margin-left: auto; color: #30354b; font-size: 14px; text-transform: capitalize; }
.calendar-date-input { width: 145px; }
.calendar-filter-bar { display: flex; flex-wrap: wrap; gap: 9px; padding: 14px 18px; border-bottom: 1px solid #eff0f4; }
.calendar-filter-bar select { flex: 1 1 160px; }
.calendar-day-list { display: grid; gap: 10px; padding: 18px; }
.calendar-event { display: grid; gap: 4px; min-width: 0; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--calendar-event-color) 25%, white); border-left: 4px solid var(--calendar-event-color); border-radius: 8px; background: color-mix(in srgb, var(--calendar-event-color) 6%, white); color: #4a5065; font-size: 11px; }
.calendar-event strong { overflow: hidden; color: #282d42; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-time { color: var(--calendar-event-color); font-weight: 750; }
.calendar-event-status { color: var(--calendar-event-color); font-size: 10px; font-weight: 700; }
.calendar-event-compact { gap: 3px; padding: 7px 8px; font-size: 10px; }
.calendar-event-compact strong { font-size: 10px; }
.calendar-event-compact .calendar-event-status { font-size: 9px; }
.calendar-week-grid { display: grid; grid-template-columns: repeat(7, minmax(155px, 1fr)); gap: 0; overflow-x: auto; }
.calendar-day-column { display: flex; min-height: 360px; flex-direction: column; gap: 8px; padding: 12px; border-right: 1px solid #eff0f4; }
.calendar-day-column:last-child { border-right: 0; }
.calendar-day-heading { display: flex; align-items: center; justify-content: space-between; padding: 3px 2px 9px; border-bottom: 1px solid #eff0f4; color: #777d91; font-size: 11px; text-transform: capitalize; }
.calendar-day-heading strong { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: #f2f1ff; color: #5d50c8; font-size: 12px; }
.calendar-empty-day { margin: auto 0; color: #a2a6b5; font-size: 10px; text-align: center; }
.calendar-month-scroll { overflow-x: auto; padding: 12px; }
.calendar-weekday-headings, .calendar-month-grid { display: grid; min-width: 850px; grid-template-columns: repeat(7, minmax(110px, 1fr)); }
.calendar-weekday-headings strong { padding: 8px; color: #858a9e; font-size: 10px; text-align: right; text-transform: uppercase; }
.calendar-month-day { display: flex; min-height: 135px; flex-direction: column; gap: 5px; padding: 7px; border-top: 1px solid #eff0f4; border-right: 1px solid #eff0f4; }
.calendar-month-day:nth-child(7n) { border-right: 0; }
.calendar-month-day-outside { background: #fafafd; }
.calendar-month-day-outside .calendar-month-day-number { color: #afb3c0; }
.calendar-month-day-number { align-self: flex-end; color: #555b70; font-size: 11px; }
.calendar-more-events { color: #6558d9; font-size: 9px; font-weight: 700; }

@media (max-width: 760px) {
    .calendar-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
    .calendar-toolbar { align-items: flex-start; flex-direction: column; }
    .calendar-period-title { margin-left: 0; }
    .calendar-navigation { width: 100%; }
}

.planning-heading { align-items: center; }
.planning-panel { overflow: hidden; }
.planning-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid #eff0f4; }
.planning-grid-scroll { overflow: auto; }
.planning-grid { display: grid; min-width: max-content; grid-template-columns: minmax(240px, 260px) repeat(var(--planning-day-count), minmax(170px, 1fr)); }
.planning-grid-corner, .planning-day-heading { position: sticky; top: 0; z-index: 1; display: flex; min-height: 54px; flex-direction: column; justify-content: center; padding: 9px 12px; border-bottom: 1px solid #e9eaf0; background: #fbfbfd; color: #777d91; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.planning-grid-corner { left: 0; z-index: 2; border-right: 1px solid #eff0f4; }
.planning-day-heading { align-items: center; border-right: 1px solid #eff0f4; }
.planning-day-heading strong { margin-top: 4px; color: #353a50; font-size: 12px; text-transform: capitalize; }
.planning-lane-label { position: sticky; left: 0; z-index: 1; display: flex; min-height: 115px; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 7px; padding: 12px; border-right: 1px solid #eff0f4; border-bottom: 1px solid #eff0f4; background: #fff; }
.planning-technician-color { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--technician-color); }
.planning-technician-name { display: grid; min-width: 0; flex: 1; gap: 3px; }
.planning-technician-name strong { overflow: hidden; color: #30354b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.planning-technician-name small { color: #9297a8; font-size: 9px; }
.planning-workload-chip { padding: 4px 6px; border-radius: 6px; font-size: 9px; font-weight: 700; }
.workload-normal { background: #eff2f8; color: #596078; }
.workload-overloaded { background: #fff0f1; color: #bd3948; }
.workload-free { background: #eaf8ef; color: #26734a; }
.planning-indicator { padding: 4px 6px; border-radius: 6px; font-size: 9px; font-weight: 700; }
.indicator-overloaded, .indicator-conflict { background: #fff0f1; color: #bd3948; }
.indicator-free { background: #eaf8ef; color: #26734a; }
.planning-dropzone { display: flex; min-height: 115px; flex-direction: column; gap: 7px; padding: 8px; border-right: 1px solid #eff0f4; border-bottom: 1px solid #eff0f4; background: #fff; transition: background .12s ease; }
.planning-dropzone:hover { background: #f7f7ff; }
.planning-unassigned-dropzone { background: #fafafd; }
.planning-unassigned-label { background: #fafafd; }
.planning-drop-hint { align-self: center; margin: auto; color: #bdc0cb; font-size: 9px; }
.planning-appointment { display: grid; gap: 4px; padding: 8px; border: 1px solid color-mix(in srgb, var(--planning-status-color) 25%, white); border-left: 4px solid var(--planning-status-color); border-radius: 7px; background: color-mix(in srgb, var(--planning-status-color) 6%, white); color: #74798d; cursor: grab; font-size: 9px; }
.planning-appointment:active { cursor: grabbing; }
.planning-appointment strong { overflow: hidden; color: #30354b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.planning-appointment-time { color: var(--planning-status-color); font-weight: 750; }
.planning-ticket-number { color: #6558d9; font-weight: 700; }
.planning-appointment-meta { display: flex; align-items: center; gap: 5px; }
.planning-status { color: var(--planning-status-color); font-size: 9px; font-weight: 700; }
.planning-appointment-conflict { outline: 1px solid #e45865; }
.planning-conflict-mark { display: inline-grid; width: 14px; height: 14px; place-items: center; border-radius: 50%; background: #dc2626; color: white; font-size: 9px; font-weight: 800; }
.planning-preview-mark { padding: 2px 4px; border-radius: 4px; background: #fff2cc; color: #8d6711; font-size: 8px; font-weight: 700; }
.planning-preview-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid #eff0f4; color: #858a9e; font-size: 10px; }

@media (max-width: 760px) {
    .planning-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
    .planning-toolbar { align-items: flex-start; flex-direction: column; }
    .planning-grid { grid-template-columns: minmax(195px, 210px) repeat(var(--planning-day-count), minmax(150px, 1fr)); }
}

.gantt-heading { align-items: center; }
.gantt-panel { overflow: hidden; }
.gantt-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eff0f4; }
.gantt-toolbar-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.gantt-select-field { display: grid; gap: 5px; color: #858a9e; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.gantt-select-field .control { min-width: 125px; }
.gantt-legend { display: flex; flex-wrap: wrap; gap: 13px; padding: 12px 18px; border-bottom: 1px solid #eff0f4; color: #777d91; font-size: 10px; }
.gantt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gantt-legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend-scheduled { background: #2563EB; }
.legend-confirmed { background: #0EA5E9; }
.legend-inprogress { background: #F97316; }
.legend-completed { background: #16A34A; }
.legend-cancelled { background: #DC2626; }
.legend-noshow { background: #64748B; }
.gantt-scroll { overflow: auto; }
.gantt-axis, .gantt-lane { display: grid; min-width: 920px; grid-template-columns: minmax(220px, 260px) minmax(650px, 1fr); }
.gantt-axis { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid #e8e9f0; background: #fbfbfd; }
.gantt-axis-resource { position: sticky; left: 0; z-index: 4; padding: 12px; border-right: 1px solid #eff0f4; color: #777d91; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.gantt-axis-timeline { position: relative; min-height: 43px; }
.gantt-axis-timeline span { position: absolute; top: 50%; color: #777d91; font-size: 9px; transform: translate(-50%, -50%); white-space: nowrap; }
.gantt-lane { border-bottom: 1px solid #eff0f4; }
.gantt-lane-label { position: sticky; left: 0; z-index: 2; display: flex; min-height: 94px; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 7px; padding: 12px; border-right: 1px solid #eff0f4; background: #fff; }
.gantt-lane-color { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--gantt-lane-color); }
.gantt-lane-name { display: grid; min-width: 0; flex: 1; gap: 4px; }
.gantt-lane-name strong { overflow: hidden; color: #30354b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.gantt-lane-name small { color: #9196a7; font-size: 9px; }
.gantt-lane-badge { padding: 4px 6px; border-radius: 6px; font-size: 9px; font-weight: 700; }
.gantt-lane-overload, .gantt-lane-conflict { background: #fff0f1; color: #bd3948; }
.gantt-track { position: relative; min-height: 94px; border-right: 1px solid #eff0f4; background: #fff; }
.gantt-track:hover { background-color: #fafaff; }
.gantt-grid-line { position: absolute; top: 0; bottom: 0; z-index: 0; width: 1px; border-left: 1px dashed #e6e8f0; pointer-events: none; }
.gantt-grid-line small { display: none; }
.gantt-empty-hint { position: absolute; top: 50%; left: 50%; color: #c0c3ce; font-size: 10px; transform: translate(-50%, -50%); pointer-events: none; }
.gantt-item { position: absolute; top: 13px; z-index: 1; display: flex; min-width: 35px; max-width: 100%; height: 66px; flex-direction: column; gap: 3px; overflow: hidden; padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--gantt-status-color) 25%, white); border-left: 4px solid var(--gantt-status-color); border-radius: 7px; background: color-mix(in srgb, var(--gantt-status-color) 9%, white); color: #696f84; cursor: grab; font-size: 9px; resize: horizontal; }
.gantt-item:active { cursor: grabbing; }
.gantt-item strong { overflow: hidden; color: #30354b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.gantt-item-time, .gantt-item-ticket, .gantt-item-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-item-time, .gantt-item-status { color: var(--gantt-status-color); font-weight: 700; }
.gantt-item-ticket { color: #6558d9; font-weight: 700; }
.gantt-item-conflict { outline: 1px solid #dc2626; }
.gantt-marker { position: absolute; top: 3px; display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; color: white; font-size: 9px; font-weight: 800; }
.gantt-marker-conflict { right: 3px; background: #dc2626; }
.gantt-marker-overload { right: 21px; background: #d97706; }
.gantt-break-indicator { position: absolute; right: 9px; bottom: 3px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; border: 1px solid #dfe4ef; border-radius: 999px; background: #fff; color: #525970; font-size: 8px; font-weight: 700; }
.gantt-break-indicator i { width: 6px; height: 6px; border-radius: 50%; }
.gantt-break-indicator-started { background: #f59e0b; }
.gantt-break-indicator-completed { background: #16a34a; }
.gantt-break-indicator-cancelled { background: #94a3b8; }
.gantt-resize-hint { position: absolute; right: 1px; bottom: 2px; width: 8px; height: 8px; border-right: 2px solid #81869a; border-bottom: 2px solid #81869a; }
.gantt-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid #eff0f4; color: #858a9e; font-size: 10px; }

@media (max-width: 760px) {
    .gantt-heading { align-items: flex-start; }
    .gantt-toolbar { align-items: flex-start; flex-direction: column; }
}

.worktime-heading { align-items: center; }
.worktime-kpis { margin-bottom: 16px; }
.worktime-breakdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.worktime-breakdown-card { min-width: 0; padding: 15px; }
.worktime-breakdown-card h2 { margin: 0 0 12px; color: #30354b; font-size: 13px; }
.worktime-breakdown-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.worktime-breakdown-card li, .worktime-breakdown-card li span { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.worktime-breakdown-card li span { min-width: 0; flex-direction: column; }
.worktime-breakdown-card li strong { overflow: hidden; max-width: 100%; color: #3a3f54; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.worktime-breakdown-card li small, .worktime-breakdown-card li b { color: #858a9e; font-size: 10px; }
.worktime-breakdown-card li b { white-space: nowrap; }
.worktime-filter-toolbar { flex-wrap: wrap; }
.worktime-table td { min-width: 95px; }
.worktime-table td strong, .worktime-secondary { display: block; }
.worktime-secondary { margin-top: 3px; color: #777d91; font-size: 10px; }
.worktime-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.worktime-status-started { background: #fff3e8; color: #c76a12; }
.worktime-status-paused { background: #fff8df; color: #997400; }
.worktime-status-completed { background: #e8f7ed; color: #168342; }
.traveltime-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.traveltime-status-notstarted { background: #eef2ff; color: #4f46a5; }
.traveltime-status-started { background: #fff3e8; color: #c76a12; }
.traveltime-status-completed { background: #e8f7ed; color: #168342; }
.traveltime-status-cancelled { background: #fff0f1; color: #bd3948; }
.breaktime-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.breaktime-status-notstarted { background: #eef2ff; color: #4f46a5; }
.breaktime-status-started { background: #fff3e8; color: #c76a12; }
.breaktime-status-completed { background: #e8f7ed; color: #168342; }
.breaktime-status-cancelled { background: #fff0f1; color: #bd3948; }
.worktime-create-panel, .worktime-details-panel { padding: 18px; }
.worktime-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.worktime-create-grid .detail-card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.worktime-create-grid .detail-card h2, .worktime-create-grid .detail-card p { margin: 0; }
.worktime-create-grid .detail-card p { color: #858a9e; font-size: 12px; }
.worktime-create-grid .detail-card > .button { align-self: flex-start; margin-top: auto; }
.worktime-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.worktime-self-note { color: #777d91; font-size: 11px; }
.worktime-detail-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.worktime-detail-title h1 { margin: 4px 0; }
.worktime-detail-title p { margin: 0; color: #858a9e; }
.worktime-detail-grid { margin-top: 18px; }
.worktime-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.worktime-action-notes { margin-top: 14px; }
.worktime-extension-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.worktime-extension-card { display: grid; gap: 6px; padding: 14px; }
.worktime-extension-card h3 { margin: 0; color: #41465b; font-size: 13px; }
.worktime-extension-card > strong { color: #6558d9; font-size: 22px; }
.worktime-extension-card small { color: #858a9e; }

@media (max-width: 900px) {
    .worktime-breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .worktime-extension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .worktime-heading, .worktime-detail-title { align-items: flex-start; flex-direction: column; }
    .worktime-create-grid, .worktime-form-row { grid-template-columns: 1fr; }
    .worktime-breakdown-grid, .worktime-extension-grid { grid-template-columns: 1fr; }
    .worktime-create-panel, .worktime-details-panel { padding: 12px; }
}

.form-heading { display: block; }
.back-link { display: inline-block; margin: 0 0 18px; color: #7165d8; font-size: 12px; font-weight: 600; }
.form-panel { max-width: 850px; padding: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { color: #4a4f64; font-size: 12px; font-weight: 650; }
.required { color: #db5b64; }
.full-width { grid-column: 1 / -1; }
.field .control { width: 100%; height: 42px; }
.field .textarea { height: auto; padding: 11px; resize: vertical; }
.field .validation-message { color: #c2424d; font-size: 11px; }
.readonly-value { display: flex; height: 42px; align-items: center; color: #767b8d; font-size: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #eff0f4; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.login-page { display: grid; min-height: calc(100vh - 104px); place-items: center; }
.login-card { width: min(100%, 430px); padding: 34px; border: 1px solid #e8e9f0; border-radius: 14px; background: #fff; box-shadow: 0 12px 40px #2326430c; }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 34px; color: #24283e; font-size: 15px; }
.login-card .eyebrow { margin-bottom: 8px; color: #7165d8; }
.login-card h1 { font-size: 25px; letter-spacing: -.7px; }
.login-subtitle { margin: 8px 0 24px; color: #83889b; font-size: 13px; }
.login-card form { display: grid; gap: 17px; }
.login-card .field .control { height: 44px; }
.login-submit { width: 100%; margin-top: 5px; }
.login-error { margin: 0 0 17px; }
.login-footnote { margin-top: 20px; color: #969aac; font-size: 10px; text-align: center; }
.user-editor { padding: 24px; }
.user-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.user-account-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; color: #73788a; font-size: 12px; }
.user-password-pending { display: block; margin-top: 4px; color: #9a6a1e; font-size: 10px; font-weight: 650; }
.user-account-summary .user-password-pending { margin-top: 0; }
.user-password-reset { margin-top: 28px; padding-top: 22px; border-top: 1px solid #eff0f4; }
.user-password-reset h2 { margin: 0; font-size: 16px; }
.user-password-reset > p { margin: 6px 0 18px; color: #85899c; font-size: 12px; }
.alert-success { margin: 14px 0; padding: 11px 13px; border: 1px solid #cdebd9; border-radius: 8px; background: #effaf3; color: #24744d; font-size: 12px; }

.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.customer-toolbar .customer-filter { width: 145px; }
.customer-table { min-width: 1060px; }
.customer-table th { position: relative; }
.customer-table td { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.customer-table th { overflow: hidden; text-overflow: ellipsis; }
.row-actions { display: flex; align-items: center; gap: 9px; }
.text-action { padding: 0; border: 0; background: transparent; color: #6558d9; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; white-space: nowrap; }
.text-action:hover { text-decoration: underline; }
.material-form-panel { margin-bottom: 18px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0 0 5px; color: #34384e; font-size: 15px; }
.panel-heading p { margin: 0; color: #858a9e; font-size: 12px; }
.material-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.material-form-grid .field { min-width: 0; }
.material-form-grid .field small { display: block; margin-top: 5px; color: #858a9e; font-size: 11px; }
.material-notes { grid-column: span 2; }
.material-active-check { display: flex; align-items: center; gap: 8px; align-self: center; color: #555a70; font-size: 12px; }
.form-actions { display: flex; gap: 9px; margin-top: 18px; }
.material-table td small { display: block; margin-top: 4px; }
.material-state { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.material-state-active { color: #157347; background: #e7f6ed; }
.material-state-inactive { color: #687083; background: #eef0f4; }
.material-actions { display: flex; align-items: center; gap: 10px; }
.danger-text { color: #c24148; }
.material-breakdown { min-width: 0; }
.material-static-value { display: flex; align-items: center; min-height: 38px; color: #555a70; background: #f7f8fb; }
.material-breakdown > small { display: block; margin-top: 8px; color: #858a9e; font-size: 10px; line-height: 1.5; }
.material-breakdown-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.material-breakdown-list li { display: flex; justify-content: space-between; gap: 10px; color: #666b7d; font-size: 11px; }
.material-breakdown-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-breakdown-list li strong { color: #34384e; white-space: nowrap; }
.gantt-material-indicator { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 2px 6px; border-radius: 999px; color: #4a438f; background: #edeaff; font-size: 9px; font-weight: 700; }
.gantt-expense-indicator { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 2px 6px; border-radius: 999px; color: #17684e; background: #e6f7ef; font-size: 9px; font-weight: 700; }
.table-sort { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; font-weight: inherit; cursor: pointer; }
.detail-list { display: grid; grid-template-columns: minmax(100px, .7fr) 1.3fr; gap: 12px 10px; margin: 0; }
.detail-list dt { color: #888da0; font-size: 11px; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; color: #454a60; font-size: 12px; }
@media (max-width: 1000px) {
    .material-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .material-form-grid { grid-template-columns: 1fr; }
    .material-notes { grid-column: auto; }
    .panel-heading { flex-direction: column; }
    .material-actions { flex-direction: column; align-items: flex-start; }
}
.danger-text { color: #c34a55; }
.ticket-count { display: inline-grid; min-width: 24px; height: 24px; place-items: center; border-radius: 12px; background: #f0f1f5; color: #666b7d; font-size: 11px; font-weight: 700; }
.ticket-count-active { background: #fff0e8; color: #c26836; }
.customer-status { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.customer-status-active { background: #e8f8ef; color: #30865a; }
.customer-status-inactive { background: #f0f1f4; color: #73788a; }
.customer-editor { padding: 24px; }
.customer-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.customer-form-section { padding: 22px; border: 1px solid #eff0f4; border-radius: 10px; background: #fff; }
.customer-form-section h2, .detail-card h2 { margin: 0 0 16px; color: #34384e; font-size: 14px; font-weight: 700; }
.customer-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 16px; }
.repeatable-section { margin-top: 18px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-title-row h2 { margin: 0; }
.section-title-row p, .form-hint { margin: 6px 0 0; color: #888da0; font-size: 12px; }
.repeatable-card { margin-top: 12px; padding: 16px; border: 1px solid #eff0f4; border-radius: 9px; background: #fbfbfd; }
.inline-check { display: flex; align-items: center; gap: 8px; color: #555a70; font-size: 12px; }
.inline-check input { accent-color: #6455df; }
.form-actions { margin-top: 20px; }
.customer-detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.customer-detail-heading .back-link { margin-bottom: 10px; }
.customer-title-row { display: flex; align-items: center; gap: 13px; }
.customer-title-row h1 { font-size: clamp(24px, 3vw, 31px); }
.customer-avatar, .contact-avatar { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: #efedff; color: #6254d8; font-size: 14px; font-weight: 750; }
.customer-subtitle { margin-top: 5px; color: #858a9c; font-size: 12px; }
.customer-details-panel { min-height: 260px; }
.customer-tabs { display: flex; overflow-x: auto; gap: 4px; padding: 0 20px; border-bottom: 1px solid #eff0f4; }
.customer-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 17px 11px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #858a9c; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.customer-tab.active { border-bottom-color: #6455df; color: #5142ca; }
.customer-tab span { padding: 2px 6px; border-radius: 9px; background: #f0f1f5; color: #777c8f; font-size: 10px; }
.customer-overview { padding: 22px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.metric-card { display: flex; min-height: 88px; flex-direction: column; justify-content: center; gap: 10px; padding: 15px 17px; border: 1px solid #eff0f4; border-radius: 9px; background: #fff; }
.metric-card span { color: #858a9c; font-size: 11px; }
.metric-card strong { color: #292d43; font-size: 22px; font-weight: 730; letter-spacing: -.5px; }
.customer-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-card { padding: 19px; border: 1px solid #eff0f4; border-radius: 9px; background: #fff; }
.detail-card h3 { margin: 20px 0 8px; color: #34384e; font-size: 12px; }
.detail-card p { margin: 5px 0; color: #666b7d; font-size: 12px; line-height: 1.6; }
.detail-card dl { display: grid; grid-template-columns: minmax(100px, .7fr) 1.3fr; gap: 12px 10px; margin: 0; }
.detail-card dt { color: #888da0; font-size: 11px; }
.detail-card dd { margin: 0; overflow-wrap: anywhere; color: #454a60; font-size: 12px; }
.preserve-lines { white-space: pre-line; }
.dashboard-note { margin: 15px 0; padding: 12px 14px; border: 1px solid #e8e5fb; border-radius: 8px; background: #f8f7ff; color: #706a9e; font-size: 11px; line-height: 1.6; }
.inline-button { margin-top: 2px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px; }
.contact-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 12px; }
.contact-card h2 { margin: 0 0 4px; }
.contact-card .contact-avatar { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; }
.contact-card p { margin: 0; }
.contact-card dl { grid-column: 1 / -1; width: 100%; margin-top: 18px; }
.primary-label { padding: 4px 7px; border-radius: 10px; background: #efedff; color: #6254d8; font-size: 9px; font-weight: 700; }
.contract-list { display: grid; gap: 12px; padding: 20px; }
.contract-card { display: grid; grid-template-columns: 1.2fr auto repeat(4, minmax(100px, 1fr)); align-items: center; gap: 16px; padding: 17px; border: 1px solid #eff0f4; border-radius: 9px; }
.contract-card h2 { margin: 0; color: #34384e; font-size: 14px; }
.contract-card .eyebrow { margin-bottom: 5px; font-size: 9px; }
.contract-card strong { display: block; color: #454a60; font-size: 11px; }
.contract-label { display: block; margin-bottom: 6px; color: #888da0; font-size: 10px; }
.contract-notes { grid-column: 1 / -1; margin: 0; color: #666b7d; font-size: 11px; }
.unavailable-panel { display: flex; min-height: 255px; flex-direction: column; align-items: center; justify-content: center; color: #888da0; text-align: center; }
.unavailable-panel h2 { margin: 8px 0 3px; color: #454a60; font-size: 15px; }
.unavailable-panel p { margin: 0; font-size: 12px; }
.column-resizer { position: absolute; top: 0; right: 0; width: 7px; height: 100%; cursor: col-resize; touch-action: none; }
.column-resizer:hover, .column-resizer.dragging { background: #8879ef; opacity: .45; }
.technician-table { min-width: 1000px; }
.technician-name { display: inline-flex; align-items: center; gap: 9px; color: #2e3247; font-weight: 620; }
.technician-name:hover { text-decoration: underline; }
.technician-list-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--technician-color, #6366f1); }
.technician-editor { padding: 24px; }
.technician-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.technician-external { align-self: end; min-height: 42px; }
.color-control { width: 100%; padding: 4px; }
.technician-skill-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 14px; }
.technician-details-panel { min-height: 280px; }
.technician-avatar { background: var(--technician-color, #6366f1); color: #fff; }
.technician-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card small { color: #989caf; font-size: 10px; }
.technician-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.technician-skill-list { display: flex; flex-wrap: wrap; gap: 9px; }
.technician-skill-chip { display: grid; gap: 3px; padding: 9px 12px; border: 1px solid #e8e6fb; border-radius: 8px; background: #faf9ff; }
.technician-skill-chip strong { color: #454a60; font-size: 11px; }
.technician-skill-chip small { color: #7669db; font-size: 10px; }

@media print {
    .sidebar, .topbar, .heading-actions, .filter-toolbar, .row-actions, .table-footer, .customer-tabs, .back-link { display: none !important; }
    .main-content { margin: 0; }
    .content { max-width: none; padding: 0; }
    .panel, .detail-card { border: 0; box-shadow: none; }
    .ticket-table { min-width: 0; white-space: normal; }
    .ticket-table th, .ticket-table td { padding: 5px; font-size: 9px; }
}

@media (max-width: 900px) {
    .sidebar { width: 206px; }
    .main-content { margin-left: 206px; }
    .content { padding: 30px 24px 48px; }
    .topbar { padding: 0 24px; }
    .customer-filter { flex: 1 1 140px; }
}

@media (max-width: 650px) {
    .sidebar { position: static; width: auto; padding: 12px 16px; }
    .brand { padding: 0 0 12px; }
    .workspace-label, .sidebar-footer { display: none; }
    .side-nav { display: flex; }
    .side-link { padding: 8px 10px; }
    .main-content { margin-left: 0; }
    .topbar { display: none; }
    .content { padding: 25px 14px 40px; }
    .page-heading { align-items: flex-start; gap: 15px; }
    .filter-toolbar { padding: 12px; }
    .search-wrap { flex-basis: 100%; }
    .select-filter, .customer-filter { flex: 1 1 120px; }
    .table-scroll { overflow-x: auto; }
    .ticket-table { min-width: 800px; }
    .table-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
    .pagination { width: 100%; justify-content: space-between; }
    .form-grid { grid-template-columns: 1fr; }
    .customer-form-grid, .customer-info-grid, .contact-grid, .metric-grid { grid-template-columns: 1fr; }
    .technician-form-grid, .technician-detail-grid, .technician-metrics { grid-template-columns: 1fr; }
    .customer-fields { grid-template-columns: 1fr; }
    .customer-detail-heading { align-items: flex-start; flex-direction: column; }
    .contract-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .technician-skill-row { grid-template-columns: 1fr; }
    .contract-card > .customer-status { justify-self: start; }
    .heading-actions { width: 100%; }
    .full-width { grid-column: auto; }
    .form-panel { padding: 18px; }
}

.date-filter { width: 145px; }
.appointment-priority { display: inline-flex; padding: 5px 8px; border-radius: 20px; font-size: 10px; font-weight: 650; }
.appointment-priority-low { background: #f0f2f6; color: #6f7487; }
.appointment-priority-medium { background: #fff6df; color: #9c7118; }
.appointment-priority-high { background: #fff0e8; color: #c26836; }
.appointment-priority-critical { background: #fff0f1; color: #cb4652; }

@media (max-width: 650px) {
    .date-filter { flex: 1 1 130px; }
}
