/* RoconStock-specific layouts. Shared theme, utilities, sidebar links, page titles,
   surface cards and metrics are served verbatim from assets/rocontec.css. */
/* Rocontec globals.css: rounded-lg, rounded-xl and rounded-2xl. */
:root {
  --rs-radius-item: var(--radius, .75rem);
  --rs-radius-control: calc(var(--radius, .75rem) * 1.4);
  --rs-radius-panel: calc(var(--radius, .75rem) * 1.8);
  --rs-radius-compact: calc(var(--radius, .75rem) * .8);
}
html { font-family: var(--font-inter), system-ui, sans-serif; }
body { margin: 0; color: var(--foreground); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
button svg { pointer-events: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
button, a { transition: background-color 150ms, color 150ms, box-shadow 180ms, transform 180ms; }
.rs-sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 30; padding: 20px 16px; background: white; display: flex; flex-direction: column; }
.rs-brand { display: flex; align-items: center; min-height: 48px; padding: 0 12px; text-decoration: none; }
.rs-brand img { width: 156px; height: auto; }
.rs-navigation { margin-top: 36px; flex: 1; }
.rs-nav-link { width: 100%; border: 0; text-align: left; }
.rs-nav-link svg { width: 18px; height: 18px; }
.rs-nav-link+.rs-nav-link { margin-top: 4px; }
.rs-nav-gap { margin-top: 26px; }
.rs-nav-count { margin-left: auto; color: var(--primary); background: #fff1f2; padding: 1px 6px; border-radius: 5px; font-size: 11px; }
.rs-topbar { position: fixed; top: 0; right: 0; left: 248px; height: 68px; background: white; z-index: 40; padding: 0 32px; display: flex; align-items: center; gap: 20px; }
.rs-header-label { font-size: 13px; font-weight: 600; margin-right: auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-header-work { display: flex; align-items: center; flex: 1; min-width: 0; gap: 12px; font-size: 15px; font-weight: 600; }
.rs-header-work img { width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; object-fit: cover; }
.rs-header-work span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rs-avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff1f2; color: #a51d23; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.rs-menu-button, .rs-mobile-brand { display: none !important; }
.rs-scroll { background: var(--background); overflow-y: auto; overscroll-behavior: contain; height: 100%; }
:root { --rs-content-max-width: 1500px; --rs-content-gutter: 32px; }
.rs-scroll>main { max-width: var(--rs-content-max-width); margin: auto; padding: var(--rs-content-gutter); min-height: 100%; }
/* This landmark receives navigation focus; only interactive controls need a ring. */
#main:focus { outline: none; }
/* Acompanha a margem do conteúdo centralizado também em monitores largos. */
@media (min-width: 1024px) {
  .rs-topbar { padding-left: max(var(--rs-content-gutter), calc((100vw - 248px - var(--rs-content-max-width)) / 2 + var(--rs-content-gutter))); }
}
.rs-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.rs-description { font-size: 14px; line-height: 1.7; margin-top: 5px; color: var(--muted-foreground); }
.rs-heading-actions { display: flex; gap: 10px; flex-shrink: 1; min-width: 0; max-width: 100%; }
.rs-button { display: inline-flex; min-height: 44px; border-radius: var(--rs-radius-control); align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 1px solid transparent; font-size: 13px; font-weight: 600; line-height: 1.5; }
.rs-button:not(:disabled):not([aria-haspopup]):active { translate: 0 1px; }
.rs-button.primary { color: white; background: var(--primary); }
.rs-button.primary:hover { background: #a51d23; }
.rs-button.white { color: #334155; background: white; box-shadow: 0 0 10px rgb(16 24 40 / 2%); }
.rs-button.white:hover, .rs-button.subtle:hover { background: #f8fafc; }
.rs-button.subtle { background: #f1f3f5; color: #475569; }
.rs-button.selected { color: #a51d23; background: #fff1f2; }
.rs-button svg { width: 17px; height: 17px; }
.rs-icon-button { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; color: #64748b; border-radius: var(--rs-radius-item); background: transparent; }
.rs-icon-button:hover { background: #f0f2f4; color: var(--primary); }
.rs-text-button { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 12px; font-weight: 650; min-height: 32px; }
.rs-text-button svg { width: 15px; height: 15px; }
.rs-text-button:hover { text-decoration: underline; }
.rs-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-foreground); font-weight: 600; margin-bottom: 14px; min-height: 28px; }
.rs-back:hover { color: var(--primary); }
.rs-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.rs-metric { display: flex; gap: 14px; align-items: flex-start; }
.rs-metric .metric-icon { margin-top: 2px; flex-shrink: 0; }
.rs-metric>div { min-width: 0; }
.rs-metric>div>span { display: block; color: var(--muted-foreground); font-size: 12px; }
.rs-metric strong { font: 700 30px/1.5 var(--font-manrope), sans-serif; letter-spacing: -.8px; }
.rs-metric small { display: block; color: #98a2b3; font-size: 11px; }
/* Métricas do painel geral: mesma composição do dashboard Rocontec. */
.rs-overview-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.rs-overview-metric { min-width: 0; padding: 16px; border-radius: 16px; background: var(--card); box-shadow: var(--card-shadow); transition: transform 150ms ease, box-shadow 150ms ease; }
.rs-overview-metric-heading { display: flex; align-items: center; gap: 10px; }
.rs-overview-metric-heading .metric-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; color: #252a31; background: #f1f5f9; transition: color 200ms ease, background-color 200ms ease; }
.rs-overview-metric-heading .metric-icon svg { width: 16px; height: 16px; }
.rs-overview-metric-heading p, .rs-overview-metric-heading .rs-metric-label { min-width: 0; font-size: 13px; line-height: 16px; font-weight: 600; color: #475569; }
.rs-overview-metric-value { margin-top: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.025em; color: #252a31; font-variant-numeric: tabular-nums; }
.rs-metric-desktop-label { display: none; }
@media (min-width: 640px) {
  .rs-metric-desktop-label { display: inline; }
  .rs-metric-mobile-label { display: none; }
  .rs-overview-metric-value { font-size: 24px; line-height: 32px; }
}
@media (min-width: 1280px) { .rs-overview-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (hover: hover) {
  .rs-overview-metric:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
  .rs-overview-metric:hover .metric-icon { color: #c42329; background: #fff1f2; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-overview-metric, .rs-overview-metric-heading .metric-icon { transition: none; }
  .rs-overview-metric:hover { transform: none; }
}
.rs-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.rs-search { flex: 1; min-width: 200px; position: relative; }
.rs-search>svg { position: absolute; left: 13px; top: 16px; width: 16px; height: 16px; color: #94a3b8; }
input, select, textarea { min-width: 0; max-width: 100%; color: #252a31; font-size: 14px; border: 1px solid transparent; border-radius: var(--rs-radius-control); background: var(--field); min-height: 44px; padding: 10px 12px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted-foreground); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ring); outline: none; }
input[readonly] { color: #64748b; }
.rs-search input { padding-left: 38px; width: 100%; min-height: 48px; }
.rs-works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rs-work-card { display: flex; min-width: 0; flex-direction: column; border-radius: 16px; overflow: hidden; text-decoration: none; }
.rs-work-card:hover { transform: translateY(-2px); }
.rs-work-photo { position: relative; height: 176px; overflow: hidden; background: #e2e8f0; }
.rs-work-photo>img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms; }
.rs-work-card:hover .rs-work-photo>img { transform: scale(1.03); }
.rs-work-code { position: absolute; left: 12px; top: 12px; padding: 6px 10px; font-size: 11px; line-height: 1.5; font-weight: 700; border-radius: 8px; background: rgb(255 255 255 / 95%); box-shadow: 0 1px 2px #0000000d; }
.rs-work-open { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; background: #1d2127d9; border-radius: 8px; color: white; opacity: 0; }
.rs-work-card:hover .rs-work-open, .rs-work-card:focus-visible .rs-work-open { opacity: 1; }
.rs-work-body { padding: 20px; display: flex; flex: 1; flex-direction: column; }
.rs-work-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rs-work-title>div { min-width: 0; }
.rs-work-title .eyebrow { font-size: 12px; }
.rs-work-title h2 { font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -.45px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-work-title .status-badge { margin-top: 2px; white-space: nowrap; font-size: 9px; }
.rs-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rs-work-progress { margin-top: 20px; }
.rs-work-progress>div { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.rs-work-progress span { color: var(--muted-foreground); }
.rs-work-progress b { font-weight: 700; }
.rs-work-reference { margin-top: 8px; color: var(--muted-foreground); font-size: 11px; }
progress { appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 99px; background: #f1f5f9; overflow: hidden; }
progress::-webkit-progress-bar { background: #f1f5f9; }
progress::-webkit-progress-value { background: #c42329; border-radius: 99px; }
progress::-moz-progress-bar { background: #c42329; border-radius: 99px; }
.rs-work-numbers { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; background: #f8fafc; border-radius: 12px; padding: 12px 0; }
.rs-work-numbers>div { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.rs-work-numbers>div+div { border-left: 1px solid #e3e6ea; }
.rs-work-numbers svg { width: 16px; height: 16px; color: #94a3b8; }
.rs-work-numbers>div>span { display: flex; flex-direction: column; gap: 0; }
.rs-work-numbers b { font-size: 13px; font-weight: 700; line-height: 16px; }
.rs-work-numbers small { display: block; font-size: 10px; line-height: 14px; color: var(--muted-foreground); margin-top: 0; }
.rs-card-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 15px; font-size: 10px; color: #98a2b3; }
.rs-card-bottom b { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #a51d23; font-weight: 650; }
.rs-card-bottom svg { width: 13px; height: 13px; }
.rs-results-footer { display: flex; align-items: center; justify-content: center; gap: 20px; padding-top: 24px; color: #94a3b8; font-size: 12px; }
.rs-work-summary { display: flex; border-radius: 16px; overflow: hidden; margin-bottom: 28px; }
.rs-summary-photo { width: 150px; flex-shrink: 0; min-height: 150px; object-fit: cover; }
.rs-summary-info { min-width: 0; flex: 1; padding: 22px 24px; }
.rs-summary-info>p { display: flex; gap: 7px; font-size: 12px; color: #667085; margin-top: 14px; line-height: 1.7; }
.rs-summary-info>p svg { width: 14px; height: 14px; margin-top: 3px; }
.rs-summary-counts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 15px; font-size: 11px; color: #98a2b3; }
.rs-summary-counts b { color: #252a31; font-size: 14px; font-weight: 700; margin-right: 3px; }
.rs-team-link { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; padding: 20px; background: #fbfcfd; min-width: 230px; }
.rs-team-avatars { display: flex; padding-left: 5px; margin-bottom: 10px; }
.rs-team-avatars i { width: 29px; height: 29px; display: grid; place-items: center; font-size: 9px; font-weight: 650; font-style: normal; border: 2px solid white; border-radius: 50%; background: #e2e8f0; color: #475569; margin-left: -5px; }
.rs-team-avatars i:nth-child(2) { background: #fff1f2; color: #a51d23; }
.rs-team-link>b { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.rs-team-link>b svg { width: 13px; height: 13px; }
.rs-team-link>small { display: block; color: #98a2b3; font-size: 10px; margin-top: 5px; }
.rs-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; }
.rs-panel { border-radius: 16px; overflow: hidden; min-width: 0; }
.rs-panel:has(.rs-stock-table) { box-shadow: 0 2px 12px rgb(16 24 40 / 4%); }
.rs-stock-groups { display: grid; gap: 16px; }
.rs-stock-group { background: #f8f9fb; transition: box-shadow 180ms ease; }
.rs-request-technical { grid-column: 1 / -1; }
.rs-request-technical[hidden], .rs-request-application[hidden], .rs-table-scroll[hidden] { display: none; }
.rs-stock-group-empty { display: flex; align-items: center; gap: 11px; padding: 19px 20px; font-size: 13px; }
.rs-stock-group-empty p { margin: 0; font-size: 13px; font-weight: 600; }
.rs-stock-empty-copy { min-width: 0; }
.rs-stock-empty-copy .rs-text-button { min-height: 22px; margin-top: 1px; font-size: 11px; font-weight: 500; line-height: 1.4; text-align: left; }
.rs-stock-group-empty .rs-stock-empty-photo { border: 2px solid white; border-radius: 10px; box-shadow: 0 2px 7px rgb(16 24 40 / 12%); }
.rs-stock-empty-photo:is(button):hover { color: var(--primary); }
.rs-stock-group:hover { box-shadow: 0 3px 16px rgb(16 24 40 / 6%); }
.rs-stock-group-header { position: relative; z-index: 1; display: flex; align-items: center; overflow: hidden; border-radius: 0 0 16px 16px; background: white; transition: box-shadow 180ms ease; }
.rs-stock-group-header:has(.rs-stock-group-trigger[aria-expanded="true"]) { box-shadow: 0 5px 10px -6px rgb(16 24 40 / 22%); }
.rs-stock-group-header > h2 { margin: 0; font: inherit; flex: 1; min-width: 0; }
.rs-stock-group-add { position: absolute; right: 48px; z-index: 1; color: #98a2b3; }
.rs-stock-group-header:has(.rs-stock-group-add) .rs-stock-group-trigger { padding-right: 98px; }
.rs-stock-group-header:has(.rs-stock-group-add) .rs-stock-group-chevron { position: absolute; right: 20px; top: 0; bottom: 0; height: 18px; margin: auto 0; }
.rs-stock-group-trigger { position: relative; display: flex; align-items: center; width: 100%; min-height: 94px; padding: 19px 20px 19px 110px; gap: 14px; text-align: left; transition: background 160ms ease; }
.rs-stock-group-trigger:hover { background: #fafbfc; }
.rs-stock-group-trigger:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; border-radius: 14px; }
.rs-stock-group-icon { position: absolute; inset: 0 auto 0 0; display: grid; place-items: center; width: 94px; overflow: hidden; background: #f5f6f8; color: #667085; }
.rs-stock-group-icon svg { width: 21px; height: 21px; }
.rs-stock-group-icon img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.rs-stock-group-trigger:hover .rs-stock-group-icon img { transform: scale(1.05); }
#stock-results > .rs-stock-group { box-shadow: var(--card-shadow); transition: transform 200ms cubic-bezier(.4, 0, .2, 1), box-shadow 200ms; }
#stock-results .rs-stock-group-trigger:hover .rs-stock-group-icon img { transform: none; }
@media (hover: hover) and (pointer: fine) {
  #stock-results > .rs-stock-group:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
}
#stock-results > .rs-stock-group:active { transform: scale(.995); }
@media (prefers-reduced-motion: reduce) {
  #stock-results > .rs-stock-group { transition: none; }
  #stock-results > .rs-stock-group:is(:hover, :active) { transform: none; }
}
.rs-stock-group-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.rs-stock-group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.rs-stock-group-count { font-size: 11px; font-weight: 400; color: #98a2b3; white-space: nowrap; }
.rs-stock-group-name small { display: block; margin-top: 0; font-size: 12px; font-weight: 400; color: #98a2b3; }
.rs-stock-group-chevron { display: flex; color: #98a2b3; transition: transform 220ms ease; }
.rs-stock-group-chevron svg { width: 18px; height: 18px; }
.rs-stock-group-trigger[aria-expanded="true"] .rs-stock-group-chevron { transform: rotate(180deg); }
.rs-stock-group-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 220ms ease, opacity 180ms ease; }
.rs-stock-group-body[data-open] { grid-template-rows: 1fr; opacity: 1; }
.rs-stock-group-body > div { min-height: 0; overflow: hidden; background: #f8f9fb; }
.rs-tone-reference { margin-bottom: 10px; }
@media (max-width: 639px) {
  .rs-stock-group-empty { padding: 17px; }
  .rs-stock-group-add { right: 42px; }
  .rs-stock-group-header:has(.rs-stock-group-add) .rs-stock-group-trigger { grid-template-columns: minmax(0, 1fr); padding-right: 86px; }
  .rs-stock-group-header:has(.rs-stock-group-add) .rs-stock-group-chevron { right: 17px; }
  .rs-stock-group-trigger { display: grid; grid-template-columns: minmax(0, 1fr) 18px; min-height: 88px; padding: 16px 17px 16px 92px; gap: 10px; }
  .rs-stock-group-icon { width: 80px; }
  .rs-stock-group-trigger > .rs-badge { grid-column: 1; grid-row: 2; justify-self: start; margin: 0; }
  .rs-stock-group-trigger > .rs-stock-group-chevron { grid-column: 2; grid-row: 1; }
  .rs-stock-group-name { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-stock-group, .rs-stock-group-header, .rs-stock-group-trigger, .rs-stock-group-chevron, .rs-stock-group-body, .rs-stock-group-icon img { transition: none; }
  .rs-stock-group-trigger:hover .rs-stock-group-icon img { transform: none; }
}
.rs-panel>.rs-toolbar { padding: 20px; }
.rs-stock-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; margin-top: 24px; }
.rs-stock-preview { min-width: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 2px 12px rgb(16 24 40 / 4%); }
.rs-preview-heading { padding: 20px 20px 12px; }
.rs-preview-heading h2 { margin: 0; }
.rs-preview-title-link { display: block; width: 100%; min-height: 32px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; border-radius: 4px; }
@media (hover: hover) { .rs-preview-title-link:hover { color: var(--primary); } }
.rs-preview-list { padding: 0 8px; }
.rs-preview-row { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: start; gap: 11px; width: 100%; padding: 14px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; transition: background 160ms ease; }
.rs-preview-row + .rs-preview-row::before { content: ''; position: absolute; top: 0; left: 12px; right: 12px; height: 1px; background: linear-gradient(to right, #e9edf2 65%, transparent); pointer-events: none; }
.rs-preview-row:hover { background: #f8fafc; }
.rs-preview-row:active { background: #f1f5f9; }
.rs-preview-row:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.rs-preview-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #f5f6f8; color: #667085; }
.rs-preview-icon svg { width: 17px; height: 17px; }
.rs-preview-icon.in { color: #047857; background: #ecfdf5; }
.rs-preview-icon.out { color: #b45309; background: #fffbeb; }
.rs-preview-content { display: block; min-width: 0; overflow-wrap: anywhere; }
.rs-preview-reference { display: block; color: #667085; font-size: 11px; font-weight: 500; line-height: 1.5; }
.rs-preview-content strong { display: block; margin-top: 2px; color: #344054; font-size: 13px; font-weight: 600; line-height: 1.5; }
.rs-preview-extra { margin-left: 4px; font-size: 11px; font-weight: 500; color: #98a2b3; white-space: nowrap; }
.rs-preview-description { display: block; margin-top: 1px; color: #667085; font-size: 12px; line-height: 1.5; }
.rs-preview-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 5px; font-size: 11px; line-height: 1.5; color: #98a2b3; }
.rs-preview-meta time { white-space: nowrap; }
.rs-preview-order .rs-badge { margin-top: 7px; }
.rs-preview-correction { display: block; color: #b45309; font-size: 11px; margin-top: 4px; }
.rs-preview-chevron { align-self: center; color: #98a2b3; transition: transform 160ms ease, color 160ms ease; }
.rs-preview-chevron svg { width: 16px; height: 16px; }
.rs-preview-row:hover .rs-preview-chevron { transform: translateX(2px); color: var(--primary); }
.rs-preview-empty { display: flex; align-items: center; gap: 12px; padding: 22px 12px; color: #98a2b3; }
.rs-preview-empty > svg { width: 20px; height: 20px; }
.rs-preview-empty p { margin: 0; color: #667085; font-size: 13px; line-height: 1.6; }
@media (max-width: 767px) {
  .rs-stock-overview { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rs-preview-heading { padding: 18px 17px 10px; }
  .rs-preview-row { padding: 13px 9px; gap: 9px; grid-template-columns: 32px minmax(0, 1fr) 14px; }
  .rs-preview-icon { width: 32px; height: 32px; }
  .rs-preview-chevron svg { width: 14px; height: 14px; }
}
.rs-table-scroll { overflow-x: auto; }
/* A cascata desloca as linhas; esse excedente visual não deve criar rolagem vertical. */
.rs-stock-group-body .rs-table-scroll { overflow-y: hidden; }
table { border-collapse: collapse; width: 100%; text-align: left; }
.rs-stock-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rs-stock-table th { font-size: 11px; font-weight: 600; color: #98a2b3; padding: 13px 20px; background: #f7f8fa; border: 0; }
.rs-stock-table td { padding: 19px 20px; font-size: 13px; border: 0; vertical-align: middle; }
.rs-stock-table tbody tr { position: relative; cursor: pointer; transition: background-color 160ms ease; }
.rs-stock-table tbody tr:not(:last-child)::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: linear-gradient(to right, #e5e9ef 0%, #e5e9ef 75%, transparent 100%); pointer-events: none; }
.rs-stock-table tbody tr:hover { background: #eef0f3; }
@media (min-width: 761px) {
  .rs-stock-table td:nth-child(4), .rs-stock-table td:nth-child(5) { width: 1%; white-space: nowrap; text-align: right; }
  .rs-stock-table td:nth-child(4) { padding-right: 12px; }
  .rs-stock-table td:nth-child(5) { padding-left: 12px; }
  .rs-stock-table .rs-material-actions { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .rs-stock-table tbody tr { transition: none; } }
.rs-material { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.rs-material-icon { display: grid; place-items: center; width: 39px; height: 42px; border-radius: 10px; background: #f1f5f9; color: #94a3b8; flex-shrink: 0; }
.rs-material b { font-size: 13px; font-weight: 600; }
.rs-material small { display: block; font-size: 11px; margin-top: 1px; color: #98a2b3; }
.rs-material-title { display: block; text-align: left; font-size: 13px; font-weight: 600; color: inherit; border-radius: 4px; }
.rs-material-title:hover { color: var(--primary); }
.rs-material > div { min-width: 0; }
.rs-material-thumbnail, .rs-material-photo-empty { display: block; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px; object-fit: cover; background: var(--field); }
.rs-material-photo-empty { display: grid; place-items: center; color: #98a2b3; }
.rs-material-photo-empty svg { width: 20px; height: 20px; }
.rs-material-photo-link { flex-shrink: 0; border-radius: 8px; }
.rs-stock-table .rs-material-thumbnail, .rs-stock-table .rs-material-photo-empty { border: 2px solid white; border-radius: 10px; box-shadow: 0 2px 7px rgb(16 24 40 / 12%); }
.rs-stock-table .rs-material-photo-link { border-radius: 10px; }
.rs-material-photo-link:hover { opacity: .85; }
.rs-material-detail-photo { width: 100%; height: 220px; object-fit: contain; border-radius: 12px; }
.rs-material-detail-heading { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.rs-material-detail-heading .rs-material-detail-photo { width: 220px; height: 220px; background: var(--background); }
.rs-material-detail-photo-empty { display: grid; place-items: center; color: #98a2b3; }
.rs-material-detail-photo-empty svg { width: 36px; height: 36px; }
.rs-material-detail-info { min-width: 0; }
.rs-material-detail-info h3 { margin: 0 0 16px; font-size: 20px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.rs-material-detail-info .rs-dialog-facts { gap: 8px; }
.rs-material-detail-info .rs-dialog-facts > div { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.rs-material-detail-edit { margin-top: 16px; font-size: 12px; }
.rs-material-stock-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px; border-radius: 12px; background: var(--background); }
#info-dialog .rs-material-stock-summary .rs-material-alert { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
@media (max-width: 639px) {
  .rs-material-detail-heading { grid-template-columns: clamp(88px, 25vw, 120px) minmax(0, 1fr); gap: 14px; }
  .rs-material-detail-heading .rs-material-detail-photo { width: 100%; height: auto; aspect-ratio: 1; }
  .rs-material-detail-info h3 { font-size: 16px; margin-bottom: 8px; }
  .rs-material-detail-info .rs-dialog-facts { gap: 5px; }
  .rs-material-detail-info .rs-dialog-facts > div { grid-template-columns: auto minmax(0, 1fr); gap: 6px; font-size: 12px; }
  .rs-material-detail-edit { margin-top: 10px; }
  .rs-material-stock-summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 14px; }
  #info-dialog .rs-material-stock-summary .rs-material-alert { align-items: flex-end; text-align: right; }
}
.rs-catalog-material { display: flex; align-items: center; gap: 12px; }
.rs-catalog-material > div { min-width: 0; }
.rs-material-photo { min-width: 0; }
.rs-material-photo > label { display: block; font-size: 14px; font-weight: 500; }
.rs-material-photo > label small { color: #98a2b3; font-size: 12px; font-weight: 400; }
.rs-material-photo-picker { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 112px; padding: 12px; margin-top: 8px; border: 1px dashed var(--border); border-radius: 12px; background: var(--field); text-align: left; overflow: hidden; transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.rs-material-photo-picker:hover { border-color: rgb(196 35 41 / 50%); }
.rs-material-photo-picker:focus-visible { outline: none; box-shadow: 0 0 0 2px rgb(196 35 41 / 40%); }
.rs-material-photo-thumb { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; overflow: hidden; background: white; color: #64748b; box-shadow: 0 1px 2px rgb(0 0 0 / 5%); }
.rs-material-photo-thumb.has-photo { width: 96px; height: 80px; border-radius: 8px; box-shadow: none; }
.rs-material-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rs-material-photo-thumb svg { width: 20px; height: 20px; }
.rs-material-photo-copy { min-width: 0; }
.rs-material-photo-copy strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rs-material-photo-copy small { display: block; margin-top: 4px; color: var(--muted-foreground); font-size: 12px; font-weight: 400; }
.rs-material-photo-actions { margin-top: 8px; min-height: 32px; }
.rs-material-photo-actions .rs-text-button { min-height: 32px; font-size: 12px; font-weight: 600; }
.rs-material-photo-actions [hidden], .rs-material-photo-file[hidden] { display: none; }
.rs-material-photo-status { color: #667085; font-size: 12px; margin: 4px 0 0; }
.rs-material-photo-status:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .rs-material-photo-picker { transition: none; } }
.rs-material-variety { display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; color: #667085; font-size: 11px; }
.rs-material-variety svg { width: 12px; height: 12px; }
.rs-material-overview { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 22px; }
.rs-material-overview > div > span { display: block; font-size: 12px; color: #667085; }
.rs-material-overview strong { display: block; margin-top: 6px; font-size: 26px; }
.rs-material-overview strong small { font-size: 14px; font-weight: 500; color: #667085; }
.rs-material-alert .rs-text-button { margin-top: 6px; font-size: 12px; }
.rs-material-lots { display: grid; gap: 12px; }
.rs-material-lot { padding: 16px; border-radius: 12px; background: #f8fafc; }
.rs-material-lot-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.rs-material-lot-heading span { display: block; margin-top: 5px; color: #667085; font-size: 12px; }
.rs-material-lot-heading strong { white-space: nowrap; }
.rs-material-lot-heading small { font-weight: 400; color: #667085; }
.rs-material-lot-location { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #667085; padding: 4px 0; }
.rs-material-lot-location > span:first-child { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rs-material-lot-location > span:nth-child(2) { white-space: nowrap; }
.rs-material-lot-location svg { width: 15px; height: 15px; }
.rs-entry-stock-row { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 12px; margin-top: 8px; }
.rs-entry-stock-row>.rs-entry-stock { color: var(--muted-foreground); font-size: 12px; line-height: 1.5; }
.rs-entry-stock-row>.rs-entry-other-tone { min-height: 28px; }
.rs-entry-stock:empty { display: none; }
.rs-catalog-search { margin-bottom: 12px; }
.rs-catalog-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; }
.rs-catalog-item + .rs-catalog-item { border-top: 1px solid #eef0f2; }
.rs-catalog-item > div:first-child { flex: 1; min-width: 180px; }
.rs-catalog-item b { font-size: 13px; }
.rs-catalog-item p { font-size: 12px; color: #667085; margin-top: 5px; }
.rs-catalog-item small { display: block; font-size: 11px; color: #98a2b3; margin-top: 5px; }
.rs-catalog-item-actions { display: flex; gap: 12px; }
.rs-catalog-item-actions .rs-text-button { font-size: 12px; }
.rs-catalog-empty { padding: 24px 0; color: #667085; font-size: 13px; line-height: 1.7; }
.rs-material-name-field { min-width: 0; }
.rs-material-similar { display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0; transition: grid-template-rows 240ms ease, margin-top 240ms ease, opacity 180ms ease; }
.rs-material-similar[hidden] { display: none; }
.rs-material-similar[data-open] { grid-template-rows: 1fr; margin-top: 12px; opacity: 1; }
.rs-material-similar-inner { min-height: 0; overflow: hidden; border-radius: 14px; }
.rs-material-similar-content { padding: 12px 8px 8px 12px; border-radius: 14px; background: #f5f6f7; }
.rs-material-similar-content > p { margin: 0 4px 8px; color: var(--muted-foreground); font-size: 12px; font-weight: 500; line-height: 18px; }
.rs-material-suggestions-scroll { position: relative; min-width: 0; }
.rs-material-suggestions-list { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; overscroll-behavior-y: contain; padding: 4px 20px 6px 4px; scroll-padding-block: 18px; --fade-top: 0px; --fade-bottom: 0px; mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent); }
.rs-material-suggestions-list[data-fade-top] { --fade-top: 16px; }
.rs-material-suggestions-list[data-fade-bottom] { --fade-bottom: 16px; }
.rs-material-suggestions-list:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 10px; }
.rs-material-suggestion { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; flex: 0 0 auto; gap: 10px; width: 100%; min-height: 72px; padding: 10px; border: 0; border-radius: 12px; background: white; color: var(--foreground); text-align: left; box-shadow: 0 1px 4px rgb(16 24 40 / 7%); animation: rs-material-suggestion-in 200ms ease both; }
.rs-material-suggestion:nth-child(2) { animation-delay: 25ms; }
.rs-material-suggestion:nth-child(3) { animation-delay: 50ms; }
.rs-material-suggestion:nth-child(4) { animation-delay: 75ms; }
.rs-material-suggestion-photo { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border: 2px solid white; border-radius: 10px; background: #f4f5f6; color: #98a2b3; box-shadow: 0 2px 6px rgb(16 24 40 / 10%); }
.rs-material-suggestion-photo .rs-material-thumbnail { width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: cover; box-shadow: none; }
.rs-material-suggestion-photo > svg { width: 22px; height: 22px; }
.rs-material-suggestion-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rs-material-suggestion-copy strong { font-size: 13px; font-weight: 600; line-height: 18px; overflow-wrap: anywhere; }
.rs-material-suggestion-copy small { color: var(--muted-foreground); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.rs-material-suggestion-balance { color: var(--muted-foreground); font-size: 12px; line-height: 18px; white-space: nowrap; }
.rs-material-suggestion-balance b { color: var(--foreground); font-size: 13px; font-weight: 600; }
@media (hover: hover) {
  .rs-material-suggestion:hover { background: #fafafa; box-shadow: 0 3px 9px rgb(16 24 40 / 12%); transform: translateY(-1px); }
}
.rs-material-suggestion:active { transform: scale(.99); background: #f0f1f3; }
@keyframes rs-material-suggestion-in { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 520px) {
  .rs-material-suggestion { grid-template-columns: 48px minmax(0, 1fr); column-gap: 10px; row-gap: 3px; }
  .rs-material-suggestion-photo { grid-row: 1 / 3; }
  .rs-material-suggestion-balance { grid-column: 2; }
  .rs-material-suggestions-list { max-height: 250px; padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-material-similar, .rs-material-suggestion { transition: none; animation: none; }
}
.rs-quantity { font: 700 16px var(--font-manrope), sans-serif; }
.rs-unit { font-size: 11px; color: #98a2b3; margin-left: 2px; }
.rs-stock-balance { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 0; white-space: nowrap; }
.rs-stock-balance .rs-quantity { line-height: 20px; }
.rs-stock-balance .rs-unit { margin-left: 0; line-height: 1; }
.rs-locations-button { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 11px; text-align: left; }
.rs-locations-button>span { display: inline-flex; align-items: center; gap: 5px; background: transparent; border-radius: 6px; padding: 5px 6px; color: #667085; }
.rs-locations-button b { font-weight: 600; color: #334155; }
.rs-locations-button svg { width: 13px; height: 13px; color: #98a2b3; }
.rs-locations-scroll { display: contents; }
.rs-stock-table .rs-locations-button > span { align-items: baseline; gap: 0; line-height: 1; }
.rs-stock-table .rs-locations-button > span::before { content: '\200b'; font: 700 16px/20px var(--font-manrope), sans-serif; }
.rs-stock-table .rs-locations-button b { margin-left: 4px; line-height: 1; }
.rs-badge { display: inline-flex; align-items: center; font-size: 10px; font-weight: 650; border-radius: 99px; padding: 5px 9px; line-height: 1.4; white-space: nowrap; }
.rs-badge.good { background: #ecfdf5; color: #047857; }
.rs-badge.warn { background: #fffbeb; color: #b45309; }
.rs-badge.pending { background: #f1f5f9; color: #64748b; }
.rs-stock-status-context { display: block; margin-top: 4px; color: #98a2b3; font-size: 11px; }
.rs-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid #f1f3f5; padding: 13px 20px; font-size: 11px; color: #98a2b3; }
.rs-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; align-items: start; }
.rs-form-panel { border-radius: 16px; overflow: hidden; min-width: 0; }
.rs-form-section { padding: 24px; border-bottom: 1px solid #f1f3f5; }
.rs-form-section>.section-title { margin-bottom: 20px; }
.rs-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rs-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rs-field>span { font-size: 13px; font-weight: 550; color: #475569; }
.rs-field>small { color: #98a2b3; font-size: 11px; line-height: 1.6; }
.rs-field input, .rs-field select, .rs-field textarea { width: 100%; }
.rs-field textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.rs-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rs-type-option { padding: 16px; display: flex; align-items: center; gap: 12px; border: 1px solid #e3e6ea; border-radius: 12px; cursor: pointer; }
.rs-type-option.chosen { border-color: #edbec1; background: #fff6f7; }
.rs-type-option input { min-height: auto; accent-color: #c42329; }
.rs-type-option b { font-size: 14px; font-weight: 700; }
.rs-type-option small { display: block; color: #98a2b3; font-size: 12px; margin-top: 4px; }
.rs-form-actions { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rs-form-actions>span { font-size: 11px; color: #98a2b3; }
.rs-context-card { padding: 5px 0; font-size: 13px; color: #667085; line-height: 1.7; }
.rs-context-card h2 { font: 700 20px/1.4 var(--font-manrope), sans-serif; color: #252a31; letter-spacing: -.5px; margin: 17px 0; }
.rs-context-card ol { list-style: none; counter-reset: flow; margin: 20px 0 0; padding: 0; }
.rs-context-card li { counter-increment: flow; padding: 0 0 22px 32px; position: relative; }
.rs-context-card li:before { content: counter(flow); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; color: #a51d23; background: #fff1f2; font-size: 11px; font-weight: 650; }
.rs-context-card li b { color: #475569; font-weight: 600; }
.rs-context-card li p { color: #98a2b3; font-size: 12px; margin-top: 4px; }
.rs-hypothesis { background: #fffbeb; border-radius: 12px; color: #946200; font-size: 12px; line-height: 1.7; padding: 16px; margin-top: 22px; }
.rs-hypothesis b { font-weight: 650; }
.rs-hypothesis p { margin-top: 6px; }
.rs-note { font-size: 12px; line-height: 1.7; color: #98a2b3; margin-top: 12px; }
.rs-request-line { display: grid; grid-template-columns: minmax(0, 1fr) 115px auto; align-items: end; gap: 12px; }
.rs-request-line[data-ceramic="true"] { grid-template-columns: minmax(0, 1fr) 105px 100px auto; }
.rs-request-line+.rs-request-line { margin-top: 20px; padding-top: 20px; border-top: 1px solid #f1f3f5; }
.rs-quantity-field { display: flex; align-items: center; background: var(--field); border: 1px solid transparent; border-radius: var(--rs-radius-control); min-width: 0; min-height: 44px; }
.rs-quantity-field:focus-within,
.rs-quantity-field:has(input[aria-invalid="true"]) { border-color: var(--ring); }
.rs-quantity-field input { flex: 1; width: 0; min-height: 42px; padding-right: 3px; border: 0; outline: none; background: transparent; }
.rs-quantity-field>span { flex-shrink: 0; white-space: nowrap; padding-right: 10px; font-size: 11px; color: #667085; }
.rs-add-line { margin: 17px 0 20px; color: var(--foreground); transform-origin: left center; transition: transform 180ms ease; }
.rs-add-line:hover { text-decoration: none; }
.rs-add-line svg { transition: transform 280ms ease; }
@media (hover: hover) {
  .rs-add-line:hover { transform: scale(1.04); }
  .rs-add-line:hover svg { transform: rotate(180deg); }
}
.rs-add-line:active { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .rs-add-line, .rs-add-line svg { transition: none; }
  .rs-add-line:hover, .rs-add-line:hover svg { transform: none; }
}
.rs-form-error:not(:empty) { padding: 12px 22px; color: #a51d23; background: #fff1f2; font-size: 13px; line-height: 1.6; }
.rs-delivery-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.rs-request-list, .rs-delivery-detail { border-radius: 16px; overflow: hidden; min-width: 0; }
.rs-list-header { padding: 20px; border-bottom: 1px solid #f1f3f5; }
.rs-list-header h2>span { font-size: 13px; margin-left: 5px; color: #98a2b3; }
.rs-list-header select { width: 100%; margin-top: 14px; }
.rs-request-card { width: 100%; padding: 20px; text-align: left; border-bottom: 1px solid #f1f3f5; }
.rs-request-card.selected { background: #fff6f7; box-shadow: inset 3px 0 0 #c42329; }
.rs-request-card:hover { background: #f8fafc; }
.rs-request-card>div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rs-request-card b { font-size: 13px; font-weight: 650; }
.rs-request-card>div>span:not(.rs-badge) { font-size: 11px; color: #98a2b3; }
.rs-request-card h3 { font-size: 13px; font-weight: 650; margin-top: 14px; }
.rs-request-card p { font-size: 12px; color: #98a2b3; margin: 5px 0 16px; overflow-wrap: anywhere; }
.rs-request-card svg { width: 14px; height: 14px; color: #98a2b3; }
.rs-detail-heading { padding: 24px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.rs-detail-heading .eyebrow { font-size: 12px; }
.rs-detail-heading h2 { font-size: 24px; letter-spacing: -.6px; font-weight: 700; margin-top: 5px; }
.rs-request-meta { padding: 0 24px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rs-request-meta span { display: block; color: #98a2b3; font-size: 11px; margin-bottom: 5px; }
.rs-request-meta b { font-size: 13px; font-weight: 550; display: block; overflow-wrap: anywhere; }
.rs-request-meta p { color: #98a2b3; font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.rs-request-note { display: flex; align-items: start; gap: 8px; margin: 0 24px 20px; padding: 13px; border-radius: 10px; color: #667085; background: #f8fafc; font-size: 12px; line-height: 1.7; }
.rs-request-note p { overflow-wrap: anywhere; }
.rs-request-note svg { width: 15px; height: 15px; margin-top: 3px; }
.rs-detail-section { padding: 22px 24px; border-top: 1px solid #f1f3f5; }
.rs-detail-section>.section-title { font-size: 15px; margin-bottom: 17px; }
.rs-quantity-item { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; align-items: center; padding: 10px 0; }
.rs-quantity-item+.rs-quantity-item { border-top: 1px solid #f1f3f5; }
.rs-quantity-item b { font-size: 13px; font-weight: 600; }
.rs-quantity-item small { display: block; color: #98a2b3; font-size: 11px; font-weight: 400; margin-top: 4px; }
.rs-quantity-item dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rs-quantity-item dt { font-size: 10px; color: #98a2b3; }
.rs-quantity-item dd { font: 700 21px var(--font-manrope), sans-serif; margin-top: 7px; }
.rs-pending-number { color: #b45309; }
.rs-delivery-form { background: #fdfefe; }
.rs-delivery-line { padding: 16px; background: #f8fafc; border-radius: 12px; margin: 18px 0 22px; }
.rs-delivery-line>b { font-size: 13px; font-weight: 600; display: block; margin-bottom: 15px; }
.rs-delivery-line .rs-form-grid { grid-template-columns: minmax(0, 1fr) 130px; gap: 12px; }
.rs-delivery-form>.rs-field { margin-top: 20px; }
.rs-checkbox { display: flex; align-items: start; gap: 10px; font-size: 13px; line-height: 1.7; color: #64748b; margin-top: 20px; }
.rs-checkbox input { margin-top: 4px; accent-color: #c42329; min-height: auto; width: 16px; height: 16px; flex-shrink: 0; }
.rs-delivery-form>.rs-button { margin-top: 20px; }
.rs-inline-warning { color: #946200; font-size: 12px; margin-top: 10px; }
.rs-callout { display: flex; align-items: center; gap: 10px; padding: 16px 24px; background: #f1f5f9; color: #64748b; font-size: 13px; }
.rs-callout.success { background: #ecfdf5; color: #047857; }
.rs-callout.error { background: #fff1f2; color: #a51d23; border-radius: 12px; margin-bottom: 20px; }
.rs-delivery-event { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f1f3f5; }
.rs-event-icon { width: 27px; height: 27px; display: grid; place-items: center; background: #ecfdf5; color: #047857; border-radius: 50%; flex-shrink: 0; }
.rs-event-icon svg { width: 15px; height: 15px; }
.rs-delivery-event b { font-size: 12px; font-weight: 600; }
.rs-delivery-event p { font-size: 11px; color: #98a2b3; margin-top: 4px; }
.rs-delivery-event small { font-size: 10px; color: #98a2b3; }
.rs-separation-note { display: flex; gap: 8px; align-items: start; color: #98a2b3; font-size: 11px; margin-top: 20px; }
.rs-separation-note svg { width: 14px; height: 14px; }
.rs-history-row { display: grid; grid-template-columns: 35px minmax(130px, 1.1fr) minmax(130px, 1.1fr) minmax(125px, 1fr) 70px; gap: 16px; padding: 23px; align-items: start; border-top: 1px solid #f1f3f5; }
.rs-movement-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: #f1f5f9; }
.rs-movement-icon.in { background: #ecfdf5; }
.rs-movement-icon.out { background: #fffbeb; color: #b45309; }
.rs-history-material>small { color: #98a2b3; font-size: 11px; }
.rs-history-material h3 { font-size: 13px; font-weight: 650; margin-top: 5px; }
.rs-history-row p { font-size: 11px; color: #98a2b3; margin-top: 5px; line-height: 1.7; overflow-wrap: anywhere; }
.rs-history-destination>span { color: #98a2b3; font-size: 11px; }
.rs-history-destination p { display: flex; gap: 5px; color: #64748b; }
.rs-history-destination svg { width: 13px; height: 13px; margin-top: 3px; }
.rs-history-person b { font-size: 12px; font-weight: 550; }
.rs-history-quantity { text-align: right; font: 700 22px var(--font-manrope), sans-serif; }
.rs-history-quantity small { display: block; font: 400 11px var(--font-inter), sans-serif; color: #98a2b3; margin-top: 4px; }
.in { color: #047857; }
.rs-history-note { grid-column: 2 / -1; }
.rs-empty { background: white; border: 1px dashed #e3e6ea; border-radius: 16px; padding: 48px 24px; text-align: center; color: #667085; }
.rs-empty>svg { margin: 0 auto 16px; width: 27px; height: 27px; color: #94a3b8; }
.rs-empty h3 { font-size: 16px; font-weight: 700; color: #252a31; }
.rs-empty p { margin: 8px auto 0; max-width: 420px; font-size: 13px; line-height: 1.7; }
dialog { margin: auto; border: 0; background: white; color: #252a31; border-radius: 20px; box-shadow: 0 18px 50px rgb(16 24 40 / 18%); padding: 26px; width: min(630px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; }
dialog::backdrop { background: rgb(16 24 40 / 35%); backdrop-filter: blur(4px); }
.rs-dialog-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.rs-dialog-heading h2 { font-size: 21px; font-weight: 700; letter-spacing: -.5px; }
.rs-dialog-intro { color: #667085; font-size: 13px; line-height: 1.7; margin: 17px 0; }
.rs-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.rs-rule-section { border-top: 1px solid #f1f3f5; padding-top: 20px; margin-top: 20px; font-size: 13px; color: #667085; line-height: 1.75; }
.rs-rule-section ul { list-style: disc; padding-left: 20px; margin-top: 15px; }
.rs-rule-section li+li { margin-top: 7px; }
.rs-rule-section h3 { font-weight: 700; color: #252a31; margin-bottom: 9px; }
.rs-lot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 0; border-bottom: 1px solid #f1f3f5; }
.rs-lot-row b { font-size: 13px; font-weight: 650; }
.rs-lot-row p { font-size: 12px; color: #98a2b3; margin-top: 6px; }
.rs-lot-row strong { text-align: right; font-size: 23px; font-weight: 700; }
.rs-lot-row strong>small { display: block; font-size: 11px; color: #98a2b3; font-weight: 400; }
.rs-team-person { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f1f3f5; }
.rs-team-person b { font-size: 14px; font-weight: 600; }
.rs-team-person small { display: block; font-size: 12px; color: #98a2b3; margin-top: 5px; }
#mobile-menu { margin: 0; border-radius: 0 20px 20px 0; width: min(300px, calc(100vw - 16px)); max-height: 100dvh; height: 100dvh; padding: 22px 16px; }
#mobile-menu .rs-dialog-heading { margin: 0 10px 28px; }
#mobile-menu .rs-dialog-heading img { width: 150px; align-self: center; }
#mobile-menu>.rs-text-button { margin: 25px 12px; }
#toast { position: fixed; bottom: 24px; left: calc(50% + 124px); transform: translate(-50%, 10px); max-width: min(580px, calc(100vw - 32px)); width: max-content; padding: 15px 20px; border: 1px solid #e3e6ea; border-radius: 14px; background: white; color: #047857; box-shadow: 0 10px 30px rgb(16 24 40 / 12%); font-size: 13px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity 180ms, transform 180ms; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { color: #a51d23; }
.rs-skip { position: fixed; top: -70px; left: 20px; padding: 12px; background: white; z-index: 100; }
.rs-skip:focus { top: 10px; }
.rs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 1250px) {
  .rs-works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-team-link { min-width: 0; padding: 17px; max-width: 205px; }
  .rs-summary-photo { width: 115px; }
  .rs-summary-info { padding: 20px; }
  .rs-form-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; }
  .rs-request-line, .rs-request-line[data-ceramic="true"] { grid-template-columns: minmax(0, 1fr) 100px 36px; }
  .rs-request-line[data-ceramic="true"]>.rs-field:first-child { grid-column: 1 / -1; }
  .rs-delivery-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 16px; }
  .rs-quantity-item { grid-template-columns: minmax(0, 1fr); }
  .rs-delivery-line .rs-form-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-history-row { grid-template-columns: 32px minmax(140px, 1fr) minmax(140px, 1fr) 65px; }
  .rs-history-person { grid-column: 2 / 4; grid-row: 2; }
  .rs-history-quantity { grid-column: 4; grid-row: 1; }
}
@media (max-width: 1023px) {
  .rs-sidebar { display: none; }
  .rs-topbar { left: 0; padding: 0 24px; gap: 12px; box-shadow: 0 5px 18px rgb(16 24 40 / 8%); }
  .rs-menu-button, .rs-mobile-brand { display: flex !important; }
  .rs-mobile-brand img { width: 30px; height: 30px; object-fit: contain; }
  .rs-header-label { display: none; }
  .rs-scroll { height: calc(100dvh - 68px); margin-top: 68px; }
  .rs-scroll>main { padding: 26px 24px; }
  .rs-form-layout { grid-template-columns: minmax(0, 1fr); }
  .rs-context-card { padding: 0 5px; }
  .rs-context-card ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .rs-team-link { min-width: 190px; }
  #toast { left: 50%; }
}
@media (max-width: 760px) {
  .rs-scroll>main { padding: 24px 16px; }
  .rs-topbar { padding: 0 16px; }
  .rs-page-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
  .rs-page-heading .page-title { font-size: 28px; }
  .rs-description { font-size: 13px; }
  .rs-metrics { gap: 10px; }
  .rs-metric { padding: 16px 13px; }
  .rs-metric .metric-icon { display: none; }
  .rs-metric>div>span { font-size: 11px; min-height: 34px; }
  .rs-metric strong { font-size: 27px; }
  .rs-metric small { display: none; }
  .rs-work-summary { flex-wrap: wrap; }
  .rs-summary-photo { width: 105px; }
  .rs-summary-info { padding: 18px; }
  .rs-team-link { width: 100%; max-width: none; border-top: 1px solid #f1f3f5; padding: 15px 18px; display: grid; grid-template-columns: 87px minmax(0, 1fr); gap: 2px 12px; }
  .rs-team-avatars { grid-row: 1 / 3; margin: 0; align-self: center; }
  .rs-team-link>small { margin: 0; }
  .rs-panel>.rs-toolbar { padding: 16px; }
  .rs-panel .rs-search { flex-basis: 100%; }
  .rs-panel .rs-toolbar select, .rs-panel .rs-toolbar .rs-button { flex: 1; font-size: 12px; }
  .rs-stock-table, .rs-stock-table tbody { display: block; }
  .rs-stock-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rs-stock-table tr { display: grid; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr) max-content; padding: 17px; gap: 13px 8px; border: 0; --stock-action-space: 0px; }
  .rs-stock-table tr:has(.rs-material-actions > button:nth-child(1)) { --stock-action-space: 42px; }
  .rs-stock-table tr:has(.rs-material-actions > button:nth-child(2)) { --stock-action-space: 72px; }
  .rs-stock-table tr:has(.rs-material-actions > button:nth-child(3)) { --stock-action-space: 102px; }
  .rs-stock-table tr:has(.rs-material-actions > button:nth-child(4)) { --stock-action-space: 132px; }
  .rs-stock-table tbody tr:not(:last-child)::after { left: 17px; right: 17px; }
  .rs-stock-table td { padding: 0; border: 0; display: block; min-width: 0; }
  .rs-stock-table td:first-child { grid-column: 1 / 4; grid-row: 1; }
  .rs-stock-table td:nth-child(2) { grid-column: 1; grid-row: 2; align-self: center; white-space: nowrap; }
  .rs-stock-table td:nth-child(3) { grid-column: 2 / -1; grid-row: 2; align-self: center; margin-left: 8px; margin-right: var(--stock-action-space); }
  .rs-stock-table td:nth-child(4) { grid-column: 4; grid-row: 1; text-align: right; align-self: center; }
  .rs-stock-table td:nth-child(5) { grid-column: 2 / -1; grid-row: 2; width: max-content; justify-self: end; text-align: right; align-self: center; }
  .rs-stock-table td:nth-child(5) .rs-material-actions { justify-content: flex-end; gap: 0; }
  .rs-stock-table .rs-material-actions .rs-icon-button { min-width: 30px; width: 30px; flex: 0 0 30px; }
  .rs-locations-scroll { display: block; min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; --fade-left: 0px; --fade-right: 0px; mask-image: linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent); }
  .rs-locations-scroll::-webkit-scrollbar { display: none; }
  .rs-locations-scroll[data-fade-left] { --fade-left: 10px; }
  .rs-locations-scroll[data-fade-right] { --fade-right: 10px; }
  .rs-locations-scroll:focus-visible { outline: 2px solid rgb(196 35 41 / 35%); outline-offset: 2px; border-radius: 6px; }
  .rs-stock-table .rs-locations-button { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 10px; min-width: 100%; width: max-content; }
  .rs-stock-table .rs-locations-button > span { display: inline-flex; flex-shrink: 0; padding: 5px 0; white-space: nowrap; }
  .rs-stock-table .rs-locations-button b { display: inline; }
  .rs-material { min-width: 0; }
  .rs-form-section { padding: 20px; }
  .rs-form-actions { padding: 20px; flex-wrap: wrap; }
  .rs-form-actions .rs-button { margin-left: auto; }
  .rs-context-card ol { display: block; }
  .rs-delivery-layout { grid-template-columns: minmax(0, 1fr); }
  .rs-list-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .rs-list-header select { width: auto; margin: 0; }
  .rs-request-card { padding: 17px 20px; }
  .rs-detail-heading, .rs-detail-section { padding: 20px; }
  .rs-request-meta { padding: 0 20px 20px; }
  .rs-request-note { margin-left: 20px; margin-right: 20px; }
  .rs-history-row { grid-template-columns: 30px minmax(0, 1fr) 58px; padding: 18px; gap: 10px; }
  .rs-history-material { grid-column: 2; }
  .rs-history-quantity { grid-column: 3; }
  .rs-history-destination { grid-column: 2 / -1; grid-row: 2; }
  .rs-history-person { grid-column: 2 / -1; grid-row: 3; }
}
@media (max-width: 540px) {
  .rs-works-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-work-photo { height: 195px; }
  .rs-work-title h2 { font-size: 18px; }
  .rs-work-title .status-badge { font-size: 10px; }
  .rs-card-bottom { font-size: 11px; }
  .rs-work-numbers small { font-size: 11px; }
  .rs-form-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-request-meta { grid-template-columns: minmax(0, 1fr); }
  .rs-request-line { grid-template-columns: minmax(0, 1fr) 36px; }
  .rs-request-line>.rs-field:first-child { grid-column: 1 / -1; }
  .rs-request-line[data-ceramic="true"] { grid-template-columns: 1fr 1fr 36px; }
  .rs-delivery-form>.rs-button { width: 100%; font-size: 12px; }
  .rs-avatar { width: 31px; height: 31px; }
  .rs-topbar { gap: 10px; }
  .rs-summary-photo { width: 82px; }
  .rs-summary-info { padding: 16px; }
  .rs-summary-info .status-badge { font-size: 9px; line-height: 1.6; }
  .rs-summary-counts { gap: 7px; }
  .rs-summary-info>p { font-size: 11px; }
  .rs-summary-counts>span { width: 100%; }
  .rs-type-option { padding: 13px; }
  .rs-type-option small { font-size: 11px; }
  .rs-rule-section .rs-badge { white-space: normal; }
  .rs-detail-heading .rs-badge { max-width: 115px; white-space: normal; }
  dialog { padding: 22px; }
  .rs-dialog-heading h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Operação centrada na obra; formulários são ações dentro das três áreas. */
.rs-work-context { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #667085; font-size: 14px; margin: -4px 0 18px; }
.rs-work-context .rs-text-button { font-size: 14px; }
.rs-pending-link { display: inline-flex; max-width: 100%; min-height: 40px; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: 10px; padding: 6px 8px; margin: -8px 0 18px -8px; text-align: left; color: #667085; font-size: 13px; line-height: 1.5; }
.rs-pending-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; background: #fff1f2; color: #c42329; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.rs-pending-action { color: #c42329; font-size: 12px; font-weight: 600; margin-left: 4px; white-space: nowrap; }
.rs-pending-link>svg { width: 14px; height: 14px; color: #c42329; }
.rs-pending-link:hover { background: #f8fafc; }
.rs-stock-heading .rs-page-heading { flex-wrap: wrap; }
.rs-stock-actions, .rs-stock-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.rs-stock-actions .rs-pending-link { margin: 0; min-height: 44px; }
.rs-stock-catalog { display: flex; justify-content: flex-end; margin: -8px 0 8px; }
.rs-stock-filters.rs-orders-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
.rs-stock-filters > .rs-stock-buttons { flex-wrap: nowrap; }
.rs-stock-exit-actions { display: contents; }
.rs-location-mobile { display: inline-flex; }
.rs-stock-buttons.rs-stock-buttons-mobile-only { display: none; }
.rs-stock-filters > .rs-stock-buttons .rs-button { white-space: nowrap; min-height: 48px; }
.rs-stock-filter-tools { display: flex; position: relative; align-items: center; gap: 10px; }
.rs-stock-filter-tools > .rs-order-filters-root { position: static; }
.rs-stock-actions > .rs-location-action { min-height: 48px; }
.rs-stock-filters:not(:has(> .rs-stock-buttons:not(.rs-stock-buttons-mobile-only))) { grid-template-columns: minmax(0, 1fr) auto; }
.rs-stock-filter-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -12px 0 20px; }
.rs-stock-filter-tags[hidden] { display: none; }
.rs-stock-filter-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; min-width: 0; max-width: 100%; padding: 5px 10px; border: 0; border-radius: var(--rs-radius-compact); background: white; box-shadow: 0 0 10px rgb(16 24 40 / 2%); color: #667085; font-size: 12px; line-height: 1.5; }
.rs-stock-filter-tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-stock-filter-tag > svg { width: 13px; height: 13px; flex-shrink: 0; color: #98a2b3; }
.rs-stock-filter-tag:hover { background: #f8fafc; }
.rs-stock-filter-tag:hover > svg { color: var(--primary); }
.rs-stock-filter-tag:focus-visible { outline: 2px solid rgb(196 35 41 / 35%); outline-offset: 2px; }
@media (max-width: 1023px) {
  .rs-stock-filters.rs-orders-toolbar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 16px; }
  .rs-stock-filters > .rs-stock-buttons { grid-column: 1 / -1; grid-row: 1; flex-wrap: wrap; }
}

@media (max-width: 639px) {
  .rs-stock-heading .rs-heading-actions, .rs-stock-actions { width: 100%; }
  .rs-stock-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rs-stock-actions:has(> .rs-location-action:only-child) { display: none; }
  .rs-stock-buttons { width: 100%; gap: 8px; }
  .rs-stock-actions > .rs-location-action { display: none; }
  .rs-stock-buttons.rs-stock-buttons-mobile-only { display: flex; }
  .rs-stock-buttons > [data-action="new-entry"] { flex: 1 1 auto; }
  .rs-stock-buttons > [data-action="new-request"] { flex-basis: 100%; }
  .rs-stock-exit-actions { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 auto; }
  .rs-stock-exit-actions > [data-action="new-exit"] { flex: 1 1 auto; }
  .rs-location-mobile { display: inline-flex; width: 48px; flex: 0 0 48px; padding: 0; }
  .rs-location-mobile > span { display: none; }
  .rs-stock-actions .rs-pending-link { padding-left: 0; }
}
.rs-heading-actions { flex-wrap: wrap; }
.rs-form-layout { display: block; max-width: 900px; }
.rs-focused-page { max-width: 900px; }
.rs-field>span { font-size: 14px; }
/* Proporções, cores e movimento dos campos/Popover da referência Rocontec. */
.rs-orders-toolbar { display: flex; min-width: 0; gap: 12px; margin-bottom: 24px; }
.rs-order-search { position: relative; flex: 1; min-width: 0; }
.rs-order-search>svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #94a3b8; pointer-events: none; }
.rs-order-search input { width: 100%; height: 48px; min-height: 48px; padding: 4px 40px 4px 36px; border-radius: var(--rs-radius-control); background: white; transition: border-color 150ms; }
.rs-order-search input::-webkit-search-cancel-button { appearance: none; }
.rs-order-search>.rs-icon-button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; border-radius: var(--rs-radius-item); color: #94a3b8; }
.rs-order-search>.rs-icon-button:hover { background: #f8fafc; }
.rs-order-search>.rs-icon-button svg { width: 16px; height: 16px; }
.rs-order-filters-root { position: relative; flex-shrink: 0; z-index: 5; }
.rs-order-filters-trigger { position: relative; display: inline-flex; height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0; border-radius: var(--rs-radius-control); background: white; color: #334155; font-size: 14px; font-weight: 600; box-shadow: 0 0 10px rgb(16 24 40 / 2%); transition: background-color 150ms; }
.rs-order-filters-trigger>svg { width: 20px; height: 20px; color: #64748b; }
.rs-order-filters-trigger[data-active="true"]>svg { color: #c42329; }
.rs-order-filters-trigger:hover, .rs-order-filters-trigger[aria-expanded="true"] { background: #f8fafc; }
.rs-order-filters-trigger:active { background: #f1f5f9; }
.rs-order-filter-count { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #c42329; color: white; font-size: 10px; font-weight: 700; box-shadow: 0 0 0 2px white, 0 1px 3px rgb(16 24 40 / 10%); }
.rs-order-filters-panel { position: absolute; top: calc(100% + 8px); right: 0; width: min(340px, calc(100vw - 32px)); max-height: min(480px, calc(100dvh - 280px)); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border: 0; border-radius: var(--rs-radius-panel); background: white; box-shadow: 0 18px 50px rgb(16 24 40 / 14%), 0 0 0 1px rgb(0 0 0 / 5%); outline: none; transform-origin: top right; }
.rs-order-filters-panel[data-open] { animation: rs-order-filters-in 200ms ease-out both; }
.rs-order-filters-panel[data-closed] { animation: rs-order-filters-out 200ms ease-out both; pointer-events: none; }
.rs-order-filters-heading { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 0 12px; }
.rs-order-filters-heading h2 { font-size: 14px; font-weight: 700; color: #252a31; }
.rs-order-filters-heading>div { display: flex; align-items: center; gap: 4px; }
.rs-order-filters-clear { min-height: 36px; padding: 0 4px; border: 0; background: transparent; color: #c42329; font-size: 12px; font-weight: 600; }
.rs-order-filters-clear:hover { text-decoration: underline; }
.rs-order-filters-heading .rs-icon-button { border-radius: var(--rs-radius-item); color: #94a3b8; }
.rs-order-filters-heading .rs-icon-button:hover { background: #f8fafc; color: #252a31; }
.rs-order-filters-heading .rs-icon-button svg { width: 16px; height: 16px; }
.rs-order-filter-group { position: relative; border: 0; }
.rs-order-filter-group::before { content: ''; position: absolute; pointer-events: none; top: 0; left: 12px; right: 12px; height: 1px; background: linear-gradient(to right, #e2e8f0, transparent); }
.rs-order-filter-group h3>button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--rs-radius-item); background: transparent; color: #334155; text-align: left; font-size: 13px; font-weight: 600; }
.rs-order-filter-group h3>button:hover { background: transparent; }
.rs-order-filter-group h3 svg { width: 16px; height: 16px; color: #667085; transition: transform 200ms; }
.rs-order-filter-group h3>button[aria-expanded="true"] svg { transform: rotate(180deg); }
.rs-order-filter-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms cubic-bezier(.4, 0, .2, 1); }
.rs-order-filter-collapse[data-expanded] { grid-template-rows: 1fr; }
.rs-order-filter-collapse>div { min-height: 0; overflow: hidden; }
.rs-order-filter-collapse fieldset { display: grid; gap: 4px; margin: 0; padding: 0 4px 8px; border: 0; min-width: 0; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.rs-order-filter-choice { display: flex; min-height: 40px; align-items: center; gap: 12px; padding: 0 12px; border-radius: var(--rs-radius-item); color: #475569; font-size: 13px; cursor: pointer; transition: background-color 150ms, color 150ms; }
.rs-order-filter-choice:hover { background: #f8fafc; }
.rs-order-filter-choice:has(input:checked) { background: rgb(254 242 242 / 80%); color: #a51d23; font-weight: 600; }
.rs-order-filter-choice input[type="radio"] { appearance: none; flex-shrink: 0; width: 16px; height: 16px; min-height: 16px; padding: 0; margin: 0; border: 1px solid #d7dce2; border-radius: 50%; background: transparent; }
.rs-order-filter-choice input[type="radio"]:checked { border-color: #c42329; background: #c42329; }
.rs-order-filter-choice input[type="radio"]::after { width: 8px; height: 8px; background: white; }
.rs-order-filter-choice input:focus-visible { outline: 2px solid rgb(196 35 41 / 35%); outline-offset: 2px; }
.rs-order-filters-panel, .rs-order-filters-panel fieldset { scrollbar-width: none; }
.rs-order-filters-panel::-webkit-scrollbar, .rs-order-filters-panel fieldset::-webkit-scrollbar { display: none; }
.rs-stock-filter-search { position: relative; margin: 0 8px 8px; }
.rs-stock-filter-search svg { position: absolute; left: 12px; top: 12px; color: #94a3b8; width: 16px; height: 16px; pointer-events: none; }
.rs-stock-filter-search input { width: 100%; min-height: 40px; padding-left: 36px; border-radius: var(--rs-radius-item); }
.rs-stock-filter-empty { padding: 8px 12px; color: #98a2b3; font-size: 12px; }
.rs-order-filters-root button:focus-visible { outline: 2px solid rgb(196 35 41 / 35%); outline-offset: 0; }
.rs-order-empty { padding-bottom: 24px; text-align: center; }
.rs-order-empty>.rs-empty { border: 0; }
.rs-order-empty>.rs-text-button { margin: 0 auto; }
.rs-orders-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: stretch; }
.rs-orders-grid>.rs-empty { grid-column: 1 / -1; border: 0; }
.rs-orders-grid .rs-request-card { display: flex; flex-direction: column; align-items: stretch; gap: 16px; min-width: 0; padding: 20px 24px; border: 0; border-radius: 16px; background: white; box-shadow: var(--card-shadow); transition: transform 200ms cubic-bezier(.4, 0, .2, 1), box-shadow 200ms, background-color 150ms; }
.rs-orders-grid .rs-request-card:focus-visible { outline: 2px solid rgb(196 35 41 / 35%); outline-offset: 0; box-shadow: var(--card-shadow-hover); }
@media (hover: hover) and (pointer: fine) {
  .rs-orders-grid .rs-request-card:hover { background: white; transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
}
.rs-orders-grid .rs-request-card:active { transform: scale(.995); background: #f5f6f7; }
.rs-orders-grid [data-order-enter] { animation: rs-order-arrive 360ms cubic-bezier(.22, 1, .36, 1) var(--order-delay, 0ms) backwards; }
.rs-orders-grid [data-order-enter]:nth-child(2) { --order-delay: 55ms; }
.rs-orders-grid [data-order-enter]:nth-child(3) { --order-delay: 110ms; }
.rs-orders-grid [data-order-enter]:nth-child(4) { --order-delay: 165ms; }
.rs-orders-grid [data-order-enter]:nth-child(n+5) { --order-delay: 200ms; }
@keyframes rs-order-arrive { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes rs-order-filters-in { from { opacity: 0; transform: translateY(-8px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes rs-order-filters-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-8px) scale(.95); } }
@media (prefers-reduced-motion: reduce) {
  .rs-orders-grid .rs-request-card { transform: none !important; translate: none !important; }
}
.rs-orders-grid .rs-order-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rs-orders-grid .rs-order-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.rs-orders-grid .rs-request-card .rs-order-reference { margin: 0; color: var(--foreground); font-size: 18px; line-height: 1.4; font-weight: 650; }
.rs-orders-grid .rs-request-card .rs-order-materials { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 10px; margin: 0; line-height: 1.5; }
.rs-orders-grid .rs-order-item-count { color: #667085; font-size: 12px; font-weight: 500; }
.rs-orders-grid .rs-order-material { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 20px; }
.rs-orders-grid .rs-order-material-name { min-width: 0; }
.rs-orders-grid .rs-order-material-name strong { display: block; color: #475467; font-size: 14px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.rs-orders-grid .rs-order-material-name small { display: block; margin-top: 3px; color: #667085; font-size: 12px; }
.rs-orders-grid .rs-order-quantity { max-width: 160px; color: #475467; font-size: 13px; text-align: right; }
.rs-orders-grid .rs-order-quantity strong { color: #475467; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rs-orders-grid .rs-order-quantity small { display: block; margin-top: 2px; color: #667085; font-size: 12px; }
.rs-orders-grid .rs-order-more { color: #667085; font-size: 12px; }
.rs-orders-grid .rs-request-card .rs-order-context { display: grid; justify-content: stretch; gap: 4px; }
.rs-orders-grid .rs-request-card .rs-order-destination { margin: 0; color: #475467; font-size: 14px; line-height: 1.5; }
.rs-orders-grid .rs-request-card .rs-order-person, .rs-orders-grid .rs-request-card .rs-order-pickup { margin: 0; color: #667085; font-size: 12px; line-height: 1.5; }
.rs-orders-grid .rs-order-footer { display: flex; justify-content: flex-end; align-items: center; margin: 0; gap: 12px; flex-wrap: wrap; }
.rs-orders-grid .rs-request-card .rs-order-time { color: #667085; font-size: 12px; white-space: nowrap; }
.rs-orders-grid .rs-request-card .rs-order-open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #a51d23; }
.rs-orders-grid .rs-order-open svg { color: inherit; }
@media (min-width: 1024px) {
  .rs-orders-grid .rs-request-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) 112px; gap: 8px 32px; align-items: start; }
  .rs-orders-grid .rs-order-top, .rs-orders-grid .rs-order-footer { display: contents; }
  .rs-orders-grid .rs-order-heading { grid-column: 1; grid-row: 1; align-self: center; }
  .rs-orders-grid .rs-order-top>.rs-badge { grid-column: 3; grid-row: 1; justify-self: end; }
  .rs-orders-grid .rs-request-card .rs-order-materials { grid-column: 2; grid-row: 1 / 3; min-width: 0; }
  .rs-orders-grid .rs-request-card .rs-order-context { grid-column: 1; grid-row: 2; min-width: 0; gap: 6px; }
  .rs-orders-grid .rs-order-open { grid-column: 3; grid-row: 2; align-self: center; justify-self: end; }
}
.rs-entry-line { padding: 24px; margin-top: 16px; background: var(--card); border-radius: 16px; box-shadow: var(--card-shadow); }
#entry-lines>.rs-entry-line:first-child { margin-top: 0; }
.rs-issue-line { padding: 24px; margin-top: 16px; background: var(--card); border-radius: 16px; box-shadow: var(--card-shadow); }
#exit-lines>.rs-issue-line:first-child { margin-top: 0; }
.rs-issue-line .rs-form-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.rs-issue-line input, .rs-issue-line select, .rs-issue-line .rs-select-trigger { background: var(--field); }
.rs-issue-line :is(.rs-exit-origin, .rs-exit-origin-summary)[hidden] { display: none; }
.rs-exit-origin-summary { margin: -4px 0 0; overflow-wrap: anywhere; }
.rs-exit-balance:empty { display: none; }
.rs-line-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.rs-line-heading h3 { font-size: 16px; font-weight: 700; color: var(--foreground); }
.rs-entry-line .rs-form-grid { gap: 14px; }
.rs-operation-item { position: relative; }
.rs-operation-item[data-operation-leave] { min-height: 0; overflow: clip; pointer-events: none; }
.rs-operation-item-remove { position: absolute; top: 14px; right: 14px; }
.rs-operation-item .rs-line-heading { padding-right: 26px; }
.rs-operation-item-remove[hidden] { display: none; }
#entry-form .rs-operation-body, #exit-form .rs-operation-body { overflow-anchor: none; }
.rs-operation-item[data-operation-enter] { animation: rs-request-line-appear 360ms cubic-bezier(.22, .8, .25, 1); }
.rs-operation-item[data-operation-enter] .rs-line-heading,
.rs-operation-item[data-operation-enter] .rs-form-grid > * { animation: rs-disclosure-field-in 240ms cubic-bezier(.2, .7, .2, 1) 60ms both; }
.rs-operation-item[data-operation-enter] .rs-form-grid > :nth-child(2) { animation-delay: 90ms; }
.rs-operation-item[data-operation-enter] .rs-form-grid > :nth-child(3) { animation-delay: 120ms; }
.rs-operation-item[data-operation-enter] .rs-form-grid > :nth-child(n+4) { animation-delay: 150ms; }
@supports (interpolate-size: allow-keywords) {
  .rs-operation-item[data-operation-enter] { interpolate-size: allow-keywords; min-block-size: 0; overflow: clip; animation-name: rs-request-line-expand; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-operation-item[data-operation-enter], .rs-operation-item[data-operation-enter] * { animation: none !important; }
}
.rs-entry-shared-details { margin-top: 16px; }
#entry-form .rs-entry-shared-details > summary { display: flex; align-items: center; justify-content: flex-start; }
.rs-entry-shared-details .rs-field { margin-top: 12px; }

.rs-entry-line input, .rs-entry-line select { background: var(--field); }
.rs-entry-line .rs-entry-equivalence { margin: -4px 0 0; color: #475569; }
.rs-entry-equivalence:empty { display: none; }
.rs-request-balance { display: block; font-size: 12px; font-weight: 400; color: #667085; line-height: 1.5; margin-top: 5px; }
.rs-reference-note, .rs-destination-summary { padding: 14px 16px; margin: 16px 0; border-radius: 12px; background: #f8fafc; color: #475569; font-size: 13px; line-height: 1.6; }
.rs-destination-summary>div+div { margin-top: 12px; }
.rs-delivery-item { margin: 16px 0 24px; }
.rs-delivery-item>b { display: block; font-size: 14px; }
.rs-delivery-item>.rs-text-button { margin-top: 10px; }
.rs-delivery-item .rs-delivery-allocation { padding: 14px; margin-top: 10px; border: 0; border-radius: 12px; background: #f8fafc; }
.rs-delivery-allocation select, .rs-delivery-allocation input { background: var(--field); }
.rs-delivery-allocation>.rs-text-button { margin-top: 8px; font-size: 12px; }
.rs-record-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; }
.rs-record-actions .rs-text-button { font-size: 12px; min-height: 28px; }
.rs-movement-group { padding: 16px 0; }
.rs-movement-group+.rs-movement-group { border-top: 1px solid #eef0f2; }
.rs-group-label { color: #667085; font-size: 12px; font-weight: 600; }
.rs-history-panel>.rs-movement-group { padding: 20px 24px; }
.rs-history-panel { border-radius: 16px; }
/* History shares the stock group shell; quantities belong to individual materials. */
.rs-history-item-list { padding: 4px 0; }
.rs-history-item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; width: 100%; padding: 18px 20px; text-align: left; transition: background 160ms ease; }
.rs-history-item + .rs-history-item::before { content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, #e5e8ec 75%, transparent); }
.rs-history-item-photo { display: block; width: 44px; height: 44px; flex-shrink: 0; }
.rs-history-item-photo :is(.rs-material-thumbnail, .rs-material-photo-empty) { border: 2px solid white; border-radius: 10px; box-shadow: 0 2px 7px rgb(16 24 40 / 12%); }
.rs-history-item-name { min-width: 0; }
.rs-history-item-name > strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.rs-history-item-name > small { display: block; font-size: 12px; color: var(--muted-foreground); line-height: 1.5; }
.rs-history-item-totals { display: flex; align-items: center; gap: 24px; }
.rs-history-item-stat { display: grid; gap: 3px; min-width: 80px; }
.rs-history-item-stat > span { color: var(--muted-foreground); font-size: 11px; font-weight: 400; }
.rs-history-item-stat > strong { color: var(--foreground); font-size: 16px; font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; }
.rs-history-item-stat small { font-size: 11px; font-weight: 400; color: var(--muted-foreground); }
.rs-history-item-extra { grid-column: 2 / -1; color: var(--muted-foreground); font-size: 11px; line-height: 1.5; }
.rs-history-item:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; border-radius: 12px; }
@media (hover: hover) { .rs-history-item:hover { background: #eef1f5; } }
.rs-history-item:active { background: #e9edf2; }
.rs-history-material-dialog .rs-operation-body { background: var(--background); }
.rs-history-material-heading { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 14px; padding: 20px; border-radius: 16px; background: var(--card); box-shadow: var(--card-shadow); }
.rs-history-material-heading h3 { margin: 0; color: var(--foreground); font-size: 15px; font-weight: 600; line-height: 1.5; }
.rs-history-material-heading p { margin: 0; font-size: 12px; color: var(--muted-foreground); }
.rs-history-material-heading .rs-history-item-totals { grid-column: 2; }
.rs-history-period { grid-column: 1 / -1; color: var(--muted-foreground); font-size: 11px; }
.rs-history-timeline { display: grid; gap: 12px; }
.rs-movement-detail-dialog .rs-operation-body { background: var(--background); padding-bottom: 24px; }
.rs-movement-detail-card { padding: 24px; min-width: 0; background: var(--card); border-radius: 16px; box-shadow: var(--card-shadow); }
.rs-movement-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rs-movement-heading .rs-order-time { font-size: 11px; }
.rs-movement-material { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.rs-movement-material .rs-history-item-photo { width: 52px; height: 52px; }
.rs-movement-material > div { min-width: 0; }
.rs-movement-material h3 { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.rs-movement-material p { margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted-foreground); }
.rs-movement-quantity { font-size: 16px; font-weight: 650; color: var(--foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-movement-quantity small { font-size: 12px; font-weight: 400; color: var(--muted-foreground); }
.rs-movement-detail-body { position: relative; display: grid; gap: 18px; margin-top: 20px; padding-top: 20px; }
.rs-movement-detail-body::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, #e5e9ef 75%, transparent); pointer-events: none; }
.rs-movement-route { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--background); border-radius: 12px; min-width: 0; }
.rs-movement-place { flex: 1; min-width: 0; }
.rs-movement-place > span { display: block; color: var(--muted-foreground); font-size: 11px; margin-bottom: 5px; }
.rs-movement-place > strong { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.5; font-weight: 550; overflow-wrap: anywhere; }
.rs-movement-place svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--muted-foreground); }
.rs-movement-route-arrow { display: flex; color: #98a2b3; flex-shrink: 0; }
.rs-movement-route-arrow svg { width: 16px; height: 16px; }
#info-dialog :is(.rs-history-event, .rs-movement-detail-card) .rs-movement-detail-body .rs-dialog-facts { margin: 0; gap: 10px; }
#info-dialog .rs-movement-detail-body .rs-dialog-facts > div { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 12px; }
.rs-movement-recorded { margin: 0; font-size: 11px; color: var(--muted-foreground); line-height: 1.6; }
.rs-fixed-material { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0; }
.rs-fixed-material .rs-history-item-photo { width: 52px; height: 52px; }
.rs-fixed-material > div { min-width: 0; }
.rs-fixed-material strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.rs-fixed-material small { display: block; color: var(--muted-foreground); font-size: 12px; margin-top: 2px; line-height: 1.5; }
.rs-material-initial-stock, .rs-initial-stock-location, .rs-initial-stock-new-location { display: grid; gap: 20px; margin-top: 20px; }
.rs-form-grid > .rs-material-initial-stock { grid-column: 1 / -1; margin-top: 0; }
.rs-initial-stock-location[hidden], .rs-initial-stock-new-location[hidden] { display: none; }
.rs-initial-stock-location, .rs-initial-stock-new-location { margin-top: 0; }
#request-form .rs-replacement-line { gap: 18px; }
.rs-replacement-line > .rs-fixed-material { grid-column: 1 / -1; }
#request-form .rs-replacement-line .rs-request-balance { margin: -8px 0 0; font-size: 12px; color: var(--muted-foreground); line-height: 1.5; }
.rs-fixed-destination { display: grid; gap: 6px; min-width: 0; }
.rs-fixed-destination > span { font-size: 12px; color: var(--muted-foreground); }
.rs-fixed-destination > strong { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.rs-fixed-destination svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--muted-foreground); }
.rs-reversal-dialog .rs-operation-body { background: var(--background); }
.rs-resolution-card { padding: 20px; background: var(--card); border-radius: 16px; box-shadow: var(--card-shadow); }
.rs-resolution-recorded-quantity { font-size: 12px; color: var(--muted-foreground); text-align: right; }
.rs-resolution-fields { display: grid; gap: 18px; }
.rs-reversal-preview { display: grid; gap: 14px; padding: 16px; border-radius: 12px; background: var(--background); }
.rs-reversal-preview[hidden] { display: none; }
.rs-reversal-preview > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rs-reversal-preview span, .rs-reversal-preview p { font-size: 12px; color: var(--muted-foreground); line-height: 1.5; margin: 0; }
.rs-reversal-preview strong { font-size: 16px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-reversal-preview strong small { font-size: 12px; font-weight: 400; }
.rs-reversal-dialog .rs-form-error:empty { display: none; }
@media(max-width:639px) {
  .rs-resolution-card { padding: 16px; }
  .rs-fixed-material { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .rs-fixed-material .rs-history-item-photo { width: 48px; height: 48px; }
}
.rs-movement-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.rs-movement-actions > .rs-text-button { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.rs-movement-actions > .rs-text-button svg { width: 15px; height: 15px; }
.rs-movement-menu { position: relative; margin-left: auto; }
.rs-movement-menu > button { width: 32px; height: 32px; }
#info-dialog .rs-movement-menu-panel { position: absolute; top: auto; bottom: calc(100% + 6px); left: auto; right: 0; width: 232px; max-width: calc(100vw - 80px); transform: none; transform-origin: bottom right; z-index: 5; }
.rs-movement-menu-panel .rs-account-item { font-size: 12px; }
.rs-movement-detail-dialog > .rs-dialog-heading { gap: 8px; }
.rs-movement-detail-dialog > .rs-dialog-heading h2 { flex: 1; min-width: 0; }
.rs-movement-header-menu { flex-shrink: 0; }
.rs-movement-header-menu > button { width: 36px; height: 36px; color: #94a3b8; }
#info-dialog .rs-movement-header-menu .rs-movement-menu-panel { top: calc(100% + 8px); bottom: auto; right: -44px; max-height: min(360px, calc(100dvh - 180px)); transform-origin: top right; }
.rs-movement-menu-label { margin: 0; padding: 10px 12px 4px; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.rs-movement-menu-label small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.5; font-weight: 400; color: var(--muted-foreground); }
.rs-movement-menu-panel > [role="group"] + [role="group"] { border-top: 1px solid var(--border); margin-top: 4px; }
.rs-history-event-type.return { color: #0369a1; }
.rs-history-event-type.reverse { color: #be123c; }
#info-dialog .rs-movement-disclosure { padding: 0; margin: 0; border: 0; min-width: 0; }
#info-dialog .rs-movement-disclosure > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 10px; align-items: center; gap: 7px 12px; padding: 18px 20px; color: var(--foreground); border-radius: 16px; }
#info-dialog .rs-movement-disclosure > summary:hover { color: var(--foreground); background: #f9fafb; }
#info-dialog .rs-movement-disclosure > summary::after { grid-column: 4; grid-row: 1 / 3; justify-self: end; margin-right: 2px; color: #98a2b3; }
.rs-movement-disclosure > summary > .rs-movement-quantity { font-size: 14px; }
.rs-movement-disclosure > summary > .rs-order-time { grid-column: 3; grid-row: 1; font-size: 11px; font-weight: 400; }
.rs-movement-context { grid-column: 1 / 4; font-size: 12px; line-height: 1.5; font-weight: 400; color: var(--muted-foreground); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rs-movement-disclosure > summary > .rs-history-event-correction { grid-column: 1 / 4; margin: 0; font-size: 11px; font-weight: 400; }
.rs-movement-disclosure > .rs-movement-detail-body { margin: 0; padding: 18px 20px 20px; }
.rs-movement-disclosure > .rs-movement-detail-body::before { left: 20px; right: 20px; }
@media(max-width:639px) {
  .rs-movement-detail-card { padding: 16px; }
  .rs-movement-material { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; }
  .rs-movement-material .rs-history-item-photo { width: 48px; height: 48px; grid-row: 1 / 3; }
  .rs-movement-material > .rs-movement-quantity { grid-column: 2; font-size: 15px; }
  .rs-movement-heading { margin-bottom: 16px; }
  .rs-movement-route { padding: 12px; gap: 8px; }
  .rs-movement-place > strong { font-size: 11px; gap: 4px; }
  #info-dialog .rs-movement-detail-body .rs-dialog-facts > div { grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
  #info-dialog .rs-movement-disclosure > summary { grid-template-columns: minmax(0, 1fr) auto 8px; padding: 16px; gap: 6px 8px; }
  #info-dialog .rs-movement-disclosure > summary::after { grid-column: 3; }
  .rs-movement-disclosure > summary > .rs-order-time { grid-column: 2; grid-row: 1; text-align: right; font-size: 10px; }
  .rs-movement-disclosure > summary > .rs-movement-quantity { grid-column: 2; grid-row: 2; text-align: right; font-size: 13px; }
  .rs-movement-disclosure > summary > .rs-movement-quantity small { font-size: 11px; }
  .rs-movement-context { grid-column: 1; grid-row: 2; font-size: 11px; }
  .rs-movement-disclosure > summary > .rs-history-event-correction { grid-column: 1 / 3; }
  .rs-movement-disclosure > .rs-movement-detail-body { padding: 16px; }
  .rs-movement-disclosure > .rs-movement-detail-body::before { left: 16px; right: 16px; }
}
.rs-history-event { padding: 20px; background: var(--card); border-radius: 16px; box-shadow: var(--card-shadow); min-width: 0; }
.rs-history-event > header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 14px; }
.rs-history-event-type { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-foreground); font-size: 12px; font-weight: 600; }
.rs-history-event-type svg { width: 16px; height: 16px; }
.rs-history-event-type.in { color: #15803d; }
.rs-history-event-type.out { color: #b45309; }
.rs-history-event > header > strong { margin-left: auto; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rs-history-event > header > strong > small { color: var(--muted-foreground); font-size: 11px; font-weight: 400; }
.rs-history-event .rs-dialog-facts { gap: 8px; margin: 0; }
.rs-history-event .rs-dialog-facts > div { grid-template-columns: 100px minmax(0, 1fr); font-size: 12px; gap: 10px; }
.rs-history-event > .rs-form-more { margin-top: 14px; }
.rs-history-event-correction { margin: 10px 0 0; font-size: 12px; color: var(--muted-foreground); }
@media (max-width: 639px) {
  .rs-history-item { padding: 16px; gap: 6px 12px; }
  .rs-history-item + .rs-history-item::before { left: 16px; right: 16px; }
  .rs-history-item { grid-template-columns: 44px minmax(0, 1fr); }
  .rs-history-item > .rs-history-item-totals { grid-column: 2; gap: 20px; flex-wrap: wrap; }
  .rs-history-item-stat { min-width: 0; }
  .rs-history-material-heading, .rs-history-event { padding: 16px; }
  .rs-history-group-counts { line-height: 1.5; }
  .rs-history-event .rs-dialog-facts > div { grid-template-columns: 82px minmax(0, 1fr); }
  .rs-history-event > header > .rs-order-time { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .rs-history-item { transition: none; } }
.rs-history-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 8px 12px; }
.rs-history-dates[hidden] { display: none; }
.rs-history-dates label { display: grid; min-width: 0; gap: 6px; color: #667085; font-size: 11px; }
.rs-history-dates input { width: 100%; min-width: 0; }
.rs-history-compact { overflow: hidden; box-shadow: var(--card-shadow); }
.rs-history-compact > .rs-preview-list { padding: 8px; }
.rs-history-activity { margin-bottom: 24px; }
:is(.rs-history-activity-scroll, .rs-dashboard-preview-scroll) { max-height: 360px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; scroll-padding-block: 20px; --fade-top: 0px; --fade-bottom: 0px; mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent); }
:is(.rs-history-activity-scroll, .rs-dashboard-preview-scroll)[data-fade-top] { --fade-top: 20px; }
:is(.rs-history-activity-scroll, .rs-dashboard-preview-scroll)[data-fade-bottom] { --fade-bottom: 20px; }
:is(.rs-history-activity-scroll, .rs-dashboard-preview-scroll):focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; border-radius: 12px; }
@media (max-width: 639px) { :is(.rs-history-activity-scroll, .rs-dashboard-preview-scroll) { max-height: 320px; } }
@media (min-width: 1024px) {
  .rs-history-groups { gap: 24px; }
  .rs-history-group .rs-stock-group-trigger { gap: 24px; padding-right: 24px; }
  .rs-history-group .rs-stock-group-trigger .rs-stock-group-name { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .rs-history-group .rs-stock-group-trigger .rs-stock-group-title { column-gap: 12px; }
  .rs-history-group .rs-stock-group-trigger .rs-history-group-counts { flex-shrink: 0; text-align: right; }
}
.rs-preview-activity { grid-template-columns: 52px minmax(0, 1fr); align-items: center; }
.rs-history-compact .rs-preview-row { padding: 18px 16px; gap: 14px; }
.rs-movement-photo { position: relative; display: block; width: 48px; height: 48px; }
.rs-movement-photo-frame { display: block; width: 100%; height: 100%; overflow: hidden; border: 2px solid white; border-radius: 10px; background: #f5f6f8; box-shadow: 0 2px 7px rgb(16 24 40 / 12%); }
.rs-movement-photo-frame > .rs-material-thumbnail { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; }
.rs-movement-photo-empty { display: grid; place-items: center; width: 100%; height: 100%; color: #a4adb8; }
.rs-movement-photo-empty svg { width: 21px; height: 21px; }
.rs-movement-photo-badge { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 21px; height: 21px; border: 2px solid white; border-radius: 50%; background: #f1f3f5; color: #64748b; box-shadow: 0 1px 4px rgb(16 24 40 / 10%); }
.rs-movement-photo-badge svg { width: 12px; height: 12px; stroke-width: 2; }
.rs-movement-photo-badge.in { background: #dcfce7; color: #15803d; }
.rs-movement-photo-badge.out { background: #fef3c7; color: #b45309; }
.rs-movement-photo-badge.return { background: #e0f2fe; color: #0369a1; }
.rs-movement-photo-badge.reverse { background: #ffe4e6; color: #be123c; }
.rs-preview-activity .rs-preview-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
.rs-preview-activity .rs-preview-reference { grid-column: 1; }
.rs-preview-activity .rs-preview-content > strong { grid-column: 1; }
.rs-preview-activity .rs-preview-meta { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end; margin: 0; }
.rs-preview-activity .rs-preview-correction { grid-column: 1; }
.rs-history-compact .rs-preview-row + .rs-preview-row::before { left: 16px; right: 16px; }
@media (max-width: 639px) {
  .rs-history-compact > .rs-preview-list { padding: 6px; }
  .rs-preview-activity { grid-template-columns: 48px minmax(0, 1fr); }
  .rs-history-compact .rs-preview-row { padding: 14px 10px; gap: 10px; }
  .rs-movement-photo { width: 44px; height: 44px; }
  .rs-preview-activity .rs-preview-content { column-gap: 10px; }
  .rs-history-compact .rs-preview-row + .rs-preview-row::before { left: 10px; right: 10px; }
}
.rs-entry-line .rs-entry-equivalence { grid-column: 1 / -1; }
.rs-order-materials { overflow-wrap: anywhere; }
.rs-orders-grid .rs-request-card.rs-request-compact { display: block; padding: 0; cursor: default; }
.rs-orders-grid .rs-request-card.rs-request-compact:active { transform: none; background: white; }
.rs-request-compact > .rs-order-compact-header { width: 100%; text-align: left; border-radius: inherit; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px 24px; }
.rs-order-summary-toggle { display: flex; align-items: center; gap: 16px; flex: 1 1 220px; min-width: 0; text-align: left; border-radius: 6px; }
.rs-order-summary-copy { display: grid; gap: 5px; flex: 1; min-width: 0; }
.rs-order-photo-preview { position: relative; display: block; flex: 0 0 52px; width: 52px; height: 60px; }
.rs-order-photo-preview[data-photo-count="2"] { flex-basis: 68px; width: 68px; }
.rs-order-photo-preview[data-photo-count="3"] { flex-basis: 84px; width: 84px; }
.rs-order-photo-card { position: absolute; top: 6px; left: 2px; display: block; width: 48px; height: 48px; border: 2px solid white; border-radius: 10px; background: var(--field); box-shadow: 0 2px 7px rgb(16 24 40 / 12%); overflow: hidden; }
.rs-order-photo-preview:not([data-photo-count="1"]) .rs-order-photo-card:first-child { left: 4px; transform: rotate(-9deg); z-index: 1; }
.rs-order-photo-card:nth-child(2) { left: 18px; transform: rotate(6deg); z-index: 2; }
.rs-order-photo-preview[data-photo-count="3"] .rs-order-photo-card:nth-child(2) { transform: rotate(0deg); }
.rs-order-photo-card:nth-child(3) { left: 32px; transform: rotate(9deg); z-index: 3; }
.rs-order-photo-card .rs-order-photo, .rs-order-photo-empty { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.rs-order-photo-empty { display: grid; place-items: center; color: #98a2b3; }
.rs-request-card .rs-order-photo-empty svg { width: 22px; height: 22px; }
.rs-order-compact-title-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rs-order-status-time { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rs-order-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
@media(max-width:639px) {
  .rs-request-compact .rs-order-badges { grid-column: 3; grid-row: 1; min-width: 0; flex-wrap: nowrap; justify-content: flex-start; align-items: center; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; --fade-left: 0px; --fade-right: 0px; mask-image: linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent); }
  .rs-request-compact .rs-order-badges::-webkit-scrollbar { display: none; }
  .rs-request-compact .rs-order-badges[data-fade-left] { --fade-left: 10px; }
  .rs-request-compact .rs-order-badges[data-fade-right] { --fade-right: 10px; }
  .rs-request-compact .rs-order-status-time .rs-order-badges .rs-badge { flex-shrink: 0; max-width: none; white-space: nowrap; }
}
.rs-order-compact-title-line .rs-order-compact-title { white-space: nowrap; }
.rs-order-compact-title { font-size: 15px; font-weight: 600; color: var(--foreground); }
.rs-order-compact-context { color: #667085; font-size: 12px; line-height: 1.5; }
.rs-order-compact-meta { color: #475467; font-size: 13px; line-height: 1.5; font-weight: 500; }
.rs-order-compact-context, .rs-order-compact-meta { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rs-order-compact-actions { flex-shrink: 0; margin-left: auto; align-self: center; }
.rs-order-compact-actions > .rs-order-status-time { display: flex; align-items: center; gap: 12px; }
.rs-order-compact-actions .rs-text-button { font-size: 13px; min-height: 32px; }
@media(max-width:639px) {
  .rs-request-compact > .rs-order-compact-header { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; padding: 16px; gap: 5px 6px; }
  .rs-request-compact .rs-order-summary-toggle,
  .rs-request-compact .rs-order-summary-copy,
  .rs-request-compact .rs-order-compact-title-line,
  .rs-request-compact .rs-order-compact-actions,
  .rs-request-compact .rs-order-status-time { display: contents; }
  .rs-request-compact .rs-order-compact-title { grid-column: 2; grid-row: 1; align-self: center; }
  .rs-request-compact .rs-order-status-time .rs-badge { grid-column: 3; grid-row: 1; justify-self: start; align-self: center; min-width: 0; max-width: 100%; white-space: normal; }
  .rs-request-compact .rs-order-status-time .rs-order-time { grid-column: 4; grid-row: 1; justify-self: end; align-self: center; }
  .rs-request-compact .rs-order-photo-preview { grid-column: 1; grid-row: 1 / 4; align-self: center; margin-right: 6px; }
  .rs-request-compact .rs-order-compact-meta { grid-column: 2 / 5; grid-row: 2; }
  .rs-request-compact .rs-order-compact-context { grid-column: 2 / 5; grid-row: 3; }
  .rs-order-summary-toggle { gap: 12px; }
  .rs-order-status-time { gap: 6px; }
  .rs-order-status-time .rs-badge { font-size: 10px; padding-left: 6px; padding-right: 6px; }
  .rs-orders-grid .rs-request-card .rs-order-status-time .rs-order-time { font-size: 11px; }
}
.rs-history-panel .rs-delivery-event { align-items: flex-start; }
.rs-delivery-event>div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .rs-orders-grid .rs-order-material { gap: 14px; }
  .rs-orders-grid .rs-order-quantity { max-width: 120px; }
  .rs-entry-line, .rs-issue-line { padding: 20px; }
  .rs-section-heading { flex-wrap: wrap; gap: 12px; }
}
.rs-system-panel { border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.rs-system-page { display: grid; gap: 28px; padding-bottom: 32px; }
.rs-system-page > .rs-page-heading { margin-bottom: 0; }
.rs-system-page .rs-system-panel { min-width: 0; border-radius: var(--rs-radius-panel); margin: 0; }
.rs-system-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rs-system-metrics .rs-overview-metric { padding: 20px; }
.rs-system-metrics .rs-overview-metric-value { margin-bottom: 0; }
.rs-system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rs-system-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.rs-system-panel-heading > div { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1 1 200px; }
.rs-system-panel-heading .section-title { margin: 0; }
.rs-system-panel-heading p { color: var(--muted-foreground); font-size: 14px; line-height: 20px; margin: 4px 0 0; }
.rs-system-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--rs-radius-control); background: #f1f5f9; color: #475569; }
.rs-system-icon svg { width: 20px; height: 20px; }
.rs-system-icon.accent { color: #c42329; background: #fff1f2; }
.rs-system-status { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 10px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600; background: #f1f5f9; color: #475569; }
.rs-system-status svg { width: 14px; height: 14px; }
.rs-system-status.good { background: #ecfdf5; color: #047857; }
.rs-system-status.error { background: #fff1f2; color: #be123c; }
.rs-system-description { font-size: 14px; line-height: 24px; color: var(--muted-foreground); margin: 20px 0 0; }
.rs-system-rows { display: grid; gap: 12px; margin: 20px 0 0; font-size: 14px; line-height: 20px; }
.rs-system-rows > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.rs-system-rows dt { color: var(--muted-foreground); }
.rs-system-rows dd { margin: 0; font-weight: 500; text-align: right; color: #252a31; font-variant-numeric: tabular-nums; }
.rs-system-inline-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; padding: 12px 16px; border-radius: var(--rs-radius-control); font-size: 14px; color: #475569; background: rgb(248 250 252 / 80%); }
.rs-system-footnote { margin: 16px 0 0; font-size: 12px; line-height: 20px; color: var(--muted-foreground); }
.rs-system-small-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 0; padding: 16px; border-radius: var(--rs-radius-control); background: rgb(248 250 252 / 80%); }
.rs-system-small-metrics dt { font-size: 12px; color: var(--muted-foreground); }
.rs-system-small-metrics dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; }
.rs-system-ai-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.rs-system-ai-periods > article, .rs-system-inset { background: rgb(248 250 252 / 80%); padding: 20px; border-radius: var(--rs-radius-panel); }
.rs-system-ai-periods h3 { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; color: #64748b; }
.rs-system-period-value { display: block; margin-top: 8px; font-size: 20px; letter-spacing: -.025em; }
.rs-system-period-unit { margin: 0; font-size: 12px; color: var(--muted-foreground); }
.rs-system-ai-periods .rs-system-rows { gap: 8px; margin-top: 16px; }
.rs-system-quotas { display: grid; gap: 20px; margin-top: 24px; }
.rs-system-quotas > div > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rs-system-quotas strong { font-size: 14px; font-weight: 500; }
.rs-system-quotas span { font-size: 12px; color: var(--muted-foreground); }
.rs-system-quota-track { margin-top: 8px; height: 8px; border-radius: 999px; background: #f1f5f9; }
.rs-system-inset { margin-top: 24px; }
.rs-system-inset-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rs-system-inset-heading h3 { margin: 0; font-size: 14px; font-weight: 700; }
.rs-system-inset-heading span { font-size: 12px; color: var(--muted-foreground); }
.rs-system-email-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; margin: 0; }
.rs-system-email-counts dt { font-size: 12px; color: var(--muted-foreground); overflow-wrap: anywhere; }
.rs-system-email-counts dd { margin: 4px 0 0; font-size: 18px; line-height: 24px; font-weight: 700; }
.rs-system-health-rows { display: grid; gap: 12px; margin-top: 24px; }
.rs-system-health-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--rs-radius-control); background: rgb(248 250 252 / 80%); }
.rs-system-health-rows > div > span:first-child { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.rs-system-health-rows .rs-system-status { flex-shrink: 0; }
.rs-system-month { margin-top: 24px; }
.rs-system-local-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.rs-system-local .rs-form-more { margin-top: 16px; }
.rs-system-local .rs-form-more .rs-button { margin-top: 16px; }
@media (min-width: 1280px) { .rs-system-service-grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); } }
@media (max-width: 1279px) { .rs-system-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rs-system-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .rs-system-ai-periods { grid-template-columns: minmax(0, 1fr); }
  .rs-system-metrics .rs-overview-metric { padding: 16px; }
  .rs-system-ai-periods > article, .rs-system-inset { padding: 16px; }
  .rs-system-email-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-system-health-rows > div { flex-wrap: wrap; }
}
.rs-system-panel>.rs-button { margin-top: 18px; }
.rs-system-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.rs-system-facts dt { color: #667085; font-size: 14px; margin-bottom: 8px; }
.rs-system-facts dd { font-size: 15px; line-height: 1.6; }
.rs-access-list { margin-top: 16px; }
.rs-access-list article { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid #f1f3f5; font-size: 14px; line-height: 1.6; }
.rs-access-list p { color: #667085; margin-top: 4px; }
.rs-access-list article>span { color: #667085; }
@media (max-width: 760px) {
  .rs-order-search input { font-size: 16px; }
  .rs-order-filters-trigger>svg { width: 18px; height: 18px; }
  .rs-orders-grid, .rs-system-facts { grid-template-columns: minmax(0, 1fr); }
  .rs-orders-grid .rs-request-card { padding: 20px; }
  .rs-access-list article { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rs-system-panel { padding: 20px; }
  .rs-heading-actions { flex-shrink: 1; }
}

.rs-navigation { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; }
.rs-admin-navigation { margin-top: 32px; padding-top: 0; }
.rs-admin-navigation .sidebar-label { margin-bottom: 10px; }
#mobile-menu .rs-admin-navigation { margin-top: 24px; padding-top: 0; }
.rs-admin-toolbar { margin-bottom: 24px; }
.rs-admin-toolbar input, .rs-admin-toolbar select { background-color: white; }
.rs-user-list, .rs-log-list { display: flex; flex-direction: column; gap: 12px; }
/* Solicitações de acesso: card e análise no padrão do Rocontec. */
.rs-access-requests-card { margin-top: 24px; padding: 0; overflow: hidden; border-radius: var(--rs-radius-panel); }
.rs-access-requests-card > header { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 20px; background: white; box-shadow: 0 4px 14px rgb(16 24 40 / 5%); }
.rs-access-requests-card .section-title { margin: 0; }
.rs-access-inbox { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; background: #fff1f2; color: var(--primary); }
.rs-access-inbox svg { width: 18px; height: 18px; }
.rs-access-requests-list { max-height: min(624px, 70dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.rs-access-requests-list::-webkit-scrollbar { display: none; }
.rs-access-requests-list[data-fade-bottom] { mask-image: linear-gradient(#000 calc(100% - 24px), transparent); }
.rs-access-request-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) auto; grid-template-rows: auto auto; align-items: center; gap: 8px 20px; padding: 20px; transition: background 180ms; }
.rs-access-request-row:not(:last-child)::after { content: ''; position: absolute; bottom: 0; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, #e8ebef 70%, transparent); }
.rs-access-request-person { min-width: 0; grid-row: 1 / 3; }
.rs-access-request-person strong { font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.rs-access-request-person p { margin: 3px 0 0; color: var(--muted-foreground); font-size: 13px; overflow-wrap: anywhere; }
.rs-access-request-work { display: flex; align-items: center; min-width: 0; gap: 12px; grid-column: 2; grid-row: 1 / 3; }
.rs-access-request-work > :is(img, span) { width: 40px; height: 40px; flex-shrink: 0; object-fit: cover; border-radius: 8px; background: #f1f3f5; display: grid; place-items: center; color: #98a2b3; }
.rs-access-request-work svg { width: 20px; height: 20px; }
.rs-access-request-work b { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.rs-access-request-row time { grid-column: 3; grid-row: 1; justify-self: end; font-size: 12px; line-height: 18px; color: var(--muted-foreground); white-space: nowrap; }
.rs-access-request-arrow { grid-column: 3; grid-row: 2; justify-self: end; color: var(--primary); display: flex; transition: transform 180ms; }
.rs-access-request-arrow svg { width: 18px; height: 18px; }
.rs-access-requests-empty { padding: 24px 20px; margin: 0; font-size: 14px; color: var(--muted-foreground); }
@media (hover: hover) and (pointer: fine) {
  .rs-access-request-row:hover { background: #fafafa; }
  .rs-access-request-row:hover .rs-access-request-arrow { transform: translateX(3px); }
}
#info-dialog.rs-access-decision-dialog .rs-operation-body { background: white; gap: 20px; }
.rs-access-request-info h3 { margin: 0 0 16px; font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.rs-access-request-info .rs-dialog-facts { margin: 0; gap: 12px; }
.rs-access-request-info .rs-dialog-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.rs-access-request-info .rs-dialog-facts dd { font-size: 14px; }
.rs-access-decision-fields { position: relative; display: grid; gap: 20px; padding-top: 20px; }
.rs-access-decision-fields::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, #e8ebef, transparent); }
.rs-access-decision-fields .rs-field p { margin: 0; font-size: 14px; }
.rs-access-selected-works { display: flex; flex-wrap: wrap; gap: 8px; max-height: 112px; overflow-y: auto; scrollbar-width: none; }
.rs-access-selected-works:not(:empty) { margin-top: 10px; }
.rs-access-work-chip { display: inline-flex; align-items: center; max-width: 100%; gap: 8px; border-radius: 8px; padding: 5px 8px; background: #f1f3f5; font-size: 12px; }
.rs-access-work-chip > span { min-width: 0; overflow-wrap: anywhere; }
.rs-access-work-chip button { display: grid; place-items: center; width: 22px; height: 22px; padding: 3px; border: 0; background: none; color: #667085; cursor: pointer; flex-shrink: 0; }
.rs-access-work-chip svg { width: 14px; height: 14px; }
.rs-access-decision-dialog .rs-access-reject { color: var(--primary); background: transparent; box-shadow: none; }
@media (max-width: 767px) {
  .rs-access-requests-card > header { padding: 16px; }
  .rs-access-request-row { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 12px; padding: 16px; }
  .rs-access-request-person { grid-column: 1; grid-row: 1; }
  .rs-access-request-work { grid-column: 1; grid-row: 2; }
  .rs-access-request-row time { grid-column: 2; grid-row: 1; align-self: start; }
  .rs-access-request-arrow { grid-column: 2; grid-row: 2; }
}
.rs-user-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border-radius: 16px; }
.rs-user-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rs-user-identity>div { min-width: 0; }
.rs-user-avatar { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: #1d2127; color: white; font-size: 13px; font-weight: 700; }
.rs-user-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; font-size: 14px; }
.rs-user-name>b { overflow-wrap: anywhere; font-size: 15px; }
.rs-user-name>span, .rs-user-name>small { color: #667085; font-size: 12px; }
.rs-user-identity p { color: #667085; font-size: 14px; margin-top: 5px; overflow-wrap: anywhere; }
.rs-user-identity small { color: #98a2b3; font-size: 12px; }
.rs-user-access { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.rs-user-scope { color: #667085; font-size: 13px; max-width: 260px; overflow-wrap: anywhere; }
.rs-user-access .rs-text-button { font-size: 14px; }
.rs-read-only { color: #98a2b3; font-size: 12px; }
.rs-user-form { margin-top: 24px; }
.rs-work-choice-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 24px 0 14px; }
.rs-work-choice-heading span { color: #667085; font-size: 13px; }
.rs-work-choices { max-height: 220px; overflow-y: auto; border: 1px solid #eef0f3; border-radius: 12px; margin-top: 10px; }
.rs-work-choices label { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 12px 14px; border-bottom: 1px solid #f1f3f5; }
.rs-work-choices label:hover { background: #f8fafc; }
.rs-work-choices input { min-height: 18px; width: 18px; height: 18px; flex-shrink: 0; accent-color: #c42329; }
.rs-work-choices label>span { min-width: 0; }
.rs-work-choices b { font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.rs-work-choices small { display: block; font-size: 12px; color: #98a2b3; margin-top: 3px; }
.rs-log-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 22px; border-radius: 16px; }
.rs-log-row b { font-size: 14px; }
.rs-log-row p { font-size: 14px; color: #667085; margin: 6px 0; overflow-wrap: anywhere; }
.rs-log-row small, .rs-log-row time { color: #98a2b3; font-size: 12px; }
.rs-log-row time { white-space: nowrap; }
.rs-log-row .rs-text-button { font-size: 14px; }
.rs-log-changes section { border-top: 1px solid #f1f3f5; padding: 18px 0; }
.rs-log-changes h3 { font-size: 14px; font-weight: 650; margin-bottom: 10px; }
.rs-log-changes section>div { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); align-items: center; gap: 14px; }
.rs-log-changes p { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.rs-log-changes small { display: block; font-size: 12px; color: #98a2b3; }
.rs-log-changes svg { color: #98a2b3; }
.rs-log-details>div { border-top: 1px solid #f1f3f5; padding: 14px 0; }
.rs-log-details dt { font-size: 12px; color: #98a2b3; margin-bottom: 6px; }
.rs-log-details dd { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .rs-user-row { align-items: flex-start; flex-direction: column; } .rs-user-access { justify-content: flex-start; } }
@media (max-width: 760px) {
  .rs-admin-toolbar .rs-search { flex-basis: 100%; }
  .rs-admin-toolbar>select { flex: 1; }
  .rs-user-row, .rs-log-row { padding: 18px; }
  .rs-user-scope { max-width: none; width: 100%; }
  .rs-log-row { grid-template-columns: 30px minmax(0, 1fr); gap: 10px 12px; }
  .rs-log-row time { grid-column: 2; }
  .rs-log-row .rs-text-button { grid-column: 2; justify-self: start; }
}

@media (max-width: 1023px) {
  .rs-header-work { gap: 8px; font-size: 14px; }
  .rs-header-work img { width: 32px; height: 32px; }
}

/* Cabeçalho e avisos: referência local notifications-popover.tsx. */
.rs-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.rs-notifications { position: relative; }
.rs-notifications-trigger { display: grid; place-items: center; position: relative; width: 40px; height: 40px; border-radius: var(--rs-radius-control); }
.rs-notifications-trigger:hover { background: #f8fafc; }
.rs-notifications-trigger[aria-expanded='true'] { color: #c42329; background: #fff1f2; }
.rs-notifications-dot { position: absolute; right: 10px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: #c42329; box-shadow: 0 0 0 2px white; }
.rs-notifications-panel { position: absolute; top: calc(100% + 26px); right: 0; z-index: 50; display: flex; flex-direction: column; width: min(390px, calc(100vw - 32px)); max-height: min(512px, calc(100dvh - 96px)); overflow: hidden; border: 0; border-radius: var(--rs-radius-panel); background: white; color: #252a31; box-shadow: 0 12px 40px rgb(16 24 40 / 12%); }
.rs-notifications-panel[hidden] { display: none; }
.rs-notifications-panel[data-open] { animation: rs-account-in 200ms ease-in-out both; }
.rs-notifications-panel[data-closed] { animation: rs-account-out 120ms ease-in-out both; pointer-events: none; }
.rs-notifications-heading { position: relative; z-index: 1; display: flex; flex-shrink: 0; align-items: center; gap: 8px; padding: 12px 20px; background: white; box-shadow: 0 3px 12px rgb(16 24 40 / 4%); }
.rs-notifications-heading h2 { font-size: 17px; font-weight: 700; letter-spacing: -.4px; }
.rs-notifications-count { display: grid; place-items: center; min-width: 24px; padding: 2px 6px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #c42329; background: #fff1f2; }
.rs-notifications-heading .rs-icon-button { margin-left: auto; color: #94a3b8; border-radius: var(--rs-radius-control); }
.rs-notifications-heading .rs-icon-button svg { width: 16px; height: 16px; }
.rs-notifications-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 8px; }
.rs-notifications-list::-webkit-scrollbar { display: none; }
.rs-notifications-list ul { list-style: none; padding: 0; margin: 0; }
.rs-notifications-list li:nth-child(2) { animation-delay: 120ms; }
.rs-notifications-list li:nth-child(3) { animation-delay: 160ms; }
.rs-notifications-list li:nth-child(4) { animation-delay: 200ms; }
.rs-notifications-list li:nth-child(5) { animation-delay: 240ms; }
.rs-notifications-list li:nth-child(6) { animation-delay: 280ms; }
.rs-notifications-list li:nth-child(7) { animation-delay: 320ms; }
.rs-notifications-list li:nth-child(n+8) { animation-delay: 360ms; }
.rs-notification { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color 200ms ease-in-out, transform 200ms ease-in-out; }
.rs-notification:hover, .rs-notification:focus-visible { background: #f8fafc; }
.rs-notification:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #e2e8f0; }
.rs-notification:active { transform: scale(.99); }
.rs-notification-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; }
.rs-notification-icon svg { width: 16px; height: 16px; }
.rs-notification-icon.red { background: #fff1f2; color: #c42329; }
.rs-notification-icon.green { background: #ecfdf5; color: #047857; }
.rs-notification-icon.amber { background: #fffbeb; color: #92400e; }
.rs-notification-content { display: block; flex: 1; min-width: 0; }
.rs-notification-title { display: flex; align-items: baseline; gap: 8px; }
.rs-notification-title b { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 20px; }
.rs-notification.is-read .rs-notification-title b { font-weight: 500; }
.rs-notification-title time { flex-shrink: 0; font-size: 12px; color: #94a3b8; }
.rs-notification-message { display: block; position: relative; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 12px; margin-top: 2px; font-size: 13px; line-height: 20px; color: #64748b; }
.rs-notification-message i { position: absolute; right: 0; top: 7px; width: 6px; height: 6px; background: #c42329; border-radius: 50%; }
.rs-notification-context { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; font-size: 11px; color: #94a3b8; }
.rs-notifications-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 36px 20px; font-weight: 600; }
.rs-notifications-empty>svg { box-sizing: content-box; width: 20px; height: 20px; padding: 12px; border-radius: 16px; color: #94a3b8; background: #f8fafc; }
@media (max-width: 767px) { .rs-notifications-panel { position: fixed; top: 80px; left: 50%; right: auto; transform: translateX(-50%); } }
@media (max-width: 639px) { .rs-header-actions { gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .rs-notification:active { transform: none; } }

/* Visual e movimento da referência local account-menu.tsx. */
.rs-account { position: relative; flex-shrink: 0; margin-left: auto; }
.rs-account-trigger { display: flex; align-items: center; gap: 8px; height: 44px; max-width: 250px; padding: 0 12px; border-radius: var(--rs-radius-control); text-align: left; }
.rs-account-trigger:hover, .rs-account-trigger[aria-expanded='true'] { background: #f8fafc; }
.rs-account-avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--rs-radius-item); background: #1d2127; color: white; font-size: 12px; font-weight: 600; overflow: hidden; }
.rs-account-avatar.large { width: 48px; height: 48px; border-radius: var(--rs-radius-panel); font-size: 16px; }
.rs-account-avatar.portrait { width: 80px; height: 80px; border-radius: var(--rs-radius-panel); font-size: 24px; }
.rs-account-trigger-text { min-width: 0; }
.rs-account-trigger-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 16px; }
.rs-account-trigger-text small { display: block; font-size: 11px; font-weight: 400; color: var(--muted-foreground); }
.rs-account-chevron { display: inline-flex; color: #94a3b8; transition: transform 200ms; }
.rs-account-chevron svg { width: 14px; height: 14px; }
.rs-account-trigger[aria-expanded='true'] .rs-account-chevron { transform: rotate(180deg); }
.rs-account-dropdown { position: absolute; z-index: 50; top: calc(100% + 24px); right: 0; width: min(350px, calc(100vw - 32px)); max-height: calc(100dvh - 96px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 8px; border: 0; border-radius: var(--rs-radius-panel); background: white; color: #252a31; box-shadow: 0 12px 40px rgb(16 24 40 / 12%); }
.rs-account-dropdown::-webkit-scrollbar { display: none; }
.rs-account-dropdown[data-open] { animation: rs-account-in 200ms ease-in-out both; }
.rs-account-dropdown[data-closed] { animation: rs-account-out 120ms ease-in-out both; pointer-events: none; }
.rs-account-heading { display: flex; align-items: center; gap: 12px; padding: 16px 12px; }
.rs-account-heading>div { min-width: 0; }
.rs-account-heading b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-account-heading p { margin-top: 2px; font-size: 12px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-account-heading small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: #c42329; }
.rs-account-item { display: flex; align-items: center; width: 100%; min-height: 44px; gap: 12px; padding: 12px; border-radius: var(--rs-radius-control); font-size: 14px; font-weight: 500; text-align: left; transition: background-color 200ms; }
.rs-account-item:hover, .rs-account-item:focus-visible { background: #f8fafc; }
.rs-account-item:focus-visible, .rs-access-option:focus-visible { outline: 2px solid transparent; outline-offset: -2px; }
.rs-account-item>svg { width: 18px; height: 18px; color: #64748b; }
.rs-account-item>span:not(.rs-access-chevron) { flex: 1; }
.rs-account-item>svg:last-child, .rs-access-chevron svg { width: 16px; height: 16px; color: #94a3b8; }
.rs-account-dropdown .rs-account-item[data-action="sign-out"] { color: #c42329; animation-delay: 160ms; }
.rs-account-item[data-action="sign-out"]>svg { color: inherit; width: 18px; height: 18px; }
.rs-account-switch { margin: 4px 0; background: rgb(248 250 252 / 80%); border-radius: var(--rs-radius-control); animation-delay: 120ms !important; }
.rs-account-switch>.rs-account-item { color: #64748b; }
.rs-access-chevron { display: inline-flex; transition: transform 200ms; }
#account-switch-trigger[aria-expanded='true'] .rs-access-chevron { transform: rotate(180deg); }
.rs-account-collapse { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 200ms ease-in-out, opacity 200ms ease-in-out; }
.rs-account-collapse[data-expanded] { grid-template-rows: 1fr; opacity: 1; }
.rs-account-collapse-inner { min-height: 0; overflow: hidden; }
.rs-account-options { max-height: 280px; overflow-y: auto; padding: 0 8px 8px; }
.rs-access-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; text-align: left; padding: 10px 12px; border-radius: var(--rs-radius-item); font-size: 14px; }
.rs-access-option>span { flex: 1; min-width: 0; }
.rs-access-option b { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.rs-access-option small { display: block; color: #94a3b8; font-size: 12px; margin-top: 2px; }
.rs-access-option[aria-checked='true'], .rs-access-option:hover, .rs-access-option:focus-visible { background: white; }
.rs-access-option[aria-checked='true'] { color: #c42329; }
.rs-access-option[aria-checked='true'] b { font-weight: 600; }
.rs-account-dialog { width: min(460px, calc(100vw - 32px)); padding: 0; border-radius: var(--rs-radius-panel); box-shadow: 0 18px 60px rgb(16 24 40 / 16%); }
.rs-account-dialog>.rs-dialog-heading { padding: 16px 24px; align-items: center; box-shadow: 0 5px 18px rgb(16 24 40 / 6%); }
.rs-account-dialog .rs-dialog-heading h2 { font-size: 18px; }
.rs-my-account { padding: 24px; }
.rs-my-account-identity { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.rs-my-account-identity>div { min-width: 0; }
.rs-my-account-identity b { font-size: 15px; overflow-wrap: anywhere; }
.rs-my-account-identity p { color: #64748b; font-size: 13px; margin-top: 5px; }
.rs-my-account>.rs-field { margin-top: 20px; }
.rs-my-account-facts { margin-top: 20px; padding: 12px 16px; background: #f8fafc; border-radius: var(--rs-radius-control); }
.rs-my-account-facts>div { display: flex; align-items: start; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 1.6; }
.rs-my-account-facts>div+div { margin-top: 12px; }
.rs-my-account-facts dt { color: #64748b; }
.rs-my-account-facts dd { font-weight: 500; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.rs-account-dialog>.rs-dialog-actions { margin: 0; padding: 16px 24px; box-shadow: 0 -5px 18px rgb(16 24 40 / 6%); }
@keyframes rs-account-in { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@keyframes rs-account-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 767px) { .rs-account-dropdown { position: fixed; top: 80px; left: 50%; right: auto; transform: translateX(-50%); } }
@media (max-width: 639px) { .rs-account-trigger { padding: 0 8px; } .rs-account-trigger-text, .rs-account-chevron { display: none; } }

/* Short, scoped cascades for the header's portaled panels.
   Copiado de Rocontec/frontend/src/components/header-panel-motion.css. */
.header-panel [data-panel-reveal] {
  animation: header-panel-item 220ms cubic-bezier(0.22, 1, 0.36, 1) 80ms backwards;
}
.header-panel [data-panel-reveal='heading'] {
  animation: header-panel-heading 180ms ease-out 40ms backwards;
}
.header-panel[data-starting-style] [data-panel-reveal] { animation-play-state: paused; }
.header-panel[data-closed] { animation-duration: 120ms; }
.header-panel:is([data-closed], [data-ending-style]) [data-panel-reveal] { animation: none; }
@keyframes header-panel-item {
  from { opacity: 0; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes header-panel-heading { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .header-panel,
  .header-panel [data-panel-reveal] { animation: none; }
}

/* Operações no contexto da obra: cabeçalho e ação fixos, conteúdo rolável. */
.rs-operation-dialog { width: min(680px, calc(100vw - 48px)); max-height: min(860px, calc(100dvh - 48px)); padding: 0; border-radius: var(--rs-radius-panel); overflow: hidden; flex-direction: column; }
.rs-operation-dialog[open] { display: flex; }
.rs-operation-dialog.rs-operation-small { width: min(460px, calc(100vw - 48px)); }
.rs-operation-small:has(.rs-managed-locations), .rs-locations-manager { width: min(560px, calc(100vw - 48px)); }
.rs-locations-manager { background: var(--background); }
.rs-operation-dialog>.rs-dialog-heading { flex-shrink: 0; align-items: center; padding: 16px 24px; background: var(--card); box-shadow: 0 5px 18px rgb(16 24 40 / 6%); z-index: 1; }
.rs-operation-dialog .rs-dialog-heading h2 { font-size: 18px; }
.rs-operation-dialog>form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.rs-operation-body { padding: 24px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--card); }
.rs-operation-intro { color: var(--muted-foreground); font-size: 14px; margin: 0 0 24px; line-height: 1.6; }
.rs-operation-body .rs-form-grid { gap: 18px; }
.rs-operation-body .rs-field.full { grid-column: 1 / -1; }
.rs-operation-body .full[hidden] { display: none; }
.rs-operation-body .full>.rs-field { width: 100%; }
.rs-operation-body .rs-type-options { margin-bottom: 24px; }
.rs-operation-body .rs-type-option { padding: 12px 16px; }
.rs-operation-body .rs-type-option b { font-size: 14px; }
.rs-operation-body .rs-type-option small { font-size: 11px; }
.rs-operation-body .rs-request-line { grid-template-columns: minmax(0, 1fr) 132px 36px; }
.rs-operation-body .rs-request-line[data-ceramic="true"] { grid-template-columns: minmax(0, 1fr) 118px 115px 36px; }
.rs-operation-body .rs-line-unit, .rs-operation-body #entry-unit, .rs-operation-body #move-unit { font-size: 12px; }
.rs-operation-destination { padding-top: 24px; margin-top: 20px; border-top: 1px solid #f1f3f5; }
.rs-form-more { margin-top: 22px; padding-top: 16px; border-top: 1px solid #f1f3f5; }
.rs-form-more>summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #64748b; padding: 4px 0; }
.rs-form-more>summary:hover { color: #c42329; }
.rs-form-more>summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
.rs-form-more.rs-form-more-inline { margin: 0; padding: 0; border: 0; }
.rs-tone-product-summary { overflow-wrap: anywhere; }
.rs-tone-product-summary>b { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; }
.rs-tone-product-summary>p { margin: 6px 0 0; color: #667085; font-size: 12px; line-height: 1.5; }
.rs-form-more>.rs-field, .rs-form-more>.rs-request-quantities { margin-top: 18px; }
.rs-form-more>.rs-note { margin-top: 10px; }
.rs-exit-request-suggestions { min-width: 0; }
.rs-exit-suggestion-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; color: var(--primary); }
.rs-exit-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: var(--field); text-align: left; color: var(--foreground); }
.rs-exit-suggestion>span:first-child { min-width: 0; }
.rs-exit-suggestion strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.rs-exit-suggestion small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
.rs-exit-suggestion-action { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--primary); }
.rs-exit-suggestion-action svg { width: 15px; height: 15px; }
.rs-exit-suggestion:hover { box-shadow: var(--card-shadow); transform: translateY(-1px); }
.rs-exit-suggestion:active { transform: translateY(0); }
.rs-exit-suggestion-list { display: grid; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .rs-exit-suggestion { transition: none; } .rs-exit-suggestion:hover { transform: none; } }
.rs-exit-return { margin-bottom: 16px; }
.rs-operation-footer { flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 16px 24px; background: var(--card); box-shadow: 0 -5px 18px rgb(16 24 40 / 6%); }
.rs-operation-footer>span { flex: 1; min-width: 120px; font-size: 12px; color: var(--muted-foreground); }
.rs-operation-body .rs-form-error:empty { display: none; }
.rs-order-summary { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; margin-bottom: 24px; }
.rs-order-summary b { font-size: 15px; }
.rs-order-summary p { color: #64748b; font-size: 13px; margin-top: 6px; }
.rs-order-note { font-size: 13px; line-height: 1.7; color: #64748b; background: #f8fafc; border-radius: 12px; padding: 12px 16px; margin-bottom: 24px; }
.rs-operation-delivery>h3 { font-size: 15px; font-weight: 650; margin-bottom: 18px; }
.rs-operation-delivery .rs-delivery-line { padding: 16px; border-radius: 12px; background: #f8fafc; margin-bottom: 16px; }
.rs-operation-delivery .rs-delivery-line>.rs-note { margin: 6px 0 12px; }
.rs-operation-delivery .rs-delivery-line .rs-form-grid { grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; }
.rs-operation-delivery .rs-checkbox { margin-top: 22px; }
.rs-order-facts { margin-top: 18px; }
.rs-order-facts>div { display: flex; gap: 16px; justify-content: space-between; font-size: 13px; line-height: 1.7; padding: 7px 0; }
.rs-order-facts dt { color: #94a3b8; flex-shrink: 0; }
.rs-order-facts dd { text-align: right; overflow-wrap: anywhere; }
.rs-material-actions { display: flex; gap: 4px; }
.rs-locations-body { padding: 20px; background: var(--background); scroll-padding-block: 20px; --fade-top: 0px; --fade-bottom: 0px; mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent); }
.rs-locations-body[data-fade-top] { --fade-top: 18px; }
.rs-locations-body[data-fade-bottom] { --fade-bottom: 18px; }
.rs-managed-locations { display: grid; gap: 10px; min-width: 0; }
.rs-location-card { display: flex; align-items: center; min-width: 0; border-radius: 14px; background: white; box-shadow: 0 2px 5px rgb(16 24 40 / 5%); transition: background-color 180ms ease, box-shadow 180ms ease; }
.rs-location-open { display: flex; align-items: center; align-self: stretch; gap: 12px; flex: 1; min-width: 0; min-height: 84px; padding: 18px 12px 18px 16px; border: 0; border-radius: 14px; background: transparent; text-align: left; }
.rs-location-pin { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: #eef0f3; color: #7b8492; }
.rs-location-pin svg { width: 19px; height: 19px; }
.rs-location-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rs-location-copy strong { color: var(--foreground); font-size: 14px; font-weight: 600; line-height: 19px; overflow-wrap: anywhere; }
.rs-location-copy small { color: var(--muted-foreground); font-size: 12px; line-height: 17px; overflow-wrap: anywhere; }
.rs-location-card-actions { display: flex; flex-shrink: 0; gap: 2px; padding-right: 8px; }
.rs-location-card-actions .rs-icon-button { width: 36px; height: 36px; }
.rs-location-card-actions svg { width: 17px; height: 17px; }
.rs-location-card-actions [aria-expanded='true'] { background: #e9ecf0; color: var(--foreground); }
.rs-location-removed { padding: 14px; gap: 12px; justify-content: space-between; }
.rs-location-removed .rs-text-button { flex-shrink: 0; }
.rs-locations-removed { margin-top: 20px; }
.rs-locations-removed>.rs-managed-locations { margin-top: 12px; }
.rs-location-actions-menu { position: absolute; right: auto; bottom: auto; margin: 0; transform: none; width: min(220px, calc(100% - 24px)); border-radius: 14px; }
.rs-location-actions-menu .rs-account-item { gap: 10px; font-size: 13px; }
.rs-location-actions-menu [data-action='remove-location'] { color: var(--primary); }
.rs-location-actions-menu [data-action='remove-location']>svg { color: currentColor; }
@media (hover: hover) {
  .rs-location-card:has(.rs-location-open:hover) { background: white; box-shadow: 0 3px 9px rgb(16 24 40 / 8%); }
}
.rs-location-open:active { background: #f8fafc; }
@media (max-width: 639px) {
  .rs-locations-body { padding: 16px; }
  .rs-location-open { min-height: 80px; padding: 16px 8px 16px 14px; gap: 10px; }
  .rs-location-pin { width: 36px; height: 36px; }
  .rs-location-card-actions { padding-right: 6px; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-location-card { transition: none; }
  .rs-location-actions-menu:is([data-open], [data-closed]) { animation: none; }
}
.rs-location-stock { max-height: 220px; overflow-y: auto; background: #f8fafc; border-radius: 12px; padding: 14px; margin: 16px 0; }
.rs-move-dialog { width: min(640px, calc(100vw - 48px)); }
.rs-move-dialog .rs-operation-body { background: var(--background); }
.rs-move-route { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.rs-move-place, .rs-move-material-card { min-width: 0; padding: 20px; border-radius: 16px; background: var(--card); box-shadow: var(--card-shadow); }
.rs-move-place { padding: 18px; }
.rs-move-place .rs-field { margin: 0; }
.rs-move-place-detail { margin: 8px 0 0; color: var(--muted-foreground); font-size: 12px; line-height: 17px; overflow-wrap: anywhere; }
.rs-move-arrow { display: grid; place-items: center; align-self: center; color: var(--muted-foreground); }
.rs-move-arrow svg { width: 24px; height: 24px; }
.rs-move-material-fields { display: grid; grid-template-columns: minmax(0, 1fr) 164px; align-items: start; gap: 16px; }
.rs-move-material-choice { min-width: 0; }
.rs-move-dialog .rs-field > span { line-height: 20px; }
.rs-move-material-fields .rs-field > small { font-size: 12px; line-height: 17px; overflow-wrap: anywhere; }
#move-origin:has(select), #move-origin:has(.rs-inline-status) { margin-top: 16px; }
.rs-move-material-card > .rs-field { margin: 20px 0 0; }
.rs-move-dialog .rs-operation-body > :not(.rs-form-error) { animation: rs-request-view-in 220ms cubic-bezier(.22,.8,.25,1) both; }
.rs-move-dialog .rs-operation-body > :nth-child(2) { animation-delay: 35ms; }
.rs-move-dialog .rs-operation-body > :nth-child(3) { animation-delay: 70ms; }
@media (max-width: 639px) {
  .rs-move-dialog { width: calc(100% - 32px); }
  .rs-move-dialog .rs-operation-body { padding: 16px; }
  .rs-move-route { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .rs-move-arrow { height: 24px; }
  .rs-move-arrow svg { transform: rotate(90deg); }
  .rs-move-place, .rs-move-material-card { padding: 16px; }
  .rs-move-material-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .rs-move-dialog .rs-operation-body > :not(.rs-form-error) { animation: none; }
}
.rs-location-stock > div + div { margin-top: 12px; }
.rs-location-stock b { font-size: 13px; }
.rs-location-stock small { display: block; color: #667085; font-size: 12px; margin-top: 4px; }
.rs-location-list>div { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.rs-location-list>div+div { border-top: 1px solid #f1f3f5; }
.rs-location-list>div>span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff1f2; color: #c42329; flex-shrink: 0; }
.rs-location-list>div>div { flex: 1; min-width: 0; }
.rs-location-list b { font-size: 14px; overflow-wrap: anywhere; }
.rs-location-list p { font-size: 13px; color: #64748b; margin-top: 5px; overflow-wrap: anywhere; }
.rs-heading-actions { flex-wrap: wrap; }
@media (max-width: 760px) {
  .rs-operation-body .rs-request-line[data-ceramic="true"] { grid-template-columns: minmax(0, 1fr) 130px 36px; }
  .rs-operation-body .rs-request-line[data-ceramic="true"]>.rs-field:first-child { grid-column: 1 / -1; }
  .rs-operation-delivery .rs-delivery-line .rs-form-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-section-heading:has(.rs-location-actions) { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 639px) {
  .rs-operation-dialog, .rs-operation-dialog.rs-operation-small { width: calc(100% - 32px); max-width: calc(100% - 32px); height: fit-content; max-height: min(860px, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 48px)); margin: auto; border-radius: var(--rs-radius-panel); }
  .rs-operation-dialog>.rs-dialog-heading { padding: 16px 20px; }
  .rs-operation-body { padding: 24px 20px; }
  .rs-operation-body .rs-form-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-operation-body .rs-request-line { grid-template-columns: minmax(0, 1fr) 36px; }
  .rs-operation-body .rs-request-line>.rs-field:first-child { grid-column: 1 / -1; }
  .rs-operation-body .rs-request-line[data-ceramic="true"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; }
  .rs-operation-footer { padding: 16px 20px max(16px, env(safe-area-inset-bottom)); }
  .rs-operation-footer>span { flex-basis: 100%; }
  .rs-operation-footer>.primary { flex: 1; }
  .rs-order-summary { flex-direction: column; gap: 10px; }
}

/* FormDialog da Rocontec: ações simples brancas; formulários com seções
   sobre #F5F6F7, cards brancos e campos --field. */
html:has(#info-dialog[open]) { overflow: hidden; }
html[data-rs-dialog-gutter]:has(#info-dialog[open]) { scrollbar-gutter: stable; }
#info-dialog {
  /* O fechamento mantém o layout enquanto display/overlay concluem a transição. */
  outline: none;
  position: fixed;
  inset: 0;
  border-radius: var(--rs-radius-panel);
  box-shadow: 0 20px 60px rgb(16 24 40 / 16%);
  opacity: 1;
  transform: scale(1);
  transition: display 100ms allow-discrete, overlay 100ms allow-discrete;
}
#info-dialog[open] { animation: rs-dialog-enter 100ms ease both; }
#info-dialog:not([open]) { opacity: 0; transform: scale(.95); animation: rs-dialog-exit 100ms ease forwards; }
#info-dialog::backdrop {
  background: rgb(0 0 0 / 10%);
  backdrop-filter: blur(var(--blur-xs, 4px));
  transition: display 100ms allow-discrete, overlay 100ms allow-discrete;
}
#info-dialog[open]::backdrop { animation: rs-dialog-overlay-enter 100ms ease both; }
#info-dialog:not([open])::backdrop { opacity: 0; animation: rs-dialog-overlay-exit 100ms ease forwards; }
@keyframes rs-dialog-enter { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes rs-dialog-exit { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.95); } }
@keyframes rs-dialog-overlay-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes rs-dialog-overlay-exit { from { opacity: 1; } to { opacity: 0; } }
#info-dialog :is(.rs-operation-intro, .rs-note, .rs-field>small, .rs-order-summary p, .rs-order-note, .rs-order-facts dt, .rs-location-list p, .rs-managed-location small, .rs-form-more>summary, input[readonly]) { color: var(--muted-foreground); }
#info-dialog .rs-field>span { color: var(--foreground); }
#info-dialog .rs-form-more>summary:hover { color: var(--primary); }
#info-dialog :is(.rs-reference-note, .rs-destination-summary, .rs-location-stock, .rs-order-note, .rs-my-account-facts) { background: var(--background); color: var(--muted-foreground); }
#info-dialog .rs-dialog-heading>.rs-icon-button { width: 36px; height: 36px; border-radius: var(--rs-radius-control); color: #94a3b8; }
#info-dialog .rs-dialog-heading>.rs-icon-button svg { width: 16px; height: 16px; }
#info-dialog .rs-dialog-heading>.rs-icon-button:hover { color: var(--foreground); }
.rs-operation-sectioned>.rs-dialog-heading { padding: 20px 24px; box-shadow: 0 5px 18px rgb(16 24 40 / 8%); }
.rs-operation-sectioned .rs-dialog-heading h2 { font-size: 24px; }
#info-dialog.rs-operation-sectioned .rs-dialog-heading>.rs-icon-button { width: 40px; height: 40px; }
#info-dialog.rs-operation-sectioned .rs-dialog-heading>.rs-icon-button svg { width: 20px; height: 20px; }
.rs-operation-sectioned .rs-operation-body { background: var(--background); }
.rs-operation-sectioned .rs-operation-footer { box-shadow: 0 -5px 18px rgb(16 24 40 / 8%); }
.rs-operation-sectioned :is(.rs-operation-card, .rs-request-line, .rs-delivery-item),
.rs-operation-sectioned .rs-operation-body>:is(.rs-field, .rs-form-grid, .rs-form-more, .rs-request-quantities),
.rs-operation-sectioned .rs-operation-delivery>:is(.rs-form-grid, .rs-form-more) {
  min-width: 0;
  padding: 24px;
  border: 0;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.rs-operation-sectioned .rs-request-line+.rs-request-line { margin-top: 16px; }
.rs-operation-sectioned .rs-request-line,
.rs-operation-sectioned .rs-request-line[data-ceramic="true"] { position: relative; grid-template-columns: minmax(0, 1fr); }
.rs-operation-sectioned .rs-request-line>.rs-field:first-child { grid-column: 1 / -1; }
.rs-operation-sectioned .rs-request-line>.rs-field:nth-child(2) { grid-column: 1 / -1; }
.rs-request-line:has(>[data-action="remove-line"]:not([hidden]))>.rs-field:first-child>span:first-child { padding-right: 44px; }
.rs-request-line>[data-action="remove-line"] { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; }
.rs-request-line[data-request-leave] { min-height: 0; overflow: clip; pointer-events: none; }
#request-form .rs-operation-body { overflow-anchor: none; }
#request-form .rs-request-line[data-free-material="true"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#request-form .rs-request-line[data-free-material="true"] > .rs-field { grid-column: auto; }
#request-form .rs-request-line[data-free-material="true"] > .full { grid-column: 1 / -1; }
#request-form .rs-request-line[data-free-material="true"]:has(>[data-action="remove-line"]:not([hidden])) > .rs-field.full > span:first-child { padding-right: 36px; }
#request-form .rs-request-line[data-free-material="true"] > .rs-text-button { justify-self: start; }
#request-form .rs-request-line:has(>[data-action="remove-line"]:not([hidden])) .rs-request-material-selector .rs-field > span:first-child { padding-right: 36px; }
#request-form .rs-material-photo-status:empty,
#request-form .rs-material-photo-actions:has(>button[hidden]) { display: none; }
.rs-request-line[data-request-enter] { animation: rs-request-line-appear 360ms cubic-bezier(.22, .8, .25, 1); }
.rs-request-line[data-request-enter]>.rs-field { animation: rs-disclosure-field-in 240ms cubic-bezier(.2, .7, .2, 1) 40ms both; }
.rs-request-line[data-request-enter]>.rs-field:nth-child(2) { animation-delay: 80ms; }
.rs-request-line[data-request-enter]>:is(.rs-icon-button, .rs-request-application) { animation: rs-disclosure-field-in 240ms cubic-bezier(.2, .7, .2, 1) 120ms both; }
@supports (interpolate-size: allow-keywords) {
  .rs-request-line[data-request-enter] {
    interpolate-size: allow-keywords;
    min-block-size: 0;
    overflow: clip;
    animation-name: rs-request-line-expand;
  }
}
@keyframes rs-request-line-expand {
  from { block-size: 0; padding-block: 0; margin-block-start: 0; opacity: 0; }
  to { block-size: auto; opacity: 1; }
}
@keyframes rs-request-line-appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .rs-request-line[data-request-enter], .rs-request-line[data-request-enter]>* { animation: none !important; overflow: visible; }
}
.rs-operation-sectioned .rs-operation-destination { margin-top: 16px; }
.rs-operation-sectioned .rs-operation-intro { margin-bottom: 20px; }
.rs-operation-sectioned .rs-operation-body>.rs-form-more,
.rs-operation-sectioned .rs-operation-delivery>.rs-form-more { margin-top: 16px; }
.rs-operation-sectioned .rs-operation-body>.rs-form-more>summary,
.rs-operation-sectioned .rs-operation-delivery>.rs-form-more>summary { padding: 0; }
.rs-operation-sectioned .rs-add-line { margin: 16px 0; }
.rs-operation-sectioned .rs-order-context { margin-bottom: 24px; }
.rs-order-context .rs-order-summary { margin-bottom: 16px; }
.rs-order-context .rs-record-actions { margin-bottom: 0; }
.rs-order-context>:is(.rs-order-note, .rs-reference-note) { margin: 16px 0 0; }
.rs-operation-sectioned .rs-delivery-item { margin: 16px 0; }
.rs-operation-sectioned .rs-delivery-item>b { font-size: 16px; font-weight: 700; }
.rs-operation-sectioned .rs-delivery-item .rs-delivery-allocation {
  padding: 16px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.rs-operation-sectioned .rs-delivery-item .rs-delivery-allocation:first-child { margin-top: 0; border-top: 0; }
@media (max-width: 639px) {
  .rs-operation-small:has(.rs-managed-locations), .rs-locations-manager { width: calc(100% - 32px); }
  #info-dialog.rs-operation-sectioned { width: calc(100% - 24px); max-width: calc(100% - 24px); }
  .rs-operation-dialog>.rs-dialog-heading { padding: 16px 20px; }
  .rs-operation-sectioned>.rs-dialog-heading { padding: 20px; }
  .rs-operation-sectioned .rs-dialog-heading h2 { font-size: 20px; }
  .rs-operation-sectioned .rs-operation-body { padding: 16px; }
  .rs-operation-sectioned :is(.rs-operation-card, .rs-request-line, .rs-delivery-item),
  .rs-operation-sectioned .rs-operation-body>:is(.rs-field, .rs-form-grid, .rs-form-more, .rs-request-quantities),
  .rs-operation-sectioned .rs-operation-delivery>:is(.rs-form-grid, .rs-form-more) { padding: 20px; }
  .rs-request-line>[data-action="remove-line"] { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #info-dialog, #info-dialog::backdrop { transition: none; animation: none !important; }
  #info-dialog[open] { transform: none; }
}

/* Conteúdo dos popups: a ação vem primeiro; referências ficam recolhidas. */
#info-dialog .rs-dialog-stack { display: flex; flex-direction: column; gap: 20px; }
#info-dialog .rs-dialog-stack>[hidden] { display: none; }
#info-dialog .rs-dialog-stack>.rs-note { margin: 0; }
.rs-dialog-material { min-width: 0; overflow-wrap: anywhere; }
.rs-dialog-material>strong { display: block; font-size: 15px; font-weight: 650; line-height: 1.5; }
.rs-dialog-material>p { margin: 4px 0 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.5; }
.rs-dialog-material-with-photo, .rs-orders-grid .rs-order-material-with-photo { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-content: center; }
.rs-dialog-material-with-photo > img, .rs-order-material-with-photo > img { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.rs-dialog-material-with-photo > :is(strong,p), .rs-order-material-with-photo > :is(strong,small) { grid-column: 2; }
.rs-dialog-lead { font-size: 16px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.rs-dialog-section-title { font-size: 14px; font-weight: 650; margin: 0 0 14px; }
.rs-dialog-facts { display: grid; gap: 14px; }
.rs-dialog-facts>div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; font-size: 13px; line-height: 1.6; }
.rs-dialog-facts dt { color: var(--muted-foreground); }
.rs-dialog-facts dd { margin: 0; overflow-wrap: anywhere; }
#info-dialog .rs-form-more .rs-dialog-facts { margin-top: 16px; }
.rs-inline-status { display: flex; align-items: flex-start; gap: 8px; color: var(--muted-foreground); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.rs-inline-status>svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.rs-origin-summary { min-width: 0; }
.rs-location-quantity-name { display: flex; align-items: center; gap: 8px; }
.rs-location-quantity-name>svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted-foreground); }
.rs-balance-preview { display: grid; gap: 5px; padding: 14px 16px; border-radius: 12px; background: var(--background); }
.rs-balance-preview>span, .rs-balance-preview>small { color: var(--muted-foreground); font-size: 12px; }
.rs-balance-preview>strong { font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.rs-dialog-total-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px 0; }
.rs-dialog-total-row+ .rs-dialog-total-row { border-top: 1px solid var(--border); }
.rs-dialog-total-row>strong, .rs-dialog-total-row>div:last-child:not(.rs-dialog-material) { flex-shrink: 0; font-size: 14px; text-align: right; }
.rs-dialog-total-row>div:last-child>span, .rs-dialog-total-row>div:last-child>small { display: block; font-size: 12px; color: var(--muted-foreground); margin-top: 4px; }
.rs-dialog-total-row:first-child { padding-top: 0; }
.rs-dialog-total-row:last-child { padding-bottom: 0; }
#info-dialog .rs-material-overview { padding: 0; gap: 14px; }
#info-dialog .rs-material-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; color: var(--muted-foreground); font-size: 12px; }
#info-dialog .rs-material-alert .rs-text-button { margin: 0; }
.rs-dialog-locations .rs-material-lot { padding: 16px; background: var(--background); border: 0; box-shadow: none; }
.rs-dialog-locations .rs-material-lot+.rs-material-lot { margin-top: 12px; }
.rs-dialog-locations .rs-material-lot-heading { align-items: center; margin-bottom: 0; }
.rs-dialog-locations .rs-material-lot-heading>div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rs-dialog-locations .rs-material-lot-heading>.rs-icon-button { flex-shrink: 0; width: 32px; height: 32px; }
.rs-dialog-locations .rs-material-lot>.rs-note { font-size: 12px; margin: 6px 0 0; overflow-wrap: anywhere; }
#info-dialog .rs-location-stock { padding: 0; background: transparent; max-height: none; overflow: visible; margin: 16px 0 0; }
#info-dialog .rs-location-stock .rs-dialog-total-row { margin: 0; }
#delivery-form .rs-order-context { margin-bottom: 16px; }
#info-dialog .rs-order-context .rs-order-summary { margin-bottom: 0; }
#delivery-form .rs-delivery-item { margin: 0 0 16px; }
.rs-delivery-progress { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 12px 0 18px; font-size: 12px; }
.rs-delivery-progress strong { font-weight: 600; color: var(--foreground); }
.rs-delivery-progress span { color: var(--muted-foreground); }
#delivery-form .rs-delivery-allocation { display: flex; flex-direction: column; gap: 14px; padding: 18px 0 0; margin: 18px 0 0; }
#delivery-form .rs-delivery-allocation:first-child { padding: 0; margin: 0; }
#delivery-form .rs-delivery-allocation>.rs-field { width: 100%; }
#delivery-form .rs-delivery-allocation>.rs-text-button { align-self: flex-start; }
#delivery-form .rs-checkbox { margin: 0; }
.rs-delivery-allocation[data-allocation-enter] { animation: rs-request-line-appear 360ms cubic-bezier(.22, .8, .25, 1); }
.rs-delivery-allocation[data-allocation-enter]>* { animation: rs-disclosure-field-in 240ms cubic-bezier(.2, .7, .2, 1) 40ms both; }
.rs-delivery-allocation[data-allocation-enter]>:nth-child(2) { animation-delay: 80ms; }
.rs-delivery-allocation[data-allocation-leave] { min-height: 0; overflow: clip; pointer-events: none; }
#delivery-form .rs-operation-body { overflow-anchor: none; }
.rs-event-compact { padding: 14px 0; }
.rs-event-compact>div { flex: 1; }
.rs-event-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.rs-event-heading b { font-size: 14px; }
.rs-event-heading strong { font-size: 14px; white-space: nowrap; }
.rs-event-compact .rs-dialog-facts { margin: 14px 0; gap: 10px; }
.rs-event-compact .rs-form-more { margin-top: 12px; }
.rs-event-compact .rs-record-actions { margin-bottom: 0; }
#info-dialog .rs-movement-group:first-child { padding-top: 0; }
#info-dialog .rs-user-form { margin-top: 0; }
#user-form .rs-work-choice-heading { margin: 0 0 14px; }
#user-form .rs-work-choice-heading h3 { margin: 0; }
#user-form .rs-work-choices { border: 0; background: var(--background); }
#user-form .rs-work-choices label { border-bottom-color: var(--border); }
#user-form .rs-work-choices label:hover { background: var(--field); }
#user-form .rs-work-choices+ .rs-note, #user-form #user-work-empty+ .rs-note { margin-top: 14px; }
#info-dialog .rs-log-changes section { border: 0; padding: 16px; background: var(--background); border-radius: 12px; }
#info-dialog .rs-log-changes section+section { margin-top: 12px; }
.rs-dialog-rule-list { padding-left: 18px; margin-top: 14px; color: var(--muted-foreground); font-size: 13px; line-height: 1.7; }
.rs-dialog-rule-list li+li { margin-top: 8px; }
#info-dialog .rs-form-more-caption { white-space: normal; }
#info-dialog .rs-form-more[data-disclosure-motion] { overflow: clip; overflow-anchor: none; }
#info-dialog .rs-form-more[data-disclosure-motion]::details-content { transition: none; }
#info-dialog .rs-form-more[data-disclosure-motion][data-disclosure-target='closed'] > :not(summary) { animation: none; }
#info-dialog .rs-form-more[data-disclosure-target='closed'] > summary::after,
#info-dialog .rs-form-more[data-disclosure-target='closed'] > summary .rs-form-more-caption::after { transform: rotate(45deg); }
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  #info-dialog .rs-form-more { interpolate-size: allow-keywords; }
  #info-dialog .rs-form-more::details-content { display: flow-root; block-size: 0; overflow: clip; overflow-clip-margin: 4px; transition: block-size 360ms cubic-bezier(.22, .8, .25, 1), content-visibility 360ms allow-discrete; }
  #info-dialog .rs-form-more[open]::details-content { block-size: auto; }
  .rs-delivery-allocation[data-allocation-enter] { interpolate-size: allow-keywords; min-block-size: 0; overflow: clip; animation-name: rs-request-line-expand; }
}
@media (max-width: 639px) {
  .rs-dialog-facts>div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .rs-event-heading { flex-direction: column; gap: 6px; }
  .rs-dialog-total-row { gap: 12px; }
  .rs-dialog-total-row>.rs-dialog-material>strong { font-size: 14px; }
  .rs-dialog-locations .rs-material-lot { padding: 12px; }
  .rs-dialog-locations .rs-material-lot-heading { flex-wrap: nowrap; gap: 8px; }
  .rs-dialog-locations .rs-material-lot-heading>div { min-width: 0; }
  #info-dialog .rs-log-changes section>div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #info-dialog .rs-log-changes section>div>svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #info-dialog .rs-form-more::details-content { transition: none; }
  .rs-delivery-allocation[data-allocation-enter], .rs-delivery-allocation[data-allocation-enter]>* { animation: none !important; }
}

/* Consulta e atendimento do pedido no mesmo popup. */
.rs-order-compact-header:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
.rs-request-dialog .rs-request-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-shrink: 0; }
.rs-request-dialog > .rs-dialog-heading { gap: 8px; }
.rs-request-dialog > .rs-dialog-heading h2 { flex: 1; min-width: 0; }
.rs-request-actions { position: relative; flex-shrink: 0; }
.rs-request-actions > .rs-icon-button { width: 40px; height: 40px; border-radius: var(--rs-radius-control); color: #94a3b8; }
.rs-request-actions > .rs-icon-button svg { width: 20px; height: 20px; }
.rs-request-actions > .rs-icon-button:is(:hover, [aria-expanded='true']) { background: var(--field); color: var(--foreground); }
.rs-request-actions-dropdown { position: absolute; top: calc(100% + 8px); right: 0; left: auto; transform: none; width: min(256px, calc(100vw - 104px)); border-radius: 14px; }
.rs-request-actions-dropdown .rs-account-item { gap: 10px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .rs-request-actions-dropdown:is([data-open], [data-closed]) { animation: none; } }
.rs-request-dialog .rs-request-status .rs-order-time { color: var(--muted-foreground); font-size: 11px; }
@media (max-width: 639px) {
  .rs-request-dialog .rs-order-context .rs-order-summary { flex-direction: column; }
  .rs-request-dialog .rs-order-context .rs-request-status { order: -1; width: 100%; justify-content: space-between; }
  .rs-request-dialog .rs-order-context .rs-request-status .rs-order-time { margin-left: auto; text-align: right; }
}
.rs-request-dialog .rs-request-planned { margin: 12px 0 0; font-size: 12px; color: var(--muted-foreground); }
.rs-request-dialog .rs-request-items { margin-bottom: 16px; transition: box-shadow 200ms ease; }
.rs-request-dialog .rs-request-items:has(> .rs-request-item-open:focus-visible) { box-shadow: var(--card-shadow-hover); }
@media (hover: hover) and (pointer: fine) {
  .rs-request-dialog .rs-request-items:has(> .rs-request-item-open:hover) { box-shadow: var(--card-shadow-hover); }
}
.rs-request-dialog .rs-request-extras { padding: 10px 24px; }
.rs-request-dialog .rs-request-extras > .rs-form-more { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.rs-request-dialog .rs-request-extras > .rs-form-more + .rs-form-more { border-top: 1px solid var(--border); }
.rs-request-dialog .rs-request-extras > .rs-form-more > summary { padding: 12px 0; font-size: 12px; }
.rs-request-dialog .rs-request-extras > .rs-form-more[open] { padding-bottom: 12px; }
.rs-request-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 16px; padding: 16px 0; }
.rs-request-item:first-child { padding-top: 0; }
.rs-request-item:last-child { padding-bottom: 0; }
.rs-request-item + .rs-request-item { border-top: 1px solid var(--border); }
.rs-unidentified-label, .rs-request-item .rs-unidentified-label { color: #946200; font-weight: 600; }
.rs-request-item > .rs-text-button { justify-self: start; }
.rs-request-item-open { width: 100%; text-align: left; border-radius: 8px; background: transparent; }
.rs-request-item-open:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.rs-request-dialog .rs-delivery-material-summary { padding: 0 0 18px; }
.rs-request-material-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rs-request-material-heading > span { min-width: 0; }
.rs-request-material-heading strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.rs-request-material-heading small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted-foreground); overflow-wrap: anywhere; }
.rs-request-material-heading :is(.rs-material-thumbnail, .rs-material-photo-empty) { width: 48px; height: 48px; flex-basis: 48px; border: 2px solid white; border-radius: 10px; box-shadow: 0 2px 7px rgb(16 24 40 / 12%); }
.rs-request-item-quantity { text-align: right; }
.rs-request-identification-bar { grid-column: 1 / -1; display: flex; justify-content: flex-start; align-items: center; gap: 10px; min-width: 0; margin-bottom: 6px; }
.rs-request-identification-bar > .rs-text-button { font-size: 11px; white-space: nowrap; color: #667085; }
.rs-request-identification-bar > .rs-identify-badge { flex-shrink: 0; font-size: 10px; }
@media(max-width:639px) {
  .rs-request-identification-bar { gap: 4px; }
}
.rs-inline-identification { position: relative; grid-column: 1 / -1; display: grid; gap: 16px; min-width: 0; margin-top: 12px; padding-top: 17px; }
.rs-inline-identification::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, #e5e9ef 0%, #e5e9ef 75%, transparent 100%); pointer-events: none; }
.rs-inline-identification .rs-material-photo-status:empty, .rs-inline-identification .rs-material-photo-actions:has(>button[hidden]), .rs-inline-identification .rs-form-error:empty { display: none; }
.rs-inline-identification .rs-identify-create[hidden], .rs-inline-identification .rs-identify-tone[hidden] { display: none; }
.rs-identify-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.rs-inline-identification .rs-identify-actions .rs-button { font-size: 12px; }
.rs-request-item-quantity strong { font: 600 16px var(--font-manrope), sans-serif; white-space: nowrap; }
.rs-request-item-quantity strong span { font-size: 11px; font-weight: 400; }
.rs-request-item-quantity small { display: block; margin-top: 3px; font-size: 10px; color: var(--muted-foreground); }
.rs-request-item-progress { grid-column: 1 / -1; margin: 0 0 0 60px; color: var(--muted-foreground); font-size: 11px; }
.rs-request-dialog .rs-operation-body > * { animation: rs-request-view-in 220ms cubic-bezier(.22,.8,.25,1) both; }
.rs-request-dialog .rs-operation-body > :nth-child(2) { animation-delay: 30ms; }
.rs-request-dialog .rs-operation-body > :nth-child(n+3) { animation-delay: 60ms; }
@keyframes rs-request-view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 639px) {
  .rs-request-item { gap: 5px 10px; }
  .rs-request-material-heading { gap: 10px; }
  .rs-request-material-heading :is(.rs-material-thumbnail, .rs-material-photo-empty) { width: 44px; height: 44px; flex-basis: 44px; }
  .rs-request-item-progress { margin-left: 54px; }
  .rs-request-item-quantity strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .rs-request-dialog .rs-operation-body > * { animation: none; } .rs-request-dialog .rs-request-items { transition: none; } }

/* Visão geral por obra: os mesmos cartões, cores e controles da operação. */
.rs-dashboard-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.rs-dashboard-heading .rs-page-heading { margin-bottom: 0; }
.rs-dashboard-work { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(210px, 280px); align-items: center; gap: 24px; margin-bottom: 24px; border-radius: 16px; box-shadow: var(--card-shadow); overflow: hidden; }
.rs-dashboard-work-media { position: relative; min-width: 0; min-height: 120px; align-self: stretch; overflow: hidden; background: #f1f5f9; }
.rs-dashboard-work-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-dashboard-work-info { min-width: 0; padding: 16px 0; }
.rs-dashboard-work-status { display: flex; align-items: center; gap: 6px; color: #748078; font-size: 10px; font-weight: 500; }
.rs-dashboard-work-status > span { width: 6px; height: 6px; border-radius: 50%; background: #73a68b; }
.rs-dashboard-work-info h2 { margin: 4px 0 0; color: #252a31; font: 700 24px/1.3 var(--font-manrope), sans-serif; letter-spacing: -.5px; overflow-wrap: anywhere; }
.rs-dashboard-work-info p { display: flex; align-items: flex-start; gap: 6px; color: var(--muted-foreground); font-size: 11px; line-height: 1.6; }
.rs-dashboard-work-info p svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 3px; }
.rs-dashboard-work-progress { min-width: 0; padding-right: 24px; }
.rs-dashboard-work-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rs-dashboard-work-progress > div > span { color: #64748b; font-size: 12px; }
.rs-dashboard-work-progress strong { font: 700 28px/1.2 var(--font-manrope), sans-serif; color: #252a31; white-space: nowrap; }
.rs-dashboard-work-progress strong small { margin-left: 2px; font-size: 14px; font-weight: 500; }
.rs-dashboard-work-progress:not(:has(progress)) strong { font-size: 12px; }
.rs-dashboard-work-progress progress { display: block; width: 100%; height: 6px; appearance: none; border: 0; border-radius: 8px; overflow: hidden; background: #f1f3f6; margin-top: 12px; }
.rs-dashboard-work-progress progress::-webkit-progress-bar { background: #f1f3f6; border-radius: 8px; }
.rs-dashboard-work-progress progress::-webkit-progress-value { background: var(--primary); border-radius: 8px; }
.rs-dashboard-work-progress progress::-moz-progress-bar { background: var(--primary); border-radius: 8px; }
.rs-dashboard-work-progress > p { margin-top: 8px; font-size: 10px; color: #94a3b8; }
/* Resumo compacto: uma superfície, três atalhos independentes. */
.rs-dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 4px; margin-bottom: 24px; border-radius: 16px; background: var(--card); box-shadow: var(--card-shadow); }
.rs-dashboard-metric { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; min-height: 64px; width: 100%; padding: 10px 16px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: #475569; transition: background-color 180ms ease, color 180ms ease; }
.rs-dashboard-metric + .rs-dashboard-metric::before { content: ''; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1px; background: linear-gradient(transparent, #e4e7ec 25%, #e4e7ec 75%, transparent); pointer-events: none; }
.rs-dashboard-metric-value { flex-shrink: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: #252a31; }
.rs-dashboard-metric-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12px; line-height: 16px; font-weight: 600; }
.rs-dashboard-metric:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.rs-dashboard-metric:active { background: #f1f3f5; }
@media (hover: hover) {
  .rs-dashboard-metric:hover { background: #f6f7f9; color: var(--primary); }
}
@media (max-width: 639px) {
  .rs-dashboard-metric { flex-direction: column; justify-content: flex-start; gap: 5px; min-height: 72px; padding: 10px 4px; text-align: center; }
  .rs-dashboard-metric-value { font-size: 20px; }
  .rs-dashboard-metric-copy { gap: 2px; font-size: 10px; line-height: 13px; }
}
@media (prefers-reduced-motion: reduce) { .rs-dashboard-metric { transition: none; } }
.rs-dashboard-order { display: flex; width: 100%; align-items: center; text-align: left; gap: 12px; padding: 14px 24px; }
.rs-dashboard-order .rs-order-photo-preview { flex-shrink: 0; }
.rs-dashboard-order > span:nth-child(2) { flex: 1; min-width: 0; }
.rs-dashboard-order strong { display: block; font-size: 12px; font-weight: 600; }
.rs-dashboard-order > span:nth-child(2) > span { display: block; color: #64748b; font-size: 10px; line-height: 1.5; margin-top: 3px; }
.rs-dashboard-order small { display: block; font-size: 10px; color: #94a3b8; margin-top: 2px; }
.rs-dashboard-order-state { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }
.rs-dashboard-order-state .rs-badge { font-size: 9px; }
.rs-dashboard-order-state time { font-size: 10px; color: #94a3b8; }
.rs-dashboard-empty { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 18px 24px; color: #94a3b8; font-size: 12px; line-height: 1.6; }
.rs-dashboard-empty > svg { width: 20px; height: 20px; flex-shrink: 0; }
.rs-dashboard-activity { padding: 0 0 12px; }
.rs-dashboard-activity .rs-preview-list { padding: 0 12px; }
.rs-dashboard-dialog-list > :is(.rs-dashboard-order, .rs-dashboard-alert) { background: white; border-radius: 12px; margin-bottom: 10px; }
@media (max-width: 639px) {
  .rs-dashboard-heading { align-items: stretch; flex-direction: column; gap: 16px; }
  .rs-dashboard-work { grid-template-columns: 92px minmax(0, 1fr); gap: 0 16px; }
  .rs-dashboard-work-media { min-height: 92px; }
  .rs-dashboard-work-info { padding: 12px 16px 12px 0; }
  .rs-dashboard-work-info h2 { font-size: 20px; }
  .rs-dashboard-work-info p { font-size: 10px; line-height: 1.5; }
  .rs-dashboard-work-info p svg { display: none; }
  .rs-dashboard-work-progress { grid-column: 1 / -1; padding: 12px 20px 16px; }
  .rs-dashboard-work-progress strong { font-size: 25px; }
  .rs-dashboard-order { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; }
  .rs-dashboard-order .rs-order-photo-preview { grid-row: 1 / 3; }
  .rs-dashboard-order-state { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Referência: Rocontec WorkDetailPage, foto lateral e conteúdo em três faixas. */
@media (min-width: 1024px) {
  .rs-dashboard-work-summary { display: grid; grid-template-columns: minmax(220px, .6fr) minmax(0, 1.8fr); grid-template-rows: auto auto auto; align-items: center; gap: 0 20px; padding-right: 20px; margin-bottom: 24px; border-radius: 16px; background: var(--card); box-shadow: var(--card-shadow); overflow: hidden; }
  .rs-dashboard-work-summary .rs-dashboard-work { display: contents; }
  .rs-dashboard-work-summary .rs-dashboard-work-media { grid-column: 1; grid-row: 1 / 4; min-height: 240px; }
  .rs-dashboard-work-summary .rs-dashboard-work-info { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 20px 0 12px; }
  .rs-dashboard-work-summary .rs-dashboard-work-info h2 { grid-column: 1; grid-row: 2; margin: 0; font-size: 20px; }
  .rs-dashboard-work-summary .rs-dashboard-work-status { grid-column: 1; grid-row: 1; justify-self: start; gap: 6px; border-radius: 6px; padding: 4px 8px; background: #ecfdf5; color: #047857; font-size: 10px; font-weight: 600; }
  .rs-dashboard-work-summary .rs-dashboard-work-status > span { background: currentColor; width: 6px; height: 6px; }
  .rs-dashboard-work-summary .rs-dashboard-work-details { grid-column: 2; grid-row: 1 / 3; }
  .rs-dashboard-work-summary .rs-dashboard-metrics { grid-column: 2; grid-row: 2; margin: 0; padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
  .rs-dashboard-work-summary .rs-dashboard-metric { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 5px; min-height: 56px; padding: 8px 12px; text-align: left; }
  .rs-dashboard-work-summary .rs-dashboard-metric-value { font-size: 20px; }
  .rs-dashboard-work-summary .rs-dashboard-metric-copy { font-size: 11px; line-height: 14px; }
  .rs-dashboard-work-summary .rs-dashboard-work-progress { grid-column: 2; grid-row: 3; padding: 16px 0 32px; }
  .rs-dashboard-work-summary .rs-dashboard-work-progress > div { gap: 12px; }
  .rs-dashboard-work-summary .rs-dashboard-work-progress > div > span { font-size: 14px; font-weight: 500; }
  .rs-dashboard-work-summary .rs-dashboard-work-progress strong { font-size: 14px; }
  .rs-dashboard-work-summary .rs-dashboard-work-progress strong small { margin-left: 0; font-size: 14px; font-weight: 700; }
  .rs-dashboard-work-summary .rs-dashboard-work-progress progress { height: 8px; margin-top: 8px; }
  .rs-dashboard-work-summary .rs-dashboard-work-progress > p { font-size: 11px; }
}

/* Visão geral enxuta: três indicadores e dois resumos. */
.rs-dashboard-work-details { min-height: 28px; font-size: 11px; color: #94a3b8; font-weight: 500; }
.rs-dashboard-work-details svg { width: 12px; height: 12px; }
.rs-dashboard-work-details:hover { color: var(--primary); }
.rs-dashboard-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.rs-dashboard-previews > section { display: flex; flex-direction: column; container-type: inline-size; padding-bottom: 12px; }
.rs-dashboard-previews .rs-preview-list { flex: 1; padding: 0 8px; }
.rs-dashboard-previews .rs-preview-heading { padding-bottom: 8px; }
.rs-dashboard-previews .rs-preview-order { grid-template-columns: auto minmax(0, 1fr) auto 14px; align-items: center; min-height: 96px; }
.rs-dashboard-previews .rs-preview-order .rs-order-photo-preview { flex-shrink: 0; }
.rs-dashboard-previews .rs-preview-status { white-space: nowrap; }
.rs-dashboard-previews .rs-preview-status .rs-badge { margin: 0; font-size: 10px; }
.rs-dashboard-previews .rs-preview-order strong { font-size: 12px; }
.rs-dashboard-previews .rs-preview-activity { min-height: 96px; }
.rs-dashboard-order:hover { background: #fafbfc; }
@container (max-width: 420px) {
  .rs-dashboard-previews .rs-preview-order { grid-template-columns: auto minmax(0, 1fr) 14px; gap: 5px 10px; }
  .rs-dashboard-previews .rs-preview-order .rs-order-photo-preview { grid-row: 1 / 3; }
  .rs-dashboard-previews .rs-preview-status { grid-column: 2; grid-row: 2; }
  .rs-dashboard-previews .rs-preview-order .rs-preview-chevron { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 1023px) { .rs-dashboard-previews { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
@media (max-width: 639px) {
  .rs-dashboard-order { padding-left: 20px; padding-right: 20px; }
}

/* O atalho final acompanha o conteúdo, dentro da área de rolagem do preview. */
.rs-preview-more { padding: 12px 12px 8px; }
.rs-dashboard-preview-scroll { scrollbar-width: none; scrollbar-gutter: auto; }
.rs-dashboard-preview-scroll::-webkit-scrollbar { display: none; }
.rs-preview-more .rs-text-button { display: flex; align-items: center; gap: 6px; min-height: 32px; font-size: 12px; text-decoration: none; transform-origin: left center; transition: transform 180ms ease; }
.rs-preview-more .rs-text-button:hover { text-decoration: none; }
@media (hover: hover) { .rs-preview-more .rs-text-button:hover { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .rs-preview-more .rs-text-button { transition: none; } }
.rs-preview-more svg { width: 14px; height: 14px; }

/* Duas alturas para todos os campos dos popups, incluindo busca e calendário. */
#info-dialog { --rs-control-height: 47px; --rs-textarea-height: 88px; }
#info-dialog :is(input:not([type="hidden"], [type="file"], [type="checkbox"], [type="radio"], .rs-control-source), .rs-select-trigger, .rs-quantity-field) {
  box-sizing: border-box;
  height: var(--rs-control-height);
  min-height: var(--rs-control-height);
  max-height: var(--rs-control-height);
  border-radius: var(--rs-radius-control);
}
#info-dialog .rs-quantity-field input {
  height: calc(var(--rs-control-height) - 2px);
  min-height: calc(var(--rs-control-height) - 2px);
  max-height: calc(var(--rs-control-height) - 2px);
}
#info-dialog textarea {
  box-sizing: border-box;
  height: var(--rs-textarea-height);
  min-height: var(--rs-textarea-height);
  max-height: var(--rs-textarea-height);
  resize: none;
  overflow-y: auto;
}
#info-dialog :is(input:not([type="checkbox"], [type="radio"]), textarea, .rs-select-trigger):focus-visible {
  border-color: var(--ring);
  outline: none;
  box-shadow: none;
}
#info-dialog .rs-select-trigger[aria-expanded="true"] { border-color: var(--ring); }
#info-dialog .rs-control-search > .rs-control-icon { top: calc(2px + var(--rs-control-height) / 2 - 8px); }
#info-dialog .rs-work-options-popup .rs-control-search > .rs-control-icon { top: 50%; }
#info-dialog .rs-suggestion-toggle { top: calc((var(--rs-control-height) - 34px) / 2); }
@media (max-width: 639px) {
  #info-dialog :is(input:not([type="checkbox"], [type="radio"]), textarea, .rs-select-trigger) { font-size: 16px; }
}

/* Usuários: proporções da lista e resumo de acessos do Rocontec. */
.rs-users-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 12px; margin-bottom: 16px; }
.rs-users-summary { grid-column: 1 / -1; width: 100%; order: -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; flex-basis: 100%; max-width: 952px; padding: 16px 20px; border-radius: 16px; }
.rs-users-summary > :is(div, button) { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rs-users-summary > button { text-align: left; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; border-radius: 6px; }
.rs-users-summary > button:focus-visible { outline: 2px solid rgb(196 35 41 / 35%); outline-offset: 6px; }
.rs-users-summary strong.rs-access-attention { color: var(--primary); }
.rs-users-summary span { font-size: 14px; color: #667085; }
.rs-users-summary strong { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.025em; color: #252a31; font-variant-numeric: tabular-nums; }
.rs-users-summary-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rs-users-summary small { font-size: 12px; line-height: 16px; color: #667085; }
.rs-users-create { order: 2; flex-shrink: 0; }
.rs-users-create .rs-button { height: 48px; min-height: 48px; padding: 0 10px; border-radius: var(--rs-radius-control); }
.rs-users-filters { display: flex; flex: 1; min-width: 0; gap: 12px; }
.rs-users-filters .rs-order-search { flex: 1; min-width: 0; }
.rs-users-filters .rs-order-search input { height: 48px; min-height: 48px; }
.rs-user-list { gap: 12px; max-height: min(544px, 70dvh); overflow-y: auto; overscroll-behavior-y: contain; margin: 0 -16px; padding: 8px 16px; scroll-padding-block: 24px; scrollbar-width: none; --fade-top: 0px; --fade-bottom: 0px; mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent); }
.rs-user-list::-webkit-scrollbar { display: none; }
.rs-user-list[data-fade-top] { --fade-top: 24px; }
.rs-user-list[data-fade-bottom] { --fade-bottom: 24px; }
.rs-user-list:focus-visible { outline: 2px solid rgb(196 35 41 / 35%); outline-offset: -2px; border-radius: 16px; }
.rs-user-list .rs-user-row { position: relative; flex-shrink: 0; flex-direction: row; align-items: center; gap: 16px; padding: 20px; min-width: 0; box-shadow: var(--card-shadow); }
.rs-user-identity { gap: 12px; }
.rs-user-avatar { width: 40px; height: 40px; font-size: 12px; }
.rs-user-name { gap: 4px 8px; }
.rs-user-name > b { font-size: 16px; line-height: 20px; }
.rs-user-identity p { margin-top: 2px; }
.rs-user-access { flex-shrink: 0; gap: 12px; }
.rs-user-scope { width: auto; max-width: 240px; font-size: 12px; }
.rs-user-inactive { background: #f1f5f9; color: #475569; }
.rs-user-row-trigger { position: absolute; inset: 0; z-index: 1; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.rs-user-row-trigger:focus-visible { outline: 2px solid rgb(196 35 41 / 35%); outline-offset: -2px; }
.rs-user-row-interactive { transition: transform 200ms cubic-bezier(.4,0,.2,1), box-shadow 200ms; }
@media (hover: hover) and (pointer: fine) {
  .rs-user-list .rs-user-row-interactive:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
}
.rs-user-row-interactive:active { transform: scale(.995); }
@media (min-width: 768px) and (max-width: 1199px) {
  .rs-users-filters { flex-wrap: nowrap; }
}
@media (max-width: 767px) {
  .rs-users-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .rs-users-create { order: -2; align-self: flex-start; }
  .rs-users-create .rs-button { height: 44px; min-height: 44px; }
  .rs-users-summary { gap: 12px; padding: 16px; }
  .rs-users-summary span { font-size: 12px; }
  .rs-users-summary strong { font-size: 16px; line-height: 24px; }
  .rs-users-filters { flex-direction: row; }
}
@media (max-width: 639px) {
  .rs-user-list .rs-user-row { flex-direction: column; align-items: stretch; }
  .rs-user-access { justify-content: space-between; }
  .rs-user-scope { max-width: calc(100% - 65px); }
}
@media (prefers-reduced-motion: reduce) {
  .rs-user-list .rs-user-row-interactive { transition: none; transform: none; }
}
