/* Arovia Arbetsorder */
:root {
	--blue: #3D75AE;
	--blue-dark: #2A5A8C;
	--ink: #06101A;
	--text: #1F2A37;
	--muted: #5d6875;
	--line: #dbe3ec;
	--bg: #F5F8FB;
	--soft: #EAF0F6;
	--white: #fff;
	--green: #2f8f5b;
	--amber: #c77a12;
	--red: #c0392b;
	--radius: 8px;
	--shadow: 0 1px 2px rgba(6, 16, 26, .06), 0 2px 8px rgba(6, 16, 26, .05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--blue-dark); }
h1, h2 { margin: 0; line-height: 1.25; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Knappar och fält ---------- */

.aao-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--white);
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.aao-btn:hover { border-color: #b9c6d4; background: #fafcfe; }
.aao-btn:focus-visible, .aao-input:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.aao-btn[disabled] { opacity: .6; cursor: default; }
.aao-btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.aao-btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.aao-btn-done { background: var(--green); border-color: var(--green); color: #fff; }
.aao-btn-done:hover { background: #267a4c; border-color: #267a4c; }
.aao-btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.aao-btn-danger:hover { background: #a93226; border-color: #a93226; }
.aao-btn-danger-ghost { color: var(--red); }
.aao-btn-icon { width: 40px; padding: 0; font-size: 22px; line-height: 1; }
.aao-btn-small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.aao-btn-big { width: 100%; min-height: 52px; font-size: 17px; margin-top: 16px; }
.aao-btn-block { width: 100%; min-height: 46px; }

.aao-input {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #c3cfdb;
	border-radius: 6px;
	background: var(--white);
}
textarea.aao-input { resize: vertical; min-height: 64px; }

.aao-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aao-field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.aao-field input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #c3cfdb; border-radius: 6px; }

.aao-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aao-fields .is-wide { grid-column: 1 / -1; }

.aao-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.aao-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.aao-check small { display: block; color: var(--muted); font-weight: 400; }
.aao-check-inline { align-items: center; font-size: 14px; }
.aao-check-inline input { margin: 0; }

.aao-hint { color: var(--muted); font-size: 13px; margin: 0; }
.aao-empty { color: var(--muted); margin: 4px 0; font-size: 14px; }
.aao-empty-big { text-align: center; padding: 40px 16px; font-size: 16px; }
.aao-center { text-align: center; }
.aao-loading { padding: 40px 16px; text-align: center; color: var(--muted); }
.aao-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aao-grow { flex: 1; }
.aao-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Inloggning ---------- */

body.aao-login, body.aao-denied {
	background: linear-gradient(160deg, #06101A 0%, #0d2238 100%);
	min-height: 100vh;
}
.aao-gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.aao-gate-card { width: 100%; max-width: 400px; }
.aao-gate-brand { text-align: center; margin-bottom: 24px; color: #fff; font-size: 22px; }
.aao-gate-brand img { max-width: 220px; height: auto; }
.aao-gate-card h1 { color: #fff; font-size: 22px; text-align: center; }
.aao-gate-text { color: #b8c6d6; text-align: center; margin: 6px 0 20px; }
.aao-gate-card form { background: #fff; border-radius: 10px; padding: 20px; display: grid; gap: 14px; }
.aao-alert { background: #fdecea; color: #8e2a20; border: 1px solid #f3c1bb; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; font-weight: 600; }
.aao-gate-links { display: flex; justify-content: space-between; margin: 16px 4px 0; font-size: 14px; }
.aao-gate-links a { color: #b8c6d6; }

/* ---------- Ram ---------- */

.aao-top {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 56px;
	padding: 0 20px;
	background: var(--ink);
	color: #fff;
}
.aao-brand { display: flex; align-items: center; color: #fff; text-decoration: none; flex: none; }
.aao-brand img { height: 34px; width: auto; display: block; }
.aao-nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.aao-nav a, .aao-tabbar a { color: #c6d2df; text-decoration: none; font-weight: 600; }
.aao-nav a { padding: 8px 12px; border-radius: 6px; }
.aao-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.aao-nav a.is-active { color: #fff; background: var(--blue); }
.aao-user { display: flex; align-items: center; gap: 14px; font-size: 14px; flex: none; }
.aao-user a { color: #c6d2df; }
.aao-user-name { font-weight: 600; }

.aao-tabbar { display: none; }

.aao-view { max-width: 1500px; margin: 0 auto; padding: 20px; }

.aao-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.aao-bar-nav { display: flex; gap: 6px; }
.aao-bar-title { font-size: 20px; flex: 1; min-width: 0; }
.aao-bar-end { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.aao-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.aao-panel > h2 { font-size: 15px; margin-bottom: 12px; }
.aao-panel-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.aao-panel-head h2 { font-size: 15px; }
.aao-narrow { max-width: 640px; }

.aao-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* ---------- Status ---------- */

.aao-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--soft); color: #44505d; white-space: nowrap; }
.aao-badge.st-planerad { background: #e1ecf7; color: #244f7d; }
.aao-badge.st-pagaende { background: #fbeed6; color: #8a5407; }
.aao-badge.st-klar { background: #ddf1e5; color: #1f6b41; }

.aao-prio { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.aao-prio.pr-hog { background: #fbeed6; color: #8a5407; }
.aao-prio.pr-akut { background: var(--red); color: #fff; }

.aao-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; flex: none; vertical-align: baseline; }

/* ---------- Orderkort ---------- */

.aao-card {
	display: block;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-left: 4px solid #9aa5b1;
	border-radius: 6px;
	background: var(--white);
	color: var(--text);
	text-decoration: none;
	box-shadow: 0 1px 1px rgba(6, 16, 26, .04);
}
.aao-card:hover { border-color: #b9c6d4; border-left-color: inherit; box-shadow: var(--shadow); }
.aao-card.st-ny { border-left-color: #9aa5b1; }
.aao-card.st-planerad { border-left-color: var(--blue); }
.aao-card.st-pagaende { border-left-color: var(--amber); }
.aao-card.st-klar { border-left-color: var(--green); background: #f4faf6; }
.aao-card.st-klar .aao-card-title { color: var(--muted); }
.aao-card.is-drag { opacity: .45; }
.aao-card[draggable="true"] { cursor: grab; }
.aao-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.aao-card-time { font-weight: 700; color: var(--text); }
.aao-card-title { font-weight: 600; overflow-wrap: anywhere; }
.aao-card-sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.aao-card-who { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 13px; }
.aao-who { display: inline-flex; align-items: center; }
.aao-who.is-none { color: var(--muted); font-style: italic; }
.aao-card-foot { margin-top: 6px; }

/* ---------- Schema: rutnät ---------- */

.aao-grid-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow); }
.aao-grid { display: grid; }
.aao-gh { padding: 8px 10px; background: var(--soft); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; align-items: baseline; gap: 6px; }
.aao-gh-corner { border-left: 0; }
.aao-gh-day { font-weight: 700; }
.aao-gh-date { font-size: 13px; color: var(--muted); }
.aao-gh.is-today { background: var(--blue); }
.aao-gh.is-today .aao-gh-day, .aao-gh.is-today .aao-gh-date { color: #fff; }
.aao-gn { padding: 10px; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; align-items: flex-start; overflow-wrap: anywhere; }
.aao-gn .aao-dot { margin-top: 6px; }
.aao-gn.is-none { color: var(--muted); font-style: italic; font-weight: 500; }
.aao-cell { position: relative; min-height: 84px; padding: 6px 6px 26px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aao-cell.is-today { background: #f6f9fd; }
.aao-cell.is-over, .aao-unplanned.is-over { background: #e1ecf7; outline: 2px dashed var(--blue); outline-offset: -2px; }
.aao-cell-add { position: absolute; right: 4px; bottom: 3px; width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; font-weight: 700; opacity: 0; }
.aao-cell:hover .aao-cell-add, .aao-cell-add:focus-visible { opacity: 1; }
.aao-cell-add:hover { background: var(--soft); color: var(--blue-dark); }
.aao-grid > :nth-last-child(-n+1) { border-bottom: 0; }

.aao-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }

/* ---------- Dagslista ---------- */

.aao-agenda { display: none; }
.aao-day { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.aao-day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aao-day-head h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.aao-day.is-today .aao-day-head h2 { color: var(--blue-dark); }
.aao-day.is-late .aao-day-head h2 { color: var(--red); }
.aao-view > .aao-day, .aao-stack { max-width: 720px; }
.aao-stack { display: flex; flex-direction: column; gap: 8px; }
.aao-view > .aao-day .aao-card, .aao-stack .aao-card { padding: 12px 14px; }

/* ---------- Orderlista ---------- */

.aao-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.aao-filters .aao-input { width: auto; }
.aao-filters input[type=search] { flex: 1; min-width: 220px; }
.aao-rows { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.aao-row { display: grid; grid-template-columns: 80px minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1.4fr) minmax(0, 1.2fr) 100px; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; }
.aao-row:last-child { border-bottom: 0; }
a.aao-row:hover { background: #f6f9fd; }
.aao-row-head { background: var(--soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.aao-row-ref { font-weight: 700; color: var(--muted); }
.aao-row-main strong { margin-right: 6px; }
.aao-row-main small { display: block; color: var(--muted); }
.aao-row span { overflow-wrap: anywhere; min-width: 0; }

/* ---------- Order ---------- */

.aao-order-title { font-size: 20px; margin-bottom: 12px; }
.aao-infos { margin: 0; display: grid; gap: 10px; }
.aao-info { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; }
.aao-info dt { color: var(--muted); font-size: 13px; font-weight: 600; padding-top: 1px; }
.aao-info dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.aao-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aao-chip { position: relative; cursor: pointer; }
.aao-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.aao-chip > span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 12px; border: 1px solid #c3cfdb; border-radius: 999px; background: var(--white); font-weight: 600; font-size: 14px; }
.aao-chip input:checked + span { background: #e1ecf7; border-color: var(--blue); color: #1d456f; }
.aao-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.aao-actions { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, rgba(245, 248, 251, 0)); }

.aao-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 12px; }
.aao-photo { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--soft); }
.aao-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aao-photo-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(6, 16, 26, .7); color: #fff; cursor: pointer; font-size: 13px; }

.aao-notes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.aao-notes li { border-left: 3px solid var(--line); padding-left: 10px; }
.aao-note-meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.aao-note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.aao-note-new { display: flex; gap: 8px; align-items: flex-start; }

/* ---------- Personal och inställningar ---------- */

.aao-staff-list { display: grid; }
.aao-staff { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.aao-staff:first-child { padding-top: 0; }
.aao-staff:last-child { border-bottom: 0; padding-bottom: 0; }
.aao-staff-main strong { display: flex; align-items: center; }
.aao-staff-main small { color: var(--muted); overflow-wrap: anywhere; }
.aao-staff .aao-input { width: auto; min-height: 32px; padding: 4px 8px; font-size: 13px; }
.aao-settings { display: grid; gap: 16px; }
.aao-settings .aao-btn { justify-self: start; }

/* ---------- Inkomna, tid och filer ---------- */

.aao-count { display: none; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: #d9822b; color: #fff; font-size: 11px; line-height: 18px; text-align: center; vertical-align: 1px; }
.aao-count.is-on { display: inline-block; }

.aao-notice { margin: 0 0 16px; padding: 10px 14px; border: 1px solid #c9dbee; border-left: 4px solid var(--blue); border-radius: 6px; background: #eef4fb; }
.aao-hint.is-bad { color: var(--red); font-weight: 600; }

.aao-stack-wide { max-width: 860px; }
.aao-inbox { margin-bottom: 0; }
.aao-inbox .aao-panel-head { justify-content: space-between; margin-bottom: 4px; }
.aao-inbox h2 { overflow-wrap: anywhere; }
.aao-inbox-text { margin: 8px 0 12px; overflow-wrap: anywhere; }

.aao-files { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.aao-files li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; }
.aao-files a { overflow-wrap: anywhere; font-weight: 600; }
.aao-file-x { width: 28px; height: 28px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.aao-file-x:hover { background: var(--soft); color: var(--red); }

.aao-time { list-style: none; margin: 0; padding: 0; }
.aao-time li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto 28px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.aao-time-date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.aao-time-who small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.aao-time-h { white-space: nowrap; }
.aao-time-total { margin: 10px 0 14px; font-weight: 700; text-align: right; padding-right: 38px; }
.aao-time-grand { padding-right: 16px; font-size: 16px; }
.aao-time-new { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 12px; }
.aao-time-new .is-wide { grid-column: 1 / -1; }
.aao-panel > .aao-panel-head h2, .aao-panel-head h2 { display: flex; align-items: center; }
.aao-panel-head > strong { margin-left: auto; }

.aao-trows { display: grid; }
.aao-trow { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.aao-trow:hover { background: #f6f9fd; }
.aao-trow-main strong { display: block; overflow-wrap: anywhere; }
.aao-trow-main small { color: var(--muted); overflow-wrap: anywhere; }

.aao-more { display: grid; gap: 4px; max-width: 420px; }
.aao-bar-end .aao-input { width: auto; }

/* ---------- Faktura ---------- */

.aao-badge.st-fakturerad { background: #e9e3f6; color: #4b3382; }
.aao-card.st-fakturerad { border-left-color: #8a5cc2; background: #f8f6fc; }
.aao-card.st-fakturerad .aao-card-title { color: var(--muted); }
.aao-inv-line { margin: 0 0 4px; font-size: 16px; }
.aao-panel .aao-hint + .aao-inline { margin-top: 12px; }
.aao-mode { margin-bottom: 12px; }
.aao-cust-results { margin-top: 10px; display: grid; gap: 8px; }
.aao-cust { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.aao-inline > input[type=search] { flex: 1; min-width: 180px; width: auto; }
.aao-irows { display: grid; gap: 8px; margin-bottom: 12px; }
.aao-irow { display: grid; grid-template-columns: minmax(0, 3fr) 76px 64px 120px 84px 84px 110px 28px; gap: 8px; align-items: center; }
.aao-irow-head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.aao-irow-sum { text-align: right; white-space: nowrap; }
.aao-irow-labor { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.aao-irow-labor input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.aao-irow-labor span { display: none; }
.aao-itotals { margin: 16px 0 0 auto; max-width: 320px; display: grid; gap: 4px; }
.aao-itotals div { display: flex; justify-content: space-between; gap: 16px; }
.aao-itotals .is-total { border-top: 1px solid var(--line); padding-top: 6px; font-size: 17px; }
.aao-notice.is-wide { margin: 0; }

/* ---------- Toast och dialog ---------- */

.aao-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.aao-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.aao-toast.is-bad { background: var(--red); }

.aao-modal { position: fixed; inset: 0; z-index: 70; background: rgba(6, 16, 26, .5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.aao-modal-card { background: #fff; border-radius: 10px; padding: 20px; max-width: 420px; width: 100%; }
.aao-modal-card p { margin: 0 0 16px; font-size: 16px; }
.aao-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
	.aao-grid-wrap { display: none; }
	.aao-agenda { display: block; }
	.aao-desktop { display: none; }
	.aao-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }

	.aao-row-head { display: none; }
	.aao-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
	.aao-row-ref { grid-column: 1; grid-row: 1; font-size: 12px; }
	.aao-row-status { grid-column: 2; grid-row: 1; }
	.aao-row-main, .aao-row-place, .aao-row-when, .aao-row-who { grid-column: 1 / -1; }
	.aao-row-place, .aao-row-when, .aao-row-who { font-size: 13px; color: var(--muted); }
}

@media (max-width: 760px) {
	.aao-top { padding: 0 14px; min-height: 52px; }
	.aao-nav { display: none; }
	.aao-brand { flex: 1; }
	.aao-brand img { height: 28px; }
	.aao-user-name { display: none; }

	.aao-tabbar {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 30;
		display: flex;
		background: var(--ink);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.aao-tabbar a { flex: 1; min-width: 0; padding: 14px 2px; text-align: center; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 3px solid transparent; }
	.aao-tabbar a.is-active { color: #fff; border-top-color: var(--blue); background: rgba(255, 255, 255, .06); }

	.aao-view { padding: 14px 14px calc(84px + env(safe-area-inset-bottom)); }
	.aao-bar-title { font-size: 18px; flex-basis: 100%; order: -1; }
	.aao-bar .aao-btn-icon + .aao-bar-title { flex-basis: auto; order: 0; }
	.aao-fields { grid-template-columns: minmax(0, 1fr); }
	.aao-info { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.aao-input, .aao-field input { font-size: 16px; }
	.aao-actions { bottom: calc(50px + env(safe-area-inset-bottom)); }
	.aao-toast { bottom: calc(70px + env(safe-area-inset-bottom)); }
	.aao-filters .aao-input { flex: 1; }
	.aao-filters input[type=search] { flex-basis: 100%; }
	.aao-note-new { flex-direction: column; align-items: stretch; }
	.aao-irow-head { display: none; }
	.aao-irow { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
	.aao-irow-text { grid-column: 1 / 3; grid-row: 1; }
	.aao-irow > .aao-file-x { grid-column: 3; grid-row: 1; justify-self: end; }
	.aao-irow-labor span { display: inline; }
	.aao-time-new { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.aao-time li { grid-template-columns: 78px minmax(0, 1fr) auto 28px; gap: 8px; }
	.aao-trow { grid-template-columns: 78px minmax(0, 1fr) auto; }
}

/* ---------- Utskrift ---------- */

@media print {
	.aao-top, .aao-tabbar, .aao-noprint, .aao-toast { display: none !important; }
	body { background: #fff; }
	.aao-view { padding: 0; max-width: none; }
	.aao-panel { box-shadow: none; break-inside: avoid; }
	.aao-cols { grid-template-columns: 1fr; gap: 0; }
}
