/* Holiday Planner — shared by the staff portal and the administrator panel. */
.hpl { --hpl-go: #1f7a45; --hpl-stop: #b3261e; --hpl-line: #d6d9de; --hpl-soft: #f5f6f8; --hpl-ink: #1d2327; --hpl-pending: #f5a623; font-size: 15px; line-height: 1.45; color: var(--hpl-ink); }
.hpl *, .hpl *::before, .hpl *::after { box-sizing: border-box; }
.hpl h2 { margin: 1.2em 0 .6em; font-size: 1.35em; }
.hpl h3 { margin: 1.2em 0 .5em; font-size: 1.1em; }
.hpl h4 { margin: .2em 0 .5em; }
.hpl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hpl-muted, .hpl-empty { color: #646970; }
.hpl-hint { color: #50575e; font-size: .9em; max-width: 70em; }

/* Header and tabs */
.hpl-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5em; padding: .6em 0; border-bottom: 1px solid var(--hpl-line); }
.hpl-tabs { display: flex; flex-wrap: wrap; gap: .25em; margin: .8em 0 1em; border-bottom: 2px solid var(--hpl-line); }
.hpl-tabs a { padding: .55em .9em; text-decoration: none; color: inherit; border-radius: 6px 6px 0 0; border: 1px solid transparent; border-bottom: 0; margin-bottom: -2px; }
.hpl-tabs a:hover, .hpl-tabs a:focus { background: var(--hpl-soft); }
.hpl-tabs a.is-active { font-weight: 600; background: #fff; border-color: var(--hpl-line); border-bottom: 2px solid #fff; }
.hpl-pill { display: inline-block; padding: .25em .8em; border: 1px solid var(--hpl-line); border-radius: 999px; text-decoration: none; color: inherit; background: #fff; }
.hpl-pill.is-current { background: var(--hpl-ink); color: #fff; border-color: var(--hpl-ink); font-weight: 600; }
.hpl-pill.is-inactive { opacity: .6; font-style: italic; }
.hpl-yearnav, .hpl-monthnav, .hpl-emptabs { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; margin: .8em 0; }
.hpl-monthnav strong { min-width: 9em; text-align: center; font-size: 1.1em; }

/* Messages */
.hpl-msg { padding: .7em 1em; margin: .8em 0; border-left: 4px solid #2271b1; background: #f0f6fc; border-radius: 3px; }
.hpl-msg-success { border-color: var(--hpl-go); background: #edf7f0; }
.hpl-msg-error { border-color: var(--hpl-stop); background: #fcefee; }
.hpl-msg-warning, .hpl-warn { border-color: #b26a00; background: #fff6e5; }
.hpl-warn { padding: .5em .7em; margin: .3em 0; border-left: 4px solid #b26a00; border-radius: 3px; font-size: .92em; max-width: 46em; }

/* Balance cards */
.hpl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8em; margin: 1em 0; }
.hpl-card { border: 1px solid var(--hpl-line); border-radius: 8px; padding: .8em 1em; background: #fff; border-top: 4px solid #8c8f94; }
.hpl-card-approved { border-top-color: #2e9e5b; }
.hpl-card-pending { border-top-color: var(--hpl-pending); }
.hpl-card-remaining { border-top-color: #2271b1; }
.hpl-card-label { font-size: .85em; text-transform: uppercase; letter-spacing: .04em; color: #50575e; }
.hpl-card-value { font-size: 1.7em; font-weight: 700; margin: .1em 0; }
.hpl-card-sub { font-size: .85em; color: #50575e; }

/* Annual calendar */
.hpl-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1em; margin: 1em 0; }
.hpl-month { border-collapse: separate; border-spacing: 2px; width: 100%; table-layout: fixed; margin: 0; background: #fff; border: 1px solid var(--hpl-line); border-radius: 8px; padding: .4em; }
.hpl-month caption { font-weight: 600; text-align: left; padding: .2em .3em; caption-side: top; color: inherit; }
.hpl-month th { font-size: .72em; font-weight: 600; color: #646970; text-align: center; padding: 2px 0; border: 0; background: none; }
.hpl .hpl-day, .hpl .hpl-blank { position: relative; height: 30px; padding: 0; text-align: center; vertical-align: middle; border: 1px solid transparent; border-radius: 4px; font-size: .8em; line-height: 1.05; }
.hpl-day { background: #fff; border-color: #eceef1 !important; }
.hpl-day .hpl-num { display: block; }
.hpl-day .hpl-code { display: block; font-size: .68em; font-weight: 700; min-height: .9em; letter-spacing: .02em; }
.hpl-day.hpl-we { background: #eef0f3; color: #7b8087; }
.hpl-day.hpl-ph { background: #dbe9fb; color: #1d4f91; }
.hpl-day.hpl-today { outline: 2px solid var(--hpl-ink); outline-offset: -2px; }
.hpl-day.hpl-off.hpl-full.hpl-is-approved { color: #fff; }
.hpl-day.hpl-off.hpl-half, .hpl-day.hpl-is-pending { color: var(--hpl-ink); font-weight: 600; }
.hpl-day.hpl-is-pending { border: 2px dashed #8a5a00 !important; }
.hpl-day.hpl-timed::after { content: ""; position: absolute; right: 2px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--hpl-dot, #3b82c4); border: 1px solid #fff; }

/* Legend */
.hpl-legend { display: flex; flex-wrap: wrap; gap: .4em 1.2em; margin: .8em 0 1.4em; font-size: .88em; }
.hpl-legend span { display: inline-flex; align-items: center; gap: .4em; }
.hpl-sw { display: inline-block; width: 16px; height: 16px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15); position: relative; }
.hpl-sw-pending { border: 2px dashed #8a5a00; }
.hpl-sw-ph { background: #dbe9fb; }
.hpl-sw-we { background: #eef0f3; }
.hpl-sw-half { background: linear-gradient(135deg, #2e9e5b 0, #2e9e5b 50%, #eef0f3 50%, #eef0f3 100%); }
.hpl-sw-dot { background: #fff; }
.hpl-sw-dot::after { content: ""; position: absolute; right: 1px; top: 1px; width: 7px; height: 7px; border-radius: 50%; background: #3b82c4; }

/* Team calendar */
.hpl-scroll { overflow-x: auto; max-width: 100%; }
.hpl-team { border-collapse: separate; border-spacing: 2px; background: #fff; border: 1px solid var(--hpl-line); border-radius: 8px; padding: .4em; margin: 0; }
.hpl-team thead th { font-size: .75em; text-align: center; font-weight: 600; padding: 2px; min-width: 28px; border: 0; background: none; }
.hpl-team thead th span { display: block; font-weight: 400; color: #646970; }
.hpl-team thead th.hpl-we { color: #9aa0a6; }
.hpl-team .hpl-team-name { text-align: left; white-space: nowrap; padding: 0 .8em 0 .3em; position: sticky; left: 0; background: #fff; z-index: 1; font-weight: 600; border: 0; }
.hpl-team .hpl-day { min-width: 28px; height: 28px; }

/* Tables */
.hpl-table { border-collapse: collapse; width: 100%; background: #fff; margin: .6em 0 1em; border: 1px solid var(--hpl-line); }
.hpl-table.hpl-narrow { width: auto; min-width: 32em; max-width: 100%; }
.hpl-table th, .hpl-table td { text-align: left; padding: .55em .7em; border-bottom: 1px solid var(--hpl-line); vertical-align: top; }
.hpl-table thead th { background: var(--hpl-soft); font-weight: 600; white-space: nowrap; }
.hpl-table tbody tr:last-child > * { border-bottom: 0; }
.hpl-notes { max-width: 22em; font-size: .92em; }
.hpl-change { color: #8a5a00; font-weight: 600; }
.hpl-actions form, .hpl-inline { display: inline-flex; flex-wrap: wrap; gap: .35em; align-items: center; margin: 0 .3em .3em 0; }
.hpl-actions input[type="text"] { min-width: 12em; }
.hpl-audit td { font-size: .88em; word-break: break-word; }
.hpl-k { color: #646970; }
.hpl-list { list-style: none; padding: 0; margin: .5em 0 1em; }
.hpl-list li { margin: .5em 0; }
.hpl-pages { margin: .6em 0; }

/* Status badges: text and icon as well as colour */
.hpl-badge { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .85em; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.hpl-badge-pending { background: #fff1d6; color: #7a4a00; border: 1px dashed #8a5a00; }
.hpl-badge-approved { background: #dff3e6; color: #14532d; }
.hpl-badge-rejected { background: #fbe1df; color: #8a1c15; }
.hpl-badge-cancelled { background: #eceef1; color: #50575e; text-decoration: line-through; }

/* Forms */
.hpl-form { max-width: 62em; background: #fff; border: 1px solid var(--hpl-line); border-radius: 8px; padding: 1em 1.2em; margin: .8em 0; }
.hpl-form p { margin: 0 0 .9em; }
.hpl-form label, .hpl-filter label { display: block; font-weight: 600; margin-bottom: .25em; }
.hpl-form label small { font-weight: 400; color: #50575e; }
.hpl-form input[type="text"], .hpl-form input[type="email"], .hpl-form input[type="tel"], .hpl-form input[type="password"], .hpl-form input[type="date"], .hpl-form input[type="time"], .hpl-form input[type="number"], .hpl-form select, .hpl-form textarea, .hpl-feed-url { width: 100%; max-width: 100%; padding: .45em .6em; border: 1px solid #8c8f94; border-radius: 4px; font: inherit; background: #fff; color: inherit; min-height: 2.4em; }
.hpl-row { display: flex; flex-wrap: wrap; gap: 0 1em; }
.hpl-row > p { flex: 1 1 11em; min-width: 0; }
.hpl-row > p.hpl-grow { flex-grow: 3; }
.hpl-fieldset { border: 1px solid var(--hpl-line); border-radius: 6px; padding: .6em 1em .2em; margin: 0 0 1em; }
.hpl-fieldset legend { font-weight: 600; padding: 0 .4em; }
.hpl .hpl-check { display: inline-flex; align-items: center; gap: .4em; font-weight: 400; margin-right: 1.2em; }
.hpl-filter { display: flex; flex-wrap: wrap; gap: .6em; align-items: flex-end; margin: .8em 0; }
.hpl-filter label { font-weight: 400; }
.hpl-details summary { cursor: pointer; color: #2271b1; }
.hpl-details[open] { padding: .4em 0; }
.hpl-details label { display: inline-flex; flex-direction: column; font-size: .85em; }
.hpl-feed { max-width: 62em; }

/* Buttons */
.hpl .hpl-btn { display: inline-block; padding: .5em 1em; border: 1px solid #8c8f94; border-radius: 4px; background: #fff; color: var(--hpl-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.3; }
.hpl .hpl-btn:hover, .hpl .hpl-btn:focus { background: var(--hpl-soft); }
.hpl .hpl-btn-small { padding: .25em .65em; font-size: .88em; }
.hpl .hpl-btn-go { background: var(--hpl-go); border-color: var(--hpl-go); color: #fff; }
.hpl .hpl-btn-go:hover, .hpl .hpl-btn-go:focus { background: #17603a; }
.hpl .hpl-btn-stop { background: #fff; border-color: var(--hpl-stop); color: var(--hpl-stop); }
.hpl .hpl-btn-stop:hover, .hpl .hpl-btn-stop:focus { background: #fcefee; }
.hpl a:focus-visible, .hpl button:focus-visible, .hpl input:focus-visible, .hpl select:focus-visible, .hpl textarea:focus-visible, .hpl summary:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; }

.hpl-admin .nav-tab-wrapper { margin-bottom: 1em; }
@media (max-width: 600px) {
	.hpl-year { grid-template-columns: 1fr; }
	.hpl-tabs a { padding: .5em .6em; }
}

/* Instructions: tabbed guide */
.hpl-help { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: 1.4em; align-items: start; max-width: 76em; margin-top: .8em; }
.hpl-help-side { position: sticky; top: 3.2em; }
.hpl .hpl-help-search { width: 100%; padding: .5em .7em; border: 1px solid #8c8f94; border-radius: 6px; font: inherit; margin: 0 0 .6em; background: #fff; }
.hpl-help-nav { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--hpl-line); border-radius: 8px; padding: .35em; }
.hpl .hpl-help-nav button { display: flex; align-items: baseline; gap: .6em; width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid transparent; border-radius: 4px; padding: .5em .6em; font: inherit; color: inherit; cursor: pointer; line-height: 1.3; }
.hpl .hpl-help-nav button[hidden] { display: none; }
.hpl .hpl-help-nav button:hover { background: var(--hpl-soft); }
.hpl .hpl-help-nav button[aria-selected="true"] { background: #eaf3ee; border-left-color: var(--hpl-go); font-weight: 600; }
.hpl-help-n { flex: 0 0 1.5em; font-size: .8em; color: #646970; font-variant-numeric: tabular-nums; text-align: right; }
.hpl-help-none { color: #646970; padding: .4em .6em; }
.hpl-help-panels section { background: #fff; border: 1px solid var(--hpl-line); border-radius: 8px; padding: .4em 1.6em 1em; margin: 0 0 1em; }
.hpl-help.hpl-js .hpl-help-panels section[hidden] { display: none; }
.hpl-help-panels h3 { font-size: 1.3em; margin: .8em 0 .6em; padding-bottom: .45em; border-bottom: 1px solid var(--hpl-line); }
.hpl-help-panels ul, .hpl-help-panels ol { margin: .4em 0 .9em 1.4em; padding: 0; }
.hpl-help-panels ul { list-style: disc; }
.hpl-help-panels ol { list-style: decimal; }
.hpl-help-panels li { margin: .35em 0; }
.hpl-help-step { display: none; justify-content: space-between; gap: .6em; flex-wrap: wrap; margin: 1.4em 0 0; padding-top: .9em; border-top: 1px solid var(--hpl-line); }
.hpl-help.hpl-js .hpl-help-step { display: flex; }
.hpl-help-next { margin-left: auto; }
.hpl-help code, .hpl-tpl code { background: var(--hpl-soft); border: 1px solid var(--hpl-line); border-radius: 3px; padding: 0 .3em; font-size: .92em; }
/* Stack the topic list above the panel when the page column is narrow (theme content width or phone). */
.hpl-help-wrap { container-type: inline-size; container-name: hplhelp; }
@container hplhelp (max-width: 720px) {
	.hpl-help { grid-template-columns: 1fr; }
	.hpl-help-side { position: static; }
	.hpl-help-nav { flex-direction: row; flex-wrap: wrap; }
	.hpl .hpl-help-nav button { width: auto; border-left: 0; border: 1px solid var(--hpl-line); border-radius: 999px; padding: .3em .8em; }
	.hpl-help-n { display: none; }
	.hpl-help-panels section { padding: .2em 1em .8em; }
}
@media (max-width: 600px) {
	.hpl-help { grid-template-columns: 1fr; }
	.hpl-help-side { position: static; }
	.hpl-help-nav { flex-direction: row; flex-wrap: wrap; }
	.hpl .hpl-help-nav button { width: auto; border-left: 0; border: 1px solid var(--hpl-line); border-radius: 999px; padding: .3em .8em; }
	.hpl-help-n { display: none; }
	.hpl-help-panels section { padding: .2em 1em .8em; }
}

/* Email templates, branding and signatures */
.hpl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 660px); gap: 1.6em; align-items: start; }
.hpl-split-side { position: sticky; top: 3.2em; }
.hpl-form.hpl-form-wide { max-width: none; }
.hpl-preview-frame { width: 100%; height: 640px; border: 1px solid var(--hpl-line); border-radius: 8px; background: #fff; }
.hpl-preview-subject { background: #fff; border: 1px solid var(--hpl-line); border-radius: 6px; padding: .5em .8em; margin: 0 0 .6em; }
.hpl-chips { line-height: 2.1; }
.hpl .hpl-chip { font-family: Consolas, Monaco, monospace; font-size: .88em; background: var(--hpl-soft); border: 1px solid var(--hpl-line); border-radius: 4px; padding: .1em .45em; cursor: pointer; color: inherit; }
.hpl .hpl-chip:hover, .hpl .hpl-chip:focus { background: #eaf3ee; border-color: var(--hpl-go); }
.hpl-tpl { background: #fff; border: 1px solid var(--hpl-line); border-radius: 8px; padding: .7em 1em; margin: .5em 0; }
.hpl-tpl > summary { cursor: pointer; }
.hpl-tpl .hpl-form { border: 0; padding: 0; margin: .6em 0 0; }
.hpl-logo-box { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; min-height: 48px; padding: 8px 12px; border-radius: 6px; vertical-align: middle; color: #fff; }
.hpl-logo-box img { max-height: 48px; max-width: 220px; display: block; }
.hpl-form input[type="color"] { width: 100%; height: 2.4em; padding: 2px; border: 1px solid #8c8f94; border-radius: 4px; background: #fff; }
.hpl-form .wp-editor-wrap { margin-bottom: .8em; }
@media (max-width: 1200px) { .hpl-split { grid-template-columns: 1fr; } .hpl-split-side { position: static; } }

/* Microsoft Teams */
.hpl-in-teams .hpl-signout { display: none; }
.hpl-checklist { list-style: none; margin: .4em 0 1em; padding: 0; }
.hpl-checklist li { padding: .3em 0; }
.hpl-checklist .is-ok span[aria-hidden] { color: var(--hpl-go); font-weight: 700; }
.hpl-checklist .is-todo span[aria-hidden] { color: #b26a00; }
.hpl-steps { margin: .8em 0 .6em 1.6em; padding: 0; list-style: decimal; }
.hpl-steps li { margin: .7em 0; line-height: 1.6; }
.hpl .hpl-copy { font-family: Consolas, Monaco, monospace; font-size: .9em; width: 100%; max-width: 34em; padding: .3em .5em; border: 1px solid var(--hpl-line); border-radius: 4px; background: var(--hpl-soft); margin: .2em 0; }
.hpl-help-list { list-style: disc; margin: .4em 0 1em 1.3em; padding: 0; }
.hpl-help-list li { margin: .4em 0; }

/* Time recording */
.hpl-timer { background: #fff; border: 1px solid var(--hpl-line); border-left: 4px solid var(--hpl-go); border-radius: 6px; padding: .6em 1em; margin: .8em 0; }
.hpl-timer p { margin: .3em 0; }
.hpl-timegrid th[scope="row"] { min-width: 12em; font-weight: 600; }
.hpl-timegrid td { padding: .3em .35em; vertical-align: middle; }
.hpl .hpl-timegrid input[type="number"] { width: 4.6em; padding: .35em .3em; border: 1px solid #8c8f94; border-radius: 4px; text-align: right; font: inherit; }
.hpl .hpl-timegrid input[type="text"], .hpl .hpl-timegrid select { width: 100%; min-width: 11em; padding: .35em .5em; border: 1px solid #8c8f94; border-radius: 4px; font: inherit; }
.hpl-timegrid th.hpl-we { background: #e6e8eb; color: #646970; }
.hpl-cell-fixed { text-align: right; color: #50575e; background: var(--hpl-soft); }
.hpl-grid-total > * { background: var(--hpl-soft); font-weight: 600; }
.hpl-badge-plain { text-decoration: none; }
.hpl-bar { height: 8px; width: 9em; max-width: 100%; background: #e2e4e7; border-radius: 4px; overflow: hidden; }
.hpl-bar span { display: block; height: 100%; background: var(--hpl-go); }
.hpl-bar.is-near span { background: #b26a00; }
.hpl-bar.is-over span { background: var(--hpl-stop); }
.hpl-att td, .hpl-att th { white-space: nowrap; }
