:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f7f9fd;
  --ink: #132033;
  --muted: #657487;
  --line: #dfe6ee;
  --line-strong: #c6d4e2;
  --green: #2c6da3;
  --green-dark: #1b466a;
  --amber: #c7781e;
  --red: #b0443d;
  --blue: #26699f;
  --blue-dark: #163d5d;
  --blue-soft: #e7f1fb;
  --slate-soft: #edf2f7;
  --soft-green: #e7f1fb;
  --soft-amber: #fff1dc;
  --soft-red: #fbe8e6;
  --shadow: 0 16px 42px rgba(20, 35, 54, 0.09);
  --shadow-soft: 0 2px 12px rgba(20, 35, 54, 0.06);
  --radius: 8px;
  --sidebar: #162538;
  --sidebar-soft: rgba(255, 255, 255, 0.075);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(38, 105, 159, 0.13), rgba(197, 212, 226, 0.42)),
    linear-gradient(180deg, #ffffff 0, #edf4fa 100%),
    var(--bg);
}

.login-frame {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(300px, 430px);
  width: min(980px, 100%);
  min-height: 620px;
  border: 1px solid rgba(198, 212, 226, 0.92);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(18, 32, 51, 0.16);
}

.login-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  width: 100%;
  padding: 42px 38px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.login-brand {
  padding: 0 0 6px;
  color: var(--ink);
}

.login-brand strong {
  color: var(--ink);
}

.login-brand span {
  color: var(--muted);
}

.login-panel h1 {
  margin: 2px 0 0;
}

.login-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.login-submit {
  min-height: 46px;
  font-size: 0.98rem;
}

.login-insight-panel {
  display: grid;
  align-content: end;
  gap: 16px;
  padding: 38px;
  color: #f6fbff;
  background:
    linear-gradient(180deg, rgba(35, 93, 143, 0.55), rgba(16, 42, 67, 0.9)),
    linear-gradient(135deg, #245f92, #14283d);
}

.login-insight-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.login-insight-panel .eyebrow {
  color: #b7d6ee;
}

.login-insight-panel h2,
.login-insight-panel p {
  margin: 0;
}

.login-insight-panel h2 {
  max-width: 360px;
  font-size: 1.7rem;
  line-height: 1.08;
}

.login-insight-panel p:not(.eyebrow) {
  color: #d9e8f4;
  line-height: 1.48;
}

.login-status-grid {
  display: grid;
  gap: 9px;
  margin-top: 6px;
}

.login-status-grid span {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.login-status-grid strong {
  font-size: 0.92rem;
}

.login-status-grid small {
  color: #c9dceb;
  font-size: 0.8rem;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 700;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 14px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(44, 109, 163, 0.24), transparent 210px),
    var(--sidebar);
  color: #f7fbf8;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 8px 0 24px rgba(17, 31, 27, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.26) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 8px 14px;
}

.brand strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(145deg, #2c6da3, #174365);
  font-weight: 800;
  box-shadow: inset 0 -12px 24px rgba(11, 35, 57, 0.22);
}

.brand span,
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand span {
  color: #a9bfd1;
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 8px;
  padding-bottom: 22px;
}

.nav-group {
  display: grid;
  gap: 4px;
  padding: 8px 7px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.032);
}

.nav-group summary {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 2px 3px;
  color: #9fb4c6;
  font-size: 0.7rem;
  font-weight: 800;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary > span {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  color: #dce9e3;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
}

.nav-group summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-group summary em {
  min-width: 24px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: #c5d7cf;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.65rem;
  font-style: normal;
  text-align: center;
}

.nav-group summary::after {
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.nav-group[open] summary::after {
  transform: rotate(225deg);
}

.nav-group-items {
  display: grid;
  gap: 4px;
}

.nav-group.active summary {
  color: #e3f2ff;
}

.nav-group.active summary > span {
  color: #10263a;
  background: #9cc8e4;
}

.nav-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 35px;
  padding: 5px 7px;
  border: 0;
  border-radius: var(--radius);
  color: #dce8f2;
  background: transparent;
  text-align: left;
}

.nav-button > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  font-size: 0.83rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-button:hover,
.nav-button.active {
  background: rgba(255, 255, 255, 0.105);
  color: #ffffff;
}

.nav-button.active {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 3px 0 0 #4f98cf;
}

.nav-icon {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(79, 152, 207, 0.42), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-icon::before,
.nav-icon::after,
.nav-icon-mark::before,
.nav-icon-mark::after {
  position: absolute;
  display: block;
  content: "";
}

.nav-icon-user::before {
  top: 6px;
  left: 9px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #eaf5ff;
}

.nav-icon-user::after {
  left: 6px;
  bottom: 5px;
  width: 16px;
  height: 8px;
  border-radius: 10px 10px 4px 4px;
  background: #9cc8e4;
}

.nav-icon-building::before {
  left: 7px;
  bottom: 5px;
  width: 14px;
  height: 18px;
  border-radius: 3px 3px 2px 2px;
  background: #d8ecfb;
}

.nav-icon-building::after {
  left: 10px;
  top: 9px;
  width: 3px;
  height: 3px;
  border-radius: 1px;
  background: #2c6da3;
  box-shadow: 6px 0 0 #2c6da3, 0 6px 0 #2c6da3, 6px 6px 0 #2c6da3;
}

.nav-icon-box::before {
  left: 6px;
  top: 9px;
  width: 16px;
  height: 13px;
  border-radius: 3px;
  background: #eaf5ff;
}

.nav-icon-box::after {
  left: 6px;
  top: 9px;
  width: 16px;
  height: 5px;
  border-bottom: 1px solid rgba(44, 109, 163, 0.55);
  background: #9cc8e4;
}

.nav-icon-money::before {
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  border: 2px solid #eaf5ff;
  border-radius: 999px;
}

.nav-icon-money::after {
  top: 9px;
  left: 13px;
  width: 2px;
  height: 11px;
  border-radius: 2px;
  background: #eaf5ff;
  box-shadow: -3px 3px 0 -1px #eaf5ff, 3px -3px 0 -1px #eaf5ff;
}

.nav-icon-check::before {
  left: 7px;
  top: 6px;
  width: 14px;
  height: 16px;
  border-radius: 3px;
  background: #eaf5ff;
}

.nav-icon-check::after {
  left: 10px;
  top: 13px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #2c6da3;
  border-bottom: 2px solid #2c6da3;
  transform: rotate(-45deg);
}

.nav-icon-doc::before {
  left: 8px;
  top: 5px;
  width: 13px;
  height: 18px;
  border-radius: 3px;
  background: #eaf5ff;
}

.nav-icon-doc::after {
  left: 11px;
  top: 12px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: #2c6da3;
  box-shadow: 0 5px 0 #2c6da3;
}

.nav-icon-alert::before {
  left: 7px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 8px 8px 5px 5px;
  background: #ffe3b8;
}

.nav-icon-alert::after {
  left: 13px;
  top: 10px;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: #9a5b12;
  box-shadow: 0 10px 0 #9a5b12;
}

.nav-icon-chart::before {
  left: 7px;
  bottom: 6px;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: #eaf5ff;
  box-shadow: 6px -4px 0 #9cc8e4, 12px -8px 0 #eaf5ff;
}

.nav-icon-chart::after {
  left: 6px;
  bottom: 5px;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: rgba(234, 245, 255, 0.75);
}

.nav-icon-calendar::before {
  left: 6px;
  top: 7px;
  width: 16px;
  height: 15px;
  border-radius: 3px;
  background: #eaf5ff;
}

.nav-icon-calendar::after {
  left: 6px;
  top: 10px;
  width: 16px;
  height: 3px;
  background: #9cc8e4;
}

.nav-icon-system::before {
  top: 7px;
  left: 7px;
  width: 14px;
  height: 14px;
  border: 3px solid #eaf5ff;
  border-radius: 999px;
}

.nav-icon-system::after {
  top: 12px;
  left: 12px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #9cc8e4;
}

.nav-count {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #c8d9e8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.shortcut-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shortcut-card-head .nav-icon {
  flex: 0 0 auto;
  background: linear-gradient(145deg, rgba(44, 109, 163, 0.2), rgba(100, 114, 132, 0.08));
}

.workspace {
  min-width: 0;
  background:
    linear-gradient(180deg, #fbfdff 0, var(--bg) 300px),
    var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 253, 255, 0.96);
  backdrop-filter: blur(14px);
}

.topbar > div:first-child {
  min-width: 220px;
  max-width: 430px;
}

.topbar h1,
.dialog-header h2 {
  margin: 2px 0 0;
  line-height: 1.1;
}

.topbar h1 {
  font-size: clamp(1.55rem, 2vw, 2.15rem);
}

.topbar-actions,
.dialog-actions,
.table-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-actions {
  justify-content: flex-end;
  min-width: 0;
  max-width: 980px;
}

.api-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.api-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #a4b0aa;
}

.api-status.online {
  color: var(--green-dark);
  background: var(--soft-green);
  border-color: #bed6ea;
}

.api-status.online::before {
  background: var(--green);
}

.api-status.local {
  color: #705019;
  background: #fff7e7;
  border-color: #ead39d;
}

.api-status.local::before {
  background: #c88d24;
}

.api-status.risk {
  color: #8b2f2f;
  background: #fff0f0;
  border-color: #edbaba;
}

.api-status.risk::before {
  background: #c84d4d;
}

.release-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.connection-warning {
  margin: 12px 20px 0;
  padding: 11px 14px;
  border: 1px solid #ead39d;
  border-radius: var(--radius);
  color: #705019;
  background: #fff9eb;
  font-size: 0.84rem;
  font-weight: 700;
}

.connection-warning.risk {
  color: #8b2f2f;
  background: #fff0f0;
  border-color: #edbaba;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.user-pill[data-role="admin"] {
  background: var(--blue);
}

.user-pill[data-role="socio"] {
  background: #5f4b8b;
}

.user-pill[data-role="engenheiro"] {
  background: #2c6da3;
}

.user-pill[data-role="almoxarife"],
.user-pill[data-role="financeiro"] {
  color: #5e390a;
  background: var(--soft-amber);
}

.user-pill[data-role="funcionario"] {
  color: var(--green-dark);
  background: var(--soft-green);
  border: 1px solid #bed6ea;
}

.company-select {
  min-height: 34px;
  max-width: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
}

.company-select:disabled {
  color: var(--ink);
  opacity: 1;
  background: #f8faf8;
}

.primary-button,
.ghost-button,
.icon-button {
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(180deg, #2d73aa, #1f5c8d);
  box-shadow: 0 8px 18px rgba(31, 92, 141, 0.18);
}

.primary-button:hover {
  background: linear-gradient(180deg, #27699e, #194b73);
  box-shadow: 0 10px 22px rgba(31, 92, 141, 0.22);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.ghost-button:hover {
  border-color: #b9ccdd;
  background: #f7fafd;
}

.primary-button:focus-visible,
.ghost-button:focus-visible,
.icon-button:focus-visible,
.company-select:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(44, 109, 163, 0.18);
}

#newRecordButton::before,
#guidedContractButton::before,
#exportPdfButton::before,
#logoutButton::before,
.login-submit::before {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

#newRecordButton::before {
  content: "+";
  color: #1d5b8a;
  background: #ffffff;
}

#guidedContractButton::before {
  content: ">";
  color: #1d5b8a;
  background: var(--blue-soft);
}

#exportPdfButton::before {
  content: "PDF";
  width: 28px;
  color: #8b2f2f;
  background: #fbe8e6;
}

#logoutButton::before {
  content: "X";
  color: var(--muted);
  background: #edf2f7;
}

.login-submit::before {
  content: ">";
  color: #1d5b8a;
  background: #ffffff;
}

.compact-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.icon-button {
  display: grid;
  width: 40px;
  place-items: center;
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.dashboard-band,
.module-band {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 24px 28px 44px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.kpi-card,
.chart-panel,
.table-panel,
.insight-panel,
.module-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.kpi-card {
  min-height: 108px;
  padding: 15px;
}

.kpi-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.kpi-card strong {
  display: block;
  margin-top: 7px;
  font-size: 1.44rem;
  line-height: 1;
}

.kpi-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.operation-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #cbddeb;
  border-radius: var(--radius);
  background: #fbfdff;
  box-shadow: var(--shadow);
}

.operation-home-main {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.operation-home-main h2,
.operation-home-main p {
  margin: 0;
}

.operation-home-main h2 {
  font-size: 1.45rem;
}

.operation-home-main p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

.operation-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.operation-meta span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #ffffff;
  font-size: 0.78rem;
}

.operation-meta strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shortcut-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 132px;
  padding: 13px;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.shortcut-card:hover,
.work-focus-card:hover {
  border-color: #8fb8d9;
  box-shadow: 0 0 0 3px rgba(31, 95, 143, 0.12);
}

.shortcut-card.static,
.work-focus-card.static {
  pointer-events: none;
}

.shortcut-card strong {
  font-size: 0.98rem;
}

.shortcut-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

.dashboard-work-panel {
  margin-bottom: 18px;
}

.work-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.work-focus-card {
  display: grid;
  gap: 12px;
  padding: 13px;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.work-focus-card > div:first-child {
  display: grid;
  gap: 4px;
}

.work-focus-card > div:first-child span {
  color: var(--muted);
  font-size: 0.82rem;
}

.work-focus-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.work-focus-metrics span {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.work-focus-metrics strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.work-start-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  gap: 14px;
  margin-bottom: 14px;
}

.work-next-card,
.dashboard-work-list,
.dashboard-details,
.dashboard-recent-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.work-next-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  gap: 14px;
  min-height: 184px;
  padding: 18px;
}

.work-next-card.warn {
  border-color: #e1c184;
  background: #fffaf1;
}

.work-next-card.risk {
  border-color: #dfa19b;
  background: #fff6f5;
}

.work-next-card h2,
.work-next-card p {
  margin: 0;
}

.work-next-card h2 {
  margin-bottom: 8px;
  font-size: 1.55rem;
  line-height: 1.08;
}

.work-next-card p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.45;
}

.work-next-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.work-next-meta span {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.78rem;
}

.work-next-meta strong {
  color: var(--ink);
}

.work-next-action {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(44, 109, 163, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.work-next-action strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.dashboard-work-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.dashboard-work-list-items {
  display: grid;
  gap: 8px;
}

.dashboard-work-row,
.dashboard-recent-item,
.quick-action-button {
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.dashboard-work-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "badge title progress"
    "badge detail progress";
  gap: 2px 9px;
  align-items: center;
  padding: 10px;
}

.dashboard-work-row .badge {
  grid-area: badge;
}

.dashboard-work-row strong {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-work-row small {
  grid-area: detail;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-work-row em {
  grid-area: progress;
  color: var(--blue-dark);
  font-style: normal;
  font-weight: 900;
}

.dashboard-work-row:hover,
.dashboard-recent-item:hover,
.quick-action-button:hover {
  border-color: #8fb8d9;
  box-shadow: 0 0 0 3px rgba(31, 95, 143, 0.1);
}

.dashboard-empty-row {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: #f8fbfd;
}

.dashboard-empty-row strong {
  color: var(--ink);
}

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.quick-action-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 11px 12px;
}

.quick-action-button .nav-icon {
  width: 36px;
  height: 36px;
}

.quick-action-button span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quick-action-button strong,
.quick-action-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action-button small {
  color: var(--muted);
}

.dashboard-details {
  margin-bottom: 14px;
  overflow: hidden;
}

.dashboard-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 900;
}

.dashboard-details summary em {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-style: normal;
}

.dashboard-details-body {
  padding: 0 14px 14px;
}

.dashboard-details .dashboard-role-grid {
  margin-bottom: 0;
}

.dashboard-compact-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-lower-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.dashboard-recent-panel {
  padding: 16px;
}

.dashboard-recent-list {
  display: grid;
  gap: 8px;
}

.dashboard-recent-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 9px;
  padding: 10px;
}

.dashboard-recent-item strong,
.dashboard-recent-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-recent-item small {
  color: var(--muted);
}

.analysis-primary-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analysis-more-kpis {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.analysis-more-kpis summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 900;
}

.analysis-more-kpis summary em {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  text-align: center;
  font-style: normal;
}

.analysis-more-kpis .kpi-grid {
  padding: 0 14px 14px;
  margin-bottom: 0;
}

.flow-workspace {
  display: grid;
  gap: 16px;
}

.flow-hero,
.flow-empty-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 16px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f7fafd);
  box-shadow: var(--shadow);
}

.flow-empty-panel {
  grid-template-columns: 1fr;
  align-items: start;
}

.flow-hero h2,
.flow-empty-panel h2 {
  margin: 0;
  font-size: 1.6rem;
}

.flow-hero span,
.flow-empty-panel p {
  color: var(--muted);
}

.flow-work-select {
  display: grid;
  gap: 7px;
}

.flow-work-select span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.flow-work-select select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.flow-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.flow-kpi-grid article {
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.flow-kpi-grid span,
.flow-kpi-grid small {
  color: var(--muted);
}

.flow-kpi-grid strong {
  display: block;
  margin: 6px 0;
  font-size: 1.32rem;
}

.flow-command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 10px;
}

.flow-command-card {
  display: grid;
  grid-template-areas:
    "icon badge"
    "icon title"
    "detail detail"
    "cta cta";
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px 10px;
  align-content: start;
  min-height: 116px;
  padding: 13px 14px;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.flow-command-card:hover {
  border-color: #93abc0;
  box-shadow: 0 0 0 3px rgba(44, 109, 163, 0.13);
}

.flow-command-card.warn {
  border-color: #e6c694;
  background: #fffaf3;
}

.flow-command-card.risk {
  border-color: #e6aaa5;
  background: #fff7f6;
}

.flow-command-card .flow-command-icon {
  grid-area: icon;
  align-self: start;
}

.flow-command-card .flow-command-icon .nav-icon {
  width: 38px;
  height: 38px;
}

.flow-command-card .badge {
  grid-area: badge;
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-command-card strong {
  grid-area: title;
  align-self: center;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.flow-command-card small {
  grid-area: detail;
  color: var(--muted);
  display: -webkit-box;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.flow-command-card em {
  grid-area: cta;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.flow-command-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.flow-command-grid.compact .flow-command-card {
  min-height: 112px;
}

.flow-secondary-actions {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.flow-secondary-actions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.flow-secondary-actions summary em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-style: normal;
  font-size: 0.78rem;
}

.flow-secondary-actions .flow-command-grid {
  padding: 0 12px 12px;
}

.flow-main-grid {
  align-items: start;
}

.flow-stage-panel,
.flow-actions-panel,
.flow-phases-panel,
.flow-alert-panel {
  padding: 16px;
}

.flow-stage-panel .setup-panel {
  margin-top: 14px;
  padding: 14px;
  box-shadow: none;
}

.flow-phase-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.flow-phase-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.flow-phase-card.warn {
  border-color: #e6c694;
}

.flow-phase-card.risk {
  border-color: #e6aaa5;
}

.flow-stage-panel .flow-phase-card {
  border-color: #c5d5e2;
  background: #fbfdff;
}

.flow-phase-top {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.flow-phase-top div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.flow-phase-top strong {
  font-size: 1rem;
}

.flow-phase-top span:not(.badge) {
  color: var(--muted);
  font-size: 0.82rem;
}

.flow-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.flow-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-dark), var(--blue));
}

.flow-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.flow-mini-metrics div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.flow-mini-metrics dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.flow-mini-metrics dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.flow-phase-actions,
.flow-action-grid,
.flow-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.flow-action-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  justify-content: center;
  white-space: normal;
}

.flow-empty-inline {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.flow-alert-list {
  display: grid;
  gap: 10px;
}

.flow-finance-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.flow-finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.flow-finance-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  font-size: 0.78rem;
}

.flow-finance-grid strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.flow-diagnosis-list,
.flow-timeline-list {
  display: grid;
  gap: 9px;
}

.flow-diagnosis,
.flow-timeline-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 11px;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.flow-diagnosis.warn,
.flow-timeline-item.warn {
  border-color: #e6c694;
  background: #fffaf3;
}

.flow-diagnosis.risk,
.flow-timeline-item.risk {
  border-color: #e6aaa5;
  background: #fff7f6;
}

.flow-diagnosis strong,
.flow-timeline-item strong {
  font-size: 0.9rem;
}

.flow-diagnosis small,
.flow-timeline-item small,
.flow-timeline-item span {
  color: var(--muted);
  font-size: 0.8rem;
}

.flow-timeline-panel {
  padding: 16px;
}

.flow-timeline-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.role-dashboard-grid {
  margin-bottom: 18px;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.task-card:hover {
  border-color: #8dbba9;
  box-shadow: 0 0 0 3px rgba(31, 95, 143, 0.12);
}

.task-card.risk {
  border-color: #efc1bd;
  background: #fff8f7;
}

.task-card.warn {
  border-color: #f1d4a7;
  background: #fffaf2;
}

.task-card.ok {
  border-color: #bddcca;
  background: #f5fbf7;
}

.task-card strong {
  min-width: 0;
  font-size: 0.94rem;
}

.task-card small {
  grid-column: 2 / 4;
  color: var(--muted);
  font-size: 0.82rem;
}

.task-card em {
  color: var(--green-dark);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.role-checklist {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.role-checklist li {
  color: var(--muted);
  font-size: 0.88rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.analysis-table {
  margin-top: 18px;
}

.chart-panel,
.table-panel,
.insight-panel,
.module-summary {
  padding: 16px;
}

.table-panel {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: #b8c7c0 transparent;
}

.table-panel::-webkit-scrollbar,
.budget-picker::-webkit-scrollbar,
.invoice-pdf-preview::-webkit-scrollbar {
  height: 9px;
  width: 9px;
}

.table-panel::-webkit-scrollbar-thumb,
.budget-picker::-webkit-scrollbar-thumb,
.invoice-pdf-preview::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b8c7c0;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
  font-size: 1.05rem;
}

.module-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.module-overview-card,
.module-overview-list {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.module-overview-card {
  display: grid;
  gap: 6px;
  min-height: 98px;
  padding: 13px;
}

.module-overview-card span,
.module-overview-card small {
  color: var(--muted);
}

.module-overview-card span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.module-overview-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.18rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-overview-card small {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-overview-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 13px;
}

.module-overview-list .panel-title {
  margin-bottom: 2px;
}

.module-overview-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 9px;
  align-items: center;
  min-height: 50px;
  padding: 9px 10px;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.module-overview-item:disabled {
  cursor: default;
}

.module-overview-item strong,
.module-overview-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-overview-item small {
  color: var(--muted);
}

.module-overview-item:hover:not(:disabled) {
  border-color: #8fb8d9;
  box-shadow: 0 0 0 3px rgba(31, 95, 143, 0.1);
}

.chart {
  width: 100%;
  min-height: 260px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  align-items: end;
  gap: 12px;
  height: 260px;
  padding-top: 10px;
  border-bottom: 1px solid var(--line);
}

.bar {
  display: grid;
  align-content: end;
  gap: 8px;
  height: 100%;
}

.bar-fill {
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #2c6da3, #1f5f8f);
}

.bar-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.finance-curve {
  display: grid;
  grid-template-columns: repeat(8, minmax(70px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 270px;
}

.finance-month {
  display: grid;
  align-content: end;
  gap: 8px;
  height: 100%;
  min-width: 0;
}

.finance-month > span,
.finance-month > strong {
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.finance-month > strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.dual-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(10px, 1fr));
  align-items: end;
  gap: 4px;
  height: 190px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
}

.dual-bars i {
  display: block;
  min-height: 6px;
  border-radius: 8px 8px 0 0;
}

.dual-bars .income {
  background: var(--green);
}

.dual-bars .expense {
  background: var(--amber);
}

.timeline-list,
.insight-list,
.alert-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item,
.insight-item,
.alert-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

button.insight-item {
  width: 100%;
  color: inherit;
  background: #ffffff;
  text-align: left;
}

button.insight-item:hover,
.alert-item.focused {
  border-color: #8dbba9;
  box-shadow: 0 0 0 3px rgba(31, 95, 143, 0.14);
}

.alert-link em {
  color: var(--green-dark);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.timeline-item strong,
.insight-item strong {
  font-size: 0.94rem;
}

.timeline-item span,
.insight-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.alert-item {
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 0.5fr);
  align-items: center;
  gap: 12px;
}

.alert-item.risk {
  border-color: #efc1bd;
  background: #fff8f7;
}

.alert-item.warn {
  border-color: #f1d4a7;
  background: #fffaf2;
}

.alert-item.ok {
  border-color: #bddcca;
  background: #f5fbf7;
}

.alert-item div {
  display: grid;
  gap: 3px;
}

.alert-item span,
.alert-item em {
  color: var(--muted);
  font-size: 0.84rem;
}

.alert-item em {
  font-style: normal;
  font-weight: 700;
}

.executive-analysis-grid {
  margin-bottom: 16px;
}

.executive-diagnosis-list .alert-item {
  grid-template-columns: auto minmax(0, 1fr);
}

.executive-diagnosis-list .alert-item em {
  grid-column: 2;
  color: var(--green-dark);
}

.role-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.role-card {
  display: grid;
  gap: 12px;
  align-content: space-between;
  min-height: 158px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.role-card div {
  display: grid;
  gap: 6px;
}

.role-card strong {
  font-size: 0.98rem;
}

.role-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.role-template {
  padding: 10px;
  border: 1px solid #d6e6df;
  border-radius: 8px;
  background: #ffffff;
}

.role-template span {
  display: block;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.role-template span + span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.access-matrix-table {
  min-width: 760px;
}

.access-monitor-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 13px;
  border: 1px solid #d6e6df;
  border-radius: 8px;
  background: #ffffff;
  overflow-x: auto;
}

.access-events-table {
  min-width: 760px;
}

.access-panel {
  overflow-x: auto;
}

.restricted-summary {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid #d6e6df;
  border-radius: 8px;
  background: #f8fcfa;
}

.restricted-summary > strong {
  color: var(--green-dark);
}

.restricted-summary div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.restricted-summary span {
  display: grid;
  gap: 3px;
  color: var(--ink);
  font-size: 0.86rem;
}

.restricted-summary em {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
}

.executive-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.executive-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.driver-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.driver-list li {
  display: grid;
  gap: 7px;
}

.driver-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.driver-list strong {
  color: var(--ink);
}

.driver-list i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #8fb2d4);
}

.module-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #ffffff 0, #ffffff 62%, #f4f8f5 100%);
  box-shadow: var(--shadow-soft);
}

.module-header h2 {
  margin: 0;
  font-size: 1.54rem;
  line-height: 1.12;
}

.module-header p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.module-summary {
  background: #fbfdfc;
  box-shadow: var(--shadow-soft);
}

.registry-home {
  display: grid;
  gap: 16px;
}

.registry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.registry-hero h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.12;
}

.registry-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.registry-hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 8px;
}

.registry-hero-kpis span {
  display: grid;
  gap: 2px;
  min-width: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.registry-hero-kpis strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.registry-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.registry-section .panel-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.registry-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.registry-card-head,
.registry-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.registry-card-head {
  justify-content: space-between;
}

.registry-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.registry-card small {
  color: var(--muted);
  line-height: 1.35;
}

.registry-card-actions {
  flex-wrap: wrap;
  margin-top: auto;
}

.module-recovery-panel {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.module-recovery-panel pre {
  max-height: 160px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #82312c;
  background: #fff7f6;
  white-space: pre-wrap;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 6px;
  margin-bottom: 18px;
}

.workflow-strip span {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.workflow-strip span.active {
  color: var(--green-dark);
  border-color: #a8d2bd;
  background: var(--soft-green);
}

.guided-panel,
.guided-completion-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #b9d6ca;
  border-radius: var(--radius);
  background: #f8fcfa;
}

.guided-panel h3,
.guided-panel p,
.guided-completion-panel h3,
.guided-completion-panel p {
  margin: 0;
}

.guided-panel {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  align-items: start;
}

.guided-panel-intro {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.guided-panel-intro > span,
.guided-completion-panel p {
  color: var(--muted);
  font-size: 0.88rem;
}

.guided-instruction {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #d6e6df;
  border-radius: var(--radius);
  background: #ffffff;
}

.guided-instruction strong {
  color: var(--green-dark);
}

.guided-instruction p,
.guided-instruction small {
  color: var(--muted);
  line-height: 1.42;
}

.guided-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.guided-steps span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 7px;
  row-gap: 2px;
  align-items: center;
  min-height: 52px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
}

.guided-steps b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--soft-green);
  font-size: 0.78rem;
}

.guided-steps em,
.guided-steps small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guided-steps em {
  color: var(--ink);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
}

.guided-steps small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.guided-steps span.active {
  border-color: #8dbba9;
  background: var(--soft-green);
}

.guided-steps span.active b {
  color: #ffffff;
  background: var(--green);
}

.guided-steps span.done {
  border-color: #cfe2d9;
  background: #ffffff;
}

.guided-steps span.done b {
  color: #ffffff;
  background: var(--green);
}

.guided-status-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.guided-status-grid.compact {
  grid-column: auto;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
}

.guided-status-grid article {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.guided-status-grid article.ok {
  border-color: #cfe2d9;
}

.guided-status-grid article.warn {
  background: #fffdf8;
}

.guided-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guided-status-grid strong {
  display: block;
  min-width: 0;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guided-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.guided-completion-panel {
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  background: #ffffff;
}

.contract-control-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  border-color: #cfded8;
  background: #fbfcfb;
}

.contract-control-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 380px);
  gap: 14px;
  align-items: start;
}

.contract-control-header h3 {
  margin: 0;
}

.contract-control-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.contract-control-header label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contract-flow-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.contract-flow-strip button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 7px;
  row-gap: 2px;
  align-items: center;
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.contract-flow-strip button.done {
  border-color: #cfe2d9;
}

.contract-flow-strip button.active {
  border-color: #e0bd80;
  background: #fffaf2;
}

.contract-flow-strip b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--soft-green);
  font-size: 0.78rem;
}

.contract-flow-strip button.done b {
  color: #ffffff;
  background: var(--green);
}

.contract-flow-strip span,
.contract-flow-strip small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-flow-strip span {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.contract-flow-strip small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-control-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contract-control-body article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.contract-control-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.contract-control-body article > span:not(.badge) {
  color: var(--muted);
  font-size: 0.86rem;
}

.contract-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-summary {
  display: grid;
  gap: 12px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.report-scope-control {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.report-scope-control select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  padding: 0 12px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.search-row input,
.search-row select,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search-row input:focus,
.search-row select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: #86b5d8;
  box-shadow: 0 0 0 3px rgba(44, 109, 163, 0.14);
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.field-label-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.required-marker {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #7a4d00;
  background: #fff0bd;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #a8cde8;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--blue-soft);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: help;
}

.help-tooltip {
  position: fixed;
  z-index: 10000;
  display: none;
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  padding: 10px 12px;
  border: 1px solid #b9ccdd;
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(20, 35, 54, 0.17);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  white-space: normal;
  overflow-wrap: break-word;
  pointer-events: none;
}

.help-tooltip.visible {
  display: block;
}

.inline-create-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 0.76rem;
}

.linked-field-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.linked-field-control select {
  min-width: 0;
}

.linked-edit-button {
  min-height: 42px;
  padding: 0 10px;
  white-space: nowrap;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.attendance-items {
  display: grid;
  gap: 8px;
}

.attendance-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(140px, 0.7fr) minmax(180px, 1.2fr) auto;
  gap: 8px;
}

.attendance-row input,
.attendance-row select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
}

.phase-team-planner {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}

.phase-team-help {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.phase-team-rows {
  display: grid;
  gap: 8px;
}

.phase-team-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(80px, 0.5fr) minmax(120px, 0.8fr) minmax(130px, 0.8fr) auto;
  gap: 8px;
  align-items: center;
}

.phase-team-grid-head {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.phase-team-row select,
.phase-team-row input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
}

.phase-team-row [data-phase-team-line-total] {
  font-weight: 900;
  color: var(--ink);
}

.phase-team-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.phase-team-footer strong {
  color: var(--brand-strong);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-row label {
  display: grid;
  gap: 5px;
  min-width: 220px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-row select,
.filter-row input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: #ffffff;
}

.setup-panel {
  overflow: hidden;
  border-left: 4px solid #9bc9b7;
}

.setup-panel .panel-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.setup-panel .topbar-actions {
  justify-content: flex-start;
  padding-top: 2px;
}

.setup-panel + .setup-panel {
  margin-top: 12px;
}

.invoice-xml-panel,
.invoice-pdf-panel,
.invoice-stock-panel,
.payment-panel,
.purchase-panel,
.loan-panel,
.cashflow-panel,
.stock-issue-panel,
.weekly-material-panel {
  box-shadow: var(--shadow-soft);
}

.invoice-pdf-panel {
  border-left-color: #8da7bf;
}

.invoice-stock-panel,
.stock-issue-panel,
.weekly-material-panel {
  border-left-color: #d0a35a;
}

.payment-panel,
.loan-panel,
.cashflow-panel {
  border-left-color: #8fa2c8;
}

.purchase-panel {
  border-left-color: #92b6a8;
}

.setup-panel {
  display: grid;
  gap: 12px;
}

.guided-generator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.compact-planning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.readiness-step-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.readiness-step-card strong,
.readiness-step-card span,
.readiness-step-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.readiness-step-card span,
.readiness-step-card small {
  color: var(--muted);
  font-size: 0.76rem;
}

.planner-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 800;
}

.planner-toggle input {
  width: auto;
  min-height: auto;
}

.planning-readiness-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  border-color: #d5dfda;
  background: #ffffff;
}

.planning-readiness-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.planning-readiness-header h3 {
  margin: 0;
}

.planning-readiness-header span:not(.planning-score) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.planning-score {
  display: grid;
  min-width: 74px;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--soft-green);
  font-size: 1.08rem;
  font-weight: 950;
}

.planning-score.warn {
  color: #8b5e12;
  background: #fff5df;
}

.planning-score.risk {
  color: #9d2d22;
  background: #fff0ee;
}

.planning-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
}

.planning-check-grid button {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.planning-check-grid button.ok {
  border-color: #cfe2d9;
  background: #fbfdfc;
}

.planning-check-grid button.warn {
  border-color: #f0d2a8;
  background: #fffaf2;
}

.planning-check-grid strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planning-check-grid span,
.planning-readiness-body span {
  color: var(--muted);
  font-size: 0.8rem;
}

.planning-readiness-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.planning-readiness-body article {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.planning-readiness-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guided-team-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 14px;
}

.guided-check-grid label span {
  display: grid;
  gap: 2px;
}

.guided-check-grid small {
  color: var(--muted);
  font-size: 0.72rem;
}

.catalog-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding: 2px;
}

.catalog-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(72px, 0.35fr);
  gap: 9px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.catalog-card:has(input:checked) {
  border-color: #8dbba9;
  background: var(--soft-green);
}

.catalog-card.disabled {
  opacity: 0.58;
}

.catalog-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.catalog-card strong {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.catalog-card small {
  color: var(--muted);
  font-size: 0.76rem;
}

.catalog-qty {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}

.budget-control-row {
  align-items: end;
}

.budget-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.budget-material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px;
}

.budget-material-card {
  display: grid;
  gap: 9px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.budget-material-card:has(input[type="checkbox"]:checked) {
  border-color: #8dbba9;
  background: var(--soft-green);
}

.budget-material-card.disabled {
  opacity: 0.58;
}

.budget-material-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 0;
}

.budget-material-title span,
.budget-material-inputs label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.budget-material-title strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.budget-material-title small,
.budget-material-inputs span {
  color: var(--muted);
  font-size: 0.74rem;
}

.budget-material-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.budget-material-meta span {
  max-width: 100%;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 7px;
  color: #175f4e;
  background: var(--soft-green);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.budget-material-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.invoice-xml-panel {
  border-color: #c8ddd4;
  background: #fbfdfc;
}

.invoice-pdf-panel {
  border-color: #d9dde8;
  background: #fbfcff;
}

.invoice-xml-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(auto-fit, minmax(150px, 0.8fr));
  gap: 10px;
}

.invoice-xml-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.invoice-xml-grid article.warn {
  border-color: #f0d2a8;
  background: #fffaf2;
}

.invoice-xml-grid article.ok {
  border-color: #c8ddd4;
  background: #f8fcfa;
}

.invoice-xml-grid article span,
.invoice-xml-grid article small {
  color: var(--muted);
  font-size: 0.78rem;
}

.invoice-xml-grid article strong,
.invoice-xml-grid article small {
  overflow-wrap: anywhere;
}

.invoice-xml-items {
  margin-top: 2px;
  min-width: 900px;
}

.invoice-pdf-fields {
  min-width: 640px;
}

.invoice-pdf-ocr-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px dashed #c7d3df;
  border-radius: var(--radius);
  background: #f7faff;
}

.invoice-pdf-ocr-box textarea {
  min-height: 94px;
}

.invoice-pdf-preview {
  max-height: 120px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.table-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.invoice-missing-materials {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #f0d2a8;
  border-radius: var(--radius);
  background: #fffaf2;
}

.invoice-missing-list {
  display: grid;
  gap: 8px;
}

.invoice-missing-list article {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(120px, 0.6fr));
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid #f0d2a8;
  border-radius: var(--radius);
  background: #ffffff;
}

.invoice-missing-list article > div,
.invoice-missing-list article > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.invoice-missing-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.invoice-missing-list strong {
  overflow-wrap: anywhere;
}

.invoice-stock-panel {
  border-color: #d7e2dc;
  background: #ffffff;
}

.invoice-stock-list {
  display: grid;
  gap: 8px;
}

.invoice-stock-list article {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, 0.6fr)) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.invoice-stock-list article > div,
.invoice-stock-list article > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.invoice-stock-list article span,
.invoice-stock-list article > div span {
  color: var(--muted);
  font-size: 0.78rem;
}

.invoice-stock-list strong {
  overflow-wrap: anywhere;
}

.stock-issue-panel {
  border-color: #d7e2dc;
  background: #fbfdfc;
}

.stock-issue-list {
  display: grid;
  gap: 8px;
}

.stock-issue-list article {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(90px, 0.5fr)) minmax(130px, 0.6fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.stock-issue-list article.warn {
  border-color: #f0dcb3;
  background: #fffaf0;
}

.stock-issue-list article > div,
.stock-issue-list article > span,
.stock-issue-list label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.stock-issue-list article span,
.stock-issue-list article small,
.stock-issue-list label {
  color: var(--muted);
  font-size: 0.78rem;
}

.stock-issue-list input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: #ffffff;
}

.stock-issue-list strong {
  overflow-wrap: anywhere;
}

.document-hub {
  margin-bottom: 16px;
}

.document-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.document-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  min-height: 166px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.document-card > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.document-card strong,
.document-card a {
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.document-card span,
.document-card dd,
.document-card dt {
  font-size: 0.75rem;
}

.document-card > div:first-child span,
.document-card dt {
  color: var(--muted);
}

.document-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  margin: 0;
}

.document-card dt,
.document-card dd {
  margin: 0;
}

.document-card dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 800;
}

.backup-panel {
  margin-bottom: 16px;
}

.backup-health-panel {
  margin-bottom: 16px;
}

.backup-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.backup-health-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.backup-health-card.ok {
  border-color: #cfe6dc;
  background: #f8fcfa;
}

.backup-health-card.warn {
  border-color: #f3d9ad;
  background: #fffaf0;
}

.backup-health-card.risk {
  border-color: #f1b6b6;
  background: #fff5f5;
}

.backup-health-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.backup-health-card strong {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
}

.backup-health-card small {
  color: var(--muted);
  line-height: 1.35;
}

.backup-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.backup-action-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  min-height: 170px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.backup-action-card > div {
  display: grid;
  gap: 5px;
}

.backup-action-card strong {
  font-size: 1rem;
}

.backup-action-card span,
.backup-warning {
  color: var(--muted);
  font-size: 0.82rem;
}

.backup-action-card input[type="file"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
}

.backup-warning {
  margin: 2px 0 0;
}

.system-panel {
  margin-bottom: 16px;
}

.software-connection-panel {
  border-color: #c8ddd4;
  background: #fbfdfc;
}

.connection-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(auto-fit, minmax(190px, 0.75fr));
  gap: 12px;
  margin-bottom: 12px;
}

.connection-field {
  align-content: start;
  min-width: 0;
}

.connection-status-card {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.connection-status-card.ok {
  border-color: #bddcca;
  background: #f5fbf7;
}

.connection-status-card.risk {
  border-color: #efc1bd;
  background: #fff8f7;
}

.connection-status-card span,
.connection-status-card small {
  color: var(--muted);
  font-size: 0.8rem;
}

.connection-status-card strong,
.connection-status-card small {
  overflow-wrap: anywhere;
}

.network-url-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.network-url-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d6e6df;
  border-radius: 8px;
  background: #ffffff;
}

.network-url-card.warn {
  border-color: #f3d9ad;
  background: #fffaf0;
}

.network-url-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.network-url-card strong,
.network-url-card span {
  overflow-wrap: anywhere;
}

.network-url-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.compact-section-title {
  margin-top: 12px;
}

.homologation-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.homologation-step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.homologation-step-card b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 0.85rem;
}

.homologation-step-card div,
.homologation-profile-card header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.homologation-step-card strong,
.homologation-step-card span,
.homologation-step-card small,
.homologation-profile-card strong,
.homologation-profile-card span,
.homologation-profile-card dd {
  overflow-wrap: anywhere;
}

.homologation-step-card span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.homologation-step-card small,
.homologation-profile-card span,
.homologation-profile-card dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.homologation-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.homologation-profile-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.homologation-profile-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.homologation-profile-card dl {
  display: grid;
  grid-template-columns: minmax(92px, 0.45fr) minmax(0, 1fr);
  gap: 7px 10px;
  margin: 0;
}

.homologation-profile-card dt,
.homologation-profile-card dd {
  margin: 0;
}

.homologation-profile-card dd {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.integrity-issues-table {
  margin-top: 12px;
  min-width: 920px;
}

.budget-picker {
  display: grid;
  gap: 8px;
  max-height: min(520px, calc(100vh - 330px));
  overflow: auto;
  padding: 4px 3px 8px;
  scrollbar-width: thin;
  scrollbar-color: #b8c7c0 transparent;
}

.budget-picker-head,
.budget-picker-row {
  display: grid;
  grid-template-columns: minmax(320px, 1.8fr) minmax(82px, 0.35fr) minmax(118px, 0.55fr) minmax(124px, 0.6fr);
  gap: 12px;
  align-items: center;
}

.budget-picker-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #f8faf8;
  font-size: 0.78rem;
  font-weight: 900;
}

.budget-picker-row {
  min-height: 72px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.budget-picker-row:has(input:checked) {
  border-color: #8dbba9;
  background: var(--soft-green);
}

.budget-picker-row.disabled {
  opacity: 0.58;
}

.budget-item-name {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 2px;
  align-items: start;
  min-width: 0;
}

.budget-item-name input[type="checkbox"] {
  margin-top: 4px;
}

.budget-item-name strong,
.budget-item-name small {
  grid-column: 2;
  min-width: 0;
}

.budget-item-name strong {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.2;
}

.budget-item-name small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.28;
}

.budget-picker-row input[type="number"] {
  width: 100%;
  min-width: 0;
}

.budget-picker-row > span,
.budget-picker-row > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.month-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.month-selector label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.month-selector label:has(input:checked) {
  border-color: #8dbba9;
  color: var(--green-dark);
  background: var(--soft-green);
}

.monthly-analysis-panel {
  margin-bottom: 16px;
}

.monthly-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.monthly-insight-block {
  min-width: 0;
}

.mini-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.mini-kpi-row > span,
.mini-kpi-row > article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8faf8;
  font-size: 0.82rem;
}

.mini-kpi-row > span strong,
.mini-kpi-row > article strong {
  color: var(--ink);
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.mini-kpi-row > article span {
  color: var(--muted);
  font-size: 0.82rem;
}

.operational-work-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  border-color: #cfe0d8;
  background: #fbfdfc;
}

.operational-work-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 14px;
  align-items: start;
}

.operational-work-header h3 {
  margin: 0;
}

.operational-work-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.operational-work-header label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.operational-kpis {
  margin-bottom: 0;
}

.operational-work-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 0.9fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: stretch;
}

.operational-work-signal,
.operational-next-card,
.operational-diagnosis {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.operational-work-signal span,
.operational-next-card small,
.operational-diagnosis span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.operational-next-card.warn {
  border-color: #f0d2a8;
  background: #fffaf2;
}

.operational-next-card.risk {
  border-color: #e3aaa5;
  background: #fff7f6;
}

.operational-next-card strong,
.operational-next-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.operational-next-card strong {
  white-space: nowrap;
}

.operational-next-card .compact-button {
  justify-self: start;
}

.operational-diagnosis-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.operational-diagnosis {
  width: 100%;
  border-color: var(--line);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.operational-diagnosis.warn {
  border-color: #f0d2a8;
  background: #fffaf2;
}

.operational-diagnosis.risk {
  border-color: #e3aaa5;
  background: #fff7f6;
}

.operational-work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weekly-material-panel {
  margin-bottom: 16px;
}

.purchase-panel {
  margin-bottom: 16px;
}

.payment-panel {
  margin-bottom: 16px;
}

.payment-list,
.purchase-list {
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow: auto;
  padding: 2px;
}

.payment-list article,
.purchase-list article {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(92px, 0.55fr)) minmax(168px, auto);
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.payment-list article.warn,
.purchase-list article.warn {
  border-color: #f0d2a8;
  background: #fffaf2;
}

.payment-list article.risk,
.purchase-list article.risk {
  border-color: #e3aaa5;
  background: #fff7f6;
}

.payment-list article > div:first-child,
.purchase-list article > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payment-list article > div:first-child span,
.payment-list article > span,
.purchase-list article > div:first-child span,
.purchase-list article > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.payment-list strong,
.purchase-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-list article > span strong,
.purchase-list article > span strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.9rem;
}

.payment-list .table-actions,
.purchase-list .table-actions {
  justify-content: flex-end;
}

.weekly-material-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 2px;
}

.weekly-material-list article {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(92px, 0.55fr)) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.weekly-material-list article.warn {
  border-color: #f0d2a8;
  background: #fffaf2;
}

.weekly-material-list article.risk {
  border-color: #e3aaa5;
  background: #fff7f6;
}

.weekly-material-list article > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.weekly-material-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.weekly-material-list article > div:first-child span,
.weekly-material-list article > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.weekly-material-list article > span strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.9rem;
}

.consumption-analysis-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.consumption-analysis-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 2px;
}

.consumption-analysis-list article {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(6, minmax(92px, 0.55fr)) minmax(120px, 0.6fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.consumption-analysis-list article.warn {
  border-color: #f0d2a8;
  background: #fffaf2;
}

.consumption-analysis-list article.risk {
  border-color: #e3aaa5;
  background: #fff7f6;
}

.consumption-analysis-list article > div:first-child,
.consumption-analysis-list article > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.consumption-analysis-list article > div:first-child span,
.consumption-analysis-list article > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.consumption-analysis-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.consumption-analysis-list article > span strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.9rem;
}

.analysis-cause {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
}

.analysis-cause.warn {
  color: #9a5b00;
}

.daily-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.daily-summary p {
  margin: 0;
  color: var(--muted);
}

.daily-work {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.daily-work:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.daily-work div {
  display: grid;
  gap: 4px;
}

.daily-work div span {
  color: var(--muted);
  font-size: 0.86rem;
}

.daily-work ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.daily-work li {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.5fr) minmax(160px, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.daily-work li em {
  color: var(--muted);
  font-style: normal;
}

.data-table {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
}

.data-table th,
.data-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #f2f6fb;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: #f7fafd;
}

.data-table td {
  background: rgba(255, 255, 255, 0.68);
  line-height: 1.34;
}

.data-table td,
.data-table th {
  max-width: 320px;
}

.data-table tbody tr:hover td {
  background: #f7fafd;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge.ok {
  color: var(--green-dark);
  background: var(--soft-green);
}

.badge.warn {
  color: #815014;
  background: var(--soft-amber);
}

.badge.risk {
  color: #82312c;
  background: var(--soft-red);
}

.badge.neutral {
  color: var(--muted);
  background: #edf2f7;
}

.access-level-select {
  width: auto;
  min-width: 78px;
  border: 0;
  text-align: center;
  appearance: none;
}

.access-level-select:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.hidden {
  display: none;
}

.record-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.record-dialog::backdrop {
  background: rgba(19, 35, 30, 0.42);
  backdrop-filter: blur(3px);
}

.dialog-panel {
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px;
  background: #ffffff;
}

.dialog-header {
  position: sticky;
  top: -22px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: -22px -22px 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.optional-fields {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.optional-fields summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.optional-fields summary em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.optional-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 0 12px 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: 0.8rem;
}

.subform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.epi-items {
  display: grid;
  gap: 10px;
}

.epi-help-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(90px, 0.8fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(120px, 0.9fr) auto;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.epi-help-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.epi-item-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(90px, 0.8fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(120px, 0.9fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafd;
}

.epi-item-row input,
.epi-item-row select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
}

.dialog-actions {
  position: sticky;
  bottom: -22px;
  z-index: 2;
  justify-content: flex-end;
  margin: 20px -22px -22px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

/* Executive interface refresh */
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #d8e2ee;
  --line-strong: #b9c8d8;
  --green: #2563eb;
  --green-dark: #1e3a8a;
  --amber: #f59e0b;
  --red: #dc2626;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #dbeafe;
  --soft-green: #e0f2fe;
  --soft-amber: #fff7ed;
  --soft-red: #fee2e2;
  --shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.06);
  --sidebar: #071628;
  --sidebar-soft: rgba(255, 255, 255, 0.08);
}

body {
  background:
    linear-gradient(180deg, #f8fbff 0, #eef4fb 360px),
    var(--bg);
}

.app-shell {
  grid-template-columns: 268px minmax(0, 1fr);
}

.sidebar {
  padding: 18px 12px;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.18), transparent 260px),
    linear-gradient(145deg, #061121 0, #0b1f35 48%, #071628 100%);
  box-shadow: 12px 0 32px rgba(15, 23, 42, 0.16);
}

.brand {
  gap: 13px;
  padding: 10px 10px 18px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-color: rgba(147, 197, 253, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(145deg, #2563eb, #0f4c81);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24), inset 0 -10px 18px rgba(2, 6, 23, 0.22);
}

.brand strong {
  font-size: 0.98rem;
}

.brand span {
  color: #bfdbfe;
}

.nav-list {
  gap: 10px;
}

.nav-group {
  padding: 8px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-group summary {
  min-height: 25px;
  color: #aebdd1;
}

.nav-group summary > span,
.nav-group summary em {
  background: rgba(148, 163, 184, 0.16);
}

.nav-group.active {
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(30, 41, 59, 0.58);
}

.nav-group.active summary {
  color: #e0f2fe;
}

.nav-group.active summary > span {
  color: #06233d;
  background: #bae6fd;
}

.nav-button {
  min-height: 40px;
  padding: 6px 8px;
  color: #d9e5f4;
}

.nav-button:hover {
  background: rgba(148, 163, 184, 0.14);
}

.nav-button.active {
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.nav-button.active .nav-count {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.18);
}

.nav-icon {
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.5), rgba(255, 255, 255, 0.11));
}

.workspace {
  background:
    linear-gradient(180deg, #ffffff 0, #f4f7fb 300px),
    var(--bg);
}

.topbar {
  min-height: 88px;
  padding: 18px 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.topbar h1 {
  color: #0f172a;
  font-size: clamp(1.8rem, 2.3vw, 2.45rem);
  letter-spacing: 0;
}

.topbar .eyebrow {
  color: #64748b;
}

.api-status,
.release-pill,
.company-select,
.user-pill,
.ghost-button {
  min-height: 38px;
  border-radius: 8px;
}

.api-status,
.release-pill {
  background: #f8fafc;
}

.api-status.online {
  color: #1e3a8a;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.user-pill {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

.primary-button {
  min-height: 42px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.primary-button:hover {
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

.ghost-button {
  border-color: #dbe4ef;
  background: #ffffff;
}

.ghost-button:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.dashboard-band,
.module-band {
  padding: 26px 34px 52px;
}

.kpi-card,
.chart-panel,
.table-panel,
.insight-panel,
.module-summary,
.work-next-card,
.dashboard-work-list,
.dashboard-details,
.dashboard-recent-panel {
  border-color: #dbe4ef;
  box-shadow: var(--shadow-soft);
}

.kpi-card {
  position: relative;
  min-height: 116px;
  padding: 16px 16px 16px 74px;
  overflow: hidden;
}

.kpi-card::before {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  content: "";
}

.kpi-card::after {
  position: absolute;
  left: 31px;
  top: 29px;
  width: 14px;
  height: 14px;
  border: 3px solid #ffffff;
  border-top-color: transparent;
  border-radius: 999px;
  content: "";
}

.kpi-card:nth-child(2)::before {
  background: linear-gradient(145deg, #0ea5e9, #2563eb);
}

.kpi-card:nth-child(3)::before {
  background: linear-gradient(145deg, #f97316, #f59e0b);
}

.kpi-card:nth-child(4)::before {
  background: linear-gradient(145deg, #ef4444, #dc2626);
}

.kpi-card span {
  font-size: 0.84rem;
  font-weight: 800;
}

.kpi-card strong {
  margin-top: 8px;
  font-size: 1.55rem;
}

.work-start-panel {
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 16px;
}

.work-next-card {
  min-height: 214px;
  padding: 20px;
  border-color: #c7d7ea;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 55%),
    #ffffff;
}

.work-next-card.warn {
  border-color: #fed7aa;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent 56%),
    #ffffff;
}

.work-next-card.risk {
  border-color: #fecaca;
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.1), transparent 56%),
    #ffffff;
}

.work-next-card h2 {
  font-size: clamp(1.45rem, 2.1vw, 2.05rem);
}

.work-next-action {
  border-color: #dbeafe;
  background: #f8fbff;
}

.work-next-meta span,
.operation-meta span,
.flow-kpi-grid article,
.flow-mini-metrics div,
.flow-finance-grid span {
  border-color: #dbe4ef;
  background: #f8fafc;
}

.dashboard-work-list,
.dashboard-recent-panel,
.dashboard-chart-panel,
.insight-panel {
  padding: 16px;
}

.dashboard-work-row {
  grid-template-columns: auto minmax(0, 1fr) 48px;
  grid-template-areas:
    "badge title percent"
    "badge detail percent"
    "badge bar percent";
  gap: 4px 10px;
  padding: 11px;
}

.dashboard-work-row em {
  grid-area: percent;
}

.dashboard-work-progress {
  grid-area: bar;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.dashboard-work-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.dashboard-quick-actions {
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 12px;
}

.quick-action-button {
  min-height: 82px;
  padding: 13px;
  border-color: #dbe4ef;
  background: #ffffff;
}

.quick-action-button .nav-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
}

.quick-action-button:hover,
.dashboard-work-row:hover,
.dashboard-recent-item:hover,
.flow-command-card:hover,
.shortcut-card:hover,
.work-focus-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), var(--shadow-soft);
  transform: translateY(-1px);
}

.dashboard-lower-grid {
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, 1fr) minmax(300px, 0.85fr);
  align-items: stretch;
}

.dashboard-chart-panel {
  display: grid;
  gap: 14px;
  min-height: 310px;
}

.dashboard-finance-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(34px, 1fr));
  align-items: end;
  min-height: 190px;
  gap: 12px;
  padding: 12px 8px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px) 0 0 / 100% 25%,
    #fbfdff;
}

.dashboard-finance-month {
  display: grid;
  align-items: end;
  gap: 7px;
  min-height: 160px;
}

.dashboard-finance-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(8px, 1fr));
  align-items: end;
  gap: 4px;
  height: 132px;
}

.dashboard-finance-bars span {
  display: block;
  min-height: 2px;
  border-radius: 999px 999px 2px 2px;
}

.dashboard-finance-bars .income,
.dashboard-chart-legend .income {
  background: linear-gradient(180deg, #2563eb, #60a5fa);
}

.dashboard-finance-bars .expense,
.dashboard-chart-legend .expense {
  background: linear-gradient(180deg, #fb7185, #ef4444);
}

.dashboard-finance-month strong {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.dashboard-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dashboard-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.dashboard-recent-item {
  padding: 11px;
}

.insight-list {
  gap: 8px;
}

.insight-item.alert-link {
  border-color: #dbe4ef;
}

.module-header,
.flow-hero,
.operation-home,
.registry-hero,
.contract-control-header,
.planning-readiness-header,
.guided-panel {
  border-color: #dbe4ef;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.data-table {
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  background: #f8fafc;
  color: #334155;
}

.data-table tbody tr:hover td {
  background: #eff6ff;
}

.field input,
.field select,
.field textarea,
.search-row input,
.search-row select {
  border-color: #d8e2ee;
  border-radius: 8px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: 0;
}

@media (max-width: 1080px) {
  .login-frame {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .login-panel,
  .login-insight-panel {
    padding: 30px;
  }

  .login-insight-panel {
    align-content: start;
  }

  .app-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .sidebar {
    padding: 14px 10px;
  }

  .sidebar .brand {
    gap: 9px;
    padding: 6px 7px 13px;
  }

  .sidebar .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .sidebar .brand h2 {
    font-size: 1rem;
  }

  .sidebar .brand span {
    font-size: 0.7rem;
  }

  .nav-group summary {
    margin-left: 7px;
    font-size: 0.68rem;
  }

  .nav-button {
    min-height: 36px;
    padding: 6px 8px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

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

  .dashboard-compact-kpis,
  .analysis-primary-kpis,
  .module-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-action-grid {
    grid-template-columns: 1fr;
  }

  .registry-hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-grid,
  .work-start-panel,
  .work-next-card,
  .dashboard-lower-grid,
  .operation-home,
  .flow-hero,
  .registry-hero,
  .flow-main-grid,
  .module-header,
  .connection-grid,
  .workflow-strip,
  .contract-control-header,
  .contract-control-body,
  .operational-work-header,
  .operational-work-body,
  .planning-readiness-body,
  .guided-panel,
  .guided-completion-panel,
  .executive-board,
  .finance-curve {
    grid-template-columns: 1fr;
  }

  .guided-steps {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }

  .contract-flow-strip {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }

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

  .budget-picker-head,
  .budget-picker-row {
    grid-template-columns: minmax(220px, 1fr) 70px 110px 120px;
  }

  .weekly-material-list article,
  .stock-issue-list article,
  .consumption-analysis-list article {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(90px, 0.5fr));
  }

  .payment-list article,
  .purchase-list article,
  .invoice-stock-list article,
  .stock-issue-list article,
  .consumption-analysis-list article {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(90px, 0.5fr));
    align-items: start;
    min-height: 172px;
  }

  .payment-list .table-actions,
  .purchase-list .table-actions,
  .invoice-stock-list button,
  .stock-issue-list button,
  .consumption-analysis-list .table-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .login-screen {
    padding: 12px;
  }

  .login-frame {
    border-radius: 10px;
  }

  .login-panel,
  .login-insight-panel {
    padding: 22px;
  }

  .login-insight-panel h2 {
    font-size: 1.35rem;
  }

  .app-shell {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 8;
    height: 100vh;
    max-height: none;
    padding: 10px 8px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .sidebar .brand {
    justify-content: center;
    padding: 2px 0 12px;
  }

  .sidebar .brand > div:not(.brand-mark) {
    display: none;
  }

  .nav-list {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding-bottom: 14px;
  }

  .nav-group {
    display: grid;
    gap: 5px;
    padding: 6px 0;
    border: 0;
    background: transparent;
  }

  .nav-button span:not(.nav-icon),
  .nav-count {
    display: none;
  }

  .nav-group summary {
    justify-content: center;
    margin: 0;
  }

  .nav-group summary > span {
    width: 18px;
    height: 18px;
    font-size: 0.62rem;
  }

  .nav-group summary strong,
  .nav-group summary em,
  .nav-group summary::after {
    display: none;
  }

  .nav-button {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
    min-height: 42px;
    padding: 6px;
  }

  .nav-icon {
    width: 34px;
    height: 34px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 10px 12px;
  }

  .topbar h1 {
    font-size: 1.34rem;
  }

  .topbar .eyebrow {
    font-size: 0.68rem;
  }

  .topbar-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .topbar-actions > * {
    flex: 0 0 auto;
    min-width: max-content;
    width: auto;
    justify-content: center;
  }

  .topbar-actions .compact-button,
  .topbar-actions .api-status,
  .topbar-actions .company-select,
  .topbar-actions .user-pill {
    min-height: 32px;
  }

  .topbar-actions .api-status,
  .topbar-actions .company-select,
  .topbar-actions .user-pill {
    max-width: 180px;
  }

  .dashboard-band,
  .module-band {
    padding: 14px;
  }

  .kpi-grid,
  .work-start-panel,
  .work-next-card,
  .work-next-meta,
  .dashboard-quick-actions,
  .dashboard-lower-grid,
  .dashboard-compact-kpis,
  .analysis-primary-kpis,
  .module-overview,
  .flow-kpi-grid,
  .flow-mini-metrics,
  .flow-phase-list,
  .flow-action-grid,
  .shortcut-grid,
  .operation-meta,
  .work-focus-metrics,
  .form-grid,
  .optional-fields-grid,
  .registry-hero-kpis,
  .check-grid,
  .guided-team-columns,
  .guided-status-grid.compact,
  .monthly-insights,
  .attendance-row,
  .phase-team-grid,
  .daily-work li {
    grid-template-columns: 1fr;
  }

  .phase-team-grid-head {
    display: none;
  }

  .guided-actions {
    justify-content: flex-start;
  }

  .operational-work-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .planning-readiness-header {
    align-items: stretch;
    flex-direction: column;
  }

  .planning-readiness-actions,
  .contract-control-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .planning-readiness-actions .primary-button,
  .planning-readiness-actions .ghost-button,
  .contract-control-actions .primary-button,
  .contract-control-actions .ghost-button,
  .operational-work-actions .primary-button,
  .operational-work-actions .ghost-button {
    justify-content: center;
    width: 100%;
  }

  .search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .data-table {
    min-width: 760px;
  }

  .invoice-pdf-ocr-box {
    grid-template-columns: 1fr;
  }

  .budget-picker {
    overflow-x: auto;
  }

  .budget-picker-head,
  .budget-picker-row {
    min-width: 760px;
  }

  .payment-list,
  .purchase-list,
  .weekly-material-list,
  .invoice-stock-list,
  .stock-issue-list,
  .invoice-missing-list,
  .consumption-analysis-list {
    overflow-x: auto;
  }

  .payment-list article,
  .purchase-list article,
  .weekly-material-list article,
  .invoice-stock-list article,
  .stock-issue-list article,
  .invoice-missing-list article,
  .consumption-analysis-list article {
    min-width: 720px;
  }

  .task-card {
    grid-template-columns: 1fr;
  }

  .task-card small {
    grid-column: auto;
  }

  .executive-diagnosis-list .alert-item {
    grid-template-columns: 1fr;
  }

  .executive-diagnosis-list .alert-item em {
    grid-column: auto;
  }

  .epi-item-row {
    grid-template-columns: 1fr;
  }
}
