:root{color:#0d2d66;background:#fff;font-family:Segoe UI,Helvetica Neue,sans-serif;line-height:1.45;font-weight:400}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#fff,#f8fbff 55%,#f1f6ff);color:#0d2d66}button,input,select,textarea{font:inherit}.page-shell{width:100%;max-width:1480px;margin:0 auto;padding:28px}.app-shell{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;min-height:100vh;padding:24px 18px;background:linear-gradient(180deg,#0d2d66,#13387c);color:#fff;z-index:20}.sidebar-profile{display:flex;gap:14px;align-items:center;padding:14px;margin-bottom:20px;border:1px solid rgba(255,255,255,.12);background:#ffffff14}.profile-avatar{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:999px;background:#edf4ff;color:#14377d;font-weight:700}.sidebar-role{margin:4px 0 0;color:#ffffffc2}.sidebar-nav{display:grid;gap:8px}.sidebar-link{justify-content:flex-start;min-height:46px;border-radius:12px;border:1px solid transparent;background:transparent;color:#e8f1ff}.sidebar-link-active{background:#fff;color:#14377d}.sidebar-backdrop{display:none}.mobile-topbar{display:none;align-items:center;gap:16px;margin-bottom:18px}.mobile-menu-button{min-height:42px;padding:0 14px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px;padding:20px 24px;background:#fff;border:1px solid #cdd9ee;box-shadow:0 14px 36px #0d2d660f}.topbar-company h1{margin-bottom:0;font-size:28px}.topbar-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.topbar-clock{display:grid;gap:4px;min-width:96px;padding:10px 14px;border:1px solid #d5e0f3;background:#f7faff}.topbar-clock span{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#6f8ec5}.primary-cta{min-width:220px}.sheet-header,.sheet-panel,.toolbar-row{background:#fff;border:1px solid #cdd9ee;box-shadow:0 14px 36px #0d2d660f}.sheet-header{display:flex;justify-content:space-between;gap:24px;padding:24px 26px}.brand-block{display:flex;gap:20px;align-items:flex-start}.brand-mark{width:320px;max-width:100%;color:#102a72}.company-copy{display:grid;gap:4px;padding-top:8px;color:#17397c}.company-copy strong{font-size:22px}.protocol-box{min-width:320px;display:grid;gap:14px}.toolbar-row{display:flex;justify-content:space-between;align-items:end;gap:18px;padding:22px 26px;margin:18px 0}.section-kicker{margin:0 0 8px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#426bb5}h1,h2,p{margin-top:0}h1,h2{margin-bottom:8px}.primary-link,button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:10px;border:1px solid #14377d;background:#14377d;color:#fff;text-decoration:none;cursor:pointer}.secondary-button{background:#fff;color:#14377d}.grid-layout{display:grid;grid-template-columns:minmax(420px,760px) minmax(320px,1fr);gap:20px}.company-layout,.rescue-form-panel{margin-bottom:20px}.sheet-panel{padding:24px}.panel-title-row{display:flex;justify-content:space-between;gap:16px;align-items:center}.small-badge,.count-pill,.protocol-value{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid #c6d6f2;background:#edf4ff;color:#1b4fa7;font-size:13px;font-weight:700}.small-badge.secondary{background:#f7faff}.section-divider{height:1px;margin:18px 0;background:#d8e2f3}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field-span-2{grid-column:span 2}label{display:grid;gap:8px;font-size:14px;font-weight:600;color:#133773}input,select,textarea{width:100%;border:none;border-bottom:2px solid #a7bee5;background:#fff;padding:10px 2px;color:#0d2d66;border-radius:0}input:focus,select:focus,textarea:focus{outline:none;border-bottom-color:#14377d}textarea{margin-top:10px;border:1px solid #c7d7f1;padding:14px}.action-row{display:flex;align-items:center;gap:16px;margin-top:16px}.records-list{display:grid;gap:14px}.record-card{border:1px solid #d5e0f3;background:#fcfdff;padding:16px}.record-headline{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.muted-line,.note-line,.empty-state{color:#4b6798}.record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:12px 0}.record-grid p,.note-line{margin-bottom:0}.record-grid span{display:block;margin-bottom:4px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6f8ec5}.status-pill{border:1px solid #bad0f3;background:#eef5ff;padding:6px 10px;font-size:12px;font-weight:700;text-transform:uppercase}.status-closed,.status-delivered{background:#e9f3ff}.status-in_transit,.status-pickup{background:#f2f7ff}.quick-edit-row{display:flex;gap:10px;margin-top:14px}.quick-edit-row select,.quick-edit-row button{flex:1}.error-text{color:#b01919;margin-bottom:0}.success-text{color:#1f6a3a;margin-bottom:0}.action-row{flex-wrap:wrap}.checkbox-cluster{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}.checkbox-pill{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid #c7d7f1;background:#f7faff;color:#14377d}.checkbox-pill input,.inline-toggle input{width:auto}.inline-toggle{display:inline-flex;align-items:center;gap:10px;margin-top:12px}.status-inactive{background:#f3f5f9;color:#5b6b87}.json-preview{margin-top:14px;border-top:1px solid #d5e0f3;padding-top:12px}.json-preview summary{cursor:pointer;font-weight:700;color:#1b4fa7}.json-preview pre{overflow-x:auto;margin:12px 0 0;padding:14px;background:#f6f9ff;border:1px solid #d9e4f7;color:#284574;font-size:12px}.placeholder-panel{margin-bottom:20px}@media(max-width:1040px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:0;bottom:0;width:280px;min-height:100vh;transform:translate(-100%);transition:transform .18s ease}.sidebar-open{transform:translate(0)}.sidebar-backdrop-visible{display:block;position:fixed;inset:0;background:#04122c6b;z-index:10}.mobile-topbar{display:flex}.sheet-header,.toolbar-row,.grid-layout{grid-template-columns:1fr;flex-direction:column}.protocol-box{min-width:0;width:100%}.grid-layout{display:grid}.field-grid,.record-grid{grid-template-columns:1fr}.field-span-2{grid-column:auto}.topbar{flex-direction:column;align-items:flex-start}.topbar-meta,.primary-cta{width:100%}.page-shell{padding:16px}}
