.content-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--white); box-shadow: 0 1px 1px rgb(0 0 0 / 1%); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.card-heading h2 { margin-top: .1rem; }
.card-heading > span { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 8px; background: #eef3f5; font-weight: 800; }
.data-table { margin: 0; }
.data-table thead th { color: #667a82; border-bottom-color: var(--line); background: #f8fafb; font-size: .66rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.data-table td { border-bottom-color: #eaf0f2; vertical-align: middle; }
.data-table td > small, .data-table td > strong { display: block; }
.data-table td > small { color: var(--muted); font-size: .7rem; margin-top: .15rem; }
.service-cell { max-width: 360px; }
.row-link { font-weight: 750; }
.status { display: inline-flex; align-items: center; max-width: 230px; border-radius: 99px; padding: .32rem .62rem; background: #eef3f5; color: #47616b; font-size: .68rem; font-weight: 800; line-height: 1.1; }
.status-draft { color: #5f6770; background: #eceff1; }
.status-issued, .status-acknowledged { color: #1d6587; background: #e3f2fa; }
.status-in_execution, .status-operational_filling { color: #a25b00; background: #fff0d9; }
.status-waiting_operational_signatures, .status-waiting_planner_signature, .status-waiting_fiscal_signatures { color: #7655a2; background: #eee8f8; }
.status-submitted_to_planning, .status-waiting_fiscal_review { color: #176c75; background: #e0f3f1; }
.status-closed { color: #207152; background: #dff3e9; }
.status-returned_to_operation, .status-returned_by_fiscal, .status-canceled { color: #a23d3d; background: #fae4e4; }
.status-reprogrammed, .status-reopened { color: #8f6300; background: #fff2c9; }
.tag-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { display: inline-flex; border-radius: 6px; padding: .18rem .4rem; color: #335966; background: #e8f0f2; font-size: .62rem; font-weight: 800; }
.validity { display: inline-flex; border-radius: 99px; padding: .25rem .5rem; font-size: .66rem; font-style: normal; font-weight: 800; }
.validity.valid { color: #1f7654; background: #dff3e9; }
.validity.invalid { color: #a23d3d; background: #fae4e4; }
.empty-state { display: grid; place-items: center; gap: .25rem; min-height: 140px; color: var(--muted); }
.empty-state b { color: var(--ink); }
.empty-inline { color: var(--muted); padding: .8rem 0; }
.filter-card { padding: .85rem; }
.filter-row { display: flex; gap: .65rem; }
.filter-search { flex: 1; }
.filter-row .form-select { max-width: 280px; }
.user-cell, .profile-card { display: flex; align-items: center; gap: .8rem; }
.profile-card { max-width: 760px; padding: 2rem; }
.profile-card h3, .profile-card p { margin-bottom: .25rem; }
.narrow-card { max-width: 680px; }

/* ===== Autenticação — login (painel dividido) e páginas simples (recuperação/redefinição) ===== */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--white);
}

/* Painel de marca — visível apenas em telas largas (ver responsive.css) */
.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 3.5vh, 2rem);
  justify-content: center;
  overflow: hidden;
  padding: clamp(1.75rem, 5vh, 3.5rem) clamp(2.25rem, 4.5vw, 4.5rem);
  color: white;
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, #2c4a52 100%);
}
.auth-brand-mark { position: relative; z-index: 2; color: #9fb9bf; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.auth-brand-copy { position: relative; z-index: 2; }
.auth-brand-panel .eyebrow { color: #ffb14c; }
.auth-brand-panel h1 { max-width: 30rem; color: white; font-size: clamp(1.5rem, 1.1vw + 1.35rem, 2.5rem); line-height: 1.16; margin: .6rem 0 .8rem; }
.auth-brand-panel .lede { max-width: 27rem; color: #bad0d6; font-size: .95rem; line-height: 1.55; margin: 0; }
.auth-feature-list { position: relative; z-index: 2; display: grid; }
.auth-feature { display: flex; align-items: center; gap: 1rem; border-top: 1px solid rgb(255 255 255 / 13%); padding: clamp(.5rem, 1.6vh, .8rem) 0; }
.auth-feature b { color: var(--orange); font-size: .72rem; }
.auth-feature span { color: #e2eef0; font-size: .88rem; }

/* Fundo decorativo animado — grid técnico + anéis concêntricos + partículas discretas */
.auth-bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.auth-bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 28% 32%, black, transparent 72%);
  mask-image: radial-gradient(circle at 28% 32%, black, transparent 72%);
}
.auth-bg-ring { position: absolute; border-radius: 50%; border-style: solid; animation: authRingPulse 14s ease-in-out infinite; }
.auth-bg-ring--1 { right: -16%; bottom: -22%; width: 480px; height: 480px; border-width: 70px; border-color: rgb(242 144 30 / 14%); animation-duration: 17s; }
.auth-bg-ring--2 { right: -4%; bottom: -6%; width: 300px; height: 300px; border-width: 1px; border-color: rgb(255 255 255 / 16%); animation-duration: 13s; animation-delay: -4s; }
.auth-bg-ring--3 { left: -9%; top: -12%; width: 240px; height: 240px; border-width: 1px; border-color: rgb(139 197 202 / 20%); animation-duration: 19s; animation-delay: -2s; }
@keyframes authRingPulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.05); opacity: 1; } }
.auth-bg-particle {
  position: absolute;
  top: var(--y); left: var(--x);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgb(255 177 76 / .85);
  box-shadow: 0 0 10px 2px rgb(255 177 76 / .3);
  animation: authFloat 8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes authFloat { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-14px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .auth-bg-ring, .auth-bg-particle { animation: none; }
}

/* Coluna do formulário */
.auth-card-wrap, .auth-simple {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.1rem, 4vh, 2.25rem);
  background: var(--canvas);
}
.auth-card { width: min(440px, 100%); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.5rem, 4vh, 2.2rem) clamp(1.35rem, 4vw, 2.2rem); background: white; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 1.5rem; margin: 0 0 .3rem; }
.auth-card > p.text-muted { margin: 0 0 1.35rem; }
.auth-card-header { margin-bottom: 1.3rem; }
.auth-lockup { display: flex; align-items: center; gap: .65rem; }
.auth-lockup-primary { color: var(--ink); font-size: .98rem; font-weight: 600; }
.auth-lockup-primary b { font-weight: 800; }
.auth-lockup-divider { width: 1px; height: 26px; background: var(--line); }
.auth-client-tag { display: flex; flex-direction: column; line-height: 1.2; }
.auth-client-tag small { color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.auth-client-tag strong { color: var(--hydro); font-size: .92rem; font-weight: 800; }
.auth-system-name { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .01em; margin: .85rem 0 0; }

.auth-field { margin-bottom: .8rem; }
.auth-input-wrap { position: relative; }
.auth-input-wrap .form-control { min-height: 46px; padding-left: 2.6rem; font-size: 1rem; }
.auth-input-wrap--password .form-control { padding-right: 2.75rem; }
.auth-input-icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); display: grid; color: var(--muted); pointer-events: none; }
.auth-toggle-visibility { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.auth-toggle-visibility:hover { color: var(--ink); background: #eef2f3; }
.auth-toggle-visibility:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: .1rem 0 1rem; font-size: .82rem; }
.security-note { color: #829198; font-size: .7rem; text-align: center; margin: .85rem 0 0; }
.auth-page-footer { text-align: center; color: var(--muted); font-size: .72rem; margin: 1.25rem 0 0; }
.dev-box, .notice-box { border: 1px solid #ead7aa; border-radius: 10px; padding: .9rem; margin-top: 1rem; background: #fff9e9; font-size: .8rem; }

@media (max-height: 560px) {
  .auth-card { padding: 1.1rem 1.35rem; }
  .auth-card-header { margin-bottom: .8rem; }
  .auth-field { margin-bottom: .6rem; }
  .auth-row { margin: .1rem 0 .85rem; }
}

.wizard-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.wizard-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: .4rem; }
.wizard-step { display: flex; align-items: center; gap: .7rem; border: 0; border-radius: 10px; padding: .65rem; color: var(--muted); background: transparent; text-align: left; }
.wizard-step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: .75rem; }
.wizard-step.active { color: var(--ink); background: white; box-shadow: 0 6px 20px rgb(20 55 68 / 7%); }
.wizard-step.active b { color: #203740; border-color: var(--orange); background: var(--orange); }
.wizard-form { min-height: 610px; padding: clamp(1.2rem, 3vw, 2rem); }
.form-step { display: none; }
.form-step.active { display: block; animation: enter .22s ease; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.step-heading { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1.4rem; }
.step-heading > span { color: var(--orange-dark); font-size: 1.8rem; font-weight: 850; }
.step-heading p { margin: .2rem 0 0; }
.multi-select { min-height: 130px; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.check-card { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: 10px; padding: .9rem; cursor: pointer; }
.check-card input { width: 1.15rem; height: 1.15rem; }
.check-card b, .check-card small { display: block; }
.check-card small { color: var(--muted); font-weight: 400; }
.wizard-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2rem; }
.autosave-status { color: var(--muted); font-size: .72rem; }
.review-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.review-panel > div { border: 1px solid var(--line); border-radius: 10px; padding: .9rem; }
.review-panel span, .review-panel b { display: block; }
.review-panel span { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.review-panel b { margin-top: .25rem; }
.draft-number, .revision-badge { border: 1px solid var(--line); border-radius: 99px; padding: .45rem .75rem; background: white; font-weight: 800; }

.order-hero { display: flex; justify-content: space-between; gap: 2rem; border-radius: 20px; padding: 1.6rem; color: white; background: linear-gradient(125deg, #102f3b 0%, #1b5361 100%); box-shadow: var(--shadow); }
.order-hero h1 { color: white; margin: 0; }
.order-hero p { max-width: 850px; color: #bed1d6; margin: .5rem 0 .9rem; }
.order-hero .back-link { color: #a9c2c8; }
.order-title-row, .order-actions, .order-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.order-meta span { color: #91adb4; font-size: .7rem; }
.order-meta b { color: white; margin-left: .25rem; }
.order-actions { justify-content: flex-end; align-content: flex-start; }
.order-actions .btn-outline-secondary { color: #d8e5e8; border-color: #78939b; }
.workflow-strip { display: grid; grid-template-columns: repeat(6, 1fr); padding: 1.3rem 1rem; margin: 1rem 0; border: 1px solid var(--line); border-radius: 14px; background: white; }
.workflow-node { position: relative; display: grid; justify-items: center; gap: .35rem; color: #98a7ac; font-size: .68rem; text-align: center; }
.workflow-node::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: #e5ecee; z-index: 0; }
.workflow-node:first-child::before { display: none; }
.workflow-node b { position: relative; z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; border: 2px solid #d8e2e5; border-radius: 50%; background: white; }
.workflow-node.done b, .workflow-node.active b { color: #193640; border-color: var(--orange); background: var(--orange); }
.workflow-node.active { color: var(--ink); font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
.detail-layout-full { grid-template-columns: minmax(0, 1fr); }
.detail-main { display: grid; gap: 1rem; }
.detail-side { position: sticky; top: 82px; display: grid; gap: 1rem; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.detail-grid > div { min-width: 0; }
.detail-grid span, .detail-grid b, .detail-grid small { display: block; }
.detail-grid span { color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.detail-grid b { overflow-wrap: anywhere; margin-top: .25rem; }
.detail-grid small { color: var(--muted); margin-top: .15rem; }
.detail-grid .span-2 { grid-column: span 2; }
.mini-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.mini-metrics div { border-right: 1px solid var(--line); }
.mini-metrics div:last-child { border: 0; }
.mini-metrics strong, .mini-metrics span { display: block; text-align: center; }
.mini-metrics strong { font-size: 1.6rem; }
.mini-metrics span { color: var(--muted); font-size: .67rem; }
.bulk-selection-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bulk-selection-bar .selected-counter { margin-left: auto; color: var(--muted); font-size: .78rem; }
.batch-eligibility { max-width: 230px; white-space: normal !important; }
.action-card { border-radius: var(--radius); padding: 1.25rem; background: white; border-top: 4px solid var(--orange); box-shadow: var(--shadow); }
.action-card h3 { font-size: 1.25rem; margin: .4rem 0 1rem; }
.floating-action-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1030;
    width: min(340px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
}
.floating-action-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; cursor: move; touch-action: none; }
.floating-action-header:focus-visible { outline: 3px solid rgb(245 155 35 / 45%); outline-offset: 4px; }
.floating-action-controls { display: flex; gap: .35rem; }
.floating-action-controls button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #f7f9fa;
    font-size: 1.15rem;
    font-weight: 800;
}
.floating-action-content { display: grid; gap: .65rem; }
.floating-action-panel.is-minimized { width: 260px; padding-bottom: .4rem; }
.floating-action-panel.is-minimized h3 { margin-bottom: 0; }
.floating-action-reopen {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1030;
    border: 0;
    border-radius: 99px;
    padding: .7rem 1rem;
    color: #172f38;
    background: var(--orange);
    box-shadow: var(--shadow);
    font-weight: 800;
}
.closed-seal { display: grid; place-items: center; border-radius: 12px; padding: 1rem; color: #1f7654; background: #e3f5ec; }
.closed-seal b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #c9ecdc; font-size: 1.4rem; }
.closed-seal span, .closed-seal small { display: block; }
.closed-seal span { font-weight: 800; margin-top: .4rem; }
.review-card textarea { min-height: 100px; margin: .8rem 0; }
.secondary-actions textarea { min-height: 75px; }
.signature-list { display: grid; gap: .55rem; }
.signature-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: 10px; padding: .65rem; }
.signature-type { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--ink); background: #e5f0f2; font-size: .65rem; font-weight: 850; }
.signature-row b, .signature-row small { display: block; }
.signature-row small { color: var(--muted); font-size: .67rem; }
.attachment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.attachment-card { display: flex; align-items: center; gap: .65rem; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: .7rem; color: var(--ink); }
.attachment-card > span { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; color: #4e6872; background: #edf3f5; font-size: .61rem; font-weight: 850; }
.attachment-card b, .attachment-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-card small { color: var(--muted); font-size: .66rem; }

.execution-tabs { gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; flex-wrap: nowrap; }
.execution-tabs button { display: flex; align-items: center; gap: .4rem; white-space: nowrap; border: 0; border-bottom: 3px solid transparent; padding: .8rem 1rem; color: var(--muted); background: transparent; font-weight: 750; }
.execution-tabs button.active { color: var(--ink); border-bottom-color: var(--orange); }
.execution-tabs button b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 99px; background: #e7eef0; font-size: .65rem; }
.execution-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 1rem; align-items: start; }
.execution-checklist-layout { display: flex; flex-direction: column; gap: 1rem; }
.execution-checklist-layout > .execution-checklist { order: -1; }
.execution-checklist .compact-form { position: static; }
.execution-checklist .service-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checklist-below-header { width: 100%; }
.compact-form { position: sticky; top: 82px; display: grid; gap: .75rem; }
.compact-form label { display: grid; gap: .3rem; }
.form-row-2, .form-row-3 { display: grid; gap: .5rem; }
.form-row-2 { grid-template-columns: repeat(2, 1fr); }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.executor-cards, .rdm-list { display: grid; gap: .55rem; }
.executor-cards article, .rdm-list article { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: 10px; padding: .75rem; }
.executor-cards article > div, .rdm-list article > div:nth-child(2) { min-width: 0; flex: 1; }
.executor-cards b, .executor-cards small { display: block; }
.executor-cards small { color: var(--muted); }
.executor-cards em { color: #1e6f52; border-radius: 99px; padding: .2rem .45rem; background: #e2f3ea; font-size: .63rem; font-style: normal; font-weight: 800; }
.rdm-time { min-width: 88px; }
.rdm-time b, .rdm-time span { display: block; }
.rdm-time span { color: var(--muted); font-size: .7rem; }
.rdm-list p { margin: .15rem 0 0; font-size: .75rem; }
.progress-pill { border-radius: 99px; padding: .3rem .48rem; color: #1d6b73; background: #e1f1f2; font-size: .68rem; font-weight: 800; }
.upload-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.upload-preview-card { display: grid; gap: .35rem; }
.upload-preview img { display: block; width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }
.evidence-photo { width: 100%; height: 180px; object-fit: cover; border-radius: 9px; }
.signature-proof { display: block; max-width: 220px; max-height: 90px; margin-top: .45rem; border: 1px solid var(--line); border-radius: 7px; background: white; }
.observation-form { display: grid; grid-template-columns: 180px 1fr auto; gap: .6rem; align-items: start; }
.observation-row { display: grid; grid-template-columns: 100px 1fr auto; gap: .8rem; border-top: 1px solid var(--line); padding: .7rem 0; font-size: .78rem; }
.observation-row small { color: var(--muted); }

.signature-layout { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(480px, 1.25fr); gap: 1rem; align-items: start; }
.signature-layout-stacked { grid-template-columns: minmax(0, 1fr); }
.signature-layout-stacked .signature-summary { position: static; }
.signature-summary { position: sticky; top: 82px; }
.in-person-fields { display: grid; gap: .7rem; border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
.in-person-fields label { display: grid; gap: .3rem; }
.consent-box { border: 1px solid #cadde1; border-radius: 12px; padding: 1rem; background: #f3f8f9; }
.consent-box p { color: var(--ink-2); font-size: .8rem; }
.canvas-wrap { position: relative; border: 2px dashed #afc1c7; border-radius: 12px; margin: 1rem 0; background: #fbfcfc; overflow: hidden; }
.canvas-wrap canvas { display: block; width: 100%; height: 260px; touch-action: none; cursor: crosshair; }
.canvas-wrap > span { position: absolute; left: 0; right: 0; bottom: .5rem; color: #a1adb1; font-size: .68rem; text-align: center; pointer-events: none; }
.signature-buttons { display: flex; justify-content: flex-end; gap: .7rem; }

.history-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.timeline { display: grid; gap: 0; }
.timeline article { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: .6rem; padding-bottom: 1.2rem; }
.timeline article::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: -3px; width: 2px; background: var(--line); }
.timeline article:last-child::before { display: none; }
.timeline-dot { position: relative; z-index: 1; width: 16px; height: 16px; border: 4px solid #ffdea9; border-radius: 50%; background: var(--orange-dark); }
.timeline p { margin: .15rem 0; }
.timeline small, .revision-row small { color: var(--muted); }
.revision-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: .6rem; border-bottom: 1px solid var(--line); padding: .7rem 0; }
.revision-row > span { display: grid; place-items: center; height: 36px; border-radius: 8px; background: #edf3f5; font-weight: 850; }
.revision-row b, .revision-row small { display: block; }
.revision-row em { color: #1e6f52; font-size: .67rem; font-style: normal; }
.notification-list { padding: 0; overflow: hidden; }
.notification-item { display: grid; grid-template-columns: 12px 1fr auto; gap: .75rem; align-items: center; border-bottom: 1px solid var(--line); padding: 1rem; }
.notification-item.unread { background: #f3f8f9; }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; background: #b6c4c8; }
.notification-item.unread .notification-dot { background: var(--orange); }
.notification-item p { margin: .15rem 0; }
.notification-item small { color: var(--muted); }

.catalog-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1rem; align-items: start; }
.sticky-form { top: 82px; }
.catalog-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.catalog-card .card-heading { margin-bottom: .6rem; }
.catalog-tag { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); border-radius: 8px; padding: .38rem .55rem; }
.catalog-tag small { color: var(--muted); }

.verify-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: radial-gradient(circle at top, #1a5966, #0b2934 62%); }
.verify-brand { position: fixed; top: 1.5rem; left: 1.5rem; display: flex; align-items: center; gap: .6rem; color: white; }
.verify-brand b, .verify-brand small { display: block; }
.verify-brand small { color: #9fbbc2; }
.verify-card { width: min(660px, 100%); border-radius: 22px; padding: clamp(1.5rem, 5vw, 3rem); background: white; box-shadow: 0 30px 80px rgb(0 0 0 / 25%); text-align: center; }
.verify-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 1rem; font-size: 2rem; font-weight: 850; }
.verify-icon.valid { color: #1b7652; background: #dff3e9; }
.verify-icon.invalid { color: #a23d3d; background: #fae4e4; }
.verify-card dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 1.5rem 0; text-align: left; }
.verify-card dl div { border: 1px solid var(--line); border-radius: 9px; padding: .7rem; }
.verify-card dt { color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.verify-card dd { margin: .2rem 0 0; font-weight: 750; }
.hash-box { border-radius: 9px; padding: .8rem; background: #f0f5f6; }
.hash-box span, .hash-box code { display: block; }
.hash-box span { color: var(--muted); font-size: .65rem; }
.privacy-note { font-size: .72rem; margin: 1rem 0 0; }
.error-page { min-height: 70vh; display: grid; place-items: center; align-content: center; text-align: center; }
.error-page > b { color: var(--orange); font-size: 5rem; line-height: 1; }
.service-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .55rem;
}

.service-type-option {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .65rem .75rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    background: var(--white);
    cursor: pointer;
}

.service-type-option:has(input:checked) {
    border-color: var(--orange);
    background: rgba(255, 153, 0, .1);
}
.account-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .35rem; }
.account-actions details { position: relative; }
.account-actions summary { list-style: none; }
.account-actions summary::-webkit-details-marker { display: none; }
.account-popover {
    position: absolute;
    right: 0;
    z-index: 20;
    display: grid;
    gap: .55rem;
    width: 300px;
    margin-top: .35rem;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
}

/* ===== Identidade visual corporativa 2026 ===== */
.content-card {
  border-color: rgb(32 38 43 / 9%);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.content-card:hover { border-color: rgb(242 144 30 / 20%); box-shadow: 0 12px 30px rgb(18 25 30 / 8%); }
.card-heading { border-bottom: 1px solid #edf0f2; padding-bottom: .85rem; }
.card-heading .eyebrow { margin-bottom: .18rem; }
.table-responsive { border-radius: 10px; }
.data-table { --bs-table-bg: transparent; }
.data-table thead th { border: 0; padding: .72rem .8rem; color: #626c74; background: #f3f5f6; }
.data-table tbody td { padding: .78rem .8rem; }
.data-table tbody tr { transition: background-color .15s ease; }
.data-table tbody tr:hover { background: #fff9f1; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.row-link { display: inline-flex; align-items: center; min-height: 32px; border-radius: 7px; padding: .25rem .55rem; color: var(--ink); background: var(--orange-light); }
.status { border: 1px solid transparent; letter-spacing: .01em; }
.status-draft { border-color: #dce0e2; }
.status-issued, .status-acknowledged { border-color: #cae3ef; }
.status-in_execution, .status-operational_filling { border-color: #f5d5a4; }
.status-closed, .status-finalized { color: #207152; border-color: #c8e8d8; background: #dff3e9; }
.empty-state, .empty-inline { border-radius: 10px; background: #f8f9fa; }
.filter-card { background: #fff; box-shadow: var(--shadow-soft); }
.form-control:hover, .form-select:hover { border-color: #aeb7bc; }
.form-check-input:checked { border-color: var(--orange-dark); background-color: var(--orange); }
.alert { border: 0; border-left: 4px solid currentColor; box-shadow: var(--shadow); }

/* Login — foto real, logos reais e geometria recriada em HTML/CSS. */
.auth-layout {
  grid-template-columns: minmax(500px, 1.08fr) minmax(500px, .92fr);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.auth-brand-panel {
  justify-content: space-between;
  gap: clamp(1rem, 3vh, 1.8rem);
  padding: clamp(4.6rem, 13vh, 8.2rem) clamp(2.4rem, 5.5vw, 5.75rem) clamp(2rem, 5vh, 3.5rem);
  background: #171d21;
}
.auth-site-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.auth-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(10 16 20 / 18%) 0%, rgb(10 16 20 / 44%) 46%, rgb(10 16 20 / 92%) 100%),
    linear-gradient(90deg, rgb(10 16 20 / 58%), transparent 75%);
}
.auth-bg { z-index: 2; }
.auth-bg::before {
  content: "";
  position: absolute;
  left: -10%;
  top: 16%;
  width: 78%;
  height: 38%;
  border: 2px solid rgb(242 144 30 / 72%);
  border-left: 0;
  border-radius: 0 52% 52% 0;
  transform: rotate(-8deg);
}
.auth-bg-grid { opacity: .55; background-size: 34px 34px; }
.auth-bg-ring--1 { right: -22%; bottom: -30%; border-color: rgb(242 144 30 / 18%); }
.auth-bg-ring--2 { right: 5%; bottom: 3%; border-color: rgb(255 255 255 / 24%); }
.auth-brand-copy, .auth-feature-list { position: relative; z-index: 3; }
.auth-brand-copy { margin: 0; }
.auth-brand-panel .eyebrow { color: #ffad44; font-size: .7rem; }
.auth-brand-panel h1 { max-width: 34rem; font-size: clamp(2.15rem, 4.15vw, 4.9rem); line-height: .98; margin: .75rem 0 1.1rem; text-wrap: balance; }
.auth-brand-panel .lede { max-width: 31rem; color: #e4ebee; font-size: clamp(.88rem, 1.12vw, 1.08rem); }
.auth-feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; border-top: 1px solid rgb(255 255 255 / 18%); padding-top: 1.15rem; }
.auth-feature { align-items: flex-start; gap: .65rem; border: 0; padding: .25rem .75rem .25rem 0; }
.auth-feature + .auth-feature { border-left: 1px solid rgb(255 255 255 / 15%); padding-left: .8rem; }
.auth-feature > span:last-child, .auth-feature b, .auth-feature small { display: block; }
.auth-feature b { color: #ffad44; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.auth-feature small { color: #d4e0e4; font-size: .63rem; line-height: 1.35; margin-top: .16rem; }
.auth-feature-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid rgb(242 144 30 / 48%); border-radius: 9px; color: #ffad44; background: rgb(10 16 20 / 34%); }
.auth-feature-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-card-wrap {
  position: relative;
  align-content: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: clamp(1.2rem, 3vh, 2.4rem);
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 72%, rgb(242 144 30 / 4%) 72%),
    #f5f6f7;
}
.auth-card-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, transparent 48%, rgb(32 38 43 / 3%) 49%, transparent 50%),
    linear-gradient(120deg, transparent 48%, rgb(32 38 43 / 3%) 49%, transparent 50%);
  background-size: 76px 76px;
  pointer-events: none;
}
.auth-light-shape { position: absolute; display: block; border: 1px solid rgb(242 144 30 / 18%); transform: rotate(34deg); }
.auth-light-shape--one { right: -90px; top: -75px; width: 230px; height: 230px; }
.auth-light-shape--two { left: 5%; bottom: -105px; width: 190px; height: 190px; }
.auth-card {
  position: relative;
  z-index: 2;
  width: min(492px, 100%);
  min-width: 0;
  border-color: rgb(32 38 43 / 10%);
  border-radius: 18px;
  padding: clamp(1.15rem, 2.5vh, 1.65rem) clamp(1.45rem, 3.4vw, 2.45rem);
  box-shadow: 0 22px 55px rgb(18 25 30 / 12%);
}
.auth-card h2 { max-width: none; font-size: clamp(1.25rem, 1.75vw, 1.55rem); line-height: 1.14; text-align: center; }
.auth-card > p.text-muted { max-width: 390px; font-size: .82rem; line-height: 1.45; margin: .45rem auto 1rem; text-align: center; }
.auth-card form { position: relative; }
.auth-card-header { position: relative; border-bottom: 1px solid #e1e5e7; padding-bottom: .85rem; margin-bottom: 1rem; }
.auth-card-header::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 22px; height: 3px; border-radius: 99px; background: var(--orange); transform: translateX(-50%); }
.auth-lockup { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 1.15rem; }
.auth-logo-frame { position: relative; display: block; overflow: hidden; }
.auth-logo { position: absolute; display: block; max-width: none; object-fit: contain; }
.auth-logo-frame--inhaus { width: 185px; height: 65px; }
.auth-logo--inhaus { left: 0; top: -58px; width: 185px; height: 185px; }
.auth-client-tag { display: flex; flex: 0 0 auto; flex-direction: row; align-items: center; justify-content: center; gap: .5rem; border-left: 1px solid #d8dde0; padding-left: 1.15rem; }
.auth-client-tag small { color: var(--muted); font-size: .69rem; font-weight: 650; letter-spacing: 0; text-transform: none; }
.auth-logo-frame--hydro { display: flex; align-items: center; width: 118px; height: 40px; overflow: visible; }
.auth-hydro-symbol, .auth-hydro-word { position: relative; display: block; height: 40px; overflow: hidden; }
.auth-hydro-symbol { width: 40px; }
.auth-hydro-word { width: 78px; }
.auth-logo--hydro { width: 264px; height: 83px; }
.auth-hydro-symbol .auth-logo--hydro { left: -113px; top: -6px; }
.auth-hydro-word .auth-logo--hydro { left: -95px; top: -50px; }
.auth-input-wrap .form-control { border-color: #cbd2d6; background: #fafbfb; }
.auth-input-wrap .form-control:focus { background: #fff; }
.auth-row a { font-size: .78rem; font-weight: 700; }
.auth-card [data-auth-submit] { position: relative; min-height: 46px; }
.auth-card [data-auth-submit]:disabled { color: transparent; opacity: .88; cursor: wait; }
.auth-card form.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2.65rem;
  z-index: 3;
  width: 19px;
  height: 19px;
  border: 2px solid rgb(32 38 43 / 30%);
  border-top-color: #20262b;
  border-radius: 50%;
  animation: authSpin .65s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }
.security-note span { color: var(--green); font-size: .56rem; }
.auth-page-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: .65rem; width: min(520px, 90%); margin: .75rem 0 0; }
.auth-page-footer span { color: #899198; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.auth-footer-rule { width: 70px; height: 1px; background: #cfd4d7; }
.auth-gps-frame { position: relative; display: block; width: 118px; height: 31px; overflow: hidden; background: transparent; }
.auth-page-footer .auth-gps-frame img { position: absolute; left: -18px; top: -30px; width: 150px; height: auto; max-width: none; object-fit: contain; }

/* Banner contratual com dados e imagem reais da operação. */
.contract-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 156px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1.45rem 1.7rem;
  margin-bottom: 1rem;
  color: #fff;
  background: #20262b;
  box-shadow: var(--shadow-soft);
}
.contract-banner > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.contract-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(12 18 22 / 90%) 0%, rgb(12 18 22 / 58%) 58%, rgb(12 18 22 / 20%) 100%); }
.contract-banner-copy, .contract-client-logo { position: relative; z-index: 1; }
.contract-banner .eyebrow { color: #ffae47; }
.contract-banner h2 { color: #fff; font-size: clamp(1.35rem, 2.4vw, 2rem); margin: .25rem 0; }
.contract-banner p { color: #d6e0e4; margin: 0; font-size: .8rem; }
.contract-client-logo { display: grid; place-items: center; width: 122px; height: 62px; border-radius: 10px; padding: .55rem; background: rgb(255 255 255 / 94%); }
.contract-client-logo img { width: 100%; height: 100%; object-fit: contain; }

/* Indicadores, gráficos e áreas de trabalho. */
.metric-grid, .compact-metrics { gap: .8rem; }
.metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(32 38 43 / 8%);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.metric-card::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--orange); opacity: .7; }
.metric-card .metric-icon { border-radius: 50%; }
.metric-dark { color: #fff; background: linear-gradient(145deg, #252d33, #151b1f); }
.metric-dark span, .metric-dark small { color: #c9d2d6; }
.chart-card { min-height: 300px; }
.chart-wrap { height: 245px; }
.chart-empty { position: absolute; inset: 50% 1rem auto; transform: translateY(-50%); display: grid; place-items: center; min-height: 100px; color: var(--muted); font-size: .8rem; text-align: center; pointer-events: none; }
.indicators-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.indicators-panel > summary { border-radius: inherit; }
.indicators-panel[open] > summary { border-bottom: 1px solid var(--line); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.indicators-panel-content { padding: 1rem; }
.mini-metrics { border: 1px solid var(--line); border-radius: 12px; padding: .85rem .5rem; background: #fff; box-shadow: var(--shadow-soft); }
.mini-metrics div { min-width: 0; }
.mini-metrics strong { color: var(--ink); font-size: 1.45rem; }
.pagination .page-link { color: var(--ink); border-color: var(--line); }
.pagination .active .page-link { color: #182027; border-color: var(--orange); background: var(--orange); }
.order-hero { background: linear-gradient(125deg, #20282e 0%, #37434a 100%); }
.workflow-node.done b, .workflow-node.active b { color: #20262b; }
.check-card:hover, .service-type-option:hover, .attachment-card:hover { border-color: rgb(242 144 30 / 55%); background: #fffaf3; }
.check-card:has(input:checked) { border-color: var(--orange); background: var(--orange-light); }
.modal-content { border: 0; border-radius: var(--radius); box-shadow: 0 24px 70px rgb(18 25 30 / 22%); }
.modal-header, .modal-footer { border-color: var(--line); }
.searchable-select-results {
    position: absolute;
    z-index: 30;
    width: calc(100% - var(--bs-gutter-x));
    max-height: 18rem;
    overflow-y: auto;
    margin-top: .2rem;
    padding: .35rem;
    border: 1px solid #cbd7db;
    border-radius: .7rem;
    background: #fff;
    box-shadow: 0 .8rem 2rem rgb(22 49 59 / 16%);
}

[data-searchable-select] {
    position: relative;
}

.searchable-select-results button {
    display: block;
    width: 100%;
    padding: .55rem .7rem;
    border: 0;
    border-radius: .45rem;
    background: transparent;
    color: #16313b;
    text-align: left;
}

.searchable-select-results button:hover,
.searchable-select-results button.active {
    background: #e9f2f3;
}

.searchable-select-results .searchable-add-option {
    border-top: 1px solid #dce5e8;
    border-radius: 0 0 .45rem .45rem;
    color: #0b6b72;
    font-weight: 700;
}

.searchable-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}
