[hidden]{display:none!important}
:root{--green:#173e36;--green-light:#e7efea;--ink:#253b35;--muted:#7a8680;--line:#e3e8e2;--paper:#f5f6f1;--accent:#b5c99a;--white:#fff;--radius:13px;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:14px;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #d1a255;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);border-color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1.1px;font-weight:600;line-height:1.25;margin-bottom:10px}h2{font-size:17px;letter-spacing:-.25px;font-weight:600;margin-bottom:20px}h3{font-size:16px}p{line-height:1.65}small{font-size:11px}strong{font-weight:600}.muted,.help,.footnote{color:var(--muted)}.help{font-size:12px;line-height:1.6;margin:14px 0}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#7e8a6e;margin-bottom:13px}.app-shell{display:grid;grid-template-columns:244px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--green);color:#ebf0e5;display:flex;flex-direction:column;padding:34px 20px 20px}.brand{display:flex;align-items:center;gap:12px;font-size:29px;letter-spacing:-1px;font-weight:600}.brand-mark{width:40px;height:40px;background:#c9d6b6;color:var(--green);border-radius:50%;display:grid;place-items:center;font:italic 32px Georgia,serif}.brand small{display:block;font-size:7px;letter-spacing:1.4px;font-weight:500;margin-top:1px}.workspace{border-top:1px solid #ffffff22;border-bottom:1px solid #ffffff22;margin:35px 0 22px;padding:20px 8px;font-size:12px;font-weight:600;letter-spacing:1.2px}.workspace span{display:block;color:#a6b8a8;font-size:11px;font-weight:400;letter-spacing:0;margin-top:8px}nav{display:grid;gap:7px}nav a{padding:14px 12px;border-radius:7px;display:flex;align-items:center;gap:12px;font-size:18px;color:#c1cfc5}nav a span{font-size:12px;font-weight:500}nav a.current,nav a:hover{background:#ffffff10;color:#edf5df}nav a.current{box-shadow:inset 3px 0 var(--accent)}.sidebar-bottom{margin-top:auto;display:flex;gap:10px;align-items:center;font-size:11px;padding-top:25px}.sidebar-bottom small{display:block;color:#9eb3a6;margin-top:5px;font-size:10px}.avatar{height:32px;width:32px;background:#426154;border-radius:50%;display:grid;place-items:center}.logout{background:none;border:0;color:#c8d7cd;font-size:20px}.sidebar-bottom form{margin-left:auto}main{min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 40px;background:#fafbf7;font-size:11px;font-weight:600;letter-spacing:.5px}.topbar .muted{font-weight:400;letter-spacing:0;margin-left:8px}.date-label{color:var(--muted);font-weight:400}.main-content{max-width:1600px;margin:auto;padding:38px 40px 50px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-heading p:last-child{margin-bottom:0;font-size:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--green);border-radius:7px;background:var(--green);color:#fff;padding:12px 20px;font-size:12px;font-weight:500;min-height:43px;white-space:nowrap}.button:hover{background:#285146}.button.secondary{background:#fff;color:var(--green);border-color:#d4ddd1}.button.secondary:hover{background:var(--green-light)}.button.full{width:100%}.button-row{display:flex;gap:12px;flex-wrap:wrap}.text-link,.text-button{color:#3f6550;font-size:12px;white-space:nowrap}.text-button{background:none;border:0;padding:8px;text-decoration:underline}.text-link:hover{text-decoration:underline}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:30px}.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px 22px}.stat span{font-size:11px;display:block;color:#6c7a71}.stat strong{display:block;font-size:33px;font-weight:500;letter-spacing:-1px;margin:16px 0 10px}.stat small{color:#8b958e;font-size:10px}.stat.highlight{background:#eaf0df;border-color:#dbe5cd}.stat.highlight strong{color:#47603c}.compact{grid-template-columns:repeat(3,1fr);margin:20px 0}.compact .stat{padding:20px}.compact .stat strong{font-size:25px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:22px;scroll-margin-top:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.section-heading h2{margin:0}.section-heading>.muted{font-size:11px}.filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;margin-bottom:22px}.filters label{min-width:170px;flex:1}.filters .text-link{padding:14px 0}.card>.filters:last-child{margin-bottom:0}label{font-size:11px;font-weight:500;display:flex;flex-direction:column;gap:8px;color:#5d6e63}input,select,textarea{background:#fcfdfa;color:var(--ink);border:1px solid #dce3d9;border-radius:6px;min-height:42px;padding:11px 12px;width:100%;font-size:12px}select{max-width:100%}textarea{resize:vertical}label small{font-size:10px;font-weight:400;color:var(--muted)}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{font-size:10px;letter-spacing:.3px;color:#7b897f;font-weight:500;background:#f7f9f4;padding:14px 12px;white-space:nowrap}td{padding:18px 12px;border-bottom:1px solid #edf0e9;line-height:1.5}td small{display:block;font-size:10px;color:#8a958d;margin-top:5px}td strong{font-size:11px}tbody tr:last-child td{border-bottom:0}tfoot th{font-weight:600;color:var(--ink);border-top:1px solid var(--line)}.nowrap{white-space:nowrap}.badge{display:inline-flex;align-items:center;padding:7px 9px;background:#eef1eb;color:#6a796d;font-size:10px;font-weight:500;border-radius:5px;white-space:nowrap}.badge.solicitado{background:#fbf0d8;color:#99772a}.badge.aceito{background:#e9efe0;color:#5f783d}.badge.em_entrega{background:#e9f0f6;color:#55768c}.badge.entregue{background:#e2eee7;color:#367251}.badge.recusado,.badge.cancelado{background:#f5e9e6;color:#9b655c}.empty{text-align:center;padding:48px 20px 38px;color:#7a867d}.empty>span{font-size:40px;color:#aabc9e}.empty h3{color:#4b5e51;margin-top:16px}.empty p{font-size:12px}.footnote{font-size:11px;padding-left:4px}.notice{border-radius:8px;padding:16px 19px;background:#edf1e7;border:1px solid #dce5d5;font-size:12px;margin-bottom:22px;line-height:1.7}.notice.error{background:#fff0eb;border-color:#efd1c7;color:#964e37}.notice.success{background:#eaf3e7;color:#3e6840}.notice a{text-decoration:underline}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:18px 0 22px}.wide{grid-column:1/-1}.align-end{display:flex;align-items:flex-end}.checkbox{flex-direction:row;align-items:center}.checkbox input{width:18px;min-height:18px;height:18px}.order-line{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:15px;margin-bottom:18px}.form-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px}.form-footer p{font-size:11px;margin:0}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.detail-grid>.card{margin-bottom:22px}.card .detail-grid{margin-bottom:12px}.timeline{list-style:none;padding:0;margin:0}.timeline li{position:relative;padding:0 0 20px 22px;border-left:1px solid #dce5d4;font-size:12px}.timeline li:last-child{padding-bottom:0}.timeline li:before{content:'';position:absolute;left:-4px;top:4px;width:7px;height:7px;background:#85a46b;border-radius:50%}.timeline span,.timeline small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.timeline small{color:#7b6d58}dl{margin:0}dl>div{display:grid;grid-template-columns:130px 1fr;font-size:12px;padding:10px 0;border-bottom:1px solid #edf0ea}dt{color:#89948a}dd{margin:0}.note{font-size:12px;background:#f5f7f1;padding:12px;margin:16px 0 0}.jump-links{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;margin-bottom:26px;color:#62805d}.inline-form{display:flex;gap:8px}.inline-form input{min-width:140px}.authorization-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:8px;font-size:12px}.pagination{display:flex;gap:24px;justify-content:flex-end;padding-top:20px;font-size:11px}.report{background:#fff;padding:28px;border:1px solid var(--line);margin-bottom:22px}.report-header{display:grid;grid-template-columns:1fr 1fr .7fr;gap:20px;align-items:center;border:1px solid #a7b998;background:#edf2e3;padding:18px;text-align:center}.report-header>div:first-child{text-align:left}.report-header strong{display:block;font-size:13px}.report-header small{display:block;margin-top:7px}.report-header h2{font-size:22px;margin:0 0 7px}.report-header p{font-size:11px;margin:0}.report-section h3{font-size:11px;letter-spacing:.7px;margin:24px 0 10px}.report-table th{font-size:9px;white-space:normal}.report-table td{font-size:10px;padding:10px 6px;border:1px solid #dce2d6}.report-table th{border:1px solid #d4ddcd;padding:10px 6px}.report-table td small{font-size:8px}.report-notes{margin:22px 0;font-size:11px;white-space:pre-line}.report-notes p{margin:6px 0}.signatures{display:grid;grid-template-columns:1fr 1fr;gap:90px;margin:65px 35px 25px;text-align:center;font-size:12px}.signatures>div{border-top:1px solid #8c9c82;padding-top:12px}.signatures small{color:#8a9584;font-size:9px}.report-foot{font-size:9px;color:#7d8777;text-align:center}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fcfcf8}.login-panel{width:min(390px,80%);margin:auto;padding:50px 0}.login-panel .brand{margin-bottom:70px;color:var(--green)}.login-panel h1{font-size:40px;line-height:1.2;letter-spacing:-1.4px}.login-panel>.muted{font-size:13px;margin:20px 0 34px}.login-panel label{margin-bottom:18px}.login-panel .button{margin:5px 0 26px}.login-art{position:relative;background:var(--green);color:#edf0df;overflow:hidden;padding:65px 60px;display:flex;flex-direction:column;justify-content:flex-end}.login-art .eyebrow{position:absolute;top:70px;left:60px;color:#c4d3ad}.login-art>p{font:42px/1.15 Georgia,serif;letter-spacing:-1px;margin:25px 0}.login-art>small{color:#94ad99;font-size:10px}.plate{border:1px solid #81977677;border-radius:50%;width:370px;height:370px;position:absolute;top:15%;right:-90px;display:grid;place-items:center;transform:rotate(-25deg)}.plate:before,.plate:after{content:'';position:absolute;width:300px;height:300px;border:1px solid #81977666;border-radius:50%}.plate:after{width:220px;height:220px}.plate div{width:130px;height:200px;background:#a9bd7b;border-radius:70% 5% 70% 5%;position:relative;opacity:.8}.plate div:after{content:'';width:1px;height:180px;background:#355741;position:absolute;top:15px;left:70px;transform:rotate(30deg)}
@media(min-width:1600px){.main-content{padding-top:46px}.card{padding:28px}}@media(max-width:1100px){.app-shell{grid-template-columns:205px 1fr}.sidebar{padding-left:15px;padding-right:15px}.main-content{padding:28px 24px}.topbar{padding:0 24px}.stats{gap:12px}.stat{padding:20px 15px}.stat span{font-size:10px}.detail-grid{grid-template-columns:1fr}.compact{grid-template-columns:1fr 1fr 1fr}.report-header{grid-template-columns:1fr}.report-header>div:first-child{text-align:center}.login-art{padding:40px}.login-art .eyebrow{left:40px}}@media(max-width:760px){.app-shell{display:block}.sidebar{position:relative;height:auto;padding:18px 18px 0}.brand{font-size:25px}.brand-mark{height:34px;width:34px;font-size:28px}.workspace,.sidebar-bottom,.topbar{display:none}.sidebar nav{display:flex;overflow:auto;gap:4px;margin-top:18px;padding-bottom:12px}.sidebar nav a{padding:10px 12px;flex-shrink:0;gap:6px;white-space:nowrap}.sidebar nav a span{font-size:11px}.sidebar nav a.current{box-shadow:none;background:#ffffff1b}.main-content{padding:26px 16px}.page-heading{align-items:flex-start;gap:15px;margin-bottom:24px;flex-wrap:wrap}h1{font-size:28px}.page-heading .button{padding:10px 14px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}.stat{padding:17px}.stat strong{font-size:28px;margin:10px 0}.stat small{font-size:9px}.card{padding:18px;margin-bottom:18px;border-radius:10px}.filters{gap:12px}.filters label{min-width:130px}.filters .button{flex:1}.section-heading{align-items:flex-start}.section-heading h2{font-size:15px}.section-heading>.muted{white-space:nowrap}.form-grid{grid-template-columns:1fr;gap:16px}.wide{grid-column:auto}.order-line{grid-template-columns:minmax(0,1fr) 100px;gap:8px}.form-footer{flex-direction:column;align-items:stretch}.form-footer .button{width:100%}.compact{grid-template-columns:1fr}.compact .stat strong{font-size:23px}.jump-links{gap:15px;font-size:11px}.report{padding:14px}.signatures{gap:25px;margin-left:0;margin-right:0}.button-row{flex-direction:column}.login-page{display:block}.login-art{display:none}.login-panel{padding:40px 0;width:85%;max-width:390px}.login-panel .brand{margin-bottom:50px}.login-panel h1{font-size:36px}table{min-width:650px}.report-table{min-width:1050px}.pagination{justify-content:center;gap:16px}input,select,textarea{font-size:16px}.order-line select{font-size:13px}button.text-button{min-height:40px}.authorization-row{gap:15px}}
@page{size:A4 landscape;margin:10mm}@media print{:root,body{background:#fff;color:#000;font-family:Arial,sans-serif}.no-print{display:none!important}.app-shell{display:block}.main-content{padding:0;max-width:none}.report{border:0;padding:0;margin:0}.report-header{grid-template-columns:1fr 1fr .7fr;gap:6mm;padding:3mm;print-color-adjust:exact;-webkit-print-color-adjust:exact}.report-header>div:first-child{text-align:left}.report-header h2{font-size:17px}.report-header strong{font-size:10px}.report-header small{font-size:8px;margin-top:2mm}.table-scroll{overflow:visible}.report-table{min-width:0;table-layout:fixed;width:100%}.report-table th,.report-table td{font-size:8px;overflow-wrap:anywhere;padding:2mm 1mm;color:#000}.report-table td small{font-size:7px}.report-table th:nth-child(1){width:5%}.report-table th:nth-child(2){width:5%}.report-table th:nth-child(3){width:10%}.report-table th:nth-child(4){width:6%}.report-table th:nth-child(5),.report-table th:nth-child(6){width:7%}.report-table th:nth-child(7){width:12%}.report-table th:nth-child(8){width:7%}.report-table th:nth-child(9){width:8%}.report-table th:nth-child(10){width:10%}.report-table th:nth-child(11){width:23%}.report-table thead{display:table-header-group}.report-table tfoot{display:table-row-group}tr{break-inside:avoid}.signatures{margin-top:18mm;break-inside:avoid;font-size:10px}.report-notes{font-size:9px;break-inside:avoid}.report-foot{font-size:8px}.notice{display:none}.report-section h3{font-size:10px;margin-top:6mm}}

/* Readable operational grids, with horizontal scrolling confined to each card. */
@media screen {
:root{--muted:#62736a}
label,.help,.footnote,.page-heading p:last-child{font-size:13px}
.button,.text-link,.text-button{font-size:13px}
input,select,textarea{font-size:14px}
table{font-size:14px}th{font-size:12px;color:#586b5e}td strong{font-size:14px}td small{font-size:12px;color:#62736a;overflow-wrap:anywhere}
td{vertical-align:top}tbody tr:hover{background:#f8faf5}.badge{font-size:12px;white-space:normal}
.grid-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:160px}.grid-actions .button{padding:8px 12px;min-height:38px}
.table-scroll{border:1px solid var(--line);border-radius:8px}summary{cursor:pointer;font-size:16px;font-weight:600}
.align-end{gap:10px;flex-wrap:wrap}.card:target{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:760px){input,select,textarea{font-size:16px}table{min-width:720px}th,td{padding:13px 10px}.main-content{padding:22px 12px}.card{padding:16px}.order-line{grid-template-columns:minmax(0,1fr) 100px}.badge{font-size:11px}}
}
@media screen {dialog{width:min(440px,calc(100% - 32px));border:1px solid var(--line);border-radius:13px;padding:24px;color:var(--ink)}dialog::backdrop{background:#173e3677}dialog .form-footer{margin-bottom:0}}
@media screen and (max-width:760px){.users-grid{min-width:0}.users-grid thead{display:none}.users-grid,.users-grid tbody,.users-grid tr,.users-grid td{display:block;width:100%}.users-grid tr{padding:12px;border-bottom:1px solid var(--line)}.users-grid td{padding:7px 0;border:0}.users-grid td::before{content:attr(data-label);display:block;font-size:11px;font-weight:600;color:#62736a;margin-bottom:3px}.users-grid td:last-child{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.users-grid td:last-child::before{width:100%}.users-grid .text-link{white-space:normal}}

@media screen {
  :root {
    color-scheme: light;
    --field-bg: #fbfcf9;
    --field-border: #80958a;
    --field-focus: #286d58;
    --grid-line: #a8b7ad;
    --grid-header: #e6eee8;
    --grid-alt: #f5f8f5;
    --grid-hover: #ebf2ec;
    --surface: #fff;
  }

  .brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .login-panel .brand-row { margin-bottom: 50px; }
  .login-panel .brand { margin-bottom: 0; }
  .theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    min-height: 36px;
    padding: 5px 10px;
    border: 1px solid var(--field-border);
    border-radius: 8px;
    color: var(--ink);
    background: var(--surface);
    font-size: 12px;
  }
  .theme-toggle:hover { background: var(--grid-hover); }
  .theme-icon { font-size: 20px; line-height: 1; }
  .sidebar .theme-toggle {
    position: relative;
    width: 36px;
    justify-content: center;
    padding: 0;
    border-color: #79928a;
    color: #ebf0e5;
    background: #ffffff12;
  }
  .sidebar .theme-toggle:hover,
  .sidebar .theme-toggle[aria-pressed="true"] { background: #ffffff24; }
  .sidebar .theme-toggle span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .login-panel .checkbox input { flex: none; }

  input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    background: var(--field-bg);
    border-color: var(--field-border);
  }
  input:focus, select:focus, textarea:focus {
    border-color: var(--field-focus);
    outline: 2px solid var(--field-focus);
    outline-offset: 1px;
  }
  input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
  .table-scroll { border-color: var(--grid-line); }
  .table-scroll th { background: var(--grid-header); font-weight: 650; }
  .table-scroll :is(th, td) { border: 0; }
  .table-scroll :is(th, td) + :is(th, td) { border-inline-start: 1px solid var(--grid-line); }
  .table-scroll thead th, .table-scroll tbody tr + tr td { border-block-start: 1px solid var(--grid-line); }
  .table-scroll thead th { border-block-start: 0; border-block-end: 1px solid var(--grid-line); }
  .table-scroll tfoot th { border-block-start: 1px solid var(--grid-line); }
  .table-scroll tbody tr:nth-child(even) { background: var(--grid-alt); }
  .table-scroll tbody tr:hover { background: var(--grid-hover); }

  :root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #101b18;
    --surface: #1b2a25;
    --ink: #eef5ef;
    --muted: #b4c3bb;
    --line: #475b51;
    --green-light: #2b463b;
    --field-bg: #14231e;
    --field-border: #80978a;
    --field-focus: #bdd9a5;
    --grid-line: #5d7367;
    --grid-header: #2a4238;
    --grid-alt: #20332b;
    --grid-hover: #2d4439;
  }
  [data-theme="dark"] :is(.card, .stat, .topbar, .report, dialog, .login-page) { background: var(--surface); }
  [data-theme="dark"] :is(th, td small, label, dt, .empty, .empty h3, .stat span, .stat small, .timeline small, .signatures small, .report-foot, .users-grid td::before) { color: var(--muted); }
  [data-theme="dark"] :is(.text-link, .text-button, .jump-links, .eyebrow, .login-panel .brand) { color: #c4dfa9; }
  [data-theme="dark"] :is(.note, .report-header, .stat.highlight) { background: var(--grid-header); border-color: var(--grid-line); }
  [data-theme="dark"] .stat.highlight strong { color: #c4dfa9; }
  [data-theme="dark"] :is(dl > div, .timeline li) { border-color: var(--line); }
  [data-theme="dark"] .button { background: #bad5a6; border-color: #bad5a6; color: #142820; }
  [data-theme="dark"] .button:hover { background: #d1e5c2; }
  [data-theme="dark"] .button.secondary { background: var(--field-bg); border-color: var(--field-border); color: var(--ink); }
  [data-theme="dark"] .button.secondary:hover { background: var(--grid-hover); }
  [data-theme="dark"] .notice { background: #273e30; border-color: #598063; color: #e0f5dc; }
  [data-theme="dark"] .notice.error { background: #4a2e2b; border-color: #a4736a; color: #ffddd4; }
  [data-theme="dark"] .report-header { color: var(--ink); }

  @media (min-width: 761px) and (max-width: 1100px) {
    .sidebar .brand { font-size: 23px; gap: 8px; }
    .sidebar .brand-mark { width: 33px; height: 33px; font-size: 27px; }
    .sidebar .brand small { letter-spacing: .8px; }
  }
  @media (min-width: 761px) {
    .sidebar {
      height: 100dvh;
      overflow-y: auto;
      scrollbar-color: #79928a transparent;
    }
    .sidebar > * { flex-shrink: 0; }
  }
  @media (max-width: 760px) {
    .table-scroll .users-grid td { border: 0; }
    .table-scroll .users-grid tr { border: 0; }
    .table-scroll .users-grid tr + tr { border-block-start: 1px solid var(--grid-line); }
  }
}

@media screen {
  .order-grid-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    width: max-content;
    white-space: nowrap;
  }
  .order-grid-actions > span { display: flex; }
  .order-grid-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--field-border);
    border-radius: 6px;
    background: var(--field-bg);
    color: var(--ink);
    font: 600 19px/1 "Segoe UI Symbol", "Segoe UI", sans-serif;
  }
  .order-grid-icon:hover:not(:disabled) { background: var(--grid-header); }
  .order-grid-icon:disabled { opacity: .42; pointer-events: none; }
  #quick-order-reason { margin-top: 14px; }
}

@media screen and (max-width: 1480px) {
  .order-grid-actions { max-width: 210px; }
  .order-grid-actions .order-voucher-action { font-size: 13px; }
}

@media screen {
  .gps-order-fields { min-width: 0; margin: 0; padding: 0; border: 0; }

  .gps-map-preview {
    display: block;
    width: 100%;
    height: clamp(250px, 42vh, 480px);
    border: 1px solid var(--grid-line);
    border-radius: 8px;
  }
}

@media screen {
  .terminal-page { min-height: 100dvh; }
  .terminal-header {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    padding: 16px clamp(16px, 4vw, 40px);
    background: var(--green); color: #eef5ef;
  }
  .terminal-header .brand { font-size: clamp(20px, 4vw, 30px); }
  .terminal-header-actions { display: flex; align-items: center; gap: 8px; }
  .terminal-header-actions .theme-toggle, .terminal-header-actions .button { min-height: 48px; font-size: 15px; }
  .terminal-content { max-width: 1070px; margin: auto; padding: clamp(14px, 3vw, 32px); }
  .terminal-page h1 { font-size: clamp(30px, 5vw, 44px); }
  .terminal-page h2 { font-size: clamp(20px, 3.5vw, 28px); }
  .terminal-page :is(label, input, select, p, .notice, .button, th, td, .timeline li) { font-size: 17px; }
  .terminal-content :is(button, input, select) { min-height: 52px; }
  .terminal-content .checkbox input { min-height: 24px; }
  .terminal-content .stack { display: grid; gap: 16px; }
  .terminal-content .button-row { margin-block: 8px; }
  .terminal-content .timeline p { margin-block: 6px 12px; }
  .terminal-content .timeline form { margin-top: 8px; }
  .terminal-content .timeline li { padding-bottom: 26px; }
  .terminal-content .delivery-ready input { min-width: 72px; }
  @media (max-width: 760px) {
    .terminal-content .delivery-ready { min-width: 0; }
    .terminal-content .delivery-ready thead { display: none; }
    .terminal-content .delivery-ready tbody { display: block; }
    .terminal-content .delivery-ready tr {
      display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 4px 12px;
      align-items: start; padding: 14px 12px; border-bottom: 1px solid var(--grid-line);
    }
    .terminal-content .delivery-ready td { padding: 0; border: 0; grid-column: 2; }
    .terminal-content .delivery-ready td:first-child { grid-row: 1 / span 4; grid-column: 1; }
  }
}

@media print {
  @page kiosk-voucher-page { size: 80mm 115mm; margin: 0; }
  .kiosk-print { page: kiosk-voucher-page; }
  .terminal-page .terminal-content { padding: 0; }
  .kiosk-voucher { width: 72mm; max-width: 100%; padding: 3mm; font: 10pt Arial, sans-serif; color: #000; }
  .individual-receipt { margin-inline: auto; padding: 6mm 3mm 4mm; overflow-wrap: anywhere; }
  .individual-receipt header { text-align: center; border-bottom: 0.25mm solid; margin-bottom: 3mm; }
  .individual-receipt h2 { font-size: 13pt; margin: 2mm 0 0; }
}

@media screen {
  .individual-receipt { display: none; }
  .terminal-narrow { max-width: 680px; margin-inline: auto; }
  .terminal-team-create { margin-top: 24px; }
  .terminal-utility { margin-block: 28px 0; margin-inline: auto; }
  .terminal-utility summary { color: var(--ink); width: fit-content; padding: 12px 0; min-height: 44px; cursor: pointer; }
  .terminal-utility form { margin-block-start: 8px; }
  .terminal-utility p { margin: 0; }
  .individual-active { display: flex; flex-direction: column; }
  .individual-active .terminal-content {
    display: flex; flex: 1; flex-direction: column; width: 100%; margin-block: 0;
  }
  .individual-active .terminal-content > .terminal-narrow { width: 100%; }
  .individual-active .individual-cancel {
    margin-block: auto 0; padding-block-start: 24px; text-align: end;
  }
  .individual-cancel summary { margin-inline-start: auto; }
  .individual-cancel form { width: min(100%, 340px); margin-inline-start: auto; text-align: start; }
  .individual-printer-status { padding: 10px 0; }
  .individual-settings summary { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; }
  .individual-settings summary::-webkit-details-marker { display: none; }
  .individual-settings .access-menu-options { min-width: 225px; }
  #individual-exit h2, #individual-exit p { margin: 0; }
  .password-field > label, .login-panel .password-field > label { margin-bottom: 8px; }
  .password-field { margin-bottom: 16px; }
  .stack .password-field { margin-bottom: 0; }
  .password-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
  .password-entry .text-button:not([hidden]) { display: inline-flex; align-items: center; gap: 5px; min-height: 48px; }
  .terminal-team-create summary { min-height: 48px; padding-block: 12px; }
  .terminal-products { display: grid; gap: 12px; padding: 0; margin: 0; border: 0; }
  .terminal-products legend { margin-bottom: 12px; font-size: 18px; font-weight: 650; }
  .terminal-products label {
    flex-direction: row; align-items: center; gap: 16px; min-height: 58px;
    padding: 12px 16px; border: 1px solid var(--field-border); border-radius: 8px;
    background: var(--field-bg); color: var(--ink);
  }
  .terminal-products input { min-height: 24px; width: 24px; height: 24px; flex: none; margin: 0; }
  .terminal-products label:has(input:checked) { border: 2px solid var(--field-focus); padding: 11px 15px; }
  .kiosk-voucher { padding: 16px; border: 1px dashed var(--grid-line); border-radius: 8px; }
  .kiosk-voucher p { margin: 6px 0; }
}
@media print {
  .terminal-page .card { border: 0; padding: 0; margin: 0; }
  .kiosk-voucher p { margin: 3mm 0; }
}

.order-origin { white-space: nowrap; }
.order-origin-individual { background: #d9eeff; color: #163e69; }
.order-origin-central { background: #eee0ff; color: #4e2874; }
.order-origin-equipe { background: #d5efdb; color: #194f33; }
.order-origin-supervisor { background: #fff0bf; color: #593d08; }
.order-origin-desenvolvimento { background: #e1eaff; color: #2b427b; }
.order-origin-administrador { background: #ffdfd6; color: #792e22; }
.order-grid-actions .order-voucher-action { width: auto; padding-inline: 6px; white-space: nowrap; }

.sidebar nav.sidebar-navigation {
  display: grid;
  gap: 10px;
  overflow: auto;
  flex: 0 1 auto;
  min-height: 0;
  padding-right: 4px;
}
.sidebar-links + .sidebar-links,
.sidebar-submenu + .sidebar-submenu {
  border-top: 1px solid #ffffff24;
  padding-top: 8px;
}
.sidebar-navigation a,
.sidebar-navigation summary {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  padding: 10px;
  color: #c1cfc5;
}
.sidebar-navigation summary { cursor: pointer; list-style: none; }
.sidebar-navigation summary::-webkit-details-marker { display: none; }
.sidebar-navigation summary:hover { background: #ffffff10; color: #edf5df; }
.sidebar-navigation summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.sidebar-navigation details[open] > summary::after { transform: rotate(45deg); }
.sidebar-navigation summary span { font-size: 12px; }
.sidebar-submenu-links { padding-left: 12px; }
.sidebar-icon { flex: none; }
.team-approval .team-approval-central,
.team-approval:has(input[value="todas"]:checked) .team-approval-teams { display: none; }
.team-approval:has(input[value="todas"]:checked) .team-approval-central { display: block; }

@media (max-width: 760px) {
  .sidebar nav.sidebar-navigation { display: flex; flex-wrap: wrap; overflow: visible; }
  .sidebar-links { display: flex; flex-basis: 100%; flex-wrap: wrap; gap: 4px; }
  .sidebar-submenu + .sidebar-submenu { border: 0; padding-top: 0; }
  .sidebar-navigation a, .sidebar-navigation summary { min-height: 40px; }
}

@media screen {
  .login-mode-terminal { grid-template-columns: 1fr; background: var(--paper); }
  .login-mode-terminal .login-panel { width: min(480px, calc(100% - 32px)); }
  .login-mode-terminal :is(input:not([type="checkbox"]), select, .button) { min-height: 52px; font-size: 17px; }
  .login-panel .access-menu { margin-bottom: 18px; }
  .sidebar .access-menu { margin-top: 12px; }
  .access-menu { position: relative; max-width: max-content; }
  .access-menu summary {
    border: 1px solid var(--field-border); border-radius: 7px; cursor: pointer;
    padding: 8px 10px; color: inherit; font-size: 13px; font-weight: 600;
  }
  .access-menu-options {
    display: grid; min-width: 155px; padding: 5px; gap: 2px; border-radius: 8px;
    border: 1px solid var(--field-border); background: var(--surface); color: var(--ink);
  }
  .terminal-header .access-menu-options, .login-panel .access-menu-options {
    position: absolute; z-index: 3; inset-block-start: calc(100% + 4px);
  }
  .terminal-header .access-menu-options { inset-inline-end: 0; }
  .terminal-header-actions { flex-wrap: wrap; }
  .terminal-header .access-menu-options :is(a, button) { min-height: 44px; }
  .access-menu-options :is(span, a, button) {
    display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 5px;
    color: var(--ink); background: transparent; font-size: 14px; text-align: left;
  }
  .access-menu-options :is(a, button):hover, .access-menu-options span[aria-current] {
    background: var(--grid-alt);
  }
  .access-menu-options form { margin: 0; }
}
