/* The back-office's look: ToolKo's colors and type (the « Cockpit » direction, 19/11). */
:root {
  --ground: #F3EEE6;
  --paper: #FBF8F3;
  --sand: #E9E1D5;
  --line: #E4DCCF;
  --ink: #2A241D;
  --ink-soft: #5E5346;
  --clay: #A84A14;
  --clay-deep: #7E360D;
  --clay-soft: #F6DED3;
  --sage-deep: #2F5238;
  --sage-dot: #3E7A4D;
  --mist: #E3EBE2;
  --mustard: #E3A82B;
  --mustard-deep: #6B4A06;
  --mustard-soft: #F6E7C4;
  --bar: #E4CDBE;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.45 'DM Sans', system-ui, sans-serif; }
a { color: var(--clay); }
a:hover { color: var(--clay-deep); }
h1, h2 { font-family: 'Bricolage Grotesque', sans-serif; margin: 0; }
h2 { font-size: 21px; }
button { font: 700 13px 'DM Sans', sans-serif; cursor: pointer; }
[hidden] { display: none !important; }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.page { max-width: 1360px; margin: 0 auto; padding: 24px 20px 48px; display: flex; flex-direction: column; gap: 22px; }
#main { display: flex; flex-direction: column; gap: 18px; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand b { display: block; font: 800 22px/1 'Bricolage Grotesque', sans-serif; letter-spacing: -0.4px; }
.brand small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--ink-soft); }
.find { flex: 1 1 260px; max-width: 420px; }
.find input { width: 100%; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font: 500 14px 'DM Sans', sans-serif; color: var(--ink); }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--mustard); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink); }

.periods { display: flex; padding: 4px; border-radius: 999px; background: var(--sand); }
.periods button { border: 0; min-height: 36px; padding: 0 14px; border-radius: 999px; background: transparent; color: var(--ink-soft); }
.periods button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(42, 36, 29, 0.12); }

.status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 18px; border-radius: 18px; background: var(--mist); color: var(--sage-deep); font-size: 14px; }
.status.bad { background: var(--clay-soft); color: var(--clay-deep); }
.status b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage-dot); }
.status.bad .dot { background: var(--clay); }
.status .end { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.tile { padding: 18px; border-radius: 22px; background: var(--paper); display: flex; flex-direction: column; gap: 6px; }
.tile span { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.tile strong { font: 800 38px/1 'Bricolage Grotesque', sans-serif; }
.tile small { font-size: 13px; color: var(--ink-soft); }
.tile.alert { background: var(--clay-soft); }
.tile.alert span, .tile.alert strong, .tile.alert small { color: var(--clay-deep); }
.gauge { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.gauge i { display: block; height: 100%; background: var(--clay); }

.split { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.wide { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.side { flex: 1 1 330px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.card { padding: 20px; border-radius: 26px; background: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 8px 10px; color: var(--ink-soft); font-size: 12px; letter-spacing: 0.6px; font-weight: 700; }
td { padding: 11px 10px; border-top: 1px solid var(--line); }
td.num, th.num { text-align: right; }
td a.row { color: var(--ink); font-weight: 700; text-decoration: none; }
td a.row:hover { text-decoration: underline; }
tr.total td { border-top: 2px solid var(--ink); font-weight: 700; }

.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.pill.good { background: var(--mist); color: var(--sage-deep); }
.pill.wait { background: var(--mustard-soft); color: var(--mustard-deep); }
.pill.bad { background: var(--clay-soft); color: var(--clay-deep); }
.pill.plain { background: var(--sand); color: var(--ink); }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.bars i { flex: 1; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--bar); }
.bars i:last-child { background: var(--clay); }
.legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); }

.watch { padding: 14px; border-radius: 18px; display: flex; flex-direction: column; gap: 8px; }
.watch.bad { background: var(--clay-soft); color: var(--clay-deep); }
.watch.wait { background: var(--mustard-soft); color: var(--mustard-deep); }
.watch.plain { background: var(--ground); }
.watch b { font-size: 15px; }
.watch small { font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn { border: 0; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--ground); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font: 700 13px 'DM Sans', sans-serif; }
a.btn:hover { color: inherit; }
.btn.clay { background: var(--clay); color: var(--paper); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.confirm { background: var(--clay-deep); color: var(--paper); }
.btn:disabled { opacity: 0.5; cursor: default; }
.link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; font-weight: 700; font-size: 13px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 14px; }
.switch b { font-weight: 700; }
.switch span { color: var(--ink-soft); }

.hero { padding: 24px; border-radius: 28px; background: var(--clay); color: var(--paper); display: flex; flex-direction: column; gap: 16px; }
.hero.dark { background: var(--ink); color: var(--ground); }
.hero h1 { font-size: 38px; letter-spacing: -0.6px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; opacity: 0.88; }
.hero a { color: inherit; font-weight: 700; }
.hero .btn.ghost { border-color: rgba(251, 248, 243, 0.6); color: inherit; }
.line-item { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.line-item:first-of-type { border-top: 0; }
.when { width: 92px; flex: none; font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.quote { margin: 0; font-size: 16px; line-height: 1.5; }
.muted { color: var(--ink-soft); font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.field input { min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--ground); font: 500 15px 'DM Sans', sans-serif; color: var(--ink); }
.danger { border: 2px solid var(--clay); }
.danger h2 { color: var(--clay-deep); }
.danger ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

.center { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.center h1 { font-size: 34px; }
.notice { padding: 12px 16px; border-radius: 14px; background: var(--clay-soft); color: var(--clay-deep); font-weight: 700; font-size: 14px; }
.foot { margin: 0; font-size: 12px; color: var(--ink-soft); }
