.crew-diagram{display:block;width:100%;max-width:26rem;height:auto;margin:.75rem auto}crew-site-map summary{cursor:pointer;font-weight:700;padding:.5rem 0}crew-site-map details[open] summary{margin-bottom:.5rem}
:root{font:16px system-ui,sans-serif;color:#302820;background:#f6f2e9;--rail:#302820;--accent:#f4b663;--dim:#665a4c;--line:#ded5c5}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:9px;padding:.72rem 1rem;color:inherit;background:#e9eee6;font-weight:650}button.primary,.nav button[aria-current=page]{background:var(--accent);color:#243427}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #915217;outline-offset:2px}h1,h2,p{margin:0}h1{font-size:clamp(2rem,4vw,3.2rem);letter-spacing:-.055em;line-height:1.02}h2{font-size:1.2rem;letter-spacing:-.025em}p{line-height:1.55}small,.muted{color:var(--dim)}.shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100dvh}.rail{background:var(--rail);color:#f1f5eb;padding:25px 16px;display:flex;flex-direction:column;gap:22px}.brand{display:flex;align-items:center;gap:11px;font-weight:750;line-height:1.05}.mark{display:grid;place-items:center;width:34px;height:34px;background:var(--accent);color:var(--rail);border-radius:9px}.nav{display:grid;gap:6px}.nav button,.rail .signout{background:transparent;color:#d8e5db;text-align:left}.rail .signout{margin-top:auto}.workspace{min-width:0;padding:38px clamp(15px,4vw,58px) 60px}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:0 0 16px;margin-bottom:35px}.top strong{font-size:.9rem}.header{margin-bottom:23px}.header p{margin-top:9px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px;margin-bottom:20px}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;min-width:0}.metric strong{display:block;font-size:2rem;letter-spacing:-.05em;margin-top:7px}.panel{margin-top:15px}.panel h2{margin-bottom:14px}.list{display:grid;gap:9px}.row{padding:12px 0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.row p{overflow-wrap:anywhere}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.status{padding:5px 9px;border-radius:20px;background:#edf0e9;font-weight:650;font-size:.78rem}.status.Approved,.status.Open{background:#e5efcd}.status.Returned{background:#f6e4db}.status.Submitted{background:#f7edca}form{display:grid;gap:12px}label{display:grid;gap:5px;font-size:.85rem;font-weight:650}input,textarea,select{background:#fafbf7;border:1px solid #ced8cc;color:inherit;padding:10px;border-radius:8px;width:100%;min-width:0}textarea{min-height:85px}form button{justify-self:start}#message{position:fixed;z-index:2;right:16px;bottom:16px;max-width:min(520px,calc(100% - 32px));overflow-wrap:anywhere;border-radius:10px;padding:12px;background:var(--rail);color:#fff}#message:empty{display:none}@media(max-width:690px){.shell{display:block}.rail{padding:14px;gap:11px}.nav{display:flex;overflow:auto}.nav button{white-space:nowrap;padding:.52rem .67rem}.rail .signout{padding:4px}.workspace{padding-top:19px}.top{margin-bottom:22px}.row button{padding:.55rem .65rem}}

.brand img { border-radius: 9px; flex: none; }
.brand span { font-size: 1.25rem; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.report-art { width: clamp(72px, 10vw, 108px); height: auto; flex: none; }
.clock-panel { display: grid; grid-template-columns: clamp(100px, 16vw, 164px) minmax(0,1fr); align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }
.clock-art { width: 100%; height: auto; }
.shift-details { margin-bottom: 1rem; }
.login {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  width: min(940px, calc(100% - 3rem));
  margin: clamp(2rem, 10vh, 7rem) auto;
  overflow: hidden;
  background: #fffefa;
  border: 1px solid #c8b99e;
  border-radius: 20px;
  box-shadow: 0 18px 54px -30px #59412565;
}
.login-art {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 3.5vw, 3.25rem);
  background-color: #f7d695;
  background-image: radial-gradient(#a4773b47 0.8px, transparent 0.9px);
  background-size: 9px 9px;
  border-right: 1px solid #cfb385;
}
.login-art img { display: block; width: 100%; height: auto; max-width: 340px; }
.login-form { padding: clamp(1.75rem, 4vw, 3.25rem); align-self: center; }
.login-form h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.login-form p { margin: .65rem 0 1.5rem; }
.login-form input { background: #fffcf5; border-color: #cabfac; min-height: 44px; }
.login-form button.primary { width: 100%; background: #963d0e; color: #fff; }
.login-form button.primary:hover { background: #79320c; }
.demo-actions { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
@media (max-width: 660px) {
  .login { width: min(460px, calc(100% - 1.5rem)); margin: 1rem auto; grid-template-columns: 1fr; }
  .login-art { border-right: 0; border-bottom: 1px solid #cfb385; padding: 1rem; }
  .login-art img { width: min(48vw, 190px); }
  .login-form { padding: 1.4rem; }
  .clock-panel { grid-template-columns: minmax(0,1fr) 72px; align-items: start; gap: .5rem; }
  .clock-art { grid-column: 2; grid-row: 1; }
  .clock-panel > div { grid-column: 1; grid-row: 1; }
}
@media print {
  .rail, #message { display: none; }
  .shell { display: block; }
  .workspace { padding: 0; }
  .report-art { width: 75px; }
}

:root{--ink:#30251d;--clay:#a44618;--sand:#f3d2a0;--paper:#fffaf0;--line:#d7c6ac}
.rail{background:#30251d}.rail .nav{gap:3px}.nav button{display:flex;align-items:center;gap:9px;color:#fff0d8;padding:.46rem .65rem}.nav button:hover,.rail .signout:hover{background:#503929}
.nav-art{width:29px;height:29px;flex:none;background:#efd7b4;border-radius:7px}.nav button[aria-current=page]{background:#f4bd78;color:#30251d}
.header{justify-content:flex-start;background:#f6e4c7;border-inline-start:5px solid #b95c26;border-radius:8px;padding:14px 20px}.header .report-art{margin-left:auto}.heading-art{width:clamp(44px,5vw,68px);height:auto;flex:none}
.card{background:#fffdf8}.sections,.filters,.report-tools{display:flex;flex-wrap:wrap;align-items:end;gap:8px}.sections{padding:.45rem 0}.sections button,.actions button,button{color:#38291f;background-color:#eadfcb}.sections button[aria-current=page],button.primary{color:white;background:#943e16}.rail .brand{color:#ffeacd}.rail .signout{color:#ffeacd}
input,textarea,select{background:#fffcf5;border-color:#bbad98}.check{display:flex;align-items:center;gap:9px;min-height:36px}.check input{width:auto}.filters label[hidden]{display:none}.filters label{min-width:min(145px,100%)}.filters{display:flex}.report-tools{margin:10px 0}
.record{border-top:1px solid var(--line);padding:12px 0}.record summary{font-weight:650;cursor:pointer}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}th,td{text-align:left;padding:9px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#f7e8ce;color:#3d3022}td{overflow-wrap:anywhere}
.print-item{break-inside:avoid;padding:.65rem 0;border-bottom:1px solid var(--line)}.print-item dt{font-weight:650}.print-item dd{margin:.2rem 0;white-space:pre-wrap;overflow-wrap:anywhere}
@page mudclock-wide{size:landscape}@page mudclock-tall{size:portrait}
.overtime-thresholds{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.5rem 1rem}
.print-company-logo{display:block;width:auto;height:auto;max-width:min(14rem,100%);max-height:5rem;object-fit:contain}
@media print{.workspace:has(.form-sheet)>:not(.form-sheet){display:none!important}.form-sheet{border:0;box-shadow:none}.sheet-wide{page:mudclock-wide}.sheet-tall{page:mudclock-tall}}
.form-sections button{display:inline-flex;align-items:center;gap:.45rem}.form-sections svg{fill:currentColor}.form-sections .paper-line{fill:none;stroke:#eadfcb;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.form-sections [aria-current=page] .paper-line{stroke:#943e16}
.form-prompt,.form-answer{margin:12px 0;padding:12px 16px;border:1px solid var(--line);border-radius:8px}.form-prompt legend,.form-answer legend{font-weight:650;color:var(--ink)}.form-prompt [hidden]{display:none}.form-prompt .actions{margin:8px 0}.form-answer .check{margin:0}.record .muted{white-space:pre-line}
@media(max-width:690px){.nav-art{width:24px;height:24px}.header{padding:12px;gap:10px}.header h1{font-size:1.9rem}.nav button{padding:.55rem}.filters label{flex:1 1 140px}.sections{align-items:stretch}}
@media print{
  body:has(.batch-ledger){page:mudclock-wide}
  .batch-ledger{table-layout:fixed;width:100%;font-size:9pt;line-height:1.35}
  .batch-ledger th,.batch-ledger td{padding:.25rem;overflow-wrap:anywhere}
}
@media print{.report-filter,.report-tools,.sections,.signout{display:none!important}.header{background:white;border:0}.table-wrap{overflow:visible}tr{break-inside:avoid}}
.signature-pad,.signature-preview {display:block;width:100%;max-width:30rem;height:auto;aspect-ratio:3;stroke:#302820;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;fill:none}
.signature-pad {touch-action:none;cursor:crosshair;background:#fffaf1;outline:1px solid #866c50;border-radius:.3rem;margin:3px}
.signature-name {display:block;font:italic 1.35rem Georgia,serif;color:#302820}
.signature-preview {max-width:18rem}
.print-item:has(.signature-preview) {break-inside:avoid}
.table-field input[data-cell] {min-width:7rem}
.table-field {min-width:0}
.row:has(.table-wrap) > div:first-child {min-width:0;max-width:100%}
@media print {.form-sheet .table-wrap {overflow:visible}.form-sheet table {min-width:0;table-layout:fixed;width:100%}.form-sheet td,.form-sheet th {overflow-wrap:anywhere}}
.conditional-field {min-width:0;border:0;margin:0;padding:0}.conditional-field[hidden]{display:none}
.attachment-picker {min-width:0;border:1px solid #baaa94;border-radius:.4rem;padding:.75rem}.attachment-picker>small {display:block;margin-top:.5rem}.attachment-picker [role=status]:empty {display:none}
.attachment {max-width:100%;display:inline-flex;flex-direction:column;align-items:flex-start;gap:.3rem}.field-photo,.field-video {max-width:min(100%,28rem);max-height:18rem;object-fit:contain}.attachment a {color:#723713;font-weight:600}
.media-file {position:relative;display:inline-flex;align-items:center;cursor:pointer;border:1px solid #866c50;border-radius:.3rem;padding:.45rem .7rem;color:#382719;background:#fff7e9;font-weight:600}.media-file input {position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.media-file:focus-within {outline:2px solid #8b421b}.reference {margin:.4rem 0}.align-center{text-align:center}.align-right{text-align:right}.form-instructions{white-space:pre-wrap}.print-video-label{display:none}
@media print {.attachment a,.field-video{display:none}.print-video-label{display:block}.field-photo{max-width:100%;max-height:65mm}.reference{break-inside:avoid}}

.rail-help{display:block;color:#fff0d5;padding:.65rem .8rem;text-decoration:underline;text-underline-offset:.2em;font-weight:650}.rail-help:focus-visible,.context-help:focus-visible,.login-help a:focus-visible{outline:3px solid #d08736;outline-offset:2px}.context-help,.login-help a{color:#753a1e;font-weight:650;text-underline-offset:.2em}.context-help{display:inline-block;margin-top:.4rem;font-size:.9rem}.login-help{margin-top:1rem}

.saved-reports summary{cursor:pointer;font-weight:700;color:#6c351f}.saved-reports ul{list-style:none;padding:0;margin:.6rem 0}.saved-reports li{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;padding:.4rem 0;border-bottom:1px solid var(--line)}.saved-reports li span{flex:1;color:var(--dim);font-size:.9rem}.saved-reports li button{max-width:100%;overflow-wrap:anywhere}.saved-reports .filters{margin-top:.65rem}
.time-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.65rem .9rem}.time-filters [data-custom-dates]:not([hidden]){display:contents}.time-filters [hidden]{display:none}.followup-notes{margin-block:1rem;min-width:0;max-width:34rem;overflow-wrap:anywhere}.followup-notes ol{padding-inline-start:1.4rem}.followup-notes li{padding-block:.45rem;border-bottom:1px solid var(--line)}.followup-notes li p{white-space:pre-wrap}.followup-notes small{color:var(--dim)}.followup-notes summary{cursor:pointer}.followup-notes textarea{box-sizing:border-box;width:100%;min-height:4rem}
.time-filters label{margin:0}.time-filters input,.time-filters select{width:100%;min-width:0}
