[hidden] { display: none !important; }
body { background: #f7f8f6; color: #202b2b; }
.top { background: white; }
.top a, .entry-roster button, .entry-tabs button { background: white; border: 1px solid #dae4e1; border-radius: 8px; padding: 8px 12px; color: inherit; }
.entry-shell { padding: 24px; }
.entry-summary, .entry-roster, .entry-profile, .entry-cards article { background: white; border: 1px solid #dfe7e4; border-radius: 14px; padding: 18px; }
.entry-summary { margin: 0 0 18px; }
.entry-summary h1 { font-size: 20px; }
.entry-summary p, .entry-cards p { color: #667777; margin: 7px 0 0; }
.entry-grid { display: grid; grid-template-columns: minmax(200px, 25%) minmax(0, 1fr); gap: 18px; align-items: start; }
.entry-grid main { padding: 0; width: 100%; }
.entry-roster h2 { margin: 0 0 12px; display: flex; justify-content: space-between; font-size: 18px; }
.entry-roster button { width: 100%; }
.entry-roster button[aria-current="true"], .entry-tabs button[aria-pressed="true"] { border-color: #388b80; background: #f4faf8; }
.entry-profile { display: flex; align-items: flex-start; gap: 14px; margin: 0; }
.entry-avatar { background: #dceee9; border-radius: 12px; padding: 12px 15px; font-weight: 700; }
.entry-profile h2 { margin-bottom: 8px; }
.entry-profile dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.entry-profile dd { margin: 0; overflow-wrap: anywhere; }
.entry-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.entry-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.entry-cards h3 { font-size: 16px; margin: 0; }
@media (max-width: 680px) {
  .entry-shell { padding: 12px; }
  .entry-grid, .entry-cards { grid-template-columns: 1fr; }
}

.top { padding-inline: 24px; border-color: #dfe7e4; }
.entry-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 96px; }
.entry-summary h1, .entry-profile h2 { font-weight: 500; }
#entry-total { flex: none; margin: 0; }
.entry-profile { min-height: 376px; display: grid; grid-template-columns: 62px minmax(0, 1fr); align-content: start; }
.entry-profile p { color: #667777; margin: 4px 0; }
.entry-avatar { display: grid; place-items: center; width: 62px; height: 62px; font-size: 24px; }
.entry-metrics, .entry-stage { grid-column: 1 / -1; }
.entry-metrics { display: flex; flex-wrap: wrap; gap: 9px; }
.entry-metrics div { display: grid; width: 130px; min-height: 86px; padding: 12px 14px; border: 1px solid #dfe7e4; border-radius: 14px; color: #667777; }
.entry-metrics strong { font-size: 28px; color: #202b2b; }
.entry-tabs { margin-block: 18px; }
.entry-tabs button { min-height: 131px; font-size: 18px; padding-inline: 14px; }
.entry-cards { gap: 14px; }
.entry-cards article { position: relative; min-height: 152px; padding-top: 19px; }
.entry-cards h3 { padding-right: 65px; font-size: 18px; }
#entry-content .procedure-status { position: absolute; top: 19px; right: 18px; margin: 0; font-size: 14px; }
.procedure-number, .roster-avatar { display: inline-grid; place-items: center; border-radius: 10px; background: #dceee9; color: #254743; }
.procedure-number { width: 29px; height: 29px; margin-right: 8px; font-size: 14px; }
#records-list button { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 10px; min-height: 102px; padding: 12px; font-weight: 400; }
#records-list strong { align-self: end; font-size: 18px; }
#records-list small { color: #667777; font-size: 14px; }
#records-list small:last-child { grid-column: 1 / -1; }
.roster-avatar { grid-row: span 2; align-self: center; height: 38px; font-weight: 700; }
.entry-fields { margin-top: 16px; color: #667777; }
@media (max-width: 680px) {
  .entry-profile { min-height: 0; }
  .entry-tabs button { min-height: 48px; font-size: 14px; }
}

.entry-breadcrumb, .entry-header-actions { display: flex; align-items: center; gap: 12px; }
.entry-breadcrumb span { color: #667777; }
.entry-header-actions a { font-size: 14px; padding: 6px 12px; }
#entry-theme { color: #667777; background: transparent; border: 0; font-size: 25px; padding: 0; }
.entry-grid { grid-template-columns: minmax(220px, 24.35%) minmax(0, 1fr); }
.entry-profile { row-gap: 14px; }
.entry-profile .entry-link-state { color: #986100; }
.entry-stage { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.entry-stage button { border: 1px solid #e7eeeb; border-radius: 10px; background: transparent; color: #667777; padding: 7px 12px; cursor: default; }
.entry-roster #records-status { margin: 0; }
.entry-roster #records-status:not(:empty) { margin-top: 8px; }
.entry-roster:has(#records-list li) #records-status { display: none; }
.entry-roster #records-list { margin: 12px 0 0; }
.entry-tabs button[aria-pressed="true"], .entry-roster button[aria-current="true"] { background: white; }
.entry-dark { color-scheme: dark; background: #192321; color: #e4eeeb; }
.entry-dark :is(.top, .top a, .entry-summary, .entry-roster, .entry-profile, .entry-cards article, .entry-tabs button, .entry-roster button) { background: #24312e; border-color: #435751; }
.entry-dark :is(.entry-summary p, .entry-profile p, .entry-cards p, #records-list small, .entry-metrics div, .entry-metrics strong, .entry-breadcrumb span, .entry-fields, #entry-theme) { color: #b8cbc4; }
.entry-dark :is(.entry-tabs button[aria-pressed="true"], .entry-roster button[aria-current="true"]) { border-color: #68b5a8; }
@media (max-width: 680px) {
  .entry-grid { grid-template-columns: 1fr; }
  .entry-summary { flex-wrap: wrap; }
}

@media (min-width: 681px) and (max-width: 960px) {
  .entry-tabs button { min-height: 76px; font-size: 14px; padding-inline: 9px; }
  .entry-metrics div { width: auto; flex: 1; }
  .entry-cards h3 { padding-right: 0; }
  #entry-content .procedure-status { position: static; margin-top: 5px; }
}

.roster-progress { float: right; font-weight: 400; margin-left: 6px; }

.entry-cards .procedure-settled { background: #fcfdfc; color: #586362; }
.entry-cards .procedure-settled p { color: #74827f; }
.procedure-settled .procedure-number { background: #eff3f0; color: #64716d; }
.entry-cards p.procedure-receipt { color: #637370; }
.entry-cards .procedure-documents { margin-top: 8px; text-decoration: underline; }
.entry-dark .entry-cards .procedure-settled { background: #24312e; color: #d2e0db; }
.entry-dark .entry-cards .procedure-settled p { color: #b8cbc4; }

.entry-cards.materials-view { grid-template-columns: minmax(0, 1fr); }
.entry-grid:has(.materials-view) .entry-profile { min-height: 0; }
.entry-grid:has(.materials-view) .entry-tabs button { min-height: 38px; }
.materials-panel { margin: 0; padding: 18px; background: white; border-color: #dfe7e4; }
.materials-panel header { display: flex; justify-content: space-between; gap: 8px; }
.materials-panel h3, .materials-panel h4 { margin: 0; padding: 0; }
.materials-panel p, .materials-panel small { color: #667777; font-size: 14px; }
.materials-panel p { margin: 4px 0; }
.materials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.materials-grid article { min-height: 0; padding: 12px; border-radius: 10px; }
.materials-grid em { color: #ad6900; font-style: normal; }
.document-side { margin-top: 8px; padding-top: 8px; border-top: 1px solid #edf0ee; }
.materials-panel button { margin-top: 4px; border: 1px solid #dfe7e4; border-radius: 7px; padding: 5px 10px; background: transparent; color: inherit; }
.roster-fields { display: grid; gap: 8px; margin-top: 12px; }
.roster-fields > div { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(110px, 2.5fr) minmax(64px, 1fr) auto; align-items: center; gap: 8px; }
.roster-fields input:not([type=checkbox]) { margin: 0; padding: 7px 10px; }
.roster-fields input.missing-field { border-color: #efc779; }
.roster-fields button { margin: 0; }
.entry-dark .materials-panel { background: #24312e; border-color: #435751; }
.entry-dark .materials-panel small { color: #b8cbc4; }
@media (max-width: 680px) {
  .materials-grid { grid-template-columns: 1fr; }
  .roster-fields > div { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

.entry-grid:has(.arrival-view) .entry-profile { min-height: 0; }
.entry-grid:has(.arrival-view) .entry-tabs button { min-height: 38px; }
.entry-cards.arrival-view { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.arrival-view > article { min-height: 212px; }
.arrival-view > article h3 { padding: 0; color: #667777; font-size: 14px; font-weight: 500; }
.arrival-view p { font-size: 14px; }
.arrival-view p.arrival-value { color: inherit; font-size: 17px; }
.arrival-actions { display: grid; justify-items: start; gap: 6px; margin-top: 8px; }
.arrival-actions button { border: 1px solid #dfe7e4; border-radius: 8px; background: transparent; color: inherit; padding: 6px 10px; }
.arrival-view p.arrival-warning { color: #986100; }
.arrival-history { grid-column: 1 / -1; margin: 0; background: white; border-color: #dfe7e4; }
.arrival-history h3 { padding: 0; }
.arrival-history ol { list-style: none; padding: 0; margin: 10px 0 0; }
.arrival-history li { display: grid; grid-template-columns: 140px max-content minmax(0, 1fr); gap: 10px; padding: 4px 0; line-height: 1.5; }
.arrival-history time, .arrival-history small { color: #667777; font-size: 14px; }
.entry-dark .arrival-history { background: #24312e; border-color: #435751; }
.entry-dark .arrival-history :is(time, small), .entry-dark .arrival-view > article h3 { color: #b8cbc4; }
.entry-dark .arrival-view p.arrival-warning { color: #ffc66b; }
@media (max-width: 850px) {
  .entry-cards.arrival-view { grid-template-columns: minmax(0, 1fr); }
  .arrival-view > article { min-height: 0; }
  .arrival-history li { grid-template-columns: minmax(0, 1fr) auto; }
  .arrival-history li > span:last-child { grid-column: 1 / -1; }
}
