:root{color-scheme:light;--ink:#173b2c;--muted:#506157;--line:#d7dfd6;--green:#174532;--paper:#f1f4ed;--red:#a12c22;font-family:"Inter","Segoe UI",system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:32px;padding:0 clamp(16px,3.2vw,62px);background:#fff;border-bottom:1px solid var(--line);min-height:72px}header img{width:155px;max-width:100%;display:block}nav{display:flex;align-items:stretch;align-self:stretch;gap:24px}nav a{display:grid;align-items:center;border-bottom:3px solid transparent}nav [aria-current=page]{border-color:#de722d}.company{margin-left:auto;font-weight:650}.exit{font-size:.9rem}a{color:var(--ink)}header a{text-decoration:none}.brand,nav a{font-weight:700}
main{max-width:1470px;margin:auto;padding:30px clamp(16px,3.2vw,52px) 55px}h1,h2,h3,p{margin:0}h1{font-size:clamp(2rem,3.1vw,2.7rem);line-height:1.1;letter-spacing:-.045em}h2{font-size:1.42rem;letter-spacing:-.035em}h3{font-size:1.18rem;letter-spacing:-.025em}.tabs{display:flex;gap:4px;border-bottom:1px solid #b7c6b9;margin:22px 0}.tabs button{border:0;border-radius:7px 7px 0 0;border-bottom:3px solid transparent;padding-inline:20px;background:transparent}.tabs [aria-selected=true]{background:#e1ebdd;border-color:var(--green)}
button,select,input,.button{font:inherit;color:inherit;min-height:44px;border-radius:7px}button,.button{cursor:pointer;background:white;border:1px solid #c4d0c5;font-weight:650;padding:8px 14px}button:disabled,select:disabled{opacity:.6;cursor:wait}.button{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.primary{background:var(--green);color:white;border-color:var(--green)}input,select{background:white;border:1px solid #aebfb2;padding:8px 12px;min-width:0}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #b35b1d;outline-offset:2px}
#roomPanel{display:grid;grid-template-columns:minmax(210px,26%) minmax(0,1fr);gap:14px}.panel{background:white;border:1px solid var(--line);border-radius:9px;padding:20px;min-width:0}.bar,.sectionTitle,.end{display:flex;align-items:center;gap:14px}.bar{justify-content:space-between;gap:4px}.bar h2{font-size:1.24rem}.text{border:0;background:none;padding:5px;font-size:.91rem}.sectionTitle span,.detail,#message,.muted{color:var(--muted);font-size:.92rem}.tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,26%);gap:12px;margin:17px 0}
#folderList{display:grid;gap:4px;margin-top:12px}#folderList button{display:flex;align-items:center;gap:9px;text-align:left;border:none;font-weight:500;overflow-wrap:anywhere}#folderList button::before{content:"";width:19px;height:18px;flex-shrink:0;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23224833' stroke-width='1.6'%3E%3Cpath d='M3 6h7l2 2h9v12H3z'/%3E%3C/svg%3E")}#folderList button span{margin-left:auto}#folderList [aria-pressed=true]{background:#e3eddf;font-weight:700}#mobileFolder{display:none;width:100%;margin-top:6px}
.card,.report{border:1px solid var(--line);border-radius:8px;padding:16px;display:grid;gap:14px;align-items:center;margin-top:10px}.card{grid-template-columns:minmax(145px,1.2fr) minmax(125px,.85fr) minmax(162px,auto)}.card>*{min-width:0}.card select{width:100%}.details{display:grid;gap:4px;overflow-wrap:anywhere}.links{display:grid;gap:4px;text-align:center}.links a:not(.button){padding:5px;font-size:.92rem}.fault{color:var(--red);font-weight:650}.fault::before{content:"●";font-size:.7em;margin-right:5px}.ok{color:#376847}.report{grid-template-columns:1.15fr 1fr minmax(105px,.8fr) auto}.report h3{font-size:1.04rem}.report .status{font-size:.91rem}#message:empty{display:none}#message:not(:empty),#retry{margin-bottom:14px}.empty{padding:16px 0;color:var(--muted)}dialog{border:1px solid var(--line);max-width:min(440px,95vw);width:100%;border-radius:12px;color:var(--ink);padding:23px}dialog::backdrop{background:#132e2490}form>label{display:grid;gap:6px;margin:16px 0}fieldset{border:1px solid var(--line);border-radius:7px;max-height:35vh;overflow:auto}fieldset label{display:flex;align-items:center;gap:9px;min-height:40px}fieldset input{min-height:0;width:18px;height:18px}.end{justify-content:flex-end;margin-top:14px}#folderError{color:var(--red)}[hidden]{display:none!important}
@media(max-width:1000px){#roomPanel{grid-template-columns:1fr}#folderList{display:none}#mobileFolder{display:block}#roomPanel aside{padding-block:10px}header{gap:18px}.panel{padding:16px}}
@media(max-width:660px){header{flex-wrap:wrap;gap:8px 15px;padding-block:10px}.brand img{width:123px}.company{display:none}.exit{margin-left:auto}nav{gap:10px}nav a,.exit{font-size:.85rem}main{padding-top:20px}.card,.report{grid-template-columns:1fr;gap:11px}.links{display:flex;align-items:center;flex-wrap:wrap;text-align:left}.links a:not(.button){display:inline-flex;align-items:center;min-height:44px}.tools{grid-template-columns:1fr;gap:7px}.tabs{margin:16px 0}.sectionTitle{flex-wrap:wrap;gap:9px}.report>.button{justify-self:start}}

/* Customer archive */
:root {
  --paper: #f5f6f1;
  --soft: #eff4ec;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23395145' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  --folder-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23345141' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 6.5A1.5 1.5 0 0 1 4.5 5h5l2 2h8A1.5 1.5 0 0 1 21 8.5v10a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18.5z'/%3E%3C/svg%3E");
}
main {max-width: 1370px; padding-top: clamp(22px, 3vw, 42px)}
#roomPanel {grid-template-columns: clamp(208px, 20vw, 268px) minmax(0,1fr); align-items: start; gap: 20px}
.panel {border-radius: 14px; padding: clamp(16px, 1.7vw, 25px)}
.tabs button, .text, .links a {transition: background-color .12s ease}
.tabs button:hover, .text:hover, #folderList button:hover {background-color: var(--soft)}
.sectionTitle {gap: 10px}
.sectionTitle span, #folderList button span {
  font-size: .8rem; font-weight: 650; color: #41594a; background: var(--soft);
  border-radius: 20px; padding: 3px 10px; line-height: 1.45;
}
#folderList button span {min-width: 24px; padding-inline: 6px; text-align: center; font-variant-numeric: tabular-nums}
#folderList [aria-pressed=true] span {background: #d5e3d1}
#folderList button::before {background-image: var(--folder-icon)}
#newFolder {color: #315342; white-space: nowrap; padding-inline: 8px}
.tools {grid-template-columns: minmax(0,1fr) minmax(155px,auto)}
.tools select, #mobileFolder {
  -webkit-appearance: none; appearance: none; padding-right: 34px;
  background: #fff var(--chevron) no-repeat right 10px center;
}
.card {
  grid-template-columns: minmax(0,1fr) auto; align-items: start;
  gap: 14px; padding: 18px 20px 12px; border-radius: 12px;
}
.card .details {gap: 5px}
.card h3 {line-height: 1.28; font-size: 1.24rem}
.card .fault {
  justify-self: start; margin-block: 3px 0; padding: 4px 9px;
  border-radius: 6px; background: #faebe6; text-decoration: none; font-size: .9rem;
}
.card .fault:hover, .links a:not(.button):hover {text-decoration: underline}
.card .next-date {font-size: .86rem}
.folder-picker {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; width: fit-content; min-width: 0; max-width: min(15rem, 100%);
  padding: 6px 12px; justify-self: end; align-self: start;
  border: 1px solid #cbd8c9; border-radius: 22px; background: #f3f6f0;
  color: #345141; font-size: .9rem; font-weight: 600;
}
.folder-picker::before, .folder-picker::after {
  content: ""; flex: none; width: 18px; height: 18px; background: var(--folder-icon) no-repeat center / contain;
}
.folder-picker::after {width: 14px; height: 14px; background-image: var(--chevron)}
.folder-picker:hover {background-color: #e7efe3; border-color: #8fa990}
.folder-picker:focus-within {outline: 3px solid #ad591e; outline-offset: 2px}
.folder-caption {overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.folder-picker select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  margin: 0; padding: 0; border: 0; cursor: pointer; font-size: 16px;
}
.card .links {
  grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 14px; padding-top: 10px; border-top: 1px solid #e1e7df;
}
.links a:not(.button) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 4px 3px;
  color: #315645; font-weight: 600; text-decoration-color: #a8bcad; text-underline-offset: 3px;
}
.links .primary {order: 1; margin-left: auto; border-radius: 8px}
.primary:hover {background-color: #103b28}
.report {border-radius: 10px}
.report .status {justify-self: start; border-radius: 6px; padding: 4px 8px}
.report .status.fault {background: #faebe6}
.report .status.ok {background: var(--soft)}
@media (max-width: 1000px) {
  #roomPanel {grid-template-columns: 1fr; gap: 12px}
  #roomPanel aside {display: grid; grid-template-columns: minmax(180px,auto) minmax(0,1fr); gap: 18px; align-items: center}
  #mobileFolder {margin: 0}
}
@media (max-width: 660px) {
  #roomPanel aside {display: block}
  #mobileFolder {margin-top: 4px}
  .card, .tools {grid-template-columns: minmax(0,1fr)}
  .card {padding: 15px; gap: 10px}
  .folder-picker {justify-self: start; max-width: 100%}
  .card .links {gap: 0 16px}
  .links .primary {order: -1; width: 100%; margin: 0}
  .report {grid-template-columns: minmax(0,1fr)}
}
@media (forced-colors: active) {
  .folder-picker {display: block; padding: 0}
  .folder-picker::before, .folder-picker::after, .folder-caption {display: none}
  .folder-picker select {position: static; opacity: 1; width: auto; max-width: 100%}
}

main {max-width: 1360px}
h1 {font-weight: 730}
.tabs {margin-block: 20px 24px}
.folder-panel {background-color: #fbfcf9}
.folder-panel .bar {padding-bottom: 10px; border-bottom: 1px solid var(--line)}
#folderList button {border-radius: 8px; padding-inline: 12px}
#folderList button[aria-pressed=true] {background: #244c3c; color: #fff}
#folderList button[aria-pressed=true] span {color: #fff; background: #3b6250}
#folderList button[aria-pressed=true]::before {filter: brightness(0) invert(1)}
.tools {align-items: end; margin-block: 16px 18px}
.tools .tool-field {display: grid; gap: 6px; min-width: 0; font-size: .84rem; font-weight: 650; color: #40564b}
.tools input, .tools select {width: 100%; height: 44px; font-size: 1rem; font-weight: 400; color: var(--ink); border-color: #b7c6b7}
.tools input::placeholder {color: #68766f; opacity: 1}
.report-tools {grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(140px, .65fr)}
.card {padding: 0; overflow: visible; gap: 0 14px}
.card .details {padding: 18px 0 13px 19px}
.card .folder-picker {margin: 14px 16px 0 0}
.card .links {padding: 6px 16px; border-radius: 0 0 12px 12px; background: #f7f9f5}
.card .next-date {margin-top: 2px}
.links .primary, .report .button {padding-inline: 16px}
#clearReports {margin-left: auto; color: #315645; text-decoration: underline; text-underline-offset: 3px}
.report {padding: 14px 17px; grid-template-columns: minmax(130px,1fr) minmax(130px,1fr) minmax(150px,.95fr) auto}
.report .status {overflow-wrap: anywhere}
.empty {padding: 22px 16px; border: 1px dashed #c9d4c8; border-radius: 8px; background: #f9faf7}
@media (max-width: 1000px) {
  .folder-panel .bar {border: 0; padding-bottom: 0}
  .report-tools {grid-template-columns: minmax(0,1fr) minmax(0,1fr)}
  .report-tools .tool-field:first-child {grid-column: 1/-1}
}
@media (max-width: 740px) {
  .report {grid-template-columns: minmax(0,1fr) minmax(0,1fr)}
  .report .button {justify-self: end}
}
@media (max-width: 660px) {
  header {gap: 6px 12px}
  .tabs {margin-block: 14px 16px}
  .report-tools {grid-template-columns: minmax(0,1fr) minmax(0,1fr)}
  .card {gap: 0}
  .card .details {padding: 14px 14px 0}
  .card .folder-picker {margin: 10px 14px 14px; max-width: calc(100% - 28px)}
  .card .links {padding: 6px 14px; gap: 0 16px}
  .links .primary {order: 0; width: 100%; margin: 0 0 6px}
  .report {grid-template-columns: minmax(0,1fr)}
  .report .button {justify-self: stretch}
}
@media (max-width: 380px) {
  .report-tools {grid-template-columns: minmax(0,1fr)}
}
