:root {
  color-scheme: light;
  --bg: #eef3f7;
  --s: #ffffff;
  --s2: #f3f6fa;
  --s3: #e8eef5;
  --t: #10202b;
  --m: #475569;
  --d: #526274;
  --b: #cbd5e1;
  --bb: #94a3b8;
  --a: #1d4ed8;
  --g: #0f766e;
  --o: #9a3412;
  --r: #b42318;
  --w: #854d0e;
}
body[data-module="myjnia"] { --a: #0f766e; }
option, optgroup { background: var(--s); color: var(--t); }
.viewvalue, .modal, .checkrow, .row { color: var(--t); }
.modal { background: var(--s); max-height: calc(100dvh - 40px); overflow-y: auto; border-radius: 14px; }
.modalbg { padding: 20px 0; overflow-y: auto; }
input::-webkit-calendar-picker-indicator { filter: none !important; opacity: .8; }
input:disabled, select:disabled, textarea:disabled { color: #526274 !important; background: #e8eef5 !important; opacity: 1; }
:is(button, input, select, textarea, a):focus-visible { outline: 3px solid var(--a); outline-offset: 3px; }
.shift.active.day { color: #713f12; background: #fef3c7; border-color: #a16207; }
.shift.active.night { color: #1e40af; background: #dbeafe; border-color: #1d4ed8; }
.viewprintbar, .viewtools, .ph { flex-wrap: wrap; }
.btn.pri:hover { background: var(--shell-brand, #1d4ed8) !important; }
.btn.org:hover { background: #9a3412 !important; }
.btn.primary.myjnia { background: #0f766e; }
.btn.primary.prod { background: #1d4ed8; }
.viewtools > *, .field, .g2 > *, .g3 > *, .g4 > *, .row > * { min-width: 0; }
.viewvalue, .viewtitle, .listrow { overflow-wrap: anywhere; }
#runtimeInfo { overflow-wrap: anywhere; }
.tablewrap { max-width: 100%; overflow-x: auto; }
.viewsection .g2 { overflow-x: auto; }
.draft-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; margin-bottom: 12px; background: #fff7ed; color: #7c2d12; border: 1px solid #c2410c; border-radius: 10px; }
#toast { position: fixed; z-index: 20000; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: min(680px, calc(100vw - 32px)); padding: 14px 20px; border-radius: 10px; background: #10202b; color: white; visibility: hidden; opacity: 0; pointer-events: none; white-space: normal; }
#toast.show { visibility: visible; opacity: 1; }
#toast, #toast.show { right: auto; transform: translateX(-50%); }
#materials_container .material-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)) !important; }
.cube-row { grid-template-columns: minmax(140px, 2fr) minmax(100px, 1fr) minmax(110px, 1fr) minmax(180px, 2fr) 36px; }
#nav { height: auto; min-height: 66px; flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
#nav .tabs { min-width: 0; }
.page { padding-top: calc(var(--nav-height, 66px) + 20px); }
.page.viewbox { padding-top: 20px; }
body { font-size: var(--fs-base, 16px) !important; }
input, select, textarea { font-size: var(--fs-input, 16px) !important; }
.field label { font-size: var(--fs-label, 12px) !important; }
.btn { font-size: var(--fs-btn, 14px) !important; }
.tab { font-size: var(--fs-tab, 14px) !important; }
.pt { font-size: var(--fs-title, 16px) !important; }
.tbl, .tbl th, .tbl td, .viewtable, .viewtable th, .viewtable td { font-size: var(--fs-base, 14px) !important; }
#toast.error { background: #991b1b !important; color: white !important; }
#toast.success { background: #115e59 !important; color: white !important; }
@media (max-width: 1000px) {
  .g4, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .g2, .g3, .g4, .g6, .mg { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr) !important; }
  .page { padding-left: 12px; padding-right: 12px; }
}
@media print { #toast, .draft-notice { display: none !important; } }
