/* Identidade institucional. A logomarca original é exibida sem cortes ou filtros. */
:root {
  --forest: #004c3b;
  --forest-dark: #003b2e;
  --accent: #ff791c;
  --accent-dark: #22674f;
  --sage: #e8f2ee;
  --paper: #f7f7f4;
  --ink: #193b32;
  --muted: #5e7069;
  --line: #dfe7e2;
  --terra: #685400;
  --red: #655100;
  --radius: 16px;
  --shadow: 0 5px 22px #004c3b05;
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
}
::selection { background: #d9eee3; color: #193b32; }
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible { outline-color: #287b60; }
h1, h2, h3 { color: var(--forest); }
h1 { font-weight: 750; letter-spacing: -1.2px; }
.eyebrow { color: var(--accent-dark); letter-spacing: 1.5px; }
.button { border-radius: 10px; transition: background .15s, border-color .15s; }
.button.primary { box-shadow: 0 3px 0 #003b2e18; }
.button.primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); }
input, select, textarea { border-color: #bdcdc5; border-radius: 9px; }
input:hover, select:hover, textarea:hover { border-color: #78988a; }
.brand-type { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.brand-logo { display: block; width: 100%; height: auto; }
.brand-type .brand-caption { border-top: 1px solid var(--line); width: 100%; padding-top: 14px; }
.brand-type strong { color: var(--forest); font-size: 13px; font-weight: 750; }
.brand-type small { color: var(--muted); font-size: 10px; letter-spacing: 1.4px; margin-top: 3px; }
.sidebar { padding-top: 28px; overflow-y: auto; border-top: 4px solid var(--accent); }
.sidebar .brand-type { padding: 0 9px 20px; }
.sidebar .brand-logo { max-width: 210px; }
.sidebar-caption { color: #687c72; letter-spacing: 1.3px; }
.nav a { font-size: 13px; color: #496459; min-height: 44px; }
.nav a:hover { background: #f1f6f3; color: var(--forest); }
.nav a.active { background: var(--forest); color: white; box-shadow: inset 3px 0 var(--accent); }
.nav-bottom { padding-top: 16px; }
.sidebar-footer { color: #60786b; font-size: 11px; }
.sidebar-footer strong { display: block; color: var(--forest); font-weight: 600; margin-bottom: 3px; }
.topbar { background: #fff; }
.avatar { background: #e7f3ec; color: #245c47; border: 1px solid #c6e2d3; }
.unread-dot { background: var(--accent); color: #24372d; font-weight: 750; }
.breadcrumb strong { color: var(--forest); }
.page-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 10px; }
.metric { border-radius: 14px; border-top: 3px solid #a8c9bb; padding-top: 20px; }
.metric strong { font-weight: 700; color: var(--forest); }
.metric.dark { border-top-color: var(--accent); }
.metric.dark strong { color: #fff; }
.metric.dark .metric-label, .metric.dark small, .metric.dark svg { color: #e0eee8; }
.metric:not(.dark) svg { color: #527969; }
.metric:hover { box-shadow: 0 5px 18px #004c3b0b; border-color: var(--forest); }
.metric-label { display: block; padding-right: 25px; }
.hero-note { background: #edf5ef; border: 1px solid #d0e3d5; border-left: 4px solid var(--accent); }
.hero-note h3 { color: var(--forest); }
.hero-note p { color: #50685a; }
.hero-note .button { border-color: #bed7c7; }
.panel-head h2 { font-size: 18px; font-weight: 700; }
th { background: #f2f7f4; color: #536d60; }
tbody tr:hover { background: #f5faf7; }
.empty-icon { color: var(--forest); background: #eaf3ee; border-radius: 50%; }
.timeline li:before { background: var(--accent); }
.quick-stat strong { color: var(--forest); }
.status-waiting, .status-pending { background: #fff7d6; color: #685400; }
.status-accepted, .status-confirmed { background: #e5f1eb; color: #235e46; }
.status-production { background: #dcefe7; color: #004c3b; }
.status-completed { background: #e6f3e6; color: #326538; }
.steps .current button { border-color: var(--accent); color: var(--accent-dark); }
.steps .current strong { color: var(--forest); }
.steps .done button { border-color: var(--forest); }
.steps button:disabled { opacity: 1; cursor: not-allowed; color: #66776d; }
.steps button:disabled strong { color: #66776d; }
.type-card:has(input:checked) { background: #edf6f0; border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest); }
.material-option:has(input:checked) { border-color: #4f8c70; background: #edf6f0; }
.material-detail { background: #f5f9f6; }
.kanban-column { background: #eaf0ec; border-top: 3px solid #94b4a5; }
.kanban-column:first-child { border-top-color: var(--accent); }
.kanban-card { border-color: #d8e5dc; }
.priority-high { border-left-color: var(--accent); }
.native-progress, .native-progress::-webkit-progress-value, .progress>span { background: var(--forest); accent-color: var(--forest); }
.native-progress::-moz-progress-bar { background: var(--forest); }
.login-page { grid-template-columns: 1.1fr 1fr; background: #fbf9f6; }
.login-story { background: #fbf9f6; color: var(--forest); padding: 54px clamp(34px,5.6vw,90px) 40px; min-height: 100svh; isolation: isolate; }
.login-story .brand-type { width: min(100%,350px); }
.login-story .brand-logo { mix-blend-mode: multiply; }
.login-story .brand-caption { display: none; }
.login-story .login-message { margin: 55px 0 65px; position: relative; z-index: 1; }
.login-story .eyebrow { color: var(--accent-dark); font-size: 11px; }
.login-story h1 { color: var(--forest); font-size: clamp(38px,4.2vw,64px); font-weight: 760; line-height: 1.08; letter-spacing: -2.5px; margin: 20px 0 26px; max-width: 580px; }
.login-story h1 span { color: var(--accent-dark); }
.login-story .login-description { color: #49685a; font-size: 16px; max-width: 400px; line-height: 1.85; }
.login-journey { display: flex; gap: 22px; margin-top: 32px; flex-wrap: wrap; }
.login-journey span { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; color: var(--forest); }
.login-journey b { display: grid; place-items: center; width: 25px; height: 25px; background: #e0efe4; border-radius: 50%; color: #285e47; font-size: 10px; }
.login-story:after { width: 430px; height: 330px; border: 0; border-radius: 55% 45% 0 0; background: var(--accent); right: -210px; bottom: -170px; transform: rotate(-28deg); box-shadow: -38px -28px 0 #e0eee3; z-index: -1; }
.login-story>small { color: #49685a; font-size: 11px; letter-spacing: 1px; max-width: 75%; }
.login-form-wrap { background: var(--forest); padding: 60px clamp(26px,4.5vw,74px); position: relative; isolation: isolate; overflow: hidden; }
.login-form-wrap:before { content: ''; position: absolute; width: 420px; height: 420px; right: -210px; top: -200px; border: 1px solid #ffffff20; border-radius: 45% 55% 60% 40%; transform: rotate(28deg); box-shadow: 0 0 0 48px #ffffff04; z-index: -1; }
.login-card { max-width: 440px; padding: 42px 36px 30px; background: white; border-radius: 20px; border-top: 5px solid var(--accent); box-shadow: 0 24px 60px #002c3220; }
.login-card h2 { font-size: 30px; font-weight: 750; letter-spacing: -1px; }
.login-card .muted { font-size: 14px; line-height: 1.7; }
.login-card form { margin-top: 28px; gap: 20px; }
.login-card input { min-height: 49px; background: #fbfcfa; }
.login-card .button.primary { min-height: 50px; background: var(--accent); color: #193b32; border-color: var(--accent); font-weight: 750; box-shadow: none; }
.login-card .button.primary:hover { background: #ff943f; border-color: #ff943f; }
.login-foot { border-top: 1px solid var(--line); padding-top: 22px; margin: 26px 0 0; font-size: 11px; }
.login-site-link { display: inline-flex; gap: 7px; align-items: center; color: var(--forest); font-size: 12px; font-weight: 650; margin-top: 18px; text-decoration: underline; text-underline-offset: 4px; }
.login-site-link svg { width: 15px; }
@media (max-width: 1100px) {
  .login-story { padding: 42px 36px; }
  .login-story h1 { font-size: 45px; }
  .login-card { padding: 32px 26px 26px; }
  .login-form-wrap { padding: 42px 28px; }
  .login-journey { gap: 14px; }
}
@media (max-width: 720px) {
  .sidebar .brand-logo { max-width: 215px; }
  .login-page { display: block; }
  .login-story { display: none; }
  .login-form-wrap { min-height: 100svh; padding: 30px 20px; background: #f7f5ef; }
  .login-form-wrap:before { background: var(--forest); width: 280px; height: 280px; right: -155px; top: -180px; border: 0; box-shadow: none; }
  .login-card { padding: 30px 24px; max-width: 430px; border: 1px solid #e1e8e1; border-top: 4px solid var(--accent); border-radius: 16px; }
  .login-mobile-brand { display: block; margin: 0 0 32px; }
  .login-mobile-brand .brand-type { width: min(100%,280px); margin: auto; }
  .login-mobile-brand .brand-caption { display: none; }
  .login-card h2 { font-size: 27px; }
  .login-card .eyebrow { font-size: 10px; }
  .page-head { padding-bottom: 20px; }
  .metric { padding: 15px; }
  .metric-label { padding-right: 18px; }
  .metric svg { right: 10px; }
  .hero-note { flex-wrap: wrap; }
  .hero-note .button { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

/* Avisos e ações sensíveis: âmbar, rótulos e bordas, sem vermelho ou terracota. */
.notice.warning, .notice.error { background: #fff8dc; border-color: #dfce82; color: #655100; }
.error-inline, .form-error { color: #655100; }
.button.danger { color: #655100; border-color: #c9ad47; background: #fffbed; }
.button.danger:hover { background: #fff3bd; }
#toast.error { background: #655100; color: #fff; }
.status-complement, .status-information { background: #fff5cf; color: #655100; }
.status-refused, .status-cancelled { background: #e9eef0; color: #435a65; }
.priority-critical, .work-row.overdue { border-left-color: #a18400; }
.priority-high { border-left-color: #c1ab50; }
.calendar-event.kind-coverage { background: #fff8dc; border-color: #b7a14d; color: #655719; }
.calendar-legend span:nth-child(2):before { color: #a18b36; }
