:root {
    color-scheme: light;
    --bg: #eef7f3;
    --panel: #ffffff;
    --text: #143a2f;
    --muted: #5f7a72;
    --line: rgba(20, 58, 47, 0.12);
    --primary: #117a63;
    --primary-dark: #075442;
    --primary-soft: #dff6ee;
    --accent: #d89a1d;
    --shadow: 0 18px 50px rgba(7, 36, 31, 0.12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(17, 122, 99, 0.2), transparent 34%),
        radial-gradient(circle at top right, rgba(216, 154, 29, 0.14), transparent 30%),
        linear-gradient(180deg, #f8fcfa 0%, var(--bg) 100%);
    color: var(--text);
}

body {
    overscroll-behavior: none;
}

#app {
    margin: 0 auto;
    min-height: 100dvh;
    max-width: 32rem;
    display: flex;
    flex-direction: column;
}

.screen {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 1rem 6.25rem;
}

.screen-login {
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.brand-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.brand-bar-center {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.brand-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.brand-banner-lg {
    max-width: 22rem;
}

.page-header {
    margin-bottom: 1rem;
}

.page-header h1 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary-dark);
}

.page-header p {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    color: var(--muted);
    font-weight: 600;
}

.hero-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: 1.35rem;
    padding: 1.2rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 16px 36px rgba(7, 84, 66, 0.28);
}

.hero-card h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.hero-card p {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    opacity: 0.92;
    font-weight: 600;
}

.dashboard-card {
    margin-bottom: 1rem;
}

.dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dashboard-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.dashboard-title {
    margin: 0.25rem 0 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.status-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.status-stat:active {
    transform: scale(0.98);
}

.status-stat.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(17, 122, 99, 0.12);
}

.status-stat-count {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

.status-stat-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.status-stat.is-pending .status-stat-count { color: #b45309; }
.status-stat.is-approved .status-stat-count { color: #117a63; }
.status-stat.is-running .status-stat-count { color: #1d4ed8; }
.status-stat.is-done .status-stat-count { color: #374151; }
.status-stat.is-cancelled .status-stat-count { color: #b42318; }
.status-stat.is-delivered .status-stat-count { color: #6d28d9; }

.status-stat-money .status-stat-count {
    font-size: 1.05rem;
    line-height: 1.2;
}

.status-stat-meta {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
}

.status-stat.is-overdue .status-stat-count { color: #b91c1c; }
.status-stat.is-due-today .status-stat-count { color: #b45309; }
.status-stat.is-upcoming .status-stat-count { color: #1d4ed8; }

.badge.is-overdue {
    background: #fee2e2;
    color: #b91c1c;
}

.badge.is-due-today {
    background: #fef3c7;
    color: #b45309;
}

.badge.is-upcoming {
    background: #dbeafe;
    color: #1d4ed8;
}

.home-info-card {
    margin-bottom: 0.5rem;
}

.home-info-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
}

.home-info-text {
    margin: 0.45rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--muted);
    font-weight: 600;
}

.home-orcamentos-section {
    margin-top: 0.25rem;
}

.home-orcamentos-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.home-orcamentos-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.home-orcamentos-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.is-hidden {
    display: none !important;
}

.card,
.list-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-align: left;
}

.menu-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 0.95rem;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.menu-icon.accent {
    background: rgba(216, 154, 29, 0.16);
    color: #9a6410;
}

.field {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    background: #fff;
    color: var(--text);
}

.field:focus {
    outline: 2px solid rgba(17, 122, 99, 0.18);
    border-color: var(--primary);
}

.btn {
    border: 0;
    border-radius: 0.95rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 24px rgba(17, 122, 99, 0.24);
}

.btn-secondary {
    background: #fff;
    color: var(--primary-dark);
    border: 1px solid var(--line);
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
}

.btn-danger {
    background: #fff;
    color: #b42318;
    border: 1px solid rgba(180, 35, 24, 0.25);
}

.list-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.picker-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    background: #fff;
}

.picker-field-empty .picker-field-text {
    color: var(--muted);
}

.picker-field-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.picker-field-chevron {
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1;
}

.picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(7, 36, 31, 0.45);
}

.picker-overlay-center {
    align-items: center;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1.25rem, env(safe-area-inset-bottom));
}

.picker-panel {
    width: 100%;
    max-width: 32rem;
    max-height: 85dvh;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cliente-detalhe-panel {
    max-height: min(75dvh, calc(100dvh - 2.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    border-radius: 1.25rem;
    margin: 0;
}

.picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.5rem;
}

.picker-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.picker-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}

.picker-search {
    padding: 0 1rem 0.75rem;
}

.picker-list {
    overflow-y: auto;
    padding: 0 0.5rem 1rem;
}

.picker-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.95rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.picker-option:last-child {
    border-bottom: 0;
}

.picker-option-label {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.35;
}

.picker-option-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.picker-option-thumb,
.list-item-thumb {
    width: 3rem;
    height: 3rem;
    border-radius: 0.55rem;
    object-fit: cover;
    flex-shrink: 0;
    background: #eef2f0;
    border: 1px solid rgba(20, 58, 47, 0.08);
}

.list-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.list-item-image-wrap {
    margin-top: 0.85rem;
}

.list-item-image {
    display: block;
    width: 100%;
    max-height: 14rem;
    object-fit: contain;
    object-position: center;
    border-radius: 0.7rem;
    background: #f3f4f6;
    border: 1px solid rgba(20, 58, 47, 0.08);
}

.servico-galeria-row {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.servico-galeria-principal {
    flex: 1 1 58%;
    min-width: 0;
}

.servico-galeria-principal .list-item-image-wrap {
    margin-top: 0;
    height: 100%;
}

.servico-galeria-principal .list-item-image {
    width: 100%;
    height: 100%;
    min-height: 8.5rem;
    max-height: 12rem;
}

.servico-galeria-thumbs {
    flex: 1 1 42%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    align-content: start;
    max-height: 12rem;
    overflow-y: auto;
}

.servico-galeria-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.55rem;
    background: #f3f4f6;
    border: 1px solid rgba(20, 58, 47, 0.08);
}

.picker-option-thumb-empty,
.list-item-thumb-empty {
    display: inline-block;
}

.picker-option-check {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid rgba(20, 58, 47, 0.22);
    border-radius: 999px;
    flex-shrink: 0;
}

.picker-option.selected .picker-option-check {
    border-color: var(--accent);
    background: radial-gradient(circle at center, var(--accent) 0 42%, transparent 44%);
}

.picker-empty {
    margin: 0;
    padding: 1.5rem 0.75rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.fotos-panel {
    max-height: min(88vh, 720px);
}

.fotos-subtitulo {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.fotos-body {
    overflow-y: auto;
    padding: 0 1rem 1rem;
}

.orcamento-descricao-trigger {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.orcamento-descricao-trigger:active {
    opacity: 0.75;
}

.orcamento-itens-panel {
    max-height: 88dvh;
}

.orcamento-itens-cliente {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.orcamento-itens-body {
    overflow-y: auto;
    padding: 0 1rem 1rem;
}

.orcamento-itens-skeleton {
    height: 120px;
}

.orcamento-itens-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.orcamento-item-row {
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--bg);
}

.orcamento-item-row-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.orcamento-item-num {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--line);
    font-size: 0.75rem;
    font-weight: 700;
}

.orcamento-item-info {
    min-width: 0;
}

.orcamento-item-nome {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.orcamento-item-nome-trigger {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary, #0d6b5c);
    font: inherit;
    font-weight: 600;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.orcamento-item-nome-trigger:active {
    opacity: 0.75;
}

.picker-overlay-top {
    z-index: 70;
}

.orcamento-item-tipo {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.orcamento-item-row-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
}

.orcamento-item-qty {
    color: var(--muted);
}

.orcamento-item-subtotal {
    font-weight: 700;
}

.orcamento-itens-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--line);
    font-size: 1rem;
}

.servico-nome-trigger {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary, #0d6b5c);
    font: inherit;
    font-weight: 600;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.servico-nome-trigger:active {
    opacity: 0.75;
}

.cliente-detalhe-body {
    display: grid;
    gap: 0.75rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

.cliente-detalhe-linha {
    display: grid;
    gap: 0.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.cliente-detalhe-linha:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.cliente-detalhe-rotulo {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cliente-detalhe-valor {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.consulta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.orcamento-itens-body > .list-item-image-wrap {
    margin: 0 0 1rem;
}

.consulta-chip {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--bg);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.consulta-chip[disabled] {
    cursor: default;
    opacity: 0.7;
}

.consulta-chip strong {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
}

.consulta-chip span {
    font-size: 0.95rem;
    font-weight: 700;
}

.consulta-chip.is-active {
    border-color: var(--primary, #0d6b5c);
}

.consulta-chip.is-highlight {
    grid-column: span 2;
    border-color: var(--primary, #0d6b5c);
    background: rgba(13, 107, 92, 0.08);
}

.consulta-detalhe {
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--bg);
    font-size: 0.82rem;
}

.consulta-detalhe ul {
    margin: 0.45rem 0 0;
    padding-left: 1.05rem;
    color: var(--muted);
}

.consulta-detalhe li + li {
    margin-top: 0.25rem;
}

.consulta-dica {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.consulta-itens {
    margin-top: 1rem;
}

.consulta-itens h4 {
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
}

.consulta-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--bg);
}

.consulta-item + .consulta-item {
    margin-top: 0.5rem;
}

.consulta-item-nome {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.consulta-item-meta {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: var(--muted);
}

.consulta-item-valor {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.9rem;
}

.consulta-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--line);
    font-size: 1rem;
}

.fotos-skeleton {
    height: 160px;
    margin: 0 1rem 1rem;
}

.fotos-grupo + .fotos-grupo {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.fotos-grupo-titulo {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.fotos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.fotos-grid-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 16rem;
    margin: 0 auto;
}

.fotos-grid-orcamento {
    grid-template-columns: minmax(0, 1fr);
}

.foto-card-orcamento {
    max-width: 100%;
}

.foto-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 11rem;
    max-height: 22rem;
    padding: 0.75rem;
    background: #f3f4f6;
}

.foto-card-img-contain {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 20rem;
    height: auto;
    aspect-ratio: unset;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.foto-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    overflow: hidden;
}

.foto-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f3f4f6;
}

.foto-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    background: #f3f4f6;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.foto-card-nome {
    margin: 0;
    padding: 0.65rem 0.7rem 0.75rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text);
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.grid {
    display: grid;
    gap: 1rem;
}

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

.flex {
    display: flex;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.w-full {
    width: 100%;
}

.shrink-0 {
    flex-shrink: 0;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-brand {
    color: var(--primary);
}

.text-muted {
    color: var(--muted);
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.alert {
    border-radius: 0.95rem;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.alert-error {
    background: #fff1f0;
    border: 1px solid #fecaca;
    color: #b42318;
}

.alert-success {
    background: #e8fff5;
    border: 1px solid rgba(17, 122, 99, 0.18);
    color: var(--primary-dark);
}

.skeleton {
    height: 5rem;
    border-radius: 0.95rem;
    background: linear-gradient(90deg, #dce9e4 25%, #f4faf8 50%, #dce9e4 75%);
    background-size: 200% 100%;
    animation: pulse 1.4s ease infinite;
}

@keyframes pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 32rem;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
    padding: 0.45rem 0.35rem calc(0.45rem + env(safe-area-inset-bottom));
    z-index: 20;
    box-shadow: 0 -8px 30px rgba(7, 36, 31, 0.08);
}

.bottom-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.2rem;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    border: 0;
    background: transparent;
    border-radius: 0.85rem;
    padding: 0.4rem 0.2rem;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-btn .nav-icon {
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    place-items: center;
    border-radius: 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    background: transparent;
    color: inherit;
}

.nav-btn.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.nav-btn.active .nav-icon {
    background: var(--primary);
    color: #fff;
}

.label {
    display: block;
}

.gap-4 {
    gap: 1rem;
}

button.card,
button.menu-card {
    width: 100%;
    cursor: pointer;
}

.min-h-24 {
    min-height: 6rem;
}

.login-card {
    box-shadow: var(--shadow);
}

.calc-summary {
    background: var(--primary-soft);
    border-color: rgba(17, 122, 99, 0.18);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.92rem;
}

.calc-total {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(17, 122, 99, 0.18);
    font-size: 1rem;
    color: var(--primary-dark);
}

.badge.is-pending {
    background: rgba(234, 179, 8, 0.18);
    color: #92400e;
}

.badge.is-approved {
    background: rgba(17, 122, 99, 0.14);
    color: #075442;
}

.badge.is-running {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.badge.is-done {
    background: rgba(107, 114, 128, 0.16);
    color: #374151;
}

.badge.is-delivered {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}

.badge.is-cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: #b42318;
}

.badge.status-badge-pedido {
    margin-top: 0.25rem;
    font-size: 0.7rem;
}

.status-cell-trigger {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    cursor: pointer;
    user-select: none;
}

.status-cell.is-locked {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    opacity: 0.92;
}

.status-cell.is-locked .status-cell-hint {
    color: #6d28d9;
}

.btn.is-disabled,
.btn:disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

.status-cell-hint {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.status-badge-trigger:active {
    filter: brightness(0.95);
}

.field-disabled {
    opacity: 0.65;
}

.field-hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-modal-panel {
    max-width: 28rem;
}

.status-modal-desc {
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.status-options {
    display: grid;
    gap: 0.5rem;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgba(17, 122, 99, 0.14);
    border-radius: 0.75rem;
    cursor: pointer;
    padding: 0.65rem 0.75rem;
}

.status-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.status-option input {
    width: auto;
    min-height: auto;
    margin: 0;
}

.status-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-modal-actions-right {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.btn-ordem-servico {
    border-color: rgba(37, 99, 235, 0.22);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.btn-ordem-servico.is-disabled,
.btn-ordem-servico:disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

.consumo-3d-card {
    border-color: rgba(37, 99, 235, 0.18);
    background: rgba(37, 99, 235, 0.04);
}

.field-error {
    color: #b42318;
}
