:root {
  color-scheme: light;
  --cae-red: #c8102e;
  --cae-red-dark: #9f1027;
  --enterprise-950: #0b1930;
  --enterprise-900: #102542;
  --enterprise-800: #17385f;
  --enterprise-700: #22568c;
  --enterprise-600: #2f6fb2;
  --enterprise-100: #eaf2fb;
  --success: #0b9368;
  --success-soft: #e9f8f2;
  --warning: #b57908;
  --warning-soft: #fff6df;
  --danger-soft: #fff0f2;
  --ink: #162033;
  --muted: #667389;
  --line: #dfe5ed;
  --surface: #ffffff;
  --canvas: #f3f6fa;
  --shadow-sm: 0 3px 12px rgba(15, 36, 66, .07);
  --shadow-md: 0 14px 36px rgba(15, 36, 66, .11);
  --radius: 18px;
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
}

/* Autogestión de planillas: frontera visual entre operación y gobierno CAE. */
.payroll-mode-grid,.payroll-flow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.payroll-flow-step{position:relative;display:grid;grid-template-columns:38px 1fr;gap:2px 10px;align-items:center;padding:16px;border:1px solid #cfe7df;border-radius:14px;background:#f3fbf8}
.payroll-flow-step b{grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#078f6d;color:#fff;font-size:18px}
.payroll-flow-step strong{color:#08213c}.payroll-flow-step p{margin:3px 0 0;color:#607087;font-size:13px;line-height:1.4}
.payroll-operation-callout{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px;border:1px solid #9cd8c7;border-left:6px solid #078f6d;border-radius:14px;background:linear-gradient(120deg,#effbf7,#f8fbff)}
.payroll-operation-callout p{margin:5px 0 0;color:#607087}.payroll-tareo-form,.payroll-governance-form,.payroll-mode-form{display:grid;gap:14px}
.payroll-tareo-json{grid-column:span 3}.payroll-tareo-json textarea{min-height:130px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}
@media(max-width:1000px){.payroll-mode-grid,.payroll-flow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-tareo-json{grid-column:1/-1}}
@media(max-width:620px){.payroll-mode-grid,.payroll-flow-grid{grid-template-columns:1fr}.payroll-operation-callout{align-items:stretch;flex-direction:column}.payroll-operation-callout button{width:100%}}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
[hidden] { display: none !important; }

.login-surface {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 82% 18%, rgba(47, 111, 178, .28), transparent 32%),
    radial-gradient(circle at 12% 82%, rgba(200, 16, 46, .18), transparent 30%),
    linear-gradient(138deg, #08162b 0%, #102b4f 60%, #0b5b67 100%);
}
.login-surface::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.login-card {
  position: relative;
  width: min(480px, 100%);
  padding: 42px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 26px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 28px 80px rgba(0,0,0,.3);
}
.brand-mark {
  width: min(250px, 72%);
  height: 82px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--cae-red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
}
.login-card h1 { margin: 0; color: var(--enterprise-950); font-size: clamp(31px, 5vw, 42px); }
.login-copy { margin: 14px 0 26px; color: var(--muted); line-height: 1.6; }
.login-card form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #425069; font-size: 12px; font-weight: 750; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid #cbd4e0;
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--enterprise-600);
  box-shadow: 0 0 0 4px rgba(47,111,178,.13);
}
button {
  min-height: 40px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--enterprise-700), var(--enterprise-600));
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(34,86,140,.16);
}
button:hover:not(:disabled) { filter: brightness(1.035); transform: translateY(-1px); }
.login-card button { min-height: 48px; margin-top: 2px; }
.form-message { min-height: 20px; color: var(--cae-red); font-size: 13px; font-weight: 700; }
.login-card > small { display: block; margin-top: 16px; color: #788398; text-align: center; }
.login-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 5px;
}
.login-assurance span {
  padding: 6px 9px;
  border: 1px solid #dce7f3;
  border-radius: 999px;
  color: #375675;
  background: #f7fbff;
  font-size: 10px;
  font-weight: 800;
}

.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 15px 16px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(54,125,204,.24), transparent 33%),
    linear-gradient(180deg, var(--enterprise-950), #0d1c34 70%, #091528);
  box-shadow: 6px 0 24px rgba(15, 31, 53, .08);
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 7px 21px; }
.sidebar-brand img {
  width: 190px;
  height: 49px;
  padding: 0;
  background: transparent;
  object-fit: contain;
  object-position: left center;
}
.sidebar-brand div { display: none; gap: 2px; }
.sidebar-brand strong { font-size: 14px; letter-spacing: -.01em; }
.sidebar-brand small { color: #9eb2ce; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.mobile-menu-button { display: none; }
.nav-kicker { margin: 5px 9px 9px; color: #7086a5; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.sidebar nav { display: grid; gap: 3px; overflow: auto; padding-right: 2px; scrollbar-width: thin; }
.nav-button {
  position: relative;
  min-height: 42px;
  padding: 10px 11px 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #c7d3e4;
  background: transparent;
  box-shadow: none;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}
.nav-button::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  width: 3px;
  height: 14px;
  border-radius: 3px;
  background: transparent;
}
.nav-button:hover { color: #fff; background: rgba(255,255,255,.065); transform: none; }
.nav-button.is-active {
  color: #fff;
  border-color: rgba(255,255,255,.08);
  background: linear-gradient(90deg, rgba(54,125,204,.25), rgba(255,255,255,.07));
}
.nav-button.is-active::before { background: var(--cae-red); }
.sidebar-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  margin-top: auto;
  padding: 14px 10px 4px;
  color: #adc0d9;
  font-size: 10px;
}
.sidebar-footer i {
  grid-row: span 2;
  width: 8px;
  height: 8px;
  margin-top: 2px;
  border-radius: 50%;
  background: #22c58b;
  box-shadow: 0 0 0 5px rgba(34,197,139,.1);
}
.sidebar-footer small { color: #647b9c; }

.workspace { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(215,223,234,.9);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.page-context h2 { margin: 0; color: var(--enterprise-950); font-size: 22px; }
.page-context small { color: #8590a1; font-size: 11px; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.company-control {
  min-width: 220px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #6d788c;
  background: #f9fbfd;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.company-control select { min-height: 28px; padding: 3px 4px; border: 0; background: transparent; font-size: 11px; font-weight: 800; box-shadow: none; }
.user-chip {
  min-width: 155px;
  display: grid;
  gap: 2px;
  padding: 8px 11px;
  border-left: 1px solid var(--line);
}
.user-chip strong { color: var(--enterprise-950); font-size: 11px; }
.user-chip small { color: var(--muted); font-size: 10px; }
.secondary-button, .download-button {
  min-height: 35px;
  padding: 8px 12px;
  border: 1px solid #cbd7e6;
  color: #234b78;
  background: #fff;
  box-shadow: none;
}
.secondary-button:hover:not(:disabled), .download-button:hover:not(:disabled) {
  border-color: #92afd0;
  background: #f3f8fd;
}

.content { flex: 1; display: grid; align-content: start; gap: 16px; padding: 22px 28px 30px; }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 27px 30px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 15%, rgba(36,196,157,.3), transparent 26%),
    linear-gradient(125deg, #102746 0%, #244f91 68%, #167d79 118%);
  box-shadow: var(--shadow-md);
}
.hero::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -95px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.hero .eyebrow { color: #c5d9f1; }
.hero h1 { margin: 4px 0 8px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; }
.hero p { max-width: 760px; margin: 0; color: #d9e5f4; font-size: 13px; line-height: 1.5; }
.hero-badge {
  position: relative;
  z-index: 1;
  min-width: 175px;
  display: grid;
  gap: 6px;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 15px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(8px);
}
.hero-badge span { color: #b7c9df; font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.hero-badge strong { font-size: 17px; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.metric {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.metric::after { content: ""; position: absolute; right: 0; top: 0; width: 4px; height: 100%; background: var(--enterprise-600); }
.metric.green::after { background: var(--success); }
.metric.amber::after { background: #e0a321; }
.metric.red::after { background: var(--cae-red); }
.metric span { color: #778399; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.metric strong { color: var(--enterprise-950); font-size: 25px; letter-spacing: -.035em; }
.metric small { color: #8a95a7; font-size: 10px; }

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.panel-head {
  min-height: 69px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #e8edf3;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}
.panel-head h3 { margin: 0; color: var(--enterprise-950); font-size: 16px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.panel-body { padding: 18px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 13px; align-items: end; }
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 10px;
  margin: 10px 0 18px;
}
.check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #dfe7f0;
  border-radius: 11px;
  background: #f8fafc;
}
.check-row input { width: 18px; min-height: 18px; margin: 0; }
.check-row span { text-align: left; line-height: 1.35; }
.scope-confirmation {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #f5f8fc;
}
.scope-confirmation input { width: 18px; min-height: 18px; margin: 0; }
.scope-summary { display: grid; gap: 8px; margin-top: 12px; }
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin: 0; padding: 0; counter-reset: flow; list-style: none; }
.flow-steps li {
  min-height: 110px;
  padding: 16px;
  border: 1px solid #dfe7f0;
  border-radius: 13px;
  color: #4c596d;
  background: #f8fafc;
  font-size: 11px;
  line-height: 1.5;
}
.flow-steps li::before {
  counter-increment: flow;
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--enterprise-700);
  font-weight: 900;
}
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th {
  padding: 10px 9px;
  color: #748197;
  border-bottom: 1px solid #dce4ed;
  background: #f8fafc;
  text-align: left;
  font-size: 9px;
  letter-spacing: .055em;
  text-transform: uppercase;
}
td { padding: 11px 9px; border-bottom: 1px solid #e8edf3; color: #36445a; vertical-align: middle; }
tbody tr:hover { background: #f8fbfe; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #4c596d;
  background: #edf1f6;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}
.status.success { color: #076d4e; background: var(--success-soft); }
.status.warning { color: #8a5a03; background: var(--warning-soft); }
.status.danger { color: #9f1027; background: var(--danger-soft); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.danger-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #cf5064;
  border-radius: 9px;
  color: #a8152d;
  background: #fff5f7;
  box-shadow: none;
}
.danger-button:hover { color: #fff; background: #a8152d; }
.warning-state {
  padding: 14px 16px;
  border: 1px solid #efd18e;
  border-radius: 11px;
  color: #7b5100;
  background: #fff8e8;
  font-size: 12px;
  line-height: 1.5;
}
.contract-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #d3dce7;
  border-radius: 20px;
  color: var(--enterprise-950);
  background: #fff;
  box-shadow: 0 30px 90px rgba(8, 27, 55, .3);
}
.contract-dialog::backdrop { background: rgba(6, 20, 41, .62); backdrop-filter: blur(3px); }
.contract-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #e4eaf1;
  background: linear-gradient(135deg, #f7faff, #eef5fb);
}
.contract-dialog-head h3 { margin: 0; font-size: 20px; }
.contract-dialog-head p { max-width: 590px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.contract-dialog-close { flex: 0 0 auto; }
.contract-dialog-body { max-height: calc(min(88vh, 860px) - 104px); padding: 22px; overflow: auto; }
.contract-lifecycle-form { display: grid; gap: 15px; }
.contract-lifecycle-form > label { display: grid; gap: 7px; color: #425067; font-size: 11px; font-weight: 800; }
.contract-lifecycle-form textarea { min-height: 96px; resize: vertical; }
.contract-immutable-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe7f0;
  border-radius: 13px;
  background: #dfe7f0;
}
.contract-immutable-summary div { padding: 11px 13px; background: #f8fafc; }
.contract-immutable-summary dt { color: #7b8799; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.contract-immutable-summary dd { margin: 4px 0 0; color: #182b48; font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.contract-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.context-actions { min-width: 260px; }
.empty, .loading, .error-state, .success-state, .evidence-note {
  padding: 14px 16px;
  border-radius: 11px;
  color: var(--muted);
  background: #f6f8fb;
  font-size: 12px;
}
.success-state { color: #076d4e; border: 1px solid #b9e3d4; background: var(--success-soft); }
.error-state { color: #a8152d; border: 1px solid #f1c6ce; background: var(--danger-soft); }
.persistent-feedback { position: sticky; top: 102px; z-index: 7; box-shadow: var(--shadow-sm); }
.credential-card {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #afdcca;
  border-radius: 13px;
  background: var(--success-soft);
}
.credential-card p { margin: 0; font-size: 12px; }
.credential-card code { padding: 11px; overflow-wrap: anywhere; border-radius: 8px; color: #fff; background: var(--enterprise-950); }

.access-policy-form { display: grid; gap: 16px; }
.permission-module-grid { display: grid; gap: 24px; }
.permission-standard-toolbar {
  position: sticky;
  top: 102px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #b9d7f3;
  border-radius: 13px;
  background: #f3f9ff;
  box-shadow: 0 5px 14px rgba(22,43,72,.09);
}
.permission-standard-status { color: var(--muted); font-size: 11px; font-weight: 700; }
.permission-module-card {
  overflow: hidden;
  border: 1px solid #d5dfeb;
  border-left: 6px solid var(--module-accent,#1f6eb2);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(22,43,72,.09);
}
.permission-module-tone-payroll { --module-accent:#850f27; --module-soft:#fff5f7; }
.permission-module-tone-client { --module-accent:#1769aa; --module-soft:#f2f8ff; }
.permission-module-tone-contracts { --module-accent:#008b87; --module-soft:#effaf9; }
.permission-module-tone-official { --module-accent:#7151a5; --module-soft:#f7f3fc; }
.permission-module-tone-collaborator { --module-accent:#11805f; --module-soft:#f1faf6; }
.permission-module-tone-enterprise { --module-accent:#31577f; --module-soft:#f4f7fa; }
.permission-module-card-disabled {
  --module-accent:#98a4b3;
  --module-soft:#f2f4f7;
  border-color:#d9dfe7;
  background:#f8fafc;
  box-shadow:0 4px 12px rgba(45,58,75,.06);
}
.permission-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg,var(--module-soft) 0%,#fff 100%);
}
.permission-module-card-disabled .permission-module-header { background: var(--module-soft); }
.permission-module-header h3 { margin: 0; color: var(--module-accent); font-size: 16px; }
.permission-module-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.permission-module-card table { margin: 0; border: 0; border-radius: 0; }
.permission-module-card input[type="checkbox"] { width: 29px; height: 29px; accent-color: #087fda; }
.permission-module-tone-payroll input[type="checkbox"] { accent-color:#850f27; }
.permission-module-tone-contracts input[type="checkbox"] { accent-color:#008b87; }
.permission-module-tone-official input[type="checkbox"] { accent-color:#7151a5; }
.permission-module-tone-collaborator input[type="checkbox"] { accent-color:#11805f; }
.access-policy-form table select { min-width: 170px; width: 100%; }
.access-policy-form table small { display: block; margin-top: 4px; max-width: 520px; }
.effective-access-preview, .company-model-preview {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}
.effective-access-preview p, .company-model-preview p { margin: 4px 0 0; }
.company-model-configurator { display: grid; gap: 14px; margin-top: 18px; }
.effective-access-cell { min-width: 110px; }
.access-column-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.access-column-guide p { margin: 0; padding: 10px 12px; border-radius: 9px; background: #fff; }
.access-level { min-width: 78px; justify-content: center; border: 1px solid transparent; }
.access-level.access-none { color: #5e6879; border-color: #d5dce6; background: #eef1f5; }
.access-level.access-view { color: #155c9d; border-color: #b9d7f3; background: #eaf4fd; }
.access-level.access-operate { color: #076d4e; border-color: #b9e3d4; background: var(--success-soft); }
.access-level.access-approve { color: #663b91; border-color: #d8c4ee; background: #f4edfb; }
.access-policy-form select[class*="access-select-"] { font-weight: 750; border-width: 1.5px; }
.access-policy-form select.access-select-none { color: #5e6879; border-color: #cfd7e2; background: #f7f8fa; }
.access-policy-form select.access-select-view { color: #155c9d; border-color: #9fc8ed; background: #f5faff; }
.access-policy-form select.access-select-operate { color: #076d4e; border-color: #9dd4c1; background: #f2fbf7; }
.access-policy-form select.access-select-approve { color: #663b91; border-color: #cbb1e5; background: #faf7fd; }
@media (max-width: 760px) {
  .access-column-guide { grid-template-columns: 1fr; }
}
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.profile-card {
  display: grid;
  gap: 6px;
  min-height: 90px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}
.profile-card small { color: #7c8799; }
.profile-card strong { color: var(--enterprise-950); }
.context-detail { border-color: #a9c4e2; box-shadow: var(--shadow-md); }
.labor-operations-detail { display: grid; gap: 20px; scroll-margin-top: 108px; }
.labor-operations-detail:empty { display: none; }
.labor-operations-detail .panel {
  overflow: hidden;
  border: 1px solid #cad9e8;
  border-radius: 17px;
  background: linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  box-shadow: 0 10px 28px rgba(15,42,75,.08);
}
.labor-operations-detail .panel > h2,
.labor-operations-detail .panel > h3 {
  margin-bottom: 5px;
  color: var(--enterprise-950);
  letter-spacing: -.2px;
}
.labor-operations-detail .profile-grid { gap: 14px; }
.labor-operations-detail .profile-card {
  position: relative;
  min-height: 104px;
  padding: 18px 17px;
  border-color: #d3e0ec;
  border-radius: 14px;
  background: linear-gradient(145deg,#fff 0%,#f5f9fd 100%);
  box-shadow: 0 5px 15px rgba(19,49,83,.06);
}
.labor-operations-detail .profile-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg,var(--enterprise-600),#15977d);
}
.labor-operations-detail .profile-card small {
  color: #68798d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .65px;
  text-transform: uppercase;
}
.labor-operations-detail .profile-card strong {
  font-size: 14px;
  line-height: 1.35;
}
.labor-operations-detail .table-wrap,
.labor-operations-detail table { border-radius: 12px; }
.labor-operations-detail .metric strong { overflow-wrap: anywhere; }
@media (max-width: 980px) {
  .labor-operations-detail .profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .labor-operations-detail .profile-grid { grid-template-columns: 1fr; }
}
.onboarding-guide { display: grid; gap: 14px; }
.onboarding-step {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dce5ef;
  border-left: 5px solid #aab8c9;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15,36,66,.05);
}
.onboarding-step.is-next {
  border-color: #8fb7df;
  border-left-color: var(--enterprise-600);
  background: linear-gradient(105deg, #f5faff, #fff 62%);
  box-shadow: 0 10px 24px rgba(34,86,140,.12);
}
.onboarding-step-completed { border-left-color: var(--success); }
.onboarding-step-observed { border-left-color: var(--cae-red); }
.onboarding-step-in_progress { border-left-color: #e0a321; }
.onboarding-step.is-locked { opacity: .72; background: #f6f8fb; }
.onboarding-step-header {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
}
.onboarding-sequence {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--enterprise-700);
  font-size: 14px;
  font-weight: 900;
}
.onboarding-step-completed .onboarding-sequence { background: var(--success); }
.onboarding-step-heading { min-width: 0; }
.onboarding-step-heading small {
  display: block;
  margin-bottom: 3px;
  color: var(--enterprise-600);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .075em;
}
.onboarding-step-heading h4 { margin: 0; color: var(--enterprise-950); font-size: 16px; }
.onboarding-owner {
  margin: 0;
  color: #36516f;
  font-size: 11px;
  font-weight: 850;
}
.onboarding-instruction { margin: 0; color: #4c596d; font-size: 12px; line-height: 1.55; }
.onboarding-expected, .onboarding-system-check {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 10px;
  color: #536176;
  background: #f6f8fb;
  font-size: 11px;
}
.onboarding-expected strong, .onboarding-system-check strong { color: var(--enterprise-900); }
.onboarding-system-check.is-ready { color: #076d4e; border: 1px solid #b9e3d4; background: var(--success-soft); }
.onboarding-system-check.is-pending { color: #8a5a03; border: 1px solid #efdaa8; background: var(--warning-soft); }
.onboarding-prerequisite { padding: 10px 12px; border-radius: 9px; color: #8a5a03; background: var(--warning-soft); font-size: 11px; font-weight: 750; }
.onboarding-step-actions { padding-top: 2px; }
.onboarding-saved-evidence { display: grid; gap: 4px; padding-top: 10px; border-top: 1px dashed #d8e0ea; color: #506075; font-size: 11px; }
.onboarding-saved-evidence small { color: #7b8799; }
.onboarding-next-action { display: grid; gap: 12px; }
.onboarding-next-action p { margin: 0; color: #425069; line-height: 1.55; }
.onboarding-editor { display: grid; gap: 14px; }
.dashboard-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chart-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.chart-card h3 { margin: 0; }
.chart-card p { color: var(--muted); font-size: 11px; }
.chart-card canvas { width: 100%; max-width: 100%; }
.chart-summary { color: var(--muted); font-size: 10px; }
.chart-summary ul { padding-left: 18px; }
.load-more, .panel-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.password-guidance {
  align-self: stretch;
  padding: 12px;
  border: 1px solid #dce5ef;
  border-radius: 11px;
  color: #4e5b6f;
  background: #f8fafc;
  font-size: 11px;
}
.password-checklist { display: grid; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.password-checklist li::before { content: "○"; margin-right: 7px; color: #8c98a9; }
.password-checklist li.is-valid { color: #087855; }
.password-checklist li.is-valid::before { content: "✓"; color: var(--success); font-weight: 900; }
.sla-policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sla-policy-grid > button { grid-column: 1 / -1; justify-self: start; }
.approval-responsibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.approval-responsibility-grid > button {
  grid-column: 1 / -1;
  justify-self: start;
}
.approval-configuration-feedback {
  position: static;
  z-index: auto;
  margin: 0 0 14px;
  box-shadow: none;
}
.sla-policy-card { display: grid; gap: 10px; padding: 15px; border: 1px solid #dce5ef; border-radius: 13px; background: #f9fbfd; }
.sla-policy-card strong { color: var(--enterprise-900); }
.sla-policy-card small { color: var(--muted); }
.statusbar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 28px;
  border-top: 1px solid var(--line);
  color: #748197;
  background: #fff;
  font-size: 10px;
}
.official-safety { padding: 16px; border: 1px solid #b8d9ee; border-radius: 14px; background: #eef8ff; }
.official-safety p { margin: 5px 0 0; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist-grid { grid-template-columns: repeat(2, 1fr); }
  .approval-responsibility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.wellbeing-detail-host:not(:empty) {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 3px solid var(--brand, #b80f1f);
}

.wellbeing-form input[type="file"] {
  min-height: 44px;
  padding: 9px;
  background: #fff;
}

@media (max-width: 860px) {
  .portal-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 14px;
  }
  .sidebar-brand { min-width: 0; padding: 0; }
  .sidebar-brand img { width: min(172px, 100%); height: 38px; }
  .mobile-menu-button {
    display: block;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    background: rgba(255,255,255,.08);
    box-shadow: none;
  }
  .nav-kicker, .sidebar-footer { display: none; }
  .sidebar nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0,1fr));
    max-height: min(54vh, 420px);
    overflow-y: auto;
    padding: 8px 0 2px;
  }
  .sidebar.is-mobile-open nav { display: grid; }
  .topbar { position: relative; align-items: flex-start; padding: 16px; }
  .topbar-actions { flex-wrap: wrap; }
  .content { padding: 18px 16px; }
  .hero { align-items: flex-start; flex-direction: column; }
  .hero-badge { min-width: 0; width: 100%; }
  .dashboard-charts, .sla-policy-grid { grid-template-columns: 1fr; }
  .approval-responsibility-grid { grid-template-columns: 1fr; }
  .persistent-feedback { top: 8px; }
}

@media (max-width: 760px) {
  .table-wrap { overflow: visible; }
  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }
  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .responsive-table tbody {
    display: grid;
    gap: 12px;
  }
  .responsive-table tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-sm);
  }
  .responsive-table td {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    overflow-wrap: anywhere;
  }
  .responsive-table td::before {
    content: attr(data-label);
    color: #748197;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .045em;
    line-height: 1.35;
    text-transform: uppercase;
  }
  .responsive-table td:last-child { border-bottom: 0; }
  .responsive-table .row-actions,
  .responsive-table .context-actions {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .responsive-table button,
  .responsive-table .secondary-button {
    max-width: 100%;
    white-space: normal;
  }
}

.contract-library-actions {
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0;
}

.contract-library-actions .field { margin: 0; }

.contract-process-panel {
  border-width: 1px;
  box-shadow: 0 9px 28px rgba(15, 40, 72, .08);
}

.contract-process-panel .panel-head {
  min-height: 82px;
  border-left: 6px solid transparent;
  padding-left: 20px;
}

.contract-generation-process {
  border-color: #bfd5ec;
}

.contract-generation-process .panel-head {
  border-left-color: #2f6fb2;
  background: linear-gradient(110deg, #f4f8fd 0%, #ffffff 74%);
}

.contract-template-process {
  margin-top: 8px;
  border-color: #b9dfd4;
}

.contract-template-process .panel-head {
  border-left-color: #159b78;
  background: linear-gradient(110deg, #f1fbf7 0%, #ffffff 74%);
}

.contract-generation-body,
.contract-template-library-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.contract-create-form {
  display: grid;
  gap: 15px;
}

.contract-process-banner {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 14px;
}

.contract-process-banner-generation {
  border-color: #c8dcf0;
  background: #f5f9fe;
}

.contract-process-banner-template {
  border-color: #bfe2d8;
  background: #f3fbf8;
}

.contract-process-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #244f91, #2f79bd);
  box-shadow: 0 6px 15px rgba(36, 79, 145, .18);
  font-size: 19px;
  font-weight: 900;
}

.contract-process-banner-template .contract-process-number {
  background: linear-gradient(135deg, #08765d, #19a77f);
  box-shadow: 0 6px 15px rgba(8, 118, 93, .18);
}

.contract-process-copy {
  display: grid;
  gap: 4px;
}

.contract-process-copy small,
.contract-final-action-copy small {
  color: #667a94;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}

.contract-process-copy strong,
.contract-final-action-copy strong {
  color: var(--enterprise-950);
  font-size: 14px;
}

.contract-process-copy p,
.contract-final-action-copy p {
  margin: 0;
  color: #607087;
  font-size: 11px;
  line-height: 1.5;
}

.contract-final-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 3px;
  padding: 15px 16px;
  border: 1px solid #a9c9e8;
  border-radius: 14px;
  background: linear-gradient(110deg, #eef6fd, #ffffff);
}

.contract-final-action-copy {
  display: grid;
  gap: 4px;
}

.contract-final-action > button {
  flex: 0 0 auto;
  min-width: 290px;
}

.contract-template-process .contract-library-actions {
  margin: 0;
  padding: 14px;
  border: 1px solid #cfe6df;
  border-radius: 14px;
  background: #f8fcfa;
}

.contract-template-builder {
  display: grid;
  gap: 16px;
}

.contract-template-builder-feedback {
  position: sticky;
  top: -10px;
  z-index: 3;
  margin: 0;
  box-shadow: 0 8px 24px rgba(8, 27, 55, .14);
}

.contract-template-builder-feedback[hidden] { display: none; }

.contract-token-help {
  padding: 13px 15px;
  border: 1px solid #cbdcf7;
  border-radius: 12px;
  background: #f4f8ff;
}

.contract-token-help p {
  margin: 7px 0 0;
  color: #53657e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.contract-clause-builder-list {
  display: grid;
  gap: 14px;
}

.contract-clause-builder-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
}

.contract-clause-builder-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.contract-clause-policy-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contract-inline-check,
.contract-review-confirmation {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contract-inline-check input,
.contract-review-confirmation input { width: auto; }

.contract-worker-clause-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
}

.contract-clause-readonly {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #9eb2cc;
  color: #5c6d82;
  background: #f6f8fb;
}

.contract-template-preview-button {
  border-color: #12886a;
  color: #087257;
  background: #f2fbf8;
}

.contract-template-preview-dialog { width: min(980px, calc(100vw - 32px)); }

.contract-template-preview-shell {
  display: grid;
  gap: 16px;
}

.contract-template-preview-legend {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid #bdd6ee;
  border-radius: 12px;
  color: #45617e;
  background: #f4f9fe;
  font-size: 11px;
  line-height: 1.45;
}

.contract-template-preview-legend strong { color: #173c65; font-size: 12px; }

.contract-template-preview-page {
  width: min(760px, 100%);
  min-height: 920px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d4dde7;
  border-radius: 5px;
  color: #26384d;
  background: #fff;
  box-shadow: 0 16px 42px rgba(12, 34, 61, .14);
}

.contract-template-preview-document-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px 32px;
  color: #fff;
  background: #13243a;
}

.contract-template-preview-document-head > div:last-child { display: grid; gap: 3px; }
.contract-template-preview-document-head small { color: #d8e2ef; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.contract-template-preview-document-head strong { font-size: 17px; }
.contract-template-preview-document-head span { color: #d8e2ef; font-size: 10px; }

.contract-template-preview-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 9px;
  color: #fff;
  background: #c8102e;
  font-size: 15px;
  font-weight: 900;
}

.contract-template-preview-notice {
  margin: 28px 38px 16px;
  padding: 13px 15px;
  border: 1px solid #ead08d;
  border-radius: 10px;
  color: #775106;
  background: #fff9e9;
}

.contract-template-preview-notice strong { font-size: 12px; }
.contract-template-preview-notice p { margin: 5px 0 0; font-size: 10.5px; line-height: 1.55; }

.contract-template-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 38px 24px;
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 10px;
  background: #dfe6ee;
}

.contract-template-preview-meta div { padding: 10px 12px; background: #f8fafc; }
.contract-template-preview-meta dt { color: #7a8798; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.contract-template-preview-meta dd { margin: 4px 0 0; color: #18314e; font-size: 10.5px; font-weight: 750; }

.contract-template-preview-clauses { display: grid; gap: 20px; padding: 0 38px 32px; }

.contract-template-preview-clause {
  display: grid;
  gap: 9px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5ebf1;
}

.contract-template-preview-clause-head {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
}

.contract-template-preview-clause h4 { margin: 0; color: #142b47; font-size: 11px; }
.contract-template-preview-text { margin: 0; font-size: 10.5px; line-height: 1.75; text-align: justify; white-space: pre-line; }

.contract-template-preview-token {
  display: inline;
  padding: 2px 5px;
  border: 1px solid #9dc5ed;
  border-radius: 5px;
  color: #155a96;
  background: #edf6ff;
  font-size: 9.5px;
  font-weight: 800;
  white-space: normal;
}

.contract-template-preview-policy {
  padding: 4px 7px;
  border-radius: 999px;
  color: #53657c;
  background: #edf1f5;
  font-size: 8px;
  font-weight: 850;
}

.contract-template-preview-policy.policy-automatic { color: #165a96; background: #eaf4ff; }
.contract-template-preview-policy.policy-controlled_editable { color: #087257; background: #e9f8f3; }
.contract-template-preview-policy.policy-conditional { color: #825400; background: #fff4d9; }

.contract-template-preview-variable-note,
.contract-template-preview-optional-note {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-left: 4px solid #169775;
  border-radius: 8px;
  color: #16624f;
  background: #effaf6;
  font-size: 9.5px;
}

.contract-template-preview-optional-note { border-left-color: #d29a27; color: #76500a; background: #fff8e9; }

.contract-template-preview-footer {
  margin-top: auto;
  padding: 13px 38px;
  border-top: 1px solid #dce4ed;
  color: #718096;
  background: #f7f9fb;
  font-size: 8.5px;
  text-align: center;
}

.contract-template-preview-feedback[hidden] { display: none; }

.contract-template-preview-confirmation {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #b8dfd3;
  border-radius: 12px;
  color: #174e40;
  background: #f1faf7;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.contract-template-preview-confirmation input { flex: 0 0 auto; width: auto; }

.enterprise-toast {
  position: fixed;
  z-index: 10000;
  top: 22px;
  right: 22px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  width: min(440px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid #a9ddce;
  border-radius: 16px;
  color: #123e34;
  background: #f2fcf8;
  box-shadow: 0 18px 48px rgba(9, 42, 62, .24);
  animation: enterprise-toast-in .24s ease-out;
}
.enterprise-toast-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: #079675;
  font-size: 22px;
  font-weight: 900;
}
.enterprise-toast-copy { min-width: 0; }
.enterprise-toast-title { display: block; margin-bottom: 3px; font-size: 14px; }
.enterprise-toast-copy p { margin: 0; font-size: 12px; line-height: 1.45; }
.enterprise-toast-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  color: #42655d;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}

.tareo-workbench-head {
  display: grid;
  grid-template-columns: 180px minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}
.tareo-workbench-summary {
  align-self: center;
  padding: 10px 12px;
  border: 1px solid #b8dfd3;
  border-radius: 10px;
  color: #135b49;
  background: #effaf6;
  font-size: 12px;
  font-weight: 800;
}
.tareo-file-label { position: relative; overflow: hidden; cursor: pointer; }
.tareo-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tareo-workbench-table {
  max-height: 590px;
  margin: 14px 0;
  overflow: auto;
  border: 1px solid #d8e2ec;
  border-radius: 14px;
  background: #fff;
}
.tareo-grid { min-width: 2920px; }
.tareo-grid th {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 9px 7px;
  color: #173451;
  background: #edf4fb;
  font-size: 11px;
  text-align: center;
}
.tareo-grid td { padding: 6px; vertical-align: middle; }
.tareo-review-dialog { width: min(1460px, calc(100vw - 24px)); }
.tareo-review-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tareo-review-summary span { padding: 7px 10px; border: 1px solid #dce6f0; border-radius: 999px; color: #405b74; background: #f7fafc; font-size: 10px; font-weight: 800; }
.tareo-review-scroll { max-width: 100%; margin-top: 12px; overflow: auto; border: 1px solid #dce6f0; border-radius: 13px; }
.tareo-review-grid { min-width: 2920px; margin: 0; }
.tareo-review-grid td { min-width: 62px; text-align: center; }
.tareo-review-grid td:nth-child(2),.tareo-review-grid td:nth-child(3),.tareo-review-grid td:nth-last-child(2) { text-align: left; }
.tareo-review-hours,.tareo-review-code { display: block; }
.tareo-review-hours { color: #17334e; font-weight: 800; }
.tareo-review-code { margin-top: 2px; color: #8d5b00; font-size: 9px; font-weight: 900; }
.tareo-approval-audit { display: grid; gap: 9px; margin: 14px 0; }
.tareo-approval-audit h4 { margin: 0; color: #17334e; }
.tareo-approval-audit article { display: grid; gap: 7px; padding: 13px 15px; border: 1px solid #dce6f0; border-left: 4px solid #b9c5d1; border-radius: 12px; background: #f8fafc; }
.tareo-approval-audit article.is-complete { border-left-color: #079675; background: #f1fbf7; }
.tareo-approval-audit article > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 14px; }
.tareo-approval-audit span,.tareo-approval-audit code { color: #526b83; font-size: 10px; overflow-wrap: anywhere; }
.operational-flow > div span { display: grid; gap: 3px; }
.operational-flow > div span b { color: inherit; font-size: 10px; }
.operational-flow > div span small,.operational-flow > div span code { color: #667d91; font-size: 8px; line-height: 1.35; overflow-wrap: anywhere; }
.tareo-grid th:first-child,
.tareo-grid td:first-child { position: sticky; z-index: 1; left: 0; background: #fff; }
.tareo-grid th:nth-child(2),
.tareo-grid td:nth-child(2) { position: sticky; z-index: 1; left: 105px; min-width: 190px; background: #fff; }
.tareo-grid thead th:first-child,
.tareo-grid thead th:nth-child(2) { z-index: 4; background: #edf4fb; }
.tareo-hour-input { width: 54px; min-width: 54px; padding: 7px 5px; text-align: center; }
.tareo-total-input { width: 70px; min-width: 70px; }
.tareo-note-input { width: 190px; min-width: 190px; }
.tareo-hour-input:disabled { color: #7c8793; background: #eef1f4; opacity: 1; }
.operational-record-grid { display: grid; gap: 16px; }
.operational-record-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9e3ee;
  border-left: 5px solid #2a6aa6;
  border-radius: 18px;
  background: linear-gradient(145deg,#fff 0%,#f8fbff 100%);
  box-shadow: 0 12px 30px rgba(20,48,78,.08);
}
.operational-record-card::after {
  position: absolute; top: -80px; right: -50px; width: 190px; height: 190px;
  border-radius: 50%; background: rgba(23,123,164,.055); content: '';
}
.operational-status-draft { border-left-color: #64748b; }
.operational-status-pending_manager,.operational-status-pending,.operational-status-in_review { border-left-color: #d59a18; }
.operational-status-approved,.operational-status-handed_off,.operational-status-completed { border-left-color: #069574; }
.operational-status-observed,.operational-status-rejected { border-left-color: #bb3344; }
.operational-record-head { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 20px 22px 16px; border-bottom: 1px solid #e7edf4; }
.operational-record-head small { color: #9d1830; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.operational-record-head h3 { margin: 4px 0; color: #102a46; font-size: 22px; }
.operational-record-head p,.operational-record-detail { margin: 0; color: #60758b; font-size: 12px; }
.operational-record-detail { padding: 15px 22px 0; line-height: 1.55; }
.operational-record-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin: 0 22px; padding: 16px 0; }
.operational-record-metrics > div { min-width: 0; padding: 12px 14px; border: 1px solid #e2e9f1; background: rgba(255,255,255,.8); }
.operational-record-metrics > div:first-child { border-radius: 12px 0 0 12px; }
.operational-record-metrics > div:last-child { border-radius: 0 12px 12px 0; }
.operational-record-metrics span { display: block; margin-bottom: 5px; color: #76889a; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.operational-record-metrics b { display: block; overflow: hidden; color: #122d49; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.operational-flow { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 8px; padding: 0 22px 18px; }
.operational-flow > div { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 8px; align-items: center; color: #75869a; font-size: 10px; }
.operational-flow i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e8edf3; font-style: normal; font-weight: 900; }
.operational-flow .is-complete { color: #086b57; font-weight: 800; }
.operational-flow .is-complete i { color: #fff; background: #079675; }
.operational-flow .is-current { color: #9a6200; font-weight: 900; }
.operational-flow .is-current i { color: #754900; background: #ffd66b; box-shadow: 0 0 0 4px rgba(230,163,0,.14); }
.enterprise-flow { margin: 12px 0; overflow: hidden; border: 1px solid #dce6f0; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(16,42,70,.06); }
.enterprise-flow-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid #e7edf4; background: linear-gradient(135deg,#f8fbfe,#eef5fa); }
.enterprise-flow-head strong,.enterprise-flow-head small { display: block; }
.enterprise-flow-head strong { color: #122d49; font-size: 13px; }
.enterprise-flow-head small { margin-top: 3px; color: #64798e; font-size: 10px; }
.enterprise-flow-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.enterprise-flow-meta span,.enterprise-flow-meta code { padding: 4px 7px; border-radius: 999px; background: #fff; color: #526b83; font-size: 9px; }
.enterprise-flow-stages { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.enterprise-flow-stages li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 9px; min-height: 92px; padding: 14px; border-right: 1px solid #e7edf4; border-top: 4px solid #b9c5d1; background: #f8fafc; }
.enterprise-flow-stages li:last-child { border-right: 0; }
.enterprise-flow-stages i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #dfe6ed; color: #687b8e; font-style: normal; font-weight: 900; }
.enterprise-flow-stages strong,.enterprise-flow-stages small,.enterprise-flow-stages time { display: block; }
.enterprise-flow-stages strong { margin-bottom: 4px; color: #18344f; font-size: 11px; }
.enterprise-flow-stages small,.enterprise-flow-stages time { margin-top: 3px; color: #6b7f92; font-size: 9px; line-height: 1.35; }
.enterprise-flow-stages .flow-complete { border-top-color: #079675; background: #f1fbf7; }
.enterprise-flow-stages .flow-complete i { color: #fff; background: #079675; }
.enterprise-flow-stages .flow-current { border-top-color: #e1a10b; background: #fff9e9; }
.enterprise-flow-stages .flow-current i { color: #714700; background: #ffd66b; box-shadow: 0 0 0 4px rgba(225,161,11,.13); }
.enterprise-flow-stages .flow-future { border-top-color: #b9c5d1; background: #f8fafc; }
.enterprise-flow-stages .flow-alert { border-top-color: #bb3344; background: #fff3f5; }
.enterprise-flow-stages .flow-alert i { color: #fff; background: #bb3344; }
.enterprise-flow-stages .flow-system { border-top-color: #2674b8; background: #eff7ff; }
.enterprise-flow-stages .flow-system i { color: #fff; background: #2674b8; }
.enterprise-flow-reason { color: #9f2637 !important; font-weight: 800; }
.enterprise-flow-disclosure { min-width: 120px; }
.enterprise-flow-disclosure > summary { cursor: pointer; color: #175d98; font-weight: 800; white-space: nowrap; }
.enterprise-flow-disclosure[open] { min-width: 620px; }
.enterprise-flow-disclosure .enterprise-flow { margin-top: 8px; }
.operational-record-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 22px; background: #f1f6fb; }
.operational-record-foot > div:first-child { display: grid; gap: 4px; color: #60758b; font-size: 11px; }
.operational-record-foot code { color: #526b83; font-size: 10px; }
.operational-empty-state { padding: 34px; border: 1px dashed #bfcddd; border-radius: 18px; text-align: center; background: linear-gradient(145deg,#f9fbfd,#f0f6fb); }
.operational-empty-state b { display: block; margin-bottom: 7px; color: #173451; font-size: 16px; }
.operational-empty-state p { margin: 0; color: #6d8195; font-size: 12px; }
@keyframes enterprise-toast-in {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .operational-record-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .operational-record-metrics > div,.operational-record-metrics > div:first-child,.operational-record-metrics > div:last-child { border-radius: 10px; }
  .contract-library-actions { grid-template-columns: 1fr 1fr; }
  .contract-library-actions .field { grid-column: 1 / -1; }
  .contract-final-action { align-items: stretch; flex-direction: column; }
  .contract-final-action > button { width: 100%; min-width: 0; }
}

@media (max-width: 600px) {
  .enterprise-flow-head { flex-direction: column; }
  .enterprise-flow-meta { justify-content: flex-start; }
  .enterprise-flow-stages { grid-template-columns: 1fr; }
  .enterprise-flow-stages li { border-right: 0; border-bottom: 1px solid #e7edf4; }
  .enterprise-flow-disclosure[open] { min-width: 0; }
  .operational-record-head,.operational-record-foot { align-items: stretch; flex-direction: column; }
  .operational-record-metrics { grid-template-columns: 1fr; }
  .enterprise-toast { top: 12px; right: 16px; }
  .tareo-workbench-head { grid-template-columns: 1fr; }
  .login-card { padding: 28px 22px; border-radius: 20px; }
  .topbar { flex-direction: column; }
  .topbar-actions, .company-control { width: 100%; }
  .user-chip { flex: 1; }
  .metric-grid, .filter-grid, .flow-steps, .profile-grid { grid-template-columns: 1fr; }
  .checklist-grid { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .hero { min-height: 0; padding: 22px; }
  .panel-body { padding: 16px; }
  .statusbar { padding: 9px 14px; }
  .onboarding-step { padding: 15px; }
  .onboarding-step-header { grid-template-columns: auto minmax(0,1fr); }
  .onboarding-step-header > .status { grid-column: 1 / -1; justify-self: start; }
  .contract-dialog { width: calc(100vw - 18px); }
  .contract-dialog-head { padding: 16px; }
  .contract-dialog-body { padding: 16px; }
  .contract-immutable-summary { grid-template-columns: 1fr; }
  .contract-dialog-actions > button { width: 100%; }
  .contract-library-actions,
  .contract-clause-policy-options { grid-template-columns: 1fr; }
  .contract-library-actions .field { grid-column: auto; }
  .contract-clause-builder-head { align-items: flex-start; flex-direction: column; }
  .contract-generation-body,
  .contract-template-library-body { padding: 14px; }
  .contract-process-panel .panel-head { padding-left: 15px; }
  .contract-process-banner { grid-template-columns: 40px minmax(0, 1fr); padding: 12px; }
  .contract-process-number { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; }
  .contract-template-preview-page { min-height: 0; }
  .contract-template-preview-document-head { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; }
  .contract-template-preview-mark { width: 40px; height: 40px; }
  .contract-template-preview-notice { margin: 20px 18px 14px; }
  .contract-template-preview-meta { grid-template-columns: 1fr; margin: 0 18px 20px; }
  .contract-template-preview-clauses { padding: 0 18px 24px; }
  .contract-template-preview-footer { padding: 12px 18px; }
}
.tareo-day-entry{display:grid;gap:4px;min-width:76px}
.tareo-day-entry .tareo-hour-input{width:100%;box-sizing:border-box}
.tareo-code-select{width:100%;min-width:76px;padding:6px 4px;border:1px solid #cbd8e8;border-radius:8px;background:#fff;color:#17345d;font-size:11px}
.tareo-code-select:disabled{background:#eef2f6;color:#8090a5}
.tareo-code-legend{margin:10px 0 14px;padding:14px 16px;border:1px solid #c8dced;border-left:5px solid #159a7d;border-radius:12px;background:linear-gradient(135deg,#f5fbff,#f2fbf8);color:#17345d}
.tareo-code-legend>strong{display:block;margin-bottom:9px}
.tareo-code-legend-grid{display:flex;flex-wrap:wrap;gap:7px 14px;font-size:12px;line-height:1.35}
.tareo-code-legend-grid span{white-space:nowrap}
.tareo-code-legend-grid b{color:#8e152c}
.circuit-scope-toolbar{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:20px 22px;border:1px solid #d9e5f0;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#eef6fb);margin-bottom:18px}.circuit-scope-title{display:grid;gap:5px;color:#17324d}.circuit-scope-title strong{font-size:1.08rem}.circuit-kicker{font-size:.7rem;font-weight:800;letter-spacing:.12em;color:#178b91}.circuit-scope-fields{display:grid;grid-template-columns:minmax(190px,1fr) minmax(230px,1.2fr);gap:14px;min-width:min(520px,55%)}.circuit-scope-fields label,.circuit-stage-fields label,.circuit-reason{display:grid;gap:7px;font-weight:700;color:#36516b}.circuit-stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.circuit-stage-card{position:relative;overflow:hidden;border:1px solid #dce6ef;border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(20,55,88,.07)}.circuit-stage-card:before{content:"";display:block;height:5px;background:#2474b5}.circuit-stage-review:before{background:#17a2a0}.circuit-stage-approve:before{background:#16956c}.circuit-stage-header{display:flex;align-items:center;gap:12px;padding:17px 18px 13px;border-bottom:1px solid #edf2f6}.circuit-stage-header>div{display:grid;gap:2px}.circuit-stage-header strong{font-size:1rem;color:#17324d}.circuit-stage-header small{color:#6a7f91}.circuit-stage-number{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#eaf3fb;color:#17619b;font-weight:900}.circuit-stage-review .circuit-stage-number{background:#e5f7f6;color:#12827f}.circuit-stage-approve .circuit-stage-number{background:#e6f7ef;color:#127453}.circuit-stage-fields{display:grid;gap:13px;padding:16px 18px 19px}.circuit-save-zone{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr) auto;gap:16px;align-items:end;margin-top:18px;padding:18px 20px;border-radius:16px;background:#f7f9fc;border:1px solid #e2e9f0}.circuit-reason textarea{min-height:72px}.circuit-governance-note{display:grid;gap:4px;align-self:center;color:#5c7083;font-size:.82rem}.circuit-governance-note strong{color:#254660}.circuit-save-zone button{min-width:230px;height:44px}.premium-advanced-config{border:1px solid #dfe7ef;border-radius:12px;background:#fafcfe}.premium-advanced-config summary{cursor:pointer;padding:14px 16px;font-weight:800;color:#28506f}.premium-advanced-config[open] summary{border-bottom:1px solid #e7edf3}.premium-advanced-config>p,.premium-advanced-config>form{margin:14px 16px}.premium-advanced-config:not([open]){box-shadow:none}@media(max-width:1100px){.circuit-stage-grid{grid-template-columns:1fr}.circuit-save-zone{grid-template-columns:1fr}.circuit-save-zone button{width:100%}.circuit-scope-toolbar{align-items:stretch;flex-direction:column}.circuit-scope-fields{min-width:0;width:100%}}@media(max-width:650px){.circuit-scope-fields{grid-template-columns:1fr}.circuit-scope-toolbar,.circuit-save-zone{padding:15px}.circuit-stage-header,.circuit-stage-fields{padding-left:15px;padding-right:15px}}
.circuit-form-feedback{padding:10px 12px;border-radius:9px;font-size:.82rem;font-weight:700}.circuit-form-feedback.is-error{color:#9f1d2d;background:#fff0f2;border:1px solid #f3c4cb}
.user-scope-editor{display:grid;gap:16px}.scope-editor-head{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:12px;background:#eff6fb;color:#17324d}.scope-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.scope-choice{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #dce6ef;border-radius:11px;background:#fff}.scope-choice:has(input:checked){border-color:#159b8a;background:#ecfaf6}.scope-choice input{width:17px;height:17px}@media(max-width:900px){.scope-choice-grid{grid-template-columns:1fr}}
.executive-matrix-layout{display:grid;gap:16px}.executive-matrix-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.executive-matrix-filters{display:flex;justify-content:flex-end;gap:12px;padding:12px 14px;border-radius:12px;background:#f5f8fb}.executive-matrix-filters label{display:grid;gap:5px;min-width:210px;font-weight:700;color:#38536c}.executive-circuit-list{display:grid;gap:13px}.executive-circuit-card{overflow:hidden;border:1px solid #dce6ef;border-left:5px solid #168e80;border-radius:15px;background:#fff;box-shadow:0 7px 20px rgba(23,50,77,.06)}.executive-circuit-card.is-concentrated{border-left-color:#d99524}.executive-circuit-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 18px;background:linear-gradient(135deg,#f9fbfd,#f1f7fa);border-bottom:1px solid #e6edf3}.executive-circuit-head>div:first-child{display:grid;gap:3px}.executive-circuit-head strong{font-size:1rem;color:#17324d}.executive-circuit-badges{display:flex;gap:8px;flex-wrap:wrap}.status-badge.warning{background:#fff3d9;color:#925f00}.executive-circuit-route{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:16px}.executive-circuit-stage{position:relative;display:flex;align-items:flex-start;gap:10px;padding:4px 30px 4px 6px;min-width:0}.executive-stage-index{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#e5f6f2;color:#087c69;font-weight:900}.executive-circuit-stage>div{display:grid;gap:2px;min-width:0}.executive-circuit-stage small{font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#178b91}.executive-circuit-stage strong{overflow:hidden;text-overflow:ellipsis;color:#17324d}.executive-circuit-stage span,.executive-circuit-stage em{font-size:.78rem;color:#65798b;font-style:normal}.executive-route-arrow{position:absolute;right:10px;top:20px;color:#83a0b7;font-size:1.25rem}@media(max-width:1000px){.executive-matrix-metrics{grid-template-columns:repeat(2,1fr)}.executive-circuit-route{grid-template-columns:1fr}.executive-route-arrow{position:static;transform:rotate(90deg);margin:auto}.executive-circuit-head{align-items:flex-start;flex-direction:column}}@media(max-width:650px){.executive-matrix-metrics{grid-template-columns:1fr}.executive-matrix-filters{flex-direction:column}.executive-matrix-filters label{min-width:0}}

/* R6.17 · Presentación premium del gobierno administrativo (solo forma). */
.premium-access-dashboard,.premium-approval-dashboard{display:grid;gap:18px}
.premium-access-dashboard>.panel,.premium-approval-dashboard>.panel,.contract-process-panel{overflow:hidden;border:1px solid #dfe8f1;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(16,43,70,.065)}
.premium-access-dashboard>.panel>.panel-head,.premium-approval-dashboard>.panel>.panel-head{padding:18px 22px;border-bottom:1px solid #e8eef4;background:linear-gradient(135deg,#fbfdff 0%,#f3f8fb 100%)}
.premium-access-dashboard>.panel>.panel-head h3,.premium-approval-dashboard>.panel>.panel-head h3{color:#153552;font-size:1.02rem}
.premium-access-dashboard>.panel>.panel-body,.premium-approval-dashboard>.panel>.panel-body{padding:20px 22px}
.premium-access-dashboard .flow-steps{gap:12px;padding:0;counter-reset:premium-step}
.premium-access-dashboard .flow-steps li{position:relative;min-height:62px;padding:16px 16px 16px 52px;border:1px solid #e2eaf2;border-radius:14px;background:#f9fbfd;line-height:1.5;counter-increment:premium-step}
.premium-access-dashboard .flow-steps li::before{position:absolute;top:14px;left:14px;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;color:#fff;background:linear-gradient(135deg,#1b639d,#168f88);font-size:.75rem;font-weight:900;content:counter(premium-step)}
.premium-access-dashboard form{padding:18px;border:1px solid #e1e9f1;border-radius:15px;background:#f8fbfd}
.premium-access-dashboard table,.premium-approval-dashboard table{border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid #e5ebf1;border-radius:13px}
.premium-access-dashboard th,.premium-approval-dashboard th{padding:11px 12px;color:#506a80;background:#f2f6f9;font-size:.68rem;letter-spacing:.045em;text-transform:uppercase}
.premium-access-dashboard td,.premium-approval-dashboard td{padding:11px 12px;border-top:1px solid #edf1f5;background:#fff;vertical-align:middle}
.premium-access-dashboard tr:hover td,.premium-approval-dashboard tr:hover td{background:#f8fbfd}
.premium-access-dashboard .row-actions{gap:6px;flex-wrap:nowrap}
.premium-access-dashboard .row-actions button{white-space:nowrap}
.premium-approval-dashboard .sla-policy-grid,.premium-approval-dashboard .contract-stage-grid{gap:14px}
.premium-approval-dashboard .sla-policy-card,.premium-approval-dashboard .contract-stage-card{padding:17px;border:1px solid #dfe8f0;border-top:4px solid #2582aa;border-radius:15px;background:linear-gradient(160deg,#fff,#f8fbfd);box-shadow:0 7px 18px rgba(22,51,78,.045)}
.premium-approval-dashboard .sla-policy-card:nth-child(2),.premium-approval-dashboard .contract-stage-card:nth-child(2){border-top-color:#159b8a}
.premium-approval-dashboard .sla-policy-card:nth-child(3),.premium-approval-dashboard .contract-stage-card:nth-child(3){border-top-color:#d79a20}
.premium-approval-dashboard form>button:last-child,.contract-workflow-form>button:last-child{width:100%;min-height:42px;margin-top:13px;border-radius:11px;box-shadow:0 7px 16px rgba(23,91,145,.14)}
.contract-template-process .contract-template-library-body{display:grid;gap:16px}
.contract-template-process .metric-grid{margin:0}
.contract-workflow-form{padding:18px;border:1px solid #e0e9f1;border-radius:16px;background:#fafcfe}
.contract-policy-meta{padding:14px;border:1px solid #e3eaf1;border-radius:13px;background:#fff}
.contract-stage-grid{gap:14px;margin-top:14px}
.contract-stage-card{padding:17px;border:1px solid #dfe7ef;border-top:4px solid #2380aa;border-radius:15px;background:#fff;box-shadow:0 7px 18px rgba(22,51,78,.045)}
.contract-stage-card:nth-child(2){border-top-color:#159b8a}.contract-stage-card:nth-child(3){border-top-color:#d79a20}.contract-stage-card:nth-child(4){border-top-color:#7b66b5}
@media(max-width:1100px){.premium-access-dashboard .table-wrap,.premium-approval-dashboard .table-wrap{overflow:auto}.premium-access-dashboard table,.premium-approval-dashboard table{min-width:900px}}
@media(max-width:650px){.premium-access-dashboard>.panel>.panel-head,.premium-approval-dashboard>.panel>.panel-head,.premium-access-dashboard>.panel>.panel-body,.premium-approval-dashboard>.panel>.panel-body{padding:16px}.premium-access-dashboard form,.contract-workflow-form{padding:14px}}
.plan-module-preview{padding:14px;border:1px solid #dfe8f0;border-radius:14px;background:#f8fbfd}.plan-module-preview .is-plan-included{display:flex;align-items:center;gap:9px;padding:11px 13px;border:1px solid #dce8ef;border-radius:11px;background:#fff}.plan-included-mark{display:grid;place-items:center;flex:0 0 23px;height:23px;border-radius:50%;color:#fff;background:#0b9878;font-weight:900}.support-request-form{display:grid;gap:15px}.cae-support-session-banner{position:fixed;z-index:9998;right:22px;bottom:22px;display:flex;align-items:center;gap:18px;width:min(680px,calc(100vw - 44px));padding:15px 17px;border:1px solid #f1bd49;border-left:6px solid #d98b00;border-radius:16px;color:#563900;background:#fff8df;box-shadow:0 18px 46px rgba(55,39,8,.22)}.cae-support-session-banner>div{display:grid;gap:3px;min-width:0}.cae-support-session-banner strong{font-size:.82rem;letter-spacing:.07em}.cae-support-session-banner span{font-size:.76rem;line-height:1.4}.cae-support-session-banner button{flex:0 0 auto;background:#9c5f00}.support-request-form textarea{min-height:88px}.status-badge.active,.status-badge.approved{color:#096d57;background:#e8f8f2}.status-badge.pending{color:#875800;background:#fff3d3}.status-badge.rejected,.status-badge.revoked,.status-badge.expired{color:#9b2838;background:#fff0f2}@media(max-width:650px){.cae-support-session-banner{right:12px;bottom:12px;align-items:stretch;flex-direction:column;width:calc(100vw - 24px)}.cae-support-session-banner button{width:100%}}

/* ==========================================================
   CAE RH ENTERPRISE
   UX-002 · PREMIUM SAAS ADMINISTRATION
   CAPA EXCLUSIVAMENTE VISUAL
   ========================================================== */

body {
  background:
    radial-gradient(
      circle at 85% 8%,
      rgba(34, 196, 188, .075),
      transparent 25%
    ),
    linear-gradient(
      180deg,
      #f7fafd 0%,
      #eef4f8 100%
    );
}

/* Contenedor general */
#portalContent {
  position: relative;
}

/* Hero principal */
#portalContent > .hero {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 27px 30px;
  background:
    radial-gradient(
      circle at 92% 25%,
      rgba(46, 211, 190, .28),
      transparent 30%
    ),
    linear-gradient(
      120deg,
      #102d52 0%,
      #174b7b 53%,
      #158b93 100%
    );
  box-shadow:
    0 18px 45px rgba(14, 45, 78, .16);
}

#portalContent > .hero h1 {
  font-size: clamp(27px, 2.8vw, 38px);
  letter-spacing: -.035em;
}

#portalContent > .hero p {
  color: rgba(240, 248, 255, .88);
}

#portalContent > .hero .hero-badge {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

/* Paneles */
#portalContent > .panel {
  overflow: hidden;
  border: 1px solid #dde8f0;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow:
    0 10px 30px rgba(19, 48, 75, .055);
}

#portalContent > .panel > .panel-head {
  padding: 17px 20px;
  border-bottom: 1px solid #e7eef4;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f7fafc 100%
    );
}

#portalContent > .panel > .panel-head h3 {
  color: #102d52;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.015em;
}

#portalContent > .panel > .panel-head p {
  color: #6b7f94;
}

#portalContent > .panel > .panel-body {
  padding: 20px;
}

/* Cliente actual */
#portalContent > .panel:nth-of-type(1) {
  border-color: #d7e7f2;
}

#portalContent input,
#portalContent select,
#portalContent textarea {
  min-height: 44px;
  border: 1px solid #cfdae5;
  border-radius: 11px;
  background: #fff;
  box-shadow:
    inset 0 1px 2px rgba(17, 45, 75, .025);
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

#portalContent input:focus,
#portalContent select:focus,
#portalContent textarea:focus {
  border-color: #2c78bc;
  outline: none;
  box-shadow:
    0 0 0 4px rgba(44,120,188,.10);
}

#portalContent input[readonly] {
  color: #163654;
  background:
    linear-gradient(
      180deg,
      #fbfdff,
      #f4f8fb
    );
  font-weight: 700;
}

/* Etiquetas */
#portalContent label {
  color: #314c67;
  font-weight: 750;
}

/* Métricas comerciales */
#portalContent .metric-grid {
  gap: 14px;
}

#portalContent .metric {
  min-height: 104px;
  border: 1px solid #dce7ef;
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8fbfd 100%
    );
  box-shadow:
    0 8px 22px rgba(20, 50, 80, .045);
}

#portalContent .metric strong {
  color: #102d52;
  font-size: 20px;
}

/* Checklist de módulos */
#portalContent .checklist-grid {
  gap: 9px;
}

#portalContent .check-row {
  min-height: 42px;
  border: 1px solid #dce9e7;
  border-radius: 11px;
  background:
    linear-gradient(
      135deg,
      #fbfffe 0%,
      #f1faf7 100%
    );
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease;
}

#portalContent .check-row:hover {
  transform: translateY(-1px);
  border-color: #b9ded6;
  box-shadow:
    0 7px 18px rgba(18, 112, 98, .07);
}

#portalContent .plan-included-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #12a879;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow:
    0 4px 10px rgba(18,168,121,.18);
}

/* Botones */
#portalContent button {
  border-radius: 11px;
  font-weight: 800;
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    filter .15s ease;
}

#portalContent button:hover:not(:disabled) {
  transform: translateY(-1px);
}

#portalContent .download-button,
#portalContent .secondary-button {
  border: 1px solid #cbdbe8;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f2f7fb 100%
    );
  color: #17466f;
}

#portalContent .download-button:hover:not(:disabled),
#portalContent .secondary-button:hover:not(:disabled) {
  border-color: #9fc2dc;
  box-shadow:
    0 8px 18px rgba(27, 83, 126, .10);
}

/* Botón primario existente: apariencia premium,
   sin alterar su evento ni comportamiento */
#portalContent button[type="submit"] {
  min-height: 44px;
  box-shadow:
    0 9px 22px rgba(25, 86, 142, .13);
}

/* Formularios */
#portalContent .filter-grid {
  gap: 14px;
}

#portalContent form {
  position: relative;
}

/* Tablas / historial */
#portalContent table {
  overflow: hidden;
  border-radius: 12px;
}

#portalContent thead th {
  color: #49637c;
  background: #f4f8fb;
}

#portalContent tbody tr:hover {
  background: #f8fbfd;
}

/* Espaciado vertical */
#portalContent > .hero + .panel,
#portalContent > .panel + .panel {
  margin-top: 14px;
}

/* Scrollbar discreta */
#portalContent {
  scrollbar-color: #b8c8d7 transparent;
}

/* Desktop amplio */
@media (min-width: 1180px) {
  #portalContent > .panel > .panel-body {
    padding: 22px;
  }

  #portalContent .filter-grid {
    column-gap: 16px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  #portalContent > .hero {
    padding: 23px;
    border-radius: 18px;
  }

  #portalContent > .panel {
    border-radius: 15px;
  }
}

/* Móvil */
@media (max-width: 650px) {
  #portalContent > .hero {
    padding: 20px;
  }

  #portalContent > .panel > .panel-head,
  #portalContent > .panel > .panel-body {
    padding: 16px;
  }

  #portalContent input,
  #portalContent select,
  #portalContent textarea {
    min-height: 46px;
  }
}

/* UX-002 VISUAL END */

/* ==========================================================
   UX-003B · CAE RH PREMIUM CLIENTES Y PLANES
   ========================================================== */

.saas-premium-dashboard{
  display:grid;
  gap:18px;
}

.saas-premium-dashboard>.hero{
  min-height:180px;
  padding:32px 35px;
  border-radius:24px;
  background:
    radial-gradient(circle at 88% 15%,
      rgba(40,220,195,.34),transparent 28%),
    linear-gradient(118deg,
      #0d2c52 0%,#174f86 52%,#11969a 100%);
  box-shadow:0 22px 52px rgba(13,48,82,.18);
}

.saas-premium-dashboard>.hero h1{
  font-size:clamp(30px,3vw,42px);
  line-height:1.05;
}

.saas-premium-dashboard>.hero .hero-badge{
  min-width:190px;
  padding:20px;
  border-radius:18px;
  background:rgba(255,255,255,.12);
}

.saas-premium-dashboard>.panel{
  overflow:hidden;
  border:1px solid #d9e5ee;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 34px rgba(18,50,78,.07);
}

.saas-premium-dashboard>.panel>.panel-head{
  min-height:76px;
  padding:19px 23px;
  background:linear-gradient(135deg,#fff,#f3f8fc);
}

.saas-premium-dashboard>.panel>.panel-head h3{
  color:#102d52;
  font-size:17px;
  letter-spacing:-.02em;
}

.saas-client-summary-grid{
  padding:19px 21px;
  grid-template-columns:1.4fr .7fr .7fr;
  background:linear-gradient(135deg,#fbfdff,#eef6fb);
}

.saas-client-summary-grid input[readonly]{
  background:#fff;
  border-color:#c8dce9;
  color:#123858;
  font-weight:800;
}

.saas-gate-grid{
  padding:19px;
  grid-template-columns:repeat(3,1fr);
  background:linear-gradient(180deg,#fbfdff,#f3f8fb);
}

.saas-gate-grid .metric{
  min-height:122px;
  padding:20px;
  border-radius:17px;
  background:#fff;
  box-shadow:0 8px 22px rgba(18,52,82,.055);
}

.saas-gate-grid .metric strong{
  font-size:25px;
}

.saas-premium-activation-panel{
  border-color:#cadde9!important;
  box-shadow:0 20px 48px rgba(18,52,82,.10)!important;
}

.saas-premium-activation-panel>.panel-head{
  padding:22px 24px!important;
  background:
    linear-gradient(125deg,#f9fcff,#e8f5fa)!important;
}

.saas-premium-activation{
  display:grid;
  padding:0 23px 24px;
}

.saas-section-title{
  display:flex;
  align-items:center;
  gap:13px;
  margin:23px 0 13px;
}

.saas-section-icon{
  flex:0 0 40px;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:12px;
  color:#fff;
  background:linear-gradient(135deg,#1766ad,#12a093);
  box-shadow:0 7px 18px rgba(23,102,173,.20);
  font-size:11px;
  font-weight:900;
}

.saas-section-title h4{
  margin:0;
  color:#102d52;
  font-size:15px;
}

.saas-section-title p{
  margin:3px 0 0;
  color:#71849a;
  font-size:10px;
}

.saas-commercial-grid,
.saas-admin-grid{
  padding:18px;
  border:1px solid #dce7ef;
  border-radius:16px;
  grid-template-columns:repeat(3,1fr);
  background:linear-gradient(135deg,#fff,#f6fafc);
}

.saas-premium-activation .plan-module-preview{
  margin:0;
  padding:17px;
  border:1px solid #d4e8e3;
  border-radius:16px;
  background:linear-gradient(145deg,#fbfffe,#eef9f6);
}

.saas-premium-activation .check-row{
  min-height:46px;
  border-color:#d2e7e2;
  background:rgba(255,255,255,.88);
}

.saas-premium-activation .plan-included-mark{
  background:#10a67a;
  box-shadow:0 5px 12px rgba(16,166,122,.22);
}

.saas-admin-grid{
  border-color:#dce4ef;
  background:linear-gradient(135deg,#fff,#f5f8fc);
}

.saas-activation-footer{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:22px;
  padding:18px;
  border:1px solid #d4e5ec;
  border-radius:16px;
  background:linear-gradient(135deg,#f3f9fc,#edf8f5);
}

.saas-activate-button{
  min-height:48px!important;
  padding:12px 22px!important;
  border:0!important;
  color:#fff!important;
  background:linear-gradient(135deg,#126bb0,#0aa07e)!important;
  box-shadow:0 10px 24px rgba(15,112,145,.22)!important;
}

.saas-activate-button:hover:not(:disabled){
  filter:brightness(1.04);
  transform:translateY(-1px);
}

.saas-premium-dashboard table{
  border-radius:12px;
}

.saas-premium-dashboard thead th{
  background:#f1f6fa;
}

@media(max-width:1000px){
  .saas-client-summary-grid,
  .saas-commercial-grid,
  .saas-admin-grid,
  .saas-gate-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:650px){
  .saas-premium-dashboard>.hero{
    min-height:0;
    padding:23px;
    border-radius:19px;
  }

  .saas-client-summary-grid,
  .saas-commercial-grid,
  .saas-admin-grid,
  .saas-gate-grid{
    grid-template-columns:1fr;
  }

  .saas-premium-activation{
    padding:0 16px 18px;
  }

  .saas-activation-footer{
    align-items:stretch;
    flex-direction:column;
  }

  .saas-activate-button{
    width:100%;
  }
}

/* UX-003B END */

/* ==========================================================
   CAE RH ENTERPRISE
   UX-004 · FINAL VISUAL POLISH
   SOLO PRESENTACION
   ========================================================== */

/* Más presencia general sin desperdiciar espacio */
.saas-premium-dashboard{
  gap:20px;
}

/* Hero más sólido */
.saas-premium-dashboard>.hero{
  min-height:188px;
  padding:34px 38px;
}

.saas-premium-dashboard>.hero .eyebrow{
  font-size:10px;
  font-weight:900;
  letter-spacing:.17em;
}

.saas-premium-dashboard>.hero h1{
  margin-top:6px;
  margin-bottom:10px;
  font-size:clamp(32px,3vw,44px);
}

.saas-premium-dashboard>.hero p{
  max-width:880px;
  font-size:13px;
  line-height:1.55;
}

.saas-premium-dashboard>.hero .hero-badge{
  min-width:205px;
}

.saas-premium-dashboard>.hero
.hero-badge span{
  font-size:10px;
}

.saas-premium-dashboard>.hero
.hero-badge strong{
  font-size:19px;
}

/* Paneles */
.saas-premium-dashboard>.panel{
  border-color:#d5e2eb;
  box-shadow:
    0 12px 32px
    rgba(16,46,73,.075);
}

.saas-premium-dashboard>.panel>
.panel-head{
  padding:20px 24px;
}

.saas-premium-dashboard>.panel>
.panel-head h3{
  font-size:18px;
}

.saas-premium-dashboard>.panel>
.panel-head p{
  margin-top:5px;
  font-size:11.5px;
  line-height:1.5;
}

/* Cliente actual */
.saas-client-summary-grid{
  padding:21px 22px;
  gap:16px;
}

.saas-client-summary-grid label{
  font-size:11px;
}

.saas-client-summary-grid input,
.saas-client-summary-grid button{
  min-height:46px;
}

/* Compuerta con mayor peso visual */
.saas-gate-grid{
  gap:16px;
  padding:20px;
}

.saas-gate-grid .metric{
  min-height:132px;
  padding:22px;
  border:1px solid #d9e5ed;
  box-shadow:
    0 10px 26px
    rgba(18,52,82,.065);
}

.saas-gate-grid .metric span{
  font-size:10px;
}

.saas-gate-grid .metric strong{
  margin-top:2px;
  font-size:28px;
}

.saas-gate-grid .metric small{
  font-size:10.5px;
  line-height:1.45;
}

/* Historial más limpio */
.saas-premium-dashboard
.table-wrap{
  background:#fff;
}

.saas-premium-dashboard table{
  font-size:11.5px;
}

.saas-premium-dashboard th{
  padding:12px 11px;
  font-size:9.5px;
}

.saas-premium-dashboard td{
  padding:13px 11px;
}

/* Panel de activación */
.saas-premium-activation-panel>
.panel-head h3{
  font-size:19px;
}

.saas-premium-activation{
  padding:0 25px 26px;
}

/* Títulos 01 / 02 / 03 */
.saas-section-title{
  gap:14px;
  margin:26px 0 15px;
}

.saas-section-icon{
  flex-basis:43px;
  width:43px;
  height:43px;
  border-radius:13px;
  font-size:12px;
}

.saas-section-title h4{
  font-size:16px;
}

.saas-section-title p{
  margin-top:4px;
  font-size:11px;
}

/* Campos comerciales */
.saas-commercial-grid,
.saas-admin-grid{
  gap:16px;
  padding:20px;
  border-radius:17px;
}

.saas-commercial-grid label,
.saas-admin-grid label{
  font-size:11px;
}

.saas-commercial-grid input,
.saas-commercial-grid select,
.saas-admin-grid input{
  min-height:47px;
  font-size:12px;
}

/* Módulos: más legibles */
.saas-premium-activation
.plan-module-preview{
  gap:11px;
  padding:20px;
  border-radius:17px;
}

.saas-premium-activation
.plan-module-preview .check-row{
  min-height:50px;
  padding:11px 13px;
  border-radius:12px;
  font-size:11.5px;
  box-shadow:
    0 3px 10px
    rgba(14,91,74,.025);
}

.saas-premium-activation
.plan-module-preview
.plan-included-mark{
  width:23px;
  height:23px;
  font-size:12px;
}

/* Administrador con tono distinto */
.saas-admin-grid{
  border-color:#d8e2ef;
  background:
    linear-gradient(
      135deg,
      #fbfdff,
      #f2f7fc
    );
}

/* Footer de activación */
.saas-activation-footer{
  gap:18px;
  margin-top:25px;
  padding:20px;
  border-radius:17px;
}

.saas-activate-button{
  min-height:52px!important;
  padding:13px 26px!important;
  border-radius:12px!important;
  font-size:12px!important;
  letter-spacing:.01em;
  box-shadow:
    0 12px 28px
    rgba(15,112,145,.25)!important;
}

/* Hover sobrio */
.saas-premium-dashboard
.metric,
.saas-premium-dashboard
.check-row{
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    border-color .16s ease;
}

.saas-premium-dashboard
.metric:hover{
  transform:translateY(-2px);
  box-shadow:
    0 13px 30px
    rgba(18,52,82,.09);
}

.saas-premium-activation
.check-row:hover{
  transform:translateY(-1px);
  border-color:#b9ddd4;
}

/* Mejor aprovechamiento de pantallas grandes */
@media(min-width:1450px){
  .saas-premium-dashboard{
    gap:21px;
  }

  .saas-premium-dashboard>.panel>
  .panel-head{
    padding-left:26px;
    padding-right:26px;
  }

  .saas-premium-activation{
    padding-left:27px;
    padding-right:27px;
  }
}

/* Tablet */
@media(max-width:1000px){
  .saas-premium-dashboard>.hero{
    min-height:160px;
    padding:28px;
  }

  .saas-gate-grid .metric{
    min-height:115px;
  }
}

/* Móvil */
@media(max-width:650px){
  .saas-premium-dashboard{
    gap:14px;
  }

  .saas-premium-dashboard>.hero{
    padding:22px;
  }

  .saas-premium-dashboard>.hero h1{
    font-size:28px;
  }

  .saas-section-title{
    margin-top:20px;
  }

  .saas-commercial-grid,
  .saas-admin-grid,
  .saas-premium-activation
  .plan-module-preview{
    padding:15px;
  }

  .saas-activation-footer{
    padding:15px;
  }
}

/* UX-004 END */

/* ==========================================================
   UX-005 · CLIENTE ACTUAL BLOQUEADO
   ========================================================== */

.saas-client-summary-grid
label:nth-child(1) input,
.saas-client-summary-grid
label:nth-child(2) input{
  cursor:not-allowed;
  border-color:#d3dee7;
  color:#173b59;
  background:
    linear-gradient(
      135deg,
      #f5f8fb,
      #edf3f7
    );
  box-shadow:
    inset 0 0 0 1px
    rgba(255,255,255,.7);
}

.saas-client-summary-grid
label:nth-child(1),
.saas-client-summary-grid
label:nth-child(2){
  position:relative;
}

.saas-client-summary-grid
label:nth-child(1)::after,
.saas-client-summary-grid
label:nth-child(2)::after{
  content:"BLOQUEADO";
  position:absolute;
  right:11px;
  top:4px;
  color:#71859a;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
}

.saas-client-summary-grid
label:nth-child(3){
  display:grid;
  align-content:end;
  gap:6px;
}

.saas-client-summary-grid
label:nth-child(3) button{
  min-height:46px;
  border:1px solid #bdd5e4;
  color:#12527e;
  background:
    linear-gradient(
      135deg,
      #f7fbfe,
      #eaf5fa
    );
}

.saas-client-summary-grid
label:nth-child(3) button:hover{
  border-color:#8dbbd2;
  background:
    linear-gradient(
      135deg,
      #eef8fc,
      #e2f3f4
    );
}

.saas-client-action-help{
  display:block;
  color:#75879a;
  font-size:9px;
  font-weight:500;
  line-height:1.35;
}

/* UX-005 END */

/* ==========================================================
   UX-006 · ALTA DE EMPRESAS CENTRALIZADA EN PLANILLAS
   ----------------------------------------------------------
   Enterprise conserva internamente register/link.
   Esta interfaz no expone una segunda puerta de alta.
   ========================================================== */

.saas-client-summary-grid
label:nth-child(3){
  display:none !important;
}

/*
  Al quedar solamente Cliente seleccionado + RUC,
  redistribuimos la ficha.
*/
.saas-client-summary-grid{
  grid-template-columns:
    minmax(320px,1.5fr)
    minmax(220px,.7fr);
}

/* UX-006 END */

/* =========================================================
   PREMIUM-DIRECTOR-002A
   Director CAE · Base visual
   Solo presentación
   ========================================================= */

.saas-premium-dashboard{
  --pd-navy:#12395f;
  --pd-blue:#17699b;
  --pd-teal:#13a69c;
  --pd-ink:#17324d;
  --pd-muted:#6b8093;
  --pd-line:#dce7ef;

  display:grid;
  gap:18px;
  padding-bottom:26px;
}

/* HERO */

.saas-premium-dashboard > .hero{
  position:relative;
  min-height:134px;
  overflow:hidden;

  padding:29px 31px;

  border:
    1px solid rgba(255,255,255,.14);

  border-radius:22px;

  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(74,225,208,.25),
      transparent 28%
    ),
    linear-gradient(
      115deg,
      #123a65 0%,
      #185d88 48%,
      #13aaa0 100%
    );

  box-shadow:
    0 18px 42px rgba(14,47,77,.18);
}

.saas-premium-dashboard > .hero::before{
  content:"";

  position:absolute;
  width:250px;
  height:250px;

  top:-110px;
  right:-75px;

  border:
    1px solid rgba(255,255,255,.12);

  border-radius:50%;
}

.saas-premium-dashboard > .hero::after{
  content:"";

  position:absolute;
  width:175px;
  height:175px;

  right:-25px;
  bottom:-125px;

  border:
    1px solid rgba(255,255,255,.10);

  border-radius:50%;
}

.saas-premium-dashboard >
.hero .eyebrow{
  position:relative;
  z-index:1;

  color:#aeece7;

  font-size:.68rem;
  font-weight:900;
  letter-spacing:.14em;
}

.saas-premium-dashboard >
.hero h1{
  position:relative;
  z-index:1;

  margin:5px 0 8px;

  color:#fff;

  font-size:
    clamp(1.6rem,2.4vw,2.18rem);

  font-weight:850;
  letter-spacing:-.035em;
}

.saas-premium-dashboard >
.hero p{
  position:relative;
  z-index:1;

  max-width:850px;
  margin:0;

  color:#dcebf6;

  line-height:1.55;
}

.saas-premium-dashboard >
.hero .hero-badge{
  position:relative;
  z-index:2;

  min-width:140px;

  padding:13px 16px;

  border:
    1px solid rgba(255,255,255,.20);

  border-radius:15px;

  background:
    rgba(255,255,255,.10);

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.12),
    0 8px 22px
      rgba(4,35,54,.10);

  backdrop-filter:blur(8px);
}

.saas-premium-dashboard >
.hero .hero-badge span{
  color:#c6e7e7;
}

.saas-premium-dashboard >
.hero .hero-badge strong{
  color:#fff;
  font-size:1.03rem;
}

/* PANELES */

.saas-premium-dashboard >
.panel{
  overflow:hidden;

  border:
    1px solid var(--pd-line);

  border-radius:18px;

  background:#fff;

  box-shadow:
    0 8px 26px
    rgba(20,55,83,.055);

  transition:
    box-shadow .18s ease,
    transform .18s ease;
}

.saas-premium-dashboard >
.panel:hover{
  box-shadow:
    0 12px 32px
    rgba(20,55,83,.075);
}

.saas-premium-dashboard >
.panel > .panel-head{
  padding:17px 20px 15px;

  border-bottom:
    1px solid #e8eff4;

  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f5f9fc 100%
    );
}

.saas-premium-dashboard >
.panel > .panel-head h3{
  margin:0 0 4px;

  color:var(--pd-ink);

  font-size:1rem;
  font-weight:850;
  letter-spacing:-.015em;
}

.saas-premium-dashboard >
.panel > .panel-head p{
  margin:0;

  color:var(--pd-muted);

  line-height:1.45;
}

.saas-premium-dashboard >
.panel > .panel-body{
  padding:18px 20px;
}


/* =========================================================
   PREMIUM-DIRECTOR-002B
   Cliente actual + Compuerta comercial
   Solo presentación
   ========================================================= */


/* CLIENTE ACTUAL */

.saas-premium-dashboard
.saas-client-summary-grid{
  display:grid;
  grid-template-columns:
    minmax(0,1.45fr)
    minmax(0,.8fr)
    minmax(220px,.75fr);

  gap:14px;
  align-items:stretch;
}

.saas-premium-dashboard
.saas-client-summary-grid label{
  position:relative;

  display:flex;
  flex-direction:column;
  justify-content:center;

  min-height:88px;
  padding:15px 17px;

  overflow:hidden;

  border:1px solid #dde8ef;
  border-radius:14px;

  color:#60778b;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f5f9fc
    );

  box-shadow:
    0 5px 16px
    rgba(19,54,82,.04);
}

.saas-premium-dashboard
.saas-client-summary-grid
label:first-child{
  border-left:
    4px solid #17699b;
}

.saas-premium-dashboard
.saas-client-summary-grid
label:nth-child(2){
  border-left:
    4px solid #13a69c;
}

.saas-premium-dashboard
.saas-client-summary-grid
label:nth-child(3){
  border-left:
    4px solid #8298ad;
}

.saas-premium-dashboard
.saas-client-summary-grid
input[readonly]{
  width:100%;
  margin-top:4px;
  padding:0;

  border:0;
  outline:0;

  color:#17324d;
  background:transparent;

  font-size:.96rem;
  font-weight:850;

  box-shadow:none;
}

.saas-premium-dashboard
.saas-client-summary-grid
input[readonly]:focus{
  border:0;
  box-shadow:none;
}

.saas-premium-dashboard
.saas-client-summary-grid button{
  min-height:38px;
  margin-top:5px;

  border-radius:10px;

  font-weight:800;
}

.saas-premium-dashboard
.saas-client-action-help{
  display:block;

  margin-top:6px;

  color:#74899b;

  font-size:.72rem;
  line-height:1.35;
}


/* COMPUERTA COMERCIAL */

.saas-premium-dashboard
.saas-gate-grid{
  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:14px;
}

.saas-premium-dashboard
.saas-gate-grid .metric{
  position:relative;

  min-height:112px;
  overflow:hidden;

  padding:18px 18px 16px;

  border:1px solid #dfe9ef;
  border-radius:15px;

  background:
    linear-gradient(
      150deg,
      #ffffff 0%,
      #f7fafc 100%
    );

  box-shadow:
    0 7px 20px
    rgba(18,53,81,.05);
}

.saas-premium-dashboard
.saas-gate-grid .metric::before{
  content:"";

  position:absolute;
  top:0;
  left:0;
  right:0;

  height:4px;

  background:#2781ae;
}

.saas-premium-dashboard
.saas-gate-grid .metric.green::before{
  background:#13a673;
}

.saas-premium-dashboard
.saas-gate-grid .metric.amber::before{
  background:#d99a2b;
}

.saas-premium-dashboard
.saas-gate-grid .metric.red::before{
  background:#cf4257;
}

.saas-premium-dashboard
.saas-gate-grid .metric small{
  display:block;

  margin-bottom:5px;

  color:#6e8295;

  font-size:.69rem;
  font-weight:800;
  letter-spacing:.035em;

  text-transform:uppercase;
}

.saas-premium-dashboard
.saas-gate-grid .metric strong{
  display:block;

  margin-bottom:5px;

  color:#17324d;

  font-size:1.22rem;
  font-weight:900;
  letter-spacing:-.025em;
}

.saas-premium-dashboard
.saas-gate-grid .metric span{
  color:#74889a;

  font-size:.74rem;
  line-height:1.4;
}


/* Portal habilitado: lectura visual inmediata */

.saas-premium-dashboard
.saas-gate-grid .metric.green{
  border-color:#cfe9df;

  background:
    linear-gradient(
      150deg,
      #ffffff 0%,
      #f1fbf7 100%
    );
}

.saas-premium-dashboard
.saas-gate-grid .metric.green strong{
  color:#08795c;
}


/* Portal cerrado / pendiente */

.saas-premium-dashboard
.saas-gate-grid .metric.amber{
  border-color:#eeddbb;

  background:
    linear-gradient(
      150deg,
      #ffffff 0%,
      #fff9ee 100%
    );
}

.saas-premium-dashboard
.saas-gate-grid .metric.amber strong{
  color:#96650f;
}


/* Responsive */

@media(max-width:1000px){

  .saas-premium-dashboard
  .saas-client-summary-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .saas-premium-dashboard
  .saas-client-summary-grid
  label:nth-child(3){
    grid-column:1 / -1;
  }

}

@media(max-width:720px){

  .saas-premium-dashboard
  .saas-client-summary-grid,
  .saas-premium-dashboard
  .saas-gate-grid{
    grid-template-columns:1fr;
  }

  .saas-premium-dashboard
  .saas-client-summary-grid
  label:nth-child(3){
    grid-column:auto;
  }

}


/* =========================================================
   PREMIUM-DIRECTOR-002C
   KPI + historial + tablas
   Solo presentación
   ========================================================= */


/* KPI CONTRACTUALES */

.saas-premium-dashboard >
.metric-grid{
  display:grid;

  grid-template-columns:
    repeat(6,minmax(0,1fr));

  gap:12px;
}

.saas-premium-dashboard >
.metric-grid .metric{
  position:relative;

  min-height:108px;
  overflow:hidden;

  padding:17px 18px;

  border:1px solid #dde7ee;
  border-radius:15px;

  background:
    linear-gradient(
      150deg,
      #ffffff,
      #fafcfe
    );

  box-shadow:
    0 7px 20px
    rgba(20,54,81,.05);
}

.saas-premium-dashboard >
.metric-grid .metric::after{
  content:"";

  position:absolute;

  top:0;
  left:0;
  bottom:0;

  width:4px;

  background:#2781ae;
}

.saas-premium-dashboard >
.metric-grid .metric:nth-child(2)::after{
  background:#13a673;
}

.saas-premium-dashboard >
.metric-grid .metric:nth-child(3)::after{
  background:#13a69c;
}

.saas-premium-dashboard >
.metric-grid .metric:nth-child(4)::after{
  background:#3574b9;
}

.saas-premium-dashboard >
.metric-grid .metric:nth-child(5)::after{
  background:#8064b7;
}

.saas-premium-dashboard >
.metric-grid .metric:nth-child(6)::after{
  background:#d99a2b;
}

.saas-premium-dashboard >
.metric-grid .metric small{
  display:block;

  margin-bottom:5px;

  color:#708499;

  font-size:.67rem;
  font-weight:850;

  letter-spacing:.04em;
  text-transform:uppercase;
}

.saas-premium-dashboard >
.metric-grid .metric strong{
  display:block;

  margin-bottom:5px;

  color:#17324d;

  font-size:1.22rem;
  font-weight:900;

  letter-spacing:-.025em;
}

.saas-premium-dashboard >
.metric-grid .metric span{
  color:#74889a;

  font-size:.73rem;
  line-height:1.35;
}


/* TABLAS PREMIUM */

.saas-premium-dashboard
.table-wrap{
  overflow:auto;

  border:1px solid #e2ebf1;
  border-radius:13px;

  background:#fff;
}

.saas-premium-dashboard table{
  width:100%;

  border-collapse:separate;
  border-spacing:0;
}

.saas-premium-dashboard thead th{
  padding:11px 13px;

  border:0;

  color:#577086;
  background:#f2f7fa;

  font-size:.66rem;
  font-weight:900;

  letter-spacing:.055em;
  text-transform:uppercase;
}

.saas-premium-dashboard tbody td{
  padding:11px 13px;

  border-top:
    1px solid #edf2f5;

  color:#29445d;
  background:#fff;

  vertical-align:middle;
}

.saas-premium-dashboard
tbody tr:first-child td{
  border-top:0;
}

.saas-premium-dashboard
tbody tr:hover td{
  background:#f8fbfd;
}


/* FILA DE HISTORIAL */

.saas-premium-dashboard
tbody td:first-child{
  font-weight:750;
  color:#24445f;
}


/* ESTADOS DENTRO DE TABLAS */

.saas-premium-dashboard
.status{
  display:inline-flex;

  align-items:center;
  justify-content:center;

  min-height:25px;
  padding:5px 9px;

  border-radius:999px;

  font-size:.68rem;
  font-weight:850;
}

.saas-premium-dashboard
.status.success{
  border:1px solid #bfe8d9;

  color:#08785c;
  background:#eaf8f3;
}

.saas-premium-dashboard
.status.warning{
  border:1px solid #f0d7a8;

  color:#94620d;
  background:#fff7e7;
}


/* EMPRESAS Y MODULOS */

.saas-premium-dashboard >
.panel table td strong{
  color:#17324d;
}

.saas-premium-dashboard >
.panel .table-wrap + *{
  margin-top:12px;
}


/* NOTAS */

.saas-premium-dashboard
.evidence-note{
  padding:10px 12px;

  border:1px solid #dce8ee;
  border-radius:10px;

  color:#5f778b;
  background:#f5fafb;

  font-size:.75rem;
  line-height:1.45;
}


/* BOTONES EN ZONAS COMERCIALES */

.saas-premium-dashboard
button{
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    opacity .15s ease;
}

.saas-premium-dashboard
button:not(:disabled):hover{
  transform:translateY(-1px);
}

.saas-premium-dashboard
.download-button{
  border-radius:10px;
}


/* RESPONSIVE KPI */

@media(max-width:1200px){

  .saas-premium-dashboard >
  .metric-grid{
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

}

@media(max-width:760px){

  .saas-premium-dashboard >
  .metric-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

}

@media(max-width:520px){

  .saas-premium-dashboard >
  .metric-grid{
    grid-template-columns:1fr;
  }

  .saas-premium-dashboard
  .table-wrap{
    border-radius:11px;
  }

}


/* =========================================================
   PREMIUM-DIRECTOR-002D
   Acabado final + responsive
   Solo presentación
   ========================================================= */

.saas-premium-dashboard
input,
.saas-premium-dashboard
select,
.saas-premium-dashboard
textarea{
  border-color:#d7e3ec;
  border-radius:10px;
  background:#fff;
}

.saas-premium-dashboard
input:focus,
.saas-premium-dashboard
select:focus,
.saas-premium-dashboard
textarea:focus{
  outline:none;
  border-color:#3292ae;

  box-shadow:
    0 0 0 3px
    rgba(28,144,165,.10);
}

.saas-premium-dashboard
button{
  border-radius:10px;
}

.saas-premium-dashboard
.panel-body > form{
  padding:3px 0;
}

.saas-premium-dashboard
.check-row{
  border-radius:10px;
}

@media(max-width:760px){

  .saas-premium-dashboard{
    gap:14px;
  }

  .saas-premium-dashboard >
  .hero{
    min-height:0;
    padding:23px 20px;
    border-radius:18px;
  }

  .saas-premium-dashboard >
  .hero .hero-badge{
    width:100%;
    min-width:0;
  }

  .saas-premium-dashboard >
  .panel{
    border-radius:15px;
  }

  .saas-premium-dashboard >
  .panel > .panel-head,
  .saas-premium-dashboard >
  .panel > .panel-body{
    padding:15px;
  }

}

@media(max-width:520px){

  .saas-premium-dashboard >
  .hero h1{
    font-size:1.5rem;
  }

  .saas-premium-dashboard >
  .hero p{
    font-size:.78rem;
  }

}


/*
 * P12_PROFILE_VISUAL_SYSTEM_R2C1_CSS
 *
 * La identidad base de CAE RH Enterprise permanece intacta.
 *
 * El perfil activo modifica solo:
 * - selector Perfil activo
 * - indicador del usuario
 * - contexto del perfil
 * - peque?o acento del encabezado
 * - indicador de navegaci?n activa
 *
 * El sidebar, logo, fondos, tarjetas y arquitectura
 * visual general permanecen corporativos.
 */

:root{
  --cae-profile-accent:#247B9C;
  --cae-profile-deep:#165B78;
  --cae-profile-soft:rgba(36,123,156,.10);
  --cae-profile-border:rgba(36,123,156,.30);
  --cae-profile-glow:rgba(36,123,156,.17);
}


/* PERFIL ACTIVO */

html[data-cae-profile-family]
#activeProfileControl{
  position:relative;
  overflow:hidden;
  border-color:var(--cae-profile-border);
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      var(--cae-profile-soft) 100%
    );
  box-shadow:
    0 0 0 1px
    var(--cae-profile-glow);
  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}


html[data-cae-profile-family]
#activeProfileControl::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:
    var(--cae-profile-accent);
}


html[data-cae-profile-family]
#activeProfileSelector{
  border-color:
    var(--cae-profile-border);
}


html[data-cae-profile-family]
#activeProfileSelector:focus{
  border-color:
    var(--cae-profile-accent);
  box-shadow:
    0 0 0 3px
    var(--cae-profile-glow);
}


/* IDENTIDAD DEL USUARIO */

html[data-cae-profile-family]
.user-chip{
  position:relative;
  padding-left:18px;
}


html[data-cae-profile-family]
.user-chip::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:9px;
  height:9px;
  border-radius:999px;
  background:
    var(--cae-profile-accent);
  box-shadow:
    0 0 0 4px
    var(--cae-profile-soft);
  transform:
    translateY(-50%);
  transition:
    background .18s ease,
    box-shadow .18s ease;
}


html[data-cae-profile-family]
#userRole{
  color:
    var(--cae-profile-deep);
  font-weight:800;
}


.profile-visual-context{
  display:block;
  margin-top:2px;
  color:#708397;
  font-size:9px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.02em;
  white-space:nowrap;
}


/* CONTEXTO DEL ENCABEZADO */

html[data-cae-profile-family]
.page-context{
  padding-left:12px;
  box-shadow:
    inset 3px 0 0
    var(--cae-profile-accent);
  transition:
    box-shadow .18s ease;
}


html[data-cae-profile-family]
.topbar{
  box-shadow:
    inset 0 -2px 0
    var(--cae-profile-soft);
}


/*
 * SOLO EL INDICADOR DEL ITEM ACTIVO.
 * NO CAMBIA EL FONDO DEL SIDEBAR.
 */

html[data-cae-profile-family]
#portalNavigation
.nav-button.is-active{
  border-left-color:
    var(--cae-profile-accent) !important;
}


html[data-cae-profile-family]
#portalNavigation
.nav-button.active{
  border-left-color:
    var(--cae-profile-accent) !important;
}


@media(max-width:900px){

  .profile-visual-context{
    white-space:normal;
  }

  html[data-cae-profile-family]
  .page-context{
    padding-left:9px;
  }
}


/* P13_EXECUTIVE_PRESENTATION_R3_CSS — scoped to the executive summary, all companies. */
#portalContent .p13r3-executive {
  --p13-ink:#143653; --p13-muted:#53687c; --p13-blue:#225f94; --p13-teal:#108d94;
  display:grid; gap:18px; min-width:0; color:var(--p13-ink);
}
#portalContent .p13r3-executive * { box-sizing:border-box; }
#portalContent .p13r3-executive .hero { margin:0; min-height:98px; padding:20px 26px; }
#portalContent .p13r3-executive .hero h1 { margin:5px 0 7px; font-size:clamp(24px,2vw,30px); line-height:1.2; }
#portalContent .p13r3-executive .hero .eyebrow { margin:0; font-size:11px; }
#portalContent .p13r3-executive .hero p { margin:0; font-size:14px; line-height:1.5; }
#portalContent .p13r3-executive .hero-badge { padding:12px 16px; min-width:135px; }
#portalContent .p13r3-executive .hero-badge strong { font-size:19px; }
#portalContent .p13r3-executive .p13r2-filters { padding:18px 22px; border:1px solid #d9e6ee; border-radius:14px; background:#fff; }
#portalContent .p13r3-executive .p13r2-filter-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
#portalContent .p13r3-executive .p13r2-filter-controls label { display:grid; gap:7px; font-size:14px; font-weight:700; color:var(--p13-muted); }
#portalContent .p13r3-executive select { width:100%; min-width:0; min-height:43px; padding:9px 12px; border:1px solid #bdd3e0; border-radius:9px; font:inherit; font-size:15px; color:var(--p13-ink); background:#fff; cursor:pointer; }
#portalContent .p13r3-executive :is(select,button,summary):focus-visible { outline:3px solid #5aa9b3; outline-offset:3px; }
#portalContent .p13r3-executive select:disabled { color:#52677a; background:#f2f5f8; cursor:default; opacity:1; }
#portalContent .p13r3-executive .p13r2-note { margin:10px 0 0; font-size:13px; line-height:1.55; color:var(--p13-muted); }
#portalContent .p13r3-executive .p13r3-criteria { margin-top:8px; font-size:13px; color:var(--p13-muted); }
#portalContent .p13r3-executive .p13r3-criteria summary { cursor:pointer; color:var(--p13-blue); font-weight:650; }
#portalContent .p13r3-executive .p13r3-criteria p { margin:8px 0 0; line-height:1.5; }
#portalContent .p13r3-executive .p13r2-section-head { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:5px 16px; margin-bottom:10px; }
#portalContent .p13r3-executive .p13r2-section-head h2 { margin:0; font-size:18px; font-weight:750; }
#portalContent .p13r3-executive .p13r2-section-head p { margin:0; font-size:13px; line-height:1.5; color:var(--p13-muted); }
#portalContent .p13r3-executive .p13r2-period-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
#portalContent .p13r3-executive .p13r2-current-kpis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
#portalContent .p13r3-executive .p13r2-kpi { position:relative; display:flex; flex-direction:column; align-items:flex-start; min-width:0; min-height:153px; padding:18px 20px; border:1px solid #dce7ef; border-top:3px solid var(--p13-blue); border-radius:14px; background:#fff; box-shadow:0 5px 16px rgba(15,49,78,.035); }
#portalContent .p13r3-executive .p13r2-kpi.p13r2-teal { border-top-color:var(--p13-teal); }
#portalContent .p13r3-executive .p13r2-kpi.p13r2-neutral { border-top-color:#8396a7; background:#fcfdfe; }
#portalContent .p13r3-executive .p13r2-kpi.p13r2-attention { border-top-color:#b98219; background:#fffdf8; }
#portalContent .p13r3-executive .p13r2-kpi-label { color:var(--p13-muted); font-size:14px; font-weight:700; line-height:1.5; }
#portalContent .p13r3-executive .p13r2-kpi-value { display:block; margin:9px 0 7px; color:var(--p13-ink); font-size:clamp(26px,2.2vw,33px); font-weight:800; line-height:1.15; letter-spacing:-.025em; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
#portalContent .p13r3-executive .p13r2-kpi-value.p13r2-small-value { font-size:clamp(22px,1.8vw,27px); }
#portalContent .p13r3-executive .p13r3-kpi-secondary { font-size:17px; font-weight:700; color:var(--p13-blue); margin-bottom:8px; line-height:1.35; }
#portalContent .p13r3-executive .p13r2-kpi-detail { margin-top:auto; color:var(--p13-muted); font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
#portalContent .p13r3-executive .p13r2-comparison-detail { margin:-7px 0 0; padding:0 2px; font-size:13px; line-height:1.6; color:var(--p13-muted); }
#portalContent .p13r3-executive .p13r2-current { border-top:1px solid #d9e5ed; padding-top:15px; }
#portalContent .p13r3-executive .p13r2-current .p13r2-kpi { min-height:113px; padding:14px 18px; }
#portalContent .p13r3-executive .p13r2-current .p13r2-kpi-value { font-size:27px; margin:5px 0; }
#portalContent .p13r3-executive .p13r2-charts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:18px; }
#portalContent .p13r3-executive .p13r2-chart { min-width:0; padding:20px 22px; border:1px solid #dce7ee; border-radius:15px; background:#fff; box-shadow:0 5px 18px rgba(15,49,78,.035); }
#portalContent .p13r3-executive .p13r2-chart-head { margin-bottom:15px; }
#portalContent .p13r3-executive .p13r2-category { color:var(--p13-teal); font-size:11px; font-weight:800; letter-spacing:.06em; }
#portalContent .p13r3-executive .p13r2-chart-head h3 { margin:6px 0; color:var(--p13-ink); font-size:18px; line-height:1.35; }
#portalContent .p13r3-executive .p13r2-chart-head p { margin:0; color:var(--p13-muted); font-size:13px; line-height:1.5; }
#portalContent .p13r3-executive .p13r2-bars { display:grid; gap:13px; }
#portalContent .p13r3-executive .p13r2-bar-label { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:6px; font-size:14px; line-height:1.45; }
#portalContent .p13r3-executive .p13r2-bar-label span { overflow-wrap:anywhere; min-width:0; }
#portalContent .p13r3-executive .p13r2-bar-label strong { flex-shrink:0; color:var(--p13-ink); font-size:15px; font-weight:750; font-variant-numeric:tabular-nums; }
#portalContent .p13r3-executive .p13r2-bar-track { height:7px; border-radius:8px; background:#edf3f7; overflow:hidden; }
#portalContent .p13r3-executive .p13r2-bar-fill { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#24678f,#159c9f); }
#portalContent .p13r3-executive .p13r2-unclassified .p13r2-bar-fill { background:#8c9fae; }
#portalContent .p13r3-executive .p13r2-trend svg { display:block; width:100%; height:210px; max-height:210px; }
#portalContent .p13r3-executive .p13r2-grid-line { stroke:#e5edf3; stroke-width:1; }
#portalContent .p13r3-executive .p13r2-trend-line { fill:none; stroke:#168e96; stroke-width:3.5; stroke-linecap:round; stroke-linejoin:round; }
#portalContent .p13r3-executive .p13r2-trend-point { fill:#226697; stroke:#fff; stroke-width:2; }
#portalContent .p13r3-executive .p13r2-trend-label { fill:#536e83; font:15px Arial,sans-serif; }
#portalContent .p13r3-executive .p13r2-trend-values { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:10px; }
#portalContent .p13r3-executive .p13r2-trend[data-period-count='4'] .p13r2-trend-values,
#portalContent .p13r3-executive .p13r2-trend[data-period-count='2'] .p13r2-trend-values { grid-template-columns:repeat(2,minmax(0,1fr)); }
#portalContent .p13r3-executive .p13r2-trend[data-period-count='1'] .p13r2-trend-values { grid-template-columns:1fr; }
#portalContent .p13r3-executive .p13r2-trend-values > div { min-width:0; padding:9px 10px; border:1px solid #e3ebf1; border-radius:8px; background:#f7fafc; }
#portalContent .p13r3-executive .p13r2-trend-values span { display:block; color:var(--p13-muted); font-size:13px; margin-bottom:4px; }
#portalContent .p13r3-executive .p13r2-trend-values strong { color:var(--p13-ink); font-size:15px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
#portalContent .p13r3-executive .p13r2-quality { margin-top:14px; padding:11px 13px; border:1px solid #ead9af; border-left:3px solid #b98c29; border-radius:9px; background:#fffaf0; }
#portalContent .p13r3-executive .p13r2-quality strong { color:#77550f; font-size:13px; }
#portalContent .p13r3-executive .p13r2-quality p { margin:5px 0 0; color:#775f31; font-size:13px; line-height:1.5; }
#portalContent .p13r3-executive .p13r2-empty { margin:0; padding:15px; color:var(--p13-muted); font-size:14px; line-height:1.5; border-radius:9px; background:#f5f8fb; }
#portalContent .p13r3-executive .p13r2-footer-note { margin:0; font-size:13px; line-height:1.5; color:var(--p13-muted); }
#portalContent .p13r3-executive .p13r2-loading { display:flex; align-items:center; gap:16px; padding:26px; border:1px solid #d6e5ed; border-radius:14px; background:#f8fcfd; }
#portalContent .p13r3-executive .p13r2-loading strong { font-size:17px; }
#portalContent .p13r3-executive .p13r2-loading p { color:var(--p13-muted); font-size:14px; line-height:1.5; }
#portalContent .p13r3-executive .p13r2-loading-mark { display:block; flex:0 0 27px; height:27px; border:3px solid #d7e9ed; border-top-color:#15969d; border-radius:50%; animation:p13r3-spin .9s linear infinite; }
#portalContent .p13r3-executive .p13r2-error { padding:24px; border:1px solid #e5c9ce; border-radius:14px; background:#fffafa; }
#portalContent .p13r3-executive .p13r2-error h2 { margin-top:0; font-size:20px; }
#portalContent .p13r3-executive .p13r2-error p { font-size:14px; line-height:1.6; }
#portalContent .p13r3-executive .p13r2-retry { padding:12px 18px; border:0; border-radius:9px; color:#fff; background:#225f94; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
@keyframes p13r3-spin { to { transform:rotate(360deg); } }
@media (max-width:1120px) { #portalContent .p13r3-executive .p13r2-charts { grid-template-columns:1fr; } }
@media (max-width:760px) {
  #portalContent .p13r3-executive .p13r2-period-kpis { grid-template-columns:1fr; }
  #portalContent .p13r3-executive .p13r2-filter-controls { grid-template-columns:1fr; gap:12px; }
  #portalContent .p13r3-executive .p13r2-kpi { min-height:130px; }
  #portalContent .p13r3-executive .p13r2-kpi-value { font-size:30px; }
  #portalContent .p13r3-executive .p13r2-chart,
  #portalContent .p13r3-executive .p13r2-filters { padding:17px; }
  #portalContent .p13r3-executive .hero { padding:19px; }
  #portalContent .p13r3-executive .p13r2-trend-values { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:440px) {
  #portalContent .p13r3-executive .p13r2-current-kpis { grid-template-columns:1fr; }
  #portalContent .p13r3-executive .p13r2-bar-label { flex-wrap:wrap; gap:3px 10px; }
}
@media (prefers-reduced-motion:reduce) { #portalContent .p13r3-executive .p13r2-loading-mark { animation:none; } }
