:root {
  --sidebar-width: calc(252px - 1cm);
  --sidebar-collapsed: 78px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 24px 70px var(--color-shadow);
}
.list-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: 11px; }.list-pagination > div { display: flex; align-items: center; gap: 10px; }.list-pagination a { color: var(--color-primary); font-weight: 700; }

/* Superadmin administrativo e saúde da plataforma */
.platform-metrics--four { max-width: none; grid-template-columns: repeat(4,minmax(0,1fr)); }
.platform-alerts { margin-bottom: 20px; }
.platform-alert-list { display: grid; gap: 8px; padding: 14px 20px 20px; }
.platform-alert-list--inside { padding-top: 0; }
.platform-alert { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--color-border); border-radius: 10px; color: var(--color-text); background: var(--color-surface-alt); font-size: 11px; }
.platform-alert--attention { border-color: color-mix(in srgb,var(--color-warning) 50%,var(--color-border)); }
.platform-alert--critical { border-color: color-mix(in srgb,var(--color-danger) 55%,var(--color-border)); }
.platform-filter { display: grid; grid-template-columns: minmax(240px,1.5fr) repeat(3,minmax(150px,.7fr)) auto; align-items: end; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--color-border); }
.platform-filter label { display: grid; gap: 6px; color: var(--color-muted); font-size: 10px; }
.platform-filter input,.platform-filter select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid var(--color-border); border-radius: 9px; color: var(--color-text); background: var(--color-input-background); }
.platform-table--clients { min-width: 1260px; table-layout: auto; }
.platform-table--clients th:first-child { min-width: 210px; }
.platform-table--admin-audit { min-width: 1250px; table-layout: auto; }
.platform-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 18px; color: var(--color-muted); font-size: 11px; }
.sensitive-eye { width: 28px; height: 28px; padding: 0; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-primary); background: transparent; cursor: pointer; vertical-align: middle; }
.sensitive-eye:hover { border-color: var(--color-primary); background: color-mix(in srgb,var(--color-primary) 8%,transparent); }
.platform-tabs { position: sticky; z-index: 3; top: 0; display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; border: 1px solid var(--color-border); border-radius: 12px; background: color-mix(in srgb,var(--color-surface) 96%,transparent); backdrop-filter: blur(12px); }
.platform-tabs a { padding: 8px 11px; border-radius: 8px; color: var(--color-muted); font-size: 10px; font-weight: 750; }
.platform-tabs a:hover { color: var(--color-primary); background: color-mix(in srgb,var(--color-primary) 8%,transparent); }
.status-pill--operational { color: var(--color-success); background: color-mix(in srgb,var(--color-success) 12%,transparent); }
.status-pill--attention { color: var(--color-warning); background: color-mix(in srgb,var(--color-warning) 12%,transparent); }
.status-pill--critical { color: var(--color-danger); background: color-mix(in srgb,var(--color-danger) 12%,transparent); }
.platform-stat__date { font-size: 18px !important; }
.platform-health-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.platform-health-grid > div { display: grid; gap: 6px; min-height: 82px; padding: 16px 20px; border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.platform-health-grid span { color: var(--color-muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.platform-health-grid strong { font-size: 11px; line-height: 1.4; }
.platform-security-note,.platform-guidance { padding: 14px 20px; border-bottom: 1px solid var(--color-border); color: var(--color-muted); font-size: 10px; line-height: 1.55; }
.platform-note-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; padding: 18px 22px; }
.platform-note-form label { grid-column: 1/-1; font-size: 11px; font-weight: 700; }
.platform-note-form textarea { min-height: 80px; padding: 12px; border: 1px solid var(--color-border); border-radius: 10px; color: var(--color-text); background: var(--color-input-background); resize: vertical; }
.platform-note-list article { padding: 16px 22px; border-top: 1px solid var(--color-border); }
.platform-note-list strong { font-size: 10px; }.platform-note-list p { margin: 7px 0 0; color: var(--color-muted); font-size: 11px; line-height: 1.55; }
.platform-health-page { display: grid; gap: 20px; }
.platform-health-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 23px; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface); }
.platform-health-summary h2,.platform-health-summary p { margin: 0; }.platform-health-summary h2 { font-size: 24px; }.platform-health-summary small { color: var(--color-muted); }
.platform-health-dot { display: inline-block; width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--color-muted); }
.platform-health--operational .platform-health-dot { background: var(--color-success); box-shadow: 0 0 12px var(--color-success); }
.platform-health--attention .platform-health-dot { background: var(--color-warning); box-shadow: 0 0 12px var(--color-warning); }
.platform-health--critical .platform-health-dot { background: var(--color-danger); box-shadow: 0 0 12px var(--color-danger); }
.platform-resource-grid,.platform-service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 18px; }
.platform-resource-grid--history { grid-template-columns: repeat(3,minmax(0,1fr)); }
.platform-resource-card { position: relative; display: grid; gap: 9px; min-width: 0; padding: 17px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface-alt); }
.platform-resource-card__heading,.platform-resource-card__heading > span { display: flex; align-items: center; gap: 8px; }.platform-resource-card__heading { justify-content: space-between; }.platform-resource-card__heading em { color: var(--color-muted); font-size: 11px; font-style: normal; }.platform-resource-card__current { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }.platform-resource-card__current b { font-size: 30px; }.platform-resource-card__current small,.platform-resource-card__detail,.platform-resource-card__stats,.platform-resource-card__variation { margin: 0; color: var(--color-muted); font-size: 11px; line-height: 1.5; }.platform-resource-card__detail small { display: block; margin-top: 3px; }.platform-resource-card__stats strong { color: var(--color-text); }.platform-resource-card__variation { color: var(--color-primary); }.platform-chart-period { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--color-muted); font-size: 11px; }.platform-chart-period select { min-width: 104px; padding: 7px 8px; border: 1px solid var(--color-border); border-radius: 7px; color: var(--color-text); background: var(--color-input-background); font-size: 11px; }.platform-resource-chart { width: 100%; height: 190px; overflow: visible; border-bottom: 1px solid var(--color-border); }.platform-chart-grid-line { stroke: color-mix(in srgb,var(--color-border) 55%,transparent); stroke-width: .35; stroke-dasharray: 1.5 1.5; }.platform-resource-chart text { fill: color-mix(in srgb,var(--color-text) 72%,var(--color-muted)); font-size: 5.5px; font-weight: 600; }.platform-chart-line { fill: none; stroke: var(--color-primary); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }.platform-chart-points circle { fill: var(--color-primary); stroke: var(--color-surface-alt); stroke-width: .4; cursor: pointer; }.platform-resource-card__hint { min-height: 14px; margin: 0; color: var(--color-muted); font-size: 10px; }.platform-chart-tooltip { position: absolute; z-index: 2; top: 88px; right: 14px; max-width: calc(100% - 28px); padding: 7px 9px; border: 1px solid var(--color-border); border-radius: 7px; color: var(--color-text); background: color-mix(in srgb,var(--color-surface) 96%,transparent); box-shadow: 0 8px 22px var(--color-shadow); font-size: 11px; line-height: 1.4; white-space: pre-line; pointer-events: none; }
.platform-health-context { display: grid; gap: 3px; text-align: right; }.platform-health-context strong { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }.platform-health-context span { font-size: 12px; }.platform-health-context small { color: var(--color-muted); }
.platform-service-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.platform-health-card { display: grid; gap: 9px; min-height: 135px; padding: 17px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface-alt); }
.platform-health-card header,.platform-health-card > div { display: flex; align-items: center; gap: 8px; }.platform-health-card header em { margin-left: auto; color: var(--color-muted); font-size: 9px; font-style: normal; }.platform-health-card b { font-size: 22px; }.platform-health-card p,.platform-health-card small { margin: 0; color: var(--color-muted); font-size: 9px; line-height: 1.45; }
.platform-communication-health { display: grid; gap: 0; }.platform-communication-health > div { display: grid; grid-template-columns: auto 1fr auto 100px; align-items: center; gap: 12px; padding: 15px 22px; border-top: 1px solid var(--color-border); font-size: 11px; }.platform-communication-health > div:first-child { border-top: 0; }.platform-communication-health small { color: var(--color-muted); text-align: right; }
.platform-event-list article { display: grid; grid-template-columns: auto 140px 130px 1fr; align-items: center; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--color-border); font-size: 10px; }.platform-event-list time,.platform-event-list p { margin: 0; color: var(--color-muted); }
.platform-communication-layout { align-items: start; }.platform-communication-form { padding: 22px; }.platform-communication-form select[multiple] { min-height: 120px; }
.communication-preview { display: grid; gap: 5px; padding: 16px; border: 1px solid color-mix(in srgb,var(--color-primary) 35%,var(--color-border)); border-radius: 11px; background: color-mix(in srgb,var(--color-primary) 6%,transparent); }.communication-preview span,.communication-preview small { color: var(--color-muted); font-size: 10px; }.communication-preview strong { font-size: 30px; }

@media (max-width:1100px) {
  .platform-metrics--four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .platform-filter { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .platform-health-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .platform-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px) {
  .platform-metrics--four,.platform-filter,.platform-resource-grid,.platform-resource-grid--history,.platform-service-grid,.platform-health-grid { grid-template-columns: 1fr; }
  .platform-header .topbar-actions { align-items: stretch; flex-direction: column; }
  .platform-health-summary { grid-template-columns: auto 1fr; }.platform-health-summary small,.platform-health-context { grid-column: 1/-1; }.platform-health-context { text-align: left; }
  .platform-communication-health > div { grid-template-columns: auto 1fr auto; }.platform-communication-health small { grid-column: 2/-1; text-align: left; }
  .platform-event-list article { grid-template-columns: auto 1fr; }.platform-event-list p { grid-column: 2; }
  .platform-note-form { grid-template-columns: 1fr; }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { min-height: 100%; background: var(--color-bg); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.platform-page { padding: 36px; }.platform-shell { max-width: 1400px; margin: 0 auto; }.platform-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }.platform-header h1 { margin: 0; font: 800 30px/1.2 "Segoe UI Variable Display", "Segoe UI", sans-serif; }.platform-metrics { max-width: 620px; margin-bottom: 20px; }.platform-row { display: grid; grid-template-columns: 1.7fr .9fr 1fr .7fr .7fr .6fr 70px; align-items: center; gap: 14px; min-height: 65px; padding: 12px 23px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); font-size: 11px; }.platform-row strong, .platform-row div { display: grid; gap: 4px; }.platform-row small { color: var(--color-muted); font-size: 10px; }.platform-row--head { min-height: 48px; color: var(--color-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: color-mix(in srgb, var(--color-surface-alt) 45%, transparent); }
.platform-client { display: grid; gap: 20px; }.platform-client__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 8px 2px 10px; }.platform-client__header h1 { margin: 6px 0 0; font: 800 clamp(28px, 3vw, 42px)/1.12 "Segoe UI Variable Display", "Segoe UI", sans-serif; letter-spacing: -.035em; }.platform-client__subtitle { margin: 9px 0 0; color: var(--color-muted); font-size: 14px; }.platform-back { display: inline-block; margin-bottom: 25px; color: var(--color-muted); font-size: 12px; font-weight: 700; }.platform-back:hover { color: var(--color-primary); }.platform-client__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }.status-pill, .presence { display: inline-flex; width: fit-content; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: var(--color-muted); background: color-mix(in srgb, var(--color-surface-alt) 80%, transparent); font-size: 11px; font-weight: 700; }.status-pill--success, .presence--online { color: var(--color-success); background: color-mix(in srgb, var(--color-success) 12%, transparent); }.status-pill--success::before, .presence--online::before { width: 7px; height: 7px; border-radius: 50%; content: ""; background: var(--color-success); box-shadow: 0 0 12px color-mix(in srgb, var(--color-success) 70%, transparent); }.status-pill--danger, .presence--blocked { color: var(--color-danger); background: color-mix(in srgb,var(--color-danger) 11%,transparent); }.status-pill--outline { border: 1px solid var(--color-border); background: transparent; }.platform-client__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.platform-stat { position: relative; display: grid; gap: 6px; min-height: 126px; padding: 22px; overflow: hidden; border: 1px solid var(--color-border); border-radius: 16px; background: linear-gradient(145deg, color-mix(in srgb, var(--color-surface) 96%, var(--color-text)), var(--color-surface)); }.platform-stat::after { position: absolute; top: -55px; right: -30px; width: 135px; height: 135px; border-radius: 50%; content: ""; background: color-mix(in srgb, var(--color-primary) 7%, transparent); }.platform-stat span { color: var(--color-muted); font-size: 12px; }.platform-stat strong { z-index: 1; font: 800 34px/1.1 "Segoe UI Variable Display", "Segoe UI", sans-serif; }.platform-stat small { color: var(--color-muted); font-size: 10px; }.platform-stat--online { border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border)); }.platform-client__columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr); gap: 20px; }.platform-panel { overflow: hidden; border: 1px solid var(--color-border); border-radius: 17px; background: var(--color-surface); box-shadow: 0 14px 38px color-mix(in srgb,var(--color-shadow) 55%,transparent); }.platform-panel__heading { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 23px; border-bottom: 1px solid var(--color-border); }.platform-panel__heading h2 { margin: 0; font: 800 17px/1.25 "Segoe UI Variable Display", "Segoe UI", sans-serif; }.platform-panel__heading .eyebrow { margin-bottom: 6px; font-size: 9px; }.platform-panel__heading > small { color: var(--color-muted); font-size: 11px; }.privacy-label { padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--color-primary) 25%, var(--color-border)); border-radius: 8px; color: var(--color-muted); font-size: 9px; }.client-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }.client-data-grid div { min-width: 0; padding: 18px 23px; border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }.client-data-grid div:nth-child(2n) { border-right: 0; }.client-data-grid div:nth-last-child(-n+2) { border-bottom: 0; }.client-data-grid dt { margin-bottom: 7px; color: var(--color-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.client-data-grid dd { margin: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 650; }.platform-plan-form { gap: 15px; margin: 0; padding: 22px 23px 24px; }.platform-plan-form .field > small:not(.field-error) { color: var(--color-muted); font-size: 9px; }.platform-plan-form select, .platform-plan-form input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--color-border); outline: none; border-radius: 10px; color: var(--color-text); background: var(--color-input-background); }.platform-plan-form select:focus, .platform-plan-form input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent); }[data-plan-only][hidden] { display: none; }.platform-table-wrap { width: 100%; overflow-x: auto; }.platform-table { width: 100%; border-collapse: collapse; table-layout: fixed; }.platform-table th { padding: 14px 20px; color: var(--color-muted); background: color-mix(in srgb, var(--color-surface-alt) 52%, transparent); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; }.platform-table td { padding: 16px 20px; border-top: 1px solid var(--color-border); overflow-wrap: anywhere; font-size: 11px; line-height: 1.45; vertical-align: middle; }.platform-table tbody tr:hover { background: color-mix(in srgb, var(--color-primary) 3%, transparent); }.platform-table td strong { display: block; font-size: 11px; }.platform-table td small { display: block; margin-top: 3px; color: var(--color-muted); font-size: 9px; }.platform-table--audit { min-width: 1040px; }.platform-table--audit th:nth-child(1) { width: 15%; }.platform-table--audit th:nth-child(2) { width: 14%; }.platform-table--audit th:nth-child(3), .platform-table--audit th:nth-child(4) { width: 14%; }.platform-table--audit th:nth-child(5) { width: 9%; }.platform-table--audit th:nth-child(6) { width: 11%; }.platform-table--audit th:nth-child(7) { width: 11%; }.platform-table--audit th:nth-child(8) { width: 12%; }.platform-empty { padding: 32px !important; color: var(--color-muted); text-align: center; }
.notification-button { display: grid; place-items: center; }.notification-button.is-active { border-color: var(--color-primary); color: var(--color-primary); }.occurrence-row { display: grid; grid-template-columns: 1.5fr 1.2fr .7fr .9fr 1fr 75px; align-items: center; gap: 14px; min-height: 67px; padding: 12px 23px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); font-size: 11px; }.occurrence-row div { display: grid; gap: 4px; }.occurrence-row small { color: var(--color-muted); }.occurrence-row--head { min-height: 48px; color: var(--color-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: color-mix(in srgb, var(--color-surface-alt) 45%, transparent); }.notification-list { overflow: hidden; }.notification-item { border-bottom: 1px solid var(--color-border); }.notification-item button { display: grid; width: 100%; gap: 6px; padding: 18px 22px; border: 0; color: var(--color-text); background: transparent; cursor: pointer; text-align: left; }.notification-item button span { color: var(--color-muted); font-size: 11px; }.notification-item.is-unread { border-left: 3px solid var(--color-primary); background: color-mix(in srgb, var(--color-primary) 6%, transparent); }

button, input, select, textarea { font: inherit; }
.insight-grid { display: grid; gap: 12px; }.insight-card { display: flex; gap: 14px; padding: 20px; }.insight-card > span { width: 9px; height: 9px; flex: 0 0 9px; margin-top: 5px; border-radius: 50%; background: var(--color-primary); }.insight-card--warning > span { background: var(--color-warning); }.insight-card--danger > span { background: var(--color-danger); }.insight-card h2 { margin: 0; font-size: 15px; }.insight-card p { margin: 7px 0 0; color: var(--color-muted); font-size: 12px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.eyebrow {
  margin: 0 0 9px;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background: url("../img/nexum-symbol.png") center / contain no-repeat;
  filter: drop-shadow(0 5px 12px color-mix(in srgb, var(--color-primary) 24%, transparent));
}

.brand-mark::after { content: none; }
.brand-mark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.brand-mark--large { width: 172px; height: 172px; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover { transform: translateY(-1px); }
.button--primary { color: var(--color-primary-contrast); background: var(--color-primary); box-shadow: 0 10px 28px color-mix(in srgb, var(--color-primary) 18%, transparent); }
.button--primary:hover { background: var(--color-accent); }
.button--danger { color: #fff; background: var(--color-danger); box-shadow: 0 10px 28px color-mix(in srgb, var(--color-danger) 18%, transparent); }
.button--danger:hover { background: color-mix(in srgb, var(--color-danger) 82%, #000); }
.button--wide { width: 100%; }

/* Authentication */
.auth-shell { display: grid; min-height: 100vh; min-height: 100dvh; grid-template-columns: minmax(360px, 1.07fr) minmax(400px, .93fr); }
.auth-brand {
  position: relative;
  display: grid;
  overflow: hidden;
  align-items: center;
  padding: clamp(48px, 8vw, 120px);
  border-right: 1px solid color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
  background:
    linear-gradient(135deg, transparent 0 47%, color-mix(in srgb, var(--color-primary) 8%, transparent) 47% 51%, transparent 51%) 0 0 / 160px 160px,
    linear-gradient(45deg, transparent 0 47%, color-mix(in srgb, var(--color-info) 7%, transparent) 47% 51%, transparent 51%) 0 0 / 160px 160px,
    radial-gradient(circle at 18% 24%, color-mix(in srgb, var(--color-primary) 18%, transparent), transparent 32%),
    linear-gradient(145deg, color-mix(in srgb,var(--color-bg) 94%,var(--color-surface)), var(--color-bg));
}
.auth-brand::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .22;
  background-image: linear-gradient(color-mix(in srgb,var(--color-text) 3%,transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb,var(--color-text) 3%,transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom right, black, transparent 76%);
}
.brand-content { position: relative; z-index: 1; display: grid; justify-items: center; width: min(100%, 520px); margin: 0 auto; text-align: center; }
.brand-content .brand-mark { width: min(32vw, 226px); height: min(32vw, 226px); margin-bottom: 22px; }
.brand-wordmark { display: grid; margin: 0; color: var(--color-text); font: 700 clamp(44px, 6vw, 76px)/.82 "Segoe UI Variable Display", "Segoe UI", sans-serif; letter-spacing: .18em; text-indent: .18em; }
.brand-wordmark small { margin-top: 14px; color: var(--color-primary); font: 800 clamp(12px, 1.5vw, 17px)/1 "Segoe UI", sans-serif; letter-spacing: .62em; text-indent: .62em; }
.brand-tagline { width: min(100%, 360px); margin: 35px 0 0; padding-top: 17px; border-top: 1px solid color-mix(in srgb, var(--color-primary) 72%, transparent); color: var(--color-muted); font-size: 16px; line-height: 1.55; }
.brand-glow { position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: var(--color-primary); filter: blur(180px); opacity: .12; }
.auth-panel { position: relative; display: grid; place-items: center; padding: clamp(28px, 6vw, 80px); background: color-mix(in srgb, var(--color-surface) 72%, var(--color-bg)); }
.auth-panel::before { position: absolute; inset: 22px 0; width: 1px; content: ""; background: color-mix(in srgb, var(--color-primary) 60%, transparent); }
.login-card { width: min(100%, 440px); }
.mobile-brand { display: none; align-items: center; gap: 13px; margin-bottom: 44px; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 18px; letter-spacing: .08em; }
.mobile-brand strong { display: grid; }
.mobile-brand small { margin-top: 3px; color: var(--color-primary); font-size: 8px; letter-spacing: .28em; }
.login-heading h2 { margin: 0; font: 800 32px/1.2 "Segoe UI Variable Display", "Segoe UI", sans-serif; letter-spacing: -.03em; }
.login-heading > p:last-child { margin: 11px 0 34px; color: var(--color-muted); line-height: 1.6; }
.login-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { color: color-mix(in srgb, var(--color-text) 88%, transparent); font-size: 13px; font-weight: 600; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.label-row a { color: var(--color-primary); font-size: 12px; font-weight: 600; }
.field input {
  width: 100%;
  height: 49px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  outline: none;
  border-radius: 10px;
  color: var(--color-text);
  background: var(--color-input-background);
  transition: border .2s, box-shadow .2s;
}
.field select, .field textarea {
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  outline: none;
  border-radius: 10px;
  color: var(--color-text);
  background: var(--color-input-background);
  transition: border .2s, box-shadow .2s;
}
.field select { padding-block: 0; }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field select:focus, .field textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent); }
.field input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent); }
.field--check { display: flex; align-items: center; gap: 10px; }
.field--check input { order: -1; width: 18px; height: 18px; accent-color: var(--color-primary); }
.password-field { position: relative; }
.password-field input { padding-right: 78px; }
.password-toggle { position: absolute; top: 50%; right: 5px; display: inline-flex; min-width: 68px; min-height: 44px; align-items: center; justify-content: center; padding: 5px; border: 0; color: var(--color-muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; transform: translateY(-50%); }
.field-error { color: var(--color-danger); }
.field-help { color: var(--color-muted); font-size: 11px; line-height: 1.4; }
.alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 9px; font-size: 13px; line-height: 1.45; }
.alert--error { border: 1px solid color-mix(in srgb,var(--color-danger) 28%,transparent); color: var(--color-danger); background: color-mix(in srgb,var(--color-danger) 10%,transparent); }
.alert--success { border: 1px solid color-mix(in srgb, var(--color-success) 28%, transparent); color: var(--color-success); background: color-mix(in srgb, var(--color-success) 10%, transparent); }
.signup-link { display: flex; justify-content: center; gap: 6px; margin-top: 27px; color: var(--color-muted); font-size: 12px; }
.signup-link a { color: var(--color-primary); font-weight: 700; }
.login-secondary-link { display: block; margin-top: 18px; color: var(--color-muted); font-size: 11px; text-align: center; }
.login-secondary-link:hover { color: var(--color-primary); }
.security-note { margin: 38px 0 0; text-align: center; color: color-mix(in srgb, var(--color-muted) 73%, transparent); font-size: 10px; }
.security-note span { margin-right: 6px; color: var(--color-primary); }

/* Application */
.app-shell { min-height: 100vh; min-height: 100dvh; background: color-mix(in srgb, var(--color-bg) 88%, #000); }
.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-surface), color-mix(in srgb, var(--color-bg) 92%, #000));
  transition: width .22s ease, transform .22s ease;
}
.sidebar-head { display: flex; min-height: 76px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--color-border); }
.sidebar-brand { display: flex; min-width: 0; align-items: center; gap: 11px; }
.brand-name { display: grid; overflow: hidden; color: var(--color-text); font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.brand-name small { margin-top: 3px; color: var(--color-primary); font-family: "Segoe UI", sans-serif; font-size: 7px; font-weight: 800; letter-spacing: .42em; }
.sidebar-collapse, .mobile-menu, .icon-button, .text-button { border: 0; color: var(--color-muted); background: transparent; cursor: pointer; }
.sidebar-collapse { display: flex; width: 26px; height: 26px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--color-border); border-radius: 8px; font-size: 20px; line-height: 1; text-align: center; }
.sidebar-nav { display: grid; overflow-x: hidden; overflow-y: auto; gap: 5px; padding: 18px 12px; scrollbar-color: color-mix(in srgb, var(--color-muted) 70%, transparent) transparent; scrollbar-width: thin; }
.sidebar-nav::-webkit-scrollbar { width: 8px; }
.sidebar-nav::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--color-muted) 70%, transparent); background-clip: padding-box; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.nav-item { display: flex; min-height: 43px; align-items: center; gap: 12px; padding: 0 12px; border-radius: 10px; color: var(--color-muted); font-size: 12px; font-weight: 500; white-space: nowrap; transition: color .18s, background .18s; }
.nav-item:hover { color: var(--color-text); background: color-mix(in srgb,var(--color-primary) 6%,transparent); }
.nav-item.is-active { color: var(--color-primary-contrast); background: linear-gradient(100deg, var(--color-primary), var(--color-primary-hover)); box-shadow: 0 8px 24px color-mix(in srgb, var(--color-primary) 13%, transparent); font-weight: 700; }
.nav-icon { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; font-size: 16px; }
.nav-label { overflow: hidden; }
.sidebar-bottom { display: grid; gap: 8px; margin-top: auto; padding: 12px; border-top: 1px solid var(--color-border); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 11px 10px 4px; overflow: hidden; }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid color-mix(in srgb, var(--color-primary) 40%, var(--color-border)); border-radius: 10px; color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 10%, transparent); font-weight: 800; }
.user-copy { display: grid; overflow: hidden; white-space: nowrap; }
.user-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.user-copy small { margin-top: 3px; color: var(--color-muted); font-size: 9px; }
.main-area { min-height: 100vh; min-height: 100dvh; margin-left: var(--sidebar-width); transition: margin .22s ease; }
.topbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; border-bottom: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-bg) 82%, transparent); backdrop-filter: blur(16px); }
.topbar-context { display: grid; gap: 3px; }
.context-label { color: var(--color-muted); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.topbar-context strong { font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.plan-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid color-mix(in srgb, var(--color-primary) 24%, var(--color-border)); border-radius: 999px; color: color-mix(in srgb, var(--color-primary) 82%, #fff); background: color-mix(in srgb, var(--color-primary) 7%, transparent); font-size: 10px; font-weight: 600; }
.plan-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 10px var(--color-primary); }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--color-border); border-radius: 9px; }
.text-button { min-width: 44px; min-height: 44px; padding: 0 8px; font-size: 11px; }
.mobile-menu { display: none; width: 44px; height: 44px; place-items: center; font-size: 20px; }
.content { max-width: 1500px; margin: 0 auto; padding: 36px 32px 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.page-heading h1 { margin: 0; font: 800 30px/1.2 "Segoe UI Variable Display", "Segoe UI", sans-serif; letter-spacing: -.035em; }
.page-heading > div > p:last-child { margin: 7px 0 0; color: var(--color-muted); font-size: 13px; }
.list-search { display: grid; gap: 7px; max-width: 520px; margin: -7px 0 18px; }
.list-search label { color: var(--color-muted); font-size: 11px; }
.list-search input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 10px; color: var(--color-text); background: var(--color-input-background); outline: none; }
.list-search input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 16%, transparent); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric-card { position: relative; overflow: hidden; min-height: 150px; padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: linear-gradient(145deg, color-mix(in srgb, var(--color-surface) 95%, #fff), var(--color-surface)); box-shadow: 0 13px 38px rgba(0,0,0,.1); }
.metric-card::after { position: absolute; right: -32px; bottom: -42px; width: 100px; height: 100px; border-radius: 50%; content: ""; background: var(--metric-color); filter: blur(42px); opacity: .10; }
.metric-card--success { --metric-color: var(--color-success); }
.metric-card--primary { --metric-color: var(--color-primary); }
.metric-card--warning { --metric-color: var(--color-warning); }
.metric-card--danger { --metric-color: var(--color-danger); }
.metric-card--accent { --metric-color: var(--color-info); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--color-muted); font-size: 11px; }
.metric-info { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-left: 6px; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; font-weight: 800; cursor: help; }
.metric-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--metric-color); box-shadow: 0 0 14px var(--metric-color); }
.metric-card__period { display: block; margin-top: 6px; color: var(--color-muted); font-size: 10px; }
.metric-card > strong { display: block; margin: 21px 0 7px; font: 800 31px/1 "Segoe UI Variable Display", "Segoe UI", sans-serif; }
.metric-card > small { color: var(--color-muted); font-size: 10px; }
.consumption-card { min-height: 150px; }
.consumption-ranking { display: grid; gap: 7px; margin-top: 15px; }
.consumption-ranking > div { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--color-muted); font-size: 10px; }
.consumption-ranking > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.consumption-ranking > div strong { flex: 0 0 auto; color: var(--color-text); font-size: 11px; }
.consumption-ranking > small { color: var(--color-muted); font-size: 10px; line-height: 1.5; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .7fr); gap: 15px; margin-top: 15px; }
.dashboard-grid + .panel { margin-top: 15px; }
.dashboard-period-filter { display: grid; grid-template-columns: repeat(3, minmax(150px, 220px)) auto 1fr; align-items: end; gap: 12px; margin: -8px 0 18px; padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.dashboard-period-filter label { display: grid; gap: 6px; color: var(--color-muted); font-size: 11px; }
.dashboard-period-filter select { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid var(--color-border); border-radius: 9px; outline: none; color: var(--color-text); background: var(--color-input-background); }
.dashboard-period-filter select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent); }
.dashboard-period-filter .button { min-height: 44px; }
.dashboard-period-filter > small { align-self: center; justify-self: end; color: var(--color-muted); font-size: 10px; }
.panel { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--color-surface) 95%, #fff); }
.form-panel { max-width: 680px; padding: 8px 26px 28px; }
.form-panel--wide { max-width: 900px; }
.form-panel .account-form { max-width: 520px; }
.form-panel select { width: 100%; height: 49px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: 10px; outline: none; color: var(--color-text); background: color-mix(in srgb, var(--color-bg) 62%, var(--color-surface)); }
.form-panel select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent); }
.settings-grid { display: grid; grid-template-columns: minmax(540px,1.1fr) minmax(430px,.9fr); gap: 18px; align-items: start; }
.settings-grid--theme-only { grid-template-columns: minmax(0,920px); }
.settings-card { overflow: hidden; }
.settings-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--color-primary); background: color-mix(in srgb,var(--color-primary) 12%,transparent); font-size: 20px; }
.theme-preset-form { padding: 23px; }
.theme-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.theme-option { position:relative; display:grid; gap:11px; padding:15px; border:1px solid var(--color-border); border-radius:14px; background:var(--color-surface-alt); cursor:pointer; transition:border-color .18s,box-shadow .18s,transform .18s; }
.theme-option:hover { border-color:color-mix(in srgb,var(--color-primary) 55%,var(--color-border)); transform:translateY(-1px); }
.theme-option.is-selected { border-color:var(--color-primary); box-shadow:0 0 0 3px color-mix(in srgb,var(--color-primary) 14%,transparent); }
.theme-option > input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.theme-option__header { display:flex; min-height:24px; align-items:center; gap:8px; }
.theme-option__header strong { font-size:13px; }
.theme-option__header small { padding:4px 7px; border-radius:999px; color:var(--color-primary); background:color-mix(in srgb,var(--color-primary) 11%,transparent); font-size:8px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.theme-option__header i { display:grid; width:21px; height:21px; margin-left:auto; place-items:center; border:1px solid var(--color-border); border-radius:50%; color:transparent; font-size:11px; font-style:normal; }
.theme-option.is-selected .theme-option__header i { border-color:var(--color-primary); color:var(--color-primary-contrast); background:var(--color-primary); }
.theme-preview { display:grid; height:86px; grid-template-columns:25% 75%; overflow:hidden; border:1px solid var(--preview-border); border-radius:9px; background:var(--preview-bg); }
.theme-preview__sidebar { border-right:1px solid var(--preview-border); background:var(--preview-surface); }
.theme-preview__content { display:grid; grid-template-columns:1fr 34%; grid-template-rows:12px 1fr; gap:8px; padding:12px; }
.theme-preview__content i { grid-column:1/-1; width:48%; border-radius:99px; background:var(--preview-text); opacity:.72; }
.theme-preview__content b,.theme-preview__content em { border:1px solid var(--preview-border); border-radius:6px; background:var(--preview-surface); }
.theme-preview__content em { border:0; background:var(--preview-primary); }
.theme-option__description { color:var(--color-muted); font-size:9px; line-height:1.45; }
.theme-form-actions { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:18px; }
.theme-form-actions small { color:var(--color-muted); font-size:9px; }
.theme-form-actions .button { min-width:150px; }
.backup-section { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border-bottom: 1px solid var(--color-border); }
.backup-section:last-child { border-bottom: 0; }
.backup-section--restore { display: grid; align-items: start; }
.backup-section__copy strong { font-size: 14px; }
.backup-section__copy p { max-width: 620px; margin: 7px 0; color: var(--color-muted); font-size: 11px; line-height: 1.55; }
.backup-section__copy small { color: var(--color-primary); font-size: 10px; }
.restore-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; }
.restore-form > input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-picker { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 14px; border: 1px dashed var(--color-border); border-radius: 11px; cursor: pointer; }
.file-picker:hover { border-color: var(--color-primary); }
.file-picker span { color: var(--color-primary); font-size: 11px; font-weight: 800; }
.file-picker small { min-width: 0; overflow: hidden; color: var(--color-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.restore-confirm,.restore-warning { grid-column: 1/-1; }
.restore-confirm { display: flex; align-items: flex-start; gap: 9px; color: var(--color-muted); font-size: 10px; line-height: 1.45; }
.restore-confirm input { margin-top: 1px; accent-color: var(--color-primary); }
.restore-warning { padding: 13px 15px; border: 1px solid color-mix(in srgb,var(--color-warning) 28%,transparent); border-radius: 10px; background: color-mix(in srgb,var(--color-warning) 7%,transparent); }
.restore-warning strong { color: var(--color-warning); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.restore-warning p { margin: 5px 0 0; color: var(--color-muted); font-size: 10px; line-height: 1.5; }
.restore-form .button { min-width: 165px; }
.backup-history { margin-top: 18px; }
.form-note { max-width: 680px; margin: 16px 0; color: var(--color-muted); font-size: 12px; }
.user-panel { overflow: hidden; }
.user-table { display: grid; }
.user-row { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(120px, .8fr) 90px 170px; align-items: center; gap: 18px; min-height: 78px; padding: 12px 23px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); }
.user-row:last-child { border-bottom: 0; }
.user-row--head { min-height: 48px; color: var(--color-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: color-mix(in srgb, var(--color-surface-alt) 45%, transparent); }
.user-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.user-identity > span:last-child { display: grid; min-width: 0; gap: 4px; }
.user-identity strong { font-size: 12px; }
.user-identity small { overflow: hidden; color: var(--color-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.role-badge { width: max-content; padding: 5px 8px; border-radius: 999px; color: color-mix(in srgb, var(--color-text) 75%, var(--color-primary)); background: color-mix(in srgb, var(--color-primary) 8%, transparent); font-size: 10px; }
.status--active { color: var(--color-success); background: color-mix(in srgb,var(--color-success) 11%,transparent); }
.status--inactive { color: var(--color-muted); background: var(--color-surface-alt); }
.row-actions { display: flex; align-items: center; gap: 12px; }
.row-actions a, .row-actions button { padding: 0; border: 0; color: var(--color-primary); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.row-actions button { color: var(--color-muted); }
.empty-state { padding: 38px; color: var(--color-muted); text-align: center; font-size: 13px; }
.entity-panel { overflow-x: auto; overflow-y: hidden; }
.entity-tabs { display: flex; gap: 22px; padding: 0 23px; border-bottom: 1px solid var(--color-border); }
.entity-tabs a { padding: 16px 0 13px; border-bottom: 2px solid transparent; color: var(--color-muted); font-size: 11px; font-weight: 700; }
.entity-tabs a.is-active { border-color: var(--color-primary); color: var(--color-primary); }
.entity-row, .equipment-row { display: grid; align-items: center; gap: 16px; min-height: 65px; padding: 12px 23px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); font-size: 11px; }
.lubricant-row, .point-row, .plan-row { display: grid; align-items: center; gap: 16px; min-height: 65px; padding: 12px 23px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); font-size: 11px; }
.entity-row { grid-template-columns: 1.4fr .7fr 1.4fr 90px 45px; }
.equipment-row { grid-template-columns: .75fr 1.3fr 1.1fr 1fr 58px 45px; }
.lubricant-row { grid-template-columns: .75fr 1.3fr .7fr 1fr 1fr .6fr 45px; }
.point-row { grid-template-columns: .7fr 1fr 1.3fr .9fr .9fr .8fr 58px 45px; }
.plan-row { grid-template-columns: .65fr 1.15fr 1.1fr 1.1fr .9fr .9fr 1fr 85px 45px; min-width: 1320px; }
.entity-row--head, .equipment-row--head { min-height: 48px; color: var(--color-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: color-mix(in srgb, var(--color-surface-alt) 45%, transparent); }
.lubricant-row--head, .point-row--head, .plan-row--head { min-height: 48px; color: var(--color-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: color-mix(in srgb, var(--color-surface-alt) 45%, transparent); }
.entity-row strong, .equipment-row strong { font-size: 12px; }
.equipment-row div, .equipment-row > span { display: grid; gap: 4px; }
.lubricant-row div, .lubricant-row > span, .point-row div, .point-row > span, .plan-row div, .plan-row > span { display: grid; gap: 4px; }
.equipment-row small { color: var(--color-muted); font-size: 10px; }
.lubricant-row small, .point-row small, .plan-row small { color: var(--color-muted); font-size: 10px; }
.row-link { color: var(--color-primary); font-size: 11px; font-weight: 700; }
.equipment-row > .active-state-cell, .point-row > .active-state-cell { display: flex !important; align-items: center; justify-content: center; text-align: center; }
th.active-state-cell, td.active-state-cell { text-align: center; }
.active-state { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 50%; }
.active-state svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.active-state--on { color: var(--color-success); background: color-mix(in srgb, var(--color-success) 10%, transparent); }
.active-state--off { color: var(--color-danger); background: color-mix(in srgb, var(--color-danger) 10%, transparent); }
.criticality { width: max-content; padding: 5px 8px; border-radius: 999px; font-size: 10px; }
.criticality--low { color: var(--color-info); background: color-mix(in srgb,var(--color-info) 11%,transparent); }
.criticality--medium { color: var(--color-warning); background: color-mix(in srgb,var(--color-warning) 11%,transparent); }
.criticality--high { color: color-mix(in srgb,var(--color-warning) 55%,var(--color-danger)); background: color-mix(in srgb,var(--color-danger) 9%,transparent); }
.criticality--critical { color: var(--color-danger); background: color-mix(in srgb,var(--color-danger) 13%,transparent); }
.filter-tabs { display: flex; gap: 8px; margin: -10px 0 20px; }
.filter-tabs a { padding: 8px 11px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-muted); font-size: 11px; font-weight: 700; }
.filter-tabs a.is-active { border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border)); color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 9%, transparent); }
.task-row, .history-row { display: grid; align-items: center; gap: 16px; min-height: 67px; padding: 12px 23px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); font-size: 11px; }
.task-row { grid-template-columns: .65fr 1.1fr 1.1fr 1.1fr .9fr .9fr 90px 115px; min-width: 1260px; }
.history-row { grid-template-columns: 1.5fr 1fr .9fr .8fr .7fr; }
.history-row--executions { grid-template-columns: 1.5fr 1fr .9fr .9fr .75fr .75fr .75fr; min-width: 1060px; }
.task-row--head, .history-row--head { min-height: 48px; color: var(--color-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: color-mix(in srgb, var(--color-surface-alt) 45%, transparent); }
.task-row div, .task-row > span, .history-row div, .history-row > span { display: grid; gap: 4px; }
.task-row strong, .history-row strong { font-size: 12px; }
.task-row small, .history-row small { color: var(--color-muted); font-size: 10px; }
.occurrence-flag { width: max-content; padding: 5px 8px; border-radius: 999px; color: var(--color-warning); background: color-mix(in srgb,var(--color-warning) 11%,transparent); font-size: 10px; }
.stock-row { display: grid; grid-template-columns: .7fr 1.5fr 1fr 1fr 110px; align-items: center; gap: 16px; min-height: 65px; padding: 12px 23px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); font-size: 11px; }
.stock-row--head { min-height: 48px; color: var(--color-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: color-mix(in srgb, var(--color-surface-alt) 45%, transparent); }
.stock-row strong { display: grid; gap: 4px; font-size: 12px; }.stock-row small { color: var(--color-muted); font-size: 10px; }
.stock-history { margin-top: 16px; }.movement-row { display: grid; grid-template-columns: 1.5fr 1fr .8fr; gap: 16px; padding: 14px 23px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); font-size: 11px; }.stock-movement-row { display:grid; grid-template-columns:.8fr .9fr 1.6fr .8fr .9fr; align-items:center; gap:16px; padding:14px 23px; border-bottom:1px solid color-mix(in srgb, var(--color-border) 70%, transparent); font-size:11px; }.stock-movement-row--head { min-height:48px; color:var(--color-muted); background:color-mix(in srgb, var(--color-surface-alt) 45%, transparent); font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }.quantity-positive { color: var(--color-success); }.quantity-negative { color: var(--color-danger); }
.audit-filter { display:grid; grid-template-columns:repeat(auto-fit, minmax(145px, 1fr)); gap:12px; align-items:end; margin:0 0 18px; padding:16px; border:1px solid var(--color-border); border-radius:var(--radius-md); background:var(--color-surface); }.audit-filter label { display:grid; min-width:0; gap:6px; color:var(--color-muted); font-size:11px; }.audit-filter select, .audit-filter input { width:100%; min-width:0; min-height:44px; padding:8px 10px; border:1px solid var(--color-border); border-radius:9px; color:var(--color-text); background:var(--color-input-background); }.audit-filter > button { min-height:44px; margin:0; padding:0 16px; border:1px solid var(--color-primary); border-radius:10px; color:var(--color-primary); background:transparent; font:700 12px/1 "Segoe UI", sans-serif; cursor:pointer; }.audit-filter > button.button--primary { color:var(--color-primary-contrast); background:var(--color-primary); }.audit-filter > button:disabled { opacity:.45; cursor:not-allowed; }.audit-row { display: grid; grid-template-columns: .9fr 1fr 1.1fr 2.2fr .9fr .9fr; gap: 14px; padding: 13px 23px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); font-size: 11px; }.audit-row--head { color: var(--color-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: color-mix(in srgb, var(--color-surface-alt) 45%, transparent); }
.plan-row--head > span, .task-row--head > span { white-space: nowrap; }
.data-table-wrap { width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-color: color-mix(in srgb, var(--color-muted) 60%, transparent) transparent; scrollbar-width: thin; }
.data-table-wrap::-webkit-scrollbar { height: 8px; }
.data-table-wrap::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--color-muted) 60%, transparent); background-clip: padding-box; }
.data-table { width: 100%; min-width: 0; border-collapse: collapse; text-align: left; }
.data-table th { height: 56px; padding: 0 16px; color: var(--color-muted); background: color-mix(in srgb, var(--color-surface-alt) 45%, transparent); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.data-table td { min-height: 72px; padding: 16px; border-top: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); vertical-align: middle; font-size: 11px; line-height: 1.4; }
.data-table td:first-child { font-weight: 700; white-space: nowrap; }
.data-table td:last-child { white-space: nowrap; }
.data-table .row-actions { display: flex; align-items: center; gap: 10px; }
.data-table .row-actions form { margin: 0; }
.data-table .row-actions button { padding: 0; border: 0; color: var(--color-muted); background: transparent; cursor: pointer; font: inherit; }
.filter-panel { padding: 18px; }
.filter-panel .audit-filter { margin: 0; padding: 0; border: 0; background: transparent; }
.report-grid, .detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }.report-card, .detail-card, .qr-card { padding: 23px; }.report-card h2, .detail-card h2, .qr-card h2 { margin: 0; font-size: 16px; }.report-card p, .detail-card p, .qr-card p { color: var(--color-muted); font-size: 12px; line-height: 1.6; }.report-card .button { margin-top: 8px; }.detail-grid { grid-template-columns: 1.3fr .7fr; margin-bottom: 16px; }.detail-card p strong { color: var(--color-text); }.qr-card { text-align: center; }.qr-card img { width: 170px; height: 170px; margin: 8px auto; padding: 8px; border-radius: 10px; background: #fff; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 22px 23px; border-bottom: 1px solid var(--color-border); }
.panel-heading h2 { margin: 0; font: 700 15px/1.3 "Segoe UI Variable Display", "Segoe UI", sans-serif; }
.panel-heading p { margin: 5px 0 0; color: var(--color-muted); font-size: 10px; }
.panel-heading a { display: inline-flex; min-height: 44px; align-items: center; color: var(--color-primary); font-size: 10px; font-weight: 700; }
.activity-list { display: grid; }
.activity-situation-panel { margin-top: 15px; overflow: hidden; }
.activity-situation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding: 15px; }
.activity-status-card { display: flex; min-width: 0; min-height: 260px; flex-direction: column; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-surface-alt) 42%, transparent); }
.activity-status-card > header { display: flex; min-height: 53px; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--color-border); }
.activity-status-card h3 { margin: 0; font-size: 12px; }
.activity-status-card > header i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 14px currentColor; }
.activity-status-card--success > header i { color: var(--color-success); background: var(--color-success); }
.activity-status-card--warning > header i { color: var(--color-warning); background: var(--color-warning); }
.activity-status-card--danger > header i { color: var(--color-danger); background: var(--color-danger); }
.activity-status-card .activity-list { flex: 1; }
.activity-status-card .activity-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 68px; padding: 12px 17px; }
.activity-status-card .activity-time { min-width: 92px; }
.activity-status-card .empty-state { padding: 30px 17px; font-size: 10px; }
.activity-status-card__link { display: block; min-height: 42px; padding: 14px 17px; border-top: 1px solid var(--color-border); color: var(--color-primary); font-size: 10px; font-weight: 700; }
.dashboard-grid--analysis { grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); }
.dashboard-team-panel { margin-top: 15px; }
.dashboard-team-panel .team-panel__body { grid-template-columns: auto auto 1fr auto; justify-content: start; justify-items: start; text-align: left; }
.dashboard-team-panel .team-panel__body > strong { font-size: 28px; }
.dashboard-team-panel .team-panel__body .button { margin: 0 0 0 auto; }
.history-row--dashboard-performance { grid-template-columns: 1.35fr repeat(5, .75fr); min-width: 760px; }
.activity-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 72px; padding: 13px 23px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); }
.activity-row:last-child { border-bottom: 0; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); }
.activity-main, .activity-time { display: grid; gap: 5px; }
.activity-main strong, .activity-time strong { font-size: 11px; }
.activity-main span { overflow: hidden; color: var(--color-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.activity-time { min-width: 102px; justify-items: end; }
.status { padding: 4px 7px; border-radius: 999px; color: var(--color-muted); background: var(--color-surface-alt); font-size: 8px; }
.status--atrasada { color: var(--color-danger); background: color-mix(in srgb,var(--color-danger) 10%,transparent); }
.status--info { color: var(--color-info); background: color-mix(in srgb,var(--color-info) 10%,transparent); }
.input-with-suffix { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.input-with-suffix span { color: var(--color-muted); font-size: 12px; font-weight: 600; }
.schedule-picker-control { position: relative; }
.schedule-picker-control > input { width: 100%; padding-right: 48px; cursor: pointer; }
.schedule-picker-trigger { position: absolute; top: 50%; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 8px; color: var(--color-primary); background: transparent; cursor: pointer; transform: translateY(-50%); }
.schedule-picker-trigger:hover { background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.schedule-picker-panel { position: absolute; z-index: 70; top: calc(100% + 8px); left: 0; width: min(100%, 380px); max-width: calc(100vw - 36px); padding: 14px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); box-shadow: 0 18px 48px var(--color-shadow); }
.schedule-picker-panel[hidden] { display: none; }
.schedule-picker-native { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: 9px; color: var(--color-text); color-scheme: inherit; background: var(--color-input-background); }
.schedule-picker-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.schedule-picker-actions button { min-width: 82px; min-height: 36px; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text); background: transparent; cursor: pointer; font-weight: 700; }
.schedule-picker-actions [data-picker-ok] { border-color: var(--color-primary); color: var(--color-primary-contrast); background: var(--color-primary); }
.progress-panel { display: flex; flex-direction: column; }
.team-panel { display: flex; flex-direction: column; }.team-panel__body { display: grid; flex: 1; place-items: center; align-content: center; gap: 8px; padding: 28px; text-align: center; }.team-panel__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 12%, transparent); }.team-panel__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }.team-panel__body > strong { font: 800 34px/1 "Segoe UI Variable Display", "Segoe UI", sans-serif; }.team-panel__body > span:not(.team-panel__icon), .team-panel__body small { color: var(--color-muted); font-size: 11px; }.team-panel__body .button { margin-top: 10px; }
.progress-ring { position: relative; display: grid; width: 145px; height: 145px; margin: 27px auto 20px; place-items: center; border-radius: 50%; background: conic-gradient(var(--color-primary) calc(var(--progress) * 1%), var(--color-surface-alt) 0); box-shadow: 0 0 34px color-mix(in srgb, var(--color-primary) 10%, transparent); }
.progress-ring--distribution { background: conic-gradient(var(--color-success) 0 var(--completed), var(--color-info) var(--completed) var(--open-end), var(--color-danger) var(--open-end) 100%); }
.donut-wrap { width: 180px; margin: 8px auto 0; }.donut-wrap .progress-ring { margin: 26px auto 20px; }
.progress-ring::before { position: absolute; inset: 14px; border-radius: 50%; content: ""; background: var(--color-surface); }
.progress-ring > div { z-index: 1; display: grid; justify-items: center; }
.progress-ring strong { font: 800 27px/1 "Segoe UI Variable Display", "Segoe UI", sans-serif; }
.progress-ring span { margin-top: 6px; color: var(--color-muted); font-size: 9px; }
.progress-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 15px; margin: auto 16px 24px; color: var(--color-muted); font-size: 9px; }
.progress-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--color-primary); }
.progress-legend .legend-open i { background: var(--color-info); }.progress-legend .legend-overdue i { background: var(--color-danger); }
.mobile-overlay { display: none; }

.sidebar-is-collapsed .sidebar { width: var(--sidebar-collapsed); }
.sidebar-is-collapsed .main-area { margin-left: var(--sidebar-collapsed); }
.sidebar-is-collapsed .brand-name, .sidebar-is-collapsed .nav-label, .sidebar-is-collapsed .user-copy { width: 0; opacity: 0; }
.sidebar-is-collapsed .sidebar-head { padding: 0 18px; }
.sidebar-is-collapsed .sidebar-brand { margin: 0 auto; }
.sidebar-is-collapsed .brand-mark { width: 40px; height: 40px; }
.sidebar-is-collapsed .sidebar-collapse { position: absolute; top: 59px; right: -13px; background: var(--color-surface); }
.sidebar-tooltip { position: fixed; z-index: 100; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text); background: var(--color-surface); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateX(-5px); transition: opacity .16s ease, transform .16s ease; white-space: nowrap; }
.sidebar-tooltip.is-visible { opacity: 1; transform: translateX(0); }

/* Simple placeholders */
.simple-page { display: grid; min-height: 100vh; min-height: 100dvh; padding: 24px; place-items: center; background: radial-gradient(circle at center, color-mix(in srgb, var(--color-primary) 8%, transparent), transparent 50%), var(--color-bg); }
.network-status { position: fixed; z-index: 120; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); left: 18px; max-width: 560px; margin: 0 auto; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--color-warning) 45%, var(--color-border)); border-radius: 11px; color: var(--color-text); background: color-mix(in srgb, var(--color-surface) 94%, var(--color-warning)); box-shadow: 0 16px 40px var(--color-shadow); font-size: 12px; line-height: 1.45; text-align: center; }
form[data-submitting="true"] [type="submit"] { cursor: wait; opacity: .66; }
form[data-submitting="true"] { cursor: wait; }
.simple-card { width: min(100%, 500px); padding: 44px; border: 1px solid var(--color-border); border-radius: 20px; text-align: center; background: var(--color-surface); box-shadow: var(--shadow); }
.simple-card--form { width: min(100%, 560px); text-align: left; }
.simple-card--form > .brand-mark, .simple-card--form > .eyebrow, .simple-card--form > h1, .simple-card--form > p { text-align: center; }
.simple-card .brand-mark { margin: 0 auto 28px; }
.simple-card h1 { margin: 0; font: 800 28px/1.2 "Segoe UI Variable Display", "Segoe UI", sans-serif; }
.simple-card p:not(.eyebrow) { margin: 14px 0 28px; color: var(--color-muted); line-height: 1.65; }
.account-form { display: grid; gap: 18px; margin-top: 28px; text-align: left; }
.registration-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.registration-actions--single { grid-template-columns: 1fr; }
.registration-actions .button { justify-content: center; margin-top: 0; text-align: center; }
.platform-client__badges { align-items: center; }
.platform-client__badges form { margin: 0; }
.simple-card--bootstrap { width: min(100%, 720px); }
.bootstrap-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bootstrap-form__wide { grid-column: 1 / -1; }
.simple-link { margin: 24px 0 0 !important; text-align: center; font-size: 13px; }
.simple-link a, .development-note { color: var(--color-primary); font-weight: 700; }
.development-note { margin: 16px 0 !important; font-size: 12px; }
.button--secondary { margin-top: 16px; color: var(--color-text); border-color: var(--color-border); background: transparent; }
.button--secondary:hover { border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 8%, transparent); }
.confirmation-dialog { width: min(92vw, 560px); padding: 0; border: 1px solid var(--color-border); border-radius: 18px; color: var(--color-text); background: var(--color-surface); box-shadow: 0 28px 90px var(--color-shadow); }
.confirmation-dialog::backdrop { background: rgba(0, 9, 15, .72); backdrop-filter: blur(4px); }
.confirmation-dialog__body { padding: 28px; }
.confirmation-dialog__body h2 { margin: 0; font: 800 24px/1.2 "Segoe UI Variable Display", "Segoe UI", sans-serif; }
.confirmation-dialog__body p:not(.eyebrow) { margin: 14px 0 0; color: var(--color-muted); font-size: 13px; line-height: 1.6; }
.confirmation-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.confirmation-dialog__actions .button { margin-top: 0; }

@media (max-width: 1050px) {
  .dashboard-period-filter { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }.dashboard-period-filter > small { grid-column: 1 / -1; justify-self: start; }
  .settings-grid { grid-template-columns: 1fr; }
  .platform-client__columns { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .activity-situation-grid { grid-template-columns: 1fr; }
  .progress-panel { min-height: 340px; }
}

@media (max-width: 700px) {
  .dashboard-period-filter { grid-template-columns: 1fr 1fr; }.dashboard-period-filter .button { align-self: end; }.dashboard-period-filter > small { grid-column: 1 / -1; }
  .theme-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .backup-section { align-items: stretch; flex-direction: column; }
  .restore-form { grid-template-columns: 1fr; }
  .restore-form > * { grid-column: 1 !important; }
  .registration-actions { grid-template-columns: 1fr; }
  .bootstrap-form { grid-template-columns: 1fr; }.bootstrap-form__wide { grid-column: auto; }
  .platform-client__header { align-items: flex-start; flex-direction: column; }.platform-client__badges { justify-content: flex-start; }.platform-client__metrics { grid-template-columns: 1fr; }.platform-stat { min-height: 108px; }.platform-panel__heading { align-items: flex-start; flex-direction: column; }.client-data-grid { grid-template-columns: 1fr; }.client-data-grid div, .client-data-grid div:nth-child(2n), .client-data-grid div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--color-border); }.client-data-grid div:last-child { border-bottom: 0; }.platform-table { min-width: 720px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { min-height: 100vh; min-height: 100dvh; padding: 32px 22px; }
  .auth-panel::before { display: none; }
  .mobile-brand { display: flex; }
  .sidebar { width: min(86vw, 290px); transform: translateX(-102%); }
  .main-area { margin-left: 0; }
  .mobile-menu { display: grid; }
  .mobile-menu-is-open .sidebar { transform: translateX(0); }
  .mobile-menu-is-open { overflow: hidden; }
  .mobile-menu-is-open .mobile-overlay { position: fixed; z-index: 30; inset: 0; display: block; background: rgba(0, 0, 0, .62); backdrop-filter: blur(2px); }
  .topbar { padding: 0 18px; }
  .topbar-context { margin-right: auto; }
  .plan-badge { display: none; }
  .content { padding: 26px 18px 40px; }
  .topbar-actions { flex-wrap: wrap; }
  input, select, textarea { font-size: 16px; }
  .row-actions a, .row-actions button { display: inline-flex; min-height: 44px; align-items: center; }
  .sidebar-collapse { display: none; }
  .platform-row { grid-template-columns: 1.5fr .8fr .7fr 60px; }.platform-row > :nth-child(2), .platform-row > :nth-child(3), .platform-row > :nth-child(6), .platform-row--head > :nth-child(2), .platform-row--head > :nth-child(3), .platform-row--head > :nth-child(6) { display: none; }
  .user-row { grid-template-columns: minmax(180px, 1fr) 90px 110px; gap: 12px; }
  .user-row > :nth-child(2) { display: none; }
  .user-row--head > :nth-child(2) { display: none; }
  .entity-row { grid-template-columns: 1.4fr .7fr 90px 45px; }
  .entity-row > :nth-child(3), .entity-row--head > :nth-child(3) { display: none; }
  .equipment-row { grid-template-columns: 1.5fr 1fr 58px 45px; }
  .equipment-row > :nth-child(3), .equipment-row > :nth-child(4), .equipment-row--head > :nth-child(3), .equipment-row--head > :nth-child(4) { display: none; }
  .lubricant-row { grid-template-columns: 1.4fr .8fr .7fr 45px; }
  .lubricant-row > :nth-child(3), .lubricant-row > :nth-child(4), .lubricant-row--head > :nth-child(3), .lubricant-row--head > :nth-child(4) { display: none; }
  .point-row { grid-template-columns: 1fr 1.3fr 58px 45px; }
  .point-row > :nth-child(3), .point-row > :nth-child(4), .point-row > :nth-child(5), .point-row > :nth-child(6), .point-row--head > :nth-child(3), .point-row--head > :nth-child(4), .point-row--head > :nth-child(5), .point-row--head > :nth-child(6) { display: none; }
  .plan-row { grid-template-columns: 1.2fr 1fr 1fr 45px; }
  .plan-row > :nth-child(3), .plan-row > :nth-child(4), .plan-row > :nth-child(6), .plan-row--head > :nth-child(3), .plan-row--head > :nth-child(4), .plan-row--head > :nth-child(6) { display: none; }
  .task-row { grid-template-columns: 1.4fr 1fr 90px 100px; }
  .task-row > :nth-child(3), .task-row > :nth-child(4), .task-row--head > :nth-child(3), .task-row--head > :nth-child(4) { display: none; }
  .history-row { grid-template-columns: 1.4fr 1fr .8fr; }
  .history-row > :nth-child(2), .history-row > :nth-child(4), .history-row--head > :nth-child(2), .history-row--head > :nth-child(4) { display: none; }
  .history-row--executions { grid-template-columns: 1.4fr .85fr .85fr .7fr; min-width: 0; }
  .history-row--executions > :nth-child(2), .history-row--executions > :nth-child(6), .history-row--executions > :nth-child(7) { display: none; }
  .history-row--executions > :nth-child(3), .history-row--executions > :nth-child(4), .history-row--executions > :nth-child(5) { display: grid; }
  .history-row--dashboard-performance { grid-template-columns: 1.35fr repeat(5, .75fr); min-width: 760px; }
  .history-row--dashboard-performance > :nth-child(2), .history-row--dashboard-performance > :nth-child(4) { display: grid; }
  .dashboard-team-panel .team-panel__body { grid-template-columns: auto auto 1fr; }
  .dashboard-team-panel .team-panel__body .button { grid-column: 1 / -1; margin-left: 0; }
  .stock-row { grid-template-columns: 1.5fr 1fr 90px; }.stock-row > :nth-child(3), .stock-row--head > :nth-child(3) { display: none; }
  .audit-row { grid-template-columns: 1fr 1.3fr 1.8fr; }.audit-row > :nth-child(3), .audit-row > :nth-child(5), .audit-row > :nth-child(6), .audit-row--head > :nth-child(3), .audit-row--head > :nth-child(5), .audit-row--head > :nth-child(6) { display: none; }
  .report-grid { grid-template-columns: 1fr; }.detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .data-table--mobile-cards, .data-table--mobile-cards tbody, .data-table--mobile-cards tr, .data-table--mobile-cards td { display: block; width: 100%; min-width: 0; }
  .data-table--mobile-cards thead { display: none; }
  .data-table--mobile-cards tbody { display: grid; gap: 12px; padding: 12px; }
  .data-table--mobile-cards tr { overflow: hidden; border: 1px solid var(--color-border); border-radius: 12px; background: color-mix(in srgb, var(--color-surface) 96%, var(--color-bg)); }
  .data-table--mobile-cards td { display: grid; min-height: 0; grid-template-columns: minmax(94px, .42fr) minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); overflow-wrap: anywhere; white-space: normal; }
  .data-table--mobile-cards td:first-child { border-top: 0; }
  .data-table--mobile-cards td::before { content: attr(data-label); color: var(--color-muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .data-table--mobile-cards td:last-child { white-space: normal; }
  .data-table--mobile-cards td.active-state-cell { text-align: left; }
  .data-table--mobile-cards .row-actions { flex-wrap: wrap; justify-content: flex-start; }
  .data-table--mobile-cards .empty-state { display: block; padding: 28px 18px; text-align: center; }
  .data-table--mobile-cards .empty-state::before { content: none; }
  .dashboard-period-filter { grid-template-columns: 1fr; }.dashboard-period-filter > small { grid-column: auto; }
  .theme-options { grid-template-columns: 1fr; }
  .theme-form-actions { align-items:stretch; flex-direction:column; }
  .theme-form-actions .button { width:100%; }
  .login-heading h2 { font-size: 27px; }
  .signup-link { flex-direction: column; align-items: center; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 132px; padding: 16px; }
  .metric-card > strong { margin-top: 18px; font-size: 27px; }
  .activity-row { grid-template-columns: 8px minmax(0, 1fr); padding: 14px 16px; }
  .activity-time { grid-column: 2; justify-items: start; }
  .activity-status-card .activity-row { grid-template-columns: 1fr; }
  .activity-status-card .activity-time { grid-column: auto; justify-items: start; }
  .dashboard-team-panel .team-panel__body { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .dashboard-team-panel .team-panel__body .button { grid-column: auto; width: 100%; margin: 8px 0 0; }
  .topbar-actions .icon-button { display: none; }
  .simple-card { padding: 34px 23px; }
  .confirmation-dialog__actions { align-items: stretch; flex-direction: column-reverse; }
  .confirmation-dialog__actions .button { width: 100%; }
  .user-row { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .user-row--head { display: none; }
  .user-row > :nth-child(3) { grid-row: 2; grid-column: 1; }
  .user-row > :nth-child(4) { grid-row: 1 / span 2; grid-column: 2; flex-direction: column; align-items: flex-end; gap: 8px; }
  .entity-row { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .equipment-row { grid-template-columns: 1fr auto auto; padding: 14px 16px; }
  .lubricant-row, .plan-row { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .point-row { grid-template-columns: 1fr auto auto; padding: 14px 16px; }
  .entity-row--head, .equipment-row--head { display: none; }
  .lubricant-row--head, .point-row--head, .plan-row--head { display: none; }
  .entity-row > :nth-child(2), .equipment-row > :nth-child(2) { grid-row: 2; grid-column: 1; color: var(--color-muted); }
  .entity-row > :nth-child(4), .equipment-row > :nth-child(3), .equipment-row > :nth-child(4) { display: none; }
  .entity-row > :nth-child(5) { grid-row: 1 / span 2; grid-column: 2; }
  .equipment-row > :nth-child(5) { grid-row: 1 / span 2; grid-column: 2; }
  .equipment-row > :nth-child(6) { grid-row: 1 / span 2; grid-column: 3; }
  .lubricant-row > :nth-child(2), .point-row > :nth-child(2), .plan-row > :nth-child(2) { grid-row: 2; grid-column: 1; color: var(--color-muted); }
  .lubricant-row > :nth-child(3), .lubricant-row > :nth-child(4), .lubricant-row > :nth-child(5), .point-row > :nth-child(3), .point-row > :nth-child(4), .point-row > :nth-child(5), .point-row > :nth-child(6), .plan-row > :nth-child(3), .plan-row > :nth-child(4), .plan-row > :nth-child(5), .plan-row > :nth-child(6) { display: none; }
  .lubricant-row > :nth-child(6), .plan-row > :nth-child(7) { grid-row: 1 / span 2; grid-column: 2; }
  .point-row > :nth-child(7) { grid-row: 1 / span 2; grid-column: 2; }
  .point-row > :nth-child(8) { grid-row: 1 / span 2; grid-column: 3; }
  .task-row, .history-row { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .history-row--executions { min-width: 0; }
  .task-row--head, .history-row--head { display: none; }
  .task-row > :nth-child(2), .history-row > :nth-child(2) { grid-row: 2; grid-column: 1; color: var(--color-muted); }
  .task-row > :nth-child(3), .task-row > :nth-child(4), .task-row > :nth-child(5), .history-row > :nth-child(3), .history-row > :nth-child(4), .history-row > :nth-child(5) { display: none; }
  .history-row--executions > :nth-child(2), .history-row--executions > :nth-child(3), .history-row--executions > :nth-child(6), .history-row--executions > :nth-child(7) { display: none; }
  .history-row--executions > :nth-child(4) { display: grid; grid-row: 2; grid-column: 1; color: var(--color-muted); }
  .history-row--executions > :nth-child(5) { display: grid; grid-row: 1 / span 2; grid-column: 2; justify-items: end; }
  .task-row > :nth-child(6) { grid-row: 1 / span 2; grid-column: 2; flex-direction: column; align-items: flex-end; gap: 8px; }
  .stock-row { grid-template-columns: 1fr auto; padding: 14px 16px; }.stock-row--head { display: none; }.stock-row > :nth-child(2) { grid-row: 2; grid-column: 1; color: var(--color-muted); }.stock-row > :nth-child(3), .stock-row > :nth-child(4) { display: none; }.movement-row { grid-template-columns: 1fr auto; padding: 14px 16px; }.movement-row > :nth-child(2) { display: none; }
  .audit-row { grid-template-columns: 1fr auto; padding: 14px 16px; }.audit-row--head { display: none; }.audit-row > :nth-child(2) { grid-row: 2; grid-column: 1; color: var(--color-muted); }.audit-row > :nth-child(3), .audit-row > :nth-child(5), .audit-row > :nth-child(6) { display: none; }
  .platform-page { padding: 22px 16px; }.platform-row { grid-template-columns: 1fr auto; padding: 14px 16px; }.platform-row--head { display: none; }.platform-row > :nth-child(4), .platform-row > :nth-child(5) { display: none; }.platform-row > :nth-child(7) { grid-row: 1 / span 2; grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Mantém os layouts administrativos acima das regras legadas do arquivo. */
.platform-metrics.platform-metrics--four { max-width: none; grid-template-columns: repeat(4,minmax(0,1fr)); }
.platform-table.platform-table--clients { min-width: 1260px; table-layout: auto; }
@media (max-width:1100px) {
  .platform-metrics.platform-metrics--four { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px) {
  .platform-metrics.platform-metrics--four { grid-template-columns: 1fr; }
  .platform-page .platform-header { align-items: flex-start; flex-direction: column; }
}
