/* orbit-classic.css v1.4 (2026-11-07; v1.4: row hover beats zebra rows; v1.3: all section boxes as wide as the widest one, ending on one line; v1.2: each section box as wide as its fields, same gap left and right; v1.1: section boxes line up with the grid's left and right edges) v1.0 (2026-11-03, Joseph: "a theme for Orbit where the sections are visible, the grids and the text have the
   lines like standard apps"). Atmosphere "Orbit Classic" (data-theme="orbit-classic"): the Orbit skin (same colors) on the shared
   Orbit layout (orbit-layout.css), plus three things only this theme has:
     - every section in a visible box (reading and editing), its title on the box's top line
     - grids with full lines: border all round, shaded header row, lines between columns and rows, light alternate rows
     - a box around every value while reading (standard text fields), not only the line under it
   The Orbit theme and the other themes are not affected (every rule is scoped to orbit-classic). Linked after orbit-layout.css.
   The :not(#ocN) chains give these rules the weight to beat the layout's own :not(#oms-xN) chains. */

/* ---- the Orbit skin, same colors (copied from orbit-theme.css v7.0) */
[data-theme="orbit-classic"]{color-scheme:dark;--t-bg:#08090b;--t-surface:#0d0e11;--t-raised:#14161a;--t-inset:#0a0b0d;--t-border:#37393e;--t-text:#d8d9d5;--t-strong:#f0f0ec;--t-muted:#9c9da2;--t-faint:#8b8c91;--t-accent:#d9b68d;--t-accent-ink:#e4c7a3;--t-selected:#232a31;--t-button:#1a1c20;--t-button-text:#f0f0ec;--t-warm-bg:#282116;--t-warm:#e6c995;--t-warm-border:#75613c;--t-good-bg:#13271e;--t-good:#9ed0b2;--t-good-border:#3e6f50;--t-bad-bg:#2f181b;--t-bad:#e7a4ab;--t-bad-border:#77464c;--t-shadow:#00000060;--t-glow:transparent;--t-grid:transparent;--line:#37393e}
[data-theme="orbit-classic"] body{background:#08090b;background-image:none;color:#f0f0ec;font-family:'Segoe UI',Arial,sans-serif}
[data-theme="orbit-classic"] body::before,[data-theme="orbit-classic"] body::after,[data-theme="orbit-classic"] header::after,[data-theme="orbit-classic"] h1::after{display:none}
[data-theme="orbit-classic"] header,[data-theme="orbit-classic"] nav,[data-theme="orbit-classic"] .commandbar,[data-theme="orbit-classic"] #clientStrip,[data-theme="orbit-classic"] footer{background:#08090b;background-image:none;box-shadow:none;border-color:#37393e}
[data-theme="orbit-classic"] .panel,[data-theme="orbit-classic"] .metric{background:transparent;border-color:#37393e;box-shadow:none}
[data-theme="orbit-classic"],[data-theme="orbit-classic"] :is(main, dialog, #minimalMoreMenu, #officerMenu){--o-page:#08090b;--o-surface-glass:#0d0e11eb;--o-surface:#0d0e11;--o-strong:#f0f0ec;--o-text:#d8d9d5;--o-accent:#d9b68d;--o-legend:#a8987f;--o-line-strong:#45474d;--o-border:#37393e;--o-line:#303238;--o-bar-edge:#1b1e23;--o-muted:#9c9da2;--o-faint:#8b8c91;--o-grip:#8d8f95;--o-dim:#6b6d73;--o-label:#b7bac2;--o-count-text:#c9c9c4;--o-hover:#15191e;--o-selected:#232a31;--o-raised:#1a1c20;--o-count-bg:#16181c;--o-button:#111317;--o-button-hover:#1a1d22;--o-bar:#101216;--o-bar-edit:#17150f;--o-bar-edit-edge:#3a3122;--o-red:#ef8f8f;--o-red-line:#5a3134;--o-green:#8fd19e;--o-green-line:#2f5238;--o-blue:#8fc1f0;--o-blue-line:#2c4766}
html[data-theme="orbit-classic"] #tree summary:not(#oms-x1):not(#oms-x2){color:#e6e1d8!important}

/* ---- sections: a visible box around each section, reading and editing (standard "group box"); the title sits on the top line */
html[data-theme="orbit-classic"] body.oms-flat #content #rsDetail fieldset:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7),
html[data-theme="orbit-classic"] body.oms-flat #content :is(#toolForm, .sum-screen) fieldset:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){border:1px solid var(--o-line-strong)!important;border-radius:8px!important;background:color-mix(in srgb, var(--o-surface) 60%, transparent)!important;padding:10px 18px 14px!important;margin:0 0 14px!important;box-shadow:none!important}
html[data-theme="orbit-classic"] body.oms-flat #content #rsDetail fieldset:first-of-type:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){margin-top:10px!important}
html[data-theme="orbit-classic"] body.oms-flat #content #rsDetail fieldset>legend:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7),
html[data-theme="orbit-classic"] body.oms-flat #content :is(#toolForm, .sum-screen) fieldset>legend:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){margin:0 0 0 -6px!important;padding:0 8px!important;font-size:15px!important}

/* v1.1 (Joseph: line the boxes up with the grid): the detail loses its side padding, so the section boxes start and end
   exactly where the grid and the title bar do */
html[data-theme="orbit-classic"] body.oms-flat #content #rsDetail>.detailbody:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){padding-left:0!important;padding-right:0!important;margin-left:-1px!important;margin-right:-1px!important}

/* v1.3 (Joseph: every box on a form ends at the same line, the right edge of the widest box; the same gap on both sides):
   the form is as wide as its widest section (fields + 19px each side) and every section box fills that width.
   Check box columns (Read / Write / Speak) take only the width of their label, so their values stay inside the box. */
html[data-theme="orbit-classic"] body.oms-flat #content #rsDetail>.detailbody:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){width:fit-content!important;max-width:calc(100% + 2px)!important}
html[data-theme="orbit-classic"] body.oms-flat #content #rsDetail .rs-labels-left[style*="repeat("]>div+div:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){grid-template-columns:auto minmax(0,1fr)!important}

/* ---- grids: full lines like standard apps: a border all round, a shaded header row, lines between columns and rows */
html[data-theme="orbit-classic"] :is(#content,dialog) :is(.tablewrap,.advanced-table,.tablewrap.oms-grid-box):not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){border:1px solid var(--o-line-strong)!important;border-radius:6px!important;overflow:auto}
html[data-theme="orbit-classic"] :is(#content,dialog) table thead th:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){background:var(--o-raised)!important;color:var(--o-strong)!important;box-shadow:inset 0 -1px 0 var(--o-line-strong)!important;border-right:1px solid var(--o-line)!important}
html[data-theme="orbit-classic"] :is(#content,dialog) table td:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){border-top:1px solid var(--o-line)!important;border-right:1px solid var(--o-line)!important}
html[data-theme="orbit-classic"] :is(#content,dialog) table :is(th,td):last-child:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){border-right:0!important}
html[data-theme="orbit-classic"] :is(#content,dialog) table tbody tr:first-child td:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){border-top:0!important}
html[data-theme="orbit-classic"] :is(#content,dialog) table tbody tr:nth-child(even):not(.selected):not([aria-selected="true"]) td:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){background:color-mix(in srgb, var(--o-surface) 70%, var(--o-raised))}

/* ---- text fields: a box around every value, also while reading (not only the line under it) */
html[data-theme="orbit-classic"] body.oms-flat #content #rsDetail:not(:has(button[type="submit"][form="rsForm"])) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea):disabled:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){border:1px solid var(--o-line)!important;border-radius:4px!important;background:color-mix(in srgb, var(--o-page) 70%, transparent)!important;padding-left:8px!important}
html[data-theme="orbit-classic"] body.oms-flat #content #rsDetail:not(:has(button[type="submit"][form="rsForm"])) .rs-labels-left>div>label.rs-check:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7)::after{border:1px solid var(--o-line);border-radius:4px;padding:3px 8px;background:var(--o-page);margin:2px 0}
html[data-theme="orbit-classic"] body.oms-flat #content #rsDetail:not(:has(button[type="submit"][form="rsForm"])) textarea:disabled:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){padding:6px 8px!important}
html[data-theme="orbit-classic"] body.oms-flat #content .rs-labels-left>div:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){row-gap:0;margin-bottom:4px}

/* hover wins over zebra rows on every grid row (2026-11-07) */
html[data-theme="orbit-classic"] :is(#content,dialog) table tbody tr:nth-child(n):hover:not(.selected):not([aria-selected="true"]) td:not(#oc1):not(#oc2):not(#oc3):not(#oc4):not(#oc5):not(#oc6):not(#oc7){background:var(--o-hover)}
