/* The pages of «سامانه درخواست‌های ضروری خرید دریا». Four themes, chosen by each person in the header (User.theme):
     classic  the system's own look (navy header), the default
     sand     warm sand and cream, a dark earth header and terracotta accents (the land; ocean is the sea)
     dark     deep blue-black surfaces, high contrast, bright blue accents
     ocean    glass cards over a deep-sea gradient in the company's blue and coral
   Every colour below is a token of the theme; the rules after the themes use only the tokens. */
:root, [data-theme="classic"] {
  color-scheme: light;
  --page: #f6f7f9; --page-bg: #f6f7f9;
  --surface: #ffffff; --surface2: #f8fafd; --field: #ffffff; --chip: #eef0f4;
  --ink: #1f2937; --ink2: #4b5563; --muted: #6b7280; --line: #e3e6ec; --line2: #c9ced8;
  --navy: #203f78; --blue: #2c55a3; --bright: #376dcf; --link: #2c55a3; --on-accent: #ffffff;
  --tint: #eaf0fa; --tint2: #d5e0f5; --mid: #9db5e4;
  --red: #c53038; --redt: #fbe9ea; --redl: #f0c4c7; --good: #1d7a46; --goodt: #e6f4ec; --goodl: #bfe3cd; --warn: #9a6400; --warnt: #fdf3dc; --warnl: #f1dca6;
  --head-bg: linear-gradient(90deg, #1a3466 0%, #203f78 55%, #25498c 100%); --head-ink: #ffffff; --head-ink2: #dce5f5; --head-hover: rgba(255, 255, 255, .14);
  --head-line: transparent; --head-blur: none; --mark-bg: #ffffff; --badge-bg: #ffffff; --badge-ink: #203f78; --head-btn: rgba(255, 255, 255, .45);
  --tile-dark: linear-gradient(135deg, #203f78, #2c55a3); --tile-dark-ink: #ffffff; --tile-dark-ink2: #dce5f5;
  --seg1: #c9d8f2; --seg2: #8fade3; --seg3: #5383d6; --seg4: #2c55a3; --seg5: #16294f; --seg6: #d0d4db; --seg-dark-ink: #1f2937; --seg-light-ink: #ffffff;
  --radius: 10px; --radius-s: 7px; --glass: none;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04); --shadow-hover: 0 10px 26px rgba(16, 24, 40, .09);
}
[data-theme="sand"] {
  color-scheme: light;
  --page: #f3ede3;
  --page-bg: radial-gradient(1100px 520px at 100% -8%, #f6e2cf 0%, rgba(246, 226, 207, 0) 60%),
             radial-gradient(900px 520px at -6% 108%, #ece0c6 0%, rgba(236, 224, 198, 0) 60%), #f3ede3;
  --surface: #fffaf3; --surface2: #f8efe3; --field: #fffdf9; --chip: #f1e7d8;
  --ink: #2a1f16; --ink2: #5b4636; --muted: #8b735e; --line: #ebdfcd; --line2: #dbc8ab;
  --navy: #b4532a; --blue: #973f1c; --bright: #d9692f; --link: #a94a22; --on-accent: #ffffff;
  --tint: #fbeadf; --tint2: #f4cdb5; --mid: #e3a17b;
  --red: #b42318; --redt: #fdecea; --redl: #f5c2bc; --good: #3f7a2c; --goodt: #edf5e6; --goodl: #c8e0b6; --warn: #9a6a00; --warnt: #fbf1d8; --warnl: #ecd59a;
  --head-bg: linear-gradient(90deg, #2d2017 0%, #3d2a1c 55%, #4a3221 100%); --head-ink: #fff6ea; --head-ink2: #e6d3bd; --head-hover: rgba(255, 236, 210, .12);
  --head-line: transparent; --head-blur: none; --mark-bg: #ffffff; --badge-bg: #d9692f; --badge-ink: #ffffff; --head-btn: rgba(255, 236, 210, .4);
  --tile-dark: linear-gradient(135deg, #c25b2c 0%, #7c3a1d 100%); --tile-dark-ink: #ffffff; --tile-dark-ink2: #fde3d0;
  --seg1: #f2dcc4; --seg2: #e5b78f; --seg3: #d48a57; --seg4: #b4532a; --seg5: #5b2d16; --seg6: #e4dccf; --seg-dark-ink: #2a1f16; --seg-light-ink: #ffffff;
  --radius: 12px; --radius-s: 8px; --glass: none;
  --shadow: 0 1px 2px rgba(80, 50, 20, .05), 0 4px 16px rgba(80, 50, 20, .05); --shadow-hover: 0 14px 32px rgba(80, 50, 20, .13);
}
[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b0f17; --page-bg: radial-gradient(1000px 480px at 100% -8%, rgba(79, 124, 255, .13) 0%, rgba(79, 124, 255, 0) 62%), #0b0f17;
  --surface: #111826; --surface2: #172133; --field: #0d1420; --chip: #1a2334;
  --ink: #e6ebf5; --ink2: #b4bfd3; --muted: #8592aa; --line: #1f2a3c; --line2: #2c3850;
  --navy: #4f7cff; --blue: #6b93ff; --bright: #6b93ff; --link: #8aabff; --on-accent: #ffffff;
  --tint: rgba(79, 124, 255, .14); --tint2: rgba(79, 124, 255, .34); --mid: #3a5bb6;
  --red: #ff7373; --redt: rgba(255, 115, 115, .12); --redl: rgba(255, 115, 115, .34); --good: #4ade80; --goodt: rgba(74, 222, 128, .1); --goodl: rgba(74, 222, 128, .3);
  --warn: #fbbf24; --warnt: rgba(251, 191, 36, .1); --warnl: rgba(251, 191, 36, .3);
  --head-bg: rgba(11, 15, 23, .82); --head-ink: #eef2fa; --head-ink2: #9aa7bf; --head-hover: rgba(255, 255, 255, .07);
  --head-line: #1f2a3c; --head-blur: blur(14px) saturate(160%); --mark-bg: #ffffff; --badge-bg: #4f7cff; --badge-ink: #ffffff; --head-btn: #2c3850;
  --tile-dark: linear-gradient(135deg, #2346a8 0%, #4a2fa3 100%); --tile-dark-ink: #ffffff; --tile-dark-ink2: #cfd9ff;
  --seg1: #22355c; --seg2: #2c4f97; --seg3: #3e6be0; --seg4: #5b8cff; --seg5: #9fbcff; --seg6: #2a3346; --seg-dark-ink: #e6ebf5; --seg-light-ink: #ffffff;
  --radius: 12px; --radius-s: 8px; --glass: none;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 6px 22px rgba(0, 0, 0, .28); --shadow-hover: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 16px 38px rgba(0, 0, 0, .45);
}
[data-theme="ocean"] {
  color-scheme: dark;
  --page: #061028;
  --page-bg: radial-gradient(900px 620px at 88% -12%, rgba(64, 140, 255, .34) 0%, rgba(64, 140, 255, 0) 62%),
             radial-gradient(760px 560px at -4% 104%, rgba(255, 90, 79, .16) 0%, rgba(255, 90, 79, 0) 58%),
             linear-gradient(160deg, #061028 0%, #0a1f45 52%, #04122a 100%);
  --surface: rgba(255, 255, 255, .065); --surface2: rgba(255, 255, 255, .1); --field: rgba(6, 16, 40, .55); --chip: rgba(255, 255, 255, .08);
  --ink: #eef4ff; --ink2: #c5d3ee; --muted: #93a8cf; --line: rgba(255, 255, 255, .1); --line2: rgba(255, 255, 255, .19);
  --navy: #3d8bff; --blue: #5aa0ff; --bright: #5aa0ff; --link: #9ccbff; --on-accent: #ffffff;
  --tint: rgba(61, 139, 255, .17); --tint2: rgba(61, 139, 255, .38); --mid: #2f6fd6;
  --red: #ff8a7a; --redt: rgba(255, 90, 79, .14); --redl: rgba(255, 120, 105, .38); --good: #5be3a1; --goodt: rgba(91, 227, 161, .11); --goodl: rgba(91, 227, 161, .32);
  --warn: #ffcf70; --warnt: rgba(255, 207, 112, .11); --warnl: rgba(255, 207, 112, .32);
  --head-bg: rgba(6, 16, 40, .5); --head-ink: #ffffff; --head-ink2: #c5d3ee; --head-hover: rgba(255, 255, 255, .1);
  --head-line: rgba(255, 255, 255, .08); --head-blur: blur(18px) saturate(160%); --mark-bg: #ffffff; --badge-bg: #ff5a4f; --badge-ink: #ffffff; --head-btn: rgba(255, 255, 255, .3);
  --tile-dark: linear-gradient(135deg, #2f6fe8 0%, #6a4fd6 55%, #ff5a4f 130%); --tile-dark-ink: #ffffff; --tile-dark-ink2: #e3ecff;
  --seg1: rgba(140, 190, 255, .28); --seg2: rgba(90, 160, 255, .5); --seg3: #3d8bff; --seg4: #2a63d6; --seg5: #ff6b5b; --seg6: rgba(255, 255, 255, .14); --seg-dark-ink: #eef4ff; --seg-light-ink: #ffffff;
  --radius: 16px; --radius-s: 10px; --glass: blur(14px) saturate(140%);
  --shadow: 0 10px 30px rgba(0, 0, 0, .22); --shadow-hover: 0 18px 44px rgba(0, 0, 0, .38), 0 0 0 1px rgba(140, 200, 255, .12);
}

* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; background: var(--page-bg); background-attachment: fixed; color: var(--ink); font-family: "Vazirmatn", Tahoma, "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.8; min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--tint2); }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 2px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }

/* header: stays at the top while the page scrolls (on wide screens; on phones it wraps over several lines) */
.top { position: relative; z-index: 50; background: var(--head-bg); color: var(--head-ink); border-bottom: 1px solid var(--head-line);
  -webkit-backdrop-filter: var(--head-blur); backdrop-filter: var(--head-blur); }
@media (min-width: 900px) { .top { position: sticky; top: 0; } }
.top .in { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 22px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 15px; color: var(--head-ink); }
.brand:hover { text-decoration: none; opacity: .9; }
.top nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.top nav a { color: var(--head-ink2); padding: 6px 12px; border-radius: var(--radius-s); transition: background .2s, color .2s; }
.top nav a:hover, .top nav a.on { background: var(--head-hover); color: var(--head-ink); text-decoration: none; }
.top nav a.on { font-weight: 600; box-shadow: inset 0 -2px 0 var(--bright); }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--head-ink2); }
.who a { color: var(--head-ink); }
.who form { margin: 0; }
.linkbtn { background: none; border: 1px solid var(--head-btn); color: var(--head-ink); border-radius: var(--radius-s); padding: 3px 10px; font: inherit; cursor: pointer; transition: background .2s; }
.linkbtn:hover { background: var(--head-hover); }

/* the theme picker in the header */
.theme-pick { position: relative; }
.theme-pick summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--head-btn); color: var(--head-ink); transition: background .2s, transform .2s; }
.theme-pick summary::-webkit-details-marker { display: none; }
.theme-pick summary:hover { background: var(--head-hover); transform: rotate(-12deg); }
.theme-pick summary svg { width: 17px; height: 17px; }
.theme-pick form { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 210px; padding: 8px; display: grid; gap: 2px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover);
  -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); animation: pop .18s ease-out; }
[data-theme="ocean"] .theme-pick form { background: rgba(10, 25, 58, .98); }
.theme-pick:not([open]) form { display: none; }
@media (max-width: 899px) { .theme-pick form { position: fixed; top: 64px; left: 12px; right: 12px; min-width: 0; } }
.theme-pick .ttl { font-size: 12px; color: var(--muted); padding: 2px 8px 6px; }
.theme-pick button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: var(--radius-s); background: none;
  color: var(--ink); font: inherit; font-size: 13px; text-align: start; cursor: pointer; }
.theme-pick button:hover { background: var(--surface2); }
.theme-pick button.on { background: var(--tint); font-weight: 600; }
.theme-pick button.on::after { content: "✓"; margin-inline-start: auto; color: var(--bright); }
.sw { width: 22px; height: 22px; border-radius: 50%; flex: none; border: 1px solid rgba(127, 127, 127, .35); }
.sw-classic { background: linear-gradient(135deg, #203f78 50%, #f6f7f9 50%); }
.sw-sand { background: linear-gradient(135deg, #f3ede3 50%, #b4532a 50%); }
.sw-dark { background: linear-gradient(135deg, #0b0f17 50%, #4f7cff 50%); }
.sw-ocean { background: linear-gradient(135deg, #0a1f45 0%, #3d8bff 55%, #ff5a4f 100%); }

main { max-width: 1280px; margin: 0 auto; padding: 22px 20px 60px; }
h1 { font-size: 21px; margin: 0 0 4px; letter-spacing: -.2px; }
h2 { font-size: 15px; margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 16px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); transition: box-shadow .25s, border-color .25s; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.grid2 > .card { margin-top: 0; }
.stack { display: grid; gap: 16px; margin-top: 16px; }

.navback { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.navback .btn { padding: 4px 14px; font-size: 13px; }

/* messages */
.msg { border-radius: var(--radius-s); padding: 9px 14px; margin-bottom: 12px; background: var(--goodt); color: var(--good); border: 1px solid var(--goodl); animation: rise .35s ease-out both; }
.msg.error, .errors { background: var(--redt); color: var(--red); border: 1px solid var(--redl); }
.errors { border-radius: var(--radius-s); padding: 8px 12px; margin: 0 0 10px; }
.errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--red); font-size: 12px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--line2); }
.tile.dark { background: var(--tile-dark); border-color: transparent; color: var(--tile-dark-ink); }
.tile.dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px circle at 85% -20%, rgba(255, 255, 255, .22), transparent 60%); }
.tile .l { font-size: 13px; color: var(--ink2); }
.tile .v { font-size: 30px; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.tile .s { font-size: 12px; color: var(--muted); }
.tile.dark .l, .tile.dark .s { color: var(--tile-dark-ink2); }
.tile a { color: inherit; }

/* tables */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: right; font-weight: 600; color: var(--ink2); font-size: 12px; padding: 8px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; transition: background .15s; }
td.n, th.n { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; border-top: 1px solid var(--line2); border-bottom: 0; }
tr.subrow td { font-size: 12px; color: var(--ink2); padding-top: 4px; padding-bottom: 4px; }
tr.subrow td:first-child { padding-right: 24px; }
tbody tr:hover td { background: var(--surface2); }
tbody tr:hover td:first-child { box-shadow: inset -3px 0 0 var(--bright); }
.desc { min-width: 220px; display: inline-block; }
.empty { color: var(--muted); padding: 14px 0; }

/* chips */
.chip { display: inline-block; border-radius: 999px; padding: 0 9px; font-size: 12px; line-height: 1.8; white-space: nowrap; background: var(--chip); color: var(--ink2); border: 1px solid var(--line); }
.chip.p1 { background: var(--tint); color: var(--navy); border-color: var(--tint2); }
.chip.late { background: var(--redt); color: var(--red); border-color: var(--redl); }
.chip.ok { background: var(--goodt); color: var(--good); border-color: var(--goodl); }
.chip.warn { background: var(--warnt); color: var(--warn); border-color: var(--warnl); }

/* bars and columns (they grow in when the page opens) */
.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 210px 1fr 44px; gap: 10px; align-items: center; }
.bar .lab { font-size: 13px; }
.bar .track { height: 14px; display: flex; }
.bar .fill { background: linear-gradient(270deg, var(--blue), var(--bright)); border-radius: 4px 0 0 4px; min-width: 3px; height: 100%; transform-origin: right; animation: grow-x .9s cubic-bezier(.2, .7, .2, 1) both; }
.bar .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.seg { display: flex; gap: 2px; height: 24px; margin: 6px 0 10px; border-radius: 6px; overflow: hidden; animation: rise .6s ease-out both; }
.seg > div, .seg > a { display: flex; align-items: center; justify-content: center; font-size: 12px; min-width: 3px; color: var(--seg-light-ink); text-decoration: none; transition: filter .2s; }
.seg > a:hover { filter: brightness(1.12); }
.seg > a:hover, .seg > a:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.seg .a1, .legend .a1 { background: var(--seg1); color: var(--seg-dark-ink); } .seg .a2, .legend .a2 { background: var(--seg2); color: var(--seg-dark-ink); } .seg .a3, .legend .a3 { background: var(--seg3); }
.seg .a4, .legend .a4 { background: var(--seg4); } .seg .a5, .legend .a5 { background: var(--seg5); } .seg .a6, .legend .a6 { background: var(--seg6); color: var(--seg-dark-ink); }
.legend a { color: inherit; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--ink2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.cols { display: flex; align-items: flex-end; gap: 18px; height: 150px; padding-top: 22px; border-bottom: 1px solid var(--line2); }
.cols .c { flex: 1; max-width: 70px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.cols .c b { font-size: 12px; font-variant-numeric: tabular-nums; }
.cols .c span { width: 100%; background: var(--mid); border-radius: 6px 6px 0 0; min-height: 3px; transform-origin: bottom; animation: grow-y .9s cubic-bezier(.2, .7, .2, 1) both; transition: background .2s; }
.cols .c { color: inherit; text-decoration: none; }
.cols .c:hover span { background: var(--bright); }
.cols .c.on span { background: linear-gradient(180deg, var(--bright), var(--navy)); }
.cols .c.on b { color: var(--navy); }
.colx { display: flex; gap: 18px; font-size: 11px; color: var(--muted); margin-top: 4px; }
.colx div { flex: 1; max-width: 70px; text-align: center; }

/* forms */
form.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; }
form.filters label { display: grid; gap: 2px; font-size: 12px; color: var(--ink2); }
input[type=text], input[type=password], input[type=search], input[type=number], select, textarea { font: inherit; padding: 6px 9px; border: 1px solid var(--line2); border-radius: var(--radius-s); background: var(--field); color: var(--ink); max-width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bright); box-shadow: 0 0 0 3px var(--tint2); }
textarea { width: 100%; }
input.date { width: 120px; text-align: center; }
.btn { font: inherit; border: 1px solid var(--navy); background: var(--navy); color: var(--on-accent); border-radius: var(--radius-s); padding: 6px 16px; cursor: pointer; display: inline-block;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .1s; }
.btn:hover { background: var(--blue); border-color: var(--blue); text-decoration: none; box-shadow: 0 6px 16px var(--tint2); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--surface); color: var(--navy); }
.btn.ghost:hover { background: var(--tint); }
.btn.danger { background: var(--surface); color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--redt); box-shadow: none; }
.check { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 5px !important; font-size: 13px !important; color: var(--ink) !important; padding-bottom: 6px; }
input[type=checkbox], input[type=radio] { accent-color: var(--bright); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 16px; }
.fields label { display: grid; gap: 3px; font-size: 12px; color: var(--ink2); }
.fields label.wide, .fields div.wide { grid-column: 1 / -1; }
.fields div.wide .check { margin-left: 18px; }
.fields input[type=text], .fields select { width: 100%; }
.actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.req { color: var(--red); }

/* detail */
.head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 22px; }
.kv div { border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; border-right: 3px solid var(--tint2); padding: 2px 14px 10px 0; margin-right: 4px; }
.timeline li.action { border-color: var(--blue); }
.timeline li.action::before { content: ""; position: absolute; right: -7.5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 0 3px var(--surface); }
.timeline .meta { font-size: 12px; color: var(--muted); }
.timeline .note { color: var(--ink2); }
details.panel { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; background: var(--surface2); }
details.panel summary { cursor: pointer; font-weight: 600; }

/* sign-in: the rigs of the first page on one side, the form in the chosen theme on the other */
main.auth { max-width: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(360px, 470px) minmax(0, 1fr); min-height: 100vh; }
.auth-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 34px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-logo { display: inline-grid; place-items: center; padding: 8px 11px; margin-bottom: 20px; border-radius: 16px; background: #ffffff; box-shadow: var(--shadow-hover); transition: transform .3s; }
.auth-logo:hover { transform: translateY(-2px); }
.auth-logo img { display: block; width: 74px; height: auto; }
.auth-box h1 { margin: 0 0 2px; font-size: 22px; line-height: 1.6; }
.auth-box > .sub { margin-bottom: 24px; font-size: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.ctl { position: relative; display: flex; align-items: center; }
.ctl > svg { position: absolute; right: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; transition: color .2s; }
.ctl:focus-within > svg { color: var(--bright); }
.ctl input[type=text], .ctl input[type=password] { width: 100%; height: 48px; padding: 0 42px 0 44px; font-size: 15px; font-weight: 400; border-radius: var(--radius-s); }
.eye { position: absolute; left: 7px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.eye:hover { color: var(--ink); background: var(--surface2); }
.eye svg { width: 19px; height: 19px; }
.eye[aria-pressed="true"] .open, .eye:not([aria-pressed="true"]) .shut { display: none; }
.auth-go { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 8px; font-size: 15.5px; font-weight: 600;
  border: 0; background: linear-gradient(135deg, var(--bright), var(--navy)); box-shadow: 0 12px 26px var(--tint2); }
.auth-go:hover { background: linear-gradient(135deg, var(--bright), var(--blue)); }
.auth-go span { transition: transform .25s; }
.auth-go:hover span { transform: translateX(-5px); }
.auth-note { margin: 14px 0 0 !important; font-size: 12px !important; }
.auth-themes { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.auth-themes .sw { padding: 0; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.auth-themes .sw:hover { transform: scale(1.14); }
.auth-themes .sw.on { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--bright); }
.auth .login-back { text-align: start; }
.auth-art { position: relative; overflow: hidden; isolation: isolate; min-height: 100vh;
  background: radial-gradient(120% 80% at 50% 70%, #3a2a55 0%, #0b1d44 46%, #050b1a 100%); }
html:not(.has-3d) .auth-art { background: #0b1d44 url("img/hero-rig.jpg") 40% 50% / cover no-repeat; }
.auth-art canvas { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 11, 26, .92) 0%, rgba(5, 11, 26, .25) 36%, rgba(5, 11, 26, 0) 58%), radial-gradient(140% 110% at 50% 40%, transparent 60%, rgba(0, 0, 0, .45) 100%); }
.auth-art-text { position: absolute; right: 48px; left: 48px; bottom: 44px; max-width: 580px; color: #ffffff; }
.auth-art-text .k { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; padding: 4px 14px; border-radius: 999px; font-size: 12.5px; color: #dbe6ff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.auth-art-text .k i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a4f; box-shadow: 0 0 10px #ff5a4f; }
.auth-art-text h2 { margin: 0 0 8px; color: #ffffff; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.5; text-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
.auth-art-text p { margin: 0; color: #c6d4f2; font-size: 14.5px; line-height: 2; }
@media (max-width: 900px) {
  main.auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { order: -1; min-height: 0; height: 36vh; }
  .auth-art-text { right: 20px; left: 20px; bottom: 16px; }
  .auth-art-text h2 { font-size: 19px; }
  .auth-art-text p { display: none; }
  .auth-panel { align-items: flex-start; padding: 26px 20px 40px; }
}

.pager { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--ink2); font-size: 13px; }
.pager label { display: inline-flex; align-items: center; gap: 6px; }
.pager input[type=number] { width: 76px; padding: 4px 6px; text-align: center; }
.pager .btn { padding: 4px 12px; }
.pager .steps { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.pager .total b { color: var(--ink); }
.grid2 > * { min-width: 0; }
@media (max-width: 720px) {
  .bar { grid-template-columns: 130px 1fr 36px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .card { overflow-x: auto; }  /* a wide table scrolls inside its card instead of widening the page */
  main { padding: 14px 12px 40px; }
}

/* tickets, version */
.top nav .badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--badge-bg); color: var(--badge-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.foot { max-width: 1280px; margin: 0 auto; padding: 0 20px 26px; color: var(--muted); font-size: 12px; }
.release ul { margin: 0; padding: 0 18px 0 0; }
.release li { margin: 3px 0; }
.fields textarea { width: 100%; }
.tile .v a { color: inherit; }
.msg.note { background: var(--tint); color: var(--navy); border-color: var(--tint2); }
.msg.warning { background: var(--warnt); color: var(--warn); border-color: var(--warnl); }

/* the request's step on the flowchart (its page) */
.flowstep .steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flowstep .st { display: inline-grid; gap: 1px; padding: 6px 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface2);
  color: var(--ink2); font: inherit; font-size: 13px; text-align: start; line-height: 1.6; }
.flowstep .st small { font-size: 11.5px; color: var(--muted); }
.flowstep .st.done { opacity: .75; }
.flowstep .st.now { border-color: var(--bright); background: var(--tint); color: var(--ink); box-shadow: 0 0 0 3px var(--tint); }
.flowstep .st.now.late { border-color: var(--red); background: var(--redt); box-shadow: 0 0 0 3px var(--redt); }
.flowstep button.st.next { cursor: pointer; border-style: dashed; transition: border-color .2s, background .2s, transform .2s; }
.flowstep button.st.next:hover { border-color: var(--bright); background: var(--tint); transform: translateY(-1px); }
.flowstep .arrow { font-style: normal; color: var(--muted); }

/* the kind of purchase: a chip on the request and in the list, and the bulk bar of the list */
.chip.kind { background: var(--surface2); color: var(--navy); border-color: var(--bright); border-style: dashed; }
form.bulkbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 0 0 12px; padding: 8px 10px;
  border: 1px dashed var(--line2); border-radius: var(--radius-s); background: var(--surface2); }
form.bulkbar label { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink2); }
th.pick, td.pick { width: 28px; text-align: center; }

/* company logo in the header and on the sign-in page */
.brandbox { display: flex; align-items: center; gap: 10px; }
.brandbox .mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mark-bg); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); transition: transform .3s; }
.brandbox .mark:hover { transform: scale(1.06); }
.brandbox .mark img { width: 30px; height: 30px; }
.login-back { font-size: 13px; margin: 14px 0 0; }

/* the page rises in gently; scroll bars of the dark themes */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
main > * { animation: rise .45s ease-out both; }
main > *:nth-child(2) { animation-delay: .04s; } main > *:nth-child(3) { animation-delay: .08s; } main > *:nth-child(4) { animation-delay: .12s; }
main > *:nth-child(5) { animation-delay: .16s; } main > *:nth-child(n+6) { animation-delay: .2s; }
[data-theme="dark"], [data-theme="ocean"] { scrollbar-color: rgba(255, 255, 255, .22) transparent; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
