/* screen-style.css v2.2 (2026-11-27, Joseph, universal: "the stamped watermark on the forms should have one border line not 3"): both stamps (the page stamp and the record stamp on section screens) have ONE 4px line; they had a double line plus an outline. */
/* screen-style.css v2.1 (2026-11-24: grids and Summary tiles see-through on stamped client screens, see the stamp section) v2.0 (2026-11-03: one layout for every theme, LCARS included: the shared grid/label rules no longer skip LCARS; the breadcrumb and stepper show in every theme through orbit-layout.css) v1.9 (2026-11-03: both stamps use --oms-stamp-opacity (tenant watermark_opacity_percent, default .09) and hide with body.oms-no-stamp (watermark_enabled false)) v1.8 (2026-11-01: watermark stamp more visible, opacity .09 was .05) v1.7 (2026-11-01: screen stepper beside the title, Orbit only for now) v1.6 (2026-11-01: Orbit grid sizes; buttons and colors left as the theme has them) v1.4 (2026-11-01: clean Orbit record screens: plain sans labels, pill buttons, no bars) v1.3 (2026-11-01: simple Orbit grids) v1.2 (2026-11-01: labels the same size as their values) v1.1 (2026-11-01: larger labels on screens and on the Client Info Bar; My Settings > Fonts still overrides) v1.0 (2026-11-01, Joseph): Orbit screen style (with screen-stamp.js).
   Flat screens: no boxes around screens or form sections while reading; boxes come back while a record is edited.
   Watermark stamp: client name + client ID behind every client screen; a full-page section record stamps its own record, case and client. */

/* ---- flat: the panels around screens lose their box */
body.oms-flat #content .panel{background:transparent;border-color:transparent;box-shadow:none;border-radius:0}
body.oms-flat #content .panel::before,body.oms-flat #content .panel::after{display:none}
body.oms-flat #content .tablewrap{border:1px solid var(--t-border);border-radius:6px}

/* ---- reading a record (no Save button on the form): flat sections and plain values with a thin rule under each */
body.oms-flat #rsDetail:not(:has(button[type="submit"][form="rsForm"])) fieldset{border-color:transparent!important;padding:2px 0 8px!important;background:transparent!important}
body.oms-flat #rsDetail:not(:has(button[type="submit"][form="rsForm"])) legend{padding:0;margin-bottom:4px;font:600 11px Consolas,monospace;letter-spacing:1.4px;text-transform:uppercase;color:var(--t-accent)}
body.oms-flat #rsDetail:not(:has(button[type="submit"][form="rsForm"])) :is(input,select,textarea):disabled{border:0!important;border-bottom:1px solid var(--t-border)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--t-strong)!important;-webkit-text-fill-color:var(--t-strong);opacity:1!important;padding-left:2px}
body.oms-flat #rsDetail:not(:has(button[type="submit"][form="rsForm"])) select:disabled{appearance:none;-webkit-appearance:none;background-image:none!important}
body.oms-flat #rsDetail:not(:has(button[type="submit"][form="rsForm"])) input[type="checkbox"]:disabled,body.oms-flat #rsDetail:not(:has(button[type="submit"][form="rsForm"])) input[type="radio"]:disabled{border:revert!important;appearance:auto}

/* ---- the client stamp behind client screens (Orbit v1.10) */
body.oms-flat #content[data-stamp]{position:relative;isolation:isolate}
body.oms-flat #content[data-stamp]::after{content:attr(data-stamp);position:fixed;left:calc(50% + 120px);top:60%;transform:translate(-50%,-50%) rotate(-10deg);z-index:-1;white-space:pre-line;text-align:center;padding:18px 30px;border:4px solid currentColor;border-radius:12px;outline:0;font:900 clamp(30px,4.6vw,72px)/1.25 'Arial Black','Segoe UI Black',Impact,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:var(--t-accent);opacity:var(--oms-stamp-opacity,.09);pointer-events:none;user-select:none}
/* a record open as a full page carries its own stamp */
body.oms-flat #content.ws-on.ws-page:not(.ws-tucked):not(.ws-closed)[data-stamp]::after{display:none}
@media print{body.oms-flat #content[data-stamp]::after{opacity:.08}}

/* ---- the record stamp (section-workspace.js v4.3): record + number, case, client, as an inked stamp */
body.oms-flat #content.ws-on .ws-sheet>.ws-mark{left:auto;right:5%;top:150px;width:min(72%,760px);transform:rotate(-9deg);box-sizing:border-box;padding:18px 24px;border:4px solid currentColor;border-radius:10px;outline:0;font:900 clamp(22px,3.4vw,54px)/1.3 'Arial Black','Segoe UI Black',Impact,sans-serif;letter-spacing:.035em;text-transform:uppercase;white-space:pre-line;opacity:var(--oms-stamp-opacity,.09)}
body.oms-flat #content.ws-on .ws-sheet>.ws-mark:empty{display:none}
/* v1.9: the tenant turned the watermark off (api_settings watermark_enabled = false) */
body.oms-no-stamp #content[data-stamp]::after,body.oms-no-stamp #content .ws-mark{display:none!important}
/* v2.1 (2026-11-24, Joseph chose "Behind everything, shows evenly"): the client stamp showed through boxes and labels but not grids
   or the Client Summary tiles, which had a solid background. On a stamped client screen those large surfaces are now see-through
   like the boxes, so the stamp shows the same way behind all text. Kept solid: the pinned title/button bar, column headings,
   selected rows, entry fields, buttons and cards (they must stay readable or cover rows scrolling under them). */
body.oms-flat:not(.oms-no-stamp) #content[data-stamp] :is(.tablewrap,.c360-tile,.c360-col,.c360-strip,.c360-pending,.crd-mini-box){background:transparent!important}

/* v1.1 (Joseph 2026-11-01): a bit larger labels. Screens' field labels 12px (were about 9-10px), Client Info Bar labels 11px. */
body.oms-flat #content :is(.formgrid label,.rs-labels-left label,.field label,fieldset label,.rs-form label){font-size:14px}   /* v1.2: same as the values (inputs use the 14px body font) */
body.oms-flat #clientStrip :is(.strip-label,.strip-item>span:first-child){font-size:13px}   /* v1.2: same as the bar's values (13px) */
/* v1.3 (Joseph 2026-11-01, "make the grids simple like Orbit"): one thin rounded border, plain header row (normal font, no letter
   spacing), 14px rows with a thin line between them, selected row tinted with an accent bar on the left. LCARS keeps its own look. */
html[data-theme] body.oms-flat #content :is(.tablewrap,.advanced-table){border:1px solid var(--t-border);border-radius:6px;background:transparent;box-shadow:none}
html[data-theme] body.oms-flat #content table th{font:500 13px 'Segoe UI',Arial,sans-serif;letter-spacing:0;padding:7px 10px;color:var(--t-muted);background:var(--t-raised,var(--t-surface));border-bottom:1px solid var(--t-border);text-align:left}
html[data-theme] body.oms-flat #content table td{font-size:14px;padding:6px 10px;border-bottom:0;border-top:1px solid var(--t-border);color:var(--t-text)}
html[data-theme] body.oms-flat #content table tbody tr:first-child td{border-top:0}
html[data-theme] body.oms-flat #content table tbody tr:hover td{background:var(--t-selected,transparent)}
html[data-theme] body.oms-flat #content table tbody tr:is(.selected,[aria-selected="true"]) td{background:var(--t-selected,transparent)}
html[data-theme] body.oms-flat #content table tbody tr:is(.selected,[aria-selected="true"]) td:first-child{box-shadow:inset 3px 0 var(--t-accent)}
/* v1.4 (Joseph 2026-11-01, "our grids seem too much, I want a cleaner look", Orbit): on record screens the typewriter capitals go
   (labels, box titles, counts read as plain text), buttons become soft pills, the grid header row is a quiet grey band and the
   record's button bar loses its box. Not on LCARS. */
html[data-theme] body.oms-flat #content :is(legend,label,.rs-labels-left label,.formgrid label,.field label){font-family:'Segoe UI',Arial,sans-serif!important;text-transform:none!important;letter-spacing:0!important}
html[data-theme] body.oms-flat #content legend{font-size:15px!important;font-weight:600!important;color:var(--t-strong)!important;padding:0 0 4px}
html[data-theme] body.oms-flat #content .rs-labels-left label{color:var(--t-muted)}
html[data-theme] body.oms-flat #content .toolbar h2{font-size:18px;font-weight:600;letter-spacing:0}
html[data-theme] body.oms-flat #content .toolbar h2 .count{background:none;border:0;padding:0;font:400 14px 'Segoe UI',Arial,sans-serif;letter-spacing:0;color:var(--t-muted)}
html[data-theme] body.oms-flat #content .toolbar h2 .count::before{content:'('}
html[data-theme] body.oms-flat #content .toolbar h2 .count::after{content:')'}
html[data-theme] body.oms-flat #content .buttonrow{background:transparent!important;border:0!important;box-shadow:none!important;padding:8px 0}
html[data-theme] body.oms-flat #content table td{color:var(--t-strong,var(--t-text))}
/* v1.5 (Joseph 2026-11-01, "make the grids we have look like this ... forget the buttons ... forget the color"): Orbit's grid sizes only.
   Header 13px with room around it, rows 15px with a hairline between them, an em dash in empty cells. Buttons and colors stay the theme's. */
html[data-theme] body.oms-flat #content table th{padding:9px 14px}
html[data-theme] body.oms-flat #content table td{font-size:15px;padding:7px 14px}
html[data-theme] body.oms-flat #content table.rs-table td:empty:not(:last-child)::before,html[data-theme] body.oms-flat #content table.case-parent-table td:empty::before{content:'—';color:var(--t-muted)}
html[data-theme] body.oms-flat #content .toolbar h2.ws-child-title{font-size:16px}

/* v1.6 (2026-11-01): the tree-folder breadcrumb in front of the screen title (screen-stamp.js v1.1); hidden until orbit-layout.css shows it (every theme since v2.0) */
.oms-crumb{display:none}
.oms-step,.oms-step-menu{display:none}
