/* Bridgepoint Jobs – staff phone page */
:root {
	--navy: #2E334A; --navy-2: #3b4160; --yellow: #FFC72C; --bg: #f2f3f6; --text: #1d2030; --muted: #6b6f80;
	--green: #1e7a3c; --amber: #8a6100;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.45;
	-webkit-text-size-adjust: 100%;
}
a { color: var(--navy); }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px;
	background: var(--yellow); color: var(--navy); font-weight: 800; letter-spacing: -.5px;
}
.brand-text { font-size: 18px; }

/* Top bar */
.topbar {
	position: sticky; top: 0; z-index: 10; background: #fff; color: var(--navy); border-bottom: 3px solid var(--yellow);
	padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; justify-content: space-between; align-items: center;
}
.brand-logo { display: block; height: 40px; width: auto; }
.who { text-align: right; font-size: 13px; line-height: 1.3; }
.who span { display: block; font-weight: 600; }
.who a { color: var(--navy); font-weight: 600; }

.tabs {
	position: sticky; top: calc(63px + env(safe-area-inset-top)); z-index: 9;
	display: flex; background: var(--navy-2);
}
.tabs a {
	flex: 1; text-align: center; padding: 12px 4px; color: #d6d9e6; text-decoration: none; font-weight: 600;
	border-bottom: 3px solid transparent;
}
.tabs a.active { color: #fff; border-bottom-color: var(--yellow); }
.tabs .count {
	display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px;
	background: var(--yellow); color: var(--navy); font-size: 12px; line-height: 20px;
}

/* Jobs */
.jobs { padding: 12px 12px 24px; max-width: 640px; margin: 0 auto; }
.day { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 4px 8px; }
.day.overdue { color: #b3261e; }
.flash {
	background: #e3f4e7; color: var(--green); border-radius: 10px; padding: 12px 14px; font-weight: 600; margin-bottom: 8px;
}
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }

.job {
	background: #fff; border-radius: 14px; padding: 14px 16px 16px; margin-bottom: 14px;
	box-shadow: 0 1px 3px rgba(20, 24, 40, .08); border-left: 5px solid var(--navy);
}
.job.status-in_progress { border-left-color: var(--yellow); }
.job.status-completed { border-left-color: var(--green); opacity: .9; }
.job-top { display: flex; justify-content: space-between; align-items: center; }
.time { font-size: 18px; font-weight: 700; }
.status-pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; background: #e8eaf2; color: var(--navy); }
.status-in_progress .status-pill { background: #fff3cd; color: var(--amber); }
.status-completed .status-pill { background: #e3f4e7; color: var(--green); }
.service { color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 2px; }
.customer { font-size: 20px; margin: 6px 0 10px; }

.block { border-top: 1px solid #eceef3; padding: 10px 0 6px; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.value { white-space: normal; }
.maps { display: inline-block; margin-top: 6px; font-weight: 600; font-size: 14px; }
.notes { background: #fffbea; margin: 6px -16px 0; padding: 10px 16px; border-top: 0; }
.updates .value { font-size: 14px; color: var(--muted); }

/* Buttons */
.btn {
	display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 16px;
	border: 0; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
	background: var(--navy); color: #fff; width: 100%;
}
.btn-call { background: #eef0f6; color: var(--navy); margin-bottom: 6px; }
.btn-start { background: var(--yellow); color: var(--navy); }
.btn-complete { background: var(--green); color: #fff; }
.actions { display: flex; gap: 8px; margin-top: 12px; }
.actions form, .actions > .btn { flex: 1; }
.complete-form { margin-top: 10px; background: #f6f7fa; padding: 12px; border-radius: 10px; }
.complete-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.complete-form textarea {
	width: 100%; font: inherit; padding: 10px; border-radius: 8px; border: 1px solid #c9ccd8; margin-bottom: 10px;
}

.foot { text-align: center; padding: 8px 0 calc(24px + env(safe-area-inset-bottom)); }
.foot a { color: var(--muted); }

/* Login */
.login-wrap { max-width: 420px; margin: 0 auto; padding: calc(40px + env(safe-area-inset-top)) 18px 40px; }
.login-wrap .brand { justify-content: center; margin: 0 0 18px; }
.login-wrap .brand-logo { height: auto; width: 100%; max-width: 280px; }
.view-login, .bpj-view-login, .bpj-view-denied { background: var(--navy); }
.bpj-view-login .brand-text, .bpj-view-denied .brand-text { color: #fff; }
.card { background: #fff; border-radius: 16px; padding: 22px 20px; }
.card h1 { margin: 0 0 14px; font-size: 22px; }
.login-card label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.login-card input[type=text], .login-card input[type=password] {
	width: 100%; font-size: 16px; padding: 12px; border-radius: 8px; border: 1px solid #c9ccd8;
}
.login-card p { margin: 0 0 14px; }
.login-card .login-remember label { font-weight: normal; display: flex; align-items: center; gap: 8px; }
.login-card input[type=submit] {
	width: 100%; min-height: 50px; border: 0; border-radius: 10px; background: var(--yellow); color: var(--navy);
	font: inherit; font-weight: 800; font-size: 17px; cursor: pointer;
}
.small { font-size: 14px; text-align: center; }
.tip { color: #c9cde0; font-size: 14px; text-align: center; margin-top: 18px; }
.tip strong { color: #fff; }

/* Login messages */
.login-error { background: #fdecec; color: #b3261e; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }

/* ===== Office (boss) area ===== */
.office-badge { font-style: normal; background: var(--yellow); color: var(--navy); font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 8px; margin-left: 4px; vertical-align: 1px; }
.office-tabs a { font-size: 15px; }
.office-tabs .tab-book { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; color: var(--navy); background: var(--yellow); border-bottom-color: var(--yellow); }
.office-tabs .tab-book.active { border-bottom-color: var(--navy); }
.office { max-width: 1100px; }
.office .job, .office .card-form, .office .list, .office .pills, .office .searchbar, .office .row-between, .office .quick, .office .page-title, .office .delete-form, .office .day, .office .agenda, .office .calnav, .office .empty { max-width: 640px; margin-left: auto; margin-right: auto; }
.office .day { padding: 0 4px; }

.pills { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; }
.pill { flex: 0 0 auto; padding: 8px 14px; border-radius: 20px; background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid #dfe2ea; }
.pill.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill.alert:not(.on) { color: #b3261e; border-color: #f1c4c4; }

.customer a { color: inherit; text-decoration: none; }
.crew { font-size: 14px; margin: -4px 0 10px; }
.crew .label { display: inline; margin-right: 4px; }
.crew.none { color: #b3261e; font-weight: 700; }
.private { background: #fff5f5; margin: 6px -16px 0; padding: 10px 16px; border-top: 0; }
.only-you { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #b3261e; background: #fdecec; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid #dfe2ea; width: auto; min-height: 42px; }
.btn-inline { width: auto; min-height: 40px; padding: 8px 14px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 14px; }
.page-title { font-size: 22px; margin: 6px 4px 12px; }

/* Calendar */
.calnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px auto 8px; }
.calnav h2 { margin: 0; font-size: 19px; }
.cal { display: none; width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; border-radius: 12px; overflow: hidden; margin-top: 8px; }
.cal th { background: var(--navy); color: #fff; padding: 8px; text-align: left; font-size: 13px; }
.cal td { border: 1px solid #e3e5ec; height: 108px; vertical-align: top; padding: 4px; }
.cal td.other { background: #f6f7f9; } .cal td.other .num { color: #aaa; }
.cal td.today { background: #fffbea; box-shadow: inset 0 0 0 2px var(--yellow); }
.daytop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.num { font-weight: 700; font-size: 13px; }
.add { text-decoration: none; width: 20px; height: 20px; line-height: 18px; text-align: center; border-radius: 50%; border: 1px solid #ccc; color: var(--navy); font-size: 13px; }
.chip { display: block; text-decoration: none; border-left: 3px solid var(--c); background: var(--b); color: var(--c); border-radius: 5px; padding: 4px 7px; margin-bottom: 4px; font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip small { display: block; opacity: .85; overflow: hidden; text-overflow: ellipsis; }
.chip.noone { border-left-color: #c62828; }
.st-booked { --c: #2E334A; --b: #e8eaf2; } .st-in_progress { --c: #7a5600; --b: #fff3cd; }
.st-completed { --c: #1e6b34; --b: #e3f4e7; } .st-cancelled { --c: #6b6b6b; --b: #f0f0f0; }
.chip.st-cancelled { text-decoration: line-through; }
.agenda h3 { font-size: 14px; margin: 16px 4px 6px; padding-bottom: 4px; border-bottom: 2px solid var(--yellow); }
.agenda h3.is-today { color: var(--amber); }
.agenda .chip { white-space: normal; font-size: 15px; padding: 10px 12px; border-radius: 8px; }
@media (min-width: 820px) { .cal { display: table; } .agenda { display: none; } }

/* Lists */
.searchbar { display: flex; gap: 8px; margin-bottom: 10px; }
.searchbar input { flex: 1; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid #c9ccd8; min-width: 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.list-item { position: relative; display: block; background: #fff; border-radius: 12px; padding: 12px 90px 12px 14px; text-decoration: none; color: var(--text); box-shadow: 0 1px 3px rgba(20,24,40,.06); }
.list-item strong, .list-item span { display: block; }
.list-item span { font-size: 14px; }
.count-badge { position: absolute; right: 12px; top: 12px; font-style: normal; font-size: 12px; font-weight: 700; background: var(--b, #eef0f6); color: var(--c, var(--navy)); padding: 2px 8px; border-radius: 10px; }
.small-empty { padding: 16px; }
.quick { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }

/* Forms */
.card-form { background: #fff; border-radius: 14px; padding: 6px 16px 18px; box-shadow: 0 1px 3px rgba(20,24,40,.08); }
.card-form label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
.card-form input[type=password], .card-form input[type=text], .card-form input[type=tel], .card-form input[type=email], .card-form input[type=date],
.card-form input[type=time], .card-form select, .card-form textarea {
	width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid #c9ccd8; background: #fff; color: var(--text);
}
.card-form .btn { margin-top: 18px; }
.form-h { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 22px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--yellow); }
.req { color: #b3261e; }
.two { display: flex; gap: 10px; } .two > div { flex: 1; min-width: 0; }
.subbox { background: #f6f7fa; border-radius: 10px; padding: 2px 12px 12px; margin-top: 8px; }
.mini { margin-top: 6px; font: inherit; font-size: 13px; font-weight: 600; background: #eef0f6; color: var(--navy); border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.checks .check { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 0; padding: 10px 0; border-bottom: 1px solid #eef0f4; }
.checks .check input { width: 22px; height: 22px; }
.updates-box { background: #f6f7fa; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 8px; }
.delete-form { text-align: center; margin-top: 18px; }
.link-danger { background: none; border: 0; color: #b3261e; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 10px; }

/* Directions buttons */
.maps-row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.maps-btn { flex: 1; text-align: center; padding: 9px 6px; border-radius: 9px; background: #eef0f6; color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.maps-apple { background: var(--navy); color: #fff; }
.not-apple .maps-apple { display: none; }

/* See more */
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp.open { display: block; -webkit-line-clamp: unset; }
.see-more { background: none; border: 0; padding: 4px 0 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: underline; cursor: pointer; }

/* Photos */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eef0f6; }
.ph a, .ph img { display: block; width: 100%; height: 100%; }
.ph img { object-fit: cover; }
.ph form { position: absolute; top: 4px; right: 4px; margin: 0; }
.ph-del { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(20,24,40,.7); color: #fff; font-size: 18px; line-height: 24px; padding: 0; cursor: pointer; }
.photo-form { margin-top: 4px; }
.btn-photo { position: relative; background: #eef0f6; color: var(--navy); min-height: 44px; overflow: hidden; }
.btn-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.photo-form.busy .btn-photo { opacity: .5; pointer-events: none; }
.photo-status { font-size: 14px; color: var(--muted); margin-top: 6px; }
.photo-status:empty { display: none; }
.photo-card { margin-top: 14px; padding-top: 2px; }
.photo-card .block { border-top: 0; }

/* ===== v1.4: shared app layout ===== */
.office-bar { display: flex; gap: 6px; margin: 0 auto 10px; max-width: 640px; }
.ob { flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px; background: #fff; border: 1px solid #dfe2ea; color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ob.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ob-book { background: var(--yellow); border-color: var(--yellow); }
.ob-book.on { background: var(--navy); color: #fff; }
.alert-bar { display: block; max-width: 640px; margin: 0 auto 8px; background: #fdecec; color: #b3261e; border-radius: 10px; padding: 11px 14px; font-weight: 700; font-size: 14px; text-decoration: none; }

/* Summary cards (tap to open) */
.job-sum { display: block; text-decoration: none; color: var(--text); padding-bottom: 12px; }
.job-sum:active { transform: scale(.99); }
.job-sum .customer { font-size: 19px; font-weight: 700; margin: 4px 0 2px; }
.route { color: var(--text); font-size: 15px; }
.route .arrow { color: var(--muted); }
.sum-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #eceef3; font-size: 13px; color: var(--muted); }
.sum-foot .none { color: #b3261e; font-weight: 700; }
.sum-foot .more { color: var(--navy); font-weight: 700; white-space: nowrap; margin-left: auto; }

/* Details page */
.back { display: inline-block; max-width: 640px; margin: 2px 0 10px; color: var(--navy); font-weight: 700; text-decoration: none; }
.office .back { display: block; margin-left: auto; margin-right: auto; }
.detail .customer { margin: 2px 0 10px; }
.detail .customer a { color: inherit; }
.cust-block { border-top: 0; padding-top: 6px; }
.small-line { font-size: 14px; margin-top: 6px; }
.none-text { color: #b3261e; font-weight: 700; }
.btn-edit { margin-top: 10px; background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.jobs.office.wide { max-width: 1100px; }

/* ===== v1.6: Quotes & invoices ===== */
.docs-panel { max-width: 640px; margin: 18px auto 0; }
.doc-card { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(20,24,40,.08); border-left: 5px solid #8a8fa3; }
.doc-card.doc-invoice { border-left-color: var(--navy); }
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.doc-type { font-weight: 800; font-size: 15px; }
.doc-amount { font-size: 22px; font-weight: 800; margin: 2px 0; }
.doc-amount:empty { display: none; }
.doc-meta { font-size: 13px; color: var(--muted); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.doc-actions form { margin: 0; }
.doc-actions .mini { margin-top: 0; text-decoration: none; display: inline-block; }
.mini-paid, .mini-accepted { background: #e3f4e7; color: #1e6b34; }
.mini-rejected, .mini-unpaid { background: #fdecec; color: #b3261e; }
.mini-del { background: none; color: #b3261e; text-decoration: underline; }
.doc-status, .doc-mini { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 12px; background: #eef0f6; color: var(--navy); white-space: nowrap; }
.dst-accepted, .dst-paid { background: #e3f4e7; color: #1e6b34; }
.dst-rejected { background: #f0f0f0; color: #6b6b6b; }
.dst-unpaid { background: #fdecec; color: #b3261e; }
.dst-pending { background: #fff3cd; color: #7a5600; }
.doc-line { display: flex !important; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.doc-mini { font-size: 11px; padding: 2px 7px; }
.owes { color: #b3261e !important; font-weight: 800; font-size: 13px !important; }
.btn-add-doc { width: 100%; }
.doc-form { margin-top: 10px; }
.doc-form input[type=file] { width: 100%; font-size: 15px; padding: 8px 0; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; display: flex !important; align-items: center; justify-content: center; gap: 8px; margin: 0 !important; padding: 10px; border: 1px solid #c9ccd8; border-radius: 10px; font-weight: 700; }
.seg label:has(input:checked) { border-color: var(--navy); background: #e8eaf2; }
.alert-bar.on { background: var(--navy); color: #fff; }

/* ===== v1.7: Quote & Invoice slots ===== */
.dslots { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .dslots { grid-template-columns: 1fr 1fr; } }
.dslot-h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 2px 6px; }
.dintro { margin: -2px 4px 10px; }
.dcard { display: flex; gap: 12px; background: #fff; border-radius: 14px; padding: 10px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(20,24,40,.08); border: 2px solid transparent; }
.dcard.locked.dst-accepted, .dcard.locked.dst-paid { border-color: #bfe3c8; background: #f6fcf7; }
.dprev { position: relative; flex: 0 0 84px; height: 108px; border-radius: 8px; overflow: hidden; background: #eef0f6; display: block; text-decoration: none; }
.dprev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dfile { position: absolute; inset: 10px 14px 22px; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; }
.dfold { position: absolute; top: 0; right: 0; width: 14px; height: 14px; background: linear-gradient(225deg, #eef0f6 50%, #d7dae4 50%); }
.dext { font-weight: 900; font-size: 13px; color: #fff; background: #c62828; padding: 2px 6px; border-radius: 4px; }
.dk-invoice .dext { background: var(--navy); }
.dopen { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 11px; font-weight: 800; color: var(--navy); background: rgba(255,255,255,.9); padding: 3px 0; }
.dbody { flex: 1; min-width: 0; }
.dtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.dkind { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.damt { font-size: 22px; font-weight: 800; margin: 2px 0 0; }
.dmeta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dlock { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; font-weight: 800; color: #1e6b34; }
.dact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.dact form, .dlink { margin: 0; }
.dbtn { font: inherit; font-size: 13px; font-weight: 800; border: 0; border-radius: 8px; padding: 7px 11px; cursor: pointer; background: #eef0f6; color: var(--navy); }
.dbtn-accepted, .dbtn-paid { background: #1e7a3c; color: #fff; }
.dbtn-rejected { background: #fdecec; color: #b3261e; }
.dbtn-remove { background: none; border: 0; font: inherit; font-size: 13px; color: #b3261e; text-decoration: underline; cursor: pointer; padding: 4px; }
.dlink { display: flex; gap: 6px; margin-top: 8px; }
.dlink select { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; border: 1px solid #c9ccd8; background: #fff; }

.dadd { margin: 0; }
.dadd-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 108px; border: 2px dashed #b9bdcc; border-radius: 14px; background: #fafbfd; color: var(--navy); text-align: center; cursor: pointer; padding: 12px; }
.dadd-tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.dadd-tile.chosen { border-style: solid; border-color: var(--navy); background: #e8eaf2; min-height: 60px; }
.dplus { font-size: 28px; font-weight: 300; line-height: 1; }
.dadd-title { font-weight: 800; }
.dadd-sub { font-size: 12px; color: var(--muted); }
.dadd-more { background: #fff; border-radius: 14px; padding: 4px 14px 14px; margin-top: 8px; box-shadow: 0 1px 3px rgba(20,24,40,.08); }
.dadd-more label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
.dadd-more input[type=text], .dadd-more select { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid #c9ccd8; background: #fff; }
.dadd-file { font-weight: 700; font-size: 14px; margin-top: 10px; word-break: break-all; }
.dnote { margin: 10px 0 0; font-size: 13px; }
.dadd-btns { display: flex; gap: 8px; margin-top: 12px; }
.dadd-btns .btn { flex: 1; min-height: 46px; }
.job-sum .doc-line { margin-top: 8px; }

/* ===== v2.0: Quotes & invoices builder ===== */
.office-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 700px) { .office-bar { grid-template-columns: repeat(6, 1fr); } }
.ob { padding: 9px 4px; font-size: 13px; }
.sale-form textarea[name="line_desc[]"] { font-size: 15px; }
.sline { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; }
.sline textarea { flex: 1; min-width: 0; }
.sline-p { display: flex; align-items: center; gap: 3px; width: 108px; flex: 0 0 auto; }
.sline-p span { font-weight: 700; color: var(--muted); }
.sline-p input { width: 100% !important; text-align: right; }
.sline-x { flex: 0 0 auto; width: 32px; height: 42px; border: 0; background: none; color: #b3261e; font-size: 22px; cursor: pointer; }
.stotal { display: flex; justify-content: space-between; align-items: center; background: var(--yellow); color: var(--navy); border-radius: 10px; padding: 12px 14px; margin-top: 14px; font-weight: 800; }
.stotal strong { font-size: 22px; }
.sale-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.sale-btns .btn { margin-top: 0 !important; }
.sale-head { max-width: 640px; margin: 0 auto 14px; background: #fff; border-radius: 14px; padding: 14px 16px 16px; box-shadow: 0 1px 3px rgba(20,24,40,.08); border-left: 5px solid #8a8fa3; display: flex; flex-direction: column; gap: 10px; }
.sale-head.dst-accepted, .sale-head.dst-paid { border-left-color: #1e7a3c; }
.sale-head.dst-pending { border-left-color: var(--yellow); }
.sale-head.dst-unpaid { border-left-color: #c62828; }
.sale-head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sale-head .page-title a { color: inherit; text-decoration: none; }
.sale-amt { font-weight: 800; }
.sale-amt.big { font-size: 26px; }
.sale-facts { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.sale-facts .dlock { margin-top: 0; }
.share-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.share-row form { margin: 0; }
.share-row .btn { width: 100%; min-height: 44px; font-size: 14px; padding: 8px 6px; }
.btn-wa { background: #25D366; color: #fff; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; }
.status-row form { margin: 0; }
.status-row .dbtn { padding: 11px 14px; font-size: 14px; }
.paid-form { display: flex; gap: 8px; width: 100%; }
.paid-form select { flex: 1; font: inherit; padding: 10px; border-radius: 8px; border: 1px solid #c9ccd8; background: #fff; }
.doc-preview { max-width: 794px; margin: 0 auto; }
.doc-preview .bpdoc { border-radius: 6px; }
.sale-item { padding-right: 100px; }
.sale-item .sale-amt { font-size: 17px; margin-top: 2px; }
.sale-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: #fff; border-radius: 12px; padding: 12px 14px; margin: 0 auto 8px; max-width: 640px; text-decoration: none; color: var(--text); box-shadow: 0 1px 3px rgba(20,24,40,.08); border-left: 5px solid #8a8fa3; }
.sale-mini.dst-accepted, .sale-mini.dst-paid { border-left-color: #1e7a3c; background: #f6fcf7; }
.sale-mini.dst-pending { border-left-color: var(--yellow); }
.sale-mini.dst-unpaid { border-left-color: #c62828; }
.sm-ref { font-weight: 800; flex: 1 1 100%; }
.sm-amt { font-weight: 800; font-size: 18px; margin-right: auto; }
.sale-mini .doc-status { display: inline-flex; align-items: center; gap: 4px; }
.btn-create { margin-bottom: 6px; }
.or-attach { text-align: center; font-size: 12px; color: var(--muted); margin: 4px 0 6px; }
.two-btn { flex-direction: row !important; }
.two-btn .btn { flex: 1; }
.sale-head { background: #fff !important; color: var(--text) !important; }
.sale-mini { color: var(--text) !important; }
.sale-mini:not(.locked) { background: #fff !important; }
.setup-warn { max-width: 640px; margin: 0 auto 10px; background: #b3261e; color: #fff; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.setup-warn small { display: block; margin-top: 6px; opacity: .85; word-break: break-word; }

/* ===== v2.1: Google review requests ===== */
.review-box { max-width: 640px; margin: 14px auto 0; }
.rv-card { background: #fff; border-radius: 14px; padding: 12px 14px 14px; box-shadow: 0 1px 3px rgba(20,24,40,.08); border-left: 5px solid #FFC72C; }
.rv-card p { margin: 0 0 10px; font-size: 15px; }
.rv-ok strong { color: #1e6b34; }
.rv-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-btns form { flex: 1; margin: 0; min-width: 150px; }

/* v2.2 start window */
.btn-locked, .btn-locked:hover { background: #e4e6ee !important; color: #6b6f80 !important; cursor: not-allowed; box-shadow: none !important; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.btn-locked small { display: block; font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.override-note { font-size: 13.5px; color: #6b6f80; margin: 8px 2px 0; text-align: center; }

/* v2.3 show number */
.phone-reveal .pr-show:disabled { opacity: .7; }
.pr-timer { text-align: center; font-size: 13px; color: #6b6f80; margin-top: 6px; }
.pr-timer b { color: #2E334A; }
.phone-reveal [hidden] { display: none !important; }
.pr-call { gap: 6px; }

/* ===== v2.4 Profit & performance (boss only) ===== */
.office-bar.boss-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ob-money { background: #eef6f0; border-color: #cfe6d6; color: #1e6b34; }
.ob-money.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.fin-dash { max-width: 640px; margin: 0 auto 16px; background: var(--navy); color: #fff; border-radius: 16px; padding: 14px 14px 12px; }
.fin-dash-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.fin-dash h2 { margin: 0; font-size: 16px; }
.fin-seg { display: flex; background: rgba(255,255,255,.12); border-radius: 9px; padding: 3px; }
.fin-seg a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 7px; }
.fin-seg a.on { background: var(--yellow); color: var(--navy); }
.fin-big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 640px; margin: 0 auto 10px; }
.fin-tile { background: #fff; color: var(--navy); border-radius: 12px; padding: 10px 10px 9px; box-shadow: 0 1px 3px rgba(20,24,40,.08); min-width: 0; }
.fin-tl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #6b6f80; }
.fin-tv { font-size: 19px; font-weight: 800; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-ts { font-size: 12px; color: #6b6f80; margin-top: 2px; }
.fin-tile.pos .fin-tv, td.pos, b.pos, .fin-jc.pos { color: #1e6b34; }
.fin-tile.neg .fin-tv, td.neg, b.neg, .fin-jc.neg { color: #b3261e; }
.fin-tile.warn .fin-tv { color: #8a6100; }
.fin-dash .fin-tile { box-shadow: none; }
.fin-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; opacity: .95; }
.fin-row b { margin-left: 3px; }
.fin-row b.owes { color: var(--yellow); }
.fin-warn { background: #fff6dc; color: #6b4e00; border-radius: 10px; padding: 8px 11px; font-size: 13.5px; margin: 10px auto 0; max-width: 640px; }
.fin-dash .fin-warn { margin-top: 10px; }
.fin-more { display: block; text-align: right; color: var(--yellow); font-weight: 700; margin-top: 8px; text-decoration: none; font-size: 14px; }
.fin-tabs { display: flex; gap: 4px; overflow-x: auto; background: #e4e6ee; padding: 4px; border-radius: 12px; max-width: 640px; margin: 0 auto 12px; }
.fin-tabs a { flex: 1 0 auto; text-align: center; padding: 8px 10px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--navy); text-decoration: none; }
.fin-tabs a.on { background: #fff; box-shadow: 0 1px 3px rgba(20,24,40,.12); }
.fin-pills { max-width: 640px; margin: 0 auto; }
button.pill { font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.fin-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 640px; margin: 6px auto; }
.fin-custom[hidden] { display: none; }
.fin-custom input[type=date] { padding: 7px 8px; border: 1px solid #cfd3de; border-radius: 8px; font: inherit; }
.fin-period { max-width: 640px; margin: 8px auto 10px; font-weight: 700; }
.fin-card { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(20,24,40,.08); max-width: 640px; margin: 0 auto 12px; }
.fin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 640px; margin: 0 auto 12px; }
.fin-pl, .fin-break, .fin-list, .fin-trend { width: 100%; border-collapse: collapse; font-size: 15px; }
.fin-pl td, .fin-pl th, .fin-break td, .fin-list td, .fin-trend td, .fin-trend th { padding: 8px 2px; border-bottom: 1px solid #eef0f4; text-align: left; vertical-align: top; }
.fin-pl td:last-child, .fin-pl th:last-child, .fin-break td:last-child, .fin-list td.num, .fin-trend td, .fin-trend th { text-align: right; white-space: nowrap; }
.fin-trend td:first-child, .fin-trend th:first-child { text-align: left; }
.fin-pl small, .fin-break small, .fin-list small { display: block; font-size: 12.5px; color: #6b6f80; font-weight: 400; }
.fin-break .fb-rev td { font-weight: 800; }
.fb-total td, .fb-total th { font-weight: 800; font-size: 17px; border-bottom: 0; border-top: 2px solid var(--navy); }
.fb-none td { color: #9a9daa; }
.fin-tools { display: block; margin-top: 2px; }
.fin-tools a { font-weight: 600; }
.inline-del { display: inline; margin: 0; }
.inline-del .link-danger { background: none; border: 0; padding: 0; font: inherit; color: #b3261e; cursor: pointer; text-decoration: underline; }
.fin-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fin-btns .btn { flex: 1; min-width: 150px; margin: 0; }
.fin-form { margin-top: 12px; box-shadow: none; border: 1px solid #e4e6ee; }
.fin-form[hidden] { display: none; }
.fin-form .btn { width: 100%; }
.fin-form label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.card-form input[type=number], .card-form input[type=file] { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #cfd3de; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.fin-hrow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid #eef0f4; }
.fin-hrow .fin-hname { grid-column: 1 / -1; font-weight: 800; }
.fin-hrow label { margin: 0; font-size: 12.5px; }
.fin-job h2 small, .fin-pay h2 small { font-weight: 600; font-size: 12px; color: #6b6f80; }
.fin-job, .fin-pay { max-width: 640px; margin: 14px auto 0; }
.fin-paysum { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; margin-bottom: 6px; }
.fin-paysum b.owes { color: #b3261e; }
.fin-jrow, .fin-exp { display: flex; justify-content: space-between; gap: 10px; background: #fff; border-radius: 12px; padding: 11px 13px; margin: 0 auto 8px; max-width: 640px; box-shadow: 0 1px 3px rgba(20,24,40,.08); color: var(--navy); text-decoration: none; }
.fin-jl { min-width: 0; }
.fin-jl b { display: block; }
.fin-jl small { display: block; color: #6b6f80; font-size: 13px; margin-top: 2px; }
.fin-jr { text-align: right; flex: 0 0 auto; }
.fin-jr span { font-weight: 800; font-size: 16px; }
.fin-jr small { display: block; color: #6b6f80; font-size: 12.5px; }
.fin-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.fin-flags em { font-style: normal; font-size: 11.5px; font-weight: 700; background: #fff3cd; color: #8a6100; padding: 2px 7px; border-radius: 8px; }
.fin-svc-top { display: flex; justify-content: space-between; font-size: 16px; }
.fin-svc-top span { font-weight: 800; }
.fin-bar { height: 8px; background: #eef0f4; border-radius: 5px; margin: 8px 0 10px; overflow: hidden; }
.fin-bar i { display: block; height: 100%; background: var(--yellow); border-radius: 5px; }
.fin-bar.sm { height: 5px; margin: 4px 0 0; width: 80px; }
.fin-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; font-size: 12.5px; color: #6b6f80; }
.fin-svc-grid b { display: block; font-size: 15px; color: var(--navy); margin-top: 1px; }
.fin-staff .fin-svc-grid { margin-top: 10px; grid-template-columns: repeat(2, 1fr); }
.fin-month-nav { display: flex; justify-content: space-between; align-items: center; max-width: 640px; margin: 0 auto 10px; font-size: 17px; }
.fin-month-nav a { font-weight: 700; text-decoration: none; }
.fin-scroll { overflow-x: auto; }
.fin-trend tr.cur td { background: #fffbea; }
.fin-exports { max-width: 640px; margin: 4px auto 14px; font-size: 14px; }
.fin-exports a { font-weight: 700; }
@media (max-width: 380px) {
	.fin-tv { font-size: 16px; }
	.fin-svc-grid { grid-template-columns: repeat(2, 1fr); }
}
.fin-list td.nowrap { white-space: nowrap; }

/* v2.5 Staff Hours */
.ts-week th { text-align: left; font-size: 13px; color: #6b6f80; padding: 6px 2px; }
.ts-week th.num, .ts-week td.num { text-align: right; white-space: nowrap; }
.ts-day h2 em { font-style: normal; background: var(--yellow); color: var(--navy); font-size: 11px; padding: 2px 7px; border-radius: 8px; margin-left: 6px; vertical-align: middle; }
.ts-day.today .ts-form { border: 2px solid var(--yellow); }
.ts-row { padding: 10px 0; border-bottom: 1px solid #eef0f4; }
.ts-row[hidden] { display: none; }
.ts-row.saved .ts-calc { color: #1e6b34; }
.ts-who b { font-size: 15.5px; }
.ts-who small { display: block; color: #6b6f80; font-size: 12.5px; }
.ts-in { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 76px; gap: 8px; margin-top: 8px; }
.ts-in label { min-width: 0; }
.ts-in label { font-size: 12px; font-weight: 700; color: #6b6f80; }
.ts-in input { width: 100%; box-sizing: border-box; padding: 9px 8px; border: 1px solid #cfd3de; border-radius: 9px; font: inherit; font-size: 16px; margin-top: 3px; background: #fff; }
.ts-out { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 6px; font-size: 14px; }
.ts-calc { font-weight: 800; }
.ts-auto { color: #8a6100; font-size: 12.5px; flex-basis: 100%; }
.ts-fill, .ts-clear { font-size: 13px; font-weight: 700; }
.ts-clear { color: #b3261e; }
.ts-foot { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.ts-add { flex: 1; min-width: 160px; padding: 10px; border: 1px solid #cfd3de; border-radius: 10px; font: inherit; background: #fff; }
.ts-foot .btn { flex: 1; min-width: 120px; margin: 0; }
.ts-foot .btn[hidden] { display: none; }
.ts-none { margin: 4px 0; }

/* v2.6 Staff Hours per person */
.ts-person { margin-bottom: 14px; }
.ts-phead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.ts-phead b { font-size: 18px; }
.ts-phead .muted { font-size: 13px; }
.ts-grid-head, .ts-line { display: grid; grid-template-columns: 44px minmax(0,1fr) minmax(0,1fr) 52px 66px; gap: 6px; align-items: center; }
.ts-grid-head span { font-size: 11px; font-weight: 700; color: #6b6f80; text-transform: uppercase; line-height: 1.15; }
.ts-line { padding: 7px 0; border-top: 1px solid #eef0f4; }
.ts-line.today { background: #fffbea; margin: 0 -8px; padding: 7px 8px; border-radius: 8px; }
.ts-line input { width: 100%; min-width: 0; box-sizing: border-box; padding: 8px 4px; border: 1px solid #cfd3de; border-radius: 8px; font: inherit; font-size: 15px; background: #fff; text-align: center; }
.ts-line.saved input[type=time] { border-color: #9fd3ae; background: #f4fbf6; }
.ts-day-l b { display: block; font-size: 14px; }
.ts-day-l small { display: block; font-size: 11px; color: #6b6f80; }
.ts-info { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; }
.ts-info:empty { display: none; }
.ts-jobs { color: #6b6f80; }
.ts-info .ts-calc { font-weight: 800; color: #1e6b34; }
.ts-info .ts-calc:empty { display: none; }
.ts-info .ts-auto { color: #8a6100; flex-basis: auto; }
.ts-ptotal { display: flex; justify-content: space-between; padding: 10px 0 2px; border-top: 2px solid var(--navy); margin-top: 4px; font-size: 15px; }
.ts-person .btn { width: 100%; margin-top: 10px; }
.ts-week a { color: var(--navy); font-weight: 700; }
.fb-missing td { color: #8a6100; }
.fin-miss { font-style: normal; font-size: 11px; font-weight: 700; color: #8a6100; display: block; }

/* v2.8 My Hours (staff) */
.my-hours th { text-align: left; font-size: 12px; color: #6b6f80; padding: 6px 2px; font-weight: 700; }
.my-hours th.num, .my-hours td.num { text-align: right; }
.my-hours td { font-size: 15px; white-space: nowrap; }
.my-hours td small { color: #6b6f80; font-size: 12px; }
.my-hours tr.off td { color: #9a9daa; }
.my-hours tr.today td { background: #fffbea; }
.my-hours .fb-total th, .my-hours .fb-total td { font-size: 17px; }
.my-hours-card { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 18px auto 6px; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(20,24,40,.08); color: var(--navy); text-decoration: none; border-left: 5px solid var(--yellow); }
.mhc-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: flex; align-items: center; justify-content: center; }
.mhc-txt { flex: 1; }
.mhc-txt b { display: block; font-size: 16px; }
.mhc-txt small { color: #6b6f80; font-size: 13.5px; }
.mhc-go { font-size: 26px; font-weight: 700; color: #9a9daa; }
.who-links { display: block; white-space: nowrap; }
.who-links a { font-size: 13px; }
.who-hours { font-weight: 800; }
.my-hours .my-pay th, .my-hours .my-pay td { border-top: 0; padding-top: 2px; }
.my-hours .my-pay small { display: block; font-size: 11.5px; font-weight: 500; color: #6b6f80; }
.my-hours-wait { text-align: center; padding: 26px 18px; }
.my-hours-wait p { margin: 0 0 8px; font-size: 16px; }

.btn-send { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.btn-send small { font-size: 11.5px; font-weight: 600; opacity: .75; margin-top: 2px; }

/* v2.10.1 Copy for bOnline */
.call-row { display: flex; gap: 8px; align-items: stretch; }
.call-row .btn-call { flex: 1 1 auto; margin: 0; }
.btn-copynum { flex: 0 0 auto; width: 116px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; background: #fff; color: var(--navy); border: 2px solid var(--navy); border-radius: 12px; padding: 6px 8px; font: inherit; cursor: pointer; }
.btn-copynum span { font-size: 11.5px; font-weight: 600; }
.btn-copynum b { font-size: 14.5px; }
.btn-copynum.copied { background: #1e6b34; border-color: #1e6b34; color: #fff; }

/* ---------- v2.11 navigation: bottom bar, + and More menus ---------- */
a.brand { text-decoration: none; }
.home-link { display: inline-block; margin: 2px 0 10px; font-weight: 700; font-size: 14.5px; color: var(--navy); text-decoration: none; }
.jobs.has-bn { padding-bottom: 24px; }
.office ~ .foot, .foot.has-bn { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.sheet-open { overflow: hidden; }
.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 640px; display: flex; align-items: flex-end; background: #fff; border-top: 1px solid #dfe2ea; padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 40; box-sizing: border-box; box-shadow: 0 -2px 10px rgba(20,24,40,.06); }
.bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 700; padding: 4px 0; min-height: 44px; justify-content: center; }
.bn-item.on { color: var(--navy); }
.bn-item.on svg { stroke-width: 2.5; }
.bn-plus { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: flex; align-items: center; justify-content: center; margin: -24px 8px 2px; box-shadow: 0 2px 10px rgba(20,24,40,.22); }
.sheet-wrap[hidden] { display: none !important; }
.sheet-bg { position: fixed; inset: 0; background: rgba(20,24,40,.4); z-index: 45; }
.sheet { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 640px; background: #fff; border-radius: 18px 18px 0 0; padding: 8px 14px calc(14px + env(safe-area-inset-bottom)); z-index: 50; box-sizing: border-box; max-height: 85vh; overflow-y: auto; }
.sheet-h { text-align: center; font-weight: 800; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 0 10px; }
.sheet a, .menu-page a { display: flex; align-items: center; gap: 12px; padding: 14px 10px; border-top: 1px solid #eef0f4; color: var(--navy); font-weight: 700; font-size: 16px; text-decoration: none; }
.sheet-cancel { display: block; width: 100%; margin-top: 8px; padding: 13px; border: 0; border-radius: 12px; background: #eef0f4; color: var(--navy); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.menu-page { background: #fff; border-radius: 14px; padding: 0 6px; box-shadow: 0 1px 3px rgba(20,24,40,.08); }
.menu-page a:first-child { border-top: 0; }
.navseg { display: flex; background: #e6e8ef; border-radius: 12px; padding: 4px; gap: 4px; margin: 0 0 12px; max-width: 640px; }
.navseg a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 9px; font-weight: 700; font-size: 14.5px; color: var(--navy); text-decoration: none; }
.navseg a.on { background: #fff; box-shadow: 0 1px 3px rgba(20,24,40,.12); }
.office .home-link, .office .navseg, .office .doc-row, .office .doc-sub, .office .doc-file, .office .doc-file-row, .office .audit-row, .office .menu-page, .office .ren-alert, .office .ren-card { max-width: 640px; margin-left: auto; margin-right: auto; }
.office .home-link { display: block; }
.office .ren-card { margin-top: 18px; }

/* ---------- v2.11 Documents & Renewals ---------- */
.ren-alert { background: #fff3cd; color: #6b4e00; }
.doc-sub { margin: 10px 2px 6px; font-weight: 800; font-size: 13.5px; color: #555a6e; }
.doc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 11px 13px; margin: 0 0 8px; box-shadow: 0 1px 3px rgba(20,24,40,.08); color: var(--navy); text-decoration: none; }
.doc-row b { display: block; font-size: 15.5px; }
.doc-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.doc-row .fin-jr { flex: 0 0 auto; text-align: right; }
.due-chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.due-chip.ok { background: #e9f6ec; color: #1e6b34; }
.due-chip.soon { background: #fff3cd; color: #8a6100; }
.due-chip.over { background: #b3261e; color: #fff; }
.due-chip.none { background: #f1f2f6; color: #9a9daa; }
.ren-veh { margin-top: -6px; }
.doc-tbl { width: 100%; border-collapse: collapse; }
.doc-tbl td { padding: 7px 4px; border-top: 1px solid #eef0f4; vertical-align: top; font-size: 14.5px; }
.doc-tbl tr:first-child td { border-top: 0; }
.doc-tbl td:first-child { color: var(--muted); font-size: 13.5px; width: 38%; }
.doc-file { display: block; background: #fff; border: 1px solid #dfe2ea; border-radius: 10px; padding: 11px 13px; margin: 0 0 8px; color: var(--navy); font-weight: 700; text-decoration: none; word-break: break-word; }
.doc-file-row { display: flex; gap: 8px; align-items: center; }
.doc-file-row .doc-file { flex: 1; margin: 0; }
.doc-file-row form { margin: 0; }
.doc-file-row + .doc-file-row { margin-top: 8px; }
.btn-danger-ghost { color: #b3261e !important; }
.ren-del { margin-top: 18px; }
.ren-set summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 6px 0; }
.ren-set form { margin-top: 10px; }
.card-form label.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.card-form label.check input { width: 22px; height: 22px; }

/* ---------- v2.11 Audit Log ---------- */
.pill-label { align-self: center; margin-right: 2px; }
.audit-row { display: flex; gap: 12px; background: #fff; border-radius: 12px; padding: 10px 13px; margin: 0 0 8px; box-shadow: 0 1px 3px rgba(20,24,40,.08); }
.au-time { font-weight: 800; color: var(--muted); font-size: 13px; min-width: 40px; padding-top: 2px; }
.au-body { font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
.au-body small { display: block; color: #555a6e; font-size: 13px; margin-top: 2px; }
.au-body em { display: block; font-style: normal; font-size: 12.5px; color: #8a6100; font-weight: 700; margin-top: 3px; }
.ren-card { margin-top: 18px; }
.ren-h { font-size: 16px; margin: 2px 0 6px; color: var(--navy); }
.ren-card p { font-size: 13.5px; margin: 6px 0; }

/* ---------- v2.12 staff: bottom bar, My Details, Time Off, Password; boss Staff Requests ---------- */
.staff-nav { justify-content: space-around; }
.staff-nav .bn-item { flex: 0 0 96px; }
.bn-me { margin: -24px 18px 2px; }
.sh-badge { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; background: #fff3cd; color: #8a6100; border-radius: 9px; padding: 2px 8px; }
.card-form input.locked-in { background: #f1f2f6; color: #8a8d9a; }
.card-form .hint { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-col label { min-width: 0; }
.seg-r { display: flex; gap: 6px; }
.seg-r label { flex: 1; display: flex !important; align-items: center; justify-content: center; gap: 6px; margin: 0 !important; padding: 10px 4px; border: 1px solid #c9ccd8; border-radius: 10px; font-weight: 700; font-size: 13.5px; }
.seg-r label:has(input:checked) { border-color: var(--navy); background: #e8eaf2; }
.inline-form { display: inline; margin: 0; }
.rq-wait { background: #fff3cd; color: #5c4300; border-radius: 12px; padding: 11px 13px; margin: 0 0 12px; font-size: 14px; }
.rq-wait b:first-child { display: block; margin-bottom: 4px; }
.rq-dec { background: #fdecea; color: #8c1d18; border-radius: 12px; padding: 10px 13px; margin: 0 0 12px; font-size: 14px; }
.rq-cancel { display: inline-block; margin-top: 6px; color: #b3261e; font-weight: 700; font-size: 13.5px; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-family: inherit; }
.rq-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 11px 13px; margin: 0 0 8px; box-shadow: 0 1px 3px rgba(20,24,40,.08); }
.rq-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.rq-row .rq-reply { color: #555a6e; font-style: italic; }
.rq-r { text-align: right; flex: 0 0 auto; }
.rq-r .inline-form { display: block; }
.rq-chip { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 9px; white-space: nowrap; }
.rq-pending { background: #fff3cd; color: #8a6100; }
.rq-approved { background: #e9f6ec; color: #1e6b34; }
.rq-declined { background: #fdecea; color: #b3261e; }
.rq-cancelled { background: #eef0f4; color: var(--muted); }
.rq-card { background: #fff; border-radius: 14px; padding: 13px 14px; margin: 0 0 12px; box-shadow: 0 1px 3px rgba(20,24,40,.08); border-left: 5px solid var(--yellow); }
.rq-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-size: 16px; }
.rq-top .muted { font-size: 12.5px; }
.rq-what, .rq-ch { font-size: 14.5px; margin: 3px 0; }
.rq-clash { background: #fdecea; color: #8c1d18; border-radius: 9px; padding: 7px 10px; margin: 8px 0 0; font-size: 13.5px; font-weight: 600; }
.rq-reason { width: 100%; box-sizing: border-box; margin: 10px 0 8px; padding: 10px 12px; border: 1px solid #c9ccd8; border-radius: 10px; font: inherit; font-size: 15px; }
.rq-form .quick { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rq-form .quick .btn { margin: 0; }
.rq-boss { display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; }
.rq-home.ok { background: #e9f6ec; color: #1e6b34; }
.rq-home.no { background: #fdecea; color: #8c1d18; }
.off-strip { background: #eef0f6; border-radius: 10px; padding: 9px 12px; margin: 0 0 12px; font-size: 13.5px; color: var(--navy); }
.off-warn { color: #b3261e; font-weight: 700; font-size: 14px; margin: 6px 0 0; }
.off-warn:empty { display: none; }
.off-warn-box { background: #fdecea; border-radius: 10px; padding: 9px 12px; margin: 0 0 10px; }
.pw-rules { list-style: none; padding: 10px 12px; margin: 10px 0 4px; background: #f6f7fa; border-radius: 10px; }
.pw-rules li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 3px 0; }
.pw-rules li i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9ccd8; font-style: normal; font-size: 12px; color: transparent; flex: 0 0 auto; box-sizing: border-box; }
.pw-rules li.ok { color: #1e6b34; }
.pw-rules li.ok i { background: #1e8e3e; border-color: #1e8e3e; color: #fff; }
.pw-wrap { position: relative; display: block; }
.pw-show { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--navy); font-weight: 700; font-size: 13.5px; padding: 6px; cursor: pointer; font-family: inherit; }
.card-form .pw-wrap input { padding-right: 60px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.office .off-strip, .office .rq-card, .office .rq-row, .office .rq-wait, .office .rq-dec, .office .off-warn-box { max-width: 640px; margin-left: auto; margin-right: auto; }
.jobs:not(.office) .home-link { display: block; }

/* ---------- v2.13 boss: Staff ---------- */
.staff-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 11px 13px; margin: 0 0 8px; box-shadow: 0 1px 3px rgba(20,24,40,.08); color: var(--navy); text-decoration: none; }
.staff-row b { display: block; font-size: 15.5px; }
.staff-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.staff-row .fin-jr { text-align: right; flex: 0 0 auto; }
.staff-row .fin-jr small { margin-top: 4px; }
.staff-row.removed { opacity: .7; }
.sa-removed { margin-top: 14px; }
.sa-removed summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: 6px 0 10px; }
.mini-link { display: block; margin: 2px 0 10px; padding: 0; background: none; border: 0; font: inherit; font-weight: 700; font-size: 14px; color: var(--navy); text-decoration: underline; cursor: pointer; }
.sa-p { margin-top: 0; }
.sa-pw-btn { display: block; width: 100%; }
.office .staff-row, .office .sa-removed { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- v2.14 type-to-find customers ---------- */
.cpick { margin: 0 0 6px; }
.cp-q, .cust-q { display: block; width: 100%; box-sizing: border-box; padding: 13px 14px 13px 40px; border: 1.5px solid #c9ccd8; border-radius: 12px; font: inherit; font-size: 16px; color: var(--navy); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b6f80' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M21 21l-6-6'/%3E%3C/svg%3E") no-repeat 13px center; -webkit-appearance: none; appearance: none; }
.cp-q:focus, .cust-q:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255,199,44,.45); }
.cust-search { margin: 10px 0 4px; }
.cp-list { margin-top: 6px; border-radius: 12px; overflow: hidden; border: 1px solid #e3e5ec; background: #fff; }
.cp-list:empty { display: none; }
.cp-item { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-top: 1px solid #eef0f4; padding: 11px 13px; font: inherit; color: var(--navy); cursor: pointer; -webkit-appearance: none; appearance: none; }
.cp-item:first-child { border-top: 0; }
.cp-item:hover, .cp-item:active { background: #f6f7fa; }
.cp-item b { display: block; font-size: 15.5px; }
.cp-item small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.cp-item mark { background: #FFE58A; color: inherit; border-radius: 3px; padding: 0 1px; }
.cp-newbtn, .cp-newbtn:hover { background: #FFF8DC; }
.cp-h { padding: 8px 13px 4px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-top: 1px solid #eef0f4; background: #fafbfc; }
.cp-none { padding: 12px 13px; color: var(--muted); font-size: 14.5px; }
.cp-chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px solid var(--navy); border-radius: 12px; padding: 10px 12px; background: #f6f7fa; }
.cp-chosen b { display: block; font-size: 15.5px; }
.cp-chosen small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.cp-chosen.cp-new { border-color: var(--yellow); background: #FFF8DC; }
.cp-change { flex: 0 0 auto; background: #fff; border: 1px solid #c9ccd8; border-radius: 9px; padding: 7px 12px; font: inherit; font-weight: 700; font-size: 14px; color: var(--navy); cursor: pointer; }
.cp-find[hidden], #bpj-cust-all .list-item[hidden], .bpj-cust-recent[hidden], #bpj-cust-none[hidden], #bpj-cust-all-h[hidden] { display: none !important; }
.office .cust-search, .office #bpj-cust-none { max-width: 640px; margin-left: auto; margin-right: auto; }

/* v2.18: Download CSV beside + Add Customer */
.row-btns { display: inline-flex; gap: 8px; align-items: center; flex: none; }
.btn-csv { background: #fff; color: var(--navy); border: 1.5px solid #D6DAE6; }
.btn-csv:hover { border-color: var(--navy); }
