* { 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; } }

/* Current Tracta cards, shared by the landing previews and their source template. */
.phone [hidden] { display: none !important; }
.demo-icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.demo-icon { display: inline-block; flex: none; width: 1em; height: 1em; fill: currentColor; vertical-align: middle; }
body { font-family: Roboto, "Helvetica Neue", Arial, sans-serif; }
.main { background: #fff; }
.toolbar { position: relative; height: 44px; }
.toolbar-title { position: absolute; left: 50%; max-width: calc(100% - 150px); font-size: 17px; transform: translateX(-50%); }
.toolbar-title > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar-actions { grid-column: 3; }
.toolbar-icon .demo-icon { width: 28px; height: 28px; }
#map-button { color: #ffc409; }
.view { padding-top: 12px; }
.segment button { display: flex; align-items: center; justify-content: center; gap: 3px; }
.task-card__actions button, .item-buttons button, .calendar-event-actions button, .report-task-actions button,
.outline-action {
  min-height: 24px; padding: 3px 8px; border: 1px solid #d8e2f2; border-radius: 9px;
  background: #fff; color: #4b5a73; font-size: 10px; font-weight: 600; line-height: 1.2;
}
.task-card__actions button:hover, .item-buttons button:hover, .outline-action:hover { background: #f1f6ff; }
.task-card.assigned-to-me { background: #f6f9ff; outline: 1px solid #bcd0f4; outline-offset: -1px; }
.assigned-badge { max-width: 100%; overflow: hidden; padding: 2px 6px; border-radius: 999px; background: #e6eeff; color: #2453a5; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.task-owner { display: flex; align-items: center; gap: 4px; }
.task-owner > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-owner .demo-icon { width: 16px; height: 16px; }
.task-card .taxonomy-chip { max-width: 112px; padding: 3px 8px; font-size: 10px; font-weight: 600; line-height: 1.25; }
.task-location.move { font-size: 10px; letter-spacing: normal; }
.task-card__footer { align-items: center; gap: 10px; }
.task-date, .task-alerts { display: flex; align-items: center; gap: 4px; }
.task-alerts { gap: 5px; }
.task-date .demo-icon, .task-alerts .demo-icon { width: 16px; height: 16px; }
.task-date { color: #222428; }
.task-date .demo-icon { color: #7f8a9b; }
.task-card__middle strong, .detail-row strong, .detail-name { overflow-wrap: anywhere; }
.item-title strong { white-space: normal; overflow-wrap: anywhere; }
.item-title > span { min-width: 0; flex-shrink: 1; line-height: 1; }
.item-miniature { background: transparent; }
.item-miniature img { width: 42px; height: 42px; }
.item-middle { gap: 3px; }
.item-middle > span { display: flex; align-items: center; gap: 4px; line-height: 1; }
.item-middle .demo-icon { width: 13px; height: 13px; }
.item-date-value { color: #222428; }
.item-info { flex-wrap: nowrap; justify-content: space-between; gap: 0; margin: 2px 2px 0 0; }
.item-info__status { min-width: 0; max-width: 45%; }
.item-info__right { display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; max-width: 55%; }
.item-info__alerts { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.item-info__alerts .demo-icon { width: 16px; height: 16px; }
.item-info .taxonomy-chip { min-width: 0; min-height: 0; padding: 3px 7px; }
.item-badge { display: block; line-height: 1.2; }
.cards-list { gap: 12px; }

/* Locations mirror locations.page: compact header, three separate stat rows. */
#locations-view { background: #f6f8fb; }
#locations-view .section-title { margin: 4px 4px 10px; color: #253047; font-size: 22px; }
.locations-list { display: grid; gap: 8px; padding: 0; background: transparent; }
.location-card { min-width: 0; padding: 10px; border: 1px solid #e5ebf3; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px #2134530a; }
.location-card--selected { border-color: #a7c5ff; box-shadow: 0 3px 12px #3880ff14; }
.location-card__header { display: grid; grid-template-columns: 36px minmax(0, 1fr) 24px; align-items: start; gap: 8px; }
.location-card__image { display: grid; place-items: center; width: 36px; height: 36px; padding: 5px; border-radius: 9px; background: #f0f4fa; }
.location-card__image img { width: 100%; height: 100%; object-fit: contain; }
.location-card__heading { min-width: 0; align-self: center; }
.location-card__heading h2 { margin: 0; color: #253047; font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.location-card__here { display: inline-block; margin-top: 4px; padding: 3px 6px; border-radius: 999px; background: #e7f7ed; color: #23774a; font-size: 9px; font-weight: 600; }
.location-card .more { align-self: start; height: 26px; color: #8b97ac; font-size: 18px; }
.location-card__stats { display: grid; gap: 4px; margin: 8px 0; padding: 6px 8px; border-radius: 8px; background: #f7f9fc; line-height: 1.2; }
.location-stat { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.location-stat > span { color: #778398; font-size: 11px; }
.location-stat > div { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 6px; color: #46536b; font-size: 12px; font-variant-numeric: tabular-nums; }
.location-stat > div > span { min-width: 32px; text-align: right; }
.location-stat > div > span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; color: #46536b; }
.location-stat .demo-icon { width: 13px; height: 13px; }
.location-stat b { font-weight: 600; }
.count-recurring { color: #6b68a6; }
.location-card .location-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.location-card .location-actions button { min-width: 0; min-height: 30px; padding: 4px; border: 1px solid #dde5f0; border-radius: 9px; background: #fff; color: #66748c; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.location-card .location-actions .location-card__select { border-color: #0054e9; background: #0054e9; color: #fff; }
.location-card .location-actions .location-card__select:disabled { border-color: #d8e7ff; background: #edf4ff; color: #3264a5; cursor: default; }

/* Events filters remain outside the scrolling list, as in the app. */
#event-filters { padding: 4px 8px 2px; }
.event-location-control { position: relative; margin: 4px 12px 8px; }
.event-location-picker { display: grid; grid-template-columns: 32px minmax(0, 1fr) 18px; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 56px; padding: 8px 12px; border: 1px solid #d7d8da; border-radius: 8px; background: #f4f5f8; color: #000; font: inherit; text-align: left; }
.event-location-copy { display: grid; min-width: 0; gap: 3px; line-height: 1.3; }
.event-location-copy small { color: #808289; font-size: 12px; }
.event-location-copy strong { overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.event-location-picker > .demo-icon { color: #92949c; font-size: 18px; }
.event-location-symbol { display: grid; flex: none; width: 32px; height: 32px; place-items: center; overflow: hidden; border-radius: 6px; background: #fff; color: #0054e9; }
.event-location-symbol img { width: 100%; height: 100%; object-fit: cover; }
.event-location-symbol .demo-icon { width: 20px; height: 20px; }
.event-location-options { position: absolute; z-index: 4; top: calc(100% + 4px); right: 0; left: 0; max-height: 260px; overflow-y: auto; padding: 5px; border: 1px solid #e1e7f0; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px #24314826; }
.event-location-options button { display: grid; grid-template-columns: 32px minmax(0, 1fr) 20px; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 6px; background: #fff; color: #000; font-size: 14px; text-align: left; }
.event-location-options button[aria-selected="true"] { background: #0054e914; color: #0054e9; font-weight: 500; }
.event-location-options .location-option-check { visibility: hidden; font-size: 20px; color: #0054e9; }
.event-location-options [aria-selected="true"] .location-option-check { visibility: visible; }
.event-search-row { position: relative; display: flex; margin: 8px 4px 2px; }
.event-search-icon { position: absolute; left: 9px; top: 8px; width: 20px; height: 20px; color: #92949c; }
.event-search-row input { flex: 1; min-width: 0; width: 0; height: 36px; padding: 6px 10px 6px 36px; border: 0; border-radius: 10px; background: #7676801f; color: #000; font-size: 16px; }
.event-view-toggle { position: absolute; z-index: 2; left: 10px; bottom: 66px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f4f5f8; color: #000; box-shadow: 0 3px 9px #0003; }
.event-view-toggle .demo-icon { width: 24px; height: 24px; }
.event-day-group { display: grid; gap: 14px; margin-bottom: 14px; }
.event-day-group h2 { margin: 8px 0 -2px; padding: 0; color: #808289; font-size: .95rem; font-weight: 600; text-transform: capitalize; }
.demo-event-card { display: flex; align-items: stretch; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 4px 18px #0000000d; }
.demo-event-sidebar { width: 5px; flex-shrink: 0; background: var(--event-color, #3880ff); }
.demo-event-content { display: flex; flex: 1; flex-direction: column; gap: 10px; min-width: 0; padding: 12px 12px 12px 15px; }
.event-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.event-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 3px; max-width: 100%; padding: 4px 7px; border-radius: 999px; background: #0054e9; color: #fff; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.event-badge.recurring, .event-badge.day-progress { background: #f3f0fa; color: #75618f; font-weight: 600; }
.event-badge.role { background: #ecfdf3; color: #21643d; font-weight: 600; }
.event-badge.role.organizer { background: #eff6ff; color: #245ca8; }
.event-card-venue { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; max-width: 100%; overflow: hidden; color: #667085; font-size: 12px; }
.event-card-venue span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-card-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin: 0; }
.event-card-body > div:first-child { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.event-card-body strong { display: block; color: #2f3b52; font-size: 15px; font-weight: 700; line-height: 1.35; word-break: break-word; }
.event-card-meta { display: grid; gap: 3px; color: #667085; font-size: 12px; }
.event-card-meta > span { display: flex; align-items: center; gap: 5px; margin: 0; overflow-wrap: anywhere; line-height: 1.4; }
.event-card-actions { min-width: 92px; flex-shrink: 0; }
.event-card-actions .outline-action { width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 0 10px; font-size: 13px; letter-spacing: 0; }
.compact .event-card-actions { min-width: 82px; }
.compact .event-card-actions .outline-action { height: 24px; min-height: 24px; padding: 0 8px; font-size: 10px; }
.event-list-end { padding: 2px 0 8px; color: #8b97a9; font-size: 11px; text-align: center; }
.demo-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 15px; color: #66748c; text-align: center; }
.demo-empty > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #edf4ff; color: #7298ce; font-size: 28px; }
.demo-empty strong { color: #44536b; font-size: 14px; }
.demo-empty p { margin: 0; font-size: 12px; line-height: 1.5; }
.demo-empty button { margin-top: 3px; padding: 7px 12px; }
.calendar-indicator.event { background: #8b6ac8; }
.calendar-event-actions button:last-child { background: #fff; color: #4b5a73; }
.event-detail-name { padding-left: 10px; border-left: 4px solid; text-transform: none; }
.detail-relations { padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.detail-relations h3 { margin: 2px 0 8px; color: #7f8a9b; font-size: 12px; font-weight: 500; }
.detail-relations button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin-top: 5px; padding: 9px; border: 1px solid #e1e7f0; border-radius: 9px; background: #f9fbff; color: #44536b; font-size: 12px; text-align: left; overflow-wrap: anywhere; }
.detail-relations button span { color: #7298ce; font-size: 18px; }
.detail-relations p { color: #7f8a9b; font-size: 12px; }
.assignment-notification { display: flex; align-items: center; gap: 9px; width: 100%; margin-bottom: 9px; padding: 12px 10px; border: 1px solid #dfe8f5; border-radius: 13px; background: #f7faff; color: #44536b; text-align: left; }
.assignment-notification-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; background: #eaf2ff; color: #7298ce; font-size: 20px; }
.assignment-notification > span:nth-child(2) { flex: 1; min-width: 0; }
.assignment-notification strong, .assignment-notification small { display: block; overflow-wrap: anywhere; }
.assignment-notification strong { font-size: 12px; }
.assignment-notification small { margin-top: 5px; color: #7f8a9b; font-size: 10px; }

/* A self-contained schematic map keeps the demo light and works without tile APIs. */
#events-view.event-map-mode { display: flex; padding: 0; height: 100%; min-height: 100%; }
.event-map { position: relative; flex: 1; min-width: 0; min-height: 0; overflow: hidden; background: #f2f3ee; }
.demo-map-terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-map-location { position: absolute; display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 116px; height: 28px; padding: 3px 4px 3px 8px; border: 1px solid #1976d240; border-radius: 14px; background: #fffffff5; box-shadow: 0 3px 12px #0f172a2e; color: #195fa8; font-size: 10px; font-weight: 700; transform: translate(-50%, -50%); }
.demo-map-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-map-location b { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: #0054e9; color: #fff; font-size: 10px; }
.demo-map-gps { position: absolute; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; transform: translate(-50%, -100%); }
.demo-map-gps > span { display: block; width: 30px; height: 30px; border: 4px solid #fff; border-radius: 50% 50% 50% 8px; background: var(--event-color, #3880ff); box-shadow: 0 3px 10px #0f172a57; transform: rotate(-45deg); }
.demo-map-user { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px; transform: translate(-50%, -50%); }
.demo-map-user i { width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: #3880ff; box-shadow: 0 0 0 8px #3880ff26; }
.demo-map-user span { padding: 3px 6px; border-radius: 5px; background: #ffffffeb; color: #456388; font-size: 9px; }
.demo-map-note { position: absolute; right: 8px; bottom: 8px; left: 8px; margin: 0; padding: 8px; border: 1px solid #e5ebf3; border-radius: 8px; background: #fffffff2; color: #66748c; font-size: 10px; line-height: 1.4; text-align: center; }
.fab, .qr-scan { width: 40px; height: 40px; bottom: 66px; }
.fab { right: 10px; }
.fab .demo-icon { width: 28px; height: 28px; }
.tabs { height: 56px; }
.tabs button { font-size: clamp(.58rem, 2.5vw, .75rem); }
.tab-symbol { width: 24px; height: 24px; }
.tab-symbol .demo-icon { width: 100%; height: 100%; }
@media (max-width: 380px) {
  .event-card-body { align-items: stretch; flex-direction: column; }
  .event-card-actions { width: 100%; }
  .compact .event-card-body { align-items: center; flex-direction: row; }
  .compact .event-card-actions { width: auto; }
}
@media (max-width: 359px) {
  .location-card { padding: 8px; }
}
