/* Santa For Hire Portal – staff Admin Portal. */

body.sfhp-app-layout {
	background: #f3f4f8;
	margin: 0;
	padding: 0;
}

.sfhp-app {
	font-size: 14.5px;
	margin: 0 auto;
	max-width: 1560px;
	min-height: 60vh;
	padding: 0 22px 60px;
	width: 100%;
}

body:not(.sfhp-app-layout) .sfhp-app { padding: 0 0 40px; }

.sfhp-app-loading { color: var(--sfhp-muted, #5b6475); font-size: 1.1em; padding: 60px 0; text-align: center; }

/* Header */
.sfhp-top {
	background: #fff;
	border-bottom: 1px solid var(--sfhp-line);
	border-top: 4px solid var(--sfhp-primary);
	box-shadow: 0 1px 3px rgba(20, 30, 60, .06);
	margin: 0 -22px 22px;
	padding: 0 22px;
}

body:not(.sfhp-app-layout) .sfhp-top { border: 1px solid var(--sfhp-line); border-top: 4px solid var(--sfhp-primary); border-radius: var(--sfhp-radius); margin: 0 0 22px; }

.sfhp-top-main { align-items: center; display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 12px 0 10px; }
.sfhp-brand { align-items: center; display: flex; gap: 14px; margin-right: auto; }
.sfhp-brand-logo img { display: block; height: 46px; max-width: 240px; object-fit: contain; width: auto; }
.sfhp .sfhp-brand-logo a { display: block; }
.sfhp-brand-title { border-left: 1px solid var(--sfhp-line); color: var(--sfhp-secondary); font-size: 1.25em; font-weight: 700; padding-left: 14px; }
.sfhp-top-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.sfhp .sfhp-top-controls select { font-weight: 600; min-height: 38px; padding: 6px 30px 6px 10px; width: auto; }
.sfhp-top-user { align-items: center; display: flex; flex-wrap: wrap; font-size: .95em; gap: 6px 16px; }
.sfhp-user-name { color: var(--sfhp-muted); }

.sfhp-nav-tabs { display: flex; gap: 2px; overflow-x: auto; }
.sfhp .sfhp-nav-tab { align-items: center; border-bottom: 3px solid transparent; color: #47506a; display: inline-flex; font-weight: 600; gap: 8px; padding: 11px 15px 10px; white-space: nowrap; }
.sfhp .sfhp-nav-tab:hover { background: #f4f5fa; color: var(--sfhp-secondary); }
.sfhp .sfhp-nav-tab.is-active { border-bottom-color: var(--sfhp-primary); color: var(--sfhp-secondary); }
.sfhp-badge { background: var(--sfhp-primary); border-radius: 999px; color: #fff; font-size: .78em; font-weight: 700; line-height: 1; min-width: 20px; padding: 4px 6px; text-align: center; }
.sfhp-badge--warn { background: #ffe2a0; color: #5f3c00; }

/* Panels and tiles */
.sfhp-panel-card { background: #fff; border: 1px solid var(--sfhp-line); border-radius: var(--sfhp-radius); box-shadow: 0 1px 2px rgba(20, 30, 60, .04); margin: 0 0 20px; overflow: hidden; }
.sfhp-panel-card--warn { border-top: 3px solid #d79a10; }
.sfhp-panel-card--bad { border-top: 3px solid var(--sfhp-bad); }
.sfhp-panel-head { align-items: center; border-bottom: 1px solid var(--sfhp-line); display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; padding: 12px 18px; }
.sfhp .sfhp-panel-head h3 { font-size: 1.08em; margin: 0; }
.sfhp-panel-tools { align-items: center; display: flex; gap: 10px; }
.sfhp-pad { padding: 16px 18px; }
.sfhp .sfhp-pad { margin: 0; }
.sfhp-cols { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sfhp-cols > .sfhp-panel-card { margin-bottom: 0; }
.sfhp-cols { margin-bottom: 20px; }
.sfhp .sfhp-lede { color: #3a4254; margin: 0; max-width: 900px; }
.sfhp-view > .sfhp-lede { margin-bottom: 16px; }

.sfhp-tiles { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 20px; }
.sfhp-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sfhp .sfhp-tile { background: #fff; border: 1px solid var(--sfhp-line); border-radius: var(--sfhp-radius); border-top: 3px solid #c9cfde; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-align: left; width: 100%; }
.sfhp button.sfhp-tile:hover, .sfhp button.sfhp-tile:focus { background: #fafbfe; border-color: #b9c0d0; border-top-color: var(--sfhp-secondary); color: inherit; }
.sfhp-tile-label { color: var(--sfhp-muted); font-size: .9em; font-weight: 600; }
.sfhp-tile-value { color: var(--sfhp-ink); font-size: 2em; font-weight: 700; line-height: 1.15; }
.sfhp-tile-note { color: var(--sfhp-muted); font-size: .86em; }
.sfhp .sfhp-tile--warn { border-top-color: #d79a10; }
.sfhp .sfhp-tile--bad { border-top-color: var(--sfhp-bad); }
.sfhp .sfhp-tile--good { border-top-color: var(--sfhp-good); }
.sfhp-tile--warn .sfhp-tile-note { color: var(--sfhp-warn); font-weight: 600; }
.sfhp-tile--bad .sfhp-tile-note { color: var(--sfhp-bad); font-weight: 600; }

.sfhp-welcome { background: var(--sfhp-secondary); border-radius: var(--sfhp-radius); color: #fff; margin: 0 0 20px; padding: 26px 28px; }
.sfhp .sfhp-welcome h2 { color: #fff; }

/* Mini lists */
.sfhp .sfhp-mini { list-style: none; margin: 0; padding: 0; }
.sfhp .sfhp-mini li { align-items: center; border-bottom: 1px solid #eef0f5; display: flex; gap: 12px; justify-content: space-between; margin: 0; padding: 0 18px; }
.sfhp .sfhp-mini li:last-child { border-bottom: 0; }
.sfhp .sfhp-mini-main { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding: 10px 0; text-align: left; }
.sfhp .sfhp-mini-main strong { color: var(--sfhp-ink); }
.sfhp .sfhp-mini-main span { color: var(--sfhp-muted); font-size: .92em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfhp button.sfhp-mini-main:hover strong { color: var(--sfhp-primary); text-decoration: underline; }
.sfhp-mini-side { flex: 0 0 auto; }

/* Toolbars */
.sfhp-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: space-between; margin: 0 0 14px; }
.sfhp-toolbar-right { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.sfhp .sfhp-toolbar input[type="search"] { min-height: 36px; padding: 6px 10px; width: 260px; }
.sfhp .sfhp-toolbar select { min-height: 36px; padding: 6px 28px 6px 10px; width: auto; }
.sfhp-seg { background: #e6e9f1; border-radius: 9px; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; }
.sfhp .sfhp-seg button { align-items: center; border-radius: 7px; color: #47506a; display: inline-flex; font-weight: 600; gap: 6px; padding: 6px 12px; }
.sfhp .sfhp-seg button:hover { color: var(--sfhp-secondary); }
.sfhp .sfhp-seg button.is-active { background: #fff; box-shadow: 0 1px 2px rgba(20, 30, 60, .15); color: var(--sfhp-secondary); }
.sfhp-count { background: rgba(32, 48, 104, .1); border-radius: 999px; color: inherit; font-size: .82em; font-weight: 700; padding: 1px 7px; }
.sfhp-quick { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.sfhp .sfhp-filter-chip { align-items: center; background: #fff; border: 1px solid #c5cbd9; border-radius: 999px; color: #3a4254; display: inline-flex; font-size: .92em; font-weight: 600; gap: 6px; padding: 5px 12px; }
.sfhp .sfhp-filter-chip:hover { border-color: var(--sfhp-secondary); color: var(--sfhp-secondary); }
.sfhp .sfhp-filter-chip.is-active { background: var(--sfhp-secondary); border-color: var(--sfhp-secondary); color: #fff; }
.sfhp .sfhp-filter-chip.is-active .sfhp-count { background: rgba(255, 255, 255, .25); }

.sfhp-near { align-items: center; background: #fff; border: 1px solid var(--sfhp-line); border-radius: var(--sfhp-radius); display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 10px 14px; }
.sfhp .sfhp-near input[type="text"] { min-height: 36px; padding: 6px 10px; width: 220px; }
.sfhp-near-result { color: var(--sfhp-good); font-weight: 600; }
.sfhp-near-result.sfhp-flag-text { color: var(--sfhp-bad); }

/* Chips */
.sfhp-chip { border-radius: 999px; display: inline-block; font-size: .84em; font-weight: 700; line-height: 1.3; margin: 0 4px 2px 0; padding: 2px 9px; white-space: nowrap; }
.sfhp-chip--good { background: var(--sfhp-good-bg); color: var(--sfhp-good); }
.sfhp-chip--warn { background: var(--sfhp-warn-bg); color: var(--sfhp-warn); }
.sfhp-chip--bad { background: var(--sfhp-bad-bg); color: var(--sfhp-bad); }
.sfhp-chip--info { background: var(--sfhp-info-bg); color: var(--sfhp-secondary); }
.sfhp-chip--neutral { background: #eceef3; color: #47506a; }
.sfhp-chiplist { display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 18px; }

/* Tables */
.sfhp-table-wrap { background: #fff; border: 1px solid var(--sfhp-line); border-radius: var(--sfhp-radius); overflow-x: auto; }
.sfhp-panel-card .sfhp-table-wrap { border: 0; border-radius: 0; }
.sfhp-table-wrap--scroll { max-height: 520px; overflow-y: auto; }
.sfhp .sfhp-table { background: #fff; border: 0; border-collapse: collapse; font-size: 1em; margin: 0; width: 100%; }
.sfhp .sfhp-table th,
.sfhp .sfhp-table td { border: 0; border-bottom: 1px solid #eceff5; padding: 10px 12px; text-align: left; vertical-align: top; }
.sfhp .sfhp-table thead th { background: #f6f7fb; border-bottom: 1px solid var(--sfhp-line); color: #47506a; font-size: .86em; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.sfhp .sfhp-table tbody tr td { background: #fff; }
.sfhp .sfhp-table tbody tr:hover td { background: #fafbfe; }
.sfhp .sfhp-table tbody tr:last-child td { border-bottom: 0; }
.sfhp .sfhp-table--compact th, .sfhp .sfhp-table--compact td { padding: 7px 10px; }
.sfhp .sfhp-table .sfhp-num { font-variant-numeric: tabular-nums; text-align: right; }
.sfhp .sfhp-table .sfhp-center { text-align: center; }
.sfhp .sfhp-table .sfhp-nowrap { white-space: nowrap; }
.sfhp .sfhp-table .sfhp-phone { min-width: 118px; white-space: pre-line; }
.sfhp-table-wrap--scroll thead th { position: sticky; top: 0; z-index: 1; }
.sfhp .sfhp-table .sfhp-wrap { min-width: 160px; overflow-wrap: anywhere; }
.sfhp .sfhp-table .sfhp-note-cell { color: #3a4254; font-size: .93em; max-width: 320px; }
.sfhp .sfhp-table tr.sfhp-row--warn td { background: #fffaea; }
.sfhp .sfhp-table tr.sfhp-row--warn td:first-child { box-shadow: inset 4px 0 0 #d79a10; }
.sfhp .sfhp-table tr.sfhp-row--bad td { background: #fff6f5; }
.sfhp .sfhp-table tr.is-open td { background: #f4f6fc; border-bottom-color: transparent; }
.sfhp .sfhp-table tr.sfhp-detail-row td { background: #f4f6fc; padding: 0 12px 16px; }
.sfhp .sfhp-table tr.sfhp-detail-row:hover td { background: #f4f6fc; }
.sfhp .sfhp-table tr.sfhp-empty-row td { color: var(--sfhp-muted); padding: 28px 16px; text-align: center; }
.sfhp .sfhp-table tr.sfhp-group-row th { background: #e9edf8; border-bottom: 1px solid #d5dbee; color: var(--sfhp-secondary); font-size: .95em; padding: 7px 12px; }
.sfhp .sfhp-table--opps td:first-child { white-space: nowrap; }
.sfhp .sfhp-sort { color: inherit; font-size: inherit; font-weight: 700; letter-spacing: inherit; }
.sfhp .sfhp-sort:hover, .sfhp .sfhp-sort.is-active { color: var(--sfhp-secondary); }
.sfhp .sfhp-expand { border-radius: 6px; color: #47506a; font-size: 1.05em; margin-right: 6px; padding: 0 6px; }
.sfhp .sfhp-expand:hover { background: #e6e9f1; color: var(--sfhp-secondary); }
.sfhp .sfhp-table .sfhp-linkish { text-decoration: none; }
.sfhp .sfhp-table-foot { margin: 0; padding: 10px 14px; border-top: 1px solid #eceff5; }
.sfhp-flag-text { color: var(--sfhp-warn); font-weight: 700; }
.sfhp p.sfhp-flag-text { color: var(--sfhp-bad); font-weight: 600; }

.sfhp-detail { background: #fff; border: 1px solid var(--sfhp-line); border-radius: 8px; display: grid; gap: 22px; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr); padding: 16px 18px; white-space: normal; }
.sfhp .sfhp-detail h4 { font-size: .95em; margin-bottom: 8px; }
.sfhp-detail-col { min-width: 0; }
.sfhp-detail .sfhp-dl { grid-template-columns: 150px minmax(0, 1fr); }
.sfhp-detail--summary { grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
.sfhp-detail .sfhp-dl .sfhp-note { margin: 0; white-space: pre-wrap; }
.sfhp-table--roster .sfhp-call-last { max-width: 520px; }
.sfhp .sfhp-note { white-space: pre-wrap; }
.sfhp .sfhp-followups { list-style: none; margin: 0 0 12px; padding: 0; }
.sfhp .sfhp-followups li { border-left: 3px solid #d5dbee; margin: 0 0 8px; padding: 2px 0 2px 10px; white-space: pre-wrap; }
.sfhp-inline-form { display: flex; gap: 8px; margin: 10px 0; }
.sfhp .sfhp-inline-form input[type="text"] { min-height: 36px; padding: 6px 10px; }
.sfhp-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sfhp-nearby { overflow-x: auto; }
.sfhp-nearby .sfhp-table { border: 1px solid #eceff5; }
.sfhp-nearby .sfhp-table td:nth-child(5) { min-width: 150px; }
.sfhp-nearby p { margin-bottom: 8px; }
.sfhp-nearby-sub { margin: 14px 0 6px; font-size: 14px; }
.sfhp-flag-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #b42318; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.sfhp-flag-badge--soft { background: #b54708; }
.sfhp-chip--multi { background: #ede9fe; color: #5b21b6; }

/* Charts */
.sfhp-bars { display: grid; gap: 9px; padding: 16px 18px; }
.sfhp-bar-row { align-items: center; display: grid; gap: 10px; grid-template-columns: minmax(110px, 30%) minmax(60px, 1fr) auto; }
.sfhp-bar-row:has(.sfhp-bar-note) { grid-template-columns: minmax(110px, 26%) minmax(60px, 1fr) auto minmax(90px, 26%); }
.sfhp-bar-label { color: var(--sfhp-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfhp-bar-track { background: #eef0f6; border-radius: 0 4px 4px 0; display: block; height: 14px; }
.sfhp-bar-fill { background: var(--sfhp-secondary); border-radius: 0 4px 4px 0; display: block; height: 14px; min-width: 3px; }
.sfhp-bar-fill--bad { background: var(--sfhp-primary); }
.sfhp-bar-value { color: var(--sfhp-ink); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.sfhp-bar-note { color: var(--sfhp-muted); font-size: .88em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sfhp-colchart { align-items: stretch; display: flex; gap: 6px; height: 210px; padding: 18px 18px 14px; }
.sfhp-colchart-col { display: flex; flex: 1 1 0; flex-direction: column; min-width: 0; text-align: center; }
.sfhp-colchart-value { color: var(--sfhp-ink); font-size: .86em; font-variant-numeric: tabular-nums; font-weight: 700; height: 18px; line-height: 18px; }
.sfhp-colchart-plot { align-items: flex-end; border-bottom: 1px solid #c9cfde; display: flex; flex: 1 1 auto; justify-content: center; }
.sfhp-colchart-bar { background: var(--sfhp-secondary); border-radius: 4px 4px 0 0; display: block; max-width: 24px; width: 70%; }
.sfhp-colchart-label { color: var(--sfhp-muted); font-size: .84em; padding-top: 6px; }

.sfhp-legend { align-items: center; color: var(--sfhp-muted); display: flex; flex-wrap: wrap; font-size: .9em; gap: 6px 18px; padding: 12px 18px 0; }
.sfhp-legend span { align-items: center; display: inline-flex; gap: 6px; }
.sfhp-legend i { border-radius: 3px; display: inline-block; height: 10px; width: 18px; }
.sfhp-legend .is-bad { background: var(--sfhp-primary); }
.sfhp-legend .is-base { background: var(--sfhp-secondary); }

/* Applications */
.sfhp-app-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); margin: 0 0 22px; }
.sfhp-app-card { background: #fff; border: 1px solid var(--sfhp-line); border-radius: var(--sfhp-radius); border-top: 3px solid #d79a10; padding: 18px 20px; }
.sfhp-app-card-head { align-items: flex-start; display: flex; gap: 10px; justify-content: space-between; margin-bottom: 10px; }
.sfhp .sfhp-app-card-head h3 { margin: 0; }
.sfhp .sfhp-app-card-head p { margin: 2px 0 0; }
.sfhp .sfhp-dl { display: grid; gap: 6px 14px; grid-template-columns: 90px 1fr; margin: 0 0 14px; }
.sfhp .sfhp-dl dt { color: var(--sfhp-muted); font-weight: 400; margin: 0; }
.sfhp .sfhp-dl dd { margin: 0; overflow-wrap: anywhere; }
.sfhp-app-card-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.sfhp-app-card .sfhp-notice { font-size: .95em; }

/* Contacts */
.sfhp .sfhp-bigcheck { align-items: center; cursor: pointer; display: inline-flex; flex-direction: column; gap: 2px; margin: 0; }
.sfhp .sfhp-bigcheck input { accent-color: var(--sfhp-good); height: 22px; margin: 0; width: 22px; }
.sfhp-stack { display: grid; gap: 10px; margin-bottom: 16px; }
.sfhp-log-item { border-left: 3px solid #d5dbee; margin: 0 0 10px; padding: 2px 0 2px 10px; white-space: pre-wrap; }
.sfhp-log-meta { color: var(--sfhp-muted); font-size: .88em; }

/* Upload & download */
.sfhp-upload-card { padding: 16px 18px; }
.sfhp .sfhp-modes { border: 1px solid var(--sfhp-line); border-radius: 8px; display: grid; gap: 10px; margin: 0; padding: 12px 14px; }
.sfhp .sfhp-modes legend { color: var(--sfhp-ink); font-size: .95em; font-weight: 600; padding: 0 6px; width: auto; }
.sfhp .sfhp-check.is-disabled { color: var(--sfhp-muted); cursor: not-allowed; }
.sfhp .sfhp-inline { align-items: center; display: flex; font-weight: 600; gap: 10px; margin: 0; }
.sfhp .sfhp-inline .sfhp-year { min-height: 36px; padding: 6px 10px; width: 110px; }
.sfhp-import-result { margin-top: 14px; }
.sfhp-import-result .sfhp-notice { margin-bottom: 0; }
.sfhp-downloads { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px 18px; }
.sfhp a.sfhp-download { border: 1px solid var(--sfhp-line); border-radius: 8px; color: var(--sfhp-ink); display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-decoration: none; }
.sfhp a.sfhp-download:hover { border-color: var(--sfhp-secondary); box-shadow: 0 2px 6px rgba(20, 30, 60, .08); color: var(--sfhp-ink); }
.sfhp-download strong { color: var(--sfhp-secondary); }
.sfhp-download span { color: var(--sfhp-muted); font-size: .92em; }
.sfhp-download .sfhp-download-cta { color: var(--sfhp-primary); font-weight: 700; margin-top: 4px; }
.sfhp .sfhp-activity { list-style: none; margin: 0; padding: 6px 18px 10px; }
.sfhp .sfhp-activity li { border-bottom: 1px solid #eef0f5; display: grid; gap: 12px; grid-template-columns: 220px 1fr; margin: 0; padding: 8px 0; }
.sfhp .sfhp-activity li:last-child { border-bottom: 0; }

/* Modal */
html.sfhp-modal-open { overflow: hidden; }
.sfhp-backdrop { align-items: flex-start; background: rgba(15, 22, 48, .55); bottom: 0; display: flex; justify-content: center; left: 0; overflow-y: auto; padding: 5vh 16px; position: fixed; right: 0; top: 0; z-index: 100000; }
.sfhp-modal { background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(10, 15, 40, .35); max-width: 560px; width: 100%; }
.sfhp-modal--wide { max-width: 860px; }
.sfhp-modal-head { align-items: center; border-bottom: 1px solid var(--sfhp-line); display: flex; gap: 12px; justify-content: space-between; padding: 14px 20px; }
.sfhp .sfhp-modal-head h3 { margin: 0; }
.sfhp-modal-body { padding: 18px 20px; }
.sfhp-modal-foot { align-items: center; background: #f7f8fc; border-radius: 0 0 12px 12px; border-top: 1px solid var(--sfhp-line); display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px; }
.sfhp-spacer { flex: 1; }
.sfhp .sfhp-x { border-radius: 6px; color: #47506a; font-size: 1.6em; line-height: 1; padding: 0 8px 3px; }
.sfhp .sfhp-x:hover { background: #eceef3; color: var(--sfhp-bad); }
.sfhp-fu-edit { display: grid; gap: 8px; margin-bottom: 8px; }
.sfhp-fu-row { align-items: flex-start; display: flex; gap: 6px; }
.sfhp .sfhp-fu-row textarea { min-height: 54px; }
.sfhp-modal .sfhp-check { margin-top: 12px; }
.sfhp-modal .sfhp-notice { margin-bottom: 4px; }

/* Toasts */
.sfhp-toasts { bottom: 20px; display: grid; gap: 8px; position: fixed; right: 20px; z-index: 100001; }
.sfhp-toast { background: #17233f; border-radius: 8px; box-shadow: 0 6px 20px rgba(10, 15, 40, .3); color: #fff; font-weight: 600; max-width: 420px; padding: 12px 16px; transition: opacity .3s; }
.sfhp-toast--error { background: var(--sfhp-bad); }
.sfhp-toast.is-leaving { opacity: 0; }

@media (max-width: 1200px) {
	.sfhp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sfhp-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sfhp-downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.sfhp-cols, .sfhp-detail { grid-template-columns: 1fr; }
	.sfhp-app-cards { grid-template-columns: 1fr; }
	.sfhp .sfhp-toolbar input[type="search"] { width: 100%; }
	.sfhp .sfhp-activity li { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 600px) {
	.sfhp-app { padding: 0 12px 40px; }
	.sfhp-top { margin: 0 -12px 16px; padding: 0 12px; }
	.sfhp-tiles, .sfhp-tiles--4, .sfhp-downloads { grid-template-columns: 1fr 1fr; }
	.sfhp-brand-title { display: none; }
	.sfhp-bar-row, .sfhp-bar-row:has(.sfhp-bar-note) { grid-template-columns: minmax(90px, 40%) 1fr auto; }
	.sfhp-bar-note { display: none; }
}

@media print {
	.sfhp-top-controls, .sfhp-top-user, .sfhp-nav-tabs, .sfhp-toolbar-right, .sfhp-toasts { display: none !important; }
}

/* v1.2: sign-ups and admins */
.sfhp-tiles--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sfhp .sfhp-actions-cell { text-align: right; white-space: nowrap; }
.sfhp .sfhp-actions-cell .sfhp-btn { margin: 2px 0 2px 6px; }
.sfhp-table .sfhp-notice { font-size: .92em; margin: 8px 0 0; padding: 8px 10px; }
@media (max-width: 720px) {
	.sfhp-tiles--three { grid-template-columns: 1fr; }
	.sfhp .sfhp-actions-cell { text-align: left; white-space: normal; }
	.sfhp .sfhp-actions-cell .sfhp-btn { margin: 2px 6px 2px 0; }
}
.sfhp-app-msg { margin: 0 auto; max-width: 1500px; padding: 14px 20px 0; }
.sfhp-app-msg .sfhp-notice { margin: 0; }

/* v1.3.4: live updates */
.sfhp-live { align-items: center; color: var(--sfhp-good); display: inline-flex; font-size: .85em; font-weight: 700; gap: 6px; }
.sfhp-live-dot { animation: sfhp-live 2s ease-in-out infinite; background: var(--sfhp-good); border-radius: 50%; display: inline-block; height: 8px; width: 8px; }
@keyframes sfhp-live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .sfhp-live-dot { animation: none; } }
.sfhp-live-bar { background: var(--sfhp-secondary); border: 0; border-radius: 999px; bottom: 22px; box-shadow: 0 6px 20px rgba(16, 24, 64, .28); color: #fff; cursor: pointer; font: inherit; font-weight: 700; left: 50%; padding: 12px 22px; position: fixed; transform: translateX(-50%); z-index: 100000; }
.sfhp-live-bar:hover, .sfhp-live-bar:focus { background: var(--sfhp-primary); }

/* v1.3.5: workbook row colors */
.sfhp .sfhp-table tr.sfhp-row--working td { background: #dcfbfb; }
.sfhp .sfhp-table tr.sfhp-row--working td:first-child { box-shadow: inset 5px 0 0 #00bcbc; }
.sfhp .sfhp-table tr.sfhp-row--quoted td { background: #fde3fd; }
.sfhp .sfhp-table tr.sfhp-row--quoted td:first-child { box-shadow: inset 5px 0 0 #e000e0; }
.sfhp .sfhp-table tr.sfhp-row--followup td { background: #fff7b8; }
.sfhp .sfhp-table tr.sfhp-row--followup td:first-child { box-shadow: inset 5px 0 0 #e6c800; }
.sfhp .sfhp-table--opps td:first-child { min-width: 205px; white-space: nowrap; }
.sfhp .sfhp-table--opps td:first-child .sfhp-chip { margin-top: 4px; }
.sfhp .sfhp-color-pick { border-radius: 999px; display: inline-block; font-size: .82em; font-weight: 700; height: auto; line-height: 1.3; margin: 0 0 0 4px; min-height: 0; padding: 4px 26px 4px 10px; vertical-align: middle; width: 168px; }
.sfhp .sfhp-color-pick--new { background-color: var(--sfhp-warn-bg); border-color: #e7c97a; color: var(--sfhp-warn); }
.sfhp .sfhp-color-pick--working { background-color: #00e0e0; border-color: #00b0b0; color: #053b3b; }
.sfhp .sfhp-color-pick--standard { background-color: #fff; border-color: #c9cfdc; color: #2d3550; }
.sfhp .sfhp-color-pick--quoted { background-color: #ff4dff; border-color: #c400c4; color: #3d003d; }
.sfhp .sfhp-color-pick--followup { background-color: #ffef3a; border-color: #d6bd00; color: #463c00; }
.sfhp-legend { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 12px; }
.sfhp .sfhp-legend-item { align-items: center; background: #fff; border: 1px solid var(--sfhp-line); border-radius: 999px; color: var(--sfhp-ink); cursor: pointer; display: inline-flex; font: inherit; font-size: .85em; gap: 7px; padding: 4px 10px; }
.sfhp .sfhp-legend-item.is-active { border-color: var(--sfhp-secondary); box-shadow: 0 0 0 2px rgba(32, 48, 104, .18); }
.sfhp-swatch { border: 1px solid rgba(0, 0, 0, .2); border-radius: 3px; display: inline-block; height: 12px; width: 18px; }
.sfhp-legend-item--working .sfhp-swatch { background: #00ffff; }
.sfhp-legend-item--standard .sfhp-swatch { background: #fff; }
.sfhp-legend-item--quoted .sfhp-swatch { background: #ff00ff; }
.sfhp-legend-item--followup .sfhp-swatch { background: #ffff00; }

/* Travel (data sheet answers) */
.sfhp-travel { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; vertical-align: middle; }
.sfhp-chip--intl { background: #cffafe; color: #0e7490; font-weight: 700; }
.sfhp-chip--travel { background: #eef2ff; color: #3730a3; }
.sfhp-seg--travel { margin-bottom: 12px; }
.sfhp-travel-boxes { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sfhp-travel-boxes legend { font-weight: 600; padding: 0 4px; }
.sfhp-chat-paste { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.sfhp-chat-preview { margin-top: 12px; }
.sfhp-chat-preview .sfhp-dl dd { white-space: pre-wrap; }

/* New Santas (90 days) and Brian's call list */
.sfhp-badge--good { background: #1a7f37; color: #fff; }
.sfhp-new-badge { display: inline-block; background: #1a7f37; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; line-height: 1; padding: 4px 9px; margin-right: 6px; vertical-align: middle; text-transform: uppercase; }
.sfhp .sfhp-table--calls td { vertical-align: middle; }
.sfhp .sfhp-table--calls .sfhp-chip { margin-left: 6px; vertical-align: middle; }
.sfhp .sfhp-table--calls .sfhp-call-last { margin-top: 3px; max-width: 520px; }
.sfhp .sfhp-called { align-items: center; cursor: pointer; display: inline-flex; gap: 6px; margin: 0; font-weight: 400; }
.sfhp .sfhp-table--calls .sfhp-phone a { color: inherit; text-decoration: none; }
.sfhp .sfhp-called input { accent-color: var(--sfhp-good); height: 18px; margin: 0; width: 18px; }
.sfhp .sfhp-table--calls tr.sfhp-row--done td { background: #f6f8fa; }
.sfhp .sfhp-remove-link { display: block; font-size: 12px; margin-top: 4px; color: var(--sfhp-bad); }
