:root {
  --navy: #0d1b2a;
  --navy2: #172a3c;
  --yellow: #ffb400;
  --green: #167963;
  --muted: #74808c;
  --line: #e5e8eb;
  --bg: #f5f6f8;
  --danger: #bf4242;
  --radius: 13px;
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #1d2c3a;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
svg {
  flex-shrink: 0;
}
button svg {
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #9aabbc;
  padding: 22px 15px;
  position: fixed;
  width: 235px;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow: auto;
}
.brand {
  margin: 0 13px 27px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 21px;
  font-weight: 750;
  font-style: italic;
  letter-spacing: 1px;
}
.brand .bolt {
  background: var(--yellow);
  color: var(--navy);
  width: 35px;
  height: 35px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.brand em {
  color: var(--yellow);
}
.brand small {
  display: block;
  font-size: 9px;
  color: #758b9f;
  font-style: normal;
  letter-spacing: 2.2px;
  margin-top: 3px;
}
.nav-label {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #5f7890;
  margin: 20px 15px 8px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 12px;
}
.nav button:hover {
  background: #182d40;
  color: white;
}
.nav button.active {
  background: #ffb400;
  color: #172331;
  font-weight: 650;
}
.nav .count {
  margin-left: auto;
  font-size: 10px;
  border-radius: 4px;
  background: #ffffff13;
  padding: 2px 6px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 13px 0;
}
.workspace {
  border: 1px solid #2c3b4a;
  border-radius: 9px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
}
.workspace .avatar {
  background: #21394f;
}
.workspace small {
  font-size: 10px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9ca7b0;
  flex: 1;
}
.search input {
  border: 0;
  background: transparent;
  width: 100%;
  max-width: 370px;
  font-size: 12px;
  outline: none;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef1f4;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #405264;
}
.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  color: #596a79;
}
.user-link {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 0;
  background: transparent;
  text-align: left;
}
.user-link small {
  font-size: 10px;
}
.content {
  padding: 28px 32px 48px;
  max-width: 1690px;
  margin: auto;
}
.breadcrumb {
  font-size: 10px;
  color: #9aa5af;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 25px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.btn {
  border: 1px solid var(--line);
  background: white;
  color: #344554;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: #f0f2f5;
}
.btn.primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #172331;
}
.btn.dark {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.btn.danger {
  background: #fff1f1;
  color: var(--danger);
}
.btn.small {
  padding: 7px 10px;
  font-size: 10px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.datebox {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.datebox input {
  border: 0;
  width: 103px;
  color: #596b7a;
  font-size: 10px;
}
.demo-banner {
  background: #fff6dc;
  border: 1px solid #f4df9f;
  padding: 10px 15px;
  border-radius: 9px;
  margin-bottom: 20px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.metric {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #6e7b89;
  margin-bottom: 15px;
}
.metric-icon {
  padding: 7px;
  border-radius: 8px;
  display: flex;
  background: #f1f5f7;
  color: #536c80;
}
.metric-icon.green {
  background: #e9f5ef;
  color: #28816d;
}
.metric-icon.yellow {
  background: #fff6dc;
  color: #b78004;
}
.metric strong {
  font-size: 27px;
  display: block;
  letter-spacing: -1px;
  font-weight: 650;
  white-space: nowrap;
}
.metric small {
  font-size: 10px;
  display: block;
  margin-top: 10px;
}
.metric small.good {
  color: #28816d;
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 20px;
  margin-bottom: 23px;
}
.grid-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 23px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.panel-head {
  padding: 20px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.panel-body {
  padding: 10px 22px 22px;
}
.pill {
  font-size: 9px;
  padding: 4px 8px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border-radius: 20px;
  color: #2f7e67;
  background: #eaf6ef;
  white-space: nowrap;
}
.pill::before {
  content: '';
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.pill.warning {
  background: #fff4dc;
  color: #ac7b18;
}
.pill.danger {
  background: #fcecec;
  color: #b44848;
}
.pill.blue {
  background: #edf1fa;
  color: #567db3;
}
.pill.gray {
  background: #f1f3f5;
  color: #78838e;
}
.legend {
  display: flex;
  gap: 14px;
  font-size: 9px;
  color: #7b8a96;
  align-items: center;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: #183c55;
}
.dot.yellow {
  background: #ffb400;
}
.dot.green {
  background: #1d8d74;
}
.chart {
  width: 100%;
  height: 210px;
  display: block;
}
.chart text {
  font-family: inherit;
  fill: #8996a1;
  font-size: 9px;
}
.donut-layout {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  padding: 4px 5px 20px;
}
.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--green) 0deg 190deg, var(--yellow) 190deg 260deg, #e9edf1 260deg);
}
.donut::before {
  content: '';
  position: absolute;
  background: white;
  inset: 17px;
  border-radius: 50%;
}
.donut-inner {
  z-index: 1;
  text-align: center;
}
.donut strong {
  font-size: 29px;
  letter-spacing: -1px;
}
.donut small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.fleet-legend {
  display: flex;
  flex-direction: column;
  gap: 17px;
  font-size: 11px;
}
.fleet-legend > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.fleet-legend b {
  margin-left: 15px;
  color: #243649;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}
th {
  font-size: 9px;
  color: #8b97a1;
  font-weight: 500;
  background: #fafbfc;
  padding: 12px 18px;
  white-space: nowrap;
  border-top: 1px solid #f1f3f5;
  border-bottom: 1px solid #f1f3f5;
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f2f4;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tr:hover td {
  background: #fcfcfd;
}
td strong {
  font-size: 11px;
  font-weight: 600;
}
td small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
.machine-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.machine-thumb {
  width: 37px;
  height: 33px;
  border-radius: 6px;
  background: #f0f3f5;
  color: #7892a7;
  display: grid;
  place-items: center;
}
.progress {
  height: 5px;
  border-radius: 4px;
  background: #e9edf1;
  overflow: hidden;
  margin-top: 6px;
  max-width: 90px;
}
.progress i {
  display: block;
  height: 100%;
  background: #1f836e;
  border-radius: 4px;
}
.table-foot {
  padding: 12px 20px;
  font-size: 10px;
  color: #8c98a2;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f1f3f5;
}
.link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #60819a;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
}
.insights-panel {
  border: 1px solid #e8d9ae;
  background: #fffdf7;
}
.insight {
  padding: 14px 0;
  border-bottom: 1px solid #efece4;
  display: flex;
  gap: 11px;
}
.insight:last-child {
  border-bottom: 0;
}
.insight-symbol {
  color: #b38319;
  background: #fff0c5;
  padding: 7px;
  border-radius: 8px;
  height: 30px;
}
.insight strong {
  font-size: 11px;
  display: block;
  margin-bottom: 5px;
}
.insight p {
  font-size: 11px;
  line-height: 1.5;
  color: #82909b;
}
.event {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f3;
  align-items: center;
}
.event:last-child {
  border: 0;
}
.day-tile {
  width: 37px;
  flex-shrink: 0;
  background: #f3f5f7;
  border-radius: 7px;
  text-align: center;
  padding: 6px;
  font-weight: 650;
  font-size: 14px;
}
.day-tile small {
  display: block;
  font-size: 8px;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.event p {
  font-size: 11px;
  margin-bottom: 4px;
}
.event small {
  font-size: 9px;
}
.event .pill {
  margin-left: auto;
}
.toolbar {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
}
.toolbar input,
.toolbar select {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-size: 11px;
  min-width: 150px;
}
.empty {
  text-align: center;
  padding: 55px 25px;
  color: #8c99a4;
}
.empty svg {
  margin-bottom: 13px;
  color: #b4c1cd;
}
.empty strong {
  display: block;
  font-size: 14px;
  color: #5e7080;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.machine-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.machine-visual {
  height: 110px;
  background: linear-gradient(140deg, #e8edf1, #f4f6f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4c6d85;
  position: relative;
}
.machine-visual:before {
  content: '';
  height: 37px;
  width: 107px;
  position: absolute;
  bottom: 24px;
  background: var(--yellow);
  border: 2px solid #a47a13;
  border-radius: 4px;
  box-shadow: 10px 10px 0 -4px #283d4a;
}
.machine-visual svg {
  z-index: 1;
  margin-top: -17px;
}
.machine-visual .pill {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}
.machine-info {
  padding: 17px;
}
.machine-info h3 {
  margin-bottom: 5px;
}
.machine-info .specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 17px 0;
  font-size: 11px;
}
.specs small {
  display: block;
  margin-bottom: 3px;
  font-size: 9px;
}
.machine-info footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.calendar {
  min-width: 1000px;
}
.cal-row {
  display: grid;
  grid-template-columns: 200px repeat(14, minmax(45px, 1fr));
  border-bottom: 1px solid #edf0f3;
  min-height: 66px;
}
.cal-row > div {
  border-right: 1px solid #edf0f3;
  min-width: 0;
  padding: 8px 5px;
  font-size: 9px;
  position: relative;
}
.cal-row .cal-label {
  padding: 15px 18px;
  position: sticky;
  left: 0;
  background: white;
  z-index: 2;
}
.cal-row.head {
  min-height: 45px;
  background: #f9fafb;
  text-align: center;
  color: #8795a0;
}
.cal-row.head > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.cal-row .cal-label small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
}
.slot {
  height: 24px;
  border-radius: 4px;
  background: #dcefe9;
  color: #287461;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  padding: 5px;
  font-size: 8px;
  text-decoration: none;
  cursor: pointer;
}
.slot.maintenance {
  background: #ffedc5;
  color: #a77a20;
}
.slot.today {
  outline: 1px solid #ffb400;
}
.cal-today {
  background: #fffbef;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tabs button {
  padding: 13px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 11px;
  color: #8895a0;
}
.tabs button.active {
  color: #192d3e;
  border-color: var(--yellow);
  font-weight: 650;
}
.subheading {
  margin: 24px 0 14px;
  display: flex;
  justify-content: space-between;
}
.cash-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px;
  font-size: 12px;
}
.positive {
  color: #237e66;
}
.negative {
  color: #bb4f4f;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full {
  grid-column: 1/-1;
}
.form-field label {
  font-size: 11px;
  font-weight: 600;
  color: #536779;
}
.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid #dce2e7;
  border-radius: 7px;
  padding: 10px;
  width: 100%;
  background: white;
  color: #253c4e;
  font-size: 12px;
}
.form-field textarea {
  min-height: 78px;
  resize: vertical;
}
.form-field small {
  font-size: 10px;
  line-height: 1.5;
}
.form-heading {
  grid-column: 1/-1;
  font-size: 12px;
  font-weight: 650;
  padding-top: 12px;
  border-bottom: 1px solid #edf0f3;
  padding-bottom: 7px;
}
.form-error {
  background: #fff0ef;
  border: 1px solid #f4d6d3;
  color: #b04b43;
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
.form-note {
  font-size: 11px;
  padding: 11px;
  border-radius: 7px;
  background: #f4f6f8;
  color: #7a8b99;
  line-height: 1.6;
  margin-bottom: 16px;
}
.line-items {
  grid-column: 1/-1;
}
.line-row {
  display: grid;
  grid-template-columns: 1.6fr 2fr 0.8fr 0.8fr 1fr 28px;
  gap: 6px;
  margin-bottom: 8px;
}
.line-row input,
.line-row select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce2e7;
  border-radius: 5px;
  font-size: 10px;
  padding: 9px 5px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.detail-grid div {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.detail-grid small {
  display: block;
  margin-bottom: 5px;
}
.detail-actions {
  display: flex;
  gap: 9px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.preview-paper {
  border: 1px solid var(--line);
  padding: 30px;
  background: #fff;
  color: #263947;
  max-width: 850px;
  margin: auto;
}
.preview-paper img {
  width: 170px;
  display: block;
  margin: 0 auto 25px;
}
.preview-paper h2 {
  text-align: center;
  margin-bottom: 25px;
}
.preview-paper p {
  font-size: 12px;
  margin: 12px 0;
  line-height: 1.6;
}
.preview-paper footer {
  font-size: 10px;
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.ai-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: #fafbfc;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 13px;
  margin-top: 20px;
}
.question-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.question-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.report-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.report-card h3 {
  margin: 10px 0;
}
.report-card p {
  font-size: 11px;
  line-height: 1.6;
  color: #8a97a1;
  margin-bottom: 17px;
}
dialog {
  border: 0;
  border-radius: 15px;
  padding: 0;
  max-width: 850px;
  width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: 0 20px 100px #0d1b2a44;
  background: white;
  color: inherit;
}
dialog::backdrop {
  background: #0d1b2a88;
  backdrop-filter: blur(2px);
}
.modal-head {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 3;
}
.modal-head h2 {
  font-size: 19px;
}
.modal-body {
  padding: 22px 25px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}
.loading {
  padding: 100px;
  text-align: center;
  color: #748596;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 420px;
  padding: 14px 20px;
  border-radius: 10px;
  background: #183246;
  color: white;
  font-size: 12px;
  z-index: 100;
  display: none;
  box-shadow: 0 8px 30px #0d1b2a33;
}
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-art {
  background: var(--navy);
  color: white;
  padding: 70px 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-art::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid #264257;
  border-radius: 50%;
  right: -330px;
  top: -150px;
  box-shadow:
    0 0 0 70px #172b3d,
    0 0 0 71px #264257;
}
.auth-art .brand {
  margin: 0 0 70px;
  position: relative;
}
.auth-art h1 {
  font-size: 42px;
  line-height: 1.22;
  max-width: 450px;
  margin-bottom: 23px;
  position: relative;
}
.auth-art p {
  color: #8da4b7;
  line-height: 1.8;
  font-size: 14px;
  max-width: 400px;
  position: relative;
}
.auth-art .auth-caption {
  margin-top: 60px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #69869e;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-wrap {
  width: 355px;
}
.auth-wrap h2 {
  font-size: 25px;
  margin-bottom: 10px;
}
.auth-wrap > p {
  font-size: 12px;
  color: #8998a5;
  margin-bottom: 28px;
  line-height: 1.6;
}
.auth-wrap .form-field {
  margin-bottom: 17px;
}
.auth-wrap .btn {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
}
.auth-bottom {
  font-size: 10px;
  text-align: center;
  margin-top: 28px;
  line-height: 1.8;
  color: #92a0ad;
}
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8ba79b;
  font-size: 10px;
  margin-bottom: 25px;
}
.status-line i {
  width: 6px;
  height: 6px;
  background: #38b786;
  border-radius: 50%;
}
.mobile-menu {
  display: none;
}
.notice {
  font-size: 11px;
  line-height: 1.6;
  padding: 13px;
  background: #eef3f7;
  border-radius: 9px;
  margin-bottom: 18px;
  color: #60778b;
}
.notification-dot {
  position: relative;
}
.notification-dot::after {
  position: absolute;
  content: '';
  width: 5px;
  height: 5px;
  background: var(--yellow);
  border-radius: 50%;
  right: 5px;
  top: 4px;
}
.tabular {
  font-variant-numeric: tabular-nums;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 10px 0;
}
.check-row input {
  width: auto;
}
.badge-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: #8292a0;
  text-transform: uppercase;
  margin-bottom: 10px;
}
@media (min-width: 1500px) {
  .content {
    padding: 35px 45px;
  }
  .chart {
    height: 245px;
  }
  .metric {
    padding: 22px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .sidebar {
    width: 205px;
  }
  .content {
    padding: 24px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 24px;
  }
  .grid-2 {
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
  }
  .donut {
    width: 120px;
    height: 120px;
  }
  .fleet-legend {
    font-size: 10px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top-actions .local-tag {
    display: none;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 20px 0 100px #0006;
  }
  .mobile-menu {
    display: flex;
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 62px;
    padding: 0 15px;
    gap: 10px;
  }
  .top-actions {
    gap: 7px;
  }
  .top-actions .user-info {
    display: none;
  }
  .content {
    padding: 22px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 24px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric strong {
    font-size: 25px;
  }
  .grid-2,
  .grid-equal {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .report-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 35px 35px;
    min-height: 230px;
  }
  .auth-art .brand {
    margin: 0 0 25px;
  }
  .auth-art h1 {
    font-size: 27px;
    margin-bottom: 0;
  }
  .auth-art p,
  .auth-caption {
    display: none;
  }
  .auth-form {
    padding: 32px;
  }
  .auth-wrap {
    width: 100%;
    max-width: 400px;
  }
  .form-grid {
    gap: 13px;
  }
  .line-row {
    grid-template-columns: 1fr 1fr 60px;
  }
  .line-row input {
    margin-bottom: 3px;
  }
  .datebox {
    width: 100%;
    justify-content: center;
  }
  .page-heading .actions {
    width: 100%;
  }
  .search input {
    font-size: 11px;
  }
  .form-field {
    min-width: 0;
  }
  .preview-paper {
    padding: 20px;
  }
  .demo-banner {
    align-items: flex-start;
  }
  .question-form {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .cards,
  .report-grid {
    grid-template-columns: 1fr;
  }
  .metric {
    padding: 14px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-icon {
    padding: 5px;
  }
  .metric strong {
    font-size: 22px;
  }
  .metric small {
    font-size: 9px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: auto;
  }
  .form-heading,
  .line-items {
    grid-column: auto;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .donut-layout {
    justify-content: center;
    gap: 35px;
  }
  .user-link {
    padding: 0;
  }
  .panel-head {
    padding: 17px;
  }
  .panel-body {
    padding: 10px 17px 17px;
  }
  .toolbar {
    padding: 12px;
    gap: 7px;
  }
  .toolbar input {
    min-width: 120px;
    width: 100%;
  }
  .toolbar select {
    min-width: 110px;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-head {
    padding: 18px;
  }
}
@media print {
  body {
    background: white;
  }
  .sidebar,
  .topbar,
  .page-heading,
  .demo-banner,
  .detail-actions,
  #toast,
  .no-print,
  .tabs {
    display: none !important;
  }
  .main {
    width: 100%;
  }
  .shell {
    display: block;
  }
  .content {
    padding: 0;
  }
  .preview-paper {
    border: 0;
    padding: 20px;
  }
  .preview-paper table th {
    background: #eee !important;
    color: black;
  }
  .panel {
    border: 0;
  }
  .modal-head {
    display: none;
  }
  dialog {
    position: static;
    width: 100%;
    max-height: none;
    max-width: none;
    box-shadow: none;
    border: 0;
  }
  body:has(dialog[open]) > #app {
    display: none;
  }
  dialog::backdrop {
    background: white;
  }
  .modal-footer {
    display: none;
  }
}
.kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(230px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
}
.kanban-column {
  background: #edf1f5;
  border: 1px solid #e1e6ec;
  border-radius: 12px;
  padding: 13px;
}
.kanban-column > header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.kanban-column > header > span:last-child {
  margin-left: auto;
}
.kanban-total {
  display: block;
  padding: 10px 0;
  color: #738397;
}
.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7189ad;
}
.stage-1 {
  background: #7d70ac;
}
.stage-2 {
  background: #cfac36;
}
.stage-3 {
  background: #ce8948;
}
.stage-4 {
  background: #30947a;
}
.stage-5 {
  background: #bc6666;
}
.opportunity {
  background: white;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #dfe5eb;
  border-radius: 9px;
}
.opportunity-title {
  background: none;
  border: 0;
  text-align: left;
  color: #21394f;
  font-weight: 650;
  line-height: 1.5;
}
.opportunity small {
  display: block;
  margin: 7px 0;
  font-size: 10px;
  color: #84929d;
}
.opportunity-value {
  display: block;
  font-size: 15px;
  margin: 12px 0;
}
.opportunity p {
  font-size: 11px;
  line-height: 1.6;
  color: #667a8b;
}
.opportunity-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  margin-top: 13px;
}
.kanban-add {
  border: 1px dashed #c1ccd5;
  border-radius: 7px;
  background: transparent;
  padding: 10px;
  width: 100%;
  font-size: 10px;
  color: #637d92;
}
.schedule-row {
  display: grid;
  grid-template-columns: 22px 1fr 1fr 1.1fr 1.2fr;
  gap: 8px;
  align-items: end;
  margin: 12px 0;
}
.schedule-row > span {
  padding-bottom: 10px;
  font-size: 12px;
}
.manual-item {
  padding: 16px;
  border: 1px solid #dde4eb;
  border-radius: 9px;
  margin: 12px 0;
}
.form-field {
  min-width: 0;
}
.detail-grid div {
  overflow-wrap: anywhere;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid #d8b337;
  outline-offset: 1px;
}
.tabs {
  overflow-x: auto;
}
.tabs button {
  white-space: nowrap;
}
.form-field input[type='checkbox'] {
  width: auto;
}
.ai-box {
  overflow-wrap: anywhere;
  max-width: 100%;
}
@media (max-width: 650px) {
  .schedule-row {
    grid-template-columns: 22px 1fr 1fr;
  }
  .schedule-row > .form-field:nth-last-child(-n + 2) {
    grid-column: 2/-1;
  }
  .kanban {
    grid-template-columns: repeat(6, 250px);
  }
}
@media print {
  .breadcrumb,
  .modal-body > .notice,
  .modal-body > .muted,
  .modal-body > .detail-actions,
  .modal-body .btn,
  .modal-body input[type='file'] {
    display: none !important;
  }
  table {
    font-size: 9pt;
  }
  thead {
    display: table-header-group;
  }
  tr,
  .metric {
    break-inside: avoid;
  }
  .table-scroll {
    overflow: visible;
  }
  dialog[open] {
    display: block;
    overflow: visible;
  }
  .modal-body {
    padding: 0;
  }
  h2,
  h3 {
    break-after: avoid;
  }
}

/* ===== v2: menu recolhível ===== */
.nav-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 30px);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-align: left;
}
.nav-toggle span { font-size: 13px; letter-spacing: 0; color: #5f7890; }
.nav-toggle:hover, .nav-toggle:hover span { color: #ffb400; }
.nav.collapsed { display: none; }

/* ===== v2: tons ===== */
.metric-icon.red { background: #fdecec; color: #b42318; }
.progress.warn i { background: #e0901b; }
.insight[data-action] { cursor: pointer; border-radius: 10px; transition: background 0.15s; }
.insight[data-action]:hover { background: rgba(255, 180, 0, 0.08); }
.insight.danger .insight-symbol { background: #fdecec; color: #b42318; }
td small { display: block; color: #6b7c8d; font-size: 11px; margin-top: 3px; }

/* ===== v2: campo ===== */
.field-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 4px; }
.field-title { font-size: 15px; margin: 6px 0 12px; color: #0d1b2a; }
.job-card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-left: 4px solid #ffb400;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.job-card.late { border-left-color: #d92d20; }
.job-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #5f7890; }
.job-when { font-weight: 650; }
.job-when.today { color: #b76e00; }
.job-when.danger { color: #b42318; }
.job-card h3 { font-size: 17px; margin: 8px 0 4px; }
.job-place { font-size: 13px; color: #3c4d5e; line-height: 1.6; margin: 0 0 10px; }
.job-machines { list-style: none; padding: 0; margin: 0 0 14px; }
.job-machines li { font-size: 13px; padding: 8px 0; border-top: 1px dashed #e3e8ee; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.job-machines li small { width: 100%; color: #6b7c8d; padding-left: 20px; }
.btn.big { width: 100%; justify-content: center; padding: 14px 16px; font-size: 15px; min-height: 50px; }

/* ===== v2: cobrança ===== */
.collect { margin-bottom: 16px; }
.collect .actions { display: flex; align-items: center; gap: 12px; }
.collect .actions b { font-size: 16px; }

@media (max-width: 800px) {
  .field-columns { grid-template-columns: 1fr; }
  .collect .panel-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .modal-body input, .modal-body select, .modal-body textarea { font-size: 16px; } /* evita zoom no iPhone */
  .form-grid { grid-template-columns: 1fr !important; }
  #modal { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; }
  .check-row { padding: 10px 0; font-size: 14px; }
  .check-row input { width: 22px; height: 22px; }
}
