* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { font-family: Arial, sans-serif; color: #202124; background: #fff; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid #0054e9; outline-offset: 2px; }
.phone { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 440px; height: 100%; margin: auto; overflow: hidden; background: #fff; }
.ad-header { display: flex; align-items: center; gap: 6px; min-height: 38px; flex: none; padding: 5px 12px; background: #eef4ff; color: #164178; }
.ad-header img { width: 24px; height: 24px; padding: 2px; border-radius: 6px; background: #0862a4; object-fit: contain; }
.ad-header strong { font-size: 14px; }
.ad-header span { color: #526c91; font-size: 8px; font-weight: 700; letter-spacing: .4px; }
.ad-header button { min-height: 27px; margin-left: auto; padding: 4px 12px; border: 0; border-radius: 7px; background: #0054e9; color: #fff; font-size: 11px; font-weight: 700; }
.toolbar { display: grid; grid-template-columns: 40px minmax(0, 1fr) 76px; align-items: center; flex: none; height: 64px; padding: 3px 10px 3px 15px; border-bottom: 1px solid #ededf0; background: #fff; }
.toolbar-icon { display: grid; place-items: center; width: 32px; height: 36px; padding: 0; border: 0; background: transparent; }
.toolbar-icon[hidden], .fab[hidden] { display: none; }
.menu { color: #0054e9; font-size: 27px; }
.pin { position: relative; width: 17px; height: 17px; margin-top: -6px; border-radius: 50% 50% 50% 0; background: #ffc409; transform: rotate(-45deg); }
.pin::after { content: ""; position: absolute; top: 5px; left: 5px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.toolbar-title { text-align: center; font-size: 18px; font-weight: 700; line-height: 1.15; }
.toolbar-title { justify-self: center; max-width: 100%; padding: 3px 8px; border: 0; background: transparent; color: inherit; }
.toolbar-title:disabled { cursor: default; }
.toolbar-title small { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; }
.toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.notification-trigger { position: relative; color: #0054e9; }
.notification-trigger svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.notification-count { position: absolute; top: -1px; right: -4px; min-width: 17px; height: 17px; padding: 2px 4px; border: 2px solid #fff; border-radius: 10px; background: #cf111b; color: #fff; font-size: 9px; font-weight: 700; line-height: 9px; }
.notification-count[hidden] { display: none; }
.filter-area { flex: none; padding: 8px 12px 3px; background: #fff; }
.scope-filter-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: center; gap: 6px; }
.scope-filter-row .segment { min-width: 0; }
.filter-button { position: relative; display: grid; width: 36px; height: 36px; padding: 5px; place-items: center; border: 0; background: transparent; color: #0054e9; }
.filter-button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.filter-button > span { position: absolute; top: -2px; right: -2px; display: grid; min-width: 17px; height: 17px; padding: 1px 4px; place-items: center; border: 2px solid #fff; border-radius: 10px; background: #0054e9; color: #fff; font-size: 8px; font-weight: 700; }
.filter-button > span[hidden] { display: none; }
.segment { display: flex; padding: 3px; border-radius: 10px; background: #f0f1f3; }
.segment + .segment { margin-top: 8px; }
#status-filters { margin-top: 8px; }
.segment button, .segment > span { display: grid; place-items: center; min-width: 0; min-height: 31px; flex: 1; padding: 5px 2px; border: 0; border-radius: 8px; background: transparent; color: #30333a; font-size: 11px; text-align: center; white-space: nowrap; }
.segment button[aria-selected="true"], .segment > span.active { background: #fff; box-shadow: 0 1px 4px #0002; }
.main { position: relative; min-height: 0; flex: 1; overflow-y: auto; background: #fafafa; }
.view { min-height: 100%; padding: 11px 12px 62px; }
.view[hidden], .filter-area[hidden], .segment[hidden], .card[hidden], .empty[hidden], .sheet[hidden], .veil[hidden], .info-dialog[hidden], .filter-modal[hidden], .notification-center[hidden] { display: none; }
.section-title { margin: 4px 3px 12px; font-size: 18px; font-weight: 700; }
.empty { margin: 60px auto; color: #7f8a9b; font-size: 13px; text-align: center; }
.card { position: relative; display: flex; overflow: hidden; margin-bottom: 11px; border-radius: 18px; background: #fff; box-shadow: 0 4px 18px #0000000d; }
.card::before { content: ""; width: 5px; flex: none; background: #f4b400; }
.card.inprogress::before { background: #3880ff; }
.card.done::before, .card.ready::before { background: #2dd36f; }
.card.repair::before { background: #92949c; }
.card.broken::before { background: #eb445a; }
.card-inner { width: 100%; min-width: 0; padding: 9px 9px 10px; }
.card-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.badge { flex: none; padding: 3px 7px; border-radius: 999px; background: #ffc409; color: #111; font-size: 10px; font-weight: 700; }
.badge.inprogress { background: #3880ff; color: #fff; }
.badge.done, .badge.ready { background: #2dd36f; color: #10351d; }
.badge.repair { background: #92949c; color: #fff; }
.badge.broken { background: #eb445a; color: #fff; }
.type { color: #8792a4; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.location-note { min-width: 0; margin-left: auto; overflow: hidden; color: #96a1b1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr) 79px; gap: 8px; margin-top: 6px; }
.card-title { margin: 0 0 7px; color: #2f3b52; font-size: 15px; font-weight: 700; line-height: 1.2; }
.meta { display: flex; align-items: center; gap: 5px; overflow: hidden; color: #7f8a9b; font-size: 10px; white-space: nowrap; }
.meta.date { margin-top: 17px; }
.meta span:last-child { overflow: hidden; text-overflow: ellipsis; }
.mini-icon { color: #8c9db5; font-size: 15px; }
.actions { display: flex; flex-direction: column; gap: 4px; }
.actions button, .small-blue { min-height: 24px; padding: 3px 4px; border: 0; border-radius: 8px; background: #0862a4; color: #fff; font-size: 10px; font-weight: 700; }
.item-card .card-grid { margin-top: 8px; }
.item-mark { display: grid; place-items: center; float: left; width: 48px; height: 53px; margin-right: 7px; border-radius: 8px; background: #f1f4f9; }
.item-mark img { width: 36px; height: 36px; object-fit: contain; }
.item-card .meta.date { margin-top: 7px; }
.item-state { display: inline-block; margin-top: 9px; }
#calendar-view { padding: 10px 10px 72px; background: #f6f8fc; }
.calendar-container { padding: 10px 7px 12px; border-radius: 24px; background: #fff; box-shadow: 0 4px 20px #22345412; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 0 9px 4px; color: #2f3b52; }
.calendar-toolbar strong { font-size: 16px; }
.calendar-toolbar > div { display: flex; align-items: center; gap: 2px; }
.calendar-toolbar button { min-width: 30px; height: 32px; padding: 0 4px; border: 0; border-radius: 8px; background: transparent; color: #3b4860; font-size: 24px; line-height: 1; }
.calendar-toolbar #calendar-today { padding: 0 7px; color: #0d5fd3; font-size: 12px; font-weight: 700; }
.calendar-toolbar #calendar-today[hidden] { display: none; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.calendar-weekdays { align-items: center; height: 28px; color: #78859a; font-size: 10px; font-weight: 700; }
.calendar-grid { row-gap: 3px; }
.calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; height: 39px; padding: 2px 0; border: 1px solid transparent; border-radius: 14px; background: transparent; color: #2f3b52; font-size: 14px; font-weight: 600; }
.calendar-day.today { border-color: #0d5fd3; color: #0d5fd3; }
.calendar-day.selected { background: #0d5fd3; color: #fff; }
.calendar-indicators { display: flex; justify-content: center; gap: 2px; height: 4px; }
.calendar-indicator { width: 4px; height: 4px; border-radius: 50%; background: #f4b400; }
.calendar-indicator.item { background: #2dd36f; }
.calendar-day.selected .calendar-indicator { background: #fff; }
.calendar-events { margin-top: 13px; }
.calendar-empty { margin: 18px 5px; color: #7f8a9b; font-size: 12px; text-align: center; }
.calendar-event { overflow: hidden; border-left: 5px solid #ffc409; border-radius: 20px; background: #fff; box-shadow: 0 4px 18px #0000000d; }
.calendar-event.inprogress { border-left-color: #3880ff; }
.calendar-event.done, .calendar-event.ready { border-left-color: #2dd36f; }
.calendar-event.repair { border-left-color: #92949c; }
.calendar-event-content { padding: 8px 9px; }
.calendar-event-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.calendar-event-badge { flex: none; padding: 3px 6px; border-radius: 999px; background: #ffc409; color: #222; font-size: 9px; font-weight: 700; white-space: nowrap; }
.calendar-event-badge.inprogress { background: #3880ff; color: #fff; }
.calendar-event-badge.done, .calendar-event-badge.ready { background: #2dd36f; }
.calendar-event-badge.repair { background: #92949c; color: #fff; }
.calendar-event-type { color: #8b93a7; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.calendar-event-location { min-width: 0; margin-left: auto; overflow: hidden; color: #9aa3b2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-body { display: flex; align-items: center; gap: 7px; min-width: 0; margin-top: 7px; }
.calendar-event-icon:empty { display: none; }
.calendar-event-icon img { width: 40px; height: 40px; padding: 4px; border-radius: 8px; background: #f1f4f9; object-fit: contain; }
.calendar-event-text { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.calendar-event-text strong { color: #2f3b52; font-size: 13px; line-height: 1.2; }
.calendar-event-text small { color: #7f8a9b; font-size: 10px; }
.calendar-event-actions { display: flex; flex: none; flex-direction: column; gap: 4px; width: 80px; }
.calendar-event-actions button { min-height: 24px; padding: 3px 5px; border: 1px solid #0862a4; border-radius: 8px; background: #0862a4; color: #fff; font-size: 10px; font-weight: 600; }
.calendar-event-actions button:last-child { background: #fff; color: #0862a4; }
.locations-list { padding: 0 2px; background: #fff; }
.location-row { display: grid; grid-template-columns: 47px minmax(0, 1fr) 17px; gap: 8px; padding: 10px 0 11px; border-bottom: 1px solid #d8dce3; background: #fff; }
.location-thumbnail { display: grid; place-items: center; width: 44px; height: 50px; margin-top: 24px; background: #f1f4f9; }
.location-thumbnail img { width: 36px; height: 36px; object-fit: contain; }
.location-content { min-width: 0; }
.location-content strong { display: block; margin: 0 0 7px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.location-counts { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); margin: 4px 0; color: #303744; font-size: 10px; }
.location-counts span:not(:first-child) { text-align: center; }
.location-counts b { color: #303744; font-weight: 400; }
.count-todo { color: #3880ff; }
.count-progress { color: #f4b400; }
.count-done { color: #2dd36f; }
.location-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 7px; }
.location-actions button, .location-select { min-height: 27px; border: 0; border-radius: 6px; background: #0754de; color: #fff; font-size: 10px; font-weight: 700; }
.location-select { width: 100%; margin-top: 6px; }
.location-select:disabled { background: #7fa9ed; cursor: default; }
.more { align-self: center; padding: 0; border: 0; background: transparent; color: #0054e9; font-size: 20px; }
.fab { position: absolute; z-index: 2; right: 14px; bottom: 67px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #0054e9; box-shadow: 0 3px 9px #0003; color: #fff; font-size: 32px; font-weight: 300; line-height: 1; }
.qr-scan { position: absolute; z-index: 2; bottom: 67px; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f4f5f8; box-shadow: 0 3px 9px #0003; color: #303744; transform: translateX(-50%); }
.qr-scan[hidden] { display: none; }
.qr-scan svg { width: 25px; height: 25px; fill: currentColor; }
.tabs { display: flex; flex: none; height: 55px; border-top: 1px solid #e3e5e9; background: #fff; }
.tabs button { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; border: 0; background: transparent; color: #62676f; font-size: 10px; }
.tabs button[aria-selected="true"] { color: #0054e9; }
.tab-symbol { display: grid; place-items: center; width: 23px; height: 23px; line-height: 1; }
.tab-symbol svg { display: block; width: 100%; height: 100%; }
.demo-hint { position: absolute; z-index: 3; right: 0; bottom: 55px; left: 0; display: flex; flex-direction: column; align-items: center; opacity: 1; pointer-events: none; transition: opacity 1s ease-out; }
.demo-hint[hidden] { display: none; }
.demo-hint.is-dismissing { opacity: 0; }
.demo-hint__card { display: flex; flex-direction: column; gap: 5px; max-width: calc(100% - 24px); padding: 16px 26px; border: 2px solid #0054e9; border-radius: 16px; background: #fff; box-shadow: 0 5px 20px #173d7750; color: #243148; text-align: center; }
.demo-hint__card strong { font-size: 19px; }
.demo-hint__card span { color: #52647d; font-size: 14px; }
.demo-hint__arrows { display: block; width: 100%; height: clamp(80px, 17vh, 150px); overflow: visible; }
.demo-hint__arrows > path { fill: none; stroke: #0054e9; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; marker-end: url(#demo-hint-arrowhead); }
.veil { position: absolute; z-index: 4; inset: 0; background: #0006; }
.sheet { position: absolute; z-index: 5; right: 8px; bottom: 8px; left: 8px; padding: 10px; border-radius: 15px; background: #f7f8fa; box-shadow: 0 -6px 24px #0003; }
.sheet-title { padding: 6px 8px 12px; color: #657082; font-size: 12px; text-align: center; }
.sheet button { width: 100%; min-height: 41px; border: 0; border-bottom: 1px solid #e2e6ec; background: #fff; color: #0054e9; font-size: 14px; }
.sheet button:first-of-type { border-radius: 9px 9px 0 0; }
.sheet button:last-of-type { border-bottom: 0; border-radius: 0 0 9px 9px; }
.sheet .cancel { margin-top: 7px; border-radius: 9px !important; color: #404955; font-weight: 700; }
.info-dialog { position: absolute; z-index: 5; top: 50%; right: 16px; left: 16px; padding: 22px 18px 17px; border-radius: 16px; background: #fff; box-shadow: 0 10px 34px #0003; transform: translateY(-50%); text-align: center; }
.info-dialog h2 { margin: 0 20px 12px; color: #243148; font-size: 18px; }
.info-dialog p { margin: 0 0 20px; color: #596779; font-size: 13px; line-height: 1.4; }
.info-dialog .info-close { position: absolute; top: 4px; right: 7px; width: 32px; height: 32px; border: 0; background: transparent; color: #667386; font-size: 25px; }
.info-exit, .info-back { width: 100%; min-height: 39px; border: 0; border-radius: 8px; font-size: 13px; font-weight: 700; }
.info-exit { background: #0054e9; color: #fff; }
.info-back { margin-top: 7px; background: #f0f2f5; color: #344459; }
.info-exit[hidden] { display: none; }

/* Full-screen filters mirror the Ionic filter modal shown in the app. */
.filter-modal { position: absolute; z-index: 12; inset: 38px 0 0; display: flex; flex-direction: column; background: #fff; }
.filter-modal-toolbar { display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center; min-height: 54px; border-bottom: 1px solid #dfe3e8; box-shadow: 0 3px 8px #0002; }
.filter-modal-toolbar strong { font-size: 16px; text-align: center; }
.filter-modal-toolbar button { height: 46px; padding: 0 12px; border: 0; background: transparent; color: #0054e9; font-size: 14px; }
.filter-modal-toolbar button:first-child { text-align: left; }
.filter-modal-toolbar button:last-child { text-align: right; }
.filter-modal-content { min-height: 0; flex: 1; overflow-y: auto; padding: 4px 18px 18px; }
.filter-section-title { margin: 17px 2px 7px; color: #646a73; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.filter-option { display: grid; grid-template-columns: 16px minmax(0, 1fr) 23px; align-items: center; gap: 9px; min-height: 48px; border-bottom: 1px solid #e1e3e7; color: #17191d; font-size: 14px; }
.filter-option.no-color { grid-template-columns: minmax(0, 1fr) 23px; padding-left: 25px; }
.filter-color-dot { width: 13px; height: 13px; border: 1px solid #0002; border-radius: 50%; background: var(--dot-color); }
.filter-option input { width: 20px; height: 20px; margin: 0; accent-color: #0054e9; }
.filter-modal-footer { flex: none; padding: 10px 16px 12px; border-top: 1px solid #dfe3e8; background: #fff; }
.filter-modal-footer button { width: 100%; min-height: 42px; border: 0; border-radius: 7px; background: #075bea; box-shadow: 0 2px 5px #0003; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Notification center follows the toolbar popover used in the production app. */
.notification-center { position: absolute; z-index: 8; top: 96px; right: 8px; left: 8px; max-height: calc(100% - 120px); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px #0004; }
.notification-center::before { content: ""; position: absolute; top: -8px; right: 24px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); }
.notification-toolbar { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; min-height: 51px; border-bottom: 1px solid #e5e7eb; background: #fff; }
.notification-toolbar strong { grid-column: 2; font-size: 17px; text-align: center; }
.notification-toolbar button { grid-column: 3; width: 38px; height: 40px; border: 0; background: transparent; color: #0054e9; font-size: 20px; }
.notification-list { max-height: calc(70vh - 52px); overflow-y: auto; padding: 10px; }
.notification-section { --notification-color: #0b66d5; margin-bottom: 15px; }
.notification-section.service { --notification-color: #d6a400; }
.notification-section.location { --notification-color: #6d39ee; }
.notification-section-heading { display: flex; align-items: center; gap: 8px; padding: 3px 5px 7px; color: var(--notification-color); }
.notification-section-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: #f0f3ff; font-size: 16px; }
.notification-section-heading strong { font-size: 11px; letter-spacing: .045em; text-transform: uppercase; }
.notification-group { overflow: hidden; border: 1px solid #dfe3e8; border-left: 4px solid var(--notification-color); border-radius: 12px; background: #fff; }
.notification-group-head { display: grid; grid-template-columns: minmax(0, 1fr) 10px; gap: 8px; padding: 10px 12px; }
.notification-group-head strong { overflow-wrap: anywhere; color: #202124; font-size: 12px; line-height: 1.3; }
.notification-group-head small { display: block; margin-top: 4px; color: #9299a5; font-size: 10px; font-weight: 400; }
.unread-dot { align-self: center; width: 8px; height: 8px; border-radius: 50%; background: #075bea; }
.notification-member { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; gap: 6px; align-items: center; padding: 10px 12px 10px 28px; border-top: 1px solid #e5e7eb; color: #202124; font-size: 11px; line-height: 1.35; }
.notification-member time { color: #969da8; font-size: 9px; white-space: nowrap; }
.notification-member b { color: #b2b7bf; font-size: 18px; }

/* Location reports follow the Ionic task list modal: titled toolbar, grouped tasks, fixed Cancel footer. */
.report-modal { position: absolute; z-index: 9; inset: 0; display: flex; flex-direction: column; background: #f6f8fc; }
.report-modal[hidden] { display: none; }
.report-toolbar { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; padding: 7px 12px; border-bottom: 1px solid #e5e7eb; background: #fff; color: #202124; }
.report-toolbar strong { font-size: 17px; line-height: 1.2; }
.report-toolbar small { margin-top: 2px; font-size: 11px; font-weight: 700; }
.report-content { min-height: 0; flex: 1; overflow-y: auto; padding: 12px 16px 24px; }
.report-section h2 { display: flex; align-items: center; min-height: 42px; margin: 18px 0 0; padding-left: 4px; color: #8b93a7; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.report-task { overflow: hidden; margin-top: 10px; border-left: 5px solid #ffc409; border-radius: 20px; background: #fff; box-shadow: 0 4px 18px #0000000d; }
.report-task.inprogress { border-left-color: #3880ff; }
.report-task.done { border-left-color: #2dd36f; }
.report-task-content { padding: 9px; }
.report-task-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.report-task-location { min-width: 0; margin-left: auto; overflow: hidden; color: #9aa3b2; font-size: 10px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.report-task-body { display: flex; align-items: center; gap: 8px; min-height: 53px; margin-top: 5px; }
.report-task-body strong { flex: 1; min-width: 0; color: #2f3b52; font-size: 14px; line-height: 1.2; }
.report-task-actions { display: flex; flex: none; flex-direction: column; gap: 4px; width: 82px; }
.report-task-actions button { min-height: 24px; padding: 3px 5px; border: 1px solid #0862a4; border-radius: 8px; background: #0862a4; color: #fff; font-size: 10px; font-weight: 600; }
.report-task-actions button:last-child { background: #fff; color: #0862a4; }
.report-empty { margin: 0 4px 4px; color: #8b93a7; font-size: 14px; }
.report-footer { display: flex; flex: none; align-items: center; justify-content: center; min-height: 58px; border-top: 1px solid #e5e7eb; background: #f7f7f7; }
.report-footer button { min-width: 150px; min-height: 35px; border: 0; border-radius: 7px; background: #6b7280; color: #fff; font-size: 13px; font-weight: 600; }

/* The cards mirror the layout and state colors of the Ionic card components. */
.cards-list { display: grid; gap: 12px; }
.task-card, .item-card { width: 100%; min-width: 0; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 4px 18px #0000000d; }
.task-card { display: flex; align-items: stretch; }
.task-card__sidebar { width: 5px; flex: none; background: linear-gradient(#f4b400, #ffd95e); }
.task-card.inprogress .task-card__sidebar { background: linear-gradient(#3880ff, #7eb0ff); }
.task-card.done .task-card__sidebar { background: linear-gradient(#2dd36f, #7df0aa); }
.task-card__content { display: grid; grid-template-columns: minmax(0, 1fr) 82px; grid-template-areas: "header header" "middle actions" "footer actions"; gap: 6px; width: 100%; min-width: 0; padding: 8px; }
.task-card__header { grid-area: header; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px; }
.task-badge { padding: 3px 6px; border-radius: 999px; background: #ffc409; color: #171717; font-size: 9px; font-weight: 700; white-space: nowrap; }
.task-badge.inprogress { background: #3880ff; color: #fff; }
.task-badge.done { background: #2dd36f; color: #153e21; }
.task-type { color: #8b93a7; font-size: 10px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.task-location { overflow: hidden; color: #9aa3b2; font-size: 10px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.task-location.move { font-size: 9px; letter-spacing: -.15px; }
.task-card__middle { grid-area: middle; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.task-card__middle strong { color: #2f3b52; font-size: 14px; line-height: 1.2; }
.task-owner { overflow: hidden; color: #7f8a9b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.taxonomy-chip { display: inline-flex; align-items: center; align-self: flex-start; max-width: 100%; min-height: 19px; padding: 2px 7px; overflow: hidden; border-radius: 999px; background: var(--chip-color); color: var(--chip-text, #fff); font-size: 9px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.notification-indicator { display: inline-flex; align-items: center; flex: none; color: #7f8a9b; white-space: nowrap; }
.notification-indicator svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.task-card__footer { grid-area: footer; display: flex; justify-content: space-between; gap: 4px; color: #7f8a9b; font-size: 11px; }
.task-card__actions, .item-buttons { display: flex; flex-direction: column; gap: 4px; min-width: 82px; }
.task-card__actions { grid-area: actions; }
.task-card__actions button, .item-buttons button { width: 100%; min-height: 24px; margin: 0; padding: 3px 6px; border: 0; border-radius: 8px; background: #0862a4; color: #fff; font-size: 10px; font-weight: 600; text-transform: none; }
.item-card { border-left: 5px solid #2dd36f; }
.item-card.repair { border-left-color: #92949c; }
.item-card.broken { border-left-color: #eb445a; }
.item-card.ordered { border-left-color: #3880ff; }
.item-card.buy { border-left-color: #f4b400; }
.item-card.lost { border-left-color: #111827; }
.item-card.borrowed { border-left-color: #64748b; }
.item-card__container { display: grid; grid-template-columns: 42px minmax(0, 1fr) 82px; grid-template-areas: "header header header" "miniature middle actions" "info info actions"; gap: 6px; padding: 8px; }
.item-title { grid-area: header; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.item-title strong { overflow: hidden; color: #2f3b52; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.item-title span { overflow: hidden; color: #9aa3b2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.item-miniature { grid-area: miniature; display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border-radius: 10px; background: #f1f4f9; }
.item-miniature img { width: 34px; height: 34px; object-fit: contain; }
.item-middle { grid-area: middle; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; color: #7f8a9b; font-size: 11px; }
.item-middle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-info { grid-area: info; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; color: #7f8a9b; font-size: 11px; }
.item-info .taxonomy-chip { margin-left: auto; }
.item-badge { max-width: 100%; overflow: hidden; padding: 3px 6px; border-radius: 999px; background: #2dd36f; color: #10351d; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.item-badge.repair { background: #92949c; color: #fff; }
.item-badge.broken { background: #eb445a; color: #fff; }
.item-badge.ordered { background: #3880ff; color: #fff; }
.item-badge.buy { background: #f4b400; color: #111; }
.item-badge.lost { background: #111827; color: #fff; }
.item-badge.borrowed { background: #64748b; color: #fff; }
.item-buttons { grid-area: actions; }

/* Full-screen detail sheet follows the task/item detail modals in Ionic. */
.ad-header { position: relative; z-index: 8; }
.details-modal { position: absolute; z-index: 5; top: 38px; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; background: #fff; }
.details-modal[hidden] { display: none; }
.details-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 51px; border-bottom: 1px solid #e5e7eb; }
.details-toolbar strong { font-size: 16px; }
.details-toolbar button { width: 40px; height: 44px; border: 0; background: transparent; color: #344459; font-size: 24px; }
.details-content { min-height: 0; flex: 1; overflow-y: auto; padding: 12px 16px 20px; }
.detail-tags { display: flex; justify-content: space-between; gap: 5px; padding: 8px 2px 12px; border-bottom: 1px solid #e5e7eb; color: #7f8a9b; font-size: 11px; }
.detail-name { padding: 16px 2px; border-bottom: 1px solid #e5e7eb; color: #2f3b52; font-size: 16px; font-weight: 700; text-transform: uppercase; }
.detail-item-name { display: flex; align-items: center; gap: 12px; min-height: 75px; border-bottom: 1px solid #e5e7eb; color: #2f3b52; font-size: 16px; text-transform: uppercase; }
.detail-item-name img { width: 48px; height: 48px; padding: 4px; border-radius: 8px; background: #f1f4f9; }
.detail-row { display: flex; flex-direction: column; gap: 4px; min-height: 54px; padding: 10px 2px; border-bottom: 1px solid #e5e7eb; }
.detail-row span { color: #7f8a9b; font-size: 12px; }
.detail-row strong { color: #303744; font-size: 13px; font-weight: 500; }
.details-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px; border-top: 1px solid #e5e7eb; background: #fff; }
.details-footer button { min-height: 39px; border: 0; border-radius: 8px; background: #e9edf3; color: #344459; font-size: 13px; font-weight: 700; }
.details-footer button:last-child { background: #0054e9; color: #fff; }
.veil { top: 38px; z-index: 6; }
.sheet, .info-dialog { z-index: 7; }
@media (max-height: 500px) { .view { padding-top: 7px; } .card { margin-bottom: 8px; } }
