*{box-sizing:border-box}body{margin:0;background:#f3f6f8;color:#183448;font:16px system-ui,Arial;display:flex}button,input,select,textarea{font:inherit}button,a.button{cursor:pointer;border:1px solid #cbdce4;background:white;color:#17384b;border-radius:10px;padding:10px 14px;min-height:44px;font-weight:650;text-decoration:none}button:hover{background:#e8f3f5}button:disabled{opacity:.55;cursor:wait}button.primary{background:#07838b;color:white;border-color:#07838b}button.danger{color:#b91c1c}aside{width:248px;background:#123247;color:white;padding:28px 18px;position:fixed;inset:0 auto 0 0;overflow:auto}.brand{font-size:35px;font-weight:850;letter-spacing:-1px}.brand small{display:block;font-size:11px;letter-spacing:2px;color:#8ecbd0}#identity{padding:25px 8px;font-weight:650}nav{display:grid;gap:7px}nav button{text-align:left;border:0;background:transparent;color:#cce1e9}nav button.active{background:#24546a;color:white}main{margin-left:248px;width:calc(100% - 248px)}header{position:sticky;top:0;background:white;border-bottom:1px solid #dce6ec;padding:15px 25px;display:flex;gap:15px;z-index:1}header input{max-width:700px;margin-right:auto}#menu{display:none}#view{max-width:1300px;margin:auto;padding:28px}h1{font-size:29px;margin:0 0 8px}h2{font-size:22px}h3{margin:8px 0;font-size:19px}.muted,small{color:#5a7484}small{display:block;font-size:13px;margin-top:5px}.row,.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.row{justify-content:space-between}.actions{margin:15px 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(285px,1fr));gap:15px}.card,.panel{background:white;border:1px solid #d8e4eb;border-radius:15px;padding:19px;margin:12px 0}.card.unread{background:#d9f3f7;border-color:#34a5b6}.card.flag-yellow{box-shadow:inset 5px 0 #e7b122;background:#fff7d9}.card.flag-red{box-shadow:inset 5px 0 #c73232;background:#fff0ef}.card.unread.flag-red,.card.unread.flag-yellow{background:#d9f3f7}.pill{display:inline-block;font-size:13px;font-weight:700;border-radius:7px;background:#e9eef1;padding:5px 8px}.pill.red,.urgent{background:#b91c1c;color:white}.pill.yellow{background:#ffe49c;color:#624900}.pill.green{background:#d4efdb;color:#195331}.pill.blue{background:#dcecff;color:#194b84}.pill.black{background:#17202b;color:white}.pending{color:#b91c1c;font-weight:800}.ack{color:#527080;background:#edf1f4;border:0}.filters{display:flex;gap:7px;overflow:auto;padding:15px 0}.filters button{white-space:nowrap;font-size:14px}.filters button.active{background:#123247;color:white}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #c7d9e3;border-radius:9px;background:white;color:#153347;min-height:45px}textarea{min-height:85px}label{display:block;font-size:14px;font-weight:650;margin:12px 0 6px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 15px}.fields .wide{grid-column:1/-1}.check{display:flex;align-items:center;gap:10px}.check input{width:22px;min-height:22px}.notice{background:#e5f1f5;padding:12px;border-radius:9px;line-height:1.6;margin:12px 0}#connection{font-size:13px;padding:8px 25px;color:#516e7c}#connection.offline{background:#fff1cd;color:#624800}dialog{border:0;border-radius:18px;width:min(820px,calc(100% - 24px));max-height:92dvh;color:#183448;padding:24px}dialog::backdrop{background:#102d43ba}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#123247;color:white;border-radius:12px;padding:15px 22px;z-index:9;max-width:95vw}table{width:100%;border-collapse:collapse;font-size:14px}td,th{padding:10px;text-align:left;border-bottom:1px solid #e1e9ee}iframe{width:100%;height:calc(100dvh - 145px);border:0;background:white}pre{white-space:pre-wrap;word-break:break-word}a{color:#087c8b}.error{color:#b91c1c;font-weight:650}.metric{font-size:28px;font-weight:750;margin:8px 0}.list .card{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.list .card>div:first-child{flex:1}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #12b2bd;outline-offset:2px}@media(max-width:760px){aside{display:none;z-index:5;width:265px}body.menu-open aside{display:block}main{margin:0;width:100%}#menu{display:block}header{padding:10px;gap:8px}#view{padding:18px 13px}.fields{grid-template-columns:1fr}.grid{grid-template-columns:1fr}h1{font-size:25px}.card{padding:16px}header input{min-width:80px}}@media print{aside,header,#connection,.actions,button{display:none!important}main{margin:0;width:100%}.card{break-inside:avoid}}

#mobile-nav{display:none}@media(max-width:760px){main{padding-bottom:82px}#mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;gap:4px;background:white;border-top:1px solid #d4e1e9;padding:8px 6px max(12px,env(safe-area-inset-bottom));z-index:4}#mobile-nav button{flex:1;padding:9px 4px;font-size:12px;color:#183448;background:white;border:0}#mobile-nav button.active{background:#e0f2f4;color:#087d87}}
/* Approved Orders project list and project drawer */
.project-list{display:grid;gap:12px}.project-row{display:flex;justify-content:space-between;gap:24px;background:white;border:1px solid #dbe5ed;border-radius:12px;padding:20px;min-width:0}.project-main{min-width:0;flex:1}.project-main p{margin:8px 0}.project-name{font-size:18px;border:0;background:transparent;text-align:left;padding:0;min-height:30px;color:#173c54}.project-side{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:10px;min-width:225px}.project-side small{font-size:14px}.project-side .actions{margin:6px 0 0}.project-controls{margin:18px 0 24px;padding:18px;background:#f7fafb;border:1px solid #dce7ec;border-radius:12px}.project-eyebrow{font-size:12px;letter-spacing:1px;color:#587380;font-weight:750}.project-flag-controls button.flag-yellow{background:#ffe17c;color:#473300;border:1px solid #c9a333;box-shadow:none}.project-flag-controls button.flag-red{background:#c52e3a;color:white;border:1px solid #a51a2b;box-shadow:none}.project-flag-controls button[aria-pressed=true]{outline:2px solid #163247;outline-offset:3px}.project-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.project-totals>div{background:white;border:1px solid #d7e3e9;border-radius:8px;padding:12px;font-size:14px}.project-totals strong{display:block;margin-top:8px;font-size:18px}.project-note{background:white;border-left:3px solid #0994a0;padding:9px 13px;margin:10px 0}.project-note p{white-space:pre-wrap;margin:0}.project-flag-label{font-weight:700}.project-row.flag-yellow{background:#fff2b8;box-shadow:inset 5px 0 #d6a409}.project-row.flag-red{background:#ffe0e2;box-shadow:inset 5px 0 #c52e3a}.project-row.unread{border-color:#239cb1}.project-row.unread:not(.flag-red):not(.flag-yellow){background:#d9f3f7}.project-row .pill{font-size:14px}.project-controls form button{margin-top:12px}.project-filters{flex-wrap:wrap;overflow:visible}@media(max-width:760px){.project-row{flex-direction:column;gap:12px;padding:17px}.project-side{align-items:flex-start;min-width:0}.project-side .actions{width:100%}.project-side .actions button{flex:1}.project-controls{padding:14px}.project-totals{grid-template-columns:1fr}.project-totals strong{font-size:17px}.project-filters{gap:6px}.project-filters button{font-size:13px;padding:9px}}

/* Common controls and signed-out layout. */
button.primary {
  background: #0a6b63;
  border-color: #0a6b63;
}
button.primary:hover:not(:disabled) {
  background: #07564f;
  border-color: #07564f;
}
:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid #087c8b;
  outline-offset: 3px;
}
body.signed-out {
  background: #edf3f5;
}
body.signed-out > aside,
body.signed-out > main > header,
body.signed-out #connection,
body.signed-out #mobile-nav,
body.signed-out #role-top {
  display: none !important;
}
body.signed-out > main {
  width: 100%;
  margin: 0;
  padding: 0;
}
body.signed-out #view {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 5vw, 64px);
}
.workspace-sign-in {
  width: min(100%, 820px);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  border: 1px solid #d5e1e5;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 72px #12324716;
}
.workspace-sign-in-brand {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(24px, 5vw, 54px);
  background: #123247;
  color: #e2eff1;
}
.workspace-sign-in-brand p {
  margin: 0;
}
.workspace-sign-in-brand span {
  margin-inline-start: .5em;
  color: #afc9d1;
  font-variant-numeric: tabular-nums;
}
.workspace-sign-in-wordmark {
  color: #fff;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 850;
  letter-spacing: -.06em;
  line-height: 1;
}
.workspace-sign-in-panel {
  min-width: 0;
  padding: clamp(24px, 5vw, 50px);
}
.workspace-sign-in-panel > p {
  color: #4c6676;
  margin: 0 0 24px;
  line-height: 1.5;
}
.workspace-sign-in-panel label input {
  display: block;
  margin-top: 6px;
}
.workspace-sign-in-panel button {
  width: 100%;
  margin-top: 12px;
}
.workspace-sign-in-panel .error:empty {
  margin: 0;
}
@media (max-width: 640px) {
  .workspace-sign-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-sign-in-brand {
    gap: 8px;
  }
}
