/* ===== Conect Oficina — tema da imagem ===== */
:root {
  --red: #e11d2e; --red-dark: #a31220; --ink: #14161a;
  --muted: #6b7280; --line: #e5e7eb; --bg: #f4f5f7;
  --font-ui: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { font-family: var(--font-ui); background: var(--bg); color: var(--ink); overflow-x: hidden; }

/* ---------- Ícones SVG profissionais ---------- */
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-xs { width: 13px; height: 13px; }

/* ---------- Animações ---------- */
@keyframes rideIn {
  0% { transform: translateX(160px); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- LOGIN ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.hero {
  position: relative; overflow: visible; isolation: isolate; z-index: 2; color: #fff;
  background:
    linear-gradient(115deg, rgba(8,8,10,.86) 22%, rgba(8,8,10,.55) 55%, rgba(225,29,46,.22)),
    url("../img/imagem-background-somente-fundo.png") center / cover no-repeat #120406;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 50px 56px 40px 72px;
}
.hero::before, .hero::after { /* faixas vermelhas diagonais da imagem */
  content: ""; position: absolute; background: var(--red);
  width: 88px; height: 100%; top: 0; z-index: 2;
  clip-path: polygon(46% 0, 100% 0, 54% 100%, 0 100%);
}
.hero::before { left: -34px; } .hero::after { right: 0; opacity: .9; }
.hero-top { position: relative; z-index: 6; }
.hero-logo { width: 150px; display: block; margin-bottom: -18px;
  filter: brightness(1.12) drop-shadow(0 6px 14px rgba(0,0,0,.6));
}
.hero-bike-motion {
  position: absolute; z-index: 5; right: -8%; bottom: 0; pointer-events: none;
  width: min(680px, 105%, 88vh); height: auto;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.65));
  animation: none;
}
.hero-bike {
  display: block; width: 100%; height: auto;
  animation: none;
}
.brand-logo { position: relative; z-index: 3; font-size: 72px; line-height: .95; font-weight: 900; font-style: italic; letter-spacing: -3px;
  text-shadow: 0 4px 18px rgba(0,0,0,.6); }
.brand-logo span { color: var(--red); }
.brand-sub { position: relative; z-index: 3; letter-spacing: 3.5px; font-size: 15px; font-weight: 700; margin-top: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.brand-bar { position: relative; z-index: 3; width: 64px; height: 5px; background: var(--red); margin: 12px 0 18px; }
.hero p.lead { position: relative; z-index: 3; font-size: 18px; line-height: 1.5; max-width: 380px;
  text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.hero p.lead b { color: #ff5b66; }
.hero ul { position: relative; z-index: 3; list-style: none; margin-top: 10px; display: grid; gap: 9px; font-size: 15px;
  text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.hero ul li { display: flex; align-items: center; gap: 12px; }
.hero ul .ic { color: var(--red); }
.hero-foot { position: relative; z-index: 6; border-left: 5px solid var(--red); padding-left: 12px; font-weight: 700; line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0,0,0,.7); }

.login-side { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: clamp(18px, 3vw, 32px);
  background: linear-gradient(135deg, #fff 70%, #ffe4e6 100%); }
.login-card { width: 100%; max-width: 430px; background: #fff; border-radius: 16px;
  padding: 28px 32px 30px; box-shadow: 0 24px 70px rgba(0,0,0,.12); border: 1px solid #f1f1f4;
}
.card-logo { width: 128px; display: block; margin: 0 auto 2px;
  filter: brightness(1.08);
}
.login-card h1 { text-align: center; font-size: 28px; line-height: 1.15; font-weight: 800; margin: 5px 0 3px; }
.login-card h1 span { color: var(--red); }
.login-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.field { position: relative; margin-bottom: 12px; }
.field .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #6b7280; display: flex; }
.field .icon .ic { width: 19px; height: 19px; }
.field input { width: 100%; padding: 12px 44px 12px 48px; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 14px; outline: none; }
.field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,46,.12); }
.field .eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: none; background: none; cursor: pointer; color: #6b7280; display: flex;
  padding: 4px; border-radius: 8px; }
.field .eye:hover { color: var(--red); background: #fef2f2; }
.field .eye .ic { width: 20px; height: 20px; }
.row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; margin: 4px 0 14px; }
.check { display: flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.check input { display: none; }
.check .box { width: 20px; height: 20px; border-radius: 5px; background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; }
.check input:not(:checked) + .box { background: #e5e7eb; color: transparent; }
.link { color: var(--red); text-decoration: none; font-weight: 500; }
.btn-red { width: 100%; border: none; border-radius: 9px; padding: 13px; font-size: 15px;
  font-weight: 800; letter-spacing: 1px; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #f2263a, #c81525); transition: .2s;
  display: flex; align-items: center; justify-content: center; }
.btn-red:hover { filter: brightness(1.06); transform: translateY(-1px); }
.login-foot { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px;
  text-align: center; font-size: 11.5px; color: var(--muted); }
.alert { border-radius: 8px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 12px; }
.alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ---------- SISTEMA ---------- */
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: #14161a; color: #e5e7eb; padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; }
.sidebar .logo { font-size: 28px; font-weight: 900; font-style: italic; padding: 0 10px 18px; color: #fff; }
.sidebar .logo span { color: var(--red); }
.sidebar a { color: #cbd5e1; text-decoration: none; padding: 11px 14px; border-radius: 10px;
  font-size: 14.5px; display: flex; align-items: center; gap: 11px; }
.sidebar a .ic { width: 19px; height: 19px; opacity: .9; }
.sidebar a.active, .sidebar a:hover { background: var(--red); color: #fff; }
.sidebar-group { width: 100%; }
.sidebar-group summary { display: flex; align-items: center; justify-content: space-between; gap: 11px; padding: 11px 14px; border-radius: 10px; color: #cbd5e1; cursor: pointer; font-size: 14.5px; list-style: none; }
.sidebar-group summary::-webkit-details-marker { display: none; }
.sidebar-group summary > span { display: flex; align-items: center; gap: 11px; }
.sidebar-group summary .ic { width: 19px; height: 19px; opacity: .9; }
.sidebar-group summary:hover, .sidebar-group[open] > summary { background: #292c32; color: #fff; }
.sidebar-group[open] > summary .sidebar-group-chevron { transform: rotate(180deg); }
.sidebar-group-chevron { transition: transform .15s ease; }
.sidebar-submenu { display: grid; gap: 3px; margin: 3px 0 2px 12px; padding-left: 12px; border-left: 1px solid #3c4048; }
.sidebar-submenu a { padding: 8px 10px; color: #9ca3af; font-size: 12.5px; }
.sidebar-submenu a .ic { width: 16px; height: 16px; }
.sidebar-submenu a.active, .sidebar-submenu a:hover { background: var(--red); color: #fff; }
.sidebar .sep { margin-top: auto; font-size: 12px; color: #6b7280; padding: 14px 10px 0; }
.main { display: flex; flex-direction: column; min-width: 0; }
.navbar { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 26px;
  display: flex; justify-content: space-between; align-items: center; }
.navbar .user { font-size: 14px; } .navbar .user b { display: block; font-size: 15px; }
.toolbar { padding: 22px 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar h2 { font-size: 22px; } .toolbar .crumb { font-size: 12.5px; color: var(--muted); }
.content { padding: 20px 26px 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.card-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card-stat small { color: var(--muted); display: flex; align-items: center; gap: 7px; }
.card-stat small .ic { color: var(--red); }
.card-stat b { font-size: 30px; display: block; margin-top: 4px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.panel-scroll { overflow-x: auto; }
.grid-2 .panel th, .grid-2 .panel td { padding: 9px 8px; font-size: 12.5px; }
.grid-2 .panel th { font-size: 10.5px; }
th { white-space: nowrap; }
td.nowrap { white-space: nowrap; }
.panel h3 { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; border-bottom: 1px solid #f1f2f4; text-align: left; }
th { background: #fafafa; color: #6b7280; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge.on { background: #dcfce7; color: #15803d; } .badge.off { background: #fee2e2; color: #b91c1c; }
.search { display: flex; gap: 10px; } .search input { padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; min-width: 260px; }
.btn { background: var(--red); color: #fff; border: none; border-radius: 10px; padding: 10px 18px; cursor: pointer; font-weight: 700; }
.footer { margin-top: auto; background: #fff; border-top: 1px solid var(--line);
  padding: 14px 26px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; }
.footer .ic { color: var(--red); }

/* ---------- Ações / formulários / detalhes ---------- */
.tbl-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: #475569; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--red); color: var(--red); background: #fef2f2; }
.icon-btn .ic { width: 17px; height: 17px; }
.icon-btn.danger:hover { border-color: #b91c1c; color: #b91c1c; background: #fef2f2; }
.icon-btn.ok:hover { border-color: #15803d; color: #15803d; background: #f0fdf4; }
.icon-btn.warn:hover { border-color: #b45309; color: #b45309; background: #fffbeb; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: #fff;
  border: 1.5px solid var(--line); color: var(--ink); border-radius: 10px;
  padding: 10px 16px; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 14px; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.toolbar .actions { display: flex; gap: 10px; align-items: center; }
.flashes { flex-basis: 100%; display: grid; gap: 8px; }
.flashes .alert { margin-bottom: 0; }

/* ---------- Painel de ordens de servico ---------- */
.os-page { padding-top: 22px; }
.os-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.os-eyebrow { display: block; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.os-page-head h1 { margin: 5px 0 4px; font-size: 28px; letter-spacing: -.4px; }
.os-page-head p { color: var(--muted); font-size: 14px; }
.os-head-actions, .os-filter-actions, .os-list-links { display: flex; align-items: center; gap: 9px; }
.os-head-actions .btn, .os-head-actions .btn-ghost { white-space: nowrap; }
.os-workspace { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: 16px; }
.os-module-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.os-module-nav-title { padding: 4px 10px 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.os-module-nav-item { display: flex; width: 100%; align-items: center; gap: 9px; padding: 11px 10px; border: 0; border-radius: 8px; background: transparent; color: #4b5563; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; text-align: left; text-decoration: none; }
.os-module-nav-item .ic { flex: none; color: #6b7280; }
.os-module-nav-item span { min-width: 0; flex: 1; }
.os-module-nav-item small { color: #9ca3af; font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.os-module-nav-item.active, .os-module-nav-item:hover:not(:disabled) { background: #fff1f2; color: var(--red); }
.os-module-nav-item.active .ic, .os-module-nav-item:hover:not(:disabled) .ic { color: var(--red); }
.os-module-nav-item.is-disabled { cursor: not-allowed; opacity: .72; }
.os-workspace-content { min-width: 0; }
.os-notice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 16px; padding: 11px 14px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; color: #854d0e; font-size: 12.5px; line-height: 1.45; }
.os-notice .ic { color: #d97706; margin-top: 1px; }
.os-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin-bottom: 18px; }
.os-stat { display: block; width: 100%; min-height: 108px; padding: 14px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--status-color, var(--red));
  border-radius: 11px; color: var(--ink); cursor: pointer; font: inherit; text-align: left; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.os-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 22, 26, .08); }
.os-stat.is-selected { border-color: var(--status-color, var(--red)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-color, var(--red)) 14%, transparent); }
.os-page.is-loading .os-list-panel { opacity: .62; }
.os-stat-total { --status-color: var(--red); }
.os-stat-label { display: flex; align-items: center; gap: 7px; min-height: 31px; color: var(--muted); font-size: 11.5px; font-weight: 700; line-height: 1.25; }
.os-stat-label i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--status-color, var(--red)); }
.os-stat-label .ic { color: var(--red); }
.os-stat strong { display: block; margin-top: 7px; font-size: 26px; line-height: 1; }
.os-stat small { display: block; margin-top: 7px; color: #9aa1ad; font-size: 10.5px; }
.os-filter-panel, .os-list-panel { overflow: visible; }
.os-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.os-section-heading h2 { font-size: 16px; margin-bottom: 3px; }
.os-section-heading small { display: block; color: var(--muted); font-size: 12px; }
.os-result-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.os-filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(140px, 1fr)) auto; gap: 10px; padding: 16px 18px; align-items: center; }
.os-search-field { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 9px; color: var(--muted); }
.os-search-field:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,46,.1); }
.os-search-field input { width: 100%; min-width: 0; padding: 10px 0; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 13px; }
.os-filters select { width: 100%; min-width: 0; padding: 10px 10px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 12.5px; }
.os-filter-actions { justify-content: flex-end; }
.os-filter-actions .btn, .os-filter-actions .btn-ghost { padding: 10px 13px; font-size: 12.5px; }
.os-list-panel { margin-top: 16px; }
.os-list-links { font-size: 12px; }
.os-list-links a { color: var(--red); font-weight: 700; text-decoration: none; }
.os-table-wrap { overflow-x: auto; }
.os-table-wrap table { min-width: 1060px; }
.os-table-wrap th { padding: 10px 12px; font-size: 10px; }
.os-table-wrap td { padding: 11px 12px; font-size: 12px; vertical-align: middle; }
.os-row-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.os-service-cell { max-width: 190px; color: #4b5563; line-height: 1.35; }
.os-status, .os-payment { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--status-color, #6b7280) 13%, #fff); color: color-mix(in srgb, var(--status-color, #6b7280) 78%, #111); font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.os-status::before { width: 6px; height: 6px; border-radius: 50%; background: var(--status-color, #6b7280); content: ""; }
.os-payment { background: #fff7ed; color: #b45309; }
.os-payment.is-partial { background: #eff6ff; color: #1d4ed8; }
.os-payment.is-paid { background: #f0fdf4; color: #15803d; }
.os-empty { padding: 32px 16px !important; color: var(--muted); text-align: center; }
.os-cards-view { display: none; }
.os-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.os-pagination > :last-child { justify-self: end; }
.os-pagination strong { color: var(--ink); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 700; color: #374151; }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14px; outline: none; }
.form-group textarea { min-height: 88px; line-height: 1.45; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,46,.12); }
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end;
  padding-top: 6px; }
.client-form-page { padding-top: 14px; }
.client-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.client-form-panel { min-width: 0; overflow: visible; }
.client-form-header { display: flex; align-items: center; gap: 14px; padding: 22px 24px 19px;
  background: linear-gradient(135deg, #fff 0%, #fff8f8 100%); border-bottom: 1px solid var(--line); }
.client-form-icon { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center;
  justify-content: center; flex: none; background: #fee2e2; color: var(--red); }
.client-form-icon .ic { width: 24px; height: 24px; }
.client-form-kicker { display: block; color: var(--red); font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px; }
.client-form-header h3 { padding: 0; border: 0; font-size: 21px; margin: 3px 0 4px; }
.client-form-header p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.client-form-grid { padding: 22px 24px 24px; gap: 16px; }
.client-form-actions { position: sticky; bottom: 0; z-index: 3; margin: 6px -24px -24px; padding: 14px 24px;
  background: rgba(255,255,255,.94); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.client-form-grid .form-group input, .client-form-grid .form-group select { background: #fff; transition: border-color .18s, box-shadow .18s, background .18s; }
.client-form-grid .form-group input:hover, .client-form-grid .form-group select:hover { border-color: #cbd0d8; }
.client-form-grid .form-group input:focus, .client-form-grid .form-group select:focus { background: #fff; }
.client-section-heading { display: flex; align-items: center; gap: 10px; padding: 4px 0 10px; margin-top: 2px;
  border-bottom: 1px solid #eceef1; }
.client-section-heading .client-section-icon { width: 28px; height: 28px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--red); background: #fff1f2; flex: none; }
.client-section-heading strong { display: block; color: var(--ink); font-size: 14px; }
.client-section-heading small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; margin-top: 2px; }
.client-section-heading.section-heading-inline { margin: 0 0 12px; padding: 0 0 12px; }
.client-form-grid .form-group > label small { color: var(--muted); font-size: 11.5px; font-weight: 400; }
.os-form-page, .os-detail-page { padding-top: 22px; }
.os-form-heading, .os-detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.os-form-heading h1, .os-detail-head h1 { margin: 5px 0 4px; font-size: 28px; letter-spacing: -.4px; }
.os-form-heading p, .os-detail-head p { color: var(--muted); font-size: 14px; }
.os-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.os-form-layout > .panel { min-width: 0; overflow: visible; }
.os-form-grid { padding: 24px; gap: 18px 16px; }
.os-form-section-title { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; padding: 2px 0 10px; border-bottom: 1px solid #eceef1; }
.os-form-section-title:not(:first-child) { margin-top: 8px; }
.os-form-section-title h2 { font-size: 15px; line-height: 1.2; }
.os-form-section-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.os-form-step { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #fff1f2; color: var(--red); font-size: 12px; font-weight: 800; }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.35; }
.os-form-actions { margin-top: 4px; }
.os-form-aside { position: sticky; top: 18px; display: grid; gap: 14px; }
.os-form-note, .os-form-checklist { padding: 20px; }
.os-form-note { border-top: 3px solid var(--red); }
.os-form-note > .ic { color: var(--red); margin-bottom: 12px; }
.os-form-note h2, .os-form-checklist h2 { margin-bottom: 8px; font-size: 16px; }
.os-form-note p, .os-form-checklist p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.os-form-checklist { background: #fffaf9; }
.os-form-checklist p + p { margin-top: 10px; }
.os-detail-head { align-items: center; padding: 22px 24px; margin-bottom: 16px; }
.os-detail-head.panel { border-top: 3px solid var(--red); }
.os-detail-head p { margin-top: 5px; }
.os-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.os-action-card { min-width: 0; overflow: hidden; }
.os-action-form, .os-edit-form { display: grid; gap: 10px; padding: 16px 18px 18px; }
.os-action-form label, .os-edit-fields label { color: #374151; font-size: 11px; font-weight: 700; }
.os-action-form input, .os-action-form select, .os-action-form textarea,
.os-edit-fields input, .os-edit-fields select, .os-edit-fields textarea {
  width: 100%; min-width: 0; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font: inherit; font-size: 12.5px; outline: none;
}
.os-action-form textarea, .os-edit-fields textarea { resize: vertical; line-height: 1.4; }
.os-action-form input:focus, .os-action-form select:focus, .os-action-form textarea:focus,
.os-edit-fields input:focus, .os-edit-fields select:focus, .os-edit-fields textarea:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,46,.1);
}
.os-action-form .btn, .os-edit-actions .btn { justify-self: start; padding: 9px 14px; font-size: 12px; }
.os-action-form .btn:disabled { cursor: not-allowed; opacity: .5; }
.os-action-fields, .os-edit-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.os-action-fields > div, .os-edit-fields > div { display: grid; gap: 5px; min-width: 0; }
.os-action-form > label + textarea, .os-action-form > label + input { margin-top: -5px; }
.os-edit-section { overflow: hidden; }
.os-edit-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.os-edit-fields .full { grid-column: 1 / -1; }
.os-edit-actions { display: flex; justify-content: flex-end; padding-top: 2px; }
.os-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.os-detail-card { min-width: 0; }
.os-detail-card .panel-title { padding: 13px 15px; font-size: 13px; }
.os-detail-data { display: grid; gap: 6px; padding: 14px 15px 16px; min-height: 108px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.os-detail-data strong { color: var(--ink); font-size: 13.5px; }
.os-detail-data a { color: var(--red); font-size: 11.5px; font-weight: 700; text-decoration: none; }
.os-detail-section { margin-top: 16px; overflow: hidden; }
.os-section-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: auto; padding: 0 7px; border-radius: 999px; background: #fef2f2; color: var(--red); font-size: 11px; }
.os-detail-text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px; }
.os-detail-text-grid > div { min-width: 0; }
.os-detail-text-grid small { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.os-detail-text-grid p { margin-top: 7px; color: #374151; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.os-item-form { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(110px, 1fr)) minmax(0, 1.5fr) auto; gap: 10px; align-items: end; padding: 14px 18px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.os-item-form > div { display: grid; gap: 5px; min-width: 0; }
.os-item-form label { color: #374151; font-size: 11px; font-weight: 700; }
.os-item-form input, .os-item-form select { width: 100%; min-width: 0; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; outline: none; }
.os-item-form input:focus, .os-item-form select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,46,.1); }
.os-item-form .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; font-size: 12px; white-space: nowrap; }
.os-item-actions { display: flex; align-items: flex-start; gap: 6px; }
.os-item-actions > form { display: inline-flex; }
.os-item-edit { position: relative; }
.os-item-edit > summary { list-style: none; cursor: pointer; }
.os-item-edit > summary::-webkit-details-marker { display: none; }
.os-item-edit[open] > summary { border-color: var(--red); color: var(--red); background: #fef2f2; }
.os-item-edit-form { position: absolute; z-index: 4; top: calc(100% + 6px); right: 0; display: grid; grid-template-columns: minmax(170px, 1.6fr) 84px 110px minmax(130px, 1fr) 32px; gap: 6px; width: min(620px, calc(100vw - 56px)); padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 12px 28px rgba(20,22,26,.14); }
.os-item-edit-form input, .os-item-edit-form select { min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 11px; }
.os-item-edit-form input:focus, .os-item-edit-form select:focus { border-color: var(--red); outline: 0; }
.os-detail-table { overflow-x: auto; }
.os-detail-table table { min-width: 620px; }
.os-detail-table th { padding: 10px 14px; font-size: 10px; }
.os-detail-table td { padding: 11px 14px; font-size: 12.5px; vertical-align: middle; }
.os-detail-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.os-timeline { display: grid; gap: 14px; padding: 18px; }
.os-timeline-item { position: relative; padding-left: 16px; border-left: 2px solid #fecdd3; }
.os-timeline-item::before { position: absolute; top: 3px; left: -6px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px #fecdd3; content: ""; }
.os-timeline-item strong { display: block; font-size: 12.5px; }
.os-timeline-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 10.5px; }
.os-timeline-item p { margin-top: 5px; color: #4b5563; font-size: 12px; line-height: 1.4; }
.fone-row { display: grid; grid-template-columns: minmax(120px, 150px) minmax(0, 1fr) 32px 32px !important;
  gap: 8px; align-items: center; }
.fone-row input, .fone-row select { min-width: 0; }
.fone-row .check { justify-content: center; }
.end-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)) !important; gap: 8px; align-items: center; }
.end-row input { min-width: 0; }
.end-row input[name="end_logradouro"] { grid-column: span 7; }
.end-row input[name="end_numero"] { grid-column: span 2; }
.end-row input[name="end_cep"] { grid-column: span 3; }
.end-row input[name="end_complemento"] { grid-column: span 4; }
.end-row input[name="end_bairro"] { grid-column: span 3; }
.end-row input[name="end_cidade"] { grid-column: span 3; }
.end-row input[name="end_uf"] { grid-column: span 1; }
.end-row > .check, .end-row > span { grid-column: span 1; justify-self: end; }
.end-row > span { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.client-form-aside { position: sticky; top: 18px; overflow: hidden; color: #fff; padding: 22px 20px 18px;
  border-radius: 14px; background: linear-gradient(150deg, #17191e 0%, #292d36 100%); box-shadow: 0 16px 35px rgba(20,22,26,.13); }
.client-form-aside::after { content: ""; position: absolute; width: 150px; height: 150px; right: -72px; bottom: -75px;
  border: 22px solid rgba(225,29,46,.18); transform: rotate(25deg); pointer-events: none; }
.client-aside-mark { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--red); margin-bottom: 20px; }
.client-aside-mark .ic { width: 22px; height: 22px; }
.client-form-aside .client-form-kicker { color: #ff7b85; }
.client-form-aside h4 { font-size: 22px; margin: 5px 0 7px; }
.client-form-aside > p { color: #b9bfca; font-size: 13px; line-height: 1.55; }
.client-aside-list { list-style: none; display: grid; gap: 15px; margin: 24px 0 22px; }
.client-aside-list li { display: flex; align-items: flex-start; gap: 10px; }
.client-aside-list > li > .ic { color: #ff626d; margin-top: 1px; }
.client-aside-list strong, .client-aside-list small { display: block; }
.client-aside-list strong { font-size: 12.5px; }
.client-aside-list small { color: #9ea6b4; font-size: 11.5px; margin-top: 2px; line-height: 1.35; }
.client-aside-note { position: relative; z-index: 1; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.12); color: #aeb5c1; font-size: 11.5px; }
.client-aside-note span { color: #ff626d; font-weight: 800; margin-right: 3px; }
.kv { display: grid; grid-template-columns: 200px 1fr; }
.kv dt { padding: 12px 18px; font-size: 13px; font-weight: 700; color: var(--muted);
  border-bottom: 1px solid #f1f2f4; background: #fafafa; }
.kv dd { padding: 12px 18px; font-size: 14px; border-bottom: 1px solid #f1f2f4; }
.nav-links { display: flex; gap: 14px; align-items: center; font-size: 13.5px; }
.nav-links a { color: var(--red); text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px; }

@media (min-width: 901px) and (max-width: 1100px) {
  .hero { padding: 36px 36px 32px 44px; }
  .hero-logo { width: 136px; }
  .brand-logo { font-size: 58px; }
  .brand-sub { font-size: 12px; letter-spacing: 2.5px; }
  .hero p.lead { font-size: 16px; }
  .hero ul { gap: 8px; font-size: 14px; }
  .login-card { max-width: 430px; padding: 30px 28px 34px; }
  .card-logo { width: 142px; }
  .login-card h1 { font-size: 30px; }
}

/* ---------- Topbar (padrão imagem) ---------- */
.topbar-new { gap: 16px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; }
.crumbs a:hover { color: var(--red); }
.crumbs .here { color: var(--ink); font-weight: 600; }
.globalsearch { display: flex; align-items: center; gap: 8px; background: #f1f2f6;
  border-radius: 10px; padding: 6px 6px 6px 14px; flex: 1; max-width: 520px; color: var(--muted); }
.globalsearch input { border: none; background: none; outline: none; flex: 1; font-size: 13.5px; }
.topuser { display: flex; align-items: center; gap: 14px; }
.bell { position: relative; border: none; background: none; cursor: pointer; color: var(--ink); padding: 6px; }
.bell .dot { position: absolute; top: 0; right: 0; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.user-menu { position: relative; }
.user-menu-toggle { display: flex; align-items: center; gap: 9px; border: none; background: none;
  color: var(--ink); cursor: pointer; font: inherit; padding: 2px 0; text-align: left; }
.user-menu-toggle:hover .uinfo b, .user-menu-toggle:focus-visible .uinfo b { color: var(--red); }
.menu-chevron { transition: transform .18s ease; }
.user-menu.is-open .menu-chevron { transform: rotate(180deg); }
.avatar-xs { width: 34px; height: 34px; border-radius: 50%; background: #14161a; color: #fff;
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.user-menu .uinfo b { display: block; font-size: 13px; }
.user-menu .uinfo small { color: var(--muted); font-size: 11.5px; }
.user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; width: 214px;
  padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 32px rgba(20, 22, 26, .14); opacity: 0; visibility: hidden;
  transform: translateY(-6px); pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.user-menu.is-open .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.user-dropdown-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 9px; }
.avatar-dropdown { width: 32px; height: 32px; border-radius: 50%; background: #14161a; color: #fff;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.dropdown-user-info { min-width: 0; }
.dropdown-user-info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.dropdown-user-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10.5px; }
.user-status { display: inline-flex; align-items: center; gap: 4px; color: #16a34a; font-size: 10px; font-weight: 600; }
.user-status::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.user-dropdown-divider { height: 1px; margin: 3px 3px 5px; background: #eef0f3; }
.user-dropdown a, .user-dropdown .dropdown-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: none;
  border-radius: 7px; color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; text-align: left; }
.user-dropdown .dropdown-item { background: transparent; cursor: pointer; }
.user-dropdown a:hover, .user-dropdown a:focus-visible, .user-dropdown .dropdown-item:hover,
.user-dropdown .dropdown-item:focus-visible { background: #f8f8f9; color: var(--red); outline: none; }
.item-chevron { margin-left: auto; color: var(--muted); }
.user-dropdown a.danger { color: #e11d2e; }
.user-dropdown a.danger:hover, .user-dropdown a.danger:focus-visible { background: #fef2f2; color: #b91c1c; }

/* ---------- Sidebar extra ---------- */
.sidebar .logo small { display: block; font-size: 11px; font-weight: 400; font-style: normal;
  letter-spacing: .5px; color: #8b93a3; }
.moto-watermark { margin-top: auto; padding: 18px 6px 4px; opacity: .16;
  filter: grayscale(1); }
.moto-watermark img { width: 100%; display: block; }

/* ---------- Ficha do cliente ---------- */
.client-head { display: flex; align-items: center; gap: 18px; padding: 20px 22px; flex-wrap: wrap; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; background: #eef0f4; color: #9aa1ad;
  display: flex; align-items: center; justify-content: center; flex: none; }
.avatar-lg .ic { width: 34px; height: 34px; }
.chead-info { flex: 1; min-width: 200px; }
.kicker { color: var(--red); font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px; }
.chead-info h2 { font-size: 26px; margin: 2px 0; display: flex; align-items: center; gap: 10px; }
.chead-info small { color: var(--muted); font-size: 13px; }
.chead-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-red-sm { display: inline-flex; align-items: center; gap: 8px; background: var(--red);
  color: #fff; border-radius: 10px; padding: 11px 18px; font-weight: 700; font-size: 14px;
  text-decoration: none; border: none; cursor: pointer; }
.btn-red-sm:hover { filter: brightness(1.08); }
.btn-ghost.danger { color: #b91c1c; }
.btn-ghost.danger:hover { border-color: #b91c1c; color: #b91c1c; }
.btn-outline-red { display: inline-flex; align-items: center; gap: 6px; color: var(--red);
  border: 1.5px solid #f3b3b9; background: #fff; border-radius: 9px; padding: 7px 13px;
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-outline-red:hover { background: #fef2f2; border-color: var(--red); }
.panel-title { display: flex; align-items: center; gap: 10px; padding: 15px 18px;
  border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 800; }
.panel-title .ic { color: var(--red); }
.panel-title .btn-outline-red { margin-left: auto; }
.data-wrap { padding: 6px 18px 14px; }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.data-row { display: grid; grid-template-columns: 22px 150px 1fr; align-items: center; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid #f3f4f6; font-size: 13.5px; }
.data-row .ic { color: #9aa1ad; }
.data-row span { color: var(--muted); }
.data-row strong { font-weight: 600; }
.profile-card { background: #fafbfc; border: 1px solid #eef0f3; border-radius: 14px;
  padding: 22px 16px; text-align: center; align-self: start; }
.avatar-xl { width: 76px; height: 76px; border-radius: 50%; background: #fbdfe2; color: var(--red);
  font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; }
.profile-card b { display: block; font-size: 16px; }
.profile-card small { color: var(--muted); font-size: 12.5px; }
.quote { margin-top: 14px; background: #fef2f2; border-radius: 10px; padding: 12px;
  font-size: 12.5px; color: #7c2d34; line-height: 1.5; }
.quote span { color: var(--red); font-size: 20px; font-weight: 900; display: block; line-height: 1; }
.grid-2 { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; font-size: 13.5px; }
.empty .ic { width: 30px; height: 30px; display: block; margin: 0 auto 8px; color: #c3c9d2; }
.badge-tint { padding: 3px 12px; border-radius: 7px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 13%, #fff);
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); }
.linklike { border: none; background: none; color: var(--red); cursor: pointer; font-size: 12.5px; font-weight: 600; }

@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .hero { display: none; }
  .login-side { min-height: 100svh; padding: 20px 14px; }
  .login-card { max-width: 480px; border-radius: 14px; padding: 24px 18px 26px; }
  .card-logo { width: 116px; }
  .login-card h1 { font-size: 26px; line-height: 1.1; }
  .login-card .sub { font-size: 13px; margin-bottom: 18px; }
  .field { margin-bottom: 12px; }
  .field input { padding: 13px 42px 13px 46px; }
  .row { flex-wrap: wrap; gap: 10px; }
  .row .link { margin-left: auto; }
  .btn-red { padding: 14px; font-size: 15px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar .sep { display: none; }
  .moto-watermark { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .data-wrap { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: 1fr; }
  .globalsearch { max-width: none; }
  .navbar.topbar-new { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .topbar-new .crumbs { min-width: 0; flex: 1; }
  .topbar-new .globalsearch { order: 3; flex: 1 0 100%; width: 100%; min-width: 0; }
  .topbar-new .topuser { margin-left: auto; gap: 6px; }
  .topbar-new .uinfo { display: none; }
  .toolbar { padding: 16px 14px 0; }
  .toolbar .search { width: 100%; min-width: 0; flex-wrap: wrap; }
  .toolbar .search form { min-width: 0; flex: 1 1 100%; }
  .toolbar .search form input { min-width: 0; flex: 1; width: 100%; }
  .toolbar .search > input { min-width: 0; width: 100%; flex: 1 1 100%; }
  .toolbar .actions { width: 100%; }
}

@media (max-width: 1100px) {
  .client-form-layout { grid-template-columns: minmax(0, 1fr) 240px; }
}

@media (max-width: 900px) {
  .client-form-page { padding: 14px 14px 24px; }
  .client-form-layout { grid-template-columns: minmax(0, 1fr); }
  .client-form-aside { position: relative; order: -1; }
  .client-form-grid { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .client-form-header { padding: 20px 18px 17px; }
  .os-page { padding: 16px 14px 24px; }
  .os-page-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .os-page-head h1 { font-size: 24px; }
  .os-head-actions { width: 100%; }
  .os-head-actions .btn, .os-head-actions .btn-ghost { flex: 1; justify-content: center; }
  .os-workspace { grid-template-columns: 1fr; }
  .os-module-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 8px; }
  .os-module-nav-title { grid-column: 1 / -1; padding: 3px 7px 5px; }
  .os-module-nav-item { align-items: flex-start; flex-wrap: wrap; padding: 10px 8px; font-size: 11.5px; }
  .os-module-nav-item span { flex-basis: calc(100% - 25px); }
  .os-module-nav-item small { margin-left: 25px; }
  .os-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .os-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .os-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .os-search-field { grid-column: 1 / -1; }
  .os-filter-actions { grid-column: 1 / -1; justify-content: stretch; }
  .os-filter-actions .btn, .os-filter-actions .btn-ghost { flex: 1; justify-content: center; }
  .os-table-view { display: none; }
  .os-cards-view { display: grid; gap: 10px; padding: 12px; }
  .os-mobile-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
  .os-mobile-card-top, .os-mobile-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .os-mobile-card h3 { margin: 12px 0 3px; font-size: 15px; }
  .os-mobile-card p { color: var(--muted); font-size: 12px; }
  .os-mobile-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; padding: 11px 0; border-top: 1px solid #f1f2f4; border-bottom: 1px solid #f1f2f4; color: var(--ink); font-size: 12px; }
  .os-mobile-card-grid span { display: grid; gap: 3px; }
  .os-mobile-card-grid small { color: var(--muted); font-size: 10.5px; }
  .os-mobile-card-actions .btn, .os-mobile-card-actions .btn-ghost { flex: 1; justify-content: center; padding: 9px 10px; font-size: 12px; }
  .os-pagination { padding: 12px; }
  .os-form-page, .os-detail-page { padding: 16px 14px 24px; }
  .os-form-heading, .os-detail-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .os-form-heading h1, .os-detail-head h1 { font-size: 24px; }
  .os-form-layout { grid-template-columns: minmax(0, 1fr); }
  .os-form-aside { position: relative; order: -1; }
  .os-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .os-detail-head .os-head-actions { width: 100%; }
  .os-detail-head .os-head-actions .btn-ghost { flex: 1; justify-content: center; }
  .os-action-grid { grid-template-columns: minmax(0, 1fr); }
  .os-detail-bottom-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .client-form-header { align-items: flex-start; }
  .client-form-icon { width: 40px; height: 40px; border-radius: 11px; }
  .client-form-header h3 { font-size: 19px; }
  .client-form-header p { font-size: 12px; }
  .client-form-aside { padding: 18px; }
  .client-aside-list { margin: 18px 0; gap: 12px; }
  .fone-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px 32px !important; }
  .end-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .end-row input[name="end_logradouro"], .end-row input[name="end_numero"], .end-row input[name="end_cep"],
  .end-row input[name="end_complemento"], .end-row input[name="end_bairro"], .end-row input[name="end_cidade"],
  .end-row input[name="end_uf"] { grid-column: auto; }
  .end-row > .check, .end-row > span { grid-column: 1 / -1; justify-self: start; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn, .form-actions .btn-ghost { width: 100%; justify-content: center; }
  .os-form-grid { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .os-detail-grid, .os-detail-text-grid { grid-template-columns: minmax(0, 1fr); }
  .os-detail-head { padding: 20px 18px; }
  .os-action-form, .os-edit-form { padding: 14px; }
  .os-action-fields, .os-edit-fields { grid-template-columns: minmax(0, 1fr); }
  .os-edit-fields .full { grid-column: auto; }
  .os-action-form .btn, .os-edit-actions .btn { width: 100%; justify-content: center; }
  .os-item-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .os-item-form .wide { grid-column: 1 / -1; }
  .os-item-form .btn { width: 100%; }
  .os-item-edit-form { position: fixed; top: 50%; right: 14px; left: 14px; width: auto; transform: translateY(-50%); grid-template-columns: minmax(0, 1fr); }
  .os-item-edit-form .icon-btn { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
