:root {
  --bg: #f8f8f7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(20, 20, 20, 0.08);
  --text: #111111;
  --muted: #5f6368;
  --blue: #f97316;
  --orange: #f97316;
  --black: #111111;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --purple: #7c3aed;
  --glass-shadow: 0 18px 48px rgba(17, 17, 17, 0.08);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "San Francisco", "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 3%, rgba(249, 115, 22, 0.08), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(17, 17, 17, 0.06), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #faf8f5 50%, #f4f1ed 100%);
  color: var(--text);
  font-family: var(--font-ui);
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  display: flex;
  min-height: 100vh;
}
body.login-active {
  overflow: hidden;
}

.sidebar {
  width: 286px;
  background: rgba(255, 255, 255, 0.72);
  border-right: 1px solid rgba(20, 20, 20, 0.06);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 12px 0 46px rgba(17, 17, 17, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(249,115,22,0.32), transparent 28%),
    linear-gradient(135deg, #171717, #090909);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.22);
}
.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff8a1d, #f97316);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 760;
  font-size: 13px;
  letter-spacing: -0.02em;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}
.brand strong { color: #ffffff; }
.brand span { display: block; color: rgba(255,255,255,0.58); font-size: 12px; margin-top: 3px; }

nav {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}
button {
  font-family: var(--font-ui);
  border: 0;
  border-radius: 16px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #ff8a1d, #f97316);
  color: white;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.20);
}
button:hover { filter: brightness(0.97); }
.nav {
  background: transparent;
  color: #171717;
  text-align: left;
  box-shadow: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}
.nav::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  color: #171717;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background-color: rgba(17, 17, 17, 0.86);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px 17px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 17px 17px;
  mask-size: 17px 17px;
}
.nav[data-page="dashboard"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E");
}
.nav[data-page="necessidades"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='16' rx='2'/%3E%3Cpath d='M9 3v4M15 3v4M8 11h8M8 15h5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='16' rx='2'/%3E%3Cpath d='M9 3v4M15 3v4M8 11h8M8 15h5'/%3E%3C/svg%3E");
}
.nav[data-page="escala"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16M8 14h3M14 14h2M8 17h2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16M8 14h3M14 14h2M8 17h2'/%3E%3C/svg%3E");
}
.nav[data-page="planejador"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M4 17h10'/%3E%3Ccircle cx='17' cy='7' r='3'/%3E%3Ccircle cx='7' cy='17' r='3'/%3E%3Cpath d='M10 17h10M4 7h10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M4 17h10'/%3E%3Ccircle cx='17' cy='7' r='3'/%3E%3Ccircle cx='7' cy='17' r='3'/%3E%3Cpath d='M10 17h10M4 7h10'/%3E%3C/svg%3E");
}
.nav[data-page="garagem"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20V9l9-5 9 5v11'/%3E%3Cpath d='M7 20v-7h10v7M9 16h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20V9l9-5 9 5v11'/%3E%3Cpath d='M7 20v-7h10v7M9 16h6'/%3E%3C/svg%3E");
}
.nav[data-page="checklist"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6l1 2h3v14H5V7h3l1-2z'/%3E%3Cpath d='M9 13l2 2 4-5M9 5h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6l1 2h3v14H5V7h3l1-2z'/%3E%3Cpath d='M9 13l2 2 4-5M9 5h6'/%3E%3C/svg%3E");
}
.nav[data-page="manutencao"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5 5L4 17l3 3 5.7-5.7a4 4 0 0 0 5-5l-2.4 2.4-3-3 2.4-2.4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5 5L4 17l3 3 5.7-5.7a4 4 0 0 0 5-5l-2.4 2.4-3-3 2.4-2.4z'/%3E%3C/svg%3E");
}
.nav[data-page="preventivas"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.4 8-8 9-4.6-1-8-4-8-9V7l8-4z'/%3E%3Cpath d='M9 12l2 2 4-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.4 8-8 9-4.6-1-8-4-8-9V7l8-4z'/%3E%3Cpath d='M9 12l2 2 4-5'/%3E%3C/svg%3E");
}
.nav[data-page="almoxarifado"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8M12 13v8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8M12 13v8'/%3E%3C/svg%3E");
}
.nav[data-page="configuracao"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2 3-.2-.1a1.7 1.7 0 0 0-2 .2 1.7 1.7 0 0 0-.8 1.6V22h-3.6v-.3a1.7 1.7 0 0 0-.8-1.6 1.7 1.7 0 0 0-2-.2l-.2.1-2-3 .1-.1A1.7 1.7 0 0 0 4.6 15 1.7 1.7 0 0 0 3 14H2v-4h1a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9l-.1-.1 2-3 .2.1a1.7 1.7 0 0 0 2-.2 1.7 1.7 0 0 0 .8-1.6V2h3.6v.3a1.7 1.7 0 0 0 .8 1.6 1.7 1.7 0 0 0 2 .2l.2-.1 2 3-.1.1a1.7 1.7 0 0 0-.3 1.9A1.7 1.7 0 0 0 21 10h1v4h-1a1.7 1.7 0 0 0-1.6 1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2 3-.2-.1a1.7 1.7 0 0 0-2 .2 1.7 1.7 0 0 0-.8 1.6V22h-3.6v-.3a1.7 1.7 0 0 0-.8-1.6 1.7 1.7 0 0 0-2-.2l-.2.1-2-3 .1-.1A1.7 1.7 0 0 0 4.6 15 1.7 1.7 0 0 0 3 14H2v-4h1a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9l-.1-.1 2-3 .2.1a1.7 1.7 0 0 0 2-.2 1.7 1.7 0 0 0 .8-1.6V2h3.6v.3a1.7 1.7 0 0 0 .8 1.6 1.7 1.7 0 0 0 2 .2l.2-.1 2 3-.1.1a1.7 1.7 0 0 0-.3 1.9A1.7 1.7 0 0 0 21 10h1v4h-1a1.7 1.7 0 0 0-1.6 1z'/%3E%3C/svg%3E");
}
.nav[data-page="tecnico"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5a2 2 0 0 1 2-2h10l4 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3Cpath d='M15 3v5h5M8 15h8M8 11h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5a2 2 0 0 1 2-2h10l4 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3Cpath d='M15 3v5h5M8 15h8M8 11h4'/%3E%3C/svg%3E");
}
.nav[data-page="historicoInspecao"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6l1 2h3v14H5V7h3l1-2z'/%3E%3Cpath d='M9 5h6M8 12h8M8 16h5'/%3E%3Ccircle cx='17' cy='16' r='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6l1 2h3v14H5V7h3l1-2z'/%3E%3Cpath d='M9 5h6M8 12h8M8 16h5'/%3E%3Ccircle cx='17' cy='16' r='2'/%3E%3C/svg%3E");
}
.nav.active {
  background: rgba(249, 115, 22, 0.10);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.10);
}
.nav.active::before {
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.22);
  background-color: #f97316;
}
.ghost { background: rgba(255,255,255,0.72); color: #2d2925; box-shadow: none; }
.danger { color: #b91c1c; }
.small { padding: 8px 10px; }
.icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
}

.app { flex: 1; padding: 34px 38px; overflow: auto; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-weight: 720;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.04;
}
h2 {
  line-height: 1.12;
}
#pageSubtitle { color: var(--muted); margin-top: 8px; font-size: 16px; }
.datebar { display: flex; align-items: center; gap: 8px; }
.auth-status {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
}
.auth-status .pill {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.muted-pill {
  background: rgba(17, 17, 17, 0.06);
  color: #5f6368;
}
.datebar input {
  min-width: 168px;
  border-radius: 999px;
  padding: 13px 18px;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
}
.datebar .small {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  padding: 0;
  font-size: 20px;
}
input, select, textarea {
  font-family: var(--font-ui);
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,0.82);
  color: var(--text);
  outline: none;
  backdrop-filter: blur(16px);
  letter-spacing: -0.01em;
}

.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 18px;
}
.action-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 18px;
  color: var(--text);
  text-align: left;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  min-height: 146px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.action-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.10);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.08);
  position: relative;
}
.action-icon::before {
  content: "";
  width: 27px;
  height: 27px;
  display: block;
  background: #f97316;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.action-icon-coverage::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8M12 13v8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8M12 13v8'/%3E%3C/svg%3E");
}
.action-icon-os::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6l1 2h3v14H5V7h3l1-2z'/%3E%3Cpath d='M9 12h6M9 16h4M9 5h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6l1 2h3v14H5V7h3l1-2z'/%3E%3Cpath d='M9 12h6M9 16h4M9 5h6'/%3E%3C/svg%3E");
}
.action-icon-alert::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 16H3L12 3z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 16H3L12 3z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
}
.action-icon-garage::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20V9l9-5 9 5v11'/%3E%3Cpath d='M7 20v-7h10v7M9 16h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20V9l9-5 9 5v11'/%3E%3Cpath d='M7 20v-7h10v7M9 16h6'/%3E%3C/svg%3E");
}
.action-icon-buy::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h2l2 11h10l2-8H7'/%3E%3Ccircle cx='10' cy='20' r='1.4'/%3E%3Ccircle cx='17' cy='20' r='1.4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h2l2 11h10l2-8H7'/%3E%3Ccircle cx='10' cy='20' r='1.4'/%3E%3Ccircle cx='17' cy='20' r='1.4'/%3E%3C/svg%3E");
}
.action-icon-default::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
}
.action-copy {
  display: block;
  min-width: 0;
}
.action-card label {
  color: #171717;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 720;
  letter-spacing: 0.02em;
  display: block;
}
.action-card strong {
  display: block;
  font-size: 38px;
  font-weight: 720;
  letter-spacing: -0.04em;
  margin-top: 10px;
}
.action-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.action-card .action-icon {
  display: grid;
  margin-top: 0;
}
.action-card .action-copy {
  display: block;
  margin-top: 0;
}
.action-tile {
  cursor: pointer;
  display: grid;
  gap: 12px;
  min-height: 190px;
  align-content: start;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.action-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 18, .42);
  background: rgba(255,255,255,0.76);
}
.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mini-stats span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 122, 18, .12);
  color: var(--orange-strong);
  font-size: 12px;
  font-weight: 700;
}
.priority-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.priority-list .priority-row {
  width: 100%;
  background: rgba(255,255,255,0.66);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 140px 18px;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin: 0;
  padding: 13px 16px;
  min-height: 58px;
  cursor: pointer;
}
.priority-list .priority-row:hover {
  background: rgba(255, 255, 255, 0.78);
}
.priority-list .priority-row .badge {
  justify-content: center;
  width: 100%;
  font-size: 11px;
  font-weight: 720;
  padding: 7px 10px;
}
.priority-title {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  letter-spacing: -0.01em;
}
.priority-detail {
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}
.priority-arrow {
  color: #111;
  font-size: 24px;
  line-height: 1;
}
.dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
  gap: 24px;
  margin-top: 24px;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.quick-actions button {
  min-height: 78px;
  background: rgba(255,255,255,0.74);
  color: #171717;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.06);
  text-align: left;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 14px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 12px;
  overflow: hidden;
}
.quick-actions button::before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background-color: #f97316;
  display: inline-block;
  grid-row: 1 / 3;
  box-shadow: 0 0 0 10px rgba(249, 115, 22, 0.10);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
}
.quick-checklist::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6l1 2h3v14H5V7h3l1-2z'/%3E%3Cpath d='M9 13l2 2 4-5M9 5h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6l1 2h3v14H5V7h3l1-2z'/%3E%3Cpath d='M9 13l2 2 4-5M9 5h6'/%3E%3C/svg%3E");
}
.quick-maintenance::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5 5L4 17l3 3 5.7-5.7a4 4 0 0 0 5-5l-2.4 2.4-3-3 2.4-2.4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5 5L4 17l3 3 5.7-5.7a4 4 0 0 0 5-5l-2.4 2.4-3-3 2.4-2.4z'/%3E%3C/svg%3E");
}
.quick-stock::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8M12 13v8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8M12 13v8'/%3E%3C/svg%3E");
}
.quick-planning::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M4 17h10'/%3E%3Ccircle cx='17' cy='7' r='3'/%3E%3Ccircle cx='7' cy='17' r='3'/%3E%3Cpath d='M10 17h10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M4 17h10'/%3E%3Ccircle cx='17' cy='7' r='3'/%3E%3Ccircle cx='7' cy='17' r='3'/%3E%3Cpath d='M10 17h10'/%3E%3C/svg%3E");
}
.quick-reports::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5a2 2 0 0 1 2-2h10l4 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3Cpath d='M15 3v5h5M8 15h8M8 11h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5a2 2 0 0 1 2-2h10l4 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3Cpath d='M15 3v5h5M8 15h8M8 11h4'/%3E%3C/svg%3E");
}
.quick-settings::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2 3-.2-.1a1.7 1.7 0 0 0-2 .2 1.7 1.7 0 0 0-.8 1.6V22h-3.6v-.3a1.7 1.7 0 0 0-.8-1.6 1.7 1.7 0 0 0-2-.2l-.2.1-2-3 .1-.1A1.7 1.7 0 0 0 4.6 15 1.7 1.7 0 0 0 3 14H2v-4h1a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9l-.1-.1 2-3 .2.1a1.7 1.7 0 0 0 2-.2 1.7 1.7 0 0 0 .8-1.6V2h3.6v.3a1.7 1.7 0 0 0 .8 1.6 1.7 1.7 0 0 0 2 .2l.2-.1 2 3-.1.1a1.7 1.7 0 0 0-.3 1.9A1.7 1.7 0 0 0 21 10h1v4h-1a1.7 1.7 0 0 0-1.6 1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2 3-.2-.1a1.7 1.7 0 0 0-2 .2 1.7 1.7 0 0 0-.8 1.6V22h-3.6v-.3a1.7 1.7 0 0 0-.8-1.6 1.7 1.7 0 0 0-2-.2l-.2.1-2-3 .1-.1A1.7 1.7 0 0 0 4.6 15 1.7 1.7 0 0 0 3 14H2v-4h1a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9l-.1-.1 2-3 .2.1a1.7 1.7 0 0 0 2-.2 1.7 1.7 0 0 0 .8-1.6V2h3.6v.3a1.7 1.7 0 0 0 .8 1.6 1.7 1.7 0 0 0 2 .2l.2-.1 2 3-.1.1a1.7 1.7 0 0 0-.3 1.9A1.7 1.7 0 0 0 21 10h1v4h-1a1.7 1.7 0 0 0-1.6 1z'/%3E%3C/svg%3E");
}
.quick-actions button::after {
  content: "›";
  color: #111;
  font-size: 24px;
  line-height: 1;
}
.quick-actions strong,
.quick-actions span {
  grid-column: 2;
}
.quick-actions strong {
  display: block;
  font-size: 14px;
  line-height: 1.1;
}
.quick-actions span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: -14px;
}
.quick-actions button::after {
  content: "\203A";
  color: #111;
  font-size: 22px;
  line-height: 1;
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
}
.quick-actions button strong,
.quick-actions button span {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}
.quick-actions button strong {
  display: block;
  font-size: 15px;
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: -0.02em;
}
.quick-actions button span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

/* Dashboard compacto: acesso rapido precisa ser leve, nao um bloco dominante. */
.dashboard-bottom .card:has(.quick-actions) {
  padding: 22px;
}
.quick-actions {
  gap: 10px;
  margin-top: 12px;
}
.quick-actions button {
  min-height: 50px;
  border-radius: 16px;
  padding: 9px 12px;
  grid-template-columns: 26px minmax(0, 1fr) 10px;
  gap: 1px 10px;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.045);
}
.quick-actions button::before {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  box-shadow: none;
  -webkit-mask-size: 18px 18px;
  mask-size: 18px 18px;
}
.quick-actions button::after {
  font-size: 18px;
}
.quick-actions button strong {
  font-size: 13px;
  line-height: 1.05;
  font-weight: 720;
  letter-spacing: -0.015em;
}
.quick-actions button span {
  font-size: 10.5px;
  line-height: 1.1;
  opacity: 0.82;
}
.live-strip {
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
}
.live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.live-head h2 {
  font-size: 15px;
}
.live-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.live-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) minmax(96px, auto);
  gap: 4px 12px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,0.62);
  min-height: 48px;
}
.live-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.live-time {
  font-size: 18px;
  line-height: 1;
  font-weight: 780;
  white-space: nowrap;
  letter-spacing: -0.03em;
}
.live-main span {
  min-width: 0;
  width: 100%;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-main small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.live-item .badge {
  justify-self: end;
  white-space: nowrap;
  font-size: 8px;
  padding: 2px 5px;
}
.live-progress {
  grid-column: 1 / -1;
  height: 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.live-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #ef4444);
}
.list-edit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.garage-services {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tag-select {
  max-width: 210px;
  font-weight: 700;
  color: #c2410c;
}
.tag-purple {
  background: rgba(124, 58, 237, .14) !important;
  color: #6d28d9 !important;
}
.tag-orange {
  background: rgba(249, 115, 22, .18) !important;
  color: #c2410c !important;
}
.tag-green {
  background: rgba(16, 185, 129, .16) !important;
  color: #047857 !important;
}
.tag-sky {
  background: rgba(125, 211, 252, .22) !important;
  color: #0369a1 !important;
}
.tag-blue {
  background: rgba(37, 99, 235, .16) !important;
  color: #1d4ed8 !important;
}
.tag-red {
  background: rgba(239, 68, 68, .14) !important;
  color: #b91c1c !important;
}
.service-chip {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  box-shadow: none;
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}
.service-chip.feito {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}
.service-chip.pendente {
  background: rgba(249, 115, 22, 0.18);
  color: #c2410c;
}
.service-chip.nao_aplicavel {
  background: rgba(107, 114, 128, 0.16);
  color: #4b5563;
}
.service-chip.ok {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover {
  background: rgba(255, 122, 18, .08);
}
.checkin-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--glass-shadow);
}
.checkin-hero strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.checkin-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  margin-top: 14px;
}
.os-select-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.os-select-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.58);
}
.os-select-card input {
  width: 18px;
  height: 18px;
}
.os-select-card strong {
  font-size: 15px;
  margin: 0;
}
.os-select-card small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
/* Compact OS card no modal de check-in */
.os-compact-card {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
  display: grid;
  gap: 3px;
}
.os-compact-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.os-compact-id {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.os-compact-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.os-compact-desc {
  font-size: 11px;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* Expandir/recolher no modal de check-in */
#checkinWrapper .checkin-details {
  display: none;
}
#checkinWrapper.checkin-expanded .checkin-details {
  display: block;
}
/* Truncar resumo na tabela de atendimentos */
.garage-table-resumo {
  max-width: 200px;
}
.garage-table-resumo span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vehicle-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.vehicle-head h2 {
  font-size: 18px;
}
.preventive-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.preventive-line strong {
  display: block;
  font-size: 14px;
  margin: 0;
}
.preventive-line small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.preventive-table td,
.preventive-table th {
  padding: 9px 12px;
}
.preventive-table td {
  vertical-align: middle;
}
.preventive-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.preventive-chip {
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 720;
  box-shadow: none;
}
.preventive-chip.vencida {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}
.preventive-chip.atencao {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}
.preventive-chip.ok {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}
.card {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.card label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 720;
  letter-spacing: 0.02em;
}
.card strong {
  display: block;
  font-size: 32px;
  font-weight: 720;
  letter-spacing: -0.04em;
  margin-top: 8px;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.inspection-items {
  display: grid;
  gap: 10px;
}
.inspection-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
}
.inspection-item strong {
  font-size: 14px;
  margin: 0;
  letter-spacing: -0.01em;
}
.compact-summary-cards {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}
.compact-summary-cards .card {
  padding: 14px 16px;
  border-radius: 18px;
}
.compact-summary-cards .card label {
  font-size: 10px;
}
.compact-summary-cards .card strong {
  font-size: 22px;
  margin-top: 5px;
  white-space: nowrap;
}

.toolbar { display: flex; gap: 10px; align-items: center; margin: 14px 0; flex-wrap: wrap; }
.toolbar > * { max-width: 260px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
th, td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  letter-spacing: -0.01em;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.64);
  font-weight: 720;
  letter-spacing: 0.02em;
}
#resetSeed {
  margin-top: auto;
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  background: rgba(17, 17, 17, 0.06);
  color: #ef4444;
  box-shadow: none;
}
tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: -0.01em;
}
.green { background: rgba(16,185,129,0.16); color: #047857; }
.red { background: rgba(239,68,68,0.16); color: #b91c1c; }
.yellow { background: rgba(245,158,11,0.18); color: #92400e; }
.purple { background: rgba(124,58,237,0.15); color: #5b21b6; }
.blue { background: rgba(249,115,22,0.16); color: #c2410c; }
.muted { color: var(--muted); }

.timeline-shell {
  position: relative;
}
.timeline-sticky-head-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}
.timeline-head-scroll {
  position: relative;
  overflow: hidden;
}
.timeline {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0 0 24px 24px;
  overflow-x: auto;
  overflow-y: visible;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px);
  position: relative;
}
.time-head, .time-row {
  display: grid;
  grid-template-columns: 260px repeat(24, 46px);
  min-width: 1364px;
}
.time-head {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}
.time-head div, .time-label {
  padding: 10px;
  border-right: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}
.time-row {
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.time-label {
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
  color: var(--text);
}
.time-cell { border-right: 1px solid #edf2f7; }
.block {
  position: absolute;
  top: 16px;
  height: 30px;
  border-radius: 9px;
  color: white;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px;
  cursor: pointer;
}
.block.covered { background: var(--green); }
.block.uncovered { background: var(--red); }
.block.trip { background: var(--purple); }
.block.free { background: #cbd5e1; color: #334155; }
.block.maintenance { background: var(--purple); }
.block.warning { background: var(--yellow); color: #111827; }
.allocation-context {
  margin-bottom: 12px;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}
.mini-grid div,
.overlap-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  padding: 10px;
}
.mini-grid span,
.mini-grid strong {
  display: block;
}
.overlap-list {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.time-now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  min-height: 100%;
  background: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.18), 0 0 18px rgba(239, 68, 68, 0.28);
  z-index: 7;
  pointer-events: none;
}
.time-now-head {
  position: absolute;
  top: 6px;
  width: 2px;
  height: calc(100% - 12px);
  background: #ef4444;
  z-index: 6;
  pointer-events: none;
}
.time-now-head span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: inline-flex;
  min-width: 54px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.22);
}

dialog {
  border: 0;
  border-radius: 28px;
  padding: 0;
  width: min(1040px, 94vw);
  max-height: 92vh;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(28px);
}
dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
#modalBody {
  padding: 16px;
  max-height: calc(92vh - 74px);
  overflow: auto;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.full { grid-column: 1 / -1; }
.hidden { display: none !important; }
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 18% 4%, rgba(249, 115, 22, 0.18), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(17, 17, 17, 0.08), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8f7f5 44%, #efebe6 100%);
  overflow: auto;
}
.login-screen::before,
.login-screen::after {
  content: "";
  position: fixed;
  width: 42vw;
  height: 22vh;
  background: linear-gradient(135deg, #ff7a18, #ff3d00);
  box-shadow: 0 28px 80px rgba(249, 115, 22, 0.28);
  pointer-events: none;
}
.login-screen::before {
  left: -10vw;
  bottom: -5vh;
  transform: rotate(-16deg);
  border-radius: 0 80px 0 0;
}
.login-screen::after {
  right: -18vw;
  bottom: 22vh;
  transform: rotate(-42deg);
  border-radius: 80px 0 0 80px;
  background: linear-gradient(135deg, #111, #ff5b00 55%, #ff7a18);
}
.login-shell {
  width: min(820px, 96vw);
  display: grid;
  gap: 22px;
  position: relative;
  z-index: 1;
}
.login-card {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 38px 100px rgba(17, 17, 17, 0.16);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}
.login-logo {
  display: grid;
  place-items: center;
  gap: 4px;
  margin-bottom: 26px;
  text-align: center;
}
.login-logo strong {
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.82;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.08em;
  color: #ff5b00;
}
.login-logo span {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  color: #111;
}
.login-logo span::after {
  content: "MEGA";
  color: #ff5b00;
}
.login-logo small {
  font-size: 24px;
  letter-spacing: 0.45em;
  font-weight: 800;
  color: #111;
}
.login-card h2 {
  text-align: center;
  font-size: 25px;
  margin-bottom: 10px;
}
.login-card p {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 24px;
}
.login-message {
  margin: 0 auto 18px;
  max-width: 560px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(249, 115, 22, 0.10);
  color: #c2410c;
  font-weight: 750;
  text-align: center;
}
.login-form {
  display: grid;
  gap: 18px;
  max-width: 590px;
  margin: 0 auto;
}
.login-form label span {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 850;
  color: #111;
}
.login-form input {
  min-height: 58px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  padding: 14px 18px;
}
.password-field {
  display: grid;
  grid-template-columns: 1fr 56px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}
.password-field input {
  border: 0;
  background: transparent;
}
.password-field button {
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  text-transform: uppercase;
  font-size: 11px;
}
.login-options {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
}
.remember input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: #ff5b00;
}
.link-button {
  padding: 0;
  background: transparent;
  color: #ff5b00;
  box-shadow: none;
}
.login-submit {
  min-height: 64px;
  border-radius: 16px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #ff7a18, #ff3d00);
  box-shadow: 0 16px 34px rgba(255, 91, 0, 0.28);
}
.login-divider {
  max-width: 590px;
  margin: 28px auto 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 650;
}
.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.login-social {
  max-width: 590px;
  margin: 0 auto;
  display: grid;
}
.login-social button {
  min-height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
  color: #111;
  font-size: 18px;
}
.login-social strong {
  color: #4285f4;
  margin-right: 10px;
}
.login-card footer {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font-weight: 650;
}
.login-credit {
  text-align: center;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 3px 18px rgba(17, 17, 17, 0.35);
}
.login-credit strong {
  color: #ff5b00;
}
.login-screen {
  padding: 0;
  overflow: hidden;
  background: #030303;
}
.login-screen::before,
.login-screen::after {
  display: none;
}
.login-art {
  position: relative;
  width: min(100vw, calc(100vh * 1.5));
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.login-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.login-hit-form,
.login-art button,
.login-art label {
  position: absolute;
  box-sizing: border-box;
  z-index: 2;
}
.login-hit-form {
  inset: 0;
}
.login-text-hit {
  position: absolute;
  z-index: 2;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f8fafc;
  box-shadow: none;
  min-height: 0;
  border-radius: 0;
  font-size: clamp(13px, 1.28vw, 19px);
  font-weight: 650;
}
.login-text-hit:-webkit-autofill,
.login-text-hit:-webkit-autofill:hover,
.login-text-hit:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc;
  transition: background-color 9999s ease-in-out 0s;
}
.login-email-hit {
  left: 55%; top: 41%; width: 38%; height: 6%;
}
.login-password-hit {
  left: 55%; top: 50%; width: 35%; height: 6%;
}
.login-eye-hit,
.login-forgot-hit,
.login-submit-hit,
.login-google-hit,
.login-microsoft-hit {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  color: transparent;
}
.login-eye-hit {
  left: 89%;
  top: 50%;
  width: 5%;
  height: 6%;
}
.login-remember-hit {
  left: 55%; top: 57.5%; width: 16%; height: 4%;
  cursor: pointer;
}
.login-remember-hit input {
  opacity: 0;
  pointer-events: none;
}
.login-forgot-hit {
  left: 78%;
  top: 57.5%;
  width: 18%;
  height: 4%;
}
.login-submit-hit {
  left: 55%; top: 62.5%; width: 42%; height: 7%;
}
.login-google-hit {
  left: 55%; top: 72%; width: 19%; height: 6%;
}
.login-microsoft-hit {
  left: 76%; top: 72%; width: 20%; height: 6%;
}
.login-art-message {
  position: absolute;
  z-index: 3;
  left: 53.2%;
  top: 40.4%;
  width: 33.4%;
  padding: 0.8%;
  border-radius: 10px;
  background: rgba(255, 75, 0, 0.92);
  color: #fff;
  text-align: center;
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 750;
}
.login-cover {
  width: min(100vw, calc(100vh * 1.5));
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 4.2%;
  padding: 4.2% 5.1% 4.9%;
  color: #f8fafc;
  background:
    radial-gradient(circle at 34% 55%, rgba(255, 96, 0, 0.26), transparent 20%),
    radial-gradient(circle at 18% 16%, rgba(255,255,255,0.08), transparent 16%),
    linear-gradient(135deg, #070707 0%, #111 48%, #030303 100%);
}
.login-cover::before,
.login-cover::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.login-cover::before {
  left: -8%;
  bottom: 13%;
  width: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff5b00, transparent);
  box-shadow: 0 0 42px #ff5b00;
  transform: rotate(-13deg);
}
.login-cover::after {
  right: -12%;
  bottom: 17%;
  width: 42%;
  height: 18%;
  border-top: 9px solid #ff5b00;
  border-bottom: 24px solid rgba(255, 91, 0, 0.95);
  background: #070707;
  transform: skewY(-25deg);
  box-shadow: 0 0 60px rgba(255, 91, 0, 0.45);
}
.login-hero,
.login-panel {
  position: relative;
  z-index: 1;
}
.login-hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}
.login-hero-brand {
  text-align: center;
  transform: translateY(1%);
}
.trm-outline {
  font-size: clamp(52px, 8.8vw, 132px);
  line-height: 0.82;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -0.11em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(248, 250, 252, 0.88);
  opacity: 0.9;
}
.transmega-word,
.transmega-small {
  font-weight: 950;
  font-style: italic;
  letter-spacing: -0.08em;
  color: #f8fafc;
}
.transmega-word {
  font-size: clamp(34px, 5vw, 76px);
}
.transmega-word span,
.transmega-small span,
.login-panel h1 span,
.login-credit-real strong {
  color: #ff5b00;
}
.operacao-word,
.operacao-small {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.48em;
  font-weight: 850;
  color: rgba(248, 250, 252, 0.86);
}
.operacao-word {
  font-size: clamp(16px, 2.2vw, 36px);
}
.operacao-word span,
.operacao-small span,
.login-credit-real span {
  width: 58px;
  height: 2px;
  background: #ff5b00;
  box-shadow: 0 0 12px rgba(255, 91, 0, 0.7);
}
.login-bus-graphic {
  align-self: end;
  height: 56%;
  margin: 4% 0 2%;
  position: relative;
  filter: drop-shadow(0 28px 36px rgba(0,0,0,0.9));
}
.bus-body {
  position: absolute;
  left: 3%;
  right: 5%;
  bottom: 8%;
  height: 55%;
  border-radius: 8% 34% 8% 8% / 16% 40% 18% 22%;
  background: linear-gradient(160deg, #0b0b0b 0 58%, #ff5b00 59% 72%, #111 73%);
  border: 2px solid rgba(255, 91, 0, 0.75);
}
.bus-body span {
  position: absolute;
  left: 18%;
  bottom: 24%;
  font-size: clamp(18px, 2.6vw, 42px);
  font-weight: 950;
  font-style: italic;
}
.bus-top {
  position: absolute;
  left: 30%;
  right: 11%;
  top: 18%;
  height: 30%;
  border-radius: 55% 18% 0 0;
  background: linear-gradient(180deg, #ff6a00, #111 70%);
  border-top: 7px solid #ff5b00;
}
.bus-front {
  position: absolute;
  right: 8%;
  bottom: 20%;
  width: 19%;
  height: 45%;
  border-radius: 35% 25% 15% 15%;
  background: linear-gradient(160deg, #111, #242424 55%, #ff5b00);
  color: rgba(255,255,255,0.8);
  font-size: clamp(14px, 2vw, 32px);
  font-weight: 950;
  display: grid;
  place-items: center;
  font-style: italic;
}
.bus-wheel {
  position: absolute;
  bottom: 2%;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #d9d9d9 0 18%, #111 19% 54%, #ff5b00 55% 63%, #050505 64%);
}
.wheel-a { left: 34%; }
.wheel-b { right: 18%; }
.login-benefits {
  justify-self: center;
  width: 82%;
  min-height: 12%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 91, 0, 0.42);
  border-radius: 20px;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(10px);
}
.login-benefits div {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px 6px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.login-benefits div:last-child { border-right: 0; }
.login-benefits span {
  color: #ff5b00;
  font-size: clamp(18px, 2vw, 34px);
}
.login-benefits strong {
  font-size: clamp(8px, 0.9vw, 14px);
  line-height: 1.2;
}
.login-panel {
  align-self: center;
  justify-self: center;
  width: min(100%, 560px);
  min-height: 86%;
  padding: 7.4% 7.8%;
  border: 1px solid rgba(255, 91, 0, 0.58);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(20,20,20,0.92), rgba(7,7,7,0.93));
  box-shadow: 0 30px 90px rgba(0,0,0,0.5), inset 0 0 50px rgba(255,255,255,0.03);
}
.login-panel-logo {
  text-align: center;
  margin-bottom: 6%;
}
.trm-small {
  font-size: clamp(34px, 4.7vw, 72px);
  line-height: 0.85;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -0.11em;
}
.transmega-small {
  font-size: clamp(22px, 3vw, 48px);
}
.operacao-small {
  font-size: clamp(11px, 1.4vw, 22px);
  letter-spacing: 0.42em;
}
.login-panel h1 {
  text-align: center;
  font-size: clamp(19px, 2vw, 30px);
  margin: 0 0 8px;
}
.login-panel p {
  text-align: center;
  color: rgba(248,250,252,0.72);
  margin-bottom: 4.5%;
  font-size: clamp(12px, 1.16vw, 17px);
}
.login-form-real {
  display: grid;
  gap: 3.2%;
}
.login-form-real label {
  display: grid;
  gap: 8px;
  font-size: clamp(11px, 1vw, 16px);
  font-weight: 850;
}
.login-input-shell {
  display: grid;
  grid-template-columns: 42px 1fr 36px;
  align-items: center;
  min-height: clamp(42px, 4.2vw, 64px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 13px;
  background: rgba(255,255,255,0.025);
}
.login-input-shell span {
  color: rgba(248,250,252,0.7);
  text-align: center;
  font-size: 20px;
}
.login-input-shell input {
  border: 0;
  min-height: 0;
  background: transparent;
  color: #fff;
  font-size: clamp(13px, 1.15vw, 18px);
  box-shadow: none;
}
.login-input-shell button {
  padding: 0;
  background: transparent;
  color: rgba(248,250,252,0.65);
  box-shadow: none;
}
.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5% 0 2%;
}
.login-row button {
  padding: 0;
  background: transparent;
  color: #ff5b00;
  box-shadow: none;
}
.login-remember {
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px !important;
  color: rgba(248,250,252,0.9);
  font-weight: 650 !important;
}
.login-remember input {
  width: 18px;
  height: 18px;
  accent-color: #ff5b00;
}
.login-main-button {
  min-height: clamp(48px, 5vw, 70px);
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7a00, #ff3d00);
  box-shadow: 0 16px 30px rgba(255, 91, 0, 0.28);
  font-size: clamp(18px, 2vw, 28px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.login-divider-real {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 5% 0 3.5%;
  color: rgba(248,250,252,0.65);
  font-size: clamp(11px, 1vw, 15px);
}
.login-divider-real span {
  height: 1px;
  background: rgba(255,255,255,0.22);
}
.login-social-real {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.login-social-real button {
  min-height: clamp(40px, 4.1vw, 58px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.035);
  color: #fff;
  box-shadow: none;
  font-size: clamp(13px, 1.2vw, 18px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.login-social-real strong:first-child {
  color: #4285f4;
  font-size: 22px;
}
.login-panel footer {
  margin-top: 5%;
  text-align: center;
  color: rgba(248,250,252,0.62);
  font-weight: 650;
  font-size: clamp(11px, 1vw, 15px);
}
.login-credit-real {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 2.8%;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  text-align: center;
  color: #fff;
  font-size: clamp(13px, 1.6vw, 22px);
}
.login-cover .login-art-message {
  position: static;
  width: auto;
  margin: 0 0 10px;
}
.login-screen {
  padding: 0;
  overflow: hidden;
  background: #000;
}
.login-art {
  position: relative;
  width: min(100vw, calc(100vh * 4 / 3));
  height: min(100vh, calc(100vw * 3 / 4));
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}
.login-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  user-select: none;
  pointer-events: none;
}
.login-hit-form {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  z-index: 2;
}
.login-text-hit {
  position: absolute;
  z-index: 3;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #f8fafc;
  caret-color: #ff5b00;
  font-size: clamp(13px, 1.28vw, 19px);
  font-weight: 650;
}
.login-text-hit::selection {
  background: rgba(255, 91, 0, 0.45);
}
.login-text-hit:-webkit-autofill,
.login-text-hit:-webkit-autofill:hover,
.login-text-hit:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc;
  transition: background-color 9999s ease-in-out 0s;
}
.login-email-hit {
  left: 55%; top: 41%; width: 38%; height: 6%;
}
.login-password-hit {
  left: 55%; top: 50%; width: 35%; height: 6%;
}
.login-eye-hit,
.login-forgot-hit,
.login-submit-hit,
.login-google-hit,
.login-microsoft-hit {
  position: absolute;
  z-index: 4;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  cursor: pointer;
}
.login-eye-hit {
  left: 89%;
  top: 50%;
  width: 5%;
  height: 6%;
}
.login-remember-hit {
  position: absolute;
  left: 55%; top: 57.5%; width: 16%; height: 4%;
  z-index: 4;
  cursor: pointer;
}
.login-remember-hit input {
  opacity: 0;
  pointer-events: none;
}
.login-forgot-hit {
  left: 78%; top: 57.5%; width: 18%; height: 4%;
}
.login-submit-hit {
  left: 55%; top: 62.5%; width: 42%; height: 7%;
}
.login-google-hit {
  left: 55%; top: 72%; width: 19%; height: 6%;
}
.login-microsoft-hit {
  left: 76%; top: 72%; width: 20%; height: 6%;
}
.login-art-message {
  position: absolute;
  z-index: 5;
  left: 51.5%;
  top: 33.7%;
  width: 34.1%;
  padding: 0.7%;
  border-radius: 12px;
  background: rgba(255, 75, 0, 0.94);
  color: #fff;
  text-align: center;
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 750;
}
.weekday-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.weekday-pill input { display: none; }
.weekday-pill span {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.weekday-pill input:checked + span {
  background: var(--blue);
  color: white;
}
.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
}
.check-row input { width: auto; }
.section-title {
  font-weight: 900;
  color: var(--blue);
  text-transform: uppercase;
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.os-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.os-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.os-main {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.os-layout .card {
  padding: 14px 16px;
  border-radius: 20px;
}
.os-layout h3 {
  font-size: 17px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.os-side {
  display: grid;
  gap: 10px;
  align-content: start;
}
.os-bottom-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.os-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.os-item:last-child { border-bottom: 0; }
.os-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
}
.os-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.os-item select {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
}
.os-layout .toolbar {
  margin: 10px 0 0;
}
pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px;
  border-radius: 12px;
  white-space: pre-wrap;
}

/* Ajustes finais de estabilidade visual */
.login-art .login-text-hit {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  text-shadow: none !important;
  font-size: clamp(12px, 1.08vw, 16px) !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  caret-color: #ff6a00 !important;
}
.login-art .login-text-hit:-webkit-autofill,
.login-art .login-text-hit:-webkit-autofill:hover,
.login-art .login-text-hit:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  transition: background-color 999999s ease-in-out 0s !important;
}
.login-art .login-text-hit::selection {
  background: rgba(255, 106, 0, 0.38);
}
.login-art .login-email-hit {
  left: 55% !important; top: 41% !important; width: 38% !important; height: 6% !important;
}
.login-art .login-password-hit {
  left: 55% !important; top: 50% !important; width: 35% !important; height: 6% !important;
}
.login-art .login-submit-hit {
  left: 55% !important; top: 62.5% !important; width: 42% !important; height: 7% !important;
}
.login-hit-form.login-form {
  display: block;
  margin: 0;
  gap: 0;
}
body.login-debug .login-hit-form input,
body.login-debug .login-hit-form button,
body.login-debug .login-hit-form label {
  outline: 1px solid red !important;
  background: rgba(255, 0, 0, 0.08) !important;
}

body.driver-portal-active {
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(145deg, #fff8f2, #f5f5f4);
}
body.driver-portal-active > .sidebar,
body.driver-portal-active > .app,
body.driver-portal-active > .mobile-nav-backdrop,
body.driver-portal-active > dialog {
  display: none !important;
}
.driver-portal {
  min-height: 100vh;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}
.driver-portal-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}
.driver-portal-card,
.driver-portal-head {
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--glass-shadow);
}
.driver-portal-card { padding: 24px; }
.driver-access-card { max-width: 460px; margin: 10vh auto 0; text-align: center; }
.driver-access-card form { display: grid; gap: 16px; text-align: left; }
.driver-portal-logo {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff8a1d, #f97316);
  color: #fff;
  font-weight: 800;
}
.driver-portal-logo.small { width: 44px; height: 44px; border-radius: 14px; margin-right: 10px; }
.driver-portal-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.driver-portal-head > div { display: flex; align-items: center; }
.driver-checklist-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.driver-checklist-form .full { grid-column: 1 / -1; }
.driver-checklist-items { display: grid; gap: 12px; }
.driver-checklist-item {
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.driver-checklist-item label { display: flex; gap: 6px; align-items: center; }
.driver-checklist-item input[type="radio"] { width: auto; }

/* ===== Checklist do motorista - cards modernos (mobile-first) ===== */
.driver-checklist-items { display: block; }
.dchk-card {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 20px;
  padding: 20px 18px;
  margin: 0 0 16px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
}
.dchk-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff5b00;
  margin-bottom: 6px;
}
.dchk-question {
  display: block;
  float: none;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: #14181f;
  margin: 0 0 16px;
  padding: 0;
}
.dchk-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dchk-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  padding: 10px 6px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .05s ease;
}
.dchk-opt:active { transform: scale(0.97); }
.dchk-opt input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dchk-ic { font-size: 18px; line-height: 1; }
.dchk-ok .dchk-ic { color: #16a34a; }
.dchk-nc .dchk-ic { color: #dc2626; }
.dchk-na .dchk-ic { color: #6b7280; }
.dchk-ok:has(input:checked) { border-color: #16a34a; background: #ecfdf3; color: #15803d; }
.dchk-nc:has(input:checked) { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }
.dchk-na:has(input:checked) { border-color: #9ca3af; background: #f3f4f6; color: #374151; }
.dchk-opt:has(input:focus-visible) { outline: 2px solid rgba(255, 91, 0, 0.4); outline-offset: 2px; }

.dchk-extra {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  overflow: hidden;
  animation: dchkReveal .22s ease;
}
.dchk-extra[hidden] { display: none; }
@keyframes dchkReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dchk-obs-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}
.dchk-obs-label textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 400;
  color: #14181f;
  background: #fff;
  resize: vertical;
}
.dchk-foto { display: block; cursor: pointer; }
.dchk-foto input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dchk-foto-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border: 1.5px dashed rgba(17, 17, 17, 0.18);
  border-radius: 14px;
  background: #fafafa;
  color: #6b7280;
  font-weight: 700;
  font-size: 15px;
}
.dchk-foto-face .dchk-cam { font-size: 18px; }
.dchk-foto:active .dchk-foto-face { background: #f3f4f6; }

.os-part-search {
  position: static;
  min-width: 0;
}
.os-part-search input[type="search"] { width: 100%; }
.os-part-meta { min-height: 20px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.os-part-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.os-launch-form > select[name="tipo_lancamento"] { align-self: start; }
.parts-search-results {
  display: grid;
  gap: 6px;
  width: 100%;
  max-height: 220px;
  margin-top: 8px;
  padding: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(33, 24, 18, 0.08);
}
.parts-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.parts-search-result:hover,
.parts-search-result:focus-visible {
  border-color: rgba(255, 111, 0, 0.48);
  background: rgba(255, 111, 0, 0.07);
  color: var(--text);
  outline: none;
  transform: none;
}
.parts-search-result-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.parts-search-result-main strong,
.parts-search-result-main small {
  overflow-wrap: anywhere;
}
.parts-search-result-main strong {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.parts-search-result-main small { color: var(--muted); }
.parts-search-result-stock {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 111, 0, 0.12);
  color: #9b4200;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.parts-search-empty {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 600px) {
  .driver-portal-card { padding: 18px; border-radius: 18px; }
  .driver-portal-head { grid-template-columns: 1fr auto; }
  .driver-portal-head time { grid-column: 1 / -1; grid-row: 2; }
  .driver-checklist-form { grid-template-columns: 1fr; }
  .driver-checklist-form .full { grid-column: auto; }
  .driver-checklist-item { grid-template-columns: 1fr; }
  .driver-checklist-item label { min-height: 44px; }
  .parts-search-results { max-height: 200px; }
  .parts-search-result { align-items: flex-start; flex-direction: column; }
  .parts-search-result-stock { white-space: normal; }
}

.live-strip {
  padding: 12px 14px !important;
  border-radius: 18px !important;
}
.live-strip .live-list {
  gap: 5px !important;
  margin-top: 7px !important;
}
.live-strip .live-item {
  grid-template-columns: 104px minmax(0, 1fr) 108px !important;
  min-height: 34px !important;
  padding: 5px 9px !important;
  gap: 2px 10px !important;
  border-radius: 11px !important;
}
.live-strip .live-time {
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
.live-strip .live-main {
  gap: 1px !important;
  min-width: 0 !important;
}
.live-strip .live-main span {
  font-size: 10px !important;
  line-height: 1.05 !important;
}
.live-strip .live-main small {
  font-size: 8.5px !important;
  line-height: 1 !important;
}
.live-strip .badge {
  max-width: 108px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 7.5px !important;
  padding: 2px 5px !important;
}
.live-strip .live-progress {
  height: 2px !important;
}

.timeline-sticky-head-wrap {
  position: sticky !important;
  top: 0 !important;
  z-index: 90 !important;
}
.timeline-head-scroll {
  overflow: hidden !important;
}
.time-head > div:first-child,
.time-label {
  position: sticky !important;
  left: 0 !important;
  z-index: 70 !important;
  background: rgba(255, 255, 255, 0.96) !important;
}
.time-head > div:first-child {
  z-index: 100 !important;
}
.time-row:hover .time-label,
.time-row:hover .time-cell {
  background: rgba(255, 115, 22, 0.055) !important;
}
.time-row:hover .block {
  filter: brightness(1.03) saturate(1.12);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.preventive-vehicle-row {
  cursor: pointer;
}
.preventive-vehicle-row:hover td {
  background: rgba(255, 115, 22, 0.05);
}
.preventive-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.preventive-detail-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}
.preventive-detail-card .toolbar {
  margin-top: 10px;
}
.preventive-progress {
  height: 8px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
  margin: 8px 0;
}
.preventive-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.preventive-progress .green { background: #10b981; }
.preventive-progress .yellow { background: #f59e0b; }
.preventive-progress .red { background: #ef4444; }
.ghost.danger,
.small.ghost.danger {
  color: #dc2626;
}

.mobile-menu-toggle,
.mobile-nav-backdrop {
  display: none;
}

@media (min-width: 769px) and (max-width: 900px) {
  body { display: block; }
  .sidebar { width: auto; height: auto; position: static; }
  nav { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .live-item { grid-template-columns: 1fr; }
  .priority-list .priority-row { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .os-layout, .os-summary { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden;
  }

  body {
    display: block;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 11px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-radius: 14px;
    box-shadow: none;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #fff;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
    background: rgba(17, 17, 17, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    box-shadow: none;
  }

  body.mobile-nav-open .mobile-nav-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1100;
    width: min(86vw, 320px);
    height: 100dvh;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-105%);
    transition: transform 200ms ease;
    box-shadow: 20px 0 54px rgba(17, 17, 17, 0.22);
  }

  body.mobile-nav-open .sidebar {
    transform: translateX(0);
  }

  .sidebar nav {
    grid-template-columns: 1fr;
  }

  .app {
    width: 100%;
    min-width: 0;
    padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .topbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 16px;
  }

  .topbar > div:first-of-type {
    min-width: 0;
  }

  .topbar h1 {
    font-size: clamp(28px, 9vw, 36px);
    overflow-wrap: anywhere;
  }

  #pageSubtitle {
    margin-top: 4px;
    font-size: 14px;
  }

  .datebar {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    gap: 6px;
  }

  .auth-status {
    min-width: 0;
    max-width: 104px;
    flex: 0 1 104px;
  }

  .auth-status .pill {
    max-width: 100%;
    padding-inline: 6px;
  }

  .datebar input {
    min-width: 0;
    flex: 1 1 auto;
    padding: 11px 8px;
  }

  .datebar .small {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  #view,
  .card,
  .grid,
  .toolbar,
  .dashboard-bottom,
  .live-strip,
  .timeline-shell {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .app img,
  .app svg,
  .app video,
  .app canvas,
  .app pre,
  #modal img,
  #modal video,
  #modal canvas,
  #modal pre {
    max-width: 100%;
  }

  .app pre,
  #modal pre {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }

  .cards,
  .dashboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    white-space: normal;
  }

  .dashboard-bottom,
  .checkin-grid,
  .os-layout,
  .os-summary,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar > * {
    width: 100%;
    max-width: none;
  }

  body:not(.login-active) .app input,
  body:not(.login-active) .app select,
  body:not(.login-active) .app textarea,
  body:not(.login-active) .app button,
  body:not(.login-active) #modal input,
  body:not(.login-active) #modal select,
  body:not(.login-active) #modal textarea,
  body:not(.login-active) #modal button {
    font-size: 16px;
  }

  body:not(.login-active) .app button,
  body:not(.login-active) .app .small,
  body:not(.login-active) .app input,
  body:not(.login-active) .app select,
  body:not(.login-active) #modal button,
  body:not(.login-active) #modal .small,
  body:not(.login-active) #modal input,
  body:not(.login-active) #modal select {
    min-height: 44px;
  }

  body:not(.login-active) .app textarea,
  body:not(.login-active) #modal textarea {
    min-height: 96px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid > *,
  .full {
    grid-column: 1;
    min-width: 0;
  }

  dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .modal-head {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: max(14px, env(safe-area-inset-top)) 14px 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
  }

  #modalBody {
    max-height: calc(100dvh - 68px);
    padding: 14px 12px calc(22px + env(safe-area-inset-bottom));
  }

  .responsive-card-table {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .responsive-card-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .responsive-card-table tbody,
  .responsive-card-table tr,
  .responsive-card-table td {
    display: block;
    width: 100%;
  }

  .responsive-card-table tbody {
    display: grid;
    gap: 12px;
  }

  .responsive-card-table tr {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.05);
  }

  .responsive-card-table td {
    display: grid;
    grid-template-columns: minmax(104px, 36%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .responsive-card-table td:last-child {
    border-bottom: 0;
  }

  .responsive-card-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .responsive-card-table td[data-label=""] {
    grid-template-columns: 1fr;
  }

  .responsive-card-table td[data-label=""]::before {
    display: none;
  }

  .responsive-card-table td button {
    width: 100%;
    margin: 3px 0;
  }

  .timeline-sticky-head-wrap,
  .time-head,
  .time-cell,
  .time-now {
    display: none;
  }

  .timeline {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    border-radius: 20px;
  }

  .time-row {
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 12px;
  }

  .time-label {
    position: static;
    width: 100%;
    padding: 0 0 10px;
    border: 0;
    background: transparent;
  }

  .block {
    position: relative;
    top: auto;
    left: auto !important;
    width: 100% !important;
    min-height: 44px;
    height: auto;
    margin-top: 6px;
    padding: 12px;
    white-space: normal;
  }

  .live-item,
  .priority-list .priority-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .app {
    padding-inline: 12px;
  }

  .cards,
  .dashboard-cards,
  .dashboard-bottom,
  .quick-actions,
  .compact-summary-cards {
    grid-template-columns: 1fr;
  }

  .datebar {
    flex-wrap: wrap;
  }

  .auth-status {
    order: 1;
    max-width: calc(100% - 100px);
    flex: 1 1 calc(100% - 100px);
  }

  .datebar input {
    order: 2;
    flex-basis: calc(100% - 100px);
  }

  .datebar .small {
    order: 2;
  }

  .responsive-card-table td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .row-actions,
  .garage-services {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 430px) {
  .app {
    padding: 12px 10px calc(18px + env(safe-area-inset-bottom));
  }

  .sidebar {
    width: min(90vw, 320px);
  }

  .brand {
    min-height: 82px;
    padding: 14px;
  }

  .topbar h1 {
    font-size: 28px;
  }

  .card {
    padding: 14px;
    border-radius: 20px;
  }

  .toolbar {
    gap: 8px;
  }

  .weekday-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Login funcional sobre a arte oficial, sem hitboxes por coordenadas. */
.login-bg-desktop { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: fill; pointer-events: none; }
.login-bg-mobile { display: none; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: fill; pointer-events: none; }
.login-art-form {
  position: relative;
  width: min(100vw, calc(100dvh * 4 / 3));
  height: min(100dvh, calc(100vw * 3 / 4));
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #000;
  margin: 0 auto;
}
.login-art-form .login-form-panel {
  position: absolute;
  z-index: 3;
  left: 63%;
  top: 38%;
  width: 32%;
  height: 43%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(12px, 1.2vw, 20px);
  overflow: hidden;
  color: #fff;
}
.login-art-form .login-form-panel button,
.login-art-form .login-form-panel label {
  position: static;
  box-sizing: border-box;
}
.login-art-form .login-overlay-form {
  display: grid;
  gap: clamp(7px, 0.7vw, 11px);
  margin: 0;
}
.login-mobile-header,
.login-mobile-footer {
  display: none;
}
.login-art-form .login-overlay-field {
  display: grid;
  gap: 5px;
  color: #f8fafc;
  font-size: clamp(10px, 0.85vw, 13px);
  font-weight: 800;
}
.login-art-form .login-overlay-field > span:first-child {
  color: #f8fafc;
}
.login-art-form .login-overlay-field input {
  width: 100%;
  min-height: clamp(40px, 3.4vw, 52px);
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 11px;
  background: rgba(15, 15, 15, 0.88);
  color: #fff;
  font-size: clamp(13px, 1.05vw, 16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.login-art-form .login-overlay-field input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}
.login-art-form .login-overlay-field input:focus {
  border-color: rgba(255, 106, 0, 0.82);
  outline: 2px solid rgba(255, 106, 0, 0.15);
}
.login-art-form .login-overlay-password {
  position: relative;
  display: block;
}
.login-art-form .login-overlay-password input {
  padding-right: 46px;
}
.login-art-form .login-overlay-password button {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  transform: translateY(-50%);
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  box-shadow: none;
  font-size: 17px;
}
.login-art-form .login-overlay-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
}
.login-art-form .login-overlay-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 650;
  white-space: nowrap;
}
.login-art-form .login-overlay-options input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #ff6400;
}
.login-art-form .login-overlay-options button {
  min-height: 30px;
  padding: 3px 0;
  background: transparent;
  color: #ff6a00;
  box-shadow: none;
  font-size: clamp(11px, 0.9vw, 13px);
  white-space: nowrap;
}
.login-art-form .login-overlay-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: clamp(44px, 4vw, 58px);
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7300, #ff3d00);
  color: #fff;
  box-shadow: 0 13px 28px rgba(255, 82, 0, 0.26);
  font-size: clamp(16px, 1.45vw, 22px);
}
.login-art-form .login-overlay-submit span {
  font-size: 1.25em;
}
.login-art-form .login-overlay-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: clamp(8px, 1vw, 14px) 0 clamp(7px, 0.8vw, 12px);
  color: rgba(255, 255, 255, 0.55);
}
.login-art-form .login-overlay-divider span {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.login-art-form .login-overlay-divider small {
  font-size: clamp(10px, 0.8vw, 12px);
}
.login-art-form .login-overlay-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.login-art-form .login-overlay-social button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: clamp(42px, 3.6vw, 52px);
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  box-shadow: none;
  font-size: clamp(12px, 1vw, 15px);
}
.login-art-form .login-overlay-social button > strong:first-child {
  display: inline-flex;
  margin: 0;
  color: #4285f4;
  font-size: 18px;
  line-height: 1;
}
.login-art-form .microsoft-mark {
  display: grid !important;
  grid-template-columns: repeat(2, 6px);
  gap: 1px;
}
.login-art-form .microsoft-mark i {
  width: 6px;
  height: 6px;
  background: #f25022;
}
.login-art-form .microsoft-mark i:nth-child(2) { background: #7fba00; }
.login-art-form .microsoft-mark i:nth-child(3) { background: #00a4ef; }
.login-art-form .microsoft-mark i:nth-child(4) { background: #ffb900; }
.login-art-form .login-overlay-protection {
  margin: clamp(7px, 0.8vw, 12px) 0 0;
  color: rgba(255, 255, 255, 0.54);
  text-align: center;
  font-size: clamp(8px, 0.6vw, 10px);
}
.login-art-form .login-form-message {
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 106, 0, 0.52);
  border-radius: 10px;
  background: rgba(255, 82, 0, 0.18);
  color: #fff;
  text-align: center;
  font-size: 12px;
}
.login-art-form .login-email-hit,
.login-art-form .login-password-hit,
.login-art-form .login-eye-hit,
.login-art-form .login-remember-hit,
.login-art-form .login-forgot-hit,
.login-art-form .login-submit-hit,
.login-art-form .login-google-hit,
.login-art-form .login-microsoft-hit {
  display: none !important;
}

@media (max-width: 768px) {
  body.login-active {
    padding: 0;
    background: #000;
  }
  .login-screen {
    padding: 0;
  }
  /* Mobile: layout nativo sem imagem de fundo */
  .login-bg-desktop,
  .login-bg-mobile { display: none; }

  .login-art-form {
    width: 100vw;
    height: 100dvh;
    aspect-ratio: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 20px;
    box-sizing: border-box;
    background:
      radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 100, 0, 0.14) 0%, transparent 70%),
      radial-gradient(ellipse 60% 30% at 50% 100%, rgba(255, 80, 0, 0.09) 0%, transparent 70%),
      #0a0a0a;
  }

  /* Header mobile */
  .login-mobile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    margin-bottom: 24px;
  }
  .login-mobile-logo {
    font-size: 52px;
    font-weight: 900;
    color: #ff6400;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 14px;
    text-shadow: 0 0 48px rgba(255, 100, 0, 0.45);
  }
  .login-mobile-title {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.4px;
  }
  .login-mobile-title span { color: #ff6400; }
  .login-mobile-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.48);
    margin: 0;
  }

  /* Card do formulário */
  .login-art-form .login-form-panel {
    position: relative;
    left: unset;
    top: unset;
    width: 100%;
    max-width: 360px;
    height: auto;
    flex-shrink: 0;
    padding: 22px 20px 18px;
    background: #111;
    border: 1px solid rgba(255, 100, 0, 0.28);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 100, 0, 0.07);
    overflow: visible;
    justify-content: flex-start;
    color: #fff;
  }

  /* Campos do formulário */
  .login-art-form .login-overlay-form { gap: 14px; }
  .login-art-form .login-overlay-field { gap: 5px; font-size: 10px; }
  .login-art-form .login-overlay-field > span:first-child { font-size: 10px; color: rgba(255, 255, 255, 0.65); }
  .login-art-form .login-overlay-field input {
    min-height: 44px;
    font-size: 15px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
  }
  .login-art-form .login-overlay-password input { padding-right: 48px; }
  .login-art-form .login-overlay-password button { min-height: 44px; width: 40px; font-size: 17px; }
  .login-art-form .login-overlay-options { min-height: 26px; font-size: 12px; gap: 10px; }
  .login-art-form .login-overlay-options label,
  .login-art-form .login-overlay-options button { font-size: 12px; min-height: 26px; }
  .login-art-form .login-overlay-submit { min-height: 46px; font-size: 15px; border-radius: 10px; margin-top: 4px; }
  .login-art-form .login-overlay-protection { font-size: 10px; margin-top: 14px; text-align: center; }

  /* Footer mobile */
  .login-mobile-footer {
    display: block;
    flex-shrink: 0;
    margin-top: 20px;
    font-size: 11px;
    color: rgba(255, 100, 0, 0.45);
    text-align: center;
  }
  .login-mobile-footer span {
    color: rgba(255, 100, 0, 0.75);
    font-weight: 600;
  }
}
