/* Ajustes de composição e navegação responsiva. */
:root { font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
body { line-height:1.55; }
header { gap:20px; }
body:has(#workspace:not([hidden])) main { padding:32px clamp(24px,3vw,56px); max-width:1800px; }
h1 { font-size:clamp(27px,2.5vw,36px); letter-spacing:-1.2px; }
h2 { letter-spacing:-.4px; }
#notice { margin-bottom:20px; font-size:14px; }
.stats { gap:16px; }
.stats .stat { min-height:130px; border-radius:16px; }
.dashboard-grid .panel { border-radius:18px; padding:28px; }
.recent-table th { font-size:13px; letter-spacing:.2px; }
.recent-table td { padding:18px 14px; }
.recent-table tbody tr { transition:background .15s; }
.badge { font-weight:600; border-radius:24px; padding:7px 12px; }
.order { border-radius:16px; }
.order-body { padding:24px; }
.actions { padding-top:18px; }
input,select { min-height:48px; }
button,.action-link { min-height:44px; }
[data-theme=light] .stats .stat { box-shadow:0 3px 12px #19335606; border-color:#e1e7f0; }
[data-theme=light] .dashboard-grid .panel { border-color:#e1e7f0; box-shadow:0 6px 24px #19335605; }
[data-theme=light] .recent-table thead { background:#f3f6fb; }
[data-theme=light] .recent-table td { border-color:#e9edf4; }
[data-theme=light] body:has(#workspace:not([hidden])) .screen-nav { background:linear-gradient(180deg,#071b49,#102954); }
[data-theme=light] .screen-nav a[aria-current=page] { box-shadow:0 4px 16px #00134022; }
@media(max-width:1100px) {
  .header-actions { gap:10px; }#identity { max-width:170px; }
  .dashboard-grid .panel { padding:22px; }
}
@media(max-width:800px) {
  body:has(#workspace:not([hidden])) main { padding:20px 16px 100px; margin-left:0; }
  header,body:has(#workspace:not([hidden])) header { padding:16px; flex-direction:row; flex-wrap:wrap; align-items:center; }
  .brand strong { font-size:18px; }.brand small { font-size:12px; }
  .header-actions { width:auto; flex:1; justify-content:flex-end; }
  #identity,.account-avatar { display:none; }
  #theme-toggle,#logout { font-size:13px; padding:8px 10px; }
  body:has(#workspace:not([hidden])) .screen-nav,
  [data-theme=light] body:has(#workspace:not([hidden])) .screen-nav {
    position:fixed; top:auto; bottom:0; left:0; right:0; width:100%; margin:0; padding:8px 8px calc(8px + env(safe-area-inset-bottom)); border-radius:0; border:0; border-top:1px solid #314360; background:#071b49; display:flex; justify-content:space-around; gap:4px; z-index:50;
  }
  body:has(#workspace:not([hidden])) .screen-nav a { flex:1; justify-content:center; flex-direction:column; gap:5px; padding:8px 4px; font-size:12px; color:#d8e5fa; border-radius:10px; }
  body:has(#workspace:not([hidden])) .screen-nav a[aria-current=page] { background:#0046bf; color:#fff; }
  .nav-icon { width:auto; font-size:22px; }
  .stats { gap:12px; }.stats .stat,[data-theme=light] .stats .stat { padding:16px; min-height:110px; font-size:14px; }
  .stats .stat b,.stats .stat:last-child b,[data-theme=light] .stats .stat b { font-size:30px; margin-top:10px; }
  .dashboard-grid .panel { padding:18px; border-radius:14px; }
  .recent-table th:nth-child(2),.recent-table td:nth-child(2) { display:none; }
  .recent-table th,.recent-table td { padding:14px 6px; }
  .recent-table td small { max-width:160px; overflow-wrap:anywhere; }
  .recent-table .badge { font-size:12px; padding:6px 9px; }
  .order { grid-template-columns:36px minmax(0,1fr); }.order-body { padding:16px; }
  .order .buttons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .order .buttons button { padding:10px 8px; font-size:14px; }
  .filters label { min-width:140px; }
  #form-screen .grid { grid-template-columns:1fr; }
  #form-screen .wide { grid-column:auto; }
  #form-screen .actions { position:sticky; bottom:86px; background:var(--workspace-bg); padding:12px 0; z-index:2; }
  #form-screen .actions button { flex:1; }
  dialog { width:calc(100vw - 24px); padding:20px; }
  footer { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; } }
