:root{font-family:Tahoma,'Segoe UI',sans-serif;background:#f1f5f8;color:#173446;line-height:1.6}*{box-sizing:border-box}body{margin:0}header{background:#173446;color:white;padding:24px max(24px,calc((100vw - 1200px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}header p{font-size:14px;color:#83dce1;letter-spacing:1px;margin:0}h1{font-size:26px;margin:4px 0}header a{color:white}main{max-width:1248px;margin:auto;padding:28px 24px}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px}h2{font-size:20px;margin:0}p{margin:6px 0}button{background:#006e79;color:white;border:0;border-radius:6px;padding:10px 16px;font:inherit;cursor:pointer}button:disabled{opacity:.6}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.service,.machine{background:white;border:1px solid #d2dee6;border-radius:10px;padding:20px}.service h3{font-size:18px;margin:10px 0 4px}.service p,.note,#checked{font-size:14px;color:#526777}.status{display:inline-block;font-size:14px;padding:3px 10px;border-radius:5px;background:#e2f1e8;color:#25643f}.status.down{background:#fbe6e5;color:#a12c27}.detail{margin-top:12px!important}a:focus-visible,button:focus-visible{outline:3px solid #83dce1;outline-offset:3px}@media(max-width:800px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.grid{grid-template-columns:1fr}.intro,header{align-items:flex-start;flex-direction:column}}
header nav{display:flex;gap:8px;flex-wrap:wrap}header nav a{padding:8px 14px;border:1px solid #627888;border-radius:6px;text-decoration:none;font-size:14px}header nav a[aria-current=page]{background:#e0f3f3;color:#006e79;border-color:#e0f3f3}.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:24px}.entry-card{display:flex;flex-direction:column;gap:16px;background:white;border:1px solid #d2dee6;border-radius:12px;padding:30px;text-decoration:none;color:#173446}.entry-card p{color:#526777}.entry-card strong{color:#006e79;margin-top:auto}.entry-label{font-size:14px;color:#006e79;font-weight:bold}.entry-backoffice{border-top:4px solid #173446}.entry-card:hover{border-color:#006e79}@media(max-width:700px){.entry-grid{grid-template-columns:1fr}}
.back-button{display:inline-block;color:#006e79;margin-bottom:16px;text-decoration:none}.auth-panel{max-width:520px;margin:20px auto}form{display:flex;flex-wrap:wrap;align-items:end;gap:16px;margin:18px 0}label{display:flex;flex-direction:column;gap:6px}label[hidden]{display:none}input,select{font:inherit;padding:9px;border:1px solid #91aab9;border-radius:5px;max-width:100%}.auth-panel form,.auth-panel label{display:flex;flex-direction:column;align-items:stretch;width:100%}.auth-panel label[hidden]{display:none}#message,#edit-message{color:#006e79}.service button{margin:10px 6px 0 0;font-size:14px}.service a{display:inline-block;margin-top:12px;color:#006e79}
.section-title{margin-top:28px}.branch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:20px}.branch-grid .entry-card{padding:20px}@media(max-width:800px){.branch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:450px){.branch-grid{grid-template-columns:1fr}}
.owner-page{background:#f3f6fa}.owner-page header{background:#122f40;padding-top:22px;padding-bottom:22px}.owner-page main{max-width:1320px}.dashboard-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dashboard-toolbar .back-button{margin:0}.dashboard-live{color:#297362;font-size:13px}.dashboard-hero{display:flex;gap:25px;justify-content:space-between;align-items:center;background:linear-gradient(120deg,#173f50,#006b70);color:white;padding:32px;border-radius:16px}.dashboard-hero h2{font-size:25px;line-height:1.45;margin-bottom:10px}.dashboard-hero p{color:#d8efef}.dashboard-hero .eyebrow{font-size:13px;letter-spacing:.8px;color:#83dfd3}.dashboard-updated{font-size:12px;color:#aed9d7}.dashboard-hero form{flex-wrap:nowrap;margin:0}.dashboard-hero input{width:165px}.dashboard-hero button{background:#d8f5ec;color:#124c48;font-weight:bold}.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0 28px}.metric-card{padding:22px;border:1px solid #dbe4eb;border-radius:12px;background:white;border-top:3px solid #138780}.metric-card strong{display:block;font-size:34px;line-height:1.5;color:#153d4c}.metric-card p{font-size:14px;color:#536975}.metric-card small{font-size:12px;color:#748893}.metric-card.amber{border-top-color:#c79530}.metric-card.rose{border-top-color:#bd6f7b}.metric-card.blue{border-top-color:#5988bc}.dashboard-section{background:white;border:1px solid #dbe4eb;border-radius:14px;padding:24px;margin-bottom:22px}.section-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:22px}.section-heading p{font-size:13px;color:#71838e;margin-top:5px}.section-heading a{font-size:13px;color:#00747a;text-decoration:none;white-space:nowrap}.section-chip{display:inline-block;padding:4px 9px;background:#edf4f6;border-radius:6px;color:#4b6976;font-size:12px;white-space:nowrap}.dashboard-modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.department-card{border:1px solid #deeaee;border-radius:12px;padding:20px;background:#fbfdfe}.department-top{display:flex;align-items:center;justify-content:space-between}.department-index{font-size:14px;font-weight:bold;color:#52908d}.department-card h3{font-size:18px;margin:18px 0 8px}.department-count{display:block;font-size:24px;color:#123f50}.department-card p{font-size:13px;color:#70838d}.department-card a{display:block;border-top:1px solid #deeaee;padding-top:12px;margin-top:18px;text-decoration:none;color:#00747a;font-weight:bold;font-size:14px}.dashboard-columns{display:grid;grid-template-columns:1.1fr 1fr;gap:22px}.branch-row{display:flex;align-items:center;gap:12px;border-top:1px solid #edf1f4;padding:13px 0}.branch-row:first-child{border-top:0}.branch-row>div{flex:1;min-width:120px}.branch-row strong{font-size:15px;color:#00777d;margin-right:10px}.branch-row small{font-size:12px;color:#758893}.branch-badge{font-size:11px;padding:4px 8px;background:#f2f5f7;color:#70808d;border-radius:5px}.branch-badge.good{background:#e0f5ed;color:#226a51}.branch-row a{font-size:12px;color:#00747a;text-decoration:none}.activity-item{border-left:2px solid #73b5aa;padding:2px 0 14px 15px;margin-bottom:14px}.activity-item strong{font-size:14px}.activity-item p,.activity-item small{font-size:12px;color:#71838d}.dashboard-empty{background:#f5f8fa;border:1px dashed #d1dee6;border-radius:10px;padding:35px 24px;text-align:center;color:#758893;line-height:1.8;font-size:14px}.dashboard-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.dashboard-shortcuts a{color:#173446;text-decoration:none;border:1px solid #dbe7ec;border-radius:10px;padding:20px}.dashboard-shortcuts span{font-size:12px;color:#64a399}.dashboard-shortcuts h3{font-size:16px;margin:10px 0}.dashboard-shortcuts p{font-size:13px;color:#71838e;min-height:44px}.dashboard-shortcuts strong{font-size:13px;color:#00747a}.health-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.health-item{display:grid;grid-template-columns:auto 1fr;gap:4px 9px;font-size:12px}.health-item small{grid-column:2;color:#81919c}.healthy{color:#2c9b78}.unhealthy{color:#c55252}#message:not(:empty){padding:12px 0;color:#906532;font-size:14px}@media(max-width:1000px){.dashboard-hero{align-items:flex-start;flex-direction:column}.dashboard-columns{grid-template-columns:1fr}.health-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-modules,.dashboard-shortcuts{grid-template-columns:1fr}.dashboard-section{padding:18px}.dashboard-hero{padding:22px}.section-heading{align-items:flex-start;flex-direction:column}.health-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.branch-row small{display:block}.dashboard-hero h2{font-size:21px}.dashboard-hero form{flex-wrap:wrap}}

.password-control{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap}.password-control input{min-width:0}.password-control button{font-size:13px;background:#e0f3f3;color:#006e79;border:1px solid #91aab9}

header:has(.signed-in-user){display:grid;grid-template-columns:1fr auto 1fr;gap:20px}header:has(.signed-in-user)>nav{justify-self:end}.signed-in-user{text-align:center;color:white;min-width:0;overflow-wrap:anywhere}.signed-in-user strong{display:block;font-size:16px}.signed-in-user small{display:block;font-size:13px;color:#bce7de}@media(max-width:760px){header:has(.signed-in-user){grid-template-columns:1fr}.signed-in-user{justify-self:center}header:has(.signed-in-user)>nav{justify-self:center}}

/* Shared audit fixes: visible keyboard focus and usable touch controls. */
button,a,input,select,textarea{touch-action:manipulation}button,input:not([type=checkbox]):not([type=radio]),select{min-height:44px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #007b87;outline-offset:3px}button:disabled{cursor:wait}input,select,textarea{max-width:100%}textarea{overflow-wrap:anywhere}main{min-width:0}section{min-width:0}header a{min-height:44px;display:inline-flex;align-items:center}.signed-in-user a{color:#d0f5ef;font-size:13px;min-height:28px}.panel .fine,.panel .note,.panel small,.machine small{color:#435866}code{overflow-wrap:anywhere}@media(max-width:480px){form,label,.field{min-width:0}header nav{flex-wrap:wrap}table{font-size:14px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Backoffice controls are visible only after the verified GOD/owner identity loads. */
body:not([data-kts-role="owner"]) a[data-port="8081"],body:not([data-kts-role="owner"]) a[href*="\:8081"],body:not([data-kts-role="owner"]) a[href^="/admin"],body:not([data-kts-role="owner"]) a[href^="/backoffice"],body:not([data-kts-role="owner"]) a[href^="/dashboard"],body:not([data-kts-role="owner"]) a[href^="/users"]{display:none!important}

.buddhist-date-field{display:flex!important;flex-direction:row!important;gap:6px;align-items:center;min-width:0;width:100%}.buddhist-date-field>select,.buddhist-date-field>input{box-sizing:border-box;min-width:0;width:auto;flex:1;font:inherit;padding:7px 6px;border:1px solid #91aab9;border-radius:6px;background:white;color:inherit}.buddhist-date-field>select:last-of-type{flex:1.2}.buddhist-date-field>select:disabled{opacity:.6}@media print{.buddhist-date-field>select{appearance:none;border:0;background:none}}

/* Keep today's report/checklist actions visibly distinct from nearby text. */
.wh-shell > .intro > .bar > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 160px;
  height: auto;
  padding: 12px 20px;
  border: 2px solid #006e79;
  border-radius: 10px;
  background: #fff;
  color: #005560;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 3px 0 #bed3db;
}
.wh-shell > .intro > .bar > button:first-child {
  background: #006e79;
  color: #fff;
}
.wh-shell > .intro > .bar > button:not(:disabled):hover {
  border-color: #004c55;
  background: #e1f1f3;
  color: #004c55;
}
.wh-shell > .intro > .bar > button:focus-visible {
  outline: 3px solid #008a99;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .wh-shell > .intro > .bar { width: 100%; }
  .wh-shell > .intro > .bar > button { flex: 1 1 160px; }
}
