:root {
  color-scheme: light;
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-muted: #F1F1EF;
  --tx: #17212F;
  --mut: #667085;
  --muted-light: #98A2B3;
  --bd: #E4E7EC;
  --bd-strong: #D0D5DD;
  --ac: #E95B25;
  --ac-ink: #B54708;
  --ac-hover: #D94D18;
  --ac-soft: #FFF4ED;
  --lk: #B54708;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .045);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .1);
  --radius: 12px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body, main, #app {
  background-color: var(--bg);
}

html.modal-open,
body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 20px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; border-radius: 6px; background: #182230; color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(255, 103, 35, .45);
  outline-offset: 2px;
}

header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--bd);
  background: var(--bg);
}

.site-header { position: sticky; background: #FFFFFF; }

.brand {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 12px;
}

.header-logo {
  display: block;
  width: min(380px, 42vw);
  height: 68px;
  padding: 0;
  background: #FFFFFF;
  box-shadow: none;
  filter: none;
  object-fit: contain;
}

.header-wordmark, .login-wordmark {
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.04em;
}

.header-wordmark small, .login-wordmark small {
  display: block;
  font-size: 10px;
  letter-spacing: .1em;
}

#who {
  display: flex;
  align-items: center;
  gap: 12px;
}

#who[hidden] { display: none; }

#who .mut {
  color: var(--ac);
  font-size: 14px;
  font-weight: 550;
}

main {
  width: min(100% - 48px, 1280px);
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 34px 0 60px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.035em; line-height: 1.18; }
h2 { margin-bottom: 4px; font-size: 18px; letter-spacing: -.015em; line-height: 1.35; }
h3 { margin-bottom: 8px; font-size: 15px; }
h1, h2, h3 { color: var(--tx); }
p { color: var(--mut); }

.eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--ac-ink);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.page-heading p, .section-head p, .ticket-panel-head p, .form-section-title p {
  margin: 0;
  color: var(--mut);
  font-size: 13px;
}

.btn-primary, .btn-secondary, button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--ac);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn-primary:hover, button:not(.sec):not(.lnk):not(.btn-secondary):not(.search-select-clear):not(.tabs button):hover {
  border-color: var(--ac-hover);
  box-shadow: 0 0 0 2px rgba(239, 91, 32, .18);
}

.btn-primary:active, button:active { transform: translateY(0); }
.btn-primary span { font-size: 17px; font-weight: 400; }
.btn-symbol { font-size: 18px; font-weight: 400; line-height: 1; }

.btn-secondary, button.sec {
  border-color: var(--bd-strong);
  background: var(--surface);
  color: var(--tx);
}

.btn-secondary:hover, button.sec:hover {
  border-color: var(--ac);
}

button.lnk {
  min-height: auto;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--lk);
  font-size: 12px;
}

.mut { color: var(--mut); font-size: 13px; }
.err { color: var(--ac); font-size: 12px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.metric {
  position: relative;
  min-height: 126px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-top > span:first-child { color: var(--mut); font-size: 12px; font-weight: 600; }
.metric strong { display: block; margin-top: 10px; font-size: 28px; letter-spacing: -.04em; line-height: 1; }
.metric small { display: block; margin-top: 8px; color: var(--mut); font-size: 11px; }
.metric-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: var(--surface-muted); color: var(--mut); font-size: 16px; }
.metric-indigo .metric-icon, .metric-amber .metric-icon, .metric-blue .metric-icon, .metric-green .metric-icon { background: var(--ac-soft); color: var(--ac-ink); }

.request-overview {
  margin-bottom: 16px;
  padding: 17px 20px 0;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.section-head, .ticket-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mut);
  font-size: 11px;
  white-space: nowrap;
}

.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); }

.ticket-panel-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 16px; }
.ticket-panel-meta { display: flex; align-items: center; gap: 14px; }
.ticket-panel .ticket-create-button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
}

.filter-panel {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 15px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.history-list {
  display: grid;
  gap: 14px;
}
.history-section {
  overflow: hidden;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: var(--surface);
}
.history-section-assign {
  border-color: #f4c998;
  background: linear-gradient(180deg, #fffaf4 0%, #fff 100%);
}
.history-section-retire {
  border-color: #e9d7c4;
  background: linear-gradient(180deg, #fffaf7 0%, #fff 100%);
}
.history-section-label {
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(23, 33, 47, .08);
  color: var(--ac-ink);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.history-strip-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.history-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 33, 47, .08);
  border-left: 4px solid #f39f4b;
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
}
.history-section-retire .history-strip {
  border-left-color: #d7b38b;
}
.history-section-assign .history-strip:nth-child(even),
.history-section-retire .history-strip:nth-child(even) {
  background: rgba(255, 255, 255, .96);
}
.history-strip-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.history-strip-label {
  color: var(--mut);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.history-strip strong {
  color: var(--tx);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}
.history-empty {
  padding: 22px 18px;
  border: 1px dashed var(--bd-strong);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--mut);
  font-size: 12px;
  text-align: center;
}

.search-wrap { flex: 1 1 260px; min-width: 180px; }
.filter-field { flex: 0 1 170px; min-width: 130px; }
.search-wrap label, .filter-field label, .field label, .reply-composer > label, .sidebar-card > label, .close-panel > label, .login-form-wrap > label {
  display: block;
  margin: 0 0 6px;
  color: var(--mut);
  font-size: 11px;
  font-weight: 650;
}

.search-field { position: relative; }
.search-field > span { position: absolute; top: 6px; left: 11px; color: var(--muted-light); font-size: 19px; line-height: 1; }
.search-field input { padding-left: 36px; }

input, select, textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--bd-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--tx);
  font: inherit;
  font-size: 13px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input::placeholder, textarea::placeholder { color: var(--muted-light); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(255, 103, 35, .35); outline-offset: 1px; border-color: var(--ac); }
textarea { min-height: 96px; resize: vertical; }
select:disabled { opacity: .65; cursor: not-allowed; }
.ticket-form-readonly { border-color: var(--bd); background: #f2f4f7; color: #667085; cursor: not-allowed; }
.btn-reset { min-height: 38px; padding: 7px 10px; border-color: transparent; background: transparent; color: var(--mut); font-size: 11px; white-space: nowrap; }
.btn-reset:hover { background: var(--surface-muted) !important; color: var(--tx); box-shadow: none !important; transform: none !important; }
.ticket-image-control { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 9px; }
.ticket-image-control > small { color: var(--mut); font-size: 10px; }
.ticket-image-upload { min-height: 32px; padding: 6px 10px; border-color: var(--bd-strong); background: var(--surface); color: var(--tx); font-size: 11px; font-weight: 600; }
.ticket-image-upload > span { margin-right: 5px; color: var(--ac); font-size: 15px; line-height: 1; }
.ticket-image-upload:hover { transform: none !important; border-color: var(--bd-strong) !important; background: var(--surface-muted) !important; color: var(--tx) !important; box-shadow: none !important; }
.ticket-image-upload:disabled { cursor: wait; opacity: .7; }
.ticket-image-preview { display: flex; align-items: center; gap: 9px; margin-top: 10px; min-width: 0; }
.ticket-image-preview img { width: 52px; height: 52px; flex: 0 0 auto; border: 1px solid var(--bd); border-radius: 6px; object-fit: cover; }
.ticket-image-preview > span { overflow: hidden; color: var(--mut); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-image-preview .btn-reset { min-height: 30px; margin-left: auto; }

.ticket-panel {
  overflow: hidden;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ticket-panel-head { min-height: 66px; padding: 14px 18px; }
.ticket-panel-head p { margin-top: 2px; font-size: 11px; }
.queue-note { padding: 5px 9px; border: 1px solid var(--bd); border-radius: 20px; background: var(--surface-muted); color: var(--tx); font-size: 10px; }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.ticket-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.ticket-table th { padding: 10px 14px; border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); background: var(--surface-muted); color: var(--tx); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.ticket-table td { padding: 12px 14px; border-bottom: 1px solid var(--bd); color: var(--tx); font-size: 12px; vertical-align: middle; white-space: nowrap; }
.ticket-table tr:last-child td { border-bottom: 0; }
.ticket-row { cursor: pointer; transition: background .14s ease; }
.ticket-row:hover { background: var(--surface-muted); }
.ticket-row:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--ac); outline-offset: -2px; }
.ticket-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 18px; color: var(--mut); font-size: 12px; }
.ticket-pagination button { min-height: 36px; }
.ticket-subject { display: grid; min-width: 225px; grid-template-columns: auto 1fr; align-items: baseline; gap: 3px 8px; }
.ticket-subject strong { overflow: hidden; color: var(--tx); font-size: 12px; font-weight: 650; text-overflow: ellipsis; }
.ticket-number { color: var(--ac-ink); font-size: 10px; font-weight: 750; letter-spacing: .02em; }
.ticket-subject > small { grid-column: 2; overflow: hidden; color: var(--mut); font-size: 10px; text-overflow: ellipsis; }
.ticket-subject .row-progress { grid-column: 2; margin-top: 5px; }
.requester-cell { display: flex; align-items: center; gap: 8px; }
.requester-cell > span:last-child, .profile-row > div { display: grid; gap: 2px; }
.requester-cell small, .activity-hint { display: block; color: var(--mut); font-size: 10px; }
.avatar { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--ac-soft); color: var(--ac); font-size: 11px; font-weight: 700; }
.avatar-large { width: 36px; height: 36px; font-size: 13px; }
.activity-date { font-size: 11px; }
.activity-hint { margin-top: 3px; }
.row-arrow { color: var(--muted-light); font-size: 20px; }

.badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
}

.status-abierto, .status-en-proceso, .status-en-aprobacion {
  border-color: var(--ac);
  background: var(--ac-soft);
  color: var(--ac);
}
.status-cerrado, .status-resuelto { border-color: var(--bd); background: var(--surface-muted); color: var(--tx); }
.priority-alta { border-color: #FDA29B; background: #FEE4E2; color: #B42318; }
.priority-media { border-color: #FEC84B; background: #FEF0C7; color: #93370D; }
.priority-baja { border-color: #6CE9A6; background: #D1FADF; color: #05603A; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.timeline { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.timeline-step { position: relative; display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: center; gap: 5px; color: var(--muted-light); font-size: 9px; text-align: center; }
.timeline-step:not(:last-child)::after { position: absolute; top: 9px; left: calc(50% + 13px); width: calc(100% - 22px); height: 1px; background: var(--bd-strong); content: ""; }
.timeline-dot { z-index: 1; display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid var(--bd-strong); border-radius: 50%; background: var(--surface); color: var(--mut); font-size: 9px; }
.timeline-step.complete { color: var(--ac-ink); }
.timeline-step.complete .timeline-dot { border-color: var(--ac); background: var(--ac-soft); color: var(--ac); }
.timeline-step.complete::after { background: var(--ac); }
.timeline-step.current { color: var(--ac-ink); font-weight: 700; }
.timeline-step.current .timeline-dot { border-color: var(--ac); background: var(--ac-soft); color: var(--ac-ink); }
.row-progress .timeline { max-width: 250px; }
.row-progress .timeline-step { flex-direction: row; justify-content: flex-start; font-size: 8px; white-space: nowrap; }
.row-progress .timeline-step:not(:last-child)::after { top: 9px; }
.empty-state { display: grid; min-height: 240px; justify-items: center; align-content: center; padding: 28px; text-align: center; }
.empty-icon { display: grid; width: 42px; height: 42px; margin-bottom: 12px; place-items: center; border-radius: 13px; background: var(--surface-muted); color: var(--mut); font-size: 20px; }
.empty-state strong { font-size: 14px; }
.empty-state p { max-width: 370px; margin: 5px 0 14px; font-size: 12px; }

.back-link { min-height: auto; margin: 0 0 18px; padding: 4px 0; border: 0; background: transparent; color: var(--mut); font-size: 12px; font-weight: 550; }
.back-link:hover { transform: none !important; background: transparent !important; color: var(--ac-ink); box-shadow: none !important; }
.detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.detail-title { display: flex; align-items: center; gap: 12px; }
.detail-title h1 { margin: 0; font-size: clamp(22px, 2vw, 27px); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--mut); font-size: 10px; }
.detail-meta .ticket-number { font-size: 11px; }
.detail-priority { padding-bottom: 2px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 18px; }
.detail-main, .detail-sidebar { display: grid; gap: 14px; }
.surface { border: 1px solid var(--bd); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.detail-description, .conversation-panel, .internal-panel, .close-panel, .sidebar-card { padding: 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin-top: 3px; font-size: 11px; }
.description-copy { margin: 16px 0 0; color: var(--tx); font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.ticket-attachments { display: grid; justify-items: start; gap: 9px; margin-top: 14px; }
.ticket-attachments > strong { color: var(--mut); font-size: 10px; font-weight: 650; }
.ticket-attachments img { max-width: 100%; max-height: 480px; border: 1px solid var(--bd); border-radius: 8px; object-fit: contain; }
.conversation-list { display: grid; gap: 15px; margin-top: 20px; }
.message-card { display: flex; align-items: flex-start; gap: 10px; }
.message-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid var(--bd); border-radius: 50%; background: var(--surface-muted); color: var(--mut); font-size: 11px; font-weight: 700; }
.message-agent .message-avatar { border-color: var(--ac); background: var(--ac-soft); color: var(--ac); }
.message-content { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--bd); border-radius: 0 8px 8px; background: var(--surface-muted); }
.message-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; }
.message-byline strong { font-size: 11px; }
.message-byline span { color: var(--mut); font-size: 9px; }
.message-content p { margin: 7px 0 0; color: var(--tx); font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.conversation-empty { padding: 17px; border: 1px dashed var(--bd-strong); border-radius: 7px; color: var(--mut); font-size: 11px; text-align: center; }
.message-count { color: var(--mut); font-size: 10px; white-space: nowrap; }
.reply-composer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--bd); }
.reply-composer textarea { min-height: 86px; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.internal-toggle { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--ac); font-size: 10px; }
.internal-toggle input { width: 14px; min-height: 14px; height: 14px; accent-color: var(--ac); }
.composer-hint { color: var(--mut); font-size: 10px; }
.internal-panel { border-color: var(--bd); background: var(--surface); }
.internal-panel .message-content { border-color: var(--bd); background: var(--surface-muted); }
.internal-panel .message-avatar { border-color: var(--bd); background: var(--surface-muted); color: var(--tx); }
.internal-label { padding: 4px 7px; border: 1px solid var(--ac); border-radius: 4px; color: var(--ac); font-size: 8px; font-weight: 750; letter-spacing: .08em; }
.close-panel .btn-secondary { margin-top: 12px; }
.close-panel .section-head { margin-bottom: 12px; }
.closed-notice { margin-top: 18px; padding: 11px 12px; border: 1px solid var(--bd); border-radius: 6px; background: var(--surface-muted); color: var(--tx); font-size: 11px; }
.report-read-only-notice { margin: -8px 0 18px; padding: 11px 14px; border: 1px solid var(--bd); border-left: 3px solid var(--ac); border-radius: 7px; background: var(--surface-muted); color: var(--tx); font-size: 12px; }
.sidebar-card { padding: 16px; }
.sidebar-card .section-head { margin-bottom: 16px; }
.sidebar-card .timeline { min-height: 54px; }
.sidebar-update { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bd); }
.sidebar-update span, .detail-facts > div > span { color: var(--mut); font-size: 10px; }
.sidebar-update strong { font-size: 11px; }
.sidebar-card > label { margin-top: 12px; }
.case-progress-card {
  border-color: #D8DEE8;
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFDFE 100%);
}
.case-progress-card .section-head { margin-bottom: 14px; }
.case-progress-card .section-head h2 { font-size: 15px; font-weight: 700; }
.case-progress-card .section-head p { color: #667085; font-size: 11px; }
.case-progress-card .timeline {
  min-height: 0;
  gap: 0;
  padding: 15px 9px 13px;
  border: 1px solid #E4EAF1;
  border-radius: 10px;
  background: #F8FAFC;
}
.case-progress-card .timeline-step {
  gap: 8px;
  color: #667085;
  font-size: 10px;
  font-weight: 550;
}
.case-progress-card .timeline-step:not(:last-child)::after {
  top: 13px;
  left: calc(50% + 15px);
  width: calc(100% - 30px);
  height: 2px;
  background: #CBD5E1;
}
.case-progress-card .timeline-dot {
  width: 28px;
  height: 28px;
  border: 2px solid #98A2B3;
  background: #FFFFFF;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}
.case-progress-card .timeline-step.complete { color: #166534; }
.case-progress-card .timeline-step.complete .timeline-dot {
  border-color: #16A34A;
  background: #DCFCE7;
  color: #166534;
}
.case-progress-card .timeline-step.complete::after { background: #16A34A; }
.case-progress-card .timeline-step.current { color: #9A3412; font-weight: 700; }
.case-progress-card .timeline-step.current .timeline-dot {
  border-color: #E95B25;
  background: #FFF4ED;
  color: #B54708;
  box-shadow: 0 0 0 3px rgba(233, 91, 37, .12);
}
.case-progress-card .sidebar-update {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #E4EAF1;
  border-radius: 8px;
  background: #FFFFFF;
}
.case-progress-card .sidebar-update span { color: #667085; font-size: 10px; }
.case-progress-card .sidebar-update strong { color: #344054; font-size: 11px; font-weight: 650; text-align: right; }
.profile-row { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--bd); }
.profile-row strong { font-size: 12px; }
.profile-row small { color: var(--mut); font-size: 10px; }
.detail-facts { display: grid; gap: 11px; padding-top: 13px; }
.detail-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-facts > div > strong { max-width: 165px; overflow: hidden; font-size: 10px; text-align: right; text-overflow: ellipsis; }

.form-heading { align-items: center; margin-bottom: 20px; }
.secure-note { color: var(--ac); font-size: 11px; white-space: nowrap; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
.form-main { display: grid; gap: 14px; }
.form-section { padding: 21px; }
.form-section-title { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 19px; }
.step-index { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: var(--ac-soft); color: var(--ac-ink); font-size: 10px; font-weight: 750; }
.form-section-title h2 { margin: 1px 0 3px; }
.form-section-title p { font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ticket-requester-profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.ticket-requester-profile-grid .field { min-width: 0; margin-bottom: 0; }
.ticket-requester-profile-grid input { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.field label { color: var(--ac); }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field-hint { margin-left: 5px; color: var(--muted-light); font-size: 9px; font-weight: 450; }
.field textarea { min-height: 140px; }
.form-aside { position: sticky; top: 88px; padding: 20px; }
.aside-icon { display: grid; width: 32px; height: 32px; margin-bottom: 13px; place-items: center; border-radius: 9px; background: var(--ac-soft); color: var(--ac-ink); }
.form-aside h3 { margin-bottom: 7px; }
.form-aside p { margin-bottom: 16px; font-size: 11px; line-height: 1.65; }
.aside-divider { height: 1px; margin: 15px 0; background: var(--bd); }
.aside-label { display: block; margin-bottom: 5px; color: var(--mut); font-size: 10px; }
.lk { color: var(--ac-ink); font-size: 11px; font-weight: 650; text-decoration: none; }
.lk:hover { text-decoration: underline; }
.form-error:empty { display: none; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.user-create { margin-bottom: 15px; padding: 20px; }
.user-create .form-section-title { margin-bottom: 14px; }
.user-create-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.user-create-grid .field { margin-bottom: 0; }
.user-create-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--bd); }
.user-create-footer .err:empty { display: none; }
.role-badge { display: inline-flex; padding: 4px 8px; border: 1px solid var(--bd); border-radius: 20px; background: var(--surface-muted); color: var(--mut); font-size: 9px; font-weight: 700; }
.role-superadmin { border-color: var(--bd); background: var(--surface-muted); color: var(--tx); }
.role-agente { border-color: var(--ac); background: var(--ac-soft); color: var(--ac); }
.danger-link { margin-left: 12px; color: var(--ac) !important; }
.user-list-panel .ticket-table { min-width: 760px; }
.user-list-panel .ticket-table td { padding-top: 13px; padding-bottom: 13px; }
.user-list-panel td.entity-actions { display: table-cell; vertical-align: middle; white-space: nowrap; }
.user-list-panel .entity-actions .lnk + .lnk { margin-left: 7px; }
.user-list-panel .entity-actions .lnk {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: transparent;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.user-list-panel .entity-actions .lnk:hover {
  transform: none;
  border-color: #c5cbd3;
  background: #f5f6f7;
  color: var(--tx);
  box-shadow: none;
}
.user-list-panel .entity-actions .lnk.danger-link { margin-left: 0; border-color: #ead2d2; color: #a12b2b !important; }
.user-list-panel .entity-actions .lnk.danger-link:hover {
  border-color: #e2a5a5;
  background: #fff5f5;
  color: #912018 !important;
}
.user-list-panel .entity-actions .lnk:focus-visible { outline: 2px solid #98a2b3; outline-offset: 2px; }

.tabs { display: flex; gap: 5px; margin-bottom: 14px; }
.tabs button { border-color: var(--bd); background: var(--surface); color: var(--mut); }
.tabs button.on { border-color: var(--ac); background: var(--ac-soft); color: var(--ac-ink); }
.wrap { overflow-x: auto; }
.card { margin-bottom: 14px; padding: 16px; border: 1px solid var(--bd); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.row > * { min-width: 140px; flex: 1; }
.row > button { flex: 0 0 auto; }
.cnt { font-size: 10px; opacity: .8; }
.msg { margin: 12px 0; padding: 4px 12px; border-left: 3px solid var(--bd); }
.msg.ag { border-color: var(--ac); }
.msg small { color: var(--mut); }
.msg.in { border-color: var(--ac); background: var(--surface-muted); }
.narrow { max-width: 440px; margin: 40px auto; }
.logo2 { display: block; width: 100%; margin-bottom: 14px; border-radius: var(--radius); }
.wa { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--bd); }
.wabtn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--bd); border-radius: 6px; color: var(--tx); font-weight: 500; text-decoration: none; }
.wabtn:hover { background: var(--surface-muted); }
.wabtn svg { width: 20px; height: 20px; fill: var(--ac); }
header button.sec { border-color: var(--bd); background: var(--surface); color: var(--tx); }

.login-layout { display: grid; width: min(100%, 430px); margin: clamp(28px, 8vh, 76px) auto 0; }
.login-form-panel { display: grid; align-items: center; padding: clamp(24px, 5vw, 40px); border: 1px solid var(--bd); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-md); }
.login-form-wrap { width: min(100%, 330px); margin: 0 auto; }
.login-identity { display: flex; min-height: 68px; align-items: center; justify-content: center; margin-bottom: 24px; }
.login-identity img { display: block; width: min(260px, 100%); max-height: 70px; object-fit: contain; }
.login-wordmark { color: var(--ac-ink); font-size: 28px; text-align: center; }
.login-wordmark small { font-size: 12px; }
.login-form-wrap h1 { margin-bottom: 20px; font-size: 22px; text-align: center; }
.login-form-wrap > label { margin-top: 15px; color: var(--ac); }
.login-hint { display: block; margin-top: 6px; color: #68717d; font-size: 12px; line-height: 1.45; }
.login-submit { width: 100%; margin-top: 16px; }
.login-submit span { margin-left: auto; }
.first-login-logout:hover { border-color: var(--bd-strong); background: var(--surface-muted); box-shadow: none; transform: none; }
body.first-login-password-required #site-header,
body.first-login-password-required .site-footer { display: none !important; }
.login-loading { overflow: hidden; }
.login-loading-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f7f9fc;
}
.login-loading-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 340px);
  justify-items: center;
  gap: 12px;
  padding: 30px 28px 28px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.login-loading-mark {
  position: relative;
  display: grid;
  width: 144px;
  height: 144px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 40px rgba(232,95,32,.12);
  perspective: 600px;
}
.login-loading-mark::before {
  position: absolute;
  inset: -10px;
  border: 3px solid #FCE1D4;
  border-top-color: var(--ac);
  border-right-color: var(--ac);
  border-radius: 50%;
  animation: spin .9s linear infinite;
  content: "";
}
.login-loading-mark img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  animation: login-logo-turn 2.4s cubic-bezier(.45,0,.55,1) infinite;
  backface-visibility: visible;
}
.login-loading-card > strong { color: var(--tx); font-size: 18px; font-weight: 700; }
.login-loading-card > span:last-child { color: var(--mut); font-size: 14px; line-height: 1.5; }
.login-loading-overlay { overflow: hidden; isolation: isolate; }
.login-loading-overlay {
  background-image:
    linear-gradient(rgba(248,249,251,.80), rgba(248,249,251,.80)),
    url('../assets/dashboard-header.png'),
    url('../assets/dashboard-header.png'),
    url('../assets/dashboard-header.png');
  background-size: cover, 950px auto, 650px auto, 1150px auto;
  background-position: center, right -230px top -45px, left -430px bottom 25px, right -130px bottom -220px;
  background-repeat: no-repeat;
}
.login-loading-overlay::before,
.login-loading-overlay::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 130vw;
  height: 65vh;
  border: 1px solid rgba(255, 145, 87, .28);
  border-radius: 50%;
  background: linear-gradient(165deg, #ffffff 6%, #fffaf7 30%, #f0f1f3 65%, #ffffff 90%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, .98),
    inset 0 14px 32px rgba(255, 174, 123, .13),
    0 -2px 8px rgba(255, 144, 81, .13),
    0 -18px 54px rgba(255, 151, 91, .08),
    0 22px 60px rgba(31, 43, 59, .09);
  content: '';
}
.login-loading-overlay { background-image: none; }
.login-depth-marks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.login-depth-marks span { position: absolute; display: block; font-family: Arial, sans-serif; font-weight: 900; line-height: .8; color: #f8f9fb; text-shadow: -2px -3px 4px rgba(255,255,255,.95), 2px 3px 3px rgba(177,185,197,.12), 6px 10px 20px rgba(73,85,105,.065); opacity: .45; user-select: none; }
.login-depth-marks span:nth-child(1) { font-size: 300px; right: 7%; top: 5%; transform: rotate(13deg); }
.login-depth-marks span:nth-child(2) { font-size: 220px; left: 5%; bottom: 10%; transform: rotate(-14deg); }
.login-depth-marks span:nth-child(3) { font-size: 130px; left: 23%; top: 9%; transform: rotate(18deg); opacity: .4; }
.login-depth-marks span:nth-child(4) { font-size: 180px; right: 22%; bottom: 3%; transform: rotate(-9deg); opacity: .45; }
.login-depth-marks span { width: 1em; height: 1em; overflow: visible; color: transparent; text-shadow: none; background: url('../assets/fom-plus-relief.svg') center / contain no-repeat; }
.login-depth-marks span:nth-child(1), .login-depth-marks span:nth-child(2) { opacity: .9; }
.login-depth-marks span:nth-child(3), .login-depth-marks span:nth-child(4) { opacity: .7; }
@media(max-width:600px){.login-depth-marks span:nth-child(1){right:-65px;top:3%;font-size:220px}.login-depth-marks span:nth-child(2){left:-45px;font-size:190px}.login-depth-marks span:nth-child(3){left:5%;font-size:100px}.login-depth-marks span:nth-child(4){right:0;font-size:130px}}
.login-loading-overlay::before {
  left: -55vw;
  top: -49vh;
  transform: rotate(-14deg);

}
.login-loading-overlay::after {
  right: -32vw;
  bottom: -48vh;
  transform: rotate(-12deg);
  background: linear-gradient(175deg, #ffffff 8%, #fff3ea 23%, #fafafa 44%, #eef0f3 72%, #ffffff 94%);

}
@keyframes login-mark-pulse { 50% { transform: scale(.88); } }
@keyframes login-logo-turn {
  0%, 12% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(180deg) scale(.92); }
  88%, 100% { transform: rotateY(360deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .login-loading-overlay, .login-loading-mark img, .login-loading-mark::before { animation: none; }
}

@media (max-width: 720px) {
  .history-strip { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .filter-panel { flex-wrap: wrap; }
  .search-wrap { flex-basis: calc(50% - 12px); }
  .filter-field { flex: 1 1 145px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 13px; }
  .form-layout { grid-template-columns: minmax(0, 1fr); }
  .user-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  header { align-items: stretch; flex-direction: column; gap: 8px; padding: 8px 16px; }
  #who { gap: 7px; }
  #who .mut { max-width: 115px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  #who button.sec { min-height: 32px; padding: 6px 9px; font-size: 11px; }
  main { width: min(100% - 32px, 1280px); padding-top: 25px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { min-height: 112px; padding: 14px; }
  .metric strong { font-size: 25px; }
  .detail-layout, .form-layout { grid-template-columns: 1fr; }
  .ticket-requester-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-sidebar .sidebar-card:first-child { grid-column: 1 / -1; }
  .form-aside { position: static; }
  .login-layout { margin-top: 22px; }
  .login-form-panel { padding: 28px 24px; }
  .login-form-wrap { margin: 0; }
  .table-scroll { margin-inline: -1px; }
}

@media (max-width: 520px) {
  header { align-items: stretch; flex-direction: column; justify-content: center; gap: 7px; padding: 8px 12px; }
  .brand { width: 100%; gap: 5px; }
  .header-logo { width: min(280px, 85vw); height: 50px; }
  .header-right { width: 100%; min-height: 0; justify-content: flex-end; }
  .header-slogan { min-height: 40px; justify-content: flex-end; padding: 7px 12px 7px 8px; font-size: 13px; text-align: right; }
  .header-right #who { min-height: 38px; padding: 2px 4px 0; }
  #who .mut { display: none; }
  main { width: calc(100% - 24px); padding: 21px 0 38px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 18px; }
  .page-heading > .btn-primary { width: 100%; }
  .page-heading p { max-width: 360px; }
  .metric-grid { gap: 8px; margin-bottom: 16px; }
  .metric { min-height: 105px; padding: 12px; }
  .metric-top > span:first-child { font-size: 10px; }
  .metric-icon { width: 26px; height: 26px; font-size: 13px; }
  .metric strong { margin-top: 8px; font-size: 23px; }
  .metric small { font-size: 9px; }
  .request-overview { padding: 14px 13px 0; }
  .ticket-panel-meta { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .filter-panel { align-items: stretch; gap: 10px; padding: 12px; }
  .search-wrap { flex-basis: 100%; }
  .filter-field { min-width: calc(50% - 6px); flex: 1 1 calc(50% - 6px); }
  .btn-reset { align-self: flex-end; }
  .ticket-panel-head { align-items: center; padding: 13px; }
  .ticket-panel-actions { flex-wrap: wrap; gap: 8px; }
  .ticket-panel-meta { gap: 6px; }
  .ticket-panel .ticket-create-button { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  .ticket-table th, .ticket-table td { padding: 10px; }
  .ticket-table th:first-child, .ticket-table td:first-child { padding-left: 12px; }
  .ticket-subject { min-width: 195px; }
  .detail-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .detail-title { align-items: flex-start; flex-direction: column; gap: 7px; }
  .detail-title h1 { font-size: 23px; }
  .detail-meta { gap: 6px 10px; font-size: 9px; }
  .detail-sidebar { grid-template-columns: 1fr; }
  .detail-sidebar .sidebar-card:first-child { grid-column: auto; }
  .detail-description, .conversation-panel, .internal-panel, .close-panel { padding: 14px; }
  .composer-footer { align-items: flex-end; }
  .composer-footer .btn-primary { padding: 8px 10px; font-size: 11px; }
  .form-heading { gap: 7px; }
  .secure-note { font-size: 10px; }
  .form-section { padding: 15px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .ticket-requester-profile-grid { grid-template-columns: 1fr; gap: 0; }
  .user-create-grid { grid-template-columns: 1fr; gap: 10px; }
  .form-actions > button { flex: 1; }
  .form-actions { width: 100%; }
  .form-actions button { min-width: 0; padding-inline: 9px; }
  .form-main, .form-section, .form-aside { min-width: 0; width: 100%; }
  .report-heading, .report-actions, .report-custom { min-width: 0; width: 100%; }
  .report-actions button, .report-custom button, .report-period-option button { width: 100%; }
  .format-document { align-items: flex-start; flex-wrap: wrap; }
  .format-document-main { flex-basis: calc(100% - 54px); }
  .format-document > button { margin-left: 54px; }
  .user-create, .ticket-panel, .surface { max-width: 100%; }
  .section-head { align-items: flex-start; }
  .live-indicator { font-size: 0; }
  .live-indicator i { width: 8px; height: 8px; }
}

@media (hover: hover) and (pointer: fine) {
  .metric:hover, .surface:hover, .ticket-panel:hover, .card:hover {
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

header {
  isolation: isolate;
  background: var(--bg);
}

.brand, .header-right, #who { position: relative; z-index: 1; }
.brand { gap: 12px; }
.header-wordmark { color: #000000; }
#who { gap: 10px; }
#who .mut { color: var(--tx); }
.header-right {
  display: flex;
  width: auto;
  min-width: 0;
  min-height: 0;
  align-self: center;
  align-items: center;
}
.header-slogan {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: flex-end;
  padding: 2px 0 2px 8px;
  border-left: 2px solid var(--ac);
  color: var(--ac);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}
.header-right #who {
  min-height: 42px;
  justify-content: flex-end;
  padding: 2px 8px 0;
}
.ticket-table th { color: var(--tx); }
main { padding-bottom: 35px; }
.site-footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px max(24px, calc((100vw - 1280px) / 2));
  border-top: 1px solid var(--bd);
  background: var(--bg);
  color: var(--mut);
  font-size: 11px;
}
.site-footer.login-footer { justify-content: flex-end; }
.site-footer .footer-support { margin: 0; color: var(--mut); font-size: 12px; }
.site-footer .footer-support a { font-weight: 600; }
.footer-brand-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-left: auto; }
.footer-terms-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #fff;
  color: #475467;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.footer-terms-button:hover { border-color: #ffb28f; background: #fff7f2; color: #d9470f; box-shadow: 0 4px 12px rgba(245, 91, 28, .09); }
.footer-terms-button:focus-visible { outline: 3px solid rgba(245, 91, 28, .2); outline-offset: 2px; }
.footer-logo {
  display: block;
  width: 116px;
  height: 68px;
  object-fit: contain;
}
.terms-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--tx);
  box-shadow: 0 28px 80px rgba(16, 24, 40, .24);
}
.terms-dialog::backdrop { background: rgba(15, 23, 42, .58); backdrop-filter: blur(4px); }
.terms-panel { display: flex; max-height: min(780px, calc(100vh - 32px)); flex-direction: column; overflow: hidden; border: 1px solid #eaecf0; border-radius: 18px; background: #fff; }
.terms-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 28px 21px; border-bottom: 1px solid #f1f2f4; background: linear-gradient(135deg, #fff 15%, #fff8f4 100%); }
.terms-heading .eyebrow { color: #d9470f; }
.terms-heading h2 { margin: 5px 0 4px; color: #101828; font-size: 24px; }
.terms-heading p { margin: 0; color: #667085; font-size: 13px; }
.terms-close { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid #e4e7ec; border-radius: 50%; background: #fff; color: #344054; font-size: 22px; cursor: pointer; }
.terms-close:hover { border-color: #ffb28f; color: #d9470f; }
.terms-content { display: grid; gap: 0; overflow-y: auto; padding: 8px 28px; }
.terms-content section { padding: 15px 0; border-bottom: 1px solid #f2f4f7; }
.terms-content section:last-child { border-bottom: 0; }
.terms-content h3 { margin: 0 0 6px; color: #1d2939; font-size: 14px; }
.terms-content p { margin: 0; color: #667085; font-size: 13px; line-height: 1.65; }
.terms-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 28px; border-top: 1px solid #eaecf0; background: #fcfcfd; }
.terms-footer span { color: #98a2b3; font-size: 11px; }
html.terms-open, body.terms-open { overflow: hidden; }

.notification-wrap { position: relative; }
.notification-button {
  position: relative;
  width: 38px;
  min-height: 38px;
  padding: 7px;
  border: 1px solid var(--bd);
  background: var(--surface);
  color: var(--tx);
  font-size: 18px;
}
.notification-button:hover { border-color: var(--ac); background: var(--ac-soft); color: var(--ac-ink); }
.notification-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.notification-button b {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 12px;
  background: var(--ac);
  color: #000000;
  font-size: 9px;
}
.notification-panel {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 24px));
  max-height: 360px;
  overflow: auto;
  padding: 13px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.notification-panel h2 { margin: 0 0 8px; }
.notification-panel > p { margin: 10px 0 4px; font-size: 12px; }
.notification-item {
  display: grid;
  width: 100%;
  justify-items: start;
  gap: 4px;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid var(--bd);
  background: var(--surface);
  color: var(--tx);
  text-align: left;
}
.notification-item.unread { border-color: var(--ac); background: var(--surface-muted); }
.notification-item strong { font-size: 11px; }
.notification-item span { color: var(--mut); font-size: 9px; }

#who { gap: 9px; }
.profile-wrap { position: relative; }
.profile-button.sec {
  min-height: 40px;
  gap: 8px;
  padding: 3px 8px 3px 4px;
  border-color: transparent;
  background: transparent;
  text-align: left;
}
.profile-button.sec:hover {
  border-color: var(--bd);
  background: var(--surface);
  box-shadow: none;
  transform: none;
}
.profile-avatar {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 103, 35, .28);
  border-radius: 50%;
  overflow: hidden;
  background: var(--ac-soft);
  color: var(--ac-ink);
  font-size: 12px;
  font-weight: 750;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-button-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}
.profile-button-copy strong {
  max-width: 190px;
  overflow: hidden;
  color: var(--tx);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-button-copy small {
  color: var(--ac);
  font-size: 9px;
  font-weight: 500;
}
.profile-chevron { color: var(--mut); font-size: 15px; }
.profile-dropdown {
  position: absolute;
  z-index: 1000;
  top: 100%;
  right: 0;
  margin-top: 6px;
  width: min(280px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.profile-dropdown-account {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 5px 12px;
  border-bottom: 1px solid var(--bd);
}
.profile-dropdown-account .profile-avatar { width: 40px; height: 40px; font-size: 13px; }
.profile-dropdown-account > div { display: grid; min-width: 0; gap: 2px; }
.profile-dropdown-account strong {
  overflow: hidden;
  color: var(--tx);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-dropdown-account small {
  overflow: hidden;
  color: var(--ac);
  font-size: 10px;
  text-overflow: ellipsis;
}
.profile-menu-action {
  display: flex;
  width: 100%;
  min-height: 40px;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 3px;
  padding: 8px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tx);
  font-size: 12px;
  font-weight: 600;
}
.profile-menu-action:hover {
  background: var(--surface-muted) !important;
  color: var(--ac-ink);
  box-shadow: none !important;
  transform: none !important;
}
.profile-menu-action span { display: grid; width: 20px; flex: 0 0 20px; place-items: center; color: var(--ac-ink); font-size: 16px; }
.entity-modal.profile-modal { width: min(100%, 920px); }
.entity-modal.user-profile-layout { display: flex; width: min(100%, 1080px); max-height: calc(100vh - 32px); flex-direction: column; }
.user-profile-layout > .modal-heading,
.user-profile-layout > .modal-footer { flex: 0 0 auto; }
.user-profile-layout { text-align: left; }
.user-profile-layout .modal-heading,
.user-profile-layout .modal-body,
.user-profile-layout .modal-footer { text-align: left; }
.user-profile-layout .modal-body { display: grid; min-width: 0; min-height: 0; max-height: none; flex: 1 1 auto; gap: 20px; padding: 26px 32px 30px; }
.user-profile-layout .profile-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "photo primary primary" "details details details"; align-items: start; gap: 10px 12px; }
.user-profile-layout .profile-detail.user-profile-field { margin: 0; gap: 4px; }
.user-profile-layout .profile-detail.user-profile-field > label { margin: 0; color: var(--mut); font-size: 12px; font-weight: 500; }
.user-profile-layout .profile-detail.user-profile-field input,
.user-profile-layout .profile-detail.user-profile-field select { width: 100%; min-width: 0; min-height: 28px; padding: 2px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; color: var(--tx); font-size: 14px; }
.user-profile-layout .profile-detail.user-profile-field input:focus,
.user-profile-layout .profile-detail.user-profile-field select:focus { border-bottom-color: var(--ac); outline: 2px solid rgba(233, 91, 37, .16); outline-offset: 1px; }
.user-profile-layout .profile-detail.user-profile-field input:disabled { color: var(--tx); opacity: 1; }
.user-profile-layout .profile-detail.user-profile-field .equipment-choice-control { width: 100%; }
.user-profile-layout .profile-detail.user-profile-field .equipment-choice-trigger { min-height: 28px; padding: 2px 4px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--tx); font-size: 14px; }
.user-profile-layout .profile-detail.user-profile-field > small { color: var(--mut); font-size: 10px; line-height: 1.25; }
.user-profile-hero { position: relative; display: flex; min-width: 0; min-height: 154px; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; padding: 24px 26px; border: 1px solid #ffd7c2; border-radius: 14px; background-color: #fffaf7; background-image: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.91) 42%, rgba(255,250,247,.62) 70%, rgba(255,255,255,.22) 100%), url("../assets/dashboard-header.png"); background-position: center, center; background-size: cover, cover; background-repeat: no-repeat; box-shadow: 0 12px 30px rgba(105,45,11,.08); }
.user-profile-identity { display: flex; min-width: 0; align-items: center; gap: 18px; }
.user-profile-identity .profile-avatar-large { width: 92px; height: 92px; border: 3px solid rgba(255,255,255,.95); background: #f45b1f; box-shadow: 0 7px 20px rgba(145,54,14,.22); color: #fff; font-size: 28px; }
.user-profile-identity-copy { display: grid; min-width: 0; gap: 5px; }
.user-profile-identity-copy h3 { margin: 0; color: #182230; font-size: 23px; font-weight: 760; letter-spacing: -.025em; line-height: 1.2; text-shadow: 0 1px 0 rgba(255,255,255,.8); overflow-wrap: anywhere; }
.user-profile-identity-copy p { margin: 0; color: #344054; font-size: 13px; font-weight: 560; line-height: 1.45; }
.user-profile-identity-copy > small { color: #5d6675; font-size: 11px; font-weight: 520; overflow-wrap: anywhere; }
.user-profile-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 2px; }
.user-profile-role { display: inline-flex; min-height: 22px; align-items: center; padding: 3px 8px; border: 1px solid #ffc3a3; border-radius: 999px; background: rgba(255,255,255,.92); color: #a63a0a; font-size: 10px; font-weight: 700; }
.user-profile-summary { display: grid; min-width: 276px; grid-template-columns: repeat(3, minmax(78px, 1fr)); gap: 8px; }
.user-profile-summary article { display: grid; justify-items: start; gap: 5px; padding: 12px; border: 1px solid rgba(255,190,153,.72); border-radius: 10px; background: rgba(255,255,255,.91); box-shadow: 0 6px 16px rgba(70,31,9,.08); backdrop-filter: blur(5px); text-align: left; }
.user-profile-summary span { color: var(--mut); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.user-profile-summary strong { color: #b93808; font-size: 22px; font-weight: 760; font-variant-numeric: tabular-nums; }
.user-profile-sections { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.user-profile-section { min-width: 0; padding: 17px; border: 1px solid #e4e7ec; border-radius: 11px; background: #fff; }
.user-profile-section-heading { position: static; z-index: auto; display: grid; width: 100%; min-height: 0; align-items: start; justify-content: start; justify-items: start; gap: 4px; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid #eef0f3; background: transparent; text-align: left; }
.user-profile-section-heading > div { width: 100%; min-width: 0; margin: 0; text-align: left; }
.user-profile-section-heading h3 { margin: 2px 0 0; color: var(--tx); font-size: 15px; font-weight: 700; }
.user-profile-section-heading p { max-width: none; margin: 0; color: var(--mut); font-size: 10px; line-height: 1.45; text-align: left; }
.user-profile-section .profile-primary-details,
.user-profile-section .profile-details-grid { grid-area: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 9px; }
.user-profile-section .profile-detail { min-height: 72px; background: #fbfcfd; }
.user-profile-section .profile-detail,
.user-profile-section .profile-detail label,
.user-profile-section .profile-detail input,
.user-profile-section .profile-detail select,
.user-profile-section .equipment-choice-trigger { text-align: left; }
.user-profile-license-list,
.user-profile-asset-list { display: grid; gap: 8px; }
.user-profile-license-card { display: grid; gap: 5px; padding: 11px 12px; border: 1px solid #e9edf2; border-radius: 8px; background: #fbfcfd; }
.user-profile-license-card > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.user-profile-license-card strong { min-width: 0; color: var(--tx); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.user-profile-license-card p { margin: 0; color: var(--mut); font-size: 10px; }
.user-profile-license-card small { color: #667085; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.user-profile-asset-card { display: grid; min-width: 0; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 11px 12px; border: 1px solid #e9edf2; border-radius: 8px; background: #fbfcfd; }
.user-profile-asset-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: #f2f4f7; color: #667085; }
.user-profile-asset-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.user-profile-asset-card > div:last-child { display: grid; min-width: 0; gap: 3px; }
.user-profile-asset-card strong { color: var(--tx); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.user-profile-asset-card span { color: #475467; font-size: 11px; overflow-wrap: anywhere; }
.user-profile-asset-card small { color: var(--mut); font-size: 10px; overflow-wrap: anywhere; }
.user-profile-empty { margin: 0; padding: 18px 12px; border: 1px dashed #d0d5dd; border-radius: 8px; background: #fafbfc; color: var(--mut); font-size: 11px; text-align: center; }
@media (max-width: 820px) {
  .user-profile-hero { align-items: stretch; flex-direction: column; }
  .user-profile-summary { width: 100%; min-width: 0; }
  .user-profile-sections { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .user-profile-hero { padding: 16px; }
  .user-profile-identity { align-items: flex-start; flex-direction: column; }
  .user-profile-identity .profile-avatar-large { width: 76px; height: 76px; font-size: 23px; }
  .user-profile-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .user-profile-summary article { padding: 10px 6px; }
  .user-profile-summary strong { font-size: 19px; }
  .user-profile-section { padding: 14px; }
  .user-profile-section-heading { gap: 5px; }
  .user-profile-section .profile-primary-details,
  .user-profile-section .profile-details-grid { grid-template-columns: minmax(0, 1fr); }
}
.profile-modal .modal-body { display: grid; min-width: 0; gap: 20px; }
.profile-overview { display: grid; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "photo primary primary" "details details details"; align-items: start; gap: 10px 12px; }
.profile-photo-panel { display: grid; min-width: 0; grid-area: photo; justify-items: center; align-content: center; gap: 5px; padding: 0 12px; }
.profile-photo-editor { position: relative; display: grid; width: max-content; justify-items: center; }
.profile-avatar-large { width: 132px; height: 132px; font-size: 38px; }
.profile-photo-controls { display: grid; min-width: 0; justify-items: center; gap: 6px; }
.profile-upload-button { position: absolute; right: -9px; bottom: 4px; display: inline-flex; width: 28px; min-height: 28px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--bd); border-radius: 50%; background: #fff; color: var(--mut); cursor: pointer; font-size: 0; font-weight: 600; }
.profile-upload-button:hover { border-color: var(--bd-strong); background: var(--surface-muted); color: var(--tx); }
.profile-upload-button:focus-visible { outline: 2px solid var(--ac-ink); outline-offset: 2px; }
.profile-upload-button span { font-size: 14px; line-height: 1; }
.profile-photo-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.profile-photo-controls small { color: var(--mut); font-size: 12px; line-height: 1; }
.profile-remove-photo { justify-self: start; min-height: 30px; padding: 4px 0; border: 0; background: transparent; color: #475467; font-size: 12px; }
.profile-remove-photo:hover { color: var(--ac-ink); background: transparent !important; box-shadow: none !important; transform: none !important; }
.profile-readonly-photo { position: static; }
.profile-primary-details { display: grid; min-width: 0; grid-area: primary; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 10px; }
.profile-details-grid { display: grid; min-width: 0; grid-area: details; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profile-detail { display: grid; min-width: 0; min-height: 66px; gap: 4px; align-content: center; padding: 10px 12px; border: 1px solid var(--bd); border-radius: 9px; background: #fff; }
.profile-detail span, .profile-equipment-card small { color: var(--mut); font-size: 12px; }
.profile-detail strong { overflow-wrap: anywhere; color: var(--tx); font-size: 14px; font-weight: 600; }
.profile-detail-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.profile-inline-action { display: grid; width: 25px; min-width: 25px; height: 25px; min-height: 25px; flex: 0 0 25px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--mut); font-size: 16px; line-height: 1; }
.profile-inline-action:hover { border-color: var(--bd); background: var(--surface-muted); color: var(--tx); box-shadow: none; transform: none; }
.profile-inline-action.profile-inline-save { border-color: #b7dfc4; background: #ecfdf3; color: #027a48; }
.profile-inline-action.profile-inline-save:hover { border-color: #75c99a; background: #d1fadf; color: #05603a; }
.profile-detail-editable input { width: 100%; min-width: 0; min-height: 28px; padding: 3px 7px; border: 1px solid var(--bd-strong); border-radius: 6px; background: #fff; color: var(--tx); font-size: 14px; }
.profile-detail-editable input:focus { border-color: var(--ac); outline: 2px solid rgba(233, 91, 37, .16); }
.profile-inline-error { color: #b42318; font-size: 11px; line-height: 1.35; }
.profile-phone-field { display: grid; min-width: 0; min-height: 66px; align-content: center; gap: 4px; padding: 10px 12px; border: 1px solid var(--bd); border-radius: 9px; background: #fff; }
.profile-phone-field label { color: var(--mut); font-size: 12px; }
.profile-phone-field input { width: 100%; min-height: 26px; padding: 2px 0; border: 0; background: transparent; font-size: 14px; }
.profile-assigned-equipment h3 { margin: 0 0 11px; font-size: 16px; }
.profile-equipment-list { display: grid; gap: 8px; }
.profile-equipment-card { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid var(--bd); border-radius: 9px; background: var(--surface-muted); }
.profile-equipment-card > strong { color: var(--tx); font-size: 14px; }
.profile-equipment-card > span { color: var(--tx); font-size: 13px; }
.profile-modal-status { margin: 0; color: var(--mut); }
.profile-modal .modal-footer { justify-content: flex-end; }
.profile-modal .modal-footer .button-row { margin-left: 0; }
.profile-modal-backdrop { z-index: 1100; }
.password-reset-backdrop { z-index: 1200; }
.entity-modal.password-reset-modal { width: min(100%, 520px); }
.password-reset-modal .modal-body { display: grid; gap: 14px; }
.password-reset-modal .modal-body > p { margin: 0; color: var(--mut); }
.password-reset-modal .password-reset-fields { display: grid; gap: 12px; }
.password-reset-modal .password-reset-fields .field { margin: 0; }
.password-reset-identity { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--bd); border-radius: 8px; background: var(--surface-muted); }
.password-reset-identity dl { display: grid; gap: 7px; margin: 0; }
.password-reset-identity dl div { display: grid; grid-template-columns: minmax(88px, .35fr) 1fr; gap: 10px; }
.password-reset-identity dt { color: var(--mut); font-size: 12px; }
.password-reset-identity dd { margin: 0; color: var(--tx); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.password-reset-identity-confirm { display: flex; align-items: flex-start; gap: 8px; color: var(--tx); font-size: 13px; line-height: 1.4; }
.password-reset-identity-confirm input { width: auto; min-height: 0; margin-top: 2px; }
.password-reset-modal .password-reset-error { color: #b42318; font-size: 13px; }
.password-reset-modal .password-reset-success { color: #027a48 !important; font-weight: 600; }
.password-reset-modal .modal-footer .button-row { gap: 10px; }

#app .report-panel { margin-bottom: 16px; padding: 10px 12px; }
.report-heading p { margin: 3px 0 0; font-size: 11px; }
.ticket-summary {
  margin-bottom: 14px;
  padding: 15px 18px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.ticket-summary > h2 { margin: 0 0 12px; font-size: 13px; font-weight: 650; }
.ticket-summary-groups { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.ticket-summary-group { min-width: 0; }
.ticket-summary-group + .ticket-summary-group { padding-left: 18px; border-left: 1px solid var(--bd); }
.ticket-summary-group-title { display: block; margin-bottom: 7px; color: var(--mut); font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.ticket-summary-items { display: grid; gap: 7px; }
.ticket-summary-status { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ticket-summary-priority { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ticket-summary-item {
  display: flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  background: var(--surface);
}
.ticket-summary-label { display: inline-flex; min-width: 0; align-items: center; gap: 4px; color: var(--mut); font-size: 10px; font-weight: 550; line-height: 1.2; white-space: nowrap; }
.ticket-summary-item > strong { flex: 0 0 auto; color: var(--tx); font-size: 14px; font-weight: 700; line-height: 1; }
.ticket-summary-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; }
.ticket-summary-dot-total { background: #667085; }
.ticket-summary-dot-unassigned { background: #f79009; }
.ticket-summary-dot-progress { background: #2e90fa; }
.ticket-summary-dot-closed { background: #12b76a; }
.priority-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #98a2b3; }
.priority-dot-alta { background: #d92d20; }
.priority-dot-media { background: #f79009; }
.priority-dot-baja { background: #98a2b3; }
.report-panel { display: grid; gap: 6px; }
.report-heading, .report-actions, .report-custom { display: flex; align-items: center; justify-content: space-between; gap: 11px; }
.report-heading > div { min-width: 0; flex: 1 1 300px; }
.report-download { max-width: 100%; flex: 0 0 auto; white-space: nowrap; }
.report-panel .report-download { min-height: 36px; padding-block: 7px; }
.report-download span { display: inline-grid; min-width: 22px; height: 20px; margin-left: 5px; place-items: center; border-radius: 10px; background: rgba(255,255,255,.2); font-size: 10px; }
#app .report-panel .filter-panel.report-filters {
  grid-template-columns: repeat(2, minmax(0, 170px)) minmax(0, 1fr);
  gap: 8px 10px;
  width: calc(100% + 26px);
  margin: 0 -13px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#app .report-panel .report-filters .filter-choice-trigger {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
}
.report-panel .report-filters .filter-field label { margin-bottom: 3px; }
.report-panel .report-filters .btn-reset { min-height: 34px; }
.report-filters .filter-field { min-width: 0; }
.report-filters .btn-reset { grid-column: 3; justify-self: end; }
.report-custom { justify-content: flex-start; flex-wrap: wrap; padding-top: 13px; border-top: 1px solid var(--bd); }
.report-custom > strong { margin-right: auto; font-size: 12px; }
.report-date { width: 148px; }
.report-date label { display: block; margin-bottom: 4px; color: var(--mut); font-size: 10px; font-weight: 600; }
.report-date input { min-height: 36px; }
.report-date-picker {
  position: relative;
  z-index: 1;
  width: 176px;
}
.report-period-option .report-date-picker input[type="date"][hidden] { display: none; }
.report-date-picker:focus-within { z-index: 5; }
.report-date-picker .report-date-label {
  display: block;
  margin-bottom: 3px;
  color: #344054;
  font-size: 11px;
  font-weight: 600;
}
.report-date-picker .report-date-trigger {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--bd-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--tx);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
#app .report-panel .report-date-picker .report-date-trigger:hover,
#app .report-panel .report-date-picker .report-date-trigger:focus-visible,
#app .report-panel .report-date-picker .report-date-trigger:active,
#app .report-panel .report-date-picker .report-date-trigger[aria-expanded="true"] {
  transform: none;
  border-color: var(--ac);
  background: #fafafa;
  color: var(--tx);
  box-shadow: none;
}
.report-date-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-date-icon { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: var(--ac-ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.report-calendar {
  position: absolute;
  z-index: 160;
  top: calc(100% + 7px);
  left: 0;
  width: 304px;
  padding: 14px;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(16, 24, 40, .16);
}
.report-calendar[hidden] { display: none; }
.report-calendar-heading {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.report-calendar-heading > strong { color: var(--tx); font-size: 14px; font-weight: 650; text-align: center; }
#app .report-calendar .report-calendar-nav {
  display: grid;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--bd);
  border-radius: 7px;
  background: #fff;
  color: #475467;
  font-size: 20px;
  line-height: 1;
}
#app .report-calendar .report-calendar-nav:hover,
#app .report-calendar .report-calendar-nav:focus-visible {
  transform: none;
  border-color: var(--bd-strong);
  background: #f5f6f7;
  color: var(--tx);
  box-shadow: none;
}
.report-calendar-weekdays,
.report-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.report-calendar-weekdays { margin-bottom: 4px; }
.report-calendar-weekdays > span {
  display: grid;
  min-height: 28px;
  place-items: center;
  color: var(--mut);
  font-size: 11px;
  font-weight: 650;
}
#app .report-calendar .report-calendar-day {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
#app .report-calendar .report-calendar-day:hover,
#app .report-calendar .report-calendar-day:focus-visible {
  transform: none;
  border-color: var(--bd);
  background: #f5f6f7;
  color: var(--tx);
  box-shadow: none;
}
#app .report-calendar .report-calendar-day.is-outside-month { color: #98a2b3; }
#app .report-calendar .report-calendar-day.is-today:not(.is-selected) {
  border-color: rgba(233, 91, 37, .45);
  color: var(--ac-ink);
  font-weight: 650;
}
#app .report-calendar .report-calendar-day.is-selected,
#app .report-calendar .report-calendar-day.is-selected:hover,
#app .report-calendar .report-calendar-day.is-selected:focus-visible {
  border-color: var(--ac);
  background: var(--ac-soft);
  color: var(--ac-ink);
  font-weight: 700;
}
.report-month-fields { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(92px, .7fr); gap: 6px; }
.report-month-fields .report-date { width: auto; }
.report-month-fields .report-date > span { display: block; margin-bottom: 4px; color: var(--mut); font-size: 10px; font-weight: 600; }
#app .report-panel .report-choice-control { width: 100%; }
#app .report-panel .report-month-fields .report-choice-trigger {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
}
#app .report-panel .report-choice-trigger:hover,
#app .report-panel .report-choice-trigger:focus-visible,
#app .report-panel .report-choice-trigger[aria-expanded="true"] {
  transform: none;
  border-color: var(--ac);
  background: #fafafa;
  color: var(--tx);
  box-shadow: none;
}
#app .report-panel:focus-within {
  position: relative;
  z-index: 2;
}
.report-period-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 14px; }
.report-period-option { display: flex; min-width: 0; align-items: end; flex-wrap: wrap; gap: 5px; }
.report-period-option > strong { flex: 0 0 100%; color: var(--mut); font-size: 10px; font-weight: 650; letter-spacing: .045em; text-transform: uppercase; }
.report-period-option .report-date { margin: 0; }
.report-period-option .report-date-picker { width: auto; min-width: 0; flex: 1 1 0; }
.report-period-option .report-date input { display: block; width: 100%; margin-top: 4px; }
.report-period-option .btn-primary, .report-period-option .btn-secondary { min-height: 36px; padding: 7px 10px; font-size: 11px; }
.report-panel .err:empty { display: none; }

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(0,0,0,.45);
  border-top-color: var(--ac);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
button:disabled { cursor: wait; opacity: .8; }

@media (max-width: 720px) {
  header { gap: 12px; }
  .header-logo { width: min(320px, 44vw); height: 58px; }
  .header-right { width: 100%; min-height: 0; }
  .site-footer { align-items: center; flex-direction: row; padding: 12px 16px; }
  .footer-support { margin-right: auto; }
  .footer-brand-actions { gap: 8px; }
  .footer-logo { margin-left: 0; }
  .footer-terms-button { max-width: 112px; padding: 6px 8px; line-height: 1.25; }
  .terms-heading { padding: 20px; }
  .terms-content { padding: 6px 20px; }
  .terms-footer { align-items: stretch; flex-direction: column; padding: 16px 20px; }
  .terms-footer .btn-primary { width: 100%; }
  .report-heading { align-items: flex-start; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; }
  .report-heading > div { flex: 0 1 auto; }
  .report-actions { width: 100%; }
}

@media (max-width: 520px) {
  header { align-items: stretch; flex-direction: column; justify-content: center; gap: 7px; padding: 8px 11px; }
  .brand { width: 100%; gap: 5px; }
  .header-logo { width: min(280px, 85vw); height: 50px; }
  .header-right { display: flex; width: 100%; min-height: 0; justify-content: flex-end; }
  .header-slogan { width: auto; min-height: 32px; justify-content: flex-end; padding: 2px 0 2px 8px; font-size: 13px; text-align: right; }
  .header-right #who { min-height: 38px; gap: 4px; justify-content: flex-end; margin-left: auto; padding: 2px 4px 0; }
  .notification-button { width: 31px; min-height: 31px; padding: 4px; font-size: 15px; }
  .profile-button.sec { min-height: 34px; gap: 5px; padding: 2px 4px 2px 2px; }
  .profile-avatar { width: 29px; height: 29px; font-size: 10px; }
  .profile-button-copy strong { max-width: 96px; font-size: 9px; }
  .profile-button-copy small { font-size: 8px; }
  .profile-chevron { font-size: 12px; }
  .profile-dropdown { width: min(280px, calc(100vw - 24px)); }
  .report-actions { align-items: stretch; flex-direction: column; }
  .report-custom { align-items: stretch; flex-direction: column; }
  .report-custom > strong, .report-date { width: 100%; }
  .report-custom > strong { margin: 0; }
}

@media (min-width: 981px) {
  body { font-size: 16px; }
  header { min-height: 96px; }
  .header-logo { width: min(380px, 42vw); height: 68px; }
  .header-right { width: auto; min-height: 82px; flex: 0 0 auto; justify-content: flex-end; }
  .header-slogan { width: auto; min-height: 40px; padding-left: 10px; font-size: 13px; }
  .header-right #who { min-height: 42px; }
  main { padding-top: 42px; }
  h1, .detail-title h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  .btn-primary, .btn-secondary, button { min-height: 44px; padding: 10px 17px; font-size: 15px; }
  input, select, textarea { min-height: 44px; padding: 10px 12px; font-size: 15px; }
  .metric { min-height: 140px; padding: 20px 22px; }
  .metric-top > span:first-child { font-size: 14px; }
  .metric strong { font-size: 32px; }
  .metric small { font-size: 13px; }
  .request-overview { padding: 20px 24px 0; }
  .filter-panel { gap: 14px; padding: 19px; }
  .ticket-panel-head { min-height: 76px; padding: 18px 22px; }
  .ticket-table th { padding: 12px 16px; font-size: 11px; }
  .ticket-table td { padding: 14px 16px; font-size: 14px; }
  .ticket-subject strong { font-size: 14px; }
  .surface, .card { padding: 22px; }
  .form-section { padding: 26px; }
  .detail-description, .conversation-panel, .internal-panel, .close-panel, .sidebar-card { padding: 22px; }
}

.conversation-list {
  max-height: min(62vh, 540px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.message-own { justify-content: flex-end; }
.message-own .message-content {
  flex: 0 1 auto;
  max-width: min(84%, 640px);
  overflow-wrap: anywhere;
  border-color: var(--ac);
  border-radius: 8px 0 8px 8px;
  background: var(--ac);
  color: #fff;
}
.message-own .message-content p,
.message-own .message-content strong,
.message-own .message-content .message-byline span { color: #fff; }
.app-toast {
  position: fixed;
  z-index: 2000;
  top: 16px;
  right: 16px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--ac);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--tx);
  box-shadow: var(--shadow-md);
}
.toastify.ticket-toast {
  position: fixed;
  z-index: 2000;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--ac);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--tx);
  box-shadow: var(--shadow-md);
}
.ticket-toast .toast-close { color: var(--tx); }
@media (max-width: 600px) {
  .conversation-list { max-height: 55vh; }
  .message-own .message-content { max-width: 88%; }
}

.site-header.authenticated {
  min-height: 76px;
  padding: 6px clamp(18px, 3vw, 42px);
  background: #fff;
}
.site-header.authenticated .header-logo { width: min(320px, 36vw); height: 58px; }
.site-header.authenticated .header-wordmark { color: var(--tx); }
.site-header.authenticated .header-slogan { display: none; }
.site-header.authenticated .header-right {
  width: auto;
  min-height: 0;
  grid-template-rows: auto;
}
.site-header.authenticated .header-right #who { min-height: 44px; padding: 0; }
.site-header.authenticated .brand { flex: 0 0 auto; }

.site-header.admin-authenticated + main {
  display: grid;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 138px);
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin: 0;
  padding: 20px 18px 48px 10px;
}
.app-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  display: flex;
  height: calc(100vh - 126px);
  min-height: calc(100vh - 128px);
  max-height: calc(100vh - 126px);
  flex-direction: column;
  padding: 12px 8px;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: var(--surface);
  overflow-y: auto;
}
.sidebar-caption {
  padding: 8px 10px 10px;
  color: #777;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.sidebar-identity { display: grid; gap: 3px; margin: 0 5px 12px; padding: 4px 7px 15px; border-bottom: 1px solid #e8ebee; text-align: left; }
.sidebar-identity strong { color: #172b3a; font-size: 18px; font-weight: 760; letter-spacing: -.025em; line-height: 1.15; }
.sidebar-identity strong::after { color: #ef5b20; content: "."; }
.sidebar-identity span { color: #667085; font-size: 10px; font-weight: 550; letter-spacing: .025em; }
.app-sidebar nav { display: grid; gap: 13px; }
.sidebar-group { display: grid; min-width: 0; gap: 5px; }
.sidebar-group + .sidebar-group { padding-top: 12px; border-top: 1px solid #eef0f2; }
.sidebar-group-label { padding: 0 10px 3px; color: #98a2b3; font-size: 8px; font-weight: 800; letter-spacing: .13em; line-height: 1.3; }
.sidebar-link {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #475467;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
  text-align: left;
  box-shadow: none;
}
.sidebar-link-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  color: #667085;
}
.sidebar-link-icon svg { display: block; width: 20px; height: 20px; }
.sidebar-link-label { min-width: 0; flex: 1 1 auto; text-align: left; overflow-wrap: anywhere; }
#app .app-sidebar .sidebar-link:hover,
#app .app-sidebar .sidebar-link:focus-visible {
  transform: none;
  border-color: #e4e7ec;
  background: #f8f9fb;
  color: var(--tx);
  box-shadow: none;
}
#app .app-sidebar .sidebar-link.active,
#app .app-sidebar .sidebar-link.active:hover,
#app .app-sidebar .sidebar-link.active:focus-visible {
  transform: none;
  border: 1px solid #f7d9cb;
  background: #fff4ed;
  color: var(--ac-ink);
  font-weight: 750;
  box-shadow: none;
}
.sidebar-link.active .sidebar-link-icon { color: var(--ac-ink); }
.sidebar-footer { margin-top: auto; padding: 12px; border-top: 1px solid var(--bd); }
.sidebar-footer .live-indicator { font-size: 11px; }
.app-content { min-width: 0; width: 100%; max-width: 1440px; }
.app-content > .site-footer { margin-top: 24px; padding: 12px 0; }
.mobile-nav-controls { display: none; }
.quick-status { min-width: 135px; min-height: 34px; padding: 6px 9px; font-size: 12px; }
.quick-status:focus-visible { outline-offset: 1px; }

.user-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.user-form-grid .field-span { grid-column: 1 / -1; }
.table-subtext { display: block; margin-top: 3px; color: #6b7280; font-size: 11px; }
.button-row { display: flex; align-items: center; gap: 10px; }
.report-ticket-summary > h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.report-ticket-summary > h2 > span { color: var(--mut); font-size: 11px; font-weight: 500; }
.report-results-table th:nth-child(4), .report-results-table th:nth-child(5),
.report-results-table td.report-status-cell, .report-results-table td.report-priority-cell { text-align: center; }
.report-results-table .report-status-cell .badge { width: 104px; justify-content: center; }
.report-priority-label {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  background: var(--surface);
  color: var(--mut);
  font-size: 11px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
}
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #98a2b3; }
.status-dot-abierto { background: #f79009; }
.status-dot-en-proceso { background: #2e90fa; }
.status-dot-en-aprobacion { background: #9e77ed; }
.status-dot-cerrado { background: #12b76a; }
.report-filters { align-items: end; }

@media (max-width: 520px) {
  .ticket-summary { padding: 13px 12px; }
  .ticket-summary-groups { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ticket-summary-group + .ticket-summary-group { padding: 11px 0 0; border-top: 1px solid var(--bd); border-left: 0; }
  .ticket-summary-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-summary-priority { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ticket-summary-item { padding-inline: 6px; }
  .ticket-summary-label { gap: 4px; }
  .report-ticket-summary > h2 { align-items: flex-start; flex-direction: column; gap: 3px; }
}
.inventory-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inventory-table { min-width: 1440px; }
.inventory-table th, .inventory-table td { padding-inline: 10px; }
.inventory-table th:nth-child(1) { min-width: 55px; }
.inventory-table th:nth-child(2) { min-width: 125px; }
.inventory-table th:nth-child(3) { min-width: 150px; }
.inventory-table th:nth-child(4) { min-width: 110px; }
.inventory-table th:nth-child(5) { min-width: 145px; }
.inventory-table th:nth-child(6) { min-width: 150px; }
.inventory-table th:nth-child(7) { min-width: 175px; }
.inventory-table th:nth-child(8) { min-width: 135px; }
.inventory-table th:nth-child(9) { min-width: 125px; }
.inventory-table th:nth-child(10) { min-width: 115px; }
.inventory-table th:nth-child(11) { min-width: 155px; }
.inventory-assigned-user { display: block; font-weight: 600; }
.equipment-permit {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}
.equipment-permit-yes { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.equipment-permit-no { border-color: #e4e7ec; background: #f2f4f7; color: #667085; }
.inventory-no-results { padding: 28px !important; color: var(--mut); text-align: center; }
.inventory-toolbar { display: grid; grid-template-columns: minmax(320px, 1fr) auto auto; align-items: end; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--bd); background: #fff; }
.inventory-toolbar .search-wrap { min-width: 0; }
.inventory-toolbar .filter-field { min-width: 0; }
.inventory-toolbar .btn-reset, .inventory-toolbar .btn-secondary { min-height: 42px; white-space: nowrap; }
.inventory-toolbar .inventory-export { margin-left: 0; }
.inventory-toolbar .inventory-export:disabled { cursor: not-allowed; opacity: .5; }
.inventory-filter-toggle { align-self: end; }
.inventory-advanced-filters {
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 300px) auto;
  align-items: end;
  justify-content: start;
  gap: 12px;
  margin-top: 2px;
  padding: 14px 2px 2px;
  border-top: 1px solid #f0e4dd;
}
.inventory-advanced-filters[hidden] { display: none; }
.inventory-advanced-filters .filter-field label { display: block; margin-bottom: 6px; color: var(--mut); font-size: 11px; font-weight: 650; }
.inventory-advanced-filters .filter-field select { width: 100%; min-height: 40px; border-color: #d8dde2; border-radius: 7px; background: #fff; font-size: 12px; }
.inventory-filter-clear[hidden] { display: none; }
.inventory-export-error:empty { display: none; }
.inventory-export-error { margin: 0 18px 12px; }
.inventory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  white-space: normal !important;
}
.inventory-actions .lnk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--bd);
  border-radius: 6px;
  background: var(--surface);
  color: var(--tx);
  font-size: 12px;
  font-weight: 600;
}
.inventory-actions .lnk:hover {
  border-color: var(--bd-strong);
  background: var(--surface-muted);
}
.inventory-actions select { display: block; min-width: 142px; margin: 2px 0 6px; }
.inventory-actions select, .modal-body select { appearance: auto; cursor: pointer; }
.inventory-actions select { width: 100%; max-width: 190px; padding: 8px 30px 8px 10px; border-color: var(--bd-strong); border-radius: 7px; background-color: #fff; font-size: 13px; }
.search-select { position: relative; }
#app .search-select > input[type="search"],
#app .equipment-user-field .search-select > input#equipment-user-search { padding-right: 38px; }
.search-select-clear { position: absolute; z-index: 1; top: 50%; right: 8px; display: grid; width: 26px; min-width: 26px; height: 26px; min-height: 26px; align-items: center; justify-content: center; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: #667085; font-size: 20px; line-height: 1; }
.search-select-clear:hover { background: #f2f4f7; }
#app .equipment-user-field .search-select-clear:hover,
#app .equipment-user-field .search-select-clear:focus-visible { transform: translateY(-50%); border-color: transparent; background: #f2f4f7; color: #667085; box-shadow: none; }
.search-select-menu { position: absolute; z-index: 140; top: calc(100% + 5px); right: 0; left: 0; max-height: 220px; overflow-y: auto; border: 1px solid var(--bd-strong); border-radius: 9px; background: #fff; box-shadow: 0 12px 28px rgba(16, 24, 40, .18); }
.search-select-menu[hidden], .search-select-clear[hidden] { display: none; }
.search-select-option { display: grid; width: 100%; gap: 2px; padding: 10px 12px; border: 0; border-bottom: 1px solid #eef0f3; border-radius: 0; background: #fff; color: var(--tx); text-align: left; }
.search-select-option:last-child { border-bottom: 0; }
.search-select-option:hover, .search-select-option:focus-visible { background: #f5f8fc; outline: none; }
#ticket-requester-options .search-select-option,
#equipment-user-options .search-select-option {
  display: flex;
  min-height: 0;
  justify-content: start;
  align-items: center;
  gap: 0;
  padding: 10px 16px;
  text-align: left;
  transform: none;
}
#ticket-requester-options .search-select-option strong,
#ticket-requester-options .search-select-option-role,
#equipment-user-options .search-select-option strong,
#equipment-user-options .search-select-option-role {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
#ticket-requester-options .search-select-option strong,
#equipment-user-options .search-select-option strong {
  flex: 0 1 48%;
}
#ticket-requester-options .search-select-option-role,
#equipment-user-options .search-select-option-role {
  flex: 1 1 52%;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--bd);
  color: var(--mut);
  font-size: 12px;
  font-weight: 400;
}
#ticket-requester-options .search-select-option-role:empty,
#equipment-user-options .search-select-option-role:empty {
  display: none;
}
#ticket-requester-options .search-select-option:hover,
#ticket-requester-options .search-select-option:focus-visible,
#equipment-user-options .search-select-option:hover,
#equipment-user-options .search-select-option:focus-visible {
  background: #F7F8FA;
  color: var(--tx);
  transform: none;
  box-shadow: none;
}
.search-select-option strong { font-size: 14px; font-weight: 650; }
.search-select-option small, .search-select-empty { color: #667085; font-size: 12px; }
.search-select-empty { padding: 12px; }
.equipment-user-field { position: relative; z-index: 2; }
.equipment-user-field > small { display: block; color: #667085; font-size: 12px; line-height: 1.4; }
.equipment-user-field:focus-within { z-index: 5; }
.equipment-catalog-select { width: 100%; }
.equipment-catalog-options {
  max-height: 180px;
  padding-block: 3px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .12);
}
.equipment-catalog-options .equipment-catalog-option {
  min-height: 34px;
  justify-content: flex-start;
  padding: 7px 12px;
  border-bottom-color: #f0f1f3;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transform: none;
}
.equipment-catalog-options .equipment-catalog-option:hover,
.equipment-catalog-options .equipment-catalog-option:focus-visible {
  background: #f7f8fa;
  color: var(--tx);
  box-shadow: none;
  outline: none;
  transform: none;
}
.equipment-catalog-options .search-select-empty { padding: 8px 12px; font-size: 12px; }
.equipment-choice-control,
.equipment-permit-control { position: relative; width: 100%; }
.equipment-choice-trigger {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--bd-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--tx);
  font-size: 15px;
  font-weight: 400;
  text-align: left;
}
.ticket-form-choice-control { width: 100%; }
#app .ticket-form-choice-trigger {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}
#app .ticket-form-choice-trigger:hover,
#app .ticket-form-choice-trigger:focus-visible,
#app .ticket-form-choice-trigger[aria-expanded="true"] {
  transform: none;
  border-color: var(--ac);
  background: #fff;
  color: var(--tx);
  box-shadow: none;
}
#app .ticket-form-choice-trigger > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#app .ticket-form-choice-trigger .equipment-permit-chevron {
  flex: 0 0 auto;
  margin-left: 8px;
}
.equipment-choice-trigger:hover,
.equipment-choice-trigger:focus-visible {
  transform: none;
  border-color: #b8c0cc;
  background: #fafafa;
  color: var(--tx);
  box-shadow: none;
}
#app .equipment-edit-modal .modal-body input:not(:disabled):hover,
#app .equipment-edit-modal .modal-body select:not(:disabled):hover,
#app .equipment-edit-modal .modal-body textarea:not(:disabled):hover,
#app .equipment-edit-modal .equipment-choice-trigger:hover,
#app .equipment-edit-modal .equipment-choice-trigger[aria-expanded="true"],
#app .equipment-edit-modal .equipment-permit-trigger[aria-expanded="true"] {
  border-color: var(--ac);
  transform: none;
  background: #fafafa;
  color: var(--tx);
  box-shadow: none;
}
#app .equipment-edit-modal .modal-body input:not(:disabled):not([readonly]):focus-visible,
#app .equipment-edit-modal .modal-body select:not(:disabled):focus-visible,
#app .equipment-edit-modal .modal-body textarea:not(:disabled):not([readonly]):focus-visible,
#app .equipment-edit-modal .equipment-choice-trigger:focus-visible,
#app .equipment-edit-modal .equipment-permit-trigger:focus-visible {
  border-color: var(--ac);
}
#app .equipment-edit-modal .modal-body input#equipment-area[readonly],
#app .equipment-edit-modal .modal-body input#equipment-area[readonly]:hover {
  border-color: var(--bd-strong);
  background: #f9fafb;
  color: #475467;
  cursor: not-allowed;
  box-shadow: none;
}
#app .user-profile-modal .equipment-choice-trigger:hover,
#app .user-profile-modal .equipment-choice-trigger:focus-visible {
  border-color: var(--ac);
  transform: none;
  background: #fafafa;
  color: var(--tx);
  box-shadow: none;
}
.equipment-permit-trigger {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--bd-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--tx);
  font-size: 15px;
  font-weight: 400;
  text-align: left;
}
#app .equipment-edit-modal .equipment-permit-trigger:hover,
#app .equipment-edit-modal .equipment-permit-trigger:focus-visible,
#app .equipment-edit-modal .equipment-permit-trigger[aria-expanded="true"] {
  transform: none;
  border-color: var(--ac);
  background: #fafafa;
  color: var(--tx);
  box-shadow: none;
}
.equipment-permit-chevron { color: var(--mut); font-size: 17px; line-height: 1; }
.equipment-permit-options {
  position: absolute;
  z-index: 150;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  overflow: hidden;
  padding: 4px;
  border: 1px solid var(--bd-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .12);
}
.equipment-choice-options {
  position: absolute;
  z-index: 150;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 180px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--bd-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .12);
}
.equipment-choice-options[hidden],
.equipment-permit-options[hidden] { display: none; }
.equipment-choice-option {
  display: flex;
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--tx);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transform: none;
}
.equipment-choice-option:hover,
.equipment-choice-option:focus-visible {
  transform: none;
  background: #f7f8fa;
  color: var(--tx);
  box-shadow: none;
}
.equipment-permit-option {
  display: flex;
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--tx);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transform: none;
}
#app .equipment-permit-option:hover,
#app .equipment-permit-option:focus-visible {
  transform: none;
  background: #f7f8fa;
  color: var(--tx);
  box-shadow: none;
}
#app .search-select-menu .search-select-option:hover,
#app .search-select-menu .search-select-option:focus-visible,
#app .equipment-choice-options .equipment-choice-option:hover,
#app .equipment-choice-options .equipment-choice-option:focus-visible {
  transform: none;
  background: #f7f8fa;
  color: var(--tx);
  box-shadow: none;
  outline: none;
}
.equipment-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
.equipment-status > i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.equipment-status-in-use { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.equipment-status-in-stock { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.equipment-status-maintenance { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.equipment-status-retired { border-color: #e4e7ec; background: #f2f4f7; color: #667085; }
.inventory-panel > .ticket-panel-head { justify-content: space-between; }
.inventory-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.inventory-total-count {
  display: flex;
  min-width: 124px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--bd);
  border-radius: 9px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}
.inventory-total-copy { display: grid; justify-items: center; gap: 3px; text-align: center; }
.inventory-total-copy strong { color: var(--tx); font-size: 22px; font-weight: 750; line-height: 1; }
.inventory-total-copy > span { color: var(--mut); font-size: 9px; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; }
.inventory-register-button { min-height: 38px; flex: 0 0 auto; padding: 8px 13px; border-radius: 7px; font-size: 12px; white-space: nowrap; }
.inventory-refresh-button, .ticket-refresh-button {
  display: inline-grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #667085;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.inventory-refresh-button svg, .ticket-refresh-button svg { width: 17px; height: 17px; }
#app .inventory-refresh-button:hover:not(:disabled),
#app .ticket-refresh-button:hover:not(:disabled) {
  transform: none;
  border-color: #d0d5dd;
  background: #f5f6f7;
  color: #344054;
}
.inventory-refresh-button:focus-visible, .ticket-refresh-button:focus-visible { outline: 2px solid #98a2b3; outline-offset: 2px; }
.inventory-refresh-button:disabled, .ticket-refresh-button:disabled { cursor: default; opacity: .7; }
.inventory-refresh-button.is-refreshing svg, .ticket-refresh-button.is-refreshing svg { animation: inventory-refresh-spin .8s linear infinite; }
@keyframes inventory-refresh-spin { to { transform: rotate(360deg); } }
.history-backdrop {
  z-index: 50;
}
.equipment-history-modal {
  width: min(100%, 960px);
  max-width: 960px;
}
.equipment-history-modal .modal-body {
  max-height: 68vh;
  padding: 16px 18px 18px;
  overflow: auto;
}
.history-list {
  display: grid;
  gap: 12px;
}
.history-strip {
  position: relative;
  display: block;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--bd);
  border-left: 4px solid var(--bd);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.history-strip-assign {
  border-left-color: #22c55e;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.08), #fff 26%);
}
.history-strip-retire {
  border-left-color: #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.09), #fff 26%);
}
.history-strip-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 10px;
  align-items: start;
  width: 100%;
}
.history-strip-main,
.history-strip-observation {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  width: 100%;
  text-align: left;
}
.history-strip-label {
  color: var(--mut);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.history-strip-main strong {
  color: var(--tx);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}
.history-action-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.history-strip-assign .history-action-tag { background: rgba(34, 197, 94, 0.12); color: #166534; }
.history-strip-retire .history-action-tag { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.history-state-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.history-state-good {
  border: 1px solid rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}
.history-state-bad {
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.09);
  color: #b91c1c;
}
.history-observation {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--tx);
  font-size: 11.5px;
}
.history-observation > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.history-observation-btn {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--bd);
  border-radius: 7px;
  background: #fff;
  color: var(--tx);
  cursor: pointer;
  font-size: 11px;
}
.history-observation-btn:hover {
  border-color: rgba(255, 103, 35, 0.5);
  background: #fff7f2;
  color: var(--ac-ink);
}
.history-editor-panel {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(23, 33, 47, .08);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdfb, #fff8f4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.history-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.history-editor-head h3 {
  margin: 4px 0 0;
  font-size: 16px;
}
.history-editor-body {
  display: grid;
  gap: 12px;
}
.history-editor-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.history-editor-actions .button-row {
  justify-content: flex-end;
}
.history-editor-backdrop {
  z-index: 120;
}
.history-editor-modal {
  width: min(100%, 520px);
  max-width: 520px;
}
.history-editor-modal .modal-body {
  padding: 18px 20px 20px;
}
.history-editor-modal .modal-body .field {
  margin-bottom: 14px;
}
.history-editor-modal textarea {
  min-height: 110px;
}
.history-empty {
  padding: 18px;
  border: 1px dashed var(--bd);
  border-radius: 12px;
  background: #fafafa;
  color: var(--mut);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 760px){
  .equipment-history-modal { width: min(100%, 100%); }
  .history-strip-row {
    grid-template-columns: 1fr;
  }
}
.category-workspace { display: grid; gap: 16px; }
.category-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: #f2f4f7;
  scrollbar-width: thin;
}
.category-group-tabs { width: max-content; max-width: 100%; }
.category-group-tabs .category-tab.active { background: var(--ac-soft) !important; color: var(--ac-ink); }
.category-tab {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
}
.category-tab:hover { transform: none !important; background: rgba(255,255,255,.7) !important; color: var(--tx); }
.category-tab.active, .category-tab.active:hover { border-color: var(--bd); background: #fff !important; color: var(--ac-ink); box-shadow: 0 1px 3px rgba(16,24,40,.08); }
.category-panel { margin: 0; }
.category-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.category-panel-head > .btn-primary { min-height: 42px; padding: 9px 15px; font-size: 14px; }
.request-catalog-layout { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 1.65fr); align-items: start; gap: 16px; }
.request-category-panel,
.request-types-panel { min-width: 0; overflow: hidden; border: 1px solid var(--bd); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.request-category-panel > .request-category-panel-head { position: static; z-index: auto; }
.request-category-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--bd); }
.request-category-panel-head h2 { margin: 0; color: var(--tx); font-size: 16px; }
.request-add-category { display: inline-flex; width: 36px; min-width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--bd); border-radius: 8px; background: var(--surface); color: var(--ac-ink); font-size: 22px; line-height: 1; }
#app .request-add-category:hover { transform: none; border-color: var(--bd-strong); background: var(--surface-muted); }
.request-category-list { max-height: 660px; overflow-y: auto; }
.request-category-row { padding: 7px 12px; border-bottom: 1px solid var(--bd); }
.request-category-row:last-child { border-bottom: 0; }
.request-category-row.is-selected { border-left: 3px solid var(--ac); background: var(--surface-muted); }
.request-category-select { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 4px; border: 0; border-radius: 6px; background: transparent; color: var(--tx); text-align: left; }
.request-category-select:hover { transform: none !important; background: transparent !important; color: var(--tx); }
.request-category-name { overflow-wrap: anywhere; font-size: 13px; font-weight: 650; }
.request-category-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 0 4px; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.request-category-row:hover .request-category-actions,
.request-category-row:focus-within .request-category-actions { opacity: 1; pointer-events: auto; }
.request-category-actions .catalog-action { width: 84px; min-height: 29px; font-size: 11px; }
.request-category-actions .catalog-delete-action,
.request-category-actions .catalog-edit-action { width: 30px; min-height: 29px; }
.request-types-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; }
.request-types-heading h3 { margin: 0; color: var(--tx); font-size: 16px; }
.catalog-values-heading > div { display: grid; min-width: 0; gap: 3px; }
.catalog-values-count { color: var(--mut); font-size: 12px; }
.request-types-heading > .btn-primary { min-height: 40px; padding: 8px 13px; font-size: 13px; }
.request-types-heading > .btn-primary:disabled { cursor: not-allowed; opacity: .58; }
.request-type-list { padding-inline: 22px; }
.request-types-panel .catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 22px; }
.request-types-panel .catalog-search { min-width: 0; }
.request-types-panel .catalog-status-filter select { min-width: 112px; }
.request-types-empty { display: grid; min-height: 210px; justify-items: center; align-content: center; padding: 28px; color: var(--mut); text-align: center; }
.request-types-empty strong,
.request-types-empty h2 { margin: 0 0 7px; color: var(--tx); font-size: 15px; }
.request-types-empty p { max-width: 390px; margin: 0; color: var(--mut); font-size: 13px; }
.request-types-empty-start { min-height: 420px; }
.request-empty-icon { display: grid; width: 42px; height: 42px; margin-bottom: 14px; place-items: center; border: 1px solid var(--bd); border-radius: 12px; background: var(--surface-muted); color: var(--ac-ink); font-size: 24px; }
.request-flow-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 11px; border: 1px solid var(--bd); border-radius: 999px; background: var(--surface-muted); color: var(--tx); font-size: 11px; font-weight: 650; }
.request-flow-note > span { color: var(--ac); font-size: 15px; }
.request-category-empty { display: grid; justify-items: start; gap: 8px; padding: 22px 18px; }
.request-category-empty strong { color: var(--tx); font-size: 13px; }
.request-category-empty p { margin: 0; color: var(--mut); font-size: 12px; }
.request-category-empty .btn-primary { min-height: 36px; margin-top: 3px; padding: 7px 10px; font-size: 11px; }
.catalog-action-error { margin: 10px 18px 0; color: #b42318; font-size: 12px; }
.equipment-delete-confirm > .catalog-action-error { margin: 12px 0 0; }
.category-empty { min-height: 210px; }
.catalog-value { min-width: 0; overflow-wrap: anywhere; color: #344054; font-size: 15px; font-weight: 600; }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--bd); background: #fcfcfb; }
.catalog-search { display: flex; flex: 1 1 260px; min-width: 180px; align-items: center; gap: 8px; padding-left: 12px; border: 1px solid var(--bd-strong); border-radius: 7px; background: var(--surface); color: var(--mut); }
.catalog-search > span { font-size: 20px; line-height: 1; }
.catalog-search input { min-width: 0; min-height: 38px; padding: 7px 10px 7px 0; border: 0; outline: 0; box-shadow: none; }
.catalog-search input:focus { outline: 0; box-shadow: none; }
.catalog-search:focus-within { border-color: var(--ac); box-shadow: 0 0 0 3px rgba(255,103,35,.12); }
.catalog-status-filter { display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: 12px; font-weight: 600; }
.catalog-status-filter select { width: auto; min-width: 145px; min-height: 38px; padding: 7px 30px 7px 10px; font-size: 13px; }
.catalog-list { padding: 0 18px 12px; }
.catalog-entry { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--bd); }
.catalog-entry-actions { display: grid; flex: 0 0 auto; grid-template-columns: 76px 94px 34px 34px; align-items: center; gap: 8px; }
.request-type-entry .catalog-entry-actions { display: flex; gap: 7px; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.request-type-entry:hover .catalog-entry-actions,
.request-type-entry:focus-within .catalog-entry-actions { opacity: 1; pointer-events: auto; }
.catalog-status { display: inline-flex; width: 76px; min-height: 24px; align-items: center; justify-content: center; padding: 3px 5px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 650; }
.catalog-status.is-active { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.catalog-status.is-inactive { border-color: #eaecf0; background: #f2f4f7; color: #475467; }
.catalog-action { width: 94px; min-height: 32px; padding: 5px 8px; border: 1px solid var(--bd); border-radius: 6px; background: var(--surface); color: #475467; font-size: 12px; font-weight: 600; transition: background .16s ease, color .16s ease, border-color .16s ease; }
#app .catalog-action-disable:hover { transform: none; border-color: #fecdca; background: #fef3f2; color: #b42318; }
#app .catalog-action-enable:hover { transform: none; border-color: #abefc6; background: #ecfdf3; color: #067647; }
#app .catalog-action:focus-visible { outline: 3px solid rgba(255,103,35,.35); outline-offset: 2px; }
.catalog-delete-action { display: inline-flex; width: 34px; min-height: 32px; align-items: center; justify-content: center; padding: 6px; border: 1px solid var(--bd); border-radius: 6px; background: var(--surface); color: #667085; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.catalog-edit-action { display: inline-flex; width: 34px; min-height: 32px; align-items: center; justify-content: center; padding: 6px; border: 1px solid var(--bd); border-radius: 6px; background: var(--surface); color: #475467; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.catalog-delete-action svg,
.catalog-edit-action svg { width: 16px; height: 16px; }
#app .catalog-edit-action:hover { transform: none; border-color: var(--bd-strong); background: var(--surface-muted); color: #344054; }
.catalog-edit-action:focus-visible { outline: 3px solid rgba(255,103,35,.25); outline-offset: 2px; }
#app .catalog-delete-action:hover { transform: none; border-color: #fecdca; background: #fef3f2; color: #b42318; }
.catalog-delete-action:focus-visible { outline: 3px solid rgba(180,35,24,.25); outline-offset: 2px; }
#app .catalog-delete-action:disabled { cursor: wait; opacity: .65; }
#app .catalog-action:disabled,
.equipment-delete-confirm-actions button:disabled { cursor: wait; opacity: .65; }
.catalog-entry .secure-note { font-size: 12px; }
.category-modal { width: min(100%, 520px); }
.category-modal .modal-body { max-height: none; }
.format-library { margin-bottom: 16px; }
.format-library .ticket-panel-head { align-items: flex-end; flex-wrap: wrap; padding: 18px 22px; }
.format-library .ticket-panel-head h2 { margin-bottom: 2px; font-size: 16px; }
.format-library .ticket-panel-head p { font-size: 12px; }
.format-library-search { width: min(100%, 300px); }
.format-library-search label { display: block; margin-bottom: 5px; color: #475467; font-size: 11px; font-weight: 600; }
.format-library-search input { min-height: 38px; border-color: var(--bd); border-radius: 7px; background: #fff; font-size: 12px; }
.format-library-upload { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 14px; margin: 0 22px; padding: 10px 0; border-top: 1px solid #f0f1f2; border-bottom: 1px solid #f0f1f2; }
.format-file-picker { position: relative; display: flex; min-width: 0; align-items: center; gap: 10px; }
.format-file-picker:focus-within { outline: 2px solid rgba(233, 91, 37, .16); outline-offset: 1px; }
.format-file-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid var(--bd-strong);
  border-radius: 6px;
  background: #fff;
  color: #475467;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.format-file-button:hover { border-color: #b8c0cc; background: #f7f8fa; color: var(--tx); }
.format-file-button:focus-visible { outline: 2px solid rgba(233, 91, 37, .45); outline-offset: 2px; }
.format-file-name { min-width: 0; overflow: hidden; color: var(--mut); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.format-file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.format-upload-actions { display: flex; flex: 0 0 auto; justify-content: flex-end; }
.format-upload-actions button { min-height: 34px; padding: 7px 11px; font-size: 11px; }
.format-upload-actions button:disabled { cursor: wait; opacity: .7; }
.format-error:empty { display: none; }
.format-document-list { padding: 0 18px 10px; }
.format-document { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--bd); }
.format-document[hidden] { display: none; }
.format-document:last-child { border-bottom: 0; }
.format-document-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid #f4d8cb; border-radius: 10px; background: #fff8f4; color: var(--ac); font-size: 20px; }
.format-document-main { min-width: 0; flex: 1; }
.format-document-category { color: var(--ac-ink); font-size: 10px; font-weight: 650; text-transform: uppercase; }
.format-document h3 { margin: 2px 0 3px; color: var(--tx); font-size: 14px; overflow-wrap: anywhere; }
.format-document p { margin: 0 0 4px; color: #475467; font-size: 12px; }
.format-document small { color: var(--mut); font-size: 10px; overflow-wrap: anywhere; }
.format-document > button { flex: 0 0 auto; min-height: 36px; padding: 7px 12px; font-size: 12px; }
.format-library .empty-state { min-height: 90px; }
.format-no-results[hidden] { display: none; }

@media (max-width: 980px) {
  .site-header.admin-authenticated + main { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding-inline: 16px; }
  .inventory-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-period-grid { grid-template-columns: 1fr; }
  .report-heading { flex-wrap: wrap; }
  .report-period-option .report-date { flex: 1 1 140px; }
  .request-catalog-layout { grid-template-columns: minmax(170px, .78fr) minmax(0, 1.4fr); gap: 12px; }
  .request-category-panel-head { padding: 14px; }
  .request-category-row { padding-inline: 9px; }
  .request-category-actions { gap: 4px; padding-inline: 0; }
  .request-category-actions .catalog-action { width: 76px; }
  .request-types-heading { padding-inline: 18px; }
  .request-types-panel .catalog-toolbar { padding-inline: 16px; }
  .request-type-list { padding-inline: 16px; }
  .request-category-row.is-selected { border-left: 3px solid var(--ac); }
}
@media (max-width: 640px) {
  .site-header.authenticated { min-height: 66px; flex-direction: row; align-items: center; padding: 5px 12px; }
  .site-header.authenticated .brand { width: auto; }
  .site-header.authenticated .header-logo { width: min(180px, 43vw); height: 48px; }
  .site-header.authenticated .header-right { width: auto; min-height: 0; }
  .site-header.authenticated .header-right #who { min-height: 38px; }
  .inventory-panel > .ticket-panel-head { align-items: center; flex-wrap: wrap; }
  .inventory-header-actions { width: 100%; justify-content: flex-end; gap: 7px; }
  .inventory-total-count { min-width: 112px; min-height: 48px; margin-right: auto; }
  .inventory-register-button { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  .site-header.admin-authenticated + main {
    display: flex;
    min-height: calc(100vh - 128px);
    flex-direction: column;
    gap: 16px;
    padding: 14px 12px 32px;
  }
  .report-heading { align-items: flex-start; flex-direction: column; }
  .format-library .ticket-panel-head { align-items: stretch; padding: 14px; }
  .format-library-search { width: 100%; }
  .format-library-upload { align-items: flex-start; flex-wrap: wrap; margin-inline: 14px; }
  .format-file-picker { width: 100%; }
  .format-upload-actions { width: 100%; }
  .report-download { width: 100%; }
  #app .report-panel .filter-panel.report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-filters .btn-reset { grid-column: 1 / -1; justify-self: start; }
  .report-period-option { align-items: stretch; }
  .report-period-option .report-date { flex: 1 1 100%; width: 100%; }
  .report-month-fields { width: 100%; }
  .mobile-nav-controls { display: block; min-height: 40px; margin-bottom: 12px; }
  .mobile-nav-toggle { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--bd); border-radius: 9px; background: var(--surface); color: var(--tx); font-size: 12px; font-weight: 650; }
  .mobile-nav-toggle > span { color: var(--ac-ink); font-size: 17px; line-height: 1; }
  .mobile-nav-toggle small { margin-left: 2px; padding-left: 9px; border-left: 1px solid var(--bd); color: var(--mut); font-size: 11px; font-weight: 500; }
  .mobile-nav-backdrop { position: fixed; z-index: 119; inset: 66px 0 0; display: block; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: rgba(16, 24, 40, .38); box-shadow: none; }
  .mobile-nav-backdrop[hidden] { display: none; }
  .app-sidebar { position: fixed; z-index: 120; inset: 66px auto 0 0; width: min(292px, calc(100vw - 56px)); height: auto; min-height: 0; max-height: none; padding: 15px 11px 12px; transform: translateX(-105%); visibility: hidden; border-radius: 0 12px 12px 0; box-shadow: 0 14px 36px rgba(16, 24, 40, .2); transition: transform .22s ease, visibility .22s ease; }
  .app-sidebar.mobile-open { transform: translateX(0); visibility: visible; }
  .sidebar-caption { padding: 8px 12px 12px; }
  .sidebar-footer { display: block; }
  .app-sidebar nav { display: grid; gap: 5px; overflow: visible; }
  .sidebar-link { min-width: 0; min-height: 42px; gap: 9px; padding: 9px 11px; font-size: 13px; }
  .sidebar-link-icon { width: 20px; height: 20px; flex-basis: 20px; }
  html.mobile-nav-open, body.mobile-nav-open { overflow: hidden; overscroll-behavior: none; }
  .user-form-grid { grid-template-columns: 1fr; }
  .user-form-grid .field-span { grid-column: auto; }
  .profile-details-grid { grid-template-columns: 1fr; }
  .profile-overview { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "primary" "details"; gap: 12px; }
  .user-profile-layout .profile-overview { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "primary" "details"; }
  .profile-photo-panel { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 12px; padding: 12px; }
  .user-profile-layout .profile-photo-panel { grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .profile-photo-controls { width: 100%; justify-items: start; }
  .profile-avatar-large { width: 88px; height: 88px; font-size: 27px; }
  .profile-primary-details { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .user-profile-layout .profile-primary-details { grid-template-columns: minmax(0, 1fr); }
  .profile-readonly-photo { grid-template-columns: 1fr; justify-items: center; }
  .category-tabs { margin-inline: -2px; }
  .category-tab { min-height: 40px; padding-inline: 13px; font-size: 13px; }
  .category-panel-head { align-items: flex-start; }
  .category-panel-head > .btn-primary { flex: 0 0 auto; padding-inline: 11px; }
  .catalog-toolbar { align-items: stretch; padding: 12px; }
  .catalog-search { flex-basis: 100%; }
  .catalog-status-filter { justify-content: space-between; }
  .catalog-entry { min-height: 62px; gap: 8px; }
  .catalog-entry-actions { grid-template-columns: 68px 82px 32px 32px; gap: 5px; }
  .catalog-status { width: 68px; }
  .catalog-action { width: 82px; min-height: 34px; padding-inline: 4px; font-size: 11px; }
  .catalog-delete-action,
  .catalog-edit-action { width: 32px; min-height: 34px; padding: 5px; }
  .request-catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .request-category-list { max-height: 260px; overflow-y: auto; }
  .request-category-panel-head { padding: 14px; }
  .request-category-row { padding-inline: 12px; }
  .request-category-actions .catalog-action { width: 82px; }
  .request-category-actions .catalog-edit-action,
  .request-category-actions .catalog-delete-action { width: 32px; min-height: 34px; }
  .request-category-actions { justify-content: flex-start; }
  .request-types-heading { align-items: flex-start; flex-direction: column; padding: 15px 16px; }
  .request-types-heading > .btn-primary { width: 100%; }
  .request-types-panel .catalog-toolbar { padding-inline: 14px; }
  .request-type-list { padding-inline: 14px; }
  .request-types-empty-start { min-height: 290px; }
}
@media (hover: none) {
  .request-category-actions,
  .request-type-entry .catalog-entry-actions { opacity: 1; pointer-events: auto; }
}

.page-heading > .btn-primary { min-height: 46px; padding: 10px 18px; border-radius: 9px; font-size: 15px; }
.ticket-panel-head { padding: 18px 22px; }
.ticket-panel-head p, .page-heading p { font-size: 15px; }
.ticket-table th { padding: 13px 16px; font-size: 11px; }
.ticket-table td { padding: 16px; font-size: 14px; }
.ticket-table tbody tr:nth-child(even) { background: #fcfcfb; }
.ticket-table tbody tr:hover { background: #fff7f2; }
.ticket-table .requester-cell small, .table-subtext { font-size: 12px; }
.user-table { min-width: 860px; }
.user-status-badge.is-active { border-color: #6ce9a6; background: #d1fadf; color: #05603a; }
.user-status-badge.is-inactive { border-color: var(--bd); background: var(--surface-muted); color: var(--tx); }
.user-form-grid .field small:not(.equipment-field-error) { display: block; margin-top: 5px; color: #68717d; font-size: 12px; line-height: 1.4; }
.inventory-table { min-width: 1440px; }
.entity-actions { display: flex; align-items: center; gap: 14px; }
.entity-actions .lnk { font-size: 13px; }
.optional-label { margin-left: 4px; color: #777; font-size: 12px; font-weight: 400; }
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(17, 24, 39, .48);
  backdrop-filter: blur(3px);
}
.entity-modal {
  width: min(100%, 760px);
  max-height: min(90vh, 900px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  animation: modal-enter .18s ease-out;
}
.modal-heading {
  position: static;
  z-index: auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  min-height: 0;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 20px;
  border: 0;
  border-bottom: 1px solid var(--bd);
  background: #fff;
}
.modal-heading > div { min-width: 0; flex: 1 1 auto; }
.modal-heading .eyebrow { margin-bottom: 6px; }
.modal-heading h2 { margin: 0 0 4px; font-size: 22px; }
.modal-heading p { margin: 0; color: #667085; font-size: 14px; }
.modal-close {
  width: 40px;
  min-width: 40px;
  flex: 0 0 40px;
  min-height: 40px;
  align-self: flex-start;
  padding: 0;
  border: 1px solid var(--bd);
  border-radius: 50%;
  background: #fff;
  color: #475467;
  font-size: 24px;
}
.modal-close:hover { background: #f3f4f6 !important; color: #111827; }
.modal-body { max-height: calc(90vh - 180px); padding: 24px 28px; overflow-y: auto; overscroll-behavior: contain; }
.modal-body .field { gap: 7px; }
.modal-body .field label { color: #344054; font-size: 14px; font-weight: 650; }
.modal-body input, .modal-body select { min-height: 44px; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
#app .equipment-edit-modal .modal-body .field.equipment-field-invalid > label { color: #b42318; }
#app .user-profile-modal .modal-body .field.equipment-field-invalid > label { color: #b42318; }
#app .equipment-edit-modal .modal-body .field.equipment-field-invalid input,
#app .equipment-edit-modal .modal-body .field.equipment-field-invalid select,
#app .equipment-edit-modal .modal-body .field.equipment-field-invalid textarea,
#app .equipment-edit-modal .modal-body .field.equipment-field-invalid .equipment-choice-trigger {
  border-color: #d92d20 !important;
  background-color: #fff7f6;
}
#app .user-profile-modal .modal-body .field.equipment-field-invalid input {
  border-color: #d92d20 !important;
  background-color: #fff7f6;
}
#app .equipment-edit-modal .modal-body .field.equipment-field-invalid input:focus,
#app .equipment-edit-modal .modal-body .field.equipment-field-invalid select:focus,
#app .equipment-edit-modal .modal-body .field.equipment-field-invalid textarea:focus,
#app .equipment-edit-modal .modal-body .field.equipment-field-invalid .equipment-choice-trigger:focus {
  outline: 2px solid rgba(217, 45, 32, .2);
  outline-offset: 1px;
}
#app .user-profile-modal .modal-body .field.equipment-field-invalid input:focus {
  outline: 2px solid rgba(217, 45, 32, .2);
  outline-offset: 1px;
}
.equipment-field-error { display: block; margin-top: 5px; color: #b42318; font-size: 12px; line-height: 1.35; }
.modal-footer { 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-top: 1px solid var(--bd);
  background: #fcfcfb;
}
.modal-footer .button-row { margin-left: auto; }
.modal-footer .btn-primary, .modal-footer .btn-secondary { min-height: 42px; padding-inline: 16px; font-size: 14px; }
.equipment-modal-footer-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.equipment-delete-button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #f0b8b3;
  border-radius: 6px;
  background: transparent;
  color: #b42318;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.equipment-delete-button:hover { border-color: #e2a5a5; background: #fff5f5; color: #a12b2b; }
.equipment-delete-button:focus-visible { outline: 2px solid #98a2b3; outline-offset: 2px; }
.equipment-edit-modal { display: flex; flex-direction: column; }
.equipment-edit-modal > .modal-heading,
.equipment-edit-modal > .equipment-modal-footer { flex: 0 0 auto; }
.equipment-edit-modal > .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}
.equipment-modal-footer { padding: 20px 40px; }
.equipment-modal-footer .equipment-modal-footer-left { flex: 0 0 auto; }
.equipment-modal-footer .button-row { flex: 0 0 auto; gap: 10px; }
.user-modal-footer-left { display: flex; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; align-items: center; gap: 10px; }
.user-modal-footer-left .err:empty { display: none; }
.user-modal-footer .button-row { flex: 0 0 auto; gap: 10px; }
.user-profile-layout > .user-modal-footer { align-items: center; flex-wrap: wrap; column-gap: 22px; row-gap: 14px; padding: 20px 32px 24px; }
.user-profile-layout > .user-modal-footer .user-modal-footer-left { padding-block: 2px; }
.user-profile-layout > .user-modal-footer .button-row { margin-left: auto; padding-block: 2px; }
@media (max-width: 720px) {
  .user-profile-layout .modal-body { padding: 20px 20px 26px; }
  .user-profile-layout > .user-modal-footer { align-items: stretch; padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); }
  .user-profile-layout > .user-modal-footer .user-modal-footer-left,
  .user-profile-layout > .user-modal-footer .button-row { width: 100%; }
  .user-profile-layout > .user-modal-footer .button-row { margin-left: 0; padding-top: 4px; }
}
.user-deactivate-button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #f0b8b3;
  border-radius: 6px;
  background: transparent;
  color: #b42318;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.user-deactivate-button:hover {
  transform: none;
  border-color: #b42318;
  background: transparent;
  color: #912018;
  box-shadow: none;
}
.user-deactivate-button:focus-visible { outline: 2px solid #98a2b3; outline-offset: 2px; }
.user-reset-password-button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.profile-modal .user-reset-password-button:hover,
#app .user-profile-modal .user-reset-password-button:hover {
  transform: none;
  border-color: #c5cbd3;
  background: #f5f6f7;
  color: var(--tx);
  box-shadow: none;
}
.user-reset-password-button:focus-visible { outline: 2px solid #98a2b3; outline-offset: 2px; }
#app .equipment-modal-footer .button-row .btn-secondary:hover {
  transform: none;
  border-color: #c5cbd3;
  background: #f5f6f7;
  color: var(--tx);
}
#app .equipment-modal-footer .equipment-delete-button:hover {
  transform: none;
  border-color: #e2a5a5;
  background: #fff5f5;
  color: #a12b2b;
}
.equipment-delete-confirm-backdrop { z-index: 140; }
.equipment-delete-confirm {
  width: min(100%, 360px);
  max-height: min(90vh, 420px);
  padding: 18px;
}
.equipment-delete-confirm-body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.equipment-delete-warning-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid #ead3cf;
  border-radius: 50%;
  background: #fbf5f3;
  color: #a64b40;
}
.equipment-delete-warning-icon svg { width: 17px; height: 17px; }
.equipment-delete-confirm h2 {
  margin: 0 0 3px;
  color: var(--tx);
  font-size: 16px;
  line-height: 1.3;
}
.equipment-delete-confirm p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.equipment-delete-confirm p strong { color: #475467; font-weight: 600; }
.equipment-delete-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
#app .equipment-delete-confirm-actions .btn-secondary:hover {
  transform: none;
  border-color: #c5cbd3;
  background: #f5f6f7;
  color: var(--tx);
}
.equipment-delete-confirm-actions .btn-secondary,
.equipment-delete-confirm-submit {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #d5d9df;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.equipment-delete-confirm-submit {
  border-color: #b42318;
  background: #b42318;
  color: #fff;
}
.equipment-delete-confirm-submit:hover {
  transform: none;
  border-color: #912018;
  background: #b42318;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, .18);
}
.catalog-delete-action, #app .catalog-action-disable { border-color: #f0b8b3; color: #b42318; }
.ticket-close-modal { width: min(100%, 560px); }
.ticket-close-modal .modal-body { padding: 22px 26px; }
.ticket-close-modal textarea { width: 100%; resize: vertical; }
.ticket-close-modal .modal-footer { padding: 14px 26px; }
@keyframes modal-enter {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 720px) {
  .page-heading { align-items: flex-start; }
  .page-heading > .btn-primary { flex: 0 0 auto; padding: 9px 12px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .entity-modal { display: flex; max-height: 94vh; flex-direction: column; border-radius: 16px 16px 0 0; }
  .entity-modal > .modal-heading,
  .entity-modal > .modal-footer { flex: 0 0 auto; }
  .modal-heading { padding: 20px 20px 16px; }
  .modal-body { min-height: 0; max-height: none; flex: 1 1 auto; padding: 20px; }
  .modal-footer { align-items: flex-start; flex-direction: column; padding: 14px 20px; }
  .equipment-edit-modal > .modal-body { max-height: none; }
  .equipment-modal-footer { padding: 18px 28px; }
  .modal-footer .button-row { width: 100%; justify-content: flex-end; }
  .equipment-modal-footer .button-row { gap: 10px; }
  .equipment-delete-confirm { padding: 18px; }
  .equipment-delete-confirm-actions { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .inventory-toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
  .inventory-toolbar .search-wrap { grid-column: 1 / -1; }
  .inventory-toolbar .inventory-export { margin-left: 0; }
  .inventory-advanced-filters { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 520px) {
  .inventory-toolbar { grid-template-columns: minmax(0, 1fr); padding-inline: 14px; }
  .inventory-filter-toggle,
  .inventory-toolbar .inventory-export { width: 100%; }
  .inventory-advanced-filters { grid-template-columns: minmax(0, 1fr); }
  .inventory-filter-clear { width: 100%; }
}
#app .filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  align-items: end;
}
#app .filter-panel .search-wrap {
  min-width: 0;
  grid-column: span 2;
}
#app .filter-panel .filter-field {
  min-width: 0;
  flex: initial;
}
#app .filter-panel .filter-choice-control,
#app .filter-panel .filter-choice-trigger {
  width: 100%;
}
#app .detail-sidebar .detail-action-choice-control,
#app .detail-sidebar .detail-action-choice-trigger {
  width: 100%;
}
#app .filter-panel .filter-choice-trigger {
  min-height: 44px;
  padding: 10px 12px;
  border-color: var(--bd-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--tx);
  font-size: 14px;
  font-weight: 500;
}
#app .filter-panel .filter-choice-trigger:hover,
#app .filter-panel .filter-choice-trigger:focus-visible,
#app .filter-panel .filter-choice-trigger[aria-expanded="true"],
#app .detail-sidebar .detail-action-choice-trigger:hover,
#app .detail-sidebar .detail-action-choice-trigger:focus-visible,
#app .detail-sidebar .detail-action-choice-trigger[aria-expanded="true"],
#app .ticket-table .quick-status-trigger:hover,
#app .ticket-table .quick-status-trigger:focus-visible,
#app .ticket-table .quick-status-trigger[aria-expanded="true"] {
  transform: none;
  border-color: var(--ac);
  background: #fafafa;
  color: var(--tx);
  box-shadow: none;
}
#app .ticket-table .quick-status-control {
  width: 135px;
}
#app .ticket-table .quick-status-trigger {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border-color: var(--bd-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--tx);
  font-size: 12px;
  font-weight: 500;
}
@media (max-width: 520px) {
  #app .filter-panel .search-wrap { grid-column: 1 / -1; }
}
.session-timeout-backdrop { z-index: 3000; }
.session-timeout-modal { width: min(100%, 480px); }
.session-timeout-modal .modal-body { display: grid; gap: 18px; }
.session-timeout-modal .modal-body > p { margin: 0; color: var(--mut); }
.session-timeout-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  background: var(--surface-muted);
}
.session-timeout-countdown span { color: var(--mut); font-size: 13px; }
.session-timeout-countdown strong { color: var(--ac-ink); font-size: 24px; font-variant-numeric: tabular-nums; }
.session-timeout-modal .modal-footer { align-items: center; flex-direction: row; }
.session-timeout-modal .modal-footer .button-row { display: flex; width: auto; gap: 10px; margin-left: auto; }
.session-timeout-modal .session-timeout-cancel:hover { transform: none; }
@media (max-width: 720px) {
  .session-timeout-modal .modal-footer { align-items: center; flex-direction: row; }
  .session-timeout-modal .modal-footer .button-row { width: 100%; }
  .session-timeout-modal .modal-footer .button-row button { flex: 1 1 0; }
}
.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.dashboard-heading > div:first-child { min-width: 0; }
.dashboard-period-controls { display: flex; align-items: flex-end; gap: 8px; }
.dashboard-period-controls label { display: grid; min-width: 116px; gap: 4px; color: var(--mut); font-size: 11px; font-weight: 600; }
.dashboard-period-controls select {
  width: 100%;
  min-height: 38px;
  padding: 7px 30px 7px 10px;
  border: 1px solid var(--bd-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--tx);
  font: inherit;
  font-size: 13px;
}
#app .dashboard-period-controls select:focus-visible { border-color: var(--ac); outline: 3px solid var(--focus); }
#app .dashboard-current-month,
#app .dashboard-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--bd-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--tx);
  font-size: 12px;
  font-weight: 600;
}
#app .dashboard-refresh-button svg { width: 15px; height: 15px; flex: 0 0 auto; }
#app .dashboard-current-month:hover,
#app .dashboard-current-month:focus-visible,
#app .dashboard-refresh-button:hover,
#app .dashboard-refresh-button:focus-visible {
  transform: none;
  border-color: var(--bd-strong);
  background: var(--surface-muted);
  color: var(--tx);
  box-shadow: none;
}
#app .dashboard-refresh-button:disabled { cursor: wait; opacity: .7; }
.dashboard-period-note { margin: 0 0 14px; color: var(--mut); font-size: 12px; }
.dashboard-period-note strong { color: var(--tx); font-weight: 650; }
.dashboard-refresh-error { margin: -6px 0 12px; color: #b42318; font-size: 12px; }
.dashboard-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dashboard-kpi {
  display: grid;
  min-width: 0;
  min-height: 112px;
  align-content: space-between;
  gap: 9px;
  padding: 15px 17px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.dashboard-kpi-label { color: var(--mut); font-size: 12px; font-weight: 600; }
.dashboard-kpi > strong { color: var(--tx); font-size: clamp(24px, 2.4vw, 32px); font-weight: 720; line-height: 1; font-variant-numeric: tabular-nums; }
.dashboard-kpi > small { min-height: 16px; color: var(--mut); font-size: 10px; line-height: 1.4; }
.dashboard-delta-up { color: #b54708; font-weight: 650; }
.dashboard-delta-down { color: #027a48; font-weight: 650; }
.dashboard-delta-neutral { color: var(--mut); }
.dashboard-chart-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .9fr); gap: 14px; }
.dashboard-card {
  min-width: 0;
  padding: 18px 19px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.dashboard-card-heading { position: static; z-index: auto; top: auto; display: flex; min-width: 0; min-height: 0; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 0; border: 0; background: transparent; isolation: auto; }
.dashboard-card-heading > div { min-width: 0; flex: 1 1 auto; }
.dashboard-card-heading h2 { margin: 0; color: var(--tx); font-size: 16px; font-weight: 680; }
.dashboard-card-heading p { margin: 4px 0 0; color: var(--mut); font-size: 11px; line-height: 1.45; }
.dashboard-selected-month { flex: 0 0 auto; padding: 4px 9px; border-radius: 99px; background: var(--ac-soft); color: var(--ac-ink); font-size: 10px; font-weight: 650; }
.dashboard-chart-area { position: relative; min-width: 0; height: 286px; }
.dashboard-chart-area canvas,
.dashboard-donut-area canvas { display: block; width: 100% !important; height: 100% !important; }
.dashboard-chart-area canvas,
.dashboard-donut-area canvas { cursor: pointer; }
.dashboard-donut-area { position: relative; height: 218px; }
.dashboard-donut-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; pointer-events: none; }
.dashboard-donut-center strong { color: var(--tx); font-size: 31px; font-weight: 720; line-height: 1; font-variant-numeric: tabular-nums; }
.dashboard-donut-center > span { margin-top: 6px; color: var(--mut); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 20px;
  color: var(--mut);
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}
.dashboard-chart-empty[hidden] { display: none; }
.dashboard-status-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.dashboard-status-summary li { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 7px; color: var(--mut); font-size: 10px; }
.dashboard-status-summary li > span { display: inline-flex; min-width: 0; align-items: center; gap: 6px; }
.dashboard-status-summary strong { color: var(--tx); font-size: 12px; font-variant-numeric: tabular-nums; }
.dashboard-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 24px 0 11px; }
.dashboard-section-heading > div { display: flex; min-width: 0; align-items: center; gap: 8px; }
.dashboard-section-heading > div > span { color: #ff6a3d; font-size: 17px; }
.dashboard-section-heading h2 { margin: 0; color: var(--tx); font-size: 20px; font-weight: 700; }
.dashboard-section-heading > p { margin: 0; color: var(--mut); font-size: 11px; text-align: right; }
.dashboard-assets-grid .dashboard-card { align-self: stretch; }
.dashboard-inventory-total { display: flex; align-items: baseline; gap: 8px; margin: 7px 0 15px; }
.dashboard-inventory-total strong { color: var(--tx); font-size: 28px; font-weight: 720; font-variant-numeric: tabular-nums; }
.dashboard-inventory-total > span { color: var(--mut); font-size: 11px; }
.dashboard-card > h3 { margin: 15px 0 7px; color: var(--mut); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-breakdown-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.dashboard-breakdown-list > li { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 1px; border-bottom: 1px solid var(--bd); color: var(--mut); font-size: 12px; }
.dashboard-breakdown-list > li:last-child { border-bottom: 0; }
.dashboard-breakdown-list > li > span { overflow: hidden; text-overflow: ellipsis; }
.dashboard-breakdown-list > li > strong { flex: 0 0 auto; color: var(--tx); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dashboard-breakdown-list .dashboard-breakdown-empty { justify-content: flex-start; color: var(--mut); font-size: 11px; }
.dashboard-details-heading { margin-top: 25px; }
.dashboard-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dashboard-data-note { margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--bd); border-radius: 8px; background: var(--surface-muted); color: var(--mut); font-size: 10px; line-height: 1.55; }
.dashboard-library-error { margin: 12px 0 0; color: #b42318; font-size: 12px; }
.dashboard-library-error[hidden] { display: none; }
.hr-dashboard-workspace { min-width: 0; }
.hr-dashboard-heading { align-items: flex-end; margin-bottom: 16px; padding: 22px 24px; border: 1px solid #f1d8c9; border-radius: 12px; background: linear-gradient(104deg,rgba(255,255,255,.98) 0%,rgba(255,250,247,.92) 66%,rgba(255,244,238,.76) 100%),url("../assets/dashboard-header.png") right center / auto 100% no-repeat; box-shadow: 0 8px 24px rgba(140,65,22,.06); }
.hr-dashboard-heading .eyebrow { display: block; margin-bottom: 6px; color: #c74710; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.hr-dashboard-heading h1 { margin: 0; color: #172b3a; font-size: clamp(26px,2.5vw,34px); letter-spacing: -.025em; }
.hr-dashboard-heading p { max-width: 620px; margin: 7px 0 0; color: #526171; font-size: 12px; }
.hr-dashboard-heading .dashboard-refresh-button { flex: 0 0 auto; background: #fff; }
.hr-dashboard-kpi-grid .dashboard-kpi:first-child { border-top: 3px solid #ef5b20; }
.hr-dashboard-kpi-grid .dashboard-kpi:nth-child(2) { border-top: 3px solid #3b82f6; }
.hr-dashboard-kpi-grid .dashboard-kpi:nth-child(3) { border-top: 3px solid #16a34a; }
.hr-dashboard-kpi-grid .dashboard-kpi:nth-child(4) { border-top: 3px solid #8b5cf6; }
.hr-dashboard-grid { grid-template-columns: minmax(0,1.45fr) minmax(290px,.85fr); }
.hr-dashboard-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 14px; }
.hr-dashboard-actions { flex-wrap: wrap; margin-top: 16px; }
.hr-performance-cycles { list-style: none; margin: 14px 0 0; padding: 0; }
.hr-performance-cycles li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #e9edf1; }
.hr-performance-cycle-name { display: grid; min-width: 0; gap: 5px; }
.hr-performance-cycle-name strong { color: #263b4b; font-size: 12px; overflow-wrap: anywhere; }
.hr-performance-cycle-name small, .hr-performance-empty { color: #75838e; font-size: 11px; }
.hr-performance-cycle-counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.hr-performance-cycle-counts span { padding: 5px 8px; border-radius: 6px; background: #f3f6f8; color: #657786; font-size: 10px; white-space: nowrap; }
.hr-performance-cycle-counts strong { color: #263b4b; font-size: 12px; }
@media (max-width: 760px) { .hr-dashboard-heading { align-items: flex-start; flex-direction: column; padding: 18px; } .hr-dashboard-heading .dashboard-refresh-button { width: 100%; } .hr-dashboard-grid,.hr-dashboard-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) {
  .dashboard-heading { align-items: flex-start; flex-wrap: wrap; }
  .dashboard-period-controls { flex-wrap: wrap; }
  .dashboard-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-chart-grid { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .9fr); }
  .dashboard-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .dashboard-chart-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .dashboard-section-heading > p { text-align: left; }
}
@media (max-width: 640px) {
  .dashboard-heading { align-items: stretch; flex-direction: column; }
  .dashboard-period-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .dashboard-period-controls label { min-width: 0; }
  #app .dashboard-current-month,
  #app .dashboard-refresh-button { width: 100%; min-height: 38px; padding-inline: 8px; font-size: 10px; }
  .dashboard-kpi-grid { gap: 8px; }
  .dashboard-kpi { min-height: 102px; padding: 12px; }
  .dashboard-card { padding: 14px; }
  .dashboard-chart-area { height: 250px; }
  .dashboard-donut-area { height: 210px; }
  .dashboard-detail-grid { grid-template-columns: minmax(0, 1fr); }
}
.dashboard-page { display: grid; min-width: 0; gap: 16px; }
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 190px;
  padding: 26px 30px;
  overflow: hidden;
  border: 1px solid #eee7e0;
  border-radius: 14px;
  background: #fff url("../assets/dashboard-header.png") no-repeat right center / auto 190px;
  color: #202936;
  box-shadow: 0 8px 24px rgba(181, 71, 8, .07);
}
.dashboard-hero-copy { min-width: 0; max-width: calc(100% - 230px); text-align: left; }
.dashboard-hero-copy h1 { margin: 0 0 9px; color: #202936; font-size: clamp(27px, 3.2vw, 39px); font-weight: 730; letter-spacing: -.035em; line-height: 1.12; text-align: left; }
.dashboard-hero-copy p { max-width: 1000px; margin: 0; color: #4b5563; font-size: 13px; line-height: 1.6; text-align: left; }
.dashboard-hero-copy p strong { color: #202936; font-weight: 750; }
.dashboard-toolbar { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid var(--bd); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow-sm); }
.dashboard-period-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.dashboard-period-controls label { min-width: 120px; }
.dashboard-company-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.dashboard-company-filter > span { margin-right: 3px; color: var(--mut); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
#app .dashboard-company-filter button,
#app .dashboard-presentation-button,
#app .dashboard-link-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--bd-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--tx);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.25;
}
#app .dashboard-company-filter button:hover,
#app .dashboard-company-filter button:focus-visible,
#app .dashboard-presentation-button:hover,
#app .dashboard-presentation-button:focus-visible,
#app .dashboard-link-button:hover,
#app .dashboard-link-button:focus-visible {
  transform: none;
  border-color: var(--bd-strong);
  background: var(--surface-muted);
  color: var(--tx);
  box-shadow: none;
}
#app .dashboard-company-filter button.is-active { border-color: #c94d20; background: #fff4ed; color: #9a3412; }
#app .dashboard-company-filter button.is-active:hover,
#app .dashboard-company-filter button.is-active:focus-visible { background: #fff4ed; color: #9a3412; }
.dashboard-section-nav { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 2px; }
.dashboard-section-nav a { padding: 6px 9px; border: 1px solid var(--bd); border-radius: 99px; background: var(--surface); color: var(--mut); font-size: 10px; font-weight: 620; text-decoration: none; }
.dashboard-section-nav a:hover,
.dashboard-section-nav a:focus-visible { border-color: var(--bd-strong); background: var(--surface-muted); color: var(--tx); outline: none; }
.dashboard-kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.dashboard-kpi { min-height: 108px; padding: 14px 15px; }
.dashboard-kpi-pending { border-style: dashed; background: #fcfcfb; }
.dashboard-kpi-pending > strong { color: #98a2b3; }
.dashboard-kpi-pending > small { color: var(--mut); }
.dashboard-module-section { min-width: 0; scroll-margin-top: 18px; }
.dashboard-section-heading {
  position: static;
  z-index: auto;
  top: auto;
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 7px 0 11px;
  padding: 0;
  border: 0;
  background: transparent;
  isolation: auto;
  text-align: left;
}
.dashboard-section-heading > div { align-items: center; text-align: left; }
.dashboard-section-heading > div > span { flex: 0 0 auto; }
.dashboard-section-heading .eyebrow { display: block; margin-bottom: 3px; color: var(--mut); font-size: 9px; letter-spacing: .12em; }
.dashboard-section-heading h2 { font-size: 20px; text-align: left; }
.dashboard-section-heading > p { text-align: left; }
.dashboard-section-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.dashboard-section-actions > p { margin: 0; color: var(--mut); font-size: 11px; text-align: right; }
.dashboard-chart-grid { gap: 12px; }
.dashboard-card { padding: 17px 18px; }
.dashboard-card-heading h2,
.dashboard-card-heading h3,
.dashboard-card > h3 { margin: 0; color: var(--tx); font-size: 14px; font-weight: 680; }
.dashboard-card-heading h3 { font-size: 14px; }
.dashboard-card-heading p { max-width: 60ch; }
.dashboard-chart-area { height: 276px; }
.dashboard-chart-area-short { height: 232px; }
.dashboard-assets-extra { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(220px, .9fr)); gap: 12px; margin-top: 12px; }
.dashboard-assets-extra > .dashboard-card { height: 100%; }
.dashboard-assets-chart-grid { grid-template-columns: minmax(0, 2fr) minmax(260px, .85fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.dashboard-assets-donut { grid-column: 1; grid-row: 1; }
.dashboard-assets-evolution { grid-column: 1; grid-row: 2; }
.dashboard-assets-summary { grid-column: 2; grid-row: 1 / span 2; }
.dashboard-connection-card { display: flex; min-height: 100%; flex-direction: column; }
.dashboard-connection-card .dashboard-card-heading { align-items: flex-start; }
.dashboard-connection-status { flex: 0 0 auto; padding: 4px 8px; border: 1px solid var(--bd); border-radius: 99px; background: var(--surface-muted); color: var(--mut); font-size: 9px; font-weight: 650; white-space: nowrap; }
.dashboard-connection-message { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 11px; border: 1px dashed var(--bd-strong); border-radius: 8px; background: #fcfcfb; }
.dashboard-connection-message > span { color: var(--ac-ink); font-size: 15px; line-height: 1.2; }
.dashboard-connection-message strong { color: var(--tx); font-size: 11px; font-weight: 650; }
.dashboard-connection-message p { margin: 4px 0 0; color: var(--mut); font-size: 10px; line-height: 1.5; }
.dashboard-placeholder-list { display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; }
.dashboard-placeholder-list li { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 9px; padding: 7px 1px; border-bottom: 1px solid var(--bd); color: var(--mut); font-size: 10px; line-height: 1.35; }
.dashboard-placeholder-list li:last-child { border-bottom: 0; }
.dashboard-placeholder-list li strong { flex: 0 0 auto; color: #98a2b3; font-size: 9px; font-weight: 600; }
.dashboard-company-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--dashboard-company-color, var(--ac)); }
.dashboard-asset-note { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 11px 0 0; padding: 8px 1px 0; border-top: 1px solid var(--bd); color: var(--mut); font-size: 10px; line-height: 1.4; }
.dashboard-asset-note strong { flex: 0 0 auto; color: #98a2b3; font-size: 9px; font-weight: 600; }
.dashboard-card > h4 { margin: 15px 0 6px; color: var(--mut); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-data-note { margin: 0; }
.dashboard-refresh-error { margin: 0; padding: 9px 11px; border-radius: 8px; background: #fef3f2; }
.dashboard-library-error { margin: 0; }
.dashboard-presentation-mode { background: #fff; }
body.dashboard-presentation-mode { overflow: hidden; }
body.dashboard-presentation-mode .dashboard-page > :not(.dashboard-slide) { display: none !important; }
body.dashboard-presentation-mode .dashboard-slide[hidden] { display: none !important; }
body.dashboard-presentation-mode .dashboard-slide { margin: 0; transform-origin: top left; }
#dashboard-slide-controls { position: fixed; z-index: 500; inset: auto 0 0; display: flex; justify-content: center; align-items: center; gap: 20px; min-height: 64px; padding: 10px; border-top: 1px solid #e4e7ec; background: #fff; box-shadow: 0 -4px 16px #1018280a; }
#dashboard-slide-controls button { padding: 9px 16px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff4ed; color: #a83e12; cursor: pointer; }
#dashboard-slide-controls button:disabled { opacity: .4; cursor: default; }
body.dashboard-presentation-mode #site-header,
body.dashboard-presentation-mode .site-footer,
body.dashboard-presentation-mode #app .app-sidebar,
body.dashboard-presentation-mode #app .mobile-nav-controls { display: none !important; }
body.dashboard-presentation-mode #app { display: block; min-height: 100vh; margin: 0; padding: 18px; }
body.dashboard-presentation-mode #app .app-content { width: 100%; max-width: 1800px; margin: 0 auto; }
body.dashboard-presentation-mode #app .dashboard-page { gap: 14px; }
@media (max-width: 1100px) {
  .dashboard-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-assets-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-assets-extra > .dashboard-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .dashboard-hero { min-height: 0; padding: 138px 22px 22px; background-position: right top; background-size: auto 130px; }
  .dashboard-hero-copy { max-width: none; }
  .dashboard-section-heading { align-items: flex-start; }
  .dashboard-section-actions { justify-content: flex-start; }
  .dashboard-section-actions > p { text-align: left; }
  .dashboard-assets-chart-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .dashboard-assets-chart-grid > .dashboard-card { grid-column: auto; grid-row: auto; }
}
@media (max-width: 640px) {
  .dashboard-page { gap: 12px; }
  .dashboard-hero { min-height: 0; padding: 138px 17px 20px; background-position: right top; background-size: auto 130px; }
  .dashboard-hero-copy { max-width: none; }
  .dashboard-hero-copy h1 { font-size: 27px; }
  .dashboard-hero-copy p { font-size: 12px; }
  .dashboard-toolbar { padding: 11px; }
  .dashboard-period-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-period-controls label { min-width: 0; }
  #app .dashboard-period-controls .dashboard-current-month,
  #app .dashboard-period-controls .dashboard-refresh-button,
  #app .dashboard-period-controls .dashboard-presentation-button { width: 100%; min-height: 38px; padding-inline: 8px; font-size: 10px; }
  .dashboard-company-filter { align-items: flex-start; }
  .dashboard-company-filter > span { width: 100%; }
  .dashboard-company-filter button { flex: 0 0 auto; }
  .dashboard-section-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 7px; scrollbar-width: thin; }
  .dashboard-section-nav a { flex: 0 0 auto; }
  .dashboard-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dashboard-kpi:last-child { grid-column: 1 / -1; }
  .dashboard-kpi { min-height: 98px; padding: 12px; }
  .dashboard-section-heading { flex-direction: column; gap: 7px; }
  .dashboard-section-heading > p { text-align: left; }
  .dashboard-section-actions { align-items: flex-start; }
  .dashboard-assets-extra { grid-template-columns: minmax(0, 1fr); }
  .dashboard-assets-extra > .dashboard-card:first-child { grid-column: auto; }
  .dashboard-card { padding: 14px; }
  .dashboard-chart-area { height: 250px; }
  .dashboard-chart-area-short { height: 220px; }
  body.dashboard-presentation-mode #app { padding: 10px; }
}

/* Centro de catálogos */
.catalog-center { min-width: 0; }
.catalog-center .catalog-page-heading { margin: 1px 0 23px; }
.catalog-center .catalog-page-heading h1 { margin: 0 0 8px; color: var(--tx); font-size: clamp(26px, 2.5vw, 32px); font-weight: 720; letter-spacing: -.035em; line-height: 1.2; }
.catalog-center .catalog-page-heading p { max-width: 720px; margin: 0; color: var(--mut); font-size: 14px; line-height: 1.6; }
.catalog-center .catalog-layout { display: grid; min-width: 0; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 20px; }
.catalog-center .catalog-navigation { min-width: 0; padding: 9px; border: 1px solid var(--bd); border-radius: 12px; background: var(--surface); }
.catalog-center .catalog-navigation-heading { margin: 0; padding: 11px 10px 14px; color: var(--mut); }
.catalog-center .catalog-navigation-heading h2 { margin: 0 0 5px; color: #344054; font-size: 14px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.catalog-center .catalog-navigation-heading p { margin: 0; color: #667085; font-size: 12px; font-weight: 400; line-height: 1.5; }
.catalog-center .catalog-nav-group { min-width: 0; border-top: 1px solid #eef0f3; }
.catalog-center .catalog-nav-group > summary { display: flex; min-width: 0; min-height: 51px; align-items: center; gap: 9px; padding: 11px 9px; border-radius: 7px; color: #344054; cursor: pointer; list-style: none; }
.catalog-center .catalog-nav-group > summary::-webkit-details-marker { display: none; }
.catalog-center .catalog-nav-group > summary:hover { background: #f8f9fb; }
.catalog-center .catalog-group-icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; align-items: center; justify-content: center; color: #667085; }
.catalog-center .catalog-group-icon svg { display: block; width: 20px; height: 20px; }
.catalog-center .catalog-group-name { flex: 1; min-width: 0; color: inherit; font-size: 14px; font-weight: 650; line-height: 1.35; }
.catalog-center .catalog-group-chevron { flex: 0 0 auto; color: #98a2b3; font-size: 21px; line-height: 1; transition: transform .15s ease; }
.catalog-center .catalog-nav-group[open] > summary .catalog-group-chevron { transform: rotate(90deg); }
.catalog-center .catalog-nav-items { display: grid; min-width: 0; gap: 3px; padding: 0 0 10px; }
#app .catalog-center .catalog-nav-link { display: flex; width: 100%; min-width: 0; min-height: 40px; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 11px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #475467; font-size: 13px; font-weight: 550; line-height: 1.35; text-align: left; box-shadow: none; }
.catalog-center .catalog-nav-link > span { min-width: 0; overflow-wrap: anywhere; }
.catalog-center .catalog-nav-link small { display: inline-flex; min-width: 23px; min-height: 21px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 2px 5px; border-radius: 5px; background: #f2f4f7; color: #667085; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
#app .catalog-center .catalog-nav-link:hover { transform: none; border-color: #e4e7ec; background: #f8f9fb; color: var(--tx); }
#app .catalog-center .catalog-nav-link.is-selected,
#app .catalog-center .catalog-nav-link[aria-current="page"] { border-color: #f7d9cb; background: #fff4ed; color: var(--ac-ink); font-weight: 700; }
#app .catalog-center .catalog-nav-link.catalog-nav-child { width: calc(100% - 12px); margin-left: 12px; padding-left: 15px; border-left-color: #e4e7ec; border-radius: 0 7px 7px 0; font-size: 12px; }
#app .catalog-center .catalog-nav-link.catalog-nav-child.is-selected,
#app .catalog-center .catalog-nav-link.catalog-nav-child[aria-current="page"] { border-left: 2px solid var(--ac); }
.catalog-center .catalog-content { min-width: 0; padding: 23px 24px 0; border: 1px solid var(--bd); border-radius: 12px; background: var(--surface); box-shadow: 0 2px 6px rgba(16,24,40,.025); container: catalog-panel / inline-size; }
.catalog-center .catalog-breadcrumb { min-width: 0; margin: 0 0 18px; }
.catalog-center .catalog-breadcrumb ol { display: flex; min-width: 0; flex-wrap: wrap; gap: 5px 8px; margin: 0; padding: 0; list-style: none; }
.catalog-center .catalog-breadcrumb li { display: inline-flex; min-width: 0; align-items: center; gap: 8px; color: var(--mut); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.catalog-center .catalog-breadcrumb li + li::before { color: #b4bbc6; content: "/"; }
.catalog-center .catalog-breadcrumb li:last-child { color: #344054; font-weight: 600; }
#app .catalog-center .catalog-breadcrumb button { display: inline; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 3px; background: transparent; color: #667085; font: inherit; line-height: inherit; text-align: left; box-shadow: none; }
#app .catalog-center .catalog-breadcrumb button:hover { transform: none; background: transparent; color: #344054; text-decoration: underline; text-underline-offset: 3px; }
.catalog-center .catalog-content-heading { display: flex; min-width: 0; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.catalog-center .catalog-content-heading > div { min-width: 0; flex: 1 1 200px; }
.catalog-center .catalog-content-heading h2 { margin: 0 0 6px; color: var(--tx); font-size: 23px; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; overflow-wrap: anywhere; }
.catalog-center .catalog-content-heading p { max-width: 560px; margin: 0; color: var(--mut); font-size: 13px; line-height: 1.6; }
#app .catalog-center .catalog-create-button { min-height: 40px; flex: 0 0 auto; padding: 9px 13px; border-radius: 8px; font-size: 13px; line-height: 1.3; }
.catalog-center .catalog-parent-context { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 9px 13px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fafbfc; }
.catalog-center .catalog-parent-context > div:first-child { flex: 1 1 160px; min-width: 0; }
.catalog-center .catalog-parent-context > div:first-child > span { display: block; margin-bottom: 4px; color: #667085; font-size: 11px; line-height: 1.4; }
.catalog-center .catalog-parent-context strong { display: block; color: #344054; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.catalog-center .catalog-parent-context p { margin: 3px 0 0; color: var(--mut); font-size: 12px; line-height: 1.5; }
.catalog-center .catalog-parent-actions { display: flex; min-width: 0; max-width: 100%; flex-wrap: wrap; align-items: center; gap: 8px; }
.catalog-center .catalog-parent-actions .catalog-row-menu { margin-left: 0; }
.catalog-center .catalog-context-notice { margin: -6px 0 18px; padding: 11px 13px; border: 1px solid #f0e0c8; border-radius: 7px; background: #fffbf3; color: #805725; font-size: 12px; line-height: 1.6; }
.catalog-center .catalog-toolbar { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 0; border: 0; background: transparent; }
.catalog-center .catalog-toolbar .catalog-search { flex: 1 1 200px; min-width: 0; max-width: 420px; min-height: 40px; margin: 0; padding-left: 12px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; }
.catalog-center .catalog-search input { width: 100%; min-width: 0; min-height: 38px; margin: 0; padding: 8px 10px 8px 0; border: 0; background: transparent; color: var(--tx); font-size: 13px; }
.catalog-center .catalog-toolbar .catalog-status-filter { min-width: 0; flex: 0 1 auto; margin: 0; color: #475467; font-size: 12px; font-weight: 550; }
.catalog-center .catalog-status-filter select { max-width: 100%; min-width: 140px; min-height: 40px; border-color: #d0d5dd; border-radius: 8px; background-color: #fff; color: #344054; font-size: 13px; }
.catalog-center .catalog-table-wrap { position: relative; min-width: 0; overflow: visible; }
.catalog-center .catalog-table { width: 100%; min-width: 0; border-spacing: 0; border-collapse: collapse; table-layout: fixed; }
.catalog-center .catalog-table caption { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.catalog-center .catalog-table th { padding: 12px 12px; border-top: 1px solid #e4e7ec; border-bottom: 1px solid #e4e7ec; background: #f8f9fb; color: #667085; font-size: 11px; font-weight: 700; letter-spacing: .035em; line-height: 1.4; text-align: left; }
.catalog-center .catalog-table th:last-child { width: 140px; text-align: right; }
.catalog-center .catalog-table th:nth-last-child(2) { width: 110px; }
.catalog-center .catalog-table th:nth-last-child(3):not(:first-child) { width: 75px; }
.catalog-center .catalog-table td { min-width: 0; padding: 15px 12px; border-bottom: 1px solid #eef0f3; color: #344054; font-size: 14px; line-height: 1.5; vertical-align: middle; overflow-wrap: anywhere; }
.catalog-center .catalog-table tbody tr:hover { background: #fcfcfd; }
.catalog-center .catalog-table tbody tr:last-child td { border-bottom: 0; }
.catalog-center .catalog-name strong { display: block; color: #344054; font-size: 14px; font-weight: 600; line-height: 1.5; }
.catalog-center .catalog-name > span { display: block; margin-top: 3px; color: var(--mut); font-size: 12px; }
.catalog-center .catalog-category-count { color: var(--mut); font-size: 13px; font-variant-numeric: tabular-nums; }
.catalog-center .catalog-status { width: auto; min-width: 70px; min-height: 25px; padding: 3px 9px; font-size: 11px; line-height: 1.5; }
.catalog-center .catalog-status.is-active { border-color: #c3e8d0; background: #edf8f1; color: #217047; }
.catalog-center .catalog-status.is-inactive { border-color: #e4e7ec; background: #f2f4f7; color: #667085; }
.catalog-center .catalog-row-actions { position: relative; text-align: right; white-space: nowrap; }
#app .catalog-center .catalog-edit-button { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; color: #344054; font-size: 12px; font-weight: 600; line-height: 1.25; box-shadow: none; }
#app .catalog-center .catalog-edit-button:hover { transform: none; border-color: #b9c1cd; background: #f8f9fb; color: var(--tx); }
.catalog-center .catalog-edit-button svg { width: 14px; height: 14px; }
.catalog-center .catalog-row-menu { position: relative; display: inline-block; margin-left: 5px; vertical-align: middle; text-align: left; white-space: normal; }
.catalog-center .catalog-row-menu > summary { display: inline-flex; width: 32px; min-height: 34px; align-items: center; justify-content: center; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; color: #475467; cursor: pointer; font-size: 23px; font-weight: 600; line-height: 1; list-style: none; }
.catalog-center .catalog-row-menu > summary::-webkit-details-marker { display: none; }
.catalog-center .catalog-row-menu > summary:hover,
.catalog-center .catalog-row-menu[open] > summary { border-color: #b9c1cd; background: #f8f9fb; }
.catalog-center .catalog-row-menu[open] { z-index: 20; }
.catalog-center .catalog-menu-options { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; display: grid; width: 176px; gap: 3px; padding: 5px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; box-shadow: 0 10px 26px rgba(16,24,40,.12); }
#app .catalog-center .catalog-menu-options > button { display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: flex-start; gap: 8px; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: #344054; font-size: 13px; font-weight: 500; line-height: 1.3; text-align: left; box-shadow: none; }
#app .catalog-center .catalog-menu-options > button:hover { transform: none; background: #f2f4f7; color: var(--tx); }
#app .catalog-center .catalog-menu-options > button.is-danger { color: #b42318; }
#app .catalog-center .catalog-menu-options > button.is-danger:hover { background: #fef3f2; color: #b42318; }
#app .catalog-center .catalog-drilldown { display: inline-flex; min-width: 0; max-width: 100%; min-height: 30px; align-items: center; justify-content: flex-start; gap: 9px; padding: 1px 0; border: 0; border-radius: 3px; background: transparent; color: #344054; font-size: 14px; font-weight: 650; line-height: 1.5; text-align: left; white-space: normal; box-shadow: none; overflow-wrap: anywhere; }
#app .catalog-center .catalog-drilldown:hover { transform: none; background: transparent; color: var(--ac-ink); }
.catalog-center .catalog-drilldown > span:last-child { color: #98a2b3; font-size: 18px; }
.catalog-center .catalog-system-note { display: inline-flex; max-width: 100%; align-items: center; gap: 5px; color: #667085; font-size: 11px; font-weight: 550; line-height: 1.5; white-space: normal; }
.catalog-center .catalog-results-summary { display: block; min-width: 0; margin: 4px 0 0; padding: 15px 0 17px; border-top: 1px solid #e4e7ec; color: var(--mut); font-size: 12px; line-height: 1.5; }
.catalog-center .catalog-results-summary strong { color: #475467; font-weight: 600; }
.catalog-parent-field small { display: block; margin-top: 5px; color: #667085; font-size: 11px; line-height: 1.4; }
.catalog-relation-list { display: grid; max-height: min(620px, calc(100vh - 300px)); gap: 10px; overflow-y: auto; padding: 2px 7px 2px 1px; scrollbar-gutter: stable; }
.catalog-relation-list::-webkit-scrollbar { width: 8px; }
.catalog-relation-list::-webkit-scrollbar-thumb { border-radius: 999px; background: #cfd5dc; }
.catalog-relation-list::-webkit-scrollbar-track { background: #f8f9fb; }
.catalog-relation-card > summary { display: flex; min-height: 38px; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.catalog-relation-card > summary::-webkit-details-marker { display: none; }
.catalog-relation-card > summary::before { color: #98a2b3; content: '›'; font-size: 20px; line-height: 1; transition: transform .15s ease; }
.catalog-relation-card[open] > summary::before { transform: rotate(90deg); }
.catalog-relation-card > summary .catalog-relation-head { flex: 1 1 auto; }
.catalog-relation-card { padding: 14px 16px; border: 1px solid #e4e7ec; border-radius: 10px; background: #fff; }
.catalog-relation-card.is-unassigned { background: #fffbf3; border-color: #f0e0c8; }
.catalog-relation-head { display: flex; min-width: 0; align-items: center; gap: 10px; }
.catalog-relation-head strong { flex: 1 1 auto; color: #344054; font-size: 14px; }
.catalog-relation-count { color: #667085; font-size: 11px; }
.catalog-relation-models { display: grid; gap: 4px; margin: 10px 0 8px 18px; padding: 0 0 0 14px; border-left: 1px solid #e4e7ec; list-style: none; }
.catalog-relation-model { display: flex; min-height: 30px; align-items: center; gap: 8px; color: #475467; font-size: 13px; }
.catalog-relation-model > span { flex: 1 1 auto; }
.catalog-inline-link, .catalog-inline-add { min-height: 28px; padding: 4px 8px; border: 0; border-radius: 5px; background: transparent; color: var(--ac-ink); cursor: pointer; font-size: 11px; font-weight: 650; }
.catalog-inline-link:hover, .catalog-inline-add:hover { background: #fff4ed; }
.catalog-inline-add { margin-left: 18px; }
.catalog-inline-editor { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 7px; }
.catalog-inline-editor input { flex: 1 1 220px; min-height: 34px; padding: 6px 9px; font-size: 12px; }
.catalog-inline-editor .btn-primary, .catalog-inline-editor .btn-secondary { min-height: 32px; padding: 5px 9px; font-size: 11px; }
.catalog-inline-hint { margin: 8px 0 0; color: #805725; font-size: 12px; }
.ticket-requester-profile-grid { display: none !important; }
.equipment-technical-hidden { display: none !important; }
.requester-home-hero { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; padding: 24px 26px; border: 1px solid #ffc9aa; border-radius: 14px; background: linear-gradient(105deg,#fff6ef 0%,#fff 72%); box-shadow: 0 8px 22px rgba(180,72,21,.08); }
.requester-home-hero .eyebrow { color: #c74710; }
.requester-home-hero h2 { margin: 4px 0 3px; color: #172b3a; font-size: 19px; }
.requester-home-hero p { margin: 0; color: #667085; font-size: 12px; }
.requester-home-cta { min-height: 46px; flex: 0 0 auto; padding-inline: 20px; font-size: 14px; }
.requester-home-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.requester-home-actions .requester-home-certificates { min-height: 46px; padding-inline: 18px; }
.ticket-create-placeholder { display: none; }
@media(max-width:640px){.requester-home-hero{align-items:stretch; flex-direction:column;}.requester-home-actions{width:100%; align-items:stretch; flex-direction:column;}.requester-home-actions button{width:100%;}.requester-home-cta{width:100%;}}
.ticket-form-choice-trigger:disabled { cursor: not-allowed; opacity: .55; }
.equipment-catalog-select.is-disabled { opacity: .58; }
.equipment-catalog-select.is-disabled input { cursor: not-allowed; }
.requester-ticket-compact { padding: 14px 18px; }
.requester-ticket-compact .form-section-title { margin-bottom: 11px; }
.requester-ticket-compact .form-grid { gap: 10px 14px; }
.requester-ticket-compact .field { margin-bottom: 7px; }
.requester-ticket-description textarea { min-height: 190px; }
.catalog-center .catalog-empty { display: grid; min-height: 236px; justify-items: center; align-content: center; gap: 8px; padding: 28px 20px; text-align: center; }
.catalog-center .catalog-empty h3 { margin: 0; color: #344054; font-size: 16px; font-weight: 650; }
.catalog-center .catalog-empty p { max-width: 400px; margin: 0; color: var(--mut); font-size: 13px; line-height: 1.65; }
.catalog-center .catalog-action-error { margin: 0 0 16px; padding: 11px 13px; border-radius: 7px; background: #fef3f2; font-size: 13px; }
#app .catalog-center button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.catalog-center .catalog-nav-group > summary:focus-visible,
.catalog-center .catalog-row-menu > summary:focus-visible,
#app .catalog-center .catalog-breadcrumb button:focus-visible,
#app .catalog-center .catalog-nav-link:focus-visible,
#app .catalog-center .catalog-edit-button:focus-visible,
#app .catalog-center .catalog-menu-options > button:focus-visible,
#app .catalog-center .catalog-drilldown:focus-visible { outline: 3px solid rgba(233,91,37,.28); outline-offset: 2px; }
@media (max-width: 1100px) {
  .catalog-center .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .catalog-center .catalog-content { padding: 20px 18px 0; }
  .catalog-center .catalog-navigation { padding: 6px 10px; }
  .catalog-center .catalog-navigation-heading { padding: 10px 8px; }
  .catalog-center .catalog-nav-group > summary { min-height: 46px; padding: 10px 8px; }
  .catalog-center .catalog-nav-items { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding: 0 0 9px; }
  #app .catalog-center .catalog-nav-link.catalog-nav-child { width: 100%; margin: 0; padding-left: 16px; }
}
@container catalog-panel (max-width: 500px) {
  .catalog-center .catalog-table { display: block; table-layout: auto; }
  .catalog-center .catalog-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .catalog-center .catalog-table tbody { display: grid; gap: 12px; width: 100%; }
  .catalog-center .catalog-table tr { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); padding: 4px 13px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; }
  .catalog-center .catalog-table td { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f1f3; font-size: 13px; white-space: normal; }
  .catalog-center .catalog-table td::before { flex: 0 0 auto; color: #667085; content: attr(data-label); font-size: 12px; font-weight: 500; }
  .catalog-center .catalog-table td:last-child { border-bottom: 0; }
  .catalog-center .catalog-table tbody tr:last-child td:not(:last-child) { border-bottom: 1px solid #f0f1f3; }
  .catalog-center .catalog-table td.catalog-name { display: block; padding: 13px 0 11px; }
  .catalog-center .catalog-table td.catalog-name::before { display: none; }
  .catalog-center .catalog-name strong,
  #app .catalog-center .catalog-drilldown { font-size: 14px; }
  .catalog-center .catalog-table td.catalog-row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0; }
  .catalog-center .catalog-table td.catalog-row-actions::before { margin-right: auto; }
  .catalog-center .catalog-row-menu { margin-left: 7px; }
  .catalog-center .catalog-menu-options { width: 174px; }
}
@media (max-width: 640px) {
  .catalog-center .catalog-page-heading { margin-bottom: 18px; }
  .catalog-center .catalog-page-heading h1 { font-size: 27px; }
  .catalog-center .catalog-page-heading p { font-size: 13px; }
  .catalog-center .catalog-layout { gap: 14px; }
  .catalog-center .catalog-navigation { border-radius: 10px; }
  .catalog-center .catalog-content { padding: 18px 14px 0; border-radius: 10px; }
  .catalog-center .catalog-breadcrumb { margin-bottom: 14px; }
  .catalog-center .catalog-breadcrumb li { font-size: 11px; }
  .catalog-center .catalog-content-heading { gap: 14px; margin-bottom: 18px; }
  .catalog-center .catalog-content-heading > div { flex-basis: 100%; }
  .catalog-center .catalog-content-heading h2 { font-size: 22px; }
  #app .catalog-center .catalog-create-button { width: 100%; min-height: 42px; }
  .catalog-center .catalog-toolbar { gap: 10px; margin-bottom: 14px; }
  .catalog-center .catalog-toolbar .catalog-search { max-width: none; flex-basis: 100%; }
  .catalog-center .catalog-toolbar .catalog-status-filter { width: 100%; justify-content: space-between; }
  .catalog-center .catalog-status-filter select { flex: 1; min-width: 0; max-width: 210px; }
  .catalog-center .catalog-parent-context { padding: 12px; }
  .catalog-center .catalog-table { display: block; table-layout: auto; }
  .catalog-center .catalog-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .catalog-center .catalog-table tbody { display: grid; gap: 12px; width: 100%; }
  .catalog-center .catalog-table tr { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); padding: 4px 13px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; }
  .catalog-center .catalog-table td { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f1f3; font-size: 13px; white-space: normal; }
  .catalog-center .catalog-table td::before { flex: 0 0 auto; color: #667085; content: attr(data-label); font-size: 12px; font-weight: 500; }
  .catalog-center .catalog-table td:last-child { border-bottom: 0; }
  .catalog-center .catalog-table tbody tr:last-child td:not(:last-child) { border-bottom: 1px solid #f0f1f3; }
  .catalog-center .catalog-table td.catalog-name { display: block; padding: 13px 0 11px; }
  .catalog-center .catalog-table td.catalog-name::before { display: none; }
  .catalog-center .catalog-name strong,
  #app .catalog-center .catalog-drilldown { font-size: 14px; }
  .catalog-center .catalog-table td.catalog-row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0; }
  .catalog-center .catalog-table td.catalog-row-actions::before { margin-right: auto; }
  .catalog-center .catalog-row-menu { margin-left: 7px; }
  .catalog-center .catalog-menu-options { width: 174px; }
  .catalog-center .catalog-results-summary { margin-top: 16px; padding: 13px 0 15px; }
  .catalog-center .catalog-empty { min-height: 215px; padding-inline: 12px; }
}
@media (max-width: 380px) {
  .catalog-center .catalog-nav-items { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-center .catalog-group-chevron { transition: none; }
}

/* Licencias */
.license-page { min-width: 0; }
.license-page > .page-heading { align-items: flex-end; }
.license-create-button { flex: 0 0 auto; }
.license-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.license-metrics article { display: grid; min-width: 0; gap: 6px; padding: 16px 18px; border: 1px solid var(--bd); border-radius: 10px; background: #fff; }
.license-metrics article > span { color: #667085; font-size: 11px; font-weight: 650; }
.license-metrics article > strong { color: var(--tx); font-size: 25px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.license-metrics article > small { color: var(--mut); font-size: 11px; }
.license-metrics article.is-warning > strong { color: #9a6700; }
.license-metrics article.is-danger > strong { color: #b42318; }
.license-panel { min-width: 0; }
.license-panel-head { min-height: 76px; }
.license-expiry-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #f2cb93; border-radius: 9px; background: #fffaeb; color: #7a4210; }
.license-expiry-alert p { margin: 4px 0 0; font-size: 12px; }
.license-expiry-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.license-expiry-actions button { min-height: 36px; border-color: #d5a25a; color: #7a4210; font-size: 12px; }
.license-toolbar { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(170px, .8fr) minmax(170px, .8fr); gap: 14px; padding: 0 22px 18px; }
.license-search, .license-filter { min-width: 0; }
.license-search > label, .license-filter > label { display: block; margin-bottom: 6px; color: var(--mut); font-size: 11px; font-weight: 650; }
.license-search .search-field { min-height: 40px; border-color: var(--bd-strong); background: #fff; }
.license-search .search-field input { min-width: 0; }
.license-filter select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--bd-strong); border-radius: 7px; background: #fff; color: var(--tx); font-size: 12px; }
.license-filter select:focus-visible { outline: 3px solid rgba(233,91,37,.2); outline-offset: 1px; border-color: var(--ac); }
.license-table { min-width: 1020px; table-layout: fixed; }
.license-table th:nth-child(1) { width: 175px; }
.license-table th:nth-child(2) { width: 235px; }
.license-table th:nth-child(3) { width: 230px; }
.license-table th:nth-child(4) { width: auto; }
.license-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.license-user { display: flex; min-width: 0; align-items: flex-start; gap: 9px; }
.license-user > div { display: grid; min-width: 0; gap: 4px; }
.license-user strong { color: var(--tx); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.license-user small { color: var(--mut); font-size: 10px; line-height: 1.45; }
.license-avatar { display: inline-grid; width: 30px; min-width: 30px; height: 30px; place-items: center; border: 1px solid #e6eaf0; border-radius: 50%; background: #f6f7f9; color: #596579; font-size: 12px; font-weight: 700; }
.license-assignment-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.license-assignment { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 1px solid #e9edf2; border-radius: 8px; background: #fbfcfd; }
.license-assignment-copy { display: grid; min-width: 0; gap: 5px; }
.license-assignment-title { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 7px; }
.license-assignment-title > strong { color: var(--tx); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.license-assignment-copy > p { margin: 0; color: var(--mut); font-size: 10px; line-height: 1.45; }
.license-assignment-copy > small { color: #667085; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.license-status { display: inline-flex; min-height: 21px; align-items: center; padding: 3px 7px; border: 1px solid #d0d5dd; border-radius: 999px; background: #f8fafc; color: #475467; font-size: 9px; font-weight: 650; white-space: nowrap; }
.license-status.is-valid { border-color: #b7e4c7; background: #eefaf2; color: #18794e; }
.license-status.is-soon { border-color: #f5d58a; background: #fff8e6; color: #8a5b00; }
.license-status.is-expired { border-color: #f1b6b0; background: #fff1f0; color: #b42318; }
.license-status.is-review { border-color: #d0d5dd; background: #f2f4f7; color: #475467; }
.license-edit { display: inline-grid; width: 32px; min-width: 32px; height: 32px; min-height: 32px; place-items: center; padding: 0; border: 1px solid var(--bd); border-radius: 7px; background: #fff; color: #667085; }
.license-edit svg { width: 15px; height: 15px; }
#app .license-edit:hover { transform: none; border-color: #d0d5dd; background: #f8fafc; color: #344054; box-shadow: none; }
.license-edit:focus-visible { outline: 3px solid rgba(233,91,37,.22); outline-offset: 2px; }
.license-results { margin: 0; padding: 14px 22px 16px; border-top: 1px solid var(--bd); color: var(--mut); font-size: 12px; }
.license-results strong { color: #475467; font-weight: 650; }
.license-empty { min-height: 210px; }
.license-no-results { border-top: 1px solid var(--bd); }
.license-no-results[hidden] { display: none; }
.license-load-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 22px 16px; padding: 11px 12px; border: 1px solid #f1b6b0; border-radius: 8px; background: #fff7f6; color: #b42318; font-size: 12px; }
.license-modal { width: min(100%, 560px); }
.license-modal .modal-body { max-height: min(65vh, 560px); }
.license-modal .field + .field { margin-top: 16px; }
.license-modal .field small { display: block; margin-top: 6px; color: var(--mut); font-size: 11px; line-height: 1.5; }
.license-modal .field textarea { width: 100%; min-height: 80px; resize: vertical; }
.license-optional { color: var(--mut); font-size: 10px; font-weight: 500; }

@media (max-width: 980px) {
  .license-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .license-toolbar { grid-template-columns: minmax(0, 1fr) minmax(170px, .7fr); }
  .license-search { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .license-page > .page-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .license-create-button { align-self: flex-start; }
  .license-metrics { gap: 9px; }
  .license-metrics article { padding: 13px; }
  .license-metrics article > strong { font-size: 22px; }
  .license-panel-head { min-height: 0; padding: 16px 14px; }
  .license-toolbar { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 14px 16px; }
  .license-search { grid-column: auto; }
  .license-table-scroll { padding: 0 12px 12px; overflow: visible; }
  .license-table { display: block; min-width: 0; table-layout: auto; }
  .license-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .license-table tbody { display: grid; gap: 12px; }
  .license-table tr { display: grid; padding: 5px 13px; border: 1px solid var(--bd); border-radius: 9px; background: #fff; }
  .license-table td { display: grid; gap: 7px; padding: 10px 0; border-bottom: 1px solid #eef0f3; font-size: 12px; text-align: left; }
  .license-table td::before { color: var(--mut); content: attr(data-label); font-size: 10px; font-weight: 650; text-align: left; }
  .license-table td:last-child { border-bottom: 0; }
  .license-user { align-items: center; }
  .license-assignment { padding: 9px; }
  .license-results { padding-inline: 14px; }
  .license-load-error { align-items: flex-start; flex-direction: column; margin-inline: 14px; }
}

/* Líneas telefónicas */
.telephony-page { min-width: 0; }
.telephony-panel { min-width: 0; }
.telephony-panel-head { display: flex; min-height: 0; align-items: stretch; flex-direction: column; gap: 18px; padding: 20px 22px; }
.telephony-panel-head h2 { margin: 0 0 4px; color: var(--tx); font-size: 17px; }
.telephony-panel-head p { margin: 0; color: var(--mut); font-size: 12px; }
.telephony-panel-head p strong { color: var(--tx); font-weight: 700; }
.telephony-search { width: 100%; min-width: 0; }
.telephony-search > label { display: block; margin-bottom: 6px; color: var(--mut); font-size: 11px; font-weight: 650; }
.telephony-search .search-field { min-height: 40px; border-color: var(--bd-strong); background: #fff; }
.telephony-search .search-field input { min-width: 0; }
.telephony-table { min-width: 1135px; table-layout: fixed; }
.telephony-table th:nth-child(1) { width: 145px; }
.telephony-table th:nth-child(2) { width: 230px; }
.telephony-table th:nth-child(3) { width: 170px; }
.telephony-table th:nth-child(4) { width: 170px; }
.telephony-table th:nth-child(5) { width: 190px; }
.telephony-table th:nth-child(6) { width: 230px; }
.telephony-table th:nth-child(6),
.telephony-table td:nth-child(6) { padding-right: 24px; }
.telephony-table td { white-space: normal; overflow-wrap: anywhere; }
.telephony-line { color: var(--tx); font-size: 14px; font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }
.telephony-user { display: flex; min-width: 0; align-items: center; gap: 9px; }
.telephony-user strong { min-width: 0; color: var(--tx); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.telephony-plan { display: inline-flex; min-height: 26px; align-items: center; padding: 4px 9px; border: 1px solid #c7d7fe; border-radius: 999px; background: #eef4ff; color: #3448a1; font-size: 11px; font-weight: 650; }
.telephony-plan.is-empty { border-color: var(--bd); background: var(--surface-muted); color: var(--mut); font-weight: 550; }
.telephony-plan-cell { display: flex; min-width: 0; align-items: center; gap: 7px; }
.telephony-plan-cell .telephony-plan { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.telephony-plan-edit { display: inline-grid; width: 32px; min-width: 32px; height: 32px; min-height: 32px; place-items: center; padding: 0; border: 1px solid var(--bd); border-radius: 7px; background: #fff; color: #667085; }
.telephony-plan-edit svg { width: 15px; height: 15px; }
#app .telephony-plan-edit:hover { transform: none; border-color: #f1b99f; background: var(--ac-soft); color: var(--ac-ink); box-shadow: none; }
.telephony-plan-edit:focus-visible { outline: 3px solid rgba(233,91,37,.25); outline-offset: 2px; }
.telephony-plan-modal { width: min(100%, 520px); }
.telephony-plan-modal .modal-body { max-height: none; }
.telephony-plan-modal .field { margin: 0; }
.telephony-plan-modal .field small { display: block; margin-top: 7px; color: var(--mut); font-size: 11px; }
.telephony-plan-choice-control { width: 100%; }
#app .telephony-plan-choice-trigger { width: 100%; min-height: 44px; padding: 10px 12px; border-color: var(--bd-strong); border-radius: 8px; background: #fff; color: var(--tx); font-size: 14px; font-weight: 500; }
#app .telephony-plan-choice-trigger > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#app .telephony-plan-choice-trigger:hover,
#app .telephony-plan-choice-trigger:focus-visible,
#app .telephony-plan-choice-trigger[aria-expanded="true"] { transform: none; border-color: var(--ac); background: #fafafa; color: var(--tx); box-shadow: none; }
.telephony-plan-choice-options { max-height: 220px; }
#app .telephony-plan-choice-options .equipment-choice-option[aria-selected="true"] { background: #fff4ed; color: var(--ac-ink); font-weight: 650; }
.telephony-results { margin: 0; padding: 14px 22px 16px; border-top: 1px solid var(--bd); color: var(--mut); font-size: 12px; }
.telephony-results strong { color: #475467; font-weight: 650; }
.telephony-empty { min-height: 220px; }
.telephony-no-results { border-top: 1px solid var(--bd); }
.telephony-no-results[hidden] { display: none; }

@media (max-width: 780px) {
  .telephony-panel-head { align-items: stretch; flex-direction: column; gap: 15px; }
  .telephony-search { width: 100%; }
}

@media (max-width: 640px) {
  .telephony-panel-head { min-height: 0; padding: 16px 14px; }
  .telephony-table-scroll { padding: 0 12px 12px; overflow: visible; }
  .telephony-table { display: block; min-width: 0; table-layout: auto; }
  .telephony-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .telephony-table tbody { display: grid; gap: 12px; }
  .telephony-table tr { display: grid; padding: 5px 13px; border: 1px solid var(--bd); border-radius: 9px; background: #fff; }
  .telephony-table td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eef0f3; font-size: 12px; text-align: right; }
  .telephony-table td:nth-child(6) { padding-right: 0; }
  .telephony-table td::before { flex: 0 0 auto; color: var(--mut); content: attr(data-label); font-size: 11px; font-weight: 600; text-align: left; }
  .telephony-table td:last-child { border-bottom: 0; }
  .telephony-user { justify-content: flex-end; text-align: right; }
  .telephony-user .avatar { display: none; }
  .telephony-plan-cell { justify-content: flex-end; }
  .telephony-results { padding-inline: 14px; }
}

/* Mesa de servicio: jerarquía operativa y visual empresarial */
.ticket-workspace { display: grid; min-width: 0; gap: 18px; }
.ticket-workspace .ticket-workspace-heading { align-items: center; margin: 0; padding: 4px 2px 2px; }
.ticket-workspace-heading > div:first-child { max-width: 720px; }
.ticket-workspace-heading h1 { margin: 2px 0 5px; font-size: clamp(25px, 2.4vw, 34px); letter-spacing: -.035em; }
.ticket-workspace-heading p { max-width: 680px; color: #667085; line-height: 1.55; }
.ticket-heading-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.ticket-heading-actions .live-indicator { padding: 7px 10px; border: 1px solid #e4e7ec; border-radius: 999px; background: #fff; }
.ticket-heading-actions .live-indicator i { background: #12b76a; box-shadow: 0 0 0 3px #d1fadf; }
.ticket-heading-actions .ticket-create-button { min-height: 44px; padding: 10px 17px; border-radius: 9px; box-shadow: 0 7px 16px rgba(209,68,10,.18); }

.ticket-workspace .ticket-summary { margin: 0; padding: 20px; border-color: #e2e6eb; border-radius: 12px; box-shadow: 0 4px 16px rgba(16,24,40,.045); }
.ticket-workspace .ticket-summary > h2 { margin-bottom: 15px; color: #344054; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.ticket-workspace .ticket-summary-groups { gap: 22px; }
.ticket-workspace .ticket-summary-group + .ticket-summary-group { padding-left: 22px; }
.ticket-workspace .ticket-summary-item { min-height: 54px; align-items: flex-start; flex-direction: column-reverse; justify-content: center; gap: 7px; padding: 10px 12px; border-color: #e5e8ec; border-radius: 9px; background: #fafbfc; }
.ticket-workspace .ticket-summary-item > strong { color: #101828; font-size: 23px; letter-spacing: -.03em; }
.ticket-workspace .ticket-summary-label { color: #667085; font-size: 10px; font-weight: 650; }

#app .ticket-workspace .ticket-workspace-filters { display: grid; grid-template-columns: auto minmax(230px, 1.4fr) repeat(5, minmax(120px, .72fr)) auto; align-items: end; gap: 12px; margin: 0; padding: 16px 18px; border-color: #e2e6eb; border-radius: 12px; box-shadow: 0 4px 16px rgba(16,24,40,.04); }
.ticket-filter-label { display: grid; align-self: center; gap: 2px; padding-right: 5px; }
.ticket-filter-label span, .ticket-panel-kicker { color: #c2410c; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.ticket-filter-label strong { color: #344054; font-size: 11px; white-space: nowrap; }
.ticket-workspace-filters .search-wrap,
.ticket-workspace-filters .filter-field { min-width: 0; }
.ticket-workspace-filters label { color: #475467; font-size: 10px; }
.ticket-workspace-filters input,
.ticket-workspace-filters select { min-height: 40px; border-color: #d0d5dd; border-radius: 8px; background-color: #fff; }

.ticket-workspace .ticket-operations-panel { margin: 0; border-color: #dfe3e8; border-radius: 12px; box-shadow: 0 8px 24px rgba(16,24,40,.055); }
.ticket-operations-panel .ticket-panel-head { min-height: 84px; padding: 17px 21px; border-bottom: 0; }
.ticket-operations-panel .ticket-panel-head h2 { margin: 3px 0 2px; color: #101828; font-size: 17px; }
.ticket-operations-panel .ticket-panel-head p { color: #667085; font-size: 11px; }
.ticket-operations-panel .ticket-refresh-button { width: 38px; height: 38px; border-color: #d0d5dd; border-radius: 8px; background: #fff; }
.ticket-operations-table { min-width: 1040px; }
.ticket-operations-table th { padding: 12px 15px; border-color: #e4e7ec; background: #f7f8fa; color: #475467; font-size: 9px; }
.ticket-operations-table td { height: 72px; padding: 13px 15px; border-color: #eaecf0; font-size: 12px; }
.ticket-operations-table tbody tr:nth-child(even) { background: #fcfcfd; }
.ticket-operations-table tbody tr:hover { background: #fff8f4; }
.ticket-operations-table .ticket-subject { min-width: 260px; }
.ticket-operations-table .ticket-subject strong { font-size: 13px; }
.ticket-owner { display: inline-flex; max-width: 180px; align-items: center; gap: 7px; overflow: hidden; color: #344054; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ticket-owner i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px #d1fadf; }
.ticket-owner.is-unassigned { color: #b54708; }
.ticket-owner.is-unassigned i { background: #f79009; box-shadow: 0 0 0 3px #fef0c7; }
.ticket-operations-table .row-arrow { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #e4e7ec; border-radius: 7px; background: #fff; color: #667085; font-size: 18px; }

@media (max-width: 1180px) {
  #app .ticket-workspace .ticket-workspace-filters { grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(130px, 1fr)); }
  .ticket-filter-label { display: none; }
  .ticket-workspace-filters .btn-reset { justify-self: end; }
}
@media (max-width: 820px) {
  .ticket-workspace { gap: 14px; }
  .ticket-workspace .ticket-workspace-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .ticket-heading-actions { width: 100%; justify-content: space-between; }
  .ticket-workspace .ticket-summary-groups { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .ticket-workspace .ticket-summary-group + .ticket-summary-group { padding: 15px 0 0; border-top: 1px solid #e4e7ec; border-left: 0; }
  #app .ticket-workspace .ticket-workspace-filters { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 14px; }
  .ticket-workspace-filters .search-wrap { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ticket-heading-actions { align-items: stretch; flex-direction: column-reverse; }
  .ticket-heading-actions .live-indicator { align-self: flex-start; }
  .ticket-heading-actions .ticket-create-button { width: 100%; }
  .ticket-workspace .ticket-summary { padding: 14px; }
  .ticket-workspace .ticket-summary-status { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ticket-workspace .ticket-summary-priority { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #app .ticket-workspace .ticket-workspace-filters { grid-template-columns: minmax(0,1fr); }
  .ticket-workspace-filters .search-wrap { grid-column: auto; }
  .ticket-workspace-filters .btn-reset { width: 100%; justify-self: stretch; }
}

/* Refinamiento ejecutivo: paleta sobria y etiquetas de baja saturación */
.ticket-workspace .ticket-workspace-heading {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  padding: 28px 30px;
  border: 1px solid #26384a;
  border-radius: 14px;
  background: linear-gradient(112deg, #142331 0%, #1d3447 68%, #29475d 100%);
  box-shadow: 0 14px 32px rgba(15,35,50,.16);
}
.ticket-workspace .ticket-workspace-heading::after {
  position: absolute;
  top: -90px;
  right: -45px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.018);
  content: "";
  pointer-events: none;
}
.ticket-workspace-heading > * { position: relative; z-index: 1; }
.ticket-workspace-heading .eyebrow { margin-bottom: 7px; color: #ff9b68; }
.ticket-workspace-heading h1 { color: #fff; font-weight: 720; }
.ticket-workspace-heading p { color: #cbd5df; }
.ticket-heading-actions .live-indicator { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #e6edf3; backdrop-filter: blur(7px); }
.ticket-heading-actions .live-indicator i { background: #7dd3a8; box-shadow: none; }
.ticket-heading-actions .ticket-create-button { border-color: #ef6b2e; background: #ef6b2e; box-shadow: 0 8px 20px rgba(0,0,0,.18); color: #fff; }

.ticket-workspace .ticket-summary { border-color: #dfe4e8; box-shadow: 0 6px 18px rgba(20,35,49,.055); }
.ticket-workspace .ticket-summary > h2,
.ticket-workspace .ticket-summary-group-title { color: #526171; }
.ticket-workspace .ticket-summary-item { border: 0; border-left: 3px solid #d8dee4; border-radius: 4px; background: #f7f9fa; box-shadow: none; }
.ticket-workspace .ticket-summary-item > strong { color: #172b3a; font-weight: 720; }
.ticket-workspace .ticket-summary-label { color: #5f6f7e; }
.ticket-workspace .ticket-summary-dot,
.ticket-workspace .priority-dot { width: 6px; height: 6px; flex-basis: 6px; background: #7b8996; }
.ticket-workspace .ticket-summary-dot-unassigned { background: #dd6b32; }
.ticket-workspace .ticket-summary-dot-progress { background: #486b88; }
.ticket-workspace .ticket-summary-dot-closed { background: #557566; }
.ticket-workspace .priority-dot-alta { background: #a6534d; }
.ticket-workspace .priority-dot-media { background: #98703b; }
.ticket-workspace .priority-dot-baja { background: #71808d; }

.ticket-filter-label span,
.ticket-panel-kicker { color: #607282; }
.ticket-workspace-filters input:focus,
.ticket-workspace-filters select:focus { border-color: #496a84; outline-color: rgba(73,106,132,.2); }
.ticket-operations-panel .ticket-panel-head { background: #fff; }
.ticket-operations-table th { background: #eef2f4; color: #475968; font-weight: 750; }
.ticket-operations-table tbody tr:hover { background: #f5f8fa; }
.ticket-operations-table .ticket-number { width: max-content; padding: 3px 7px; border-radius: 4px; background: #edf1f3; color: #3f5668; font-size: 9px; }

.ticket-workspace .ticket-operations-table .badge {
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid #d9dfe4;
  border-radius: 5px;
  background: #f7f9fa;
  color: #3f5262;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .01em;
}
.ticket-workspace .ticket-operations-table .badge::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #71808d;
  content: "";
}
.ticket-workspace .ticket-operations-table .badge i { display: none; }
.ticket-workspace .ticket-operations-table .status-abierto::before { background: #6b7d8b; }
.ticket-workspace .ticket-operations-table .status-en-proceso::before { background: #3e6889; }
.ticket-workspace .ticket-operations-table .status-en-aprobacion::before { background: #6e6486; }
.ticket-workspace .ticket-operations-table .status-cerrado::before,
.ticket-workspace .ticket-operations-table .status-resuelto::before { background: #547565; }
.ticket-workspace .ticket-operations-table .priority-alta::before { background: #a8514b; }
.ticket-workspace .ticket-operations-table .priority-media::before { background: #98703b; }
.ticket-workspace .ticket-operations-table .priority-baja::before { background: #71808d; }

#app .ticket-workspace .ticket-table .quick-status-control { width: 142px; }
#app .ticket-workspace .ticket-table .quick-status-trigger {
  min-height: 34px;
  padding: 7px 10px;
  border-color: #d7dde2;
  border-radius: 5px;
  background: #f7f9fa;
  color: #3f5262;
  font-size: 10px;
  font-weight: 680;
}
#app .ticket-workspace .ticket-table .quick-status-trigger:hover,
#app .ticket-workspace .ticket-table .quick-status-trigger:focus-visible,
#app .ticket-workspace .ticket-table .quick-status-trigger[aria-expanded="true"] { border-color: #61798c; background: #fff; }
.ticket-workspace .ticket-owner { color: #415565; }
.ticket-workspace .ticket-owner i { background: #557566; box-shadow: none; }
.ticket-workspace .ticket-owner.is-unassigned { color: #7c5a3d; }
.ticket-workspace .ticket-owner.is-unassigned i { background: #a77b4b; box-shadow: none; }

@media (max-width: 820px) {
  .ticket-workspace .ticket-workspace-heading { min-height: 0; padding: 24px; }
}
@media (max-width: 520px) {
  .ticket-workspace .ticket-workspace-heading { padding: 21px 18px; }
}

/* Filtros compactos y acento corporativo naranja */
#app .ticket-workspace .ticket-workspace-filters {
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  padding: 12px 14px;
  border-color: #eadfd8;
  background: #fff;
}
#app .ticket-workspace-filters .search-wrap { grid-column: auto; }
.ticket-workspace-filters .search-wrap label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ticket-workspace-filters .search-field input { min-height: 42px; padding-left: 39px; border-color: #d8dde2; background: #fafbfc; }
.ticket-workspace-filters .search-field > span { top: 8px; color: #d85b20; }
.ticket-filter-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #f1a37d;
  border-radius: 8px;
  background: #fff7f2;
  color: #a83d0d;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ticket-filter-toggle > span { color: #e45f20; font-size: 17px; line-height: 1; }
.ticket-filter-toggle > i { min-width: 12px; font-style: normal; font-size: 15px; }
.ticket-filter-toggle > b { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 999px; background: #e85f20; color: #fff; font-size: 10px; }
.ticket-filter-toggle:hover,
.ticket-filter-toggle.is-active { transform: none; border-color: #e85f20; background: #e85f20; color: #fff; box-shadow: 0 6px 14px rgba(232,95,32,.18); }
.ticket-filter-toggle:hover > span,
.ticket-filter-toggle.is-active > span { color: #fff; }
.ticket-filter-toggle.is-active > b { background: #fff; color: #b54708; }
.ticket-filter-clear { min-height: 42px; padding-inline: 11px; color: #667085; }
.ticket-filter-clear[hidden] { display: none; }
.ticket-advanced-filters {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 11px;
  margin-top: 2px;
  padding: 14px 2px 2px;
  border-top: 1px solid #f0e4dd;
}
.ticket-advanced-filters[hidden] { display: none; }
.ticket-advanced-filters .filter-field { min-width: 0; }
#app .ticket-advanced-filters .filter-choice-trigger,
.ticket-advanced-filters select { min-height: 40px; border-color: #d8dde2; border-radius: 7px; background: #fff; font-size: 12px; }

.ticket-workspace .ticket-workspace-heading { border-color: #8f3b18; background: linear-gradient(112deg, #172b3a 0%, #203d50 67%, #a74518 150%); }
.ticket-workspace .ticket-workspace-heading::before { position: absolute; inset: 0 auto 0 0; width: 5px; background: #f36b2b; content: ""; }
.ticket-workspace .ticket-workspace-heading::after { border-color: rgba(255,132,73,.22); box-shadow: 0 0 0 48px rgba(243,107,43,.07), 0 0 0 96px rgba(243,107,43,.035); }
.ticket-workspace .ticket-summary-item { border: 1px solid #e3e7eb; border-left: 3px solid #cfd6dc; background: #fff; }
.ticket-workspace .ticket-summary-item > strong { color: #1c3040; }
.ticket-workspace .ticket-summary-item:hover { border-left-color: #e76b31; background: #fcfcfd; }
.ticket-workspace .ticket-summary-dot,
.ticket-workspace .priority-dot { width: 8px; height: 8px; flex-basis: 8px; box-shadow: 0 0 0 3px rgba(255,107,34,.10); }
.ticket-workspace .ticket-summary-dot-total { background: #ff6b22; }
.ticket-workspace .ticket-summary-dot-unassigned { background: #e54822; }
.ticket-workspace .ticket-summary-dot-progress { background: #ff9d1f; }
.ticket-workspace .ticket-summary-dot-closed { background: #18a66a; box-shadow: 0 0 0 3px rgba(24,166,106,.11); }
.ticket-workspace .priority-dot-alta { background: #e33f2f; box-shadow: 0 0 0 3px rgba(227,63,47,.10); }
.ticket-workspace .priority-dot-media { background: #ff7a00; }
.ticket-workspace .priority-dot-baja { background: #18a66a; box-shadow: 0 0 0 3px rgba(24,166,106,.11); }
.dashboard-connected-card { border-top: 3px solid #ef6b2e; }
.dashboard-connected-card .dashboard-card-heading { align-items: flex-start; }
.dashboard-connected-card .dashboard-link-button { flex: 0 0 auto; }
.dashboard-connected-card .dashboard-inventory-total strong { color: #b54708; }
.ticket-filter-label span,
.ticket-panel-kicker { color: #d64f13; }
.ticket-operations-table th { border-top: 2px solid #ef7a42; }
.ticket-operations-table tbody tr:hover { background: #fff7f2; }
.ticket-operations-table .ticket-number { background: #fff0e8; color: #b54708; }
.ticket-operations-table .row-arrow { border-color: #f0c4ae; color: #c34b15; }
.ticket-operations-panel .ticket-refresh-button:hover { border-color: #e87640; background: #fff7f2; color: #c34b15; }

@media (max-width: 720px) {
  #app .ticket-workspace .ticket-workspace-filters { grid-template-columns: minmax(0, 1fr) auto; }
  .ticket-filter-clear { grid-column: 1 / -1; min-height: 32px; justify-self: end; }
}
@media (max-width: 480px) {
  #app .ticket-workspace .ticket-workspace-filters { grid-template-columns: minmax(0, 1fr); }
  .ticket-filter-toggle { width: 100%; }
  .ticket-filter-clear { grid-column: auto; width: 100%; justify-self: stretch; }
  .ticket-advanced-filters { grid-template-columns: minmax(0,1fr); }
}

/* Portafolio de proyectos */
.projects-page { min-width: 0; }
.project-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.project-metrics article { display: grid; min-height: 116px; align-content: center; gap: 7px; padding: 17px 18px; border: 1px solid #e2e6ea; border-top: 3px solid #ef6b2e; border-radius: 10px; background: #fff; box-shadow: 0 5px 16px rgba(16,24,40,.045); }
.project-metrics article.is-alert { border-top-color: #d92d20; }
.project-metrics span { color: #667085; font-size: 11px; font-weight: 650; }
.project-metrics strong { color: #172b3a; font-size: 27px; letter-spacing: -.03em; }
.project-metrics small { color: #98a2b3; font-size: 10px; }
.project-toolbar { display: grid; grid-template-columns: minmax(260px,1fr) 210px; gap: 10px; margin-bottom: 16px; padding: 13px; border: 1px solid #e2e6ea; border-radius: 10px; background: #fff; }
.project-toolbar input,.project-toolbar select { min-height: 42px; border-radius: 8px; }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.project-card { display: grid; min-width: 0; min-height: 268px; grid-template-rows: auto auto 1fr auto auto; gap: 14px; overflow: hidden; padding: 20px 21px; border: 1px solid #e2e6ea; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(16,24,40,.045); cursor: pointer; transition: border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.project-card:hover { transform: translateY(-2px); border-color: #ef9c74; box-shadow: 0 12px 28px rgba(16,24,40,.09); }
.project-card > header,.project-card > header > div,.project-card > footer,.project-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.project-card > header,.project-card > header > div,.project-card > footer { min-width: 0; flex-wrap: wrap; }
.project-card > header { padding-bottom: 11px; border-bottom: 1px solid #eef0f2; }
.project-card > header > div { justify-content: flex-start; gap: 14px; }
.project-type,.project-status,.project-priority { display: inline-flex; min-height: 0; align-items: center; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 10px; font-weight: 700; line-height: 1.35; }
.project-type { max-width: 220px; overflow: hidden; color: #d45117; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.project-status { gap: 6px; color: #475467; }
.project-status::before { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #f79009; content: ""; }
.project-status.is-en-curso::before { background: #2e90fa; }
.project-status.is-completado::before { background: #12b76a; }
.project-status.is-en-pausa::before { background: #f79009; }
.project-status.is-cancelado::before { background: #98a2b3; }
.project-priority { padding-left: 12px; border-left: 1px solid #dfe3e7; color: #667085; font-weight: 600; }
.project-card h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #172b3a; font-size: 18px; line-height: 1.35; }
.project-card > p { display: -webkit-box; margin: 0; overflow: hidden; color: #667085; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.project-meta { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 6px 10px; overflow-wrap: anywhere; color: #667085; font-size: 10px; }
.project-meta span + span::before { margin-right: 10px; color: #f08a58; content: "•"; }
.project-progress { display: grid; gap: 7px; }
.project-progress span { color: #667085; font-size: 10px; }
.project-progress strong { color: #b54708; font-size: 12px; }
.project-progress > i { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: #edf0f2; }
.project-progress > i > b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#f79009,#ef5b20); }
.project-card > footer { padding-top: 11px; border-top: 1px solid #eef0f2; color: #667085; font-size: 10px; }
.project-card > footer strong { color: #667085; }
.project-card > footer strong.is-late { color: #b42318; }
.project-editor-modal { display: flex; width: min(calc(100vw - 32px),820px); max-width: 820px; max-height: calc(100vh - 32px); flex-direction: column; box-sizing: border-box; }
.project-editor-modal > .modal-heading,.project-editor-modal > .modal-footer { flex: 0 0 auto; }
.project-editor-modal > .modal-body { min-width: 0; min-height: 0; max-height: none; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; }
.project-form-grid { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; box-sizing: border-box; }
.project-form-grid .field { width: 100%; min-width: 0; margin: 0; box-sizing: border-box; }
.project-form-grid input,.project-form-grid select,.project-form-grid textarea,.project-form-grid .equipment-choice-control,.project-form-grid .equipment-choice-trigger { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.project-form-grid textarea { resize: vertical; overflow-wrap: anywhere; }
.project-editor-modal > .modal-footer { min-width: 0; flex-wrap: wrap; gap: 12px; }
.project-editor-modal > .modal-footer .err { min-width: 0; flex: 1 1 240px; overflow-wrap: anywhere; }
.project-editor-modal > .modal-footer .button-row { flex: 0 0 auto; flex-wrap: wrap; }
.project-field-wide { grid-column: 1/-1; }
.project-detail-modal { width: min(100%,1180px); max-height: calc(100vh - 28px); }
.project-detail-modal .modal-body { display: grid; gap: 17px; }
.project-control-strip { display: grid; grid-template-columns: minmax(150px,1fr) 130px auto auto; align-items: end; gap: 10px; padding: 13px; border: 1px solid #e2e6ea; border-radius: 10px; background: #f8fafb; }
.project-control-strip > div { display: grid; gap: 5px; }
.project-control-strip label { color: #667085; font-size: 10px; font-weight: 650; }
.project-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 14px; }
.project-detail-panel { min-width: 0; padding: 17px; border: 1px solid #e2e6ea; border-radius: 11px; background: #fff; }
.project-detail-panel > header { position: static; display: flex; min-height: 0; align-items: flex-start; justify-content: space-between; margin: 0 0 14px; padding: 0 0 12px; border: 0; border-bottom: 1px solid #eef0f2; background: transparent; }
.project-detail-panel > header h3 { margin: 0; font-size: 15px; }
.project-detail-panel > header .eyebrow { margin-bottom: 4px; }
.project-detail-panel > header > span { color: #667085; font-size: 10px; }
.project-deliverable-list,.project-log-list { display: grid; gap: 8px; }
.project-deliverable { display: grid; grid-template-columns: minmax(0,1fr) 125px; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e6e9ed; border-left: 3px solid #98a2b3; border-radius: 8px; background: #fafbfc; }
.project-deliverable.is-overdue { border-left-color: #d92d20; background: #fff8f7; }
.project-deliverable > div { display: grid; gap: 4px; }
.project-deliverable strong { color: #344054; font-size: 11px; }
.project-deliverable span { color: #667085; font-size: 9px; }
.project-deliverable select { min-height: 34px; font-size: 10px; }
.project-inline-form { display: grid; grid-template-columns: minmax(150px,1fr) minmax(120px,.8fr) 135px auto; gap: 7px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #eef0f2; }
.project-inline-form input,.project-inline-form select,.project-inline-form button { min-height: 36px; font-size: 10px; }
.project-inline-form button,.project-log-form button { border-color: #ef6b2e; background: #ef6b2e; color: #fff; }
.project-log-form { display: grid; grid-template-columns: minmax(130px,.7fr) 100px; gap: 8px; margin-bottom: 15px; padding: 12px; border-radius: 9px; background: #f8fafb; }
.project-log-form textarea { min-height: 72px; grid-column: 1/-1; }
.project-log-form button { min-height: 36px; grid-column: 1/-1; }
.project-log { position: relative; display: grid; grid-template-columns: 13px minmax(0,1fr); gap: 9px; }
.project-log-marker { width: 9px; height: 9px; margin-top: 5px; border: 2px solid #ef6b2e; border-radius: 50%; background: #fff; }
.project-log > div { padding: 0 0 13px; border-bottom: 1px solid #eef0f2; }
.project-log > div > div { display: flex; justify-content: space-between; gap: 10px; }
.project-log strong { color: #b54708; font-size: 10px; }
.project-log time,.project-log small { color: #98a2b3; font-size: 9px; }
.project-log p { margin: 5px 0; color: #344054; font-size: 11px; line-height: 1.5; }
.project-empty { margin: 0; padding: 18px; border: 1px dashed #d0d5dd; border-radius: 8px; color: #667085; font-size: 10px; text-align: center; }
@media (max-width:1000px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-detail-grid{grid-template-columns:minmax(0,1fr)}.project-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.project-grid,.project-metrics,.project-form-grid,.project-toolbar{grid-template-columns:minmax(0,1fr)}.project-field-wide{grid-column:auto}.project-control-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.project-control-strip button{width:100%}.project-inline-form{grid-template-columns:minmax(0,1fr)}.project-deliverable{grid-template-columns:minmax(0,1fr)}}

/* Inventario de cupos de licencias */
.license-family { margin: 0 0 18px; padding: 18px; border: 1px solid #e2e6ea; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(16,24,40,.04); }
.license-family > header { position: static; display: flex; min-height: 0; align-items: flex-end; justify-content: space-between; margin: 0 0 15px; padding: 0 0 12px; border: 0; border-bottom: 1px solid #eef0f2; background: transparent; }
.license-family > header .eyebrow { margin-bottom: 3px; }
.license-family > header h2 { margin: 0; color: #172b3a; font-size: 16px; }
.license-family > header > span { color: #667085; font-size: 10px; }
.license-pool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.license-pool-card { display: grid; min-width: 0; gap: 12px; padding: 16px; border: 1px solid #e2e6ea; border-top: 3px solid #ef6b2e; border-radius: 10px; background: #fff; }
.license-pool-card.is-unconfigured { border-top-color: #98a2b3; background: #fafbfc; }
.license-pool-card-head { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 9px; }
.license-pool-card-head > div { display: grid; min-width: 0; gap: 4px; }
.license-pool-card-head strong { overflow-wrap: anywhere; color: #344054; font-size: 12px; line-height: 1.4; }
.license-pool-card-head span { color: #667085; font-size: 9px; }
#app .license-pool-configure { min-height: 28px; padding: 4px 7px; border: 1px solid #f0c4ae; border-radius: 6px; background: #fff7f2; color: #b54708; font-size: 9px; }
.license-capacity { display: flex; align-items: baseline; gap: 7px; }
.license-capacity strong { color: #172b3a; font-size: 27px; letter-spacing: -.03em; }
.license-capacity span,.license-capacity-detail { color: #667085; font-size: 10px; }
.license-capacity-bar { height: 7px; overflow: hidden; border-radius: 999px; background: #edf0f2; }
.license-capacity-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ff9d1f,#ef5b20); }
.license-capacity-detail { display: flex; justify-content: space-between; gap: 10px; }
#app .license-pool-assign { width: 100%; min-height: 36px; border-color: #ef6b2e; border-radius: 7px; background: #ef6b2e; color: #fff; font-size: 10px; }
#app .license-pool-assign:disabled { border-color: #d0d5dd; background: #f2f4f7; color: #98a2b3; }
.license-pool-modal { width: min(100%,540px); }
.license-pool-modal .field + .field { margin-top: 15px; }
.license-pool-modal .field small { display: block; margin-top: 6px; color: #667085; font-size: 10px; }
@media(max-width:1000px){.license-pool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.license-family{padding:14px}.license-pool-grid{grid-template-columns:minmax(0,1fr)}}

/* Encabezado corporativo de Gestión de tickets */
.ticket-workspace .ticket-workspace-heading {
  display: grid;
  height: 190px;
  min-height: 190px;
  max-height: 190px;
  grid-template-columns: minmax(0,680px) minmax(180px,1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: start;
  column-gap: 24px;
  row-gap: 8px;
  padding: 26px 30px;
  border-color: #eee7e0;
  background: #fff url("../assets/dashboard-header.png") no-repeat right center / auto 190px;
  box-shadow: 0 8px 24px rgba(181,71,8,.07);
}
.ticket-workspace .ticket-workspace-heading::after { display: none; }
.ticket-workspace .ticket-workspace-heading::before { display: none; }
.ticket-workspace-heading > div:first-child { width: 100%; max-width: 650px; grid-column: 1; grid-row: 1; }
.ticket-workspace-heading .eyebrow { margin-bottom: 6px; color: #c74710; }
.ticket-workspace-heading h1 { color: #172b3a; font-weight: 760; text-shadow: 0 1px 0 rgba(255,255,255,.9); }
.ticket-workspace-heading p { max-width: 620px; color: #475467; font-weight: 520; }
.ticket-workspace .ticket-heading-actions { width: auto; grid-column: 1; grid-row: 2; justify-content: flex-start; }
.ticket-heading-actions .live-indicator { border-color: #e4e7ec; background: rgba(255,255,255,.9); color: #526171; box-shadow: 0 3px 9px rgba(16,24,40,.05); backdrop-filter: blur(5px); }
.ticket-heading-actions .live-indicator i { background: #18a66a; }
.ticket-heading-actions .ticket-create-button { min-width: 148px; min-height: 40px; border-color: #ef5b20; background: #ef5b20; box-shadow: 0 7px 16px rgba(209,68,10,.22); color: #fff; }
.ticket-heading-actions .ticket-create-button:hover { border-color: #d84b13; background: #d84b13; }
@media(max-width:820px){
  .ticket-workspace .ticket-workspace-heading { display:grid; height:auto; min-height:0; max-height:none; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto; padding:138px 22px 22px; background:#fff url("../assets/dashboard-header.png") no-repeat right top / auto 130px; }
  .ticket-workspace .ticket-heading-actions { width:100%; grid-column:1; grid-row:2; justify-content:flex-start; }
}
@media(max-width:520px){
  .ticket-workspace .ticket-workspace-heading { min-height:0; padding:138px 17px 20px; background:#fff url("../assets/dashboard-header.png") no-repeat right top / auto 130px; }
  .ticket-workspace .ticket-heading-actions { align-items:stretch; flex-direction:column; }
  .ticket-heading-actions .live-indicator { align-self:flex-start; }
  .ticket-heading-actions .ticket-create-button { width:100%; }
}

/* Centro de cuenta corporativa */
.site-header.authenticated #who { overflow: visible; }
.account-control-cluster {
  display: flex;
  min-height: 48px;
  align-items: stretch;
  padding: 3px;
  border: 1px solid #e3e7ec;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(16,24,40,.07);
}
.account-control-cluster .notification-wrap,
.account-control-cluster .profile-wrap { display: flex; align-items: stretch; }
.account-control-cluster .notification-wrap { padding-right: 3px; border-right: 1px solid #e8ebef; }
.account-control-cluster .notification-button {
  width: 42px;
  min-height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #475467;
  box-shadow: none;
  transition: background-color .18s ease,color .18s ease;
}
.account-control-cluster .notification-button:hover,
.account-control-cluster .notification-button.is-open { background: #fff1e8; color: #c74710; transform: none; }
.account-control-cluster .notification-button:focus-visible,
.account-control-cluster .profile-button:focus-visible { outline: 2px solid rgba(239,91,32,.35); outline-offset: 2px; }
.account-control-cluster .notification-button svg { width: 20px; height: 20px; stroke-width: 1.75; }
.account-control-cluster .notification-button b {
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  background: #ef5b20;
  color: #fff;
  font-size: 8px;
  line-height: 13px;
  box-shadow: 0 2px 5px rgba(181,71,8,.25);
}
.account-control-cluster .profile-button.sec {
  min-width: 190px;
  min-height: 42px;
  gap: 9px;
  padding: 3px 8px 3px 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}
.account-control-cluster .profile-button.sec:hover,
.account-control-cluster .profile-button.sec.is-open { border-color: transparent; background: #f8f9fa; box-shadow: none; transform: none; }
.account-control-cluster .profile-avatar {
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  background: linear-gradient(145deg,#ffefe5,#ffd7c3);
  color: #b54708;
  box-shadow: 0 0 0 1px #f1b99d;
  font-size: 11px;
}
.account-control-cluster .profile-button-copy { flex: 1; gap: 2px; }
.account-control-cluster .profile-button-copy strong { max-width: 170px; color: #172b3a; font-size: 11px; font-weight: 720; line-height: 1.2; }
.account-control-cluster .profile-button-copy small { max-width: 170px; overflow: hidden; color: #667085; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.account-control-cluster .profile-chevron {
  width: 18px;
  height: 18px;
  color: #98a2b3;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform .18s ease;
}
.account-control-cluster .profile-button.is-open .profile-chevron { color: #c74710; transform: rotate(180deg); }

.account-control-cluster .notification-panel,
.account-control-cluster .profile-dropdown {
  top: calc(100% + 10px);
  overflow: hidden;
  padding: 0;
  border: 1px solid #e1e5ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16,24,40,.16),0 3px 9px rgba(16,24,40,.06);
}
.account-control-cluster .notification-panel { right: -5px; width: min(370px,calc(100vw - 24px)); }
.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px 14px;
  border-bottom: 1px solid #eaecf0;
}
.notification-panel-head > div { display: grid; gap: 2px; }
.notification-panel-head small,
.profile-dropdown-label { color: #c74710; font-size: 8px; font-weight: 760; letter-spacing: .14em; }
.notification-panel-head h2 { margin: 0; color: #172b3a; font-size: 16px; font-weight: 730; }
.notification-panel-head > span { padding: 5px 8px; border-radius: 999px; background: #fff1e8; color: #b54708; font-size: 9px; font-weight: 650; }
.notification-list { max-height: 330px; overflow-y: auto; padding: 7px; }
.account-control-cluster .notification-item {
  display: grid;
  grid-template-columns: 8px minmax(0,1fr);
  align-items: start;
  gap: 9px;
  margin: 0;
  padding: 11px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}
.account-control-cluster .notification-item:hover { background: #f8f9fa; transform: none; }
.account-control-cluster .notification-item.unread { border: 0; background: #fffaf7; }
.notification-item > i { width: 6px; height: 6px; margin-top: 5px; border: 1px solid #cbd2da; border-radius: 50%; background: #fff; }
.notification-item.unread > i { border-color: #ef5b20; background: #ef5b20; box-shadow: 0 0 0 3px #fff0e7; }
.notification-item-copy { display: grid; min-width: 0; gap: 4px; }
.account-control-cluster .notification-item-copy strong { color: #344054; font-size: 10px; font-weight: 620; line-height: 1.4; }
.account-control-cluster .notification-item-copy small { color: #98a2b3; font-size: 8px; }
.notification-empty { display: grid; justify-items: center; gap: 5px; padding: 28px 16px; color: #667085; text-align: center; }
.notification-empty > span { display: grid; width: 30px; height: 30px; margin-bottom: 3px; place-items: center; border-radius: 50%; background: #fff1e8; color: #c74710; font-size: 14px; }
.notification-empty strong { color: #344054; font-size: 11px; }
.notification-empty small { font-size: 9px; }

.account-control-cluster .profile-dropdown { right: -4px; width: min(310px,calc(100vw - 24px)); }
.profile-dropdown-label { padding: 15px 17px 5px; }
.account-control-cluster .profile-dropdown-account { gap: 12px; padding: 8px 17px 15px; border-bottom: 1px solid #eaecf0; }
.account-control-cluster .profile-dropdown-account .profile-avatar { width: 44px; height: 44px; font-size: 13px; }
.account-control-cluster .profile-dropdown-account > div { gap: 3px; }
.account-control-cluster .profile-dropdown-account strong { color: #172b3a; font-size: 12px; font-weight: 720; }
.account-control-cluster .profile-dropdown-account small { color: #b54708; font-size: 9px; font-weight: 620; }
.account-control-cluster .profile-dropdown-account span { overflow: hidden; color: #667085; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.profile-dropdown-actions { padding: 7px; }
.account-control-cluster .profile-menu-action {
  display: grid;
  min-height: 52px;
  grid-template-columns: 30px minmax(0,1fr) 16px;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
}
.account-control-cluster .profile-menu-action:hover { background: #f8f9fa !important; color: #172b3a; }
.account-control-cluster .profile-menu-action > span:first-child { width: 30px; height: 30px; border-radius: 8px; background: #fff1e8; color: #c74710; }
.account-control-cluster .profile-menu-action > span:first-child svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.account-control-cluster .profile-menu-action > span:nth-child(2) { display: grid; width: auto; gap: 2px; place-items: initial; text-align: left; }
.account-control-cluster .profile-menu-action strong { color: #344054; font-size: 10px; font-weight: 680; }
.account-control-cluster .profile-menu-action small { color: #98a2b3; font-size: 8px; font-weight: 500; }
.account-control-cluster .profile-action-arrow { width: 15px; height: 15px; fill: none; stroke: #98a2b3; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.account-control-cluster .profile-logout { grid-template-columns: 30px minmax(0,1fr); }
.account-control-cluster .profile-logout > span:first-child { background: #f2f4f7; color: #667085; }

@media(max-width:640px){
  .account-control-cluster { min-height: 44px; }
  .account-control-cluster .notification-button { width: 38px; min-height: 38px; padding: 9px; }
  .account-control-cluster .profile-button.sec { min-width: 0; min-height: 38px; padding: 2px 6px; }
  .account-control-cluster .profile-avatar { width: 32px; height: 32px; }
  .account-control-cluster .profile-button-copy { display: none; }
  .account-control-cluster .profile-chevron { width: 15px; height: 15px; }
  .account-control-cluster .notification-panel { right: -62px; }
}

/* Encabezado corporativo de Inventario */
.inventory-page-heading {
  display: grid;
  height: 190px;
  min-height: 190px;
  max-height: 190px;
  grid-template-columns: minmax(0,680px) minmax(180px,1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: start;
  column-gap: 24px;
  row-gap: 12px;
  margin-bottom: 20px;
  padding: 26px 30px;
  overflow: hidden;
  border: 1px solid #eee7e0;
  border-radius: 14px;
  background: #fff url("../assets/dashboard-header.png") no-repeat right center / auto 190px;
  box-shadow: 0 8px 24px rgba(181,71,8,.07);
}
.inventory-page-heading::before,
.inventory-page-heading::after { display: none; }
.inventory-page-heading > .inventory-heading-copy { width: 100%; max-width: 620px; grid-column: 1; grid-row: 1; }
.inventory-page-heading .eyebrow { margin-bottom: 7px; color: #c74710; font-size: 10px; font-weight: 760; letter-spacing: .13em; }
.inventory-page-heading h1 {
  margin: 0;
  color: #172b3a;
  font-size: clamp(24px,2.2vw,32px);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.12;
  text-shadow: 0 1px 0 rgba(255,255,255,.9);
}
.inventory-page-heading p { max-width: 570px; margin: 9px 0 0; color: #475467; font-size: 13px; font-weight: 520; line-height: 1.55; }
.inventory-heading-actions { display: flex; width: auto; grid-column: 1; grid-row: 2; align-items: stretch; gap: 10px; }
.inventory-page-heading .inventory-total-count {
  min-width: 132px;
  min-height: 42px;
  justify-content: flex-start;
  padding: 5px 12px;
  border-color: #e4e7ec;
  border-radius: 9px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 3px 9px rgba(16,24,40,.05);
  backdrop-filter: blur(5px);
}
.inventory-page-heading .inventory-total-copy { display: flex; flex-direction: row; align-items: baseline; justify-items: initial; gap: 7px; text-align: left; }
.inventory-page-heading .inventory-total-copy strong { color: #c74710; font-size: 19px; font-weight: 760; }
.inventory-page-heading .inventory-total-copy span { color: #526171; font-size: 9px; font-weight: 620; white-space: nowrap; }
.inventory-page-heading .inventory-register-button {
  min-width: 158px;
  min-height: 42px;
  padding: 8px 15px;
  border-color: #ef5b20;
  border-radius: 9px;
  background: #ef5b20;
  color: #fff;
  box-shadow: 0 7px 16px rgba(209,68,10,.22);
}
.inventory-page-heading .inventory-register-button:hover { border-color: #d84b13; background: #d84b13; }
.inventory-panel > .ticket-panel-head .inventory-header-actions { width: auto; }

@media(max-width:820px){
  .inventory-page-heading {
    height: auto;
    min-height: 300px;
    max-height: none;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto;
    align-content: end;
    padding: 138px 22px 22px;
    background: #fff url("../assets/dashboard-header.png") no-repeat right top / auto 130px;
  }
  .inventory-page-heading > .inventory-heading-copy { grid-column: 1; grid-row: 1; }
  .inventory-heading-actions { width: 100%; grid-column: 1; grid-row: 2; }
}
@media(max-width:520px){
  .inventory-page-heading { min-height: 330px; padding: 138px 17px 20px; background-size: auto 130px; }
  .inventory-page-heading h1 { font-size: 24px; }
  .inventory-page-heading p { font-size: 12px; }
  .inventory-heading-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .inventory-page-heading .inventory-total-count,
  .inventory-page-heading .inventory-register-button { width: 100%; }
  .inventory-page-heading .inventory-total-count { justify-content: center; }
}

/* Expediente e historial ejecutivo de activos */
.equipment-history-modal { width: min(100%,980px); max-width: 980px; overflow: hidden; border-radius: 16px; }
.equipment-history-modal .history-modal-heading { padding: 22px 26px 18px; border-bottom: 0; background: linear-gradient(110deg,#fff 0%,#fff 62%,#fff4ec 100%); }
.history-modal-heading .eyebrow { color: #c74710; }
.history-modal-heading h2 { margin-top: 4px; color: #172b3a; font-size: 21px; }
.history-modal-heading p { max-width: 620px; color: #667085; }
.history-asset-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1.45fr .7fr;
  gap: 1px;
  margin: 0 26px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 11px;
  background: #e4e7ec;
}
.history-asset-summary > div { display: grid; min-width: 0; gap: 4px; padding: 12px 14px; background: #fff; }
.history-asset-summary small { color: #98a2b3; font-size: 8px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.history-asset-summary strong { overflow: hidden; color: #344054; font-size: 11px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.history-asset-summary > div:last-child strong { color: #c74710; font-size: 18px; line-height: 1; }
.equipment-history-modal .modal-body { max-height: 61vh; padding: 22px 26px 26px; background: #f8f9fa; }
.history-install-date { margin: 0 0 14px; color: #667085; font-size: 11px; }
.history-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.history-section-heading > div { display: grid; gap: 3px; }
.history-section-heading .eyebrow { color: #c74710; font-size: 8px; }
.history-section-heading h3 { margin: 0; color: #172b3a; font-size: 15px; }
.history-section-heading > span { padding: 5px 8px; border: 1px solid #e4e7ec; border-radius: 999px; background: #fff; color: #667085; font-size: 8px; font-weight: 650; }
.equipment-history-modal .history-list { position: relative; gap: 0; padding-left: 36px; }
.equipment-history-modal .history-list::before { position: absolute; top: 18px; bottom: 18px; left: 14px; width: 1px; background: #d9dee5; content: ""; }
.equipment-history-modal .history-strip {
  position: relative;
  padding: 0 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.history-timeline-marker {
  position: absolute;
  z-index: 1;
  top: 17px;
  left: -34px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 4px solid #f8f9fa;
  border-radius: 50%;
  background: #ef5b20;
  color: #fff;
  box-shadow: 0 0 0 1px #efb08f;
}
.history-strip-retire .history-timeline-marker { background: #667085; box-shadow: 0 0 0 1px #b8c0ca; }
.history-timeline-marker svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.history-event-card { overflow: hidden; border: 1px solid #e2e6ea; border-radius: 11px; background: #fff; box-shadow: 0 3px 10px rgba(16,24,40,.035); }
.history-event-head { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; border-bottom: 1px solid #eef0f2; }
.history-event-head > div { display: flex; min-width: 0; align-items: center; gap: 9px; }
.history-event-head strong { overflow: hidden; color: #172b3a; font-size: 11px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.history-event-head time { flex: 0 0 auto; color: #667085; font-size: 9px; font-weight: 560; }
.equipment-history-modal .history-action-tag { padding: 4px 8px; border: 1px solid #f4c4aa; border-radius: 999px; background: #fff2e9; color: #b54708; font-size: 8px; font-weight: 720; text-transform: uppercase; }
.equipment-history-modal .history-strip-retire .history-action-tag { border-color: #d9dee5; background: #f2f4f7; color: #475467; }
.history-event-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 11px 14px; }
.history-event-meta > span { display: grid; min-width: 0; gap: 5px; }
.history-event-meta small,
.history-event-note small { color: #98a2b3; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.history-event-meta b { width: fit-content; color: #475467; font-size: 10px; font-weight: 650; }
.equipment-history-modal .history-state-pill { padding: 4px 7px; font-size: 8px; }
.history-event-note { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-top: 1px solid #f0f1f3; background: #fcfcfd; }
.history-event-note > div { display: grid; min-width: 0; flex: 1; gap: 4px; }
.history-event-note p { margin: 0; color: #475467; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.equipment-history-modal .history-observation-btn { width: 30px; height: 30px; flex: 0 0 30px; border-color: #e1e5ea; color: #667085; }
.equipment-history-modal .history-observation-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.equipment-history-modal .history-observation-btn:hover { border-color: #efad89; background: #fff4ed; color: #c74710; transform: none; }
.equipment-history-modal .history-empty { margin-left: -36px; padding: 30px 18px; border-color: #d6dbe2; background: #fff; font-size: 11px; }

.equipment-history-modal .history-editor-panel { margin: 6px 0 0 36px; padding: 0; overflow: hidden; border-color: #e1e5ea; border-radius: 12px; background: #fff; box-shadow: 0 8px 20px rgba(16,24,40,.07); }
.equipment-history-modal .history-editor-head { position: relative; display: grid; grid-template-columns: 38px minmax(0,1fr) 32px; align-items: start; gap: 11px; margin: 0; padding: 15px 16px; border-bottom: 1px solid #eaecf0; background: #fffaf7; }
.history-editor-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: #ffeadc; color: #c74710; }
.history-editor-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.equipment-history-modal .history-editor-head h3 { margin: 3px 0 2px; color: #172b3a; font-size: 14px; }
.equipment-history-modal .history-editor-head p { margin: 0; color: #667085; font-size: 9px; line-height: 1.4; }
.equipment-history-modal .history-editor-head .modal-close { position: static; width: 28px; min-width: 28px; height: 28px; min-height: 28px; }
.equipment-history-modal .history-editor-body { grid-template-columns: minmax(170px,.6fr) minmax(0,1.4fr); gap: 14px; padding: 16px; }
.equipment-history-modal .history-editor-body .field { align-content: start; }
.equipment-history-modal .history-editor-body label { color: #344054; font-size: 10px; font-weight: 680; }
.equipment-history-modal .history-editor-body select,
.equipment-history-modal .history-editor-body textarea { border-color: #d8dde4; background: #fff; font-size: 11px; }
.equipment-history-modal .history-editor-body textarea { min-height: 88px; resize: vertical; }
.equipment-history-modal .history-editor-body .field small { margin-top: 5px; color: #98a2b3; font-size: 8px; line-height: 1.4; }
.equipment-history-modal .history-editor-actions { min-height: 60px; flex-direction: row; align-items: center; justify-content: space-between; margin: 0; padding: 10px 16px; border-top: 1px solid #eaecf0; background: #fcfcfd; }

/* Edición empresarial de la ficha del equipo */
.equipment-edit-modal { width: min(100%,1020px); max-width: 1020px; overflow: hidden; border-radius: 16px; }
.equipment-edit-modal > .modal-heading { padding: 22px 30px 18px; border-bottom: 1px solid #e7eaee; background: linear-gradient(110deg,#fff 0%,#fff 70%,#fff2e9 100%); }
.equipment-edit-modal > .modal-heading .eyebrow { color: #c74710; }
.equipment-edit-modal > .modal-heading h2 { margin: 4px 0; color: #172b3a; font-size: 21px; }
.equipment-edit-modal > .modal-heading p { color: #667085; }
.equipment-edit-modal > .modal-body { padding: 22px 30px 26px; background: #f8f9fa; }
.equipment-edit-modal .user-form-grid { gap: 14px 18px; padding: 18px; border: 1px solid #e3e7ec; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(16,24,40,.035); }
.equipment-edit-modal .user-form-grid { display: flex; flex-direction: column; gap: 14px; }
.equipment-form-section { border: 1px solid #e3e7ec; border-radius: 14px; background: #fff; overflow: visible; }
.equipment-form-section > header { position: static; display: block; float: none; inset: auto; padding: 15px 18px 11px; border-bottom: 1px solid #edf0f3; background: linear-gradient(105deg,#fff 0%,#fffaf7 100%); transform: none; }
.equipment-form-section > header > div { display: block; min-width: 0; }
.equipment-form-section > header .eyebrow { color: #c74710; font-size: 9px; letter-spacing: .12em; }
.equipment-form-section > header h3 { position: static; display: block; margin: 3px 0 2px; color: #172b3a; font-size: 15px; transform: none; }
.equipment-form-section > header p { position: static; display: block; margin: 0; color: #667085; font-size: 11px; transform: none; }
.equipment-form-section-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; padding: 16px 18px 18px; }
.equipment-form-section-grid .field-span { grid-column: 1 / -1; }
.equipment-form-section:last-child .equipment-form-section-grid { grid-template-columns: 1fr; }
.equipment-form-section:last-child .field { grid-column: 1 / -1; }
.equipment-edit-modal .user-form-grid .field label { color: #344054; font-size: 11px; font-weight: 680; }
.equipment-edit-modal .equipment-form-section .field > label { position: static; display: block; transform: none; }
.equipment-edit-modal .user-form-grid input,
.equipment-edit-modal .user-form-grid select,
.equipment-edit-modal .user-form-grid textarea,
.equipment-edit-modal .equipment-choice-trigger { border-color: #d8dde4; background-color: #fcfcfd; font-size: 12px; }
.equipment-edit-modal .user-form-grid textarea { min-height: 92px; }
.equipment-edit-modal > .equipment-modal-footer { padding: 15px 30px; border-top: 1px solid #e1e5ea; background: #fff; }
.equipment-edit-modal .equipment-modal-footer .btn-primary { min-width: 136px; border-color: #ef5b20; background: #ef5b20; box-shadow: 0 5px 12px rgba(209,68,10,.18); }

@media(max-width:760px){
  .history-asset-summary { grid-template-columns: 1fr 1fr; margin-inline: 18px; }
  .equipment-history-modal .modal-body { padding: 18px; }
  .equipment-history-modal .history-list { padding-left: 30px; }
  .equipment-history-modal .history-list::before { left: 11px; }
  .history-timeline-marker { left: -30px; }
  .equipment-history-modal .history-editor-panel { margin-left: 30px; }
  .equipment-history-modal .history-editor-body { grid-template-columns: minmax(0,1fr); }
  .history-event-meta { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .equipment-edit-modal > .modal-heading,
  .equipment-edit-modal > .modal-body,
  .equipment-edit-modal > .equipment-modal-footer { padding-inline: 20px; }
  .equipment-edit-modal .user-form-grid { padding: 14px; }
  .equipment-form-section-grid { grid-template-columns: 1fr; padding: 14px; }
  .equipment-form-section-grid .field { grid-column: 1 / -1; }
}
@media(max-width:480px){
  .history-asset-summary { grid-template-columns: minmax(0,1fr); }
  .history-event-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .history-event-note { align-items: flex-start; }
  .equipment-history-modal .history-editor-panel { margin-left: 0; }
  .equipment-history-modal .history-editor-actions { align-items: stretch; flex-direction: column; }
  .equipment-history-modal .history-editor-actions .button-row { width: 100%; }
  .equipment-history-modal .history-editor-actions button { flex: 1; }
}

/* Encabezado y asignación ejecutiva de telefonía */
.telephony-page { display: grid; gap: 20px; }
.telephony-page-heading {
  display: grid;
  height: 190px;
  min-height: 190px;
  max-height: 190px;
  grid-template-columns: minmax(0,680px) minmax(180px,1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: start;
  gap: 12px 24px;
  margin: 0;
  padding: 26px 30px;
  overflow: hidden;
  border: 1px solid #eee7e0;
  border-radius: 14px;
  background: #fff url("../assets/dashboard-header.png") no-repeat right center / auto 190px;
  box-shadow: 0 8px 24px rgba(181,71,8,.07);
}
.telephony-page-heading::before,
.telephony-page-heading::after { display: none; }
.telephony-heading-copy { width: 100%; max-width: 620px; grid-column: 1; grid-row: 1; }
.telephony-page-heading .eyebrow { margin-bottom: 7px; color: #c74710; font-size: 10px; font-weight: 760; letter-spacing: .13em; }
.telephony-page-heading h1 { margin: 0; color: #172b3a; font-size: clamp(24px,2.2vw,32px); font-weight: 760; letter-spacing: -.025em; line-height: 1.12; }
.telephony-page-heading p { max-width: 580px; margin: 9px 0 0; color: #475467; font-size: 13px; font-weight: 520; line-height: 1.55; }
.telephony-heading-metrics { display: flex; width: auto; grid-column: 1; grid-row: 2; align-items: stretch; gap: 9px; }
.telephony-heading-metrics > div { display: flex; min-height: 42px; align-items: baseline; gap: 7px; padding: 8px 12px; border: 1px solid #e4e7ec; border-radius: 9px; background: rgba(255,255,255,.92); box-shadow: 0 3px 9px rgba(16,24,40,.05); backdrop-filter: blur(5px); }
.telephony-heading-metrics strong { color: #c74710; font-size: 19px; font-weight: 760; line-height: 1; }
.telephony-heading-metrics span { color: #526171; font-size: 9px; font-weight: 620; white-space: nowrap; }
.telephony-toolbar { display: grid; width: 100%; min-width: 0; grid-template-columns: max-content max-content minmax(220px, 1fr); align-items: end; gap: 16px; }
.telephony-toolbar > #telephony-export { min-height: 40px; white-space: nowrap; }
@media(max-width:1100px){
  .telephony-toolbar { grid-template-columns: max-content minmax(0, 1fr); }
  .telephony-search { grid-column: 1 / -1; }
}
.telephony-plan-filter { display: inline-flex; min-height: 40px; align-items: center; gap: 3px; padding: 3px; border: 1px solid #e1e5ea; border-radius: 10px; background: #f7f8fa; }
#app .telephony-plan-filter button { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 7px; background: transparent; box-shadow: none; color: #667085; font-size: 10px; font-weight: 680; }
#app .telephony-plan-filter button:hover { transform: none; background: #fff; color: #344054; box-shadow: none; }
#app .telephony-plan-filter button.is-active { background: #fff; color: #c74710; box-shadow: 0 2px 6px rgba(16,24,40,.08); }
.telephony-plan-filter button span { min-width: 19px; padding: 2px 5px; border-radius: 999px; background: #eceff3; color: #667085; font-size: 8px; text-align: center; }
.telephony-plan-filter button.is-active span { background: #ffeadc; color: #b9380b; }

.telephony-table th:nth-child(6) { width: 290px; }
.telephony-plan-cell { gap: 8px; }
.telephony-plan-cell .telephony-plan {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid #f0c4ae;
  border-radius: 9px;
  background: #fff8f4;
  color: #344054;
}
.telephony-plan-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 8px; background: #ffeadc; color: #c74710; }
.telephony-plan-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.telephony-plan-copy { display: grid; min-width: 0; flex: 1; gap: 2px; }
.telephony-plan-copy small { color: #c74710; font-size: 7px; font-weight: 760; letter-spacing: .1em; }
.telephony-plan-copy strong { overflow: hidden; color: #344054; font-size: 10px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.telephony-plan-cell .telephony-plan.is-empty { border-style: dashed; border-color: #d5dae1; background: #fafbfc; color: #667085; }
.telephony-plan.is-empty .telephony-plan-icon { background: #eef0f3; color: #667085; }
.telephony-plan.is-empty .telephony-plan-copy small { color: #7f8996; }
.telephony-plan.is-empty .telephony-plan-copy strong { color: #667085; }
.telephony-plan-cell .telephony-plan-edit {
  display: inline-flex;
  width: auto;
  min-width: 82px;
  height: 36px;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 9px;
  border-color: #e1e5ea;
  border-radius: 8px;
  color: #526171;
  font-size: 9px;
  font-weight: 650;
}
.telephony-plan-cell .telephony-plan-edit svg { width: 13px; height: 13px; }

.telephony-plan-modal { width: min(100%,610px); max-width: 610px; overflow: hidden; border-radius: 16px; }
.telephony-plan-modal .telephony-plan-modal-heading { padding: 22px 26px 18px; border-bottom: 0; background: linear-gradient(110deg,#fff 0%,#fff 66%,#fff1e8 100%); }
.telephony-plan-modal-heading .eyebrow { color: #c74710; }
.telephony-plan-modal-heading h2 { margin: 4px 0; color: #172b3a; font-size: 21px; }
.telephony-plan-modal-heading p { color: #667085; }
.telephony-assignment-summary { display: grid; grid-template-columns: .85fr 1.4fr; gap: 16px; margin: 0 26px; padding: 14px; border: 1px solid #e3e7ec; border-radius: 11px; background: #fff; box-shadow: 0 4px 12px rgba(16,24,40,.045); }
.telephony-assignment-line { display: flex; min-width: 0; align-items: center; gap: 10px; padding-right: 14px; border-right: 1px solid #eaecf0; }
.telephony-assignment-line > span { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 10px; background: #ffeadc; color: #c74710; }
.telephony-assignment-line svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.telephony-assignment-line > div { display: grid; min-width: 0; gap: 3px; }
.telephony-assignment-line small { color: #c74710; font-size: 7px; font-weight: 760; letter-spacing: .09em; }
.telephony-assignment-line strong { overflow: hidden; color: #172b3a; font-size: 14px; font-weight: 740; text-overflow: ellipsis; white-space: nowrap; }
.telephony-assignment-summary dl { display: grid; min-width: 0; grid-template-columns: 1fr 1fr; gap: 9px 14px; margin: 0; }
.telephony-assignment-summary dl > div:last-child { grid-column: 1/-1; }
.telephony-assignment-summary dt { margin-bottom: 3px; color: #98a2b3; font-size: 7px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.telephony-assignment-summary dd { margin: 0; overflow: hidden; color: #475467; font-size: 9px; font-weight: 630; text-overflow: ellipsis; white-space: nowrap; }
.telephony-plan-modal .modal-body { padding: 20px 26px 24px; background: #f8f9fa; }
.telephony-plan-form-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.telephony-plan-form-heading > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: #ffeadc; color: #c74710; font-size: 9px; font-weight: 760; }
.telephony-plan-form-heading > div { display: grid; gap: 2px; }
.telephony-plan-form-heading strong { color: #344054; font-size: 11px; }
.telephony-plan-form-heading small { color: #98a2b3; font-size: 8px; }
.telephony-plan-modal .telephony-plan-field { padding: 14px; border: 1px solid #e1e5ea; border-radius: 10px; background: #fff; }
.telephony-plan-modal .telephony-plan-field label { color: #344054; font-size: 10px; font-weight: 680; }
#app .telephony-plan-modal .telephony-plan-choice-trigger { min-height: 48px; border-color: #d5dae1; background: #fcfcfd; font-size: 11px; }
.telephony-plan-notice { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 11px; border: 1px solid #f3d0bd; border-radius: 8px; background: #fff8f4; color: #7a3a19; }
.telephony-plan-notice svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.telephony-plan-notice span { font-size: 8px; line-height: 1.45; }
.telephony-plan-modal .modal-footer { padding: 14px 26px; background: #fff; }
.telephony-plan-modal .modal-footer .btn-primary { min-width: 150px; border-color: #ef5b20; background: #ef5b20; box-shadow: 0 5px 12px rgba(209,68,10,.18); }

@media(max-width:820px){
  .telephony-page-heading { height: auto; min-height: 300px; max-height: none; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; align-content: end; padding: 138px 22px 22px; background: #fff url("../assets/dashboard-header.png") no-repeat right top / auto 130px; }
  .telephony-heading-copy { grid-column: 1; grid-row: 1; }
  .telephony-heading-metrics { width: 100%; grid-column: 1; grid-row: 2; }
  .telephony-panel-head { width: 100%; align-items: stretch; }
  .telephony-toolbar { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .telephony-search { grid-column: auto; }
  .telephony-toolbar > #telephony-export { justify-self: start; }
  .telephony-plan-filter { width: 100%; }
  #app .telephony-plan-filter button { flex: 1; justify-content: center; }
}
@media(max-width:620px){
  .telephony-page-heading { min-height: 330px; padding: 138px 17px 20px; }
  .telephony-heading-metrics { align-items: stretch; flex-direction: column; }
  .telephony-heading-metrics > div { justify-content: center; }
  .telephony-assignment-summary { grid-template-columns: minmax(0,1fr); margin-inline: 18px; }
  .telephony-assignment-line { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid #eaecf0; }
  .telephony-plan-modal .modal-body,
  .telephony-plan-modal .modal-footer { padding-inline: 18px; }
}
@media(max-width:540px){
  .telephony-plan-cell { width: min(100%,230px); align-items: stretch; flex-direction: column; }
  .telephony-plan-cell .telephony-plan-edit { width: 100%; }
}

/* Expediente ejecutivo de gestión de tickets */
.case-workspace { display: grid; gap: 14px; }
.case-back-link { width: fit-content; margin: 0; color: #667085; font-size: 11px; font-weight: 650; }
.case-command-header {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: start;
  gap: 18px 28px;
  margin: 0;
  min-height: 190px;
  padding: 24px 28px 0;
  overflow: hidden;
  border: 1px solid #e7e3df;
  border-radius: 15px;
  background:
    linear-gradient(90deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.97) 55%,rgba(255,255,255,.78) 70%,rgba(255,255,255,.08) 100%),
    #fff url("../assets/dashboard-header.png") no-repeat right center / auto 190px;
  box-shadow: 0 8px 24px rgba(181,71,8,.07);
}
.case-command-main { width: min(100%,720px); min-width: 0; }
.case-command-main .eyebrow { display: block; margin-bottom: 8px; color: #c74710; font-size: 9px; font-weight: 780; letter-spacing: .14em; }
.case-command-header .detail-title { display: block; }
.case-command-header .detail-title h1 { max-width: 680px; color: #172b3a; font-size: clamp(23px,2.4vw,31px); font-weight: 770; letter-spacing: -.025em; line-height: 1.14; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.case-command-summary { max-width: 610px; margin: 7px 0 0; color: #475467; font-size: 10px; font-weight: 520; line-height: 1.5; }
.case-command-header .detail-meta { gap: 8px; margin-top: 9px; }
.case-command-header .detail-meta span { display: inline-flex; min-height: 25px; align-items: center; padding: 4px 9px; border: 1px solid #e4e7ec; border-radius: 999px; background: rgba(255,255,255,.82); color: #667085; font-size: 9px; font-weight: 600; }
.case-command-header .detail-meta .ticket-number { border-color: #f1c4af; background: #fff7f2; color: #b9380b; font-size: 10px; font-weight: 750; }
.case-command-state { display: grid; min-width: 172px; justify-items: start; gap: 7px; padding: 12px 13px; border: 1px solid rgba(225,229,234,.92); border-radius: 11px; background: rgba(255,255,255,.91); box-shadow: 0 5px 15px rgba(16,24,40,.06); backdrop-filter: blur(7px); }
.case-command-state > span, .case-command-state small { color: #7b8592; font-size: 7px; font-weight: 780; letter-spacing: .12em; }
.case-command-state .detail-priority { display: flex; align-items: center; gap: 7px; padding: 0; }
.case-command-state .badge, .case-command-state .priority { min-height: 27px; padding: 5px 9px; box-shadow: none; }
.case-header-facts { display: grid; grid-column: 1/-1; grid-template-columns: 1.15fr 1fr 1.2fr 1fr; margin: 0 -28px; border-top: 1px solid rgba(226,230,234,.92); background: rgba(249,250,251,.94); backdrop-filter: blur(7px); }
.case-header-facts > div { display: grid; min-width: 0; gap: 4px; padding: 13px 18px; border-right: 1px solid #e7e9ed; }
.case-header-facts > div:last-child { border-right: 0; }
.case-header-facts span { color: #98a2b3; font-size: 7px; font-weight: 750; letter-spacing: .11em; }
.case-header-facts strong { overflow: hidden; color: #344054; font-size: 10px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }

.case-workspace .detail-layout { grid-template-columns: minmax(0,1fr) 318px; gap: 16px; }
.case-workspace .detail-main { gap: 16px; }
.case-workspace .detail-sidebar { position: sticky; top: 82px; gap: 12px; }
.case-workspace .surface { border-color: #e1e5ea; border-radius: 13px; box-shadow: 0 5px 16px rgba(16,24,40,.045); }
.case-workspace .detail-description,
.case-workspace .conversation-panel,
.case-workspace .internal-panel,
.case-workspace .close-panel { padding: 22px 24px; }
.case-workspace .sidebar-card { padding: 18px; }
.case-workspace .section-head { align-items: flex-start; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #edf0f2; }
.case-workspace .section-head h2 { margin: 3px 0 4px; color: #172b3a; font-size: 16px; font-weight: 730; letter-spacing: -.01em; }
.case-workspace .section-head p { color: #667085; font-size: 10px; }
.case-section-index { display: block; color: #c74710; font-size: 7px; font-weight: 780; letter-spacing: .12em; }
.case-brief-card { position: relative; overflow: hidden; }
.case-brief-card::before { position: absolute; width: 3px; background: #ef5b20; content: ""; inset: 0 auto 0 0; }
.case-brief-card .description-copy { margin: 0; color: #344054; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.case-workspace .ticket-attachments { margin-top: 20px; padding-top: 16px; border-top: 1px solid #edf0f2; }

.case-conversation-card .section-head { align-items: center; }
.case-conversation-card .message-count { padding: 5px 8px; border: 1px solid #e4e7ec; border-radius: 999px; background: #f8f9fa; color: #667085; font-size: 8px; font-weight: 700; }
.case-conversation-card .conversation-list { position: relative; gap: 18px; max-height: 560px; margin-top: 0; padding: 3px 3px 3px 0; overflow-y: auto; }

/* Tablas compactas: navegación interna sin extender toda la página */
@media (min-width: 641px) {
  #app .table-scroll {
    position: relative;
    isolation: isolate;
    max-height: clamp(380px, 56vh, 620px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #b8c0ca #f4f6f8;
  }

  #app .table-scroll::-webkit-scrollbar,
  #app .catalog-center .catalog-table-wrap::-webkit-scrollbar {
    width: 9px;
    height: 9px;
  }

  #app .table-scroll::-webkit-scrollbar-track,
  #app .catalog-center .catalog-table-wrap::-webkit-scrollbar-track {
    background: #f4f6f8;
  }

  #app .table-scroll::-webkit-scrollbar-thumb,
  #app .catalog-center .catalog-table-wrap::-webkit-scrollbar-thumb {
    border: 2px solid #f4f6f8;
    border-radius: 999px;
    background: #b8c0ca;
  }

  #app .table-scroll::-webkit-scrollbar-thumb:hover,
  #app .catalog-center .catalog-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #8e99a7;
  }

  #app .table-scroll > table > thead > tr > th,
  #app .catalog-center .catalog-table > thead > tr > th {
    position: sticky;
    z-index: 50;
    top: 0;
    overflow: hidden;
    border-top: 0;
    background: #f4f6f8;
    background-clip: padding-box;
    box-shadow: 0 1px 0 #d7dde4, 0 5px 10px rgba(16,24,40,.055);
    transform: translateZ(0);
  }

  #app .table-scroll > table,
  #app .catalog-center .catalog-table {
    border-spacing: 0;
    border-collapse: separate;
  }

  #app .catalog-center .catalog-table-wrap {
    position: relative;
    isolation: isolate;
    max-height: clamp(380px, 56vh, 620px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #b8c0ca #f4f6f8;
  }
}
.case-conversation-card .message-card { position: relative; gap: 12px; }
.case-conversation-card .message-avatar { z-index: 1; width: 34px; height: 34px; border: 2px solid #fff; background: #eef1f4; box-shadow: 0 0 0 1px #dfe3e8; color: #526171; font-size: 11px; }
.case-conversation-card .message-agent .message-avatar { background: #fff0e6; box-shadow: 0 0 0 1px #f0bda4; color: #c74710; }
.case-conversation-card .message-content { max-width: min(88%,760px); padding: 13px 15px; border-color: #e2e6ea; border-radius: 4px 11px 11px; background: #f9fafb; }
.case-conversation-card .message-agent .message-content { border-color: #f0d0c0; background: #fffaf7; }
.case-conversation-card .message-byline strong { color: #344054; font-size: 10px; font-weight: 720; }
.case-conversation-card .message-byline span { font-size: 8px; }
.case-conversation-card .message-content p { margin-top: 8px; color: #475467; font-size: 11px; line-height: 1.65; }
.case-conversation-card .message-own .message-content { border-color: #d65019; background: #d65019; }
.case-conversation-card .message-own .message-content p,
.case-conversation-card .message-own .message-content strong,
.case-conversation-card .message-own .message-content .message-byline span { color: #fff; }
.case-conversation-card .conversation-empty { display: grid; gap: 5px; padding: 28px 18px; border-color: #dfe4e9; background: #fafbfc; }
.case-conversation-card .conversation-empty strong { color: #344054; font-size: 11px; }
.case-conversation-card .conversation-empty span { color: #98a2b3; font-size: 9px; }
.case-conversation-card .reply-composer { margin-top: 20px; padding: 16px; border: 1px solid #e3e7eb; border-radius: 10px; background: #f8f9fa; }
.case-conversation-card .reply-composer > label { color: #344054; font-size: 10px; font-weight: 700; }
.case-conversation-card .reply-composer textarea { min-height: 92px; margin-top: 7px; border-color: #d9dee4; background: #fff; }
.case-conversation-card .composer-footer .btn-primary { min-width: 140px; }

.case-progress-card { border-top: 3px solid #ef5b20 !important; }
.case-progress-card .section-head,
.case-actions-card .section-head,
.case-requester-card .section-head { margin-bottom: 14px; padding-bottom: 12px; }
.case-progress-card .timeline { padding: 15px 8px 13px; }
.case-actions-card { background: linear-gradient(180deg,#fff 0%,#fcfcfd 100%); }
.case-actions-card > label { margin: 12px 0 6px; color: #667085; font-size: 8px; font-weight: 720; letter-spacing: .04em; text-transform: uppercase; }
.case-actions-card select { min-height: 42px; border-color: #dce1e6; background: #fff; font-size: 10px; font-weight: 620; }
.case-requester-card .profile-row { padding: 0 0 14px; }
.case-requester-card .avatar-large { width: 38px; height: 38px; background: #fff0e6; color: #c74710; }
.case-requester-card .profile-row > div { display: grid; min-width: 0; gap: 3px; }
.case-requester-card .profile-row strong { overflow: hidden; color: #344054; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.case-requester-card .detail-facts { gap: 0; padding-top: 5px; }
.case-requester-card .detail-facts > div { min-height: 36px; padding: 8px 0; border-bottom: 1px solid #eef0f2; }
.case-requester-card .detail-facts > div:last-child { border-bottom: 0; }
.case-requester-card .detail-facts > div > span { color: #98a2b3; font-size: 8px; font-weight: 650; }
.case-requester-card .detail-facts > div > strong { color: #475467; font-size: 9px; font-weight: 680; }
.case-workspace .internal-panel { border-left: 3px solid #98a2b3; }
.case-workspace .close-panel { border-left: 3px solid #16a34a; }

@media(max-width:1050px){
  .case-workspace .detail-layout { grid-template-columns: minmax(0,1fr) 286px; }
  .case-header-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .case-header-facts > div:nth-child(2) { border-right: 0; }
  .case-header-facts > div:nth-child(-n+2) { border-bottom: 1px solid #e7e9ed; }
}
@media(max-width:860px){
  .case-workspace .detail-layout { grid-template-columns: minmax(0,1fr); }
  .case-workspace .detail-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .case-workspace .case-progress-card { grid-column: 1/-1; }
}
@media(max-width:620px){
  .case-command-header { min-height: 390px; grid-template-columns: minmax(0,1fr); align-content: end; padding: 145px 18px 0; background: linear-gradient(180deg,rgba(255,255,255,.04) 0,rgba(255,255,255,.45) 30%,#fff 46%,#fff 100%),#fff url("../assets/dashboard-header.png") no-repeat right top / auto 135px; }
  .case-command-state { width: 100%; min-width: 0; grid-template-columns: auto auto 1fr; align-items: center; justify-items: start; }
  .case-command-state .detail-priority { justify-self: end; }
  .case-header-facts { grid-template-columns: minmax(0,1fr); margin-inline: -18px; }
  .case-header-facts > div { border-right: 0; border-bottom: 1px solid #e7e9ed; }
  .case-header-facts > div:last-child { border-bottom: 0; }
  .case-workspace .detail-sidebar { grid-template-columns: minmax(0,1fr); }
  .case-workspace .case-progress-card { grid-column: auto; }
  .case-workspace .detail-description,
  .case-workspace .conversation-panel,
  .case-workspace .internal-panel,
  .case-workspace .close-panel { padding: 18px; }
  .case-conversation-card .message-content { max-width: calc(100% - 46px); }
  .case-conversation-card .composer-footer { align-items: stretch; flex-direction: column; }
  .case-conversation-card .composer-footer .btn-primary { width: 100%; }
}

/* Encabezado e indicadores ejecutivos de Licencias */
.license-page { display: grid; gap: 20px; }
.license-page-heading {
  display: grid;
  height: 190px;
  min-height: 190px;
  max-height: 190px;
  grid-template-columns: minmax(0,700px) minmax(160px,1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: start;
  gap: 12px 24px;
  margin: 0;
  padding: 24px 30px;
  overflow: hidden;
  border: 1px solid #eee7e0;
  border-radius: 14px;
  background: #fff url("../assets/dashboard-header.png") no-repeat right center / auto 190px;
  box-shadow: 0 8px 24px rgba(181,71,8,.07);
}
.license-page-heading::before,
.license-page-heading::after { display: none; }
.license-heading-copy { width: 100%; max-width: 640px; grid-column: 1; grid-row: 1; }
.license-page-heading .eyebrow { margin-bottom: 6px; color: #c74710; font-size: 9px; font-weight: 760; letter-spacing: .13em; }
.license-page-heading h1 { margin: 0; color: #172b3a; font-size: clamp(23px,2.1vw,31px); font-weight: 760; letter-spacing: -.025em; line-height: 1.12; }
.license-page-heading p { max-width: 590px; margin: 7px 0 0; color: #475467; font-size: 12px; font-weight: 520; line-height: 1.5; }
.license-heading-metrics {
  display: grid;
  width: 100%;
  max-width: 680px;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 7px;
}
.license-heading-metrics article {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 51px;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 7px;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 3px 9px rgba(16,24,40,.045);
  backdrop-filter: blur(5px);
}
.license-heading-metrics article::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #cfd5dc; content: ""; }
.license-heading-metrics article.is-available::before { background: #ef5b20; }
.license-heading-metrics article.is-alert::before { background: #b26a42; }
.license-heading-metrics article > span { grid-column: 2; grid-row: 1; align-self: end; color: #7a8491; font-size: 7px; font-weight: 760; letter-spacing: .09em; white-space: nowrap; }
.license-heading-metrics article > strong { grid-column: 1; grid-row: 1/3; align-self: center; color: #172b3a; font-size: 21px; font-weight: 760; line-height: 1; font-variant-numeric: tabular-nums; }
.license-heading-metrics article.is-available > strong { color: #c74710; }
.license-heading-metrics article.is-alert > strong { color: #8a4b29; }
.license-heading-metrics article > small { min-width: 0; grid-column: 2; grid-row: 2; overflow: hidden; color: #667085; font-size: 7px; font-weight: 540; text-overflow: ellipsis; white-space: nowrap; }

.license-family { border-color: #e1e5ea; border-radius: 13px; box-shadow: 0 5px 17px rgba(16,24,40,.045); }
.license-pool-card { gap: 11px; border-color: #e1e5ea; border-top: 1px solid #e1e5ea; box-shadow: 0 2px 8px rgba(16,24,40,.035); }
.license-pool-card::before { width: 32px; height: 3px; border-radius: 999px; background: #ef5b20; content: ""; }
.license-pool-card.is-unconfigured::before { background: #98a2b3; }
.license-capacity strong { color: #172b3a; font-size: 25px; }
.license-capacity-bar { height: 6px; background: #edf0f3; }
.license-capacity-bar i { background: #ef6b2e; }
.license-capacity-detail { padding-top: 1px; color: #667085; }
.catalog-family-pill { display: inline-flex; min-height: 25px; align-items: center; padding: 4px 8px; border: 1px solid #f0c9b6; border-radius: 999px; background: #fff7f2; color: #a94318; font-size: 9px; font-weight: 680; }
.catalog-family-pill.is-empty { border-style: dashed; border-color: #d5dae1; background: #f8f9fa; color: #7a8491; }
.catalog-license-family-field { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eaecf0; }
.catalog-license-family-field small { display: block; margin-top: 6px; color: #7a8491; font-size: 9px; line-height: 1.45; }

@media(max-width:980px){
  .license-page-heading { height: auto; min-height: 365px; max-height: none; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; align-content: end; padding: 138px 22px 22px; background: #fff url("../assets/dashboard-header.png") no-repeat right top / auto 130px; }
  .license-heading-copy { grid-column: 1; grid-row: 1; }
  .license-heading-metrics { max-width: none; grid-column: 1; grid-row: 2; }
}
@media(max-width:640px){
  .license-page-heading { min-height: 420px; padding: 138px 17px 20px; }
  .license-heading-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .license-heading-metrics article { min-height: 56px; }
}
@media(max-width:390px){
  .license-page-heading { min-height: 470px; }
  .license-heading-metrics { grid-template-columns: minmax(0,1fr); }
  .license-heading-metrics article { min-height: 48px; }
}

/* Portadas corporativas para módulos administrativos */
.corporate-module-heading {
  display: grid;
  height: 190px;
  min-height: 190px;
  max-height: 190px;
  grid-template-columns: minmax(0,720px) minmax(150px,1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: start;
  gap: 12px 24px;
  margin: 0 0 20px;
  padding: 25px 30px;
  overflow: hidden;
  border: 1px solid #eee7e0;
  border-radius: 14px;
  background: #fff url("../assets/dashboard-header.png") no-repeat right center / auto 190px;
  box-shadow: 0 8px 24px rgba(181,71,8,.07);
}
.corporate-module-heading::before,
.corporate-module-heading::after { display: none; }
.corporate-heading-copy { width: 100%; max-width: 650px; grid-column: 1; grid-row: 1; }
.corporate-module-heading .eyebrow { margin-bottom: 6px; color: #c74710; font-size: 9px; font-weight: 760; letter-spacing: .13em; }
.corporate-module-heading h1 { margin: 0; color: #172b3a; font-size: clamp(24px,2.2vw,32px); font-weight: 760; letter-spacing: -.025em; line-height: 1.12; }
.corporate-module-heading p { max-width: 610px; margin: 8px 0 0; color: #475467; font-size: 12px; font-weight: 520; line-height: 1.5; }
.corporate-heading-actions { display: flex; width: 100%; max-width: 720px; min-width: 0; grid-column: 1; grid-row: 2; align-items: stretch; gap: 9px; }
.corporate-heading-metrics { display: flex; min-width: 0; align-items: stretch; gap: 7px; }
.corporate-heading-metrics > div {
  display: flex;
  min-width: 122px;
  min-height: 42px;
  align-items: baseline;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 3px 9px rgba(16,24,40,.045);
  backdrop-filter: blur(5px);
}
.corporate-heading-metrics strong { color: #c74710; font-size: 19px; font-weight: 760; line-height: 1; font-variant-numeric: tabular-nums; }
.corporate-heading-metrics span { min-width: 0; color: #526171; font-size: 8px; font-weight: 620; line-height: 1.25; }
.corporate-module-heading .corporate-heading-primary {
  min-width: max-content;
  min-height: 42px;
  flex: 0 0 auto;
  padding: 8px 15px;
  border-color: #ef5b20;
  border-radius: 9px;
  background: #ef5b20;
  color: #fff;
  box-shadow: 0 7px 16px rgba(209,68,10,.22);
}
.corporate-module-heading .corporate-heading-primary:hover { border-color: #d84b13; background: #d84b13; }
.corporate-module-heading .corporate-heading-primary:disabled { border-color: #d0d5dd; background: #e4e7ec; color: #98a2b3; box-shadow: none; }

/* Performance evaluation cycle builder */
.performance-builder-heading { margin-bottom: 14px; }
.performance-builder-heading-note { display: flex; min-width: 210px; flex-direction: column; gap: 3px; align-self: stretch; justify-content: center; padding: 12px 15px; border: 1px solid #f0d8cb; border-radius: 10px; background: rgba(255,250,247,.92); color: #6f3a22; }
.performance-builder-heading-note strong { font-size: 12px; }
.performance-builder-heading-note span { color: #80604f; font-size: 10px; line-height: 1.4; }
.performance-builder { display: grid; grid-template-columns: minmax(205px, .32fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.performance-builder-aside { position: sticky; z-index: 2; top: 112px; align-self: start; padding: 18px; border: 1px solid #e5e9ee; border-radius: 12px; background: linear-gradient(160deg,#fff 55%,#f8fafc); box-shadow: 0 8px 22px rgba(16,24,40,.06); }
.performance-builder-aside > .eyebrow { color: #c74710; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.performance-steps { display: grid; gap: 7px; margin: 15px 0 18px; padding: 0; list-style: none; }
.performance-steps li { min-width: 0; color: #667585; }
.performance-step-button { display: grid; width: 100%; min-width: 0; grid-template-columns: 29px minmax(0,1fr); gap: 10px; align-items: center; padding: 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background-color .16s ease,border-color .16s ease,color .16s ease; }
.performance-step-button:hover { border-color: #e5e9ee; background: #f8fafc; color: #263847; }
.performance-step-button:focus-visible { outline: 3px solid rgba(239,91,32,.24); outline-offset: 2px; }
.performance-step-button > span:first-child { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #d7dde5; border-radius: 8px; background: #f8fafc; color: #667585; font-size: 10px; font-weight: 750; }
.performance-steps li.is-current .performance-step-button { border-color: #f2d5c7; background: #fff8f4; color: #263847; }
.performance-steps li.is-current .performance-step-button > span:first-child { border-color: #ef5b20; background: #fff0e9; color: #ba3c0b; }
.performance-step-copy { min-width: 0; }
.performance-steps strong, .performance-steps small { display: block; }
.performance-steps strong { font-size: 11px; }
.performance-steps small { margin-top: 2px; color: #8491a0; font-size: 9px; }
.performance-builder-tip { padding: 13px; border-radius: 9px; background: #f7f9fb; color: #4c5b68; }
.performance-builder-tip strong { color: #344454; font-size: 11px; }
.performance-builder-tip p { margin: 5px 0 0; font-size: 10px; line-height: 1.5; }
.performance-cycle-form { display: grid; min-height: calc(100vh - 220px); align-content: start; gap: 14px; min-width: 0; }
.performance-form-panel { overflow: hidden; scroll-margin-top: 18px; }
.performance-form-panel:focus { outline: 0; }
.performance-form-panel h2:focus { outline: 0; }
.performance-form-panel > .ticket-panel-head { min-height: 82px; align-items: center; }
.performance-form-panel .ticket-panel-head h2 { margin: 3px 0; color: #182b3a; font-size: 16px; }
.performance-form-body, .performance-competencies, .performance-publication-options { padding: 20px 22px; }
.performance-scope-selection { display: grid; gap: 9px; }
.performance-scope-options { display: grid; max-height: 260px; gap: 6px; overflow-y: auto; padding: 4px; border: 1px solid #e1e6ec; border-radius: 9px; background: #f8fafc; }
.performance-scope-option { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid #e5e9ee; border-radius: 7px; background: #fff; }
.performance-scope-option > span, .performance-scope-selected-list li > span { min-width: 0; color: #344454; font-size: 11px; overflow-wrap: anywhere; }
.performance-scope-option button, .performance-scope-selected-list button { flex: 0 0 auto; padding: 6px 9px; font-size: 10px; }
.performance-scope-selected { display: grid; gap: 7px; }
.performance-scope-selected-heading { display: flex; align-items: center; gap: 7px; color: #344454; font-size: 11px; }
.performance-scope-selected-heading span { display: grid; min-width: 21px; height: 21px; place-items: center; border-radius: 999px; background: #fff0e9; color: #b94112; font-size: 10px; font-weight: 800; }
.performance-scope-selected-list { display: grid; max-height: 240px; gap: 6px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.performance-scope-selected-list li { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid #dfe8e2; border-radius: 7px; background: #f7fbf8; }
.performance-scope-empty { margin: 0; padding: 10px; color: #748190; font-size: 11px; }
.performance-form-body .field > small { display: block; margin-top: 5px; color: #748190; font-size: 10px; }
.performance-check { position: relative; display: flex; max-width: 520px; min-height: 48px; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 9px 12px; border: 1px solid #dbe3eb; border-radius: 9px; background: #f8fafc; cursor: pointer; }
.performance-check input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.performance-check-copy { min-width: 0; }
.performance-check-switch { position: relative; width: 38px; height: 22px; flex: 0 0 38px; border: 1px solid #c9d0d9; border-radius: 999px; background: #d0d5dd; }
.performance-check-switch::before { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.22); content: ""; }
.performance-check input:checked ~ .performance-check-switch { border-color: #16834a; background: #16834a; }
.performance-check input:checked ~ .performance-check-switch::before { transform: translateX(16px); }
.performance-check input:focus-visible ~ .performance-check-switch { outline: 3px solid rgba(22,131,74,.25); outline-offset: 2px; }
.performance-check strong, .performance-check small { display: block; }
.performance-check strong { font-size: 11px; }
.performance-check small { margin-top: 2px; color: #64748b; font-size: 10px; line-height: 1.35; }
.performance-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.performance-levels div { padding: 10px 8px; border: 1px solid #dbe3eb; border-radius: 8px; background: #fff; text-align: center; }
.performance-levels strong, .performance-levels span { display: block; }
.performance-levels strong { color: #17324d; font-size: 13px; }
.performance-levels span { margin-top: 3px; color: #64748b; font-size: 10px; }
@media (max-width: 720px) { .performance-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.performance-date-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 17px; }
.performance-date-grid .field-span { grid-column: 1 / -1; }
.performance-competencies { display: grid; gap: 9px; }
.performance-competency-row { display: grid; grid-template-columns: 30px minmax(0,1fr) 110px; gap: 12px; align-items: end; padding: 12px; border: 1px solid #e5e9ee; border-radius: 10px; background: #fff; }
.performance-competency-order { display: grid; width: 28px; height: 28px; place-items: center; margin-bottom: 3px; border-radius: 8px; background: #f6f8fa; color: #667585; font-size: 9px; font-weight: 800; }
.performance-competency-row .field { margin: 0; }
.performance-competency-row label { font-size: 10px; }
.performance-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.performance-inline-actions button { font-size: 11px; }
.performance-helper { margin: 12px 22px 0; color: #526476; font-size: 12px; line-height: 1.5; }
.performance-form-body > .performance-helper { margin: 12px 0; }
.performance-competency-row { grid-template-columns: 30px minmax(0,1fr) 110px auto; }
.performance-remove-competency { padding: 8px; font-size: 11px; }
.performance-function-entry { display: grid; grid-template-columns: minmax(150px,.8fr) minmax(200px,1.5fr) auto; align-items: end; gap: 12px; }
.performance-function-entry .field { margin: 0; }
.performance-function-list { display: grid; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.performance-function-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #e5e9ee; border-radius: 9px; }
.performance-function-list li div { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.performance-function-list small { color: #637384; }
@media (max-width: 820px) { .performance-steps { grid-template-columns: repeat(6,minmax(0,1fr)); } .performance-function-entry { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .performance-competency-row { grid-template-columns: 28px minmax(0,1fr); } .performance-remove-competency { grid-column: 2; justify-self: start; } .performance-inline-actions { width: 100%; } }
.performance-weight-input { display: flex; align-items: center; border: 1px solid #d8dee7; border-radius: 8px; background: #fff; }
.performance-weight-input:focus-within { border-color: #ef5b20; box-shadow: 0 0 0 3px rgba(239,91,32,.11); }
.performance-weight-input input { min-width: 0; border: 0; box-shadow: none; }
.performance-weight-input input:focus { box-shadow: none; }
.performance-weight-input span { padding-right: 10px; color: #72808f; font-size: 11px; font-weight: 700; }
.performance-weight-total { min-width: 62px; padding: 7px 9px; border: 1px solid #d9e8dd; border-radius: 8px; background: #f2faf4; color: #267244; font-size: 11px; font-weight: 800; text-align: center; }
.performance-weight-total.is-invalid { border-color: #f2c8c4; background: #fff4f2; color: #b42318; }
.performance-publication-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.performance-publication-options label { display: flex; gap: 10px; padding: 13px; border: 1px solid #e1e6ec; border-radius: 10px; cursor: pointer; }
.performance-publication-options label:has(input:checked) { border-color: #ef5b20; background: #fff8f4; box-shadow: inset 0 0 0 1px rgba(239,91,32,.12); }
.performance-publication-options input { width: 15px; height: 15px; accent-color: #ef5b20; }
.performance-publication-options strong, .performance-publication-options small { display: block; }
.performance-publication-options strong { color: #243746; font-size: 11px; }
.performance-publication-options small { margin-top: 3px; color: #73808e; font-size: 10px; line-height: 1.35; }
.performance-form-error { margin: 0; }
.performance-builder-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 3px 0 18px; }
@media (max-width: 820px) { .performance-builder { grid-template-columns: 1fr; } .performance-builder-aside { position: sticky; top: 112px; padding: 14px; } .performance-steps { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; margin: 10px 0 0; } .performance-step-button { grid-template-columns: 1fr; justify-items: center; gap: 5px; height: 100%; padding: 7px 4px; text-align: center; } .performance-step-copy strong { font-size: 9px; } .performance-step-copy small { display: none; } .performance-builder-tip { display: none; } }
@media (max-width: 560px) { .performance-builder-heading-note { min-width: 0; } .performance-builder-aside { top: 78px; padding: 10px; } .performance-steps { display: flex; overflow-x: auto; padding: 2px 2px 7px; } .performance-steps li { min-width: 88px; flex: 1 0 88px; } .performance-step-button { min-height: 62px; } .performance-date-grid, .performance-publication-options { grid-template-columns: 1fr; } .performance-competency-row { grid-template-columns: 28px minmax(0,1fr); } .performance-weight-field { grid-column: 2; } .performance-form-body, .performance-competencies, .performance-publication-options { padding: 15px; } .performance-builder-actions { flex-direction: column-reverse; } .performance-builder-actions button { width: 100%; } }

.projects-page-heading { margin-bottom: 14px; }
.project-heading-actions { max-width: 720px; }
.project-heading-metrics { display: grid; min-width: 0; flex: 1; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.project-heading-metrics article {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 42px;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 6px;
  padding: 6px 8px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 3px 9px rgba(16,24,40,.045);
}
.project-heading-metrics article::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #d0d5dd; content: ""; }
.project-heading-metrics article.is-alert::before { background: #ef5b20; }
.project-heading-metrics article > strong { grid-column: 1; grid-row: 1/3; align-self: center; color: #172b3a; font-size: 18px; font-weight: 760; line-height: 1; }
.project-heading-metrics article.is-alert > strong { color: #c74710; }
.project-heading-metrics article > span { align-self: end; color: #7a8491; font-size: 6px; font-weight: 760; letter-spacing: .07em; }
.project-heading-metrics article > small { overflow: hidden; color: #667085; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-page-heading { margin-bottom: 20px; padding: 25px 30px; }
.catalog-page-heading .corporate-heading-metrics > div { min-width: 112px; }
.formats-page-heading { margin-bottom: 20px; }

@media(max-width:1050px){
  .corporate-module-heading {
    height: auto;
    min-height: 310px;
    max-height: none;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto;
    align-content: end;
    padding: 138px 22px 22px;
    background: #fff url("../assets/dashboard-header.png") no-repeat right top / auto 130px;
  }
  .corporate-heading-copy { grid-column: 1; grid-row: 1; }
  .corporate-heading-actions { max-width: none; grid-column: 1; grid-row: 2; }
}
@media(max-width:720px){
  .corporate-module-heading { min-height: 350px; padding-inline: 18px; }
  .corporate-heading-actions { flex-wrap: wrap; }
  .corporate-heading-metrics { flex: 1 1 100%; }
  .corporate-heading-metrics > div { min-width: 0; flex: 1; }
  .corporate-module-heading .corporate-heading-primary { flex: 1 1 100%; }
  .project-heading-actions { flex-wrap: wrap; }
  .project-heading-metrics { flex: 1 1 100%; }
}
@media(max-width:520px){
  .corporate-module-heading { min-height: 390px; padding: 138px 16px 20px; }
  .corporate-heading-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .corporate-heading-metrics > div { justify-content: center; }
  .catalog-page-heading { min-height: 455px; padding-inline: 16px; }
  .catalog-page-heading .corporate-heading-metrics { grid-template-columns: minmax(0,1fr); }
  .projects-page-heading { min-height: 455px; }
  .project-heading-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Búsqueda del directorio de usuarios */
.user-directory-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 22px 18px; }
.user-directory-search { width: min(100%,520px); }
.user-directory-search > label { display: block; margin-bottom: 6px; color: #667085; font-size: 10px; font-weight: 650; }
.user-directory-search .search-field { min-height: 42px; border-color: #d8dde4; border-radius: 9px; background: #fff; }
.user-directory-search .search-field:focus-within { border-color: #ef8a59; box-shadow: 0 0 0 3px rgba(239,91,32,.1); }
.user-directory-search .search-field input { min-width: 0; padding-right: 38px; font-size: 11px; }
.user-directory-search .search-field > button {
  position: absolute;
  right: 7px;
  display: grid;
  width: 27px;
  min-width: 27px;
  height: 27px;
  min-height: 27px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #667085;
  box-shadow: none;
  font-size: 15px;
}
.user-directory-search .search-field > button:hover { background: #fff0e7; color: #c74710; transform: none; box-shadow: none; }
.user-directory-search .search-field > button[hidden] { display: none; }
.user-list-panel .ticket-panel-head p strong { color: #c74710; font-weight: 720; }
.user-list-panel > .ticket-panel-head { justify-content: space-between; gap: 16px; }
.user-directory-reconciliation-note {
  margin: 0 22px 14px;
  padding: 10px 12px;
  border: 1px solid #f4d7b5;
  border-radius: 8px;
  background: #fff8f1;
  color: #7a2e0e;
  font-size: 11px;
  line-height: 1.45;
}
.user-export-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 0 14px; border: 1px solid #f2b08f; border-radius: 9px;
  background: #fff7f2; color: #b93d0b; font-size: 11px; font-weight: 720; white-space: nowrap;
}
.user-export-button span { font-size: 17px; line-height: 1; }
.user-export-button:hover:not(:disabled) { border-color: #ef5b20; background: #fff0e7; color: #a83408; box-shadow: 0 5px 14px rgba(239,91,32,.12); }
.user-export-button:disabled { opacity: .5; cursor: not-allowed; }
.user-no-results { min-height: 190px; border-top: 1px solid #eaecf0; }
.user-no-results[hidden] { display: none; }
@media(max-width:640px){
  .user-list-panel > .ticket-panel-head { align-items: flex-start; }
  .user-export-button { width: 100%; }
  .user-directory-reconciliation-note { margin-inline: 14px; }
  .user-directory-toolbar { padding-inline: 14px; }
  .user-directory-search { width: 100%; }
}

#new-directory.cartera-directory-view { display: grid; gap: 14px; }
.cartera-client-heading { min-height: 0; margin-bottom: 0; }
.cartera-client-heading .corporate-heading-actions { max-width: none; align-items: center; justify-content: space-between; }
.cartera-client-heading .corporate-heading-metrics > div { min-width: 90px; }
.cartera-client-list-panel > .ticket-panel-head { justify-content: space-between; gap: 16px; }
.cartera-client-list-panel .ticket-panel-head p strong { color: #c74710; font-weight: 720; }
.cartera-client-toolbar { display: grid; grid-template-columns: minmax(240px,2fr) minmax(190px,1fr) auto; align-items: flex-end; justify-content: stretch; gap: 12px; }
.cartera-client-toolbar .user-directory-search { width: auto; min-width: 0; }
.cartera-client-toolbar .cartera-client-state-filter { display: grid; min-width: 0; gap: 6px; color: #667085; font-size: 10px; font-weight: 650; }
.cartera-client-state-filter select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #d8dde4; border-radius: 9px; background: #fff; color: #344054; font-size: 11px; }
.cartera-client-state-filter select:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.1); }
.cartera-client-state-filter select:disabled { background: #f8f9fa; color: #475467; opacity: 1; }
.cartera-client-clear-filters { min-height: 42px; white-space: nowrap; }
.cartera-client-table { min-width: 860px; }
.cartera-client-table th:first-child { min-width: 245px; }
.cartera-client-table td:first-child .requester-cell > span:last-child { display: grid; gap: 4px; }
.cartera-client-table td:first-child .requester-cell strong { color: #182230; font-size: 12px; font-weight: 680; }
.cartera-client-table td:first-child .requester-cell small,
.cartera-client-table .table-subtext { color: #667085; font-size: 10px; }
.cartera-client-status { display: inline-flex; width: max-content; min-height: 23px; align-items: center; justify-content: center; padding: 3px 9px; border: 1px solid #d0d5dd; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 10px; font-weight: 680; }
.cartera-client-status.is-pending { border-color: #fedf89; background: #fffaeb; color: #93370d; }
.cartera-client-status.is-returned { border-color: #fecdca; background: #fff1f0; color: #b42318; }
.cartera-client-status.is-approved { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.cartera-client-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.cartera-client-open-button,
.cartera-client-actions .btn-primary,
.cartera-client-actions .btn-secondary { min-height: 32px; padding: 5px 9px; white-space: nowrap; }
.cartera-client-empty { min-height: 145px; border-top: 1px solid #eaecf0; }
.cartera-client-detail-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cartera-client-detail-toolbar > .button-row { margin: 0; }
.cartera-client-detail-panel { overflow: hidden; }
.cartera-client-detail-panel > .ticket-panel-head { align-items: flex-start; gap: 16px; padding: 20px 22px; }
.cartera-client-detail-panel > .ticket-panel-head h2 { margin: 4px 0 5px; color: #182230; font-size: clamp(20px,2vw,26px); }
.cartera-client-detail-panel > .ticket-panel-head p { margin: 0; color: #667085; font-size: 12px; }
.cartera-client-detail-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0 22px 20px; }
.cartera-client-detail-fields article { display: grid; min-width: 0; gap: 6px; padding: 12px 14px; border: 1px solid #eaecf0; border-radius: 9px; background: #fcfcfd; }
.cartera-client-detail-fields article span { color: #667085; font-size: 10px; font-weight: 650; }
.cartera-client-detail-fields article strong { color: #182230; font-size: 13px; overflow-wrap: anywhere; }
.cartera-return-observation { margin: 0 22px 20px; padding: 14px 16px; border: 1px solid #fecdca; border-left: 4px solid #d92d20; border-radius: 9px; background: #fff8f7; }
.cartera-return-observation h3 { margin: 0 0 6px; color: #b42318; font-size: 12px; }
.cartera-return-observation p { margin: 0; color: #7a271a; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
#new-directory.cartera-directory-view #directory-form { padding: 18px 20px; border: 1px solid #eaecf0; border-radius: 12px; background: #fff; }
@media(max-width:1050px){
  .cartera-client-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cartera-client-toolbar .user-directory-search { grid-column: 1 / -1; }
}
@media(max-width:640px){
  .cartera-client-heading .corporate-heading-actions { align-items: stretch; }
  .cartera-client-heading .corporate-heading-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cartera-client-heading .corporate-heading-metrics > div { min-width: 0; padding: 8px; }
  .cartera-client-heading .corporate-heading-primary { width: 100%; }
  .cartera-client-toolbar { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
  .cartera-client-toolbar .user-directory-search { grid-column: auto; }
  .cartera-client-clear-filters { width: 100%; }
  .cartera-client-detail-toolbar { align-items: stretch; }
  .cartera-client-detail-toolbar > button,
  .cartera-client-detail-toolbar > .button-row,
  .cartera-client-detail-toolbar > .button-row button { width: 100%; }
  .cartera-client-detail-fields { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
  .cartera-client-detail-panel > .ticket-panel-head { padding: 16px 14px; }
  .cartera-return-observation { margin-inline: 14px; }
  #new-directory.cartera-directory-view #directory-form { padding: 14px; }
}

#new-directory.costos-directory-view { display: grid; gap: 14px; }
.costos-material-heading { min-height: 0; margin-bottom: 0; }
.costos-material-heading .corporate-heading-actions { max-width: none; align-items: center; justify-content: space-between; }
.costos-material-heading .corporate-heading-metrics > div { min-width: 90px; }
.costos-material-list-panel > .ticket-panel-head { justify-content: space-between; gap: 16px; }
.costos-material-list-panel .ticket-panel-head p strong { color: #c74710; font-weight: 720; }
.costos-material-toolbar { display: grid; grid-template-columns: minmax(240px,2fr) minmax(190px,1fr) auto; align-items: flex-end; justify-content: stretch; gap: 12px; }
.costos-material-toolbar .user-directory-search { width: auto; min-width: 0; }
.costos-material-toolbar .costos-material-state-filter { display: grid; min-width: 0; gap: 6px; color: #667085; font-size: 10px; font-weight: 650; }
.costos-material-state-filter select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #d8dde4; border-radius: 9px; background: #fff; color: #344054; font-size: 11px; }
.costos-material-state-filter select:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.1); }
.costos-material-state-filter select:disabled { background: #f8f9fa; color: #475467; opacity: 1; }
.costos-material-clear-filters { min-height: 42px; white-space: nowrap; }
.costos-material-table { min-width: 780px; }
.costos-material-table th:first-child { min-width: 280px; }
.costos-material-identity { display: grid; min-width: 0; gap: 4px; }
.costos-material-identity strong { color: #344054; font-size: 12px; font-weight: 740; overflow-wrap: anywhere; }
.costos-material-identity span { color: #182230; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.costos-material-table td:nth-child(2) { color: #475467; font-size: 11px; }
.costos-material-status { display: inline-flex; width: max-content; min-height: 23px; align-items: center; justify-content: center; padding: 3px 9px; border: 1px solid #d0d5dd; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 10px; font-weight: 680; }
.costos-material-status.is-pending { border-color: #fedf89; background: #fffaeb; color: #93370d; }
.costos-material-status.is-returned { border-color: #fecdca; background: #fff1f0; color: #b42318; }
.costos-material-status.is-approved { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.costos-material-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.costos-material-open-button,
.costos-material-actions .btn-primary,
.costos-material-actions .btn-secondary { min-height: 32px; padding: 5px 9px; white-space: nowrap; }
.costos-material-empty { min-height: 145px; border-top: 1px solid #eaecf0; }
.costos-material-detail-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.costos-material-detail-toolbar > .button-row { margin: 0; }
.costos-material-detail-panel { overflow: hidden; }
.costos-material-detail-panel > .ticket-panel-head { align-items: flex-start; gap: 16px; padding: 20px 22px; }
.costos-material-detail-panel > .ticket-panel-head h2 { margin: 4px 0 5px; color: #182230; font-size: clamp(20px,2vw,26px); }
.costos-material-detail-panel > .ticket-panel-head p { margin: 0; color: #667085; font-size: 12px; overflow-wrap: anywhere; }
.costos-material-detail-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 0 22px 20px; }
.costos-material-detail-fields article { display: grid; min-width: 0; gap: 6px; padding: 12px 14px; border: 1px solid #eaecf0; border-radius: 9px; background: #fcfcfd; }
.costos-material-detail-fields article span { color: #667085; font-size: 10px; font-weight: 650; }
.costos-material-detail-fields article strong { color: #182230; font-size: 13px; overflow-wrap: anywhere; }
.costos-return-observation { margin: 0 22px 20px; padding: 14px 16px; border: 1px solid #fecdca; border-left: 4px solid #d92d20; border-radius: 9px; background: #fff8f7; }
.costos-return-observation h3 { margin: 0 0 6px; color: #b42318; font-size: 12px; }
.costos-return-observation p { margin: 0; color: #7a271a; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
#new-directory.costos-directory-view #directory-form { padding: 18px 20px; border: 1px solid #eaecf0; border-radius: 12px; background: #fff; }
@media(max-width:1050px){
  .costos-material-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .costos-material-toolbar .user-directory-search { grid-column: 1 / -1; }
  .costos-material-detail-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px){
  .costos-material-heading .corporate-heading-actions { align-items: stretch; }
  .costos-material-heading .corporate-heading-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .costos-material-heading .corporate-heading-metrics > div { min-width: 0; padding: 8px; }
  .costos-material-heading .corporate-heading-primary { width: 100%; }
  .costos-material-toolbar { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
  .costos-material-toolbar .user-directory-search { grid-column: auto; }
  .costos-material-clear-filters { width: 100%; }
  .costos-material-detail-toolbar { align-items: stretch; }
  .costos-material-detail-toolbar > button,
  .costos-material-detail-toolbar > .button-row,
  .costos-material-detail-toolbar > .button-row button { width: 100%; }
  .costos-material-detail-fields { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
  .costos-material-detail-panel > .ticket-panel-head { padding: 16px 14px; }
  .costos-return-observation { margin-inline: 14px; }
  #new-directory.costos-directory-view #directory-form { padding: 14px; }
}

#new-directory.contabilidad-directory-view { display: grid; gap: 14px; }
.contabilidad-supplier-heading { min-height: 0; margin-bottom: 0; }
.contabilidad-supplier-heading .corporate-heading-actions { max-width: none; align-items: center; justify-content: space-between; }
.contabilidad-supplier-heading .corporate-heading-metrics > div { min-width: 90px; }
.contabilidad-supplier-list-panel > .ticket-panel-head { justify-content: space-between; gap: 16px; }
.contabilidad-supplier-list-panel .ticket-panel-head p strong { color: #c74710; font-weight: 720; }
.contabilidad-supplier-toolbar { display: grid; grid-template-columns: minmax(240px,2fr) minmax(190px,1fr) auto; align-items: flex-end; justify-content: stretch; gap: 12px; }
.contabilidad-supplier-toolbar .user-directory-search { width: auto; min-width: 0; }
.contabilidad-supplier-toolbar .contabilidad-supplier-state-filter { display: grid; min-width: 0; gap: 6px; color: #667085; font-size: 10px; font-weight: 650; }
.contabilidad-supplier-state-filter select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #d8dde4; border-radius: 9px; background: #fff; color: #344054; font-size: 11px; }
.contabilidad-supplier-state-filter select:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.1); }
.contabilidad-supplier-state-filter select:disabled { background: #f8f9fa; color: #475467; opacity: 1; }
.contabilidad-supplier-clear-filters { min-height: 42px; white-space: nowrap; }
.contabilidad-supplier-table { min-width: 900px; }
.contabilidad-supplier-table th:first-child { min-width: 280px; }
.contabilidad-supplier-table td:first-child .requester-cell > span:last-child { display: grid; gap: 4px; }
.contabilidad-supplier-table td:first-child .requester-cell strong { color: #182230; font-size: 12px; font-weight: 680; }
.contabilidad-supplier-table td:first-child .requester-cell small,
.contabilidad-supplier-table .table-subtext { color: #667085; font-size: 10px; }
.contabilidad-supplier-status { display: inline-flex; width: max-content; min-height: 23px; align-items: center; justify-content: center; padding: 3px 9px; border: 1px solid #d0d5dd; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 10px; font-weight: 680; }
.contabilidad-supplier-status.is-pending { border-color: #fedf89; background: #fffaeb; color: #93370d; }
.contabilidad-supplier-status.is-returned { border-color: #fecdca; background: #fff1f0; color: #b42318; }
.contabilidad-supplier-status.is-approved { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.contabilidad-supplier-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.contabilidad-supplier-open-button,
.contabilidad-supplier-actions .btn-primary,
.contabilidad-supplier-actions .btn-secondary { min-height: 32px; padding: 5px 9px; white-space: nowrap; }
.contabilidad-supplier-empty { min-height: 145px; border-top: 1px solid #eaecf0; }
.contabilidad-supplier-detail-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.contabilidad-supplier-detail-toolbar > .button-row { margin: 0; }
.contabilidad-supplier-detail-panel { overflow: hidden; }
.contabilidad-supplier-detail-panel > .ticket-panel-head { align-items: flex-start; gap: 16px; padding: 20px 22px; }
.contabilidad-supplier-detail-panel > .ticket-panel-head h2 { margin: 4px 0 5px; color: #182230; font-size: clamp(20px,2vw,26px); }
.contabilidad-supplier-detail-panel > .ticket-panel-head p { margin: 0; color: #667085; font-size: 12px; overflow-wrap: anywhere; }
.contabilidad-supplier-detail-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0 22px 20px; }
.contabilidad-supplier-detail-fields article { display: grid; min-width: 0; gap: 6px; padding: 12px 14px; border: 1px solid #eaecf0; border-radius: 9px; background: #fcfcfd; }
.contabilidad-supplier-detail-fields article span { color: #667085; font-size: 10px; font-weight: 650; }
.contabilidad-supplier-detail-fields article strong { color: #182230; font-size: 13px; overflow-wrap: anywhere; }
.contabilidad-supplier-return-observation { margin: 0 22px 20px; padding: 14px 16px; border: 1px solid #fecdca; border-left: 4px solid #d92d20; border-radius: 9px; background: #fff8f7; }
.contabilidad-supplier-return-observation h3 { margin: 0 0 6px; color: #b42318; font-size: 12px; }
.contabilidad-supplier-return-observation p { margin: 0; color: #7a271a; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
#new-directory.contabilidad-directory-view #directory-form { padding: 18px 20px; border: 1px solid #eaecf0; border-radius: 12px; background: #fff; }
@media(max-width:1050px){
  .contabilidad-supplier-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contabilidad-supplier-toolbar .user-directory-search { grid-column: 1 / -1; }
}
@media(max-width:640px){
  .contabilidad-supplier-heading .corporate-heading-actions { align-items: stretch; }
  .contabilidad-supplier-heading .corporate-heading-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .contabilidad-supplier-heading .corporate-heading-metrics > div { min-width: 0; padding: 8px; }
  .contabilidad-supplier-heading .corporate-heading-primary { width: 100%; }
  .contabilidad-supplier-toolbar { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
  .contabilidad-supplier-toolbar .user-directory-search { grid-column: auto; }
  .contabilidad-supplier-clear-filters { width: 100%; }
  .contabilidad-supplier-detail-toolbar { align-items: stretch; }
  .contabilidad-supplier-detail-toolbar > button,
  .contabilidad-supplier-detail-toolbar > .button-row,
  .contabilidad-supplier-detail-toolbar > .button-row button { width: 100%; }
  .contabilidad-supplier-detail-fields { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
  .contabilidad-supplier-detail-panel > .ticket-panel-head { padding: 16px 14px; }
  .contabilidad-supplier-return-observation { margin-inline: 14px; }
  #new-directory.contabilidad-directory-view #directory-form { padding: 14px; }
}

.quality-document-heading { margin-bottom: 14px; }
.quality-document-heading .corporate-heading-actions { max-width: none; align-items: center; justify-content: space-between; }
.quality-document-heading .corporate-heading-metrics > div { min-width: 105px; }
.quality-document-heading .button-row { margin: 0; }
.quality-document-list-panel > .ticket-panel-head { justify-content: space-between; gap: 16px; }
.quality-document-list-panel .ticket-panel-head p strong { color: #c74710; font-weight: 720; }
.quality-document-toolbar { display: grid; grid-template-columns: minmax(240px,2fr) minmax(190px,1fr) auto; align-items: flex-end; justify-content: stretch; gap: 12px; }
.quality-document-toolbar .user-directory-search { width: auto; min-width: 0; }
.quality-document-toolbar > label { display: grid; min-width: 0; gap: 6px; color: #667085; font-size: 10px; font-weight: 650; }
.quality-document-toolbar > label select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #d8dde4; border-radius: 9px; background: #fff; color: #344054; font-size: 11px; }
.quality-document-toolbar > label select:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.1); }
.quality-document-clear-filters { min-height: 42px; white-space: nowrap; }
.quality-document-table { min-width: 900px; }
.quality-document-reference { color: #344054; font-size: 11px; font-weight: 720; }
.quality-document-title { max-width: 320px; overflow: hidden; color: #182230; font-size: 12px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.quality-document-version { color: #344054; font-variant-numeric: tabular-nums; font-weight: 650; }
.quality-document-status { min-height: 23px; justify-content: center; border-color: #d0d5dd; background: #f2f4f7; color: #475467; }
.quality-document-status.is-current { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.quality-document-status.is-pending { border-color: #fedf89; background: #fffaeb; color: #93370d; }
.quality-document-status.is-returned { border-color: #fecdca; background: #fff1f0; color: #b42318; }
.quality-document-status.is-draft,
.quality-document-status.is-unpublished { border-color: #d0d5dd; background: #f8f9fa; color: #475467; }
.quality-document-open-button { min-height: 34px; padding: 6px 10px; white-space: nowrap; }
.quality-document-empty { min-height: 150px; border-top: 1px solid #eaecf0; }
.quality-document-empty[hidden] { display: none; }
.quality-document-detail-heading { margin-bottom: 14px; }
.quality-document-identification { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 7px 0; color: #344054; font-size: 13px; }
.quality-document-identification > strong { color: #172b3a; font-size: 14px; }
.quality-document-detail-heading .corporate-heading-copy h1 { font-size: clamp(22px,2vw,29px); }
.quality-document-detail-heading .corporate-heading-actions { max-width: none; align-items: center; justify-content: flex-end; }
.quality-document-detail-heading .button-row { justify-content: flex-end; }
.quality-document-version-stack { display: grid; gap: 13px; margin-bottom: 14px; }
.quality-document-version-card { overflow: hidden; border-left: 4px solid #d0d5dd; }
.quality-document-version-card.is-current { border-left-color: #12b76a; }
.quality-document-version-card.is-pending { border-left-color: #f79009; }
.quality-document-version-card.is-empty { border-left-color: #98a2b3; }
.quality-document-version-card .ticket-panel-head { align-items: flex-start; border-bottom: 0; }
.quality-document-version-card .ticket-panel-head > div { min-width: 0; }
.quality-document-version-card .eyebrow { color: #667085; font-size: 9px; font-weight: 760; letter-spacing: .1em; }
.quality-document-version-card.is-current .eyebrow { color: #067647; }
.quality-document-version-card.is-pending .eyebrow { color: #93370d; }
.quality-document-version-card .ticket-panel-head h2 { margin: 4px 0; color: #182230; font-size: 16px; }
.quality-document-version-card .ticket-panel-head p { overflow-wrap: anywhere; color: #667085; }
.quality-document-version-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px 16px; color: #667085; font-size: 11px; }
.quality-document-version-actions button { min-height: 36px; }
.quality-document-history-panel > .ticket-panel-head { justify-content: space-between; }
.quality-document-history-panel .ticket-panel-head h2 { color: #182230; font-size: 16px; }
.quality-document-version-table { min-width: 900px; }
.quality-document-version-table td { white-space: normal; }
.quality-document-version-table td:first-child,
.quality-document-version-table td:nth-child(2),
.quality-document-version-table td:nth-child(4) { white-space: nowrap; }
.quality-document-version-table .quality-document-version-actions { justify-content: flex-start; padding: 0; }
.quality-document-history-row td { padding-top: 0; }
.quality-document-history { color: #475467; font-size: 11px; }
.quality-document-history summary { cursor: pointer; color: #475467; font-weight: 650; }
.quality-document-history ul { display: grid; gap: 5px; margin: 8px 0 3px; padding-left: 18px; }
.quality-document-history li { overflow-wrap: anywhere; line-height: 1.45; }
.quality-finding-heading,
.quality-finding-detail-heading { margin-bottom: 14px; }
.quality-finding-heading .corporate-heading-actions,
.quality-finding-detail-heading .corporate-heading-actions { max-width: none; align-items: center; justify-content: space-between; }
.quality-finding-heading .corporate-heading-metrics > div { min-width: 108px; }
.quality-finding-heading .button-row,
.quality-finding-detail-heading .button-row { margin: 0; }
.quality-finding-list-panel > .ticket-panel-head { justify-content: space-between; gap: 16px; }
.quality-finding-list-panel .ticket-panel-head p strong { color: #c74710; font-weight: 720; }
.quality-finding-toolbar { display: grid; grid-template-columns: minmax(230px,2fr) repeat(3,minmax(130px,1fr)); align-items: flex-end; justify-content: stretch; gap: 12px; }
.quality-finding-toolbar .user-directory-search { width: auto; min-width: 0; }
.quality-finding-toolbar > label { display: grid; min-width: 0; gap: 6px; color: #667085; font-size: 10px; font-weight: 650; }
.quality-finding-toolbar > label select,
.quality-finding-toolbar > label input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #d8dde4; border-radius: 9px; background: #fff; color: #344054; font-size: 11px; }
.quality-finding-toolbar > label select:focus,
.quality-finding-toolbar > label input:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.1); }
.quality-finding-toolbar .quality-finding-overdue-filter { display: flex; min-height: 42px; align-items: center; gap: 8px; }
.quality-finding-overdue-filter input { width: 16px; height: 16px; accent-color: #ef5b20; }
.quality-finding-clear-filters { min-height: 42px; white-space: nowrap; }
.quality-finding-table { min-width: 1000px; }
.quality-finding-reference { color: #344054; font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 720; white-space: nowrap; }
.quality-finding-title { max-width: 340px; overflow: hidden; color: #182230; font-size: 12px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.quality-finding-empty { min-height: 150px; border-top: 1px solid #eaecf0; }
.quality-finding-empty[hidden] { display: none; }
.quality-finding-detail-heading .corporate-heading-copy h1 { font-size: clamp(22px,2vw,29px); }
.quality-finding-detail-heading .corporate-heading-actions { justify-content: flex-end; }
.quality-finding-detail-heading .button-row { justify-content: flex-end; }
.quality-finding-identification { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 7px 0; color: #344054; font-size: 13px; }
.quality-finding-identification > strong { color: #172b3a; font-size: 14px; }
.quality-finding-summary,
.quality-finding-history,
.quality-finding-efficacy { margin-bottom: 14px; }
.quality-finding-summary > .ticket-panel-head,
.quality-finding-history > .ticket-panel-head { justify-content: space-between; }
.quality-finding-summary .ticket-panel-head h2,
.quality-finding-history .ticket-panel-head h2,
.quality-finding-efficacy h2 { color: #182230; font-size: 16px; }
.quality-finding-description { display: grid; gap: 12px; padding: 0 18px 17px; color: #344054; font-size: 12px; line-height: 1.55; }
.quality-finding-description > p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.quality-finding-linked-document { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid #eaecf0; }
.quality-finding-linked-document strong { color: #667085; font-size: 10px; }
.quality-finding-actions-section { display: grid; gap: 12px; margin-bottom: 14px; }
.quality-finding-actions-section > .ticket-panel-head { display: flex; align-items: flex-end; justify-content: space-between; }
.quality-finding-actions-section > .ticket-panel-head h2 { margin: 0 0 4px; color: #182230; font-size: 16px; }
.quality-finding-actions-section > .ticket-panel-head p { margin: 0; color: #667085; font-size: 11px; }
.quality-finding-action-card { overflow: hidden; border-left: 4px solid #f79009; }
.quality-finding-action-card.is-executed { border-left-color: #12b76a; }
.quality-finding-action-card .ticket-panel-head { align-items: flex-start; border-bottom: 0; }
.quality-finding-action-card .ticket-panel-head > div { min-width: 0; }
.quality-finding-action-card .eyebrow { color: #667085; font-size: 9px; font-weight: 760; letter-spacing: .1em; }
.quality-finding-action-card .ticket-panel-head h3 { margin: 4px 0 0; color: #182230; font-size: 14px; overflow-wrap: anywhere; }
.quality-finding-action-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0 18px 16px; }
.quality-finding-action-fields > div { min-width: 0; padding: 11px 12px; border: 1px solid #eaecf0; border-radius: 8px; background: #fcfcfd; }
.quality-finding-action-fields dt { margin-bottom: 5px; color: #667085; font-size: 10px; font-weight: 650; }
.quality-finding-action-fields dd { margin: 0; color: #182230; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.quality-finding-action-fields dd small { display: block; margin-top: 4px; color: #667085; font-size: 10px; }
.quality-finding-action-fields .quality-finding-action-span { grid-column: 1 / -1; }
.quality-finding-action-fields .quality-finding-evidence dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quality-finding-evidence button { max-width: 100%; min-height: 34px; overflow-wrap: anywhere; white-space: normal; text-align: left; }
.quality-finding-no-evidence { color: #667085; font-size: 11px; }
.quality-finding-overdue { min-height: 21px; margin-left: 5px; border-color: #fecdca; background: #fff1f0; color: #b42318; }
.quality-finding-action-footer { display: flex; justify-content: flex-end; padding: 0 18px 16px; }
.quality-finding-closure-notice,
.quality-finding-return-notice { display: grid; gap: 5px; margin: 0 0 14px; padding: 14px 16px; border: 1px solid #fedf89; border-left: 4px solid #f79009; border-radius: 10px; background: #fffaeb; color: #93370d; }
.quality-finding-closure-notice strong,
.quality-finding-return-notice strong { font-size: 12px; }
.quality-finding-closure-notice p,
.quality-finding-return-notice p { margin: 0; font-size: 12px; line-height: 1.45; }
.quality-finding-closure-notice > span { color: #7a2e0e; font-size: 10px; font-weight: 650; }
.quality-finding-return-notice { border-color: #fecdca; border-left-color: #f04438; background: #fff8f7; color: #b42318; }
.quality-finding-efficacy { padding: 16px 18px; }
.quality-finding-efficacy .eyebrow { color: #067647; font-size: 9px; font-weight: 760; letter-spacing: .1em; }
.quality-finding-efficacy h2 { margin: 5px 0; }
.quality-finding-efficacy p { margin: 0; color: #344054; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.quality-finding-history ol { display: grid; gap: 8px; margin: 0; padding: 0 18px 17px 36px; color: #475467; font-size: 11px; }
.quality-finding-history li { padding-left: 3px; line-height: 1.45; overflow-wrap: anywhere; }
.quality-finding-empty-actions { padding: 20px; color: #344054; }
.quality-finding-empty-actions strong { font-size: 12px; }
.quality-finding-empty-actions p { margin: 5px 0 0; color: #667085; font-size: 11px; }
dialog.entity-modal.quality-finding-action-modal { width: min(100%,680px); padding: 0; }
.quality-finding-modal-form { margin: 0; }
.quality-finding-modal-form .modal-body { display: grid; gap: 12px; }
.quality-finding-modal-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.quality-finding-modal-fields .field { display: grid; min-width: 0; gap: 6px; color: #344054; font-size: 12px; font-weight: 650; }
.quality-finding-modal-fields .field input,
.quality-finding-modal-fields .field textarea,
.quality-finding-modal-form .field textarea { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #d0d5dd; border-radius: 8px; color: #182230; font: inherit; }
.quality-finding-modal-fields .field input:focus,
.quality-finding-modal-fields .field textarea:focus,
.quality-finding-modal-form .field textarea:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.12); }
.quality-finding-modal-span { grid-column: 1 / -1; }
.quality-finding-form-error { min-height: 0; margin: 0; color: #b42318; font-size: 12px; }
.quality-finding-modal-form .modal-footer { justify-content: flex-end; }
.ssta-incident-heading .corporate-heading-actions { max-width: none; align-items: center; justify-content: space-between; }
.ssta-incident-heading .corporate-heading-metrics > div { min-width: 120px; }
.ssta-incident-heading .button-row { margin: 0; }
.ssta-incident-toolbar { display: grid; grid-template-columns: minmax(220px,2fr) repeat(3,minmax(120px,1fr)); align-items: flex-end; gap: 12px; }
.ssta-incident-toolbar .user-directory-search { width: auto; min-width: 0; }
.ssta-incident-toolbar > label { display: grid; min-width: 0; gap: 6px; color: #667085; font-size: 10px; font-weight: 650; }
.ssta-incident-toolbar > label select,
.ssta-incident-toolbar > label input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #d8dde4; border-radius: 9px; background: #fff; color: #344054; font-size: 11px; }
.ssta-incident-toolbar > label select:focus,
.ssta-incident-toolbar > label input:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.1); }
.ssta-incident-toolbar .ssta-incident-overdue-filter { display: flex; min-height: 42px; align-items: center; gap: 8px; }
.ssta-incident-overdue-filter input { width: 16px; height: 16px; accent-color: #ef5b20; }
.ssta-incident-clear-filters { min-height: 42px; white-space: nowrap; }
.ssta-incident-table { min-width: 1040px; }
.ssta-incident-reference { color: #344054; font-variant-numeric: tabular-nums; font-weight: 720; white-space: nowrap; }
.ssta-incident-title { max-width: 260px; overflow: hidden; color: #182230; font-size: 12px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.ssta-incident-detail-heading .corporate-heading-actions { max-width: min(100%,650px); }
.ssta-incident-detail-heading .button-row { flex-wrap: wrap; }
.ssta-incident-report .quality-finding-action-fields,
.ssta-incident-investigation .quality-finding-action-fields,
.ssta-incident-closure .quality-finding-action-fields { padding-top: 0; }
.ssta-incident-people-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 9px; margin: 0; padding: 0 18px 17px; list-style: none; }
.ssta-incident-people-list li { min-width: 0; padding: 12px; border: 1px solid #eaecf0; border-radius: 8px; background: #fcfcfd; color: #182230; font-size: 12px; overflow-wrap: anywhere; }
.ssta-incident-people-list li small { display: block; margin-top: 5px; color: #667085; font-size: 10px; }
.ssta-incident-evidence-note { color: #667085; font-size: 11px; }
.ssta-incident-evidence-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ssta-incident-evidence-item { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #eaecf0; border-radius: 8px; background: #fcfcfd; }
.ssta-incident-evidence-item > div { display: grid; min-width: 0; gap: 4px; color: #182230; font-size: 11px; overflow-wrap: anywhere; }
.ssta-incident-evidence-item small { color: #667085; font-size: 10px; }
.ssta-incident-evidence-item button { flex: 0 0 auto; }
.ssta-incident-history { margin-top: 14px; }
.ssta-incident-history ol { margin-bottom: 0; }
.ssta-incident-closure .ticket-panel-head { align-items: center; }
.ssta-incident-closure .ticket-panel-head p { margin: 3px 0 0; color: #667085; font-size: 11px; }
.ssta-incident-evidence-item button:hover,
.ssta-incident-detail-heading .btn-secondary:hover { background: #f9fafb; border-color: #cfd4dc; color: #344054; box-shadow: none; transform: none; }
.ssta-inspection-heading .corporate-heading-actions { max-width: none; align-items: center; justify-content: space-between; }
.ssta-inspection-heading .corporate-heading-metrics > div { min-width: 120px; }
.ssta-inspection-heading .button-row { margin: 0; }
.ssta-inspection-toolbar { grid-template-columns: minmax(230px,2fr) repeat(3,minmax(120px,1fr)); }
.ssta-inspection-toolbar .user-directory-search { width: auto; min-width: 0; }
.ssta-inspection-table { min-width: 860px; }
.ssta-inspection-subtitle { display: block; max-width: 300px; margin-top: 4px; color: #667085; font-size: 10px; overflow-wrap: anywhere; }
.ssta-inspection-detail-heading .corporate-heading-actions { max-width: min(100%,760px); }
.ssta-inspection-detail-heading .corporate-heading-copy h1 span { display: block; margin-top: 4px; font-size: .72em; }
.ssta-inspection-detail-heading .button-row { justify-content: flex-end; flex-wrap: wrap; }
.ssta-inspection-overview,
.ssta-inspection-closure,
.ssta-inspection-history { margin-bottom: 14px; }
.ssta-inspection-overview-fields { padding-bottom: 16px; }
.ssta-inspection-overview-fields > div,
.ssta-inspection-point-fields > div,
.ssta-inspection-action-card .quality-finding-action-fields > div,
.ssta-inspection-closure .quality-finding-action-fields > div { display: grid; align-content: start; gap: 5px; }
.ssta-inspection-overview-fields small,
.ssta-inspection-point-fields small,
.ssta-inspection-action-card .quality-finding-action-fields small,
.ssta-inspection-closure .quality-finding-action-fields small { display: block; color: #667085; font-size: 10px; font-weight: 650; }
.ssta-inspection-overview-fields span,
.ssta-inspection-point-fields span,
.ssta-inspection-action-card .quality-finding-action-fields span,
.ssta-inspection-closure .quality-finding-action-fields span { display: block; color: #182230; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.ssta-inspection-points { display: grid; gap: 12px; margin-bottom: 14px; }
.ssta-inspection-section-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; color: #667085; font-size: 11px; }
.ssta-inspection-section-heading h2 { margin: 0; color: #182230; font-size: 17px; }
.ssta-inspection-section-heading h4 { margin: 0; color: #344054; font-size: 12px; }
.ssta-inspection-section-heading > span { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 10px; font-weight: 650; }
.ssta-inspection-point-card { min-width: 0; overflow: hidden; }
.ssta-inspection-point-card > .ticket-panel-head { align-items: flex-start; }
.ssta-inspection-point-card > .ticket-panel-head h3 { margin: 4px 0 0; color: #182230; font-size: 14px; overflow-wrap: anywhere; }
.ssta-inspection-point-fields { padding-top: 0; }
.ssta-inspection-linked-incidents { display: grid; gap: 8px; padding: 0 18px 14px; color: #475467; font-size: 11px; }
.ssta-inspection-linked-incidents ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ssta-inspection-incident-link { min-height: 36px; font-variant-numeric: tabular-nums; }
.ssta-inspection-point-controls { padding: 0 18px 14px; }
.ssta-inspection-point-actions { display: grid; gap: 9px; padding: 14px 18px 18px; border-top: 1px solid #eaecf0; background: #fcfcfd; }
.ssta-inspection-action-card { margin: 0; padding: 13px; }
.ssta-inspection-action-card .quality-finding-action-card-head { align-items: flex-start; }
.ssta-inspection-action-card .quality-finding-action-card-head h4 { margin: 4px 0 0; color: #344054; font-size: 12px; overflow-wrap: anywhere; }
.ssta-inspection-action-card .quality-finding-action-fields { padding: 12px 0 0; }
.ssta-inspection-action-evidence { display: grid; gap: 7px; margin-top: 12px; padding: 11px; border: 1px solid #eaecf0; border-radius: 8px; background: #fff; color: #475467; font-size: 11px; }
.ssta-inspection-action-evidence p { margin: 0; overflow-wrap: anywhere; }
.ssta-inspection-action-evidence button { justify-self: start; max-width: 100%; }
.ssta-inspection-action-card > .button-row { justify-content: flex-end; margin-top: 10px; }
.ssta-inspection-empty-note { margin: 0; color: #667085; font-size: 11px; }
.ssta-inspection-orphan-actions { margin-bottom: 14px; }
.ssta-inspection-history ol { display: grid; gap: 8px; padding-left: 22px; color: #475467; font-size: 11px; }
.ssta-inspection-closure .quality-finding-action-fields { padding-top: 12px; }
.ssta-inspection-closure-table-grid { min-width: 850px; }
.ssta-inspection-incident-link:hover,
.ssta-inspection-action-evidence button:hover { background: #f9fafb; border-color: #cfd4dc; color: #344054; box-shadow: none; transform: none; }
.quality-audit-heading,
.quality-audit-detail-heading { margin-bottom: 14px; }
.quality-audit-heading .corporate-heading-actions,
.quality-audit-detail-heading .corporate-heading-actions { max-width: none; align-items: center; justify-content: space-between; }
.quality-audit-heading .corporate-heading-metrics > div { min-width: 108px; }
.quality-audit-heading .button-row,
.quality-audit-detail-heading .button-row { margin: 0; }
.quality-audit-list-panel > .ticket-panel-head { justify-content: space-between; gap: 16px; }
.quality-audit-list-panel .ticket-panel-head p strong { color: #c74710; font-weight: 720; }
.quality-audit-toolbar { display: grid; grid-template-columns: minmax(250px,2fr) minmax(170px,1fr) minmax(170px,1fr) auto; align-items: flex-end; gap: 12px; }
.quality-audit-toolbar .user-directory-search { width: auto; min-width: 0; }
.quality-audit-toolbar > label { display: grid; min-width: 0; gap: 6px; color: #667085; font-size: 10px; font-weight: 650; }
.quality-audit-toolbar > label input,
.quality-audit-toolbar > label select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #d8dde4; border-radius: 9px; background: #fff; color: #344054; font-size: 11px; }
.quality-audit-toolbar > label input:focus,
.quality-audit-toolbar > label select:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.1); }
.quality-audit-clear-filters { min-height: 42px; white-space: nowrap; }
.quality-audit-table { min-width: 940px; }
.quality-audit-reference,
.quality-audit-finding-reference { color: #344054; font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 720; white-space: nowrap; }
.quality-audit-title { max-width: 320px; overflow: hidden; color: #182230; font-size: 12px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.quality-audit-empty { min-height: 145px; border-top: 1px solid #eaecf0; }
.quality-audit-empty[hidden] { display: none; }
.quality-audit-detail-heading .corporate-heading-copy h1 { font-size: clamp(22px,2vw,29px); }
.quality-audit-detail-heading .corporate-heading-actions { justify-content: flex-end; }
.quality-audit-detail-heading .button-row { justify-content: flex-end; }
.quality-audit-identification { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 7px 0; color: #344054; font-size: 13px; }
.quality-audit-identification > strong { color: #172b3a; font-size: 14px; }
.quality-audit-section { margin-bottom: 14px; overflow: hidden; }
.quality-audit-section > .ticket-panel-head,
.quality-audit-link-panel > .ticket-panel-head { justify-content: space-between; gap: 14px; }
.quality-audit-section .ticket-panel-head > div,
.quality-audit-link-panel .ticket-panel-head > div { min-width: 0; }
.quality-audit-section .eyebrow { color: #667085; font-size: 9px; font-weight: 760; letter-spacing: .1em; }
.quality-audit-section .ticket-panel-head h2,
.quality-audit-link-panel .ticket-panel-head h2,
.quality-audit-history .ticket-panel-head h2 { margin: 4px 0; color: #182230; font-size: 16px; }
.quality-audit-section .ticket-panel-head p,
.quality-audit-link-panel .ticket-panel-head p,
.quality-audit-history .ticket-panel-head p { margin: 0; color: #667085; font-size: 11px; }
.quality-audit-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0 18px 17px; }
.quality-audit-facts > div { min-width: 0; padding: 11px 12px; border: 1px solid #eaecf0; border-radius: 8px; background: #fcfcfd; }
.quality-audit-facts dt { margin-bottom: 5px; color: #667085; font-size: 10px; font-weight: 650; }
.quality-audit-facts dd { margin: 0; color: #182230; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.quality-audit-fact-span { grid-column: 1 / -1; }
.quality-audit-report { white-space: pre-wrap; }
.quality-audit-return-note { color: #b42318 !important; }
.quality-audit-findings-section { display: grid; gap: 10px; margin-bottom: 14px; }
.quality-audit-findings-section > .ticket-panel-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 2px; }
.quality-audit-findings-section > .ticket-panel-head .eyebrow { color: #667085; font-size: 9px; font-weight: 760; letter-spacing: .1em; }
.quality-audit-findings-section > .ticket-panel-head h2 { margin: 4px 0; color: #182230; font-size: 16px; }
.quality-audit-findings-section > .ticket-panel-head p { margin: 0; color: #667085; font-size: 11px; }
.quality-audit-findings-panel { min-width: 0; }
.quality-audit-findings-table { min-width: 930px; }
.quality-audit-finding-link { max-width: 310px; overflow: hidden; color: #182230; font-size: 12px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.quality-audit-link-panel { margin-bottom: 14px; overflow: hidden; }
.quality-audit-link-controls { display: flex; align-items: flex-end; gap: 12px; padding: 0 18px 16px; }
.quality-audit-link-controls label { display: grid; min-width: 0; flex: 1; gap: 6px; color: #667085; font-size: 10px; font-weight: 650; }
.quality-audit-link-controls select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #d8dde4; border-radius: 9px; background: #fff; color: #344054; font-size: 11px; }
.quality-audit-link-controls select:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.1); }
.quality-audit-history { margin-bottom: 14px; overflow: hidden; }
.quality-audit-history ol { display: grid; gap: 8px; margin: 0; padding: 0 18px 17px 36px; color: #475467; font-size: 11px; }
.quality-audit-history li { padding-left: 3px; line-height: 1.45; overflow-wrap: anywhere; }
dialog.entity-modal.quality-document-form-modal { width: min(100%,720px); padding: 0; }
.quality-document-form { margin: 0; }
.quality-document-form .modal-body { display: grid; gap: 12px; }
.quality-document-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.quality-document-form-grid .field { display: grid; min-width: 0; gap: 6px; color: #344054; font-size: 12px; font-weight: 650; }
.quality-document-form-grid .field input,
.quality-document-form-grid .field textarea { width: 100%; min-width: 0; }
.quality-document-field-span { grid-column: 1 / -1; }
.quality-document-form-error { min-height: 0; margin: 0; color: #b42318; font-size: 12px; }
.quality-document-form .modal-footer { justify-content: flex-end; }
.ssta-training-heading .corporate-heading-actions { max-width: none; align-items: center; justify-content: space-between; }
.ssta-training-heading .corporate-heading-metrics > div { min-width: 120px; }
.ssta-training-heading .button-row { margin: 0; }
.ssta-training-table { min-width: 760px; }
.ssta-training-title { max-width: 320px; overflow: hidden; color: #182230; font-size: 12px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.ssta-training-reference { display: block; margin-top: 4px; color: #667085; font-size: 10px; font-variant-numeric: tabular-nums; }
.ssta-training-detail-heading .corporate-heading-actions { max-width: min(100%,760px); }
.ssta-training-detail-heading .button-row { justify-content: flex-end; flex-wrap: wrap; }
.ssta-training-overview,
.ssta-training-participants,
.ssta-training-return-note,
.ssta-training-history { margin-bottom: 14px; overflow: hidden; }
.ssta-training-overview-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0 18px 17px; }
.ssta-training-overview-fields > div { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 11px 12px; border: 1px solid #eaecf0; border-radius: 8px; background: #fcfcfd; }
.ssta-training-overview-fields small { color: #667085; font-size: 10px; font-weight: 650; }
.ssta-training-overview-fields span { color: #182230; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.ssta-training-participants .ticket-panel-head { align-items: center; }
.ssta-training-participants .ticket-panel-head p { margin: 4px 0 0; color: #667085; font-size: 11px; }
.ssta-training-participants .ticket-panel-head p strong { color: #182230; }
.ssta-training-participant-table { min-width: 820px; }
.ssta-training-employee-id,
.ssta-training-recorded-by { display: block; margin-top: 4px; color: #667085; font-size: 10px; overflow-wrap: anywhere; }
.ssta-training-attendance-control { display: block; min-width: 150px; }
.ssta-training-attendance-control select { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; color: #344054; font-size: 11px; }
.ssta-training-attendance-control select:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.1); }
.ssta-training-readonly { color: #667085; font-size: 10px; font-weight: 650; }
.ssta-training-pending-notice { margin: 0 18px 13px; padding: 10px 12px; border: 1px solid #fedf89; border-radius: 8px; background: #fffaeb; color: #93370d; font-size: 11px; line-height: 1.45; }
.ssta-training-pending-notice[hidden] { display: none; }
.ssta-training-form-error { min-height: 0; margin: 0; padding: 0 18px 14px; color: #b42318; font-size: 12px; line-height: 1.45; }
.ssta-training-form-error:empty { display: none; }
.ssta-training-return-note > p { margin: 0; padding: 0 18px 16px; color: #7a271a; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.ssta-training-history ol { display: grid; gap: 8px; margin: 0; padding: 0 18px 17px 38px; color: #475467; font-size: 11px; }
.ssta-training-history li { padding-left: 3px; line-height: 1.45; overflow-wrap: anywhere; }
.ssta-training-selected-list { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.ssta-training-selected-list li { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #eaecf0; border-radius: 8px; background: #fcfcfd; }
.ssta-training-selected-list li > span { display: grid; min-width: 0; gap: 4px; color: #182230; font-size: 12px; overflow-wrap: anywhere; }
.ssta-training-selected-list small { color: #667085; font-size: 10px; }
.ssta-training-selected-list button { flex: 0 0 auto; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@media(max-width:1050px){
  .quality-document-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quality-document-toolbar .user-directory-search { grid-column: 1 / -1; }
  .quality-finding-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quality-finding-toolbar .user-directory-search { grid-column: 1 / -1; }
  .quality-audit-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quality-audit-toolbar .user-directory-search { grid-column: 1 / -1; }
  .ssta-incident-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ssta-incident-toolbar .user-directory-search { grid-column: 1 / -1; }
  .ssta-inspection-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ssta-inspection-toolbar .user-directory-search { grid-column: 1 / -1; }
  .ssta-training-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ssta-training-toolbar .user-directory-search { grid-column: 1 / -1; }
}

.catalog-inline-delete { color: #b42318; }

button[aria-busy="true"]:not(.login-submit)::before {
  content: ""; display: inline-block; width: .8em; height: .8em;
  margin-right: .45em; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; vertical-align: middle; animation: spin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  button[aria-busy="true"]:not(.login-submit)::before { animation: none; }
}

.hr-employee-heading .corporate-heading-metrics > div { min-width: 108px; }
.hr-employee-detail-heading { grid-template-columns: minmax(0,720px) minmax(0,1fr); grid-template-rows: auto auto; align-content: center; align-items: start; gap: 6px 24px; padding: 10px 30px; }
.hr-employee-detail-identity { display: flex; min-width: 0; grid-column: 1; grid-row: 1; align-items: center; gap: 18px; }
.hr-employee-detail-identity .profile-avatar-large { width: 76px; height: 76px; flex: 0 0 76px; border: 3px solid rgba(255,255,255,.95); background: #f45b1f; box-shadow: 0 7px 20px rgba(145,54,14,.22); color: #fff; font-size: 24px; }
.hr-employee-detail-copy { display: grid; min-width: 0; gap: 4px; }
.hr-employee-detail-copy > .eyebrow { margin-bottom: 0; }
.hr-employee-detail-copy .user-profile-badges { margin: 0; }
.hr-employee-detail-copy h1 { font-size: clamp(22px,2vw,29px); line-height: 1.15; overflow-wrap: anywhere; }
.hr-employee-detail-copy p { margin: 0; color: #344054; font-size: 12px; font-weight: 560; line-height: 1.4; overflow-wrap: anywhere; }
.hr-employee-detail-copy > small { color: #5d6675; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.hr-employee-detail-actions { display: flex; width: 100%; max-width: 720px; min-width: 0; grid-column: 1; grid-row: 2; align-items: center; gap: 8px; }
.hr-employee-detail-buttons { display: flex; min-width: 0; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.hr-employee-detail-buttons button { min-height: 42px; }
.hr-employee-detail-buttons .corporate-heading-primary { flex: 0 0 auto; }
@media(max-width:1050px){
  .hr-employee-detail-heading { height: auto; min-height: 0; max-height: none; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; align-content: end; padding: 90px 22px 18px; background-position: right top; background-size: auto 90px; }
  .hr-employee-detail-identity { grid-column: 1; grid-row: 1; }
  .hr-employee-detail-actions { width: 100%; max-width: none; grid-column: 1; grid-row: 2; }
}
@media(max-width:720px){
  .hr-employee-detail-heading { gap: 10px; padding: 90px 18px 18px; }
  .hr-employee-detail-identity { align-items: flex-start; }
  .hr-employee-detail-actions { align-items: center; flex-wrap: wrap; }
  .hr-employee-detail-buttons { justify-content: flex-start; }
}
@media(max-width:520px){
  .hr-employee-detail-heading { padding: 90px 16px 16px; }
  .hr-employee-detail-identity { gap: 12px; }
  .hr-employee-detail-identity .profile-avatar-large { width: 68px; height: 68px; flex-basis: 68px; font-size: 22px; }
  .hr-employee-detail-copy h1 { font-size: 22px; }
  .hr-employee-detail-actions { align-items: flex-start; }
  .hr-employee-detail-buttons { flex-wrap: wrap; }
}
.hr-employee-loading { display: flex; min-height: 120px; align-items: center; justify-content: center; gap: 10px; color: #667085; font-size: 13px; }
.hr-employee-loading::before { width: 15px; height: 15px; border: 2px solid #f2c2aa; border-top-color: #ef5b20; border-radius: 50%; animation: spin .8s linear infinite; content: ""; }
.hr-employee-load-error { border-color: #fecdca; background: #fff8f7; }
.hr-employee-load-error > strong { color: #b42318; }
.hr-employee-load-error > p { color: #7a271a; }
.hr-employee-list-panel > .ticket-panel-head { justify-content: space-between; gap: 16px; }
.hr-employee-directory-note { align-self: center; color: #667085; font-size: 10px; font-weight: 600; }
.hr-employee-submodule-switch { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 7px; }
.hr-employee-submodule-switch > button { min-height: 38px; }
.hr-employee-submodule-switch > button span { margin-left: 4px; font-variant-numeric: tabular-nums; }
.hr-approval-list-panel > .ticket-panel-head { justify-content: space-between; gap: 16px; }
.gh-approval-toolbar { display: grid; grid-template-columns: minmax(240px,2fr) minmax(180px,1fr) auto; align-items: flex-end; justify-content: stretch; gap: 12px; }
.gh-approval-toolbar .user-directory-search { width: auto; min-width: 0; flex: initial; }
.gh-approval-toolbar > label { display: grid; min-width: 0; gap: 6px; color: #667085; font-size: 10px; font-weight: 650; }
.gh-approval-toolbar > label select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #d8dde4; border-radius: 9px; background: #fff; color: #344054; font-size: 11px; }
.gh-approval-toolbar > label select:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.1); }
.gh-approval-clear-filters { min-height: 42px; white-space: nowrap; }
.gh-approval-table { min-width: 0; }
.gh-approval-results-table { min-width: 760px; }
.gh-approval-results-table td:nth-child(2) { min-width: 210px; }
.gh-approval-results-table td:nth-child(2) strong,
.gh-approval-results-table td:nth-child(2) small { display: block; }
.gh-approval-results-table td:nth-child(2) small { margin-top: 4px; color: #667085; font-size: 11px; }
.gh-approval-status { display: inline-flex !important; width: max-content; min-height: 21px; align-items: center; margin-top: 5px !important; padding: 2px 7px; border: 1px solid #fedf89; border-radius: 999px; background: #fffaeb; color: #93370d !important; font-size: 10px !important; font-weight: 650; }
.gh-approval-empty-state[hidden],
.gh-approval-no-results[hidden] { display: none; }
.gh-approval-no-results { margin: 0; }
.gh-approval-review-heading { align-items: flex-end; gap: 20px; }
.gh-approval-review-heading .corporate-heading-copy { min-width: 0; }
.gh-approval-review-heading .corporate-heading-actions { flex: 0 0 auto; }
.gh-approval-review-identification { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 9px; margin: 10px 0 7px; color: #344054; font-size: 13px; }
.gh-approval-review-identification .gh-approval-status { margin: 0 !important; }
.gh-approval-status[data-state="cerrado"],
.gh-approval-status[data-state="aprobado"],
.gh-approval-status[data-state="aprobada"],
.gh-approval-status[data-state="emitido"] { border-color: #abefc6; background: #ecfdf3; color: #067647 !important; }
.gh-approval-status[data-state="devuelto"],
.gh-approval-status[data-state="devuelta"] { border-color: #fecdca; background: #fff1f0; color: #b42318 !important; }
.hr-approval-review-panel { display: grid; gap: 16px; padding: 20px; }
.gh-approval-review-section { min-width: 0; margin: 0; }
.gh-approval-review-section > h2 { margin: 0 0 15px; color: #182230; font-size: 17px; }
.gh-approval-review-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 0; }
.gh-approval-review-fields > div { min-width: 0; padding: 12px 14px; border: 1px solid #eaecf0; border-radius: 9px; background: #fcfcfd; }
.gh-approval-review-fields dt { margin-bottom: 5px; color: #667085; font-size: 11px; font-weight: 650; }
.gh-approval-review-fields dd { margin: 0; color: #182230; font-size: 13px; overflow-wrap: anywhere; }
.gh-approval-review-fields .field-span { grid-column: 1 / -1; }
.gh-approval-review-history { padding-top: 15px; border-top: 1px solid #eaecf0; }
.gh-approval-review-history h3 { margin: 0 0 10px; color: #344054; font-size: 13px; }
.gh-approval-review-history ol { display: grid; gap: 9px; margin: 0; padding-left: 20px; color: #475467; font-size: 12px; }
.gh-approval-review-history li { padding-left: 3px; overflow-wrap: anywhere; }
.gh-approval-review-history li p { margin: 4px 0 0; color: #667085; }
.gh-approval-review-section > .button-row { margin-top: 16px; }
.gh-approval-prepared-by { color: #667085; font-size: 12px; }
dialog.entity-modal.hr-approval-action-modal { width: min(100%,560px); padding: 0; border: 1px solid rgba(255,255,255,.7); }
dialog.entity-modal.hr-approval-action-modal::backdrop { background: rgba(17,24,39,.48); backdrop-filter: blur(3px); }
.hr-approval-action-form { margin: 0; }
.hr-approval-action-form .modal-body { display: grid; gap: 12px; }
.hr-approval-action-form .field textarea { width: 100%; min-height: 120px; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px; color: #182230; font: inherit; resize: vertical; }
.hr-approval-action-form .field textarea:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.12); }
.hr-approval-action-form [role="alert"] { margin: 0; color: #b42318; font-size: 12px; }
.hr-approval-action-form .modal-footer { justify-content: flex-end; }
.hr-employee-toolbar { display: grid; grid-template-columns: minmax(240px,2fr) repeat(3,minmax(125px,1fr)) auto; align-items: flex-end; justify-content: stretch; gap: 12px; }
.hr-employee-toolbar .user-directory-search { width: auto; min-width: 0; flex: initial; }
.hr-employee-toolbar > label { display: grid; min-width: 0; gap: 6px; color: #667085; font-size: 10px; font-weight: 650; }
.hr-employee-toolbar > label select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #d8dde4; border-radius: 9px; background: #fff; color: #344054; font-size: 11px; }
.hr-employee-toolbar > label select:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.1); }
.hr-employee-clear-filters { min-height: 42px; white-space: nowrap; }
.hr-employee-table { min-width: 860px; }
.hr-employee-inactive-table { min-width: 1080px; }
.hr-employee-table .requester-cell { min-width: 175px; }
.hr-employee-table .entity-actions { white-space: nowrap; }
.hr-employee-no-results { min-height: 150px; border-top: 1px solid #eaecf0; }
.hr-employee-no-results[hidden] { display: none; }
.hr-employee-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid #eaecf0; }
.hr-employee-pagination[hidden] { display: none; }
.hr-employee-pagination .btn-secondary { min-width: 112px; min-height: 40px; }
.hr-employee-pagination .btn-secondary:disabled { cursor: not-allowed; opacity: .55; }
.hr-employee-page-status { color: #667085; font-size: 12px; font-weight: 600; text-align: center; }
.hr-employee-profile-hero { flex-wrap: wrap; }
.hr-employee-profile-hero .hr-employee-back-button { flex: 0 0 auto; }
.hr-employee-profile-sections > .hr-employee-services { grid-column: 1 / -1; }
.hr-employee-service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.hr-employee-service-button {
  display: grid;
  min-width: 0;
  min-height: 72px;
  justify-items: start;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  text-align: left;
  white-space: normal;
}
.hr-employee-service-button strong { color: #182230; font-size: 12px; font-weight: 680; }
.hr-employee-service-button small { color: #667085; font-size: 10px; line-height: 1.4; }
.hr-employee-service-button:hover { border-color: #cfd4dc !important; background: #f9fafb !important; color: #344054 !important; box-shadow: none !important; transform: none !important; }
.hr-employee-service-button:focus-visible { outline: 2px solid #ef8a59; outline-offset: 2px; }
.hr-employee-modal-backdrop { z-index: 1100; }
.entity-modal.hr-employee-editor-modal { width: min(100%,1020px); max-width: 1020px; max-height: calc(100vh - 32px); overflow: hidden; border-radius: 16px; }
.hr-employee-editor-modal > .modal-heading { flex: 0 0 auto; padding: 22px 30px 18px; border-bottom: 1px solid #e7eaee; background: linear-gradient(110deg,#fff 0%,#fff 70%,#fff2e9 100%); }
.hr-employee-editor-modal > .modal-heading .eyebrow { color: #c74710; }
.hr-employee-editor-modal > .modal-heading h2 { margin: 4px 0; color: #172b3a; font-size: 21px; }
.hr-employee-editor-modal > .modal-heading p { color: #667085; }
.hr-employee-editor-form { display: flex; min-width: 0; min-height: 0; flex: 1 1 auto; flex-direction: column; }
.hr-employee-editor-modal .hr-employee-editor-form > .modal-body { min-height: 0; max-height: none; flex: 1 1 auto; padding: 22px 30px 26px; background: #f8f9fa; }
.hr-employee-editor-modal .hr-employee-form-sections { grid-template-columns: minmax(0,1fr); gap: 12px; }
.hr-employee-editor-modal .hr-employee-form-section { min-width: 0; padding: 0; border: 1px solid #e3e7ec; border-radius: 14px; background: #fff; overflow: visible; }
.hr-employee-editor-modal .hr-employee-form-section > .user-profile-section-heading { position: static; display: block; min-height: 0; margin: 0; padding: 15px 18px 11px; border-bottom: 1px solid #edf0f3; background: linear-gradient(105deg,#fff 0%,#fffaf7 100%); }
.hr-employee-editor-modal .hr-employee-form-section > .user-profile-section-heading > div { display: block; width: auto; margin: 0; }
.hr-employee-editor-modal .hr-employee-form-section > .user-profile-section-heading .eyebrow { color: #c74710; font-size: 9px; letter-spacing: .12em; }
.hr-employee-editor-modal .hr-employee-form-section > .user-profile-section-heading h3 { margin: 3px 0 2px; color: #172b3a; font-size: 15px; }
.hr-employee-editor-modal .hr-employee-form-section > .user-profile-section-heading p { margin: 0; color: #667085; font-size: 11px; line-height: 1.4; }
.hr-employee-editor-modal .hr-employee-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; padding: 16px 18px 18px; }
.hr-employee-editor-modal .hr-employee-form-section .profile-detail { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.hr-employee-editor-modal .hr-employee-form-section .profile-detail.user-profile-field { align-content: start; gap: 7px; }
.hr-employee-editor-modal .hr-employee-form-section .profile-detail.user-profile-field > label { color: #344054; font-size: 12px; font-weight: 680; }
.hr-employee-editor-modal .hr-employee-form-section .profile-detail.user-profile-field input:not([type="hidden"]),
.hr-employee-editor-modal .hr-employee-form-section .profile-detail.user-profile-field select { min-height: 44px; padding: 10px 12px; border: 1px solid #d8dde4; border-radius: 8px; background: #fcfcfd; color: var(--tx); font-size: 14px; }
.hr-employee-editor-modal .hr-employee-form-section .profile-detail.user-profile-field input:disabled { color: var(--tx); opacity: 1; }
.hr-employee-editor-hero .user-profile-summary strong { font-size: clamp(13px,1.2vw,17px); line-height: 1.2; overflow-wrap: anywhere; }
.hr-employee-editor-modal .profile-detail { align-content: start; }
.hr-employee-editor-modal .profile-detail > small { color: var(--mut); font-size: 10px; line-height: 1.35; }
.hr-employee-editor-modal .hr-employee-catalog-field { position: relative; z-index: 1; }
.hr-employee-editor-modal .hr-employee-catalog-field:focus-within { z-index: 5; }
.hr-employee-editor-modal .hr-employee-catalog-field .search-select > input[type="text"] { min-height: 44px; padding: 10px 38px 10px 12px; border: 1px solid #d8dde4; border-radius: 8px; background: #fcfcfd; color: var(--tx); font-size: 14px; }
.hr-employee-editor-modal .hr-employee-catalog-field .search-select-menu.opens-up { top: auto; bottom: calc(100% + 5px); }
.hr-employee-editor-modal .equipment-catalog-options .hr-employee-catalog-option { min-height: 40px; padding: 9px 14px; font-size: 14px; }
.hr-employee-editor-modal > .hr-employee-editor-form > .hr-employee-modal-footer { flex: 0 0 auto; padding: 15px 30px; border-top: 1px solid #e1e5ea; background: #fff; }
.hr-employee-editor-modal .modal-footer .button-row { margin-left: auto; }
.hr-employee-modal-footer > .hr-employee-status-button { margin-right: auto; }
#app .hr-employee-modal-footer .hr-employee-status-button.equipment-delete-button:hover { transform: none; border-color: #e2a5a5; background: #fff5f5; color: #a12b2b; box-shadow: none; }
.hr-employee-status-confirm-backdrop { z-index: 1101; }
.hr-employee-status-reason { display: grid; gap: 6px; margin: 14px 0 0; color: #344054; font-size: 12px; font-weight: 650; }
.hr-employee-status-reason select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 7px; background: #fff; color: #182230; font: inherit; }
.hr-employee-status-reason select:focus { border-color: #ef8a59; outline: 2px solid rgba(239,91,32,.12); }
.hr-employee-status-error { margin: 12px 0 0; color: #b42318; font-size: 12px; line-height: 1.45; }
.hr-employee-form-error { margin: 0; color: #b42318; font-size: 12px; line-height: 1.45; }
.hr-employee-form-error[hidden] { display: none; }
.hr-employee-status-error[hidden] { display: none; }
@media(max-width:820px){
  .hr-employee-profile-hero,
  .hr-employee-editor-hero { align-items: flex-start; flex-direction: column; }
  .hr-employee-editor-modal .hr-employee-editor-hero { align-self: start; height: max-content; min-height: 0; }
  .hr-employee-editor-hero .user-profile-summary { width: 100%; min-width: 0; }
  .hr-employee-profile-sections > .hr-employee-services { grid-column: auto; }
  .hr-employee-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px){
  .hr-employee-editor-modal > .modal-heading,
  .hr-employee-editor-modal > .hr-employee-editor-form > .hr-employee-modal-footer { padding-inline: 20px; }
  .hr-employee-editor-modal .hr-employee-editor-form > .modal-body { padding: 20px; }
  .hr-employee-editor-modal .hr-employee-form-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:1050px){
  .gh-approval-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gh-approval-toolbar .user-directory-search { grid-column: 1 / -1; }
  .hr-employee-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hr-employee-toolbar .user-directory-search { grid-column: 1 / -1; }
}
@media(max-width:640px){
  .hr-approval-list-panel > .ticket-panel-head { align-items: flex-start; flex-direction: column; }
  .gh-approval-toolbar { grid-template-columns: minmax(0,1fr); }
  .gh-approval-toolbar .user-directory-search { grid-column: auto; }
  .gh-approval-clear-filters { width: 100%; }
  .gh-approval-review-heading { align-items: flex-start; flex-direction: column; }
  .gh-approval-review-heading .corporate-heading-actions,
  .gh-approval-review-heading .corporate-heading-actions button { width: 100%; }
  .hr-approval-review-panel { padding: 14px; }
  .gh-approval-review-fields { grid-template-columns: minmax(0,1fr); }
  .gh-approval-review-fields .field-span { grid-column: auto; }
  .hr-employee-toolbar { grid-template-columns: minmax(0,1fr); }
  .hr-employee-toolbar .user-directory-search { grid-column: auto; }
  .hr-employee-list-panel > .ticket-panel-head { align-items: flex-start; flex-direction: column; }
  .hr-employee-directory-note { align-self: flex-start; }
  .hr-employee-clear-filters { width: 100%; }
  .hr-employee-pagination { flex-wrap: wrap; padding: 14px; }
  .hr-employee-page-status { order: -1; width: 100%; }
  .hr-employee-pagination .btn-secondary { flex: 1; }
  .quality-document-list-panel > .ticket-panel-head { align-items: flex-start; flex-direction: column; }
  .quality-document-toolbar { grid-template-columns: minmax(0,1fr); }
  .quality-document-toolbar .user-directory-search { grid-column: auto; }
  .quality-document-clear-filters { width: 100%; }
  .quality-document-heading .corporate-heading-actions,
  .quality-document-heading .button-row,
  .quality-document-detail-heading .corporate-heading-actions,
  .quality-document-detail-heading .button-row { width: 100%; }
  .quality-document-heading .button-row,
  .quality-document-detail-heading .button-row { flex-direction: column; }
  .quality-document-heading .button-row button,
  .quality-document-detail-heading .button-row button { width: 100%; }
  .quality-document-version-card .ticket-panel-head { flex-direction: column; }
  .quality-document-version-actions { align-items: stretch; flex-direction: column; padding-inline: 14px; }
  .quality-document-version-actions button { width: 100%; white-space: normal; }
  .quality-document-history-panel > .ticket-panel-head { align-items: flex-start; }
  .quality-document-version-table .quality-document-version-actions { align-items: flex-start; flex-direction: column; }
  .quality-document-form-grid { grid-template-columns: minmax(0,1fr); }
  .quality-document-field-span { grid-column: auto; }
  .quality-document-form .modal-heading { padding: 18px; }
  .quality-document-form .modal-body { padding: 18px; }
  .quality-document-form .modal-footer .button-row { width: 100%; flex-direction: column-reverse; }
  .quality-document-form .modal-footer button { width: 100%; }
  .quality-finding-list-panel > .ticket-panel-head,
  .quality-finding-actions-section > .ticket-panel-head { align-items: flex-start; flex-direction: column; }
  .quality-finding-toolbar { grid-template-columns: minmax(0,1fr); }
  .quality-finding-toolbar .user-directory-search { grid-column: auto; }
  .quality-finding-clear-filters { width: 100%; }
  .quality-finding-heading .corporate-heading-actions,
  .quality-finding-heading .button-row,
  .quality-finding-detail-heading .corporate-heading-actions,
  .quality-finding-detail-heading .button-row { width: 100%; }
  .quality-finding-heading .button-row,
  .quality-finding-detail-heading .button-row { flex-direction: column; }
  .quality-finding-heading .button-row button,
  .quality-finding-detail-heading .button-row button { width: 100%; }
  .quality-finding-action-card .ticket-panel-head { align-items: flex-start; flex-direction: column; }
  .quality-finding-action-fields { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
  .quality-finding-action-fields .quality-finding-action-span { grid-column: auto; }
  .quality-finding-action-footer { padding-inline: 14px; }
  .quality-finding-action-footer button { width: 100%; }
  .quality-finding-description { padding-inline: 14px; }
  .quality-finding-modal-fields { grid-template-columns: minmax(0,1fr); }
  .quality-finding-modal-span { grid-column: auto; }
  .quality-finding-modal-form .modal-heading { padding: 18px; }
  .quality-finding-modal-form .modal-body { padding: 18px; }
  .quality-finding-modal-form .modal-footer .button-row { width: 100%; flex-direction: column-reverse; }
  .quality-finding-modal-form .modal-footer button { width: 100%; }
  .ssta-incident-heading .corporate-heading-actions,
  .ssta-incident-heading .button-row,
  .ssta-incident-detail-heading .corporate-heading-actions,
  .ssta-incident-detail-heading .button-row,
  .ssta-inspection-heading .corporate-heading-actions,
  .ssta-inspection-heading .button-row,
  .ssta-inspection-detail-heading .corporate-heading-actions,
  .ssta-inspection-detail-heading .button-row { width: 100%; }
  .ssta-incident-heading .button-row,
  .ssta-incident-detail-heading .button-row,
  .ssta-inspection-heading .button-row,
  .ssta-inspection-detail-heading .button-row { flex-direction: column; }
  .ssta-incident-heading .button-row button,
  .ssta-incident-detail-heading .button-row button,
  .ssta-inspection-heading .button-row button,
  .ssta-inspection-detail-heading .button-row button { width: 100%; }
  .ssta-incident-toolbar { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
  .ssta-incident-toolbar .user-directory-search { grid-column: auto; }
  .ssta-incident-clear-filters { width: 100%; }
  .ssta-inspection-toolbar { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
  .ssta-inspection-toolbar .user-directory-search { grid-column: auto; }
  .ssta-training-toolbar { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
  .ssta-training-toolbar .user-directory-search { grid-column: auto; }
  .ssta-training-heading .corporate-heading-actions,
  .ssta-training-heading .button-row,
  .ssta-training-detail-heading .corporate-heading-actions,
  .ssta-training-detail-heading .button-row { width: 100%; }
  .ssta-training-heading .button-row,
  .ssta-training-detail-heading .button-row { flex-direction: column; }
  .ssta-training-heading .button-row button,
  .ssta-training-detail-heading .button-row button { width: 100%; }
  .ssta-training-overview-fields { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
  .ssta-training-pending-notice { margin-inline: 14px; }
  .ssta-training-form-error { padding-inline: 14px; }
  .ssta-training-return-note > p { padding-inline: 14px; }
  .ssta-training-history ol { padding-inline: 32px 14px; }
  .ssta-training-selected-list li { align-items: flex-start; }
  .ssta-training-selected-list button { white-space: nowrap; }
  .ssta-inspection-list-panel > .ticket-panel-head { align-items: flex-start; flex-direction: column; }
  .ssta-inspection-point-card > .ticket-panel-head { align-items: flex-start; flex-direction: column; }
  .ssta-inspection-point-fields { padding-inline: 14px; }
  .ssta-inspection-linked-incidents,
  .ssta-inspection-point-controls { padding-inline: 14px; }
  .ssta-inspection-point-controls,
  .ssta-inspection-action-card > .button-row { align-items: stretch; flex-direction: column; }
  .ssta-inspection-point-controls button,
  .ssta-inspection-action-evidence button { width: 100%; white-space: normal; }
  .ssta-inspection-point-actions { padding-inline: 14px; }
  .ssta-inspection-action-card .quality-finding-action-fields { padding-inline: 0; }
  .ssta-inspection-action-card .quality-finding-action-card-head { flex-direction: column; }
  .ssta-inspection-closure .quality-finding-action-fields { padding-inline: 14px; }
  .ssta-inspection-section-heading { align-items: flex-start; }
  .ssta-incident-list-panel > .ticket-panel-head,
  .ssta-incident-actions > .ticket-panel-head { align-items: flex-start; flex-direction: column; }
  .ssta-incident-people-list { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
  .ssta-incident-evidence-item { align-items: stretch; flex-direction: column; }
  .ssta-incident-evidence-item button { width: 100%; white-space: normal; }
  .quality-audit-list-panel > .ticket-panel-head,
  .quality-audit-findings-section > .ticket-panel-head { align-items: flex-start; flex-direction: column; }
  .quality-audit-toolbar { grid-template-columns: minmax(0,1fr); }
  .quality-audit-toolbar .user-directory-search { grid-column: auto; }
  .quality-audit-clear-filters { width: 100%; }
  .quality-audit-heading .corporate-heading-actions,
  .quality-audit-heading .button-row,
  .quality-audit-detail-heading .corporate-heading-actions,
  .quality-audit-detail-heading .button-row { width: 100%; }
  .quality-audit-heading .button-row,
  .quality-audit-detail-heading .button-row { flex-direction: column; }
  .quality-audit-heading .button-row button,
  .quality-audit-detail-heading .button-row button { width: 100%; }
  .quality-audit-section > .ticket-panel-head { align-items: flex-start; flex-direction: column; }
  .quality-audit-facts { grid-template-columns: minmax(0,1fr); padding-inline: 14px; }
  .quality-audit-fact-span { grid-column: auto; }
  .quality-audit-link-controls { align-items: stretch; flex-direction: column; padding-inline: 14px; }
  .quality-audit-link-controls button { width: 100%; }
}
@media(max-width:560px){
  .hr-employee-service-grid { grid-template-columns: minmax(0,1fr); }
  .hr-employee-editor-modal .modal-heading { padding: 18px 18px 15px; }
  .hr-employee-editor-modal .hr-employee-editor-form > .modal-body { padding: 18px; }
  .hr-employee-editor-modal > .hr-employee-editor-form > .hr-employee-modal-footer { padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); }
  .hr-employee-editor-modal .modal-footer .button-row { width: 100%; margin-left: 0; flex-direction: column-reverse; }
  .hr-employee-editor-modal .modal-footer button { width: 100%; }
}
@media(prefers-reduced-motion:reduce){
  .hr-employee-loading::before { animation: none; }
}
.site-header.admin-authenticated + main.standalone-view { display: block; width: 100%; max-width: none; }
.site-header.admin-authenticated + main.standalone-view > .app-content { margin-inline: auto; }
#app.management-shell { display: grid; width: 100%; max-width: none; min-height: calc(100vh - 138px); grid-template-columns: 210px minmax(0,1fr); align-items: start; gap: 18px; margin: 0; padding: 20px 18px 48px 10px; }
#app.management-shell > .app-sidebar { grid-column: 1; grid-row: 1; width: 100%; }
#app.management-shell > .app-content { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; margin-inline: auto; }
#app.management-shell.portal-admin-shell,
#app.management-shell.portal-admin-shell > .app-content { background: #fff; }
#app.management-shell.portal-admin-shell > .app-content { min-height: calc(100vh - 138px); }
.hr-management-home,
.hr-management-home-panel { min-width: 0; width: 100%; }
.hr-management-launch-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 10px; padding: 0 22px 22px; }
.hr-management-launch-actions > button {
  display: grid;
  min-width: 0;
  min-height: 82px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  align-items: start;
  justify-content: stretch;
  align-content: center;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #fff;
  color: #182230;
  text-align: left;
  white-space: normal;
}
.hr-management-launch-actions > button > .hr-management-launch-title { display: block; width: 100%; color: #182230; font-size: 12px; font-weight: 650; line-height: 1.35; text-align: left; overflow-wrap: anywhere; }
.hr-management-launch-actions > button > small { display: block; width: 100%; color: #667085; font-size: 10px; font-weight: 500; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
.hr-management-launch-actions > button:hover { border-color: #cfd4dc; background: #f9fafb; color: #182230; box-shadow: none; transform: none; }
@media(max-width:980px){
  #app.management-shell { grid-template-columns: 190px minmax(0,1fr); gap: 18px; padding-inline: 16px; }
}
@media(max-width:640px){
  #app.management-shell { display: flex; min-height: calc(100vh - 128px); flex-direction: column; gap: 16px; padding: 14px 12px 32px; }
  #app.management-shell > .app-content { width: 100%; max-width: none; }
  .hr-management-launch-actions { grid-template-columns: minmax(0,1fr); padding: 0 14px 14px; }
}
.access-admin-view,
.access-admin-section { display: grid; min-width: 0; gap: 16px; }
.access-admin-view > .page-heading { min-width: 0; }
.access-admin-view.ticket-workspace .access-admin-page-heading { margin: 0; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; align-content: center; align-items: start; column-gap: 16px; row-gap: 2px; padding: 25px 30px; }
.access-admin-view.ticket-workspace .access-admin-page-heading > div:first-child { grid-column: 1; grid-row: 1; max-width: 650px; }
.access-admin-view.ticket-workspace .access-admin-page-heading .ticket-heading-actions { width: auto; max-width: none; grid-column: 2; grid-row: 1; align-items: center; justify-content: flex-start; gap: 8px; }
.access-admin-view.ticket-workspace .access-admin-page-heading .ticket-heading-actions .btn-secondary,
.access-admin-view.ticket-workspace .access-admin-page-heading .ticket-heading-actions .ticket-create-button { min-width: 0; min-height: 36px; padding: 8px 12px; font-size: 12px; }
.access-admin-view.ticket-workspace .access-admin-page-heading .access-management-tabs { width: 100%; min-height: 36px; grid-column: 1 / -1; grid-row: 2; align-self: end; gap: 6px; overflow: hidden; padding: 0 2px; }
.access-admin-view.ticket-workspace .access-admin-page-heading .access-management-tab { min-height: 36px; padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.access-management-tabs { display: flex; min-width: 0; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; }
.access-management-tab { min-height: 42px; flex: 0 0 auto; border: 1px solid #d0d5dd; border-radius: 9px; padding: 9px 14px; background: #fff; color: #344054; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.access-management-tab:hover { border-color: #bfc5ce; background: #f9fafb; }
.access-management-tab:focus-visible,
.access-management-level:focus-visible,
.access-admin-catalog-link:focus-visible { outline: 3px solid rgba(239,91,32,.2); outline-offset: 1px; }
.access-management-tab.selected,
.access-management-tab[aria-pressed="true"] { border-color: #ef8a59; background: #fff4ed; color: #b93815; }
.access-admin-management-panels { display: grid; min-width: 0; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); align-items: start; gap: 14px; }
.access-management-catalog,
.access-management-users { min-width: 0; overflow: hidden; padding: 0; }
.access-management-catalog > .ticket-panel-head,
.access-management-users > .ticket-panel-head { padding: 16px 21px; }
.access-management-catalog > .ticket-panel-head h2,
.access-management-users > .ticket-panel-head h2 { margin: 0; color: #182230; font-size: 17px; }
.access-management-catalog > .ticket-panel-head p,
.access-management-users > .ticket-panel-head p { margin: 4px 0 0; color: #667085; font-size: 12px; }
.access-management-levels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; border-bottom: 1px solid #eaecf0; padding: 14px 18px; }
.access-management-level { display: grid; min-width: 0; min-height: 38px; align-content: center; gap: 0; border: 1px solid #d0d5dd; border-radius: 9px; padding: 7px 10px; background: #fff; color: #344054; text-align: left; cursor: pointer; }
.access-management-level:hover { border-color: #bfc5ce; background: #f9fafb; }
.access-management-level.selected,
.access-management-level[aria-pressed="true"] { border-color: #ef8a59; background: #fff8f4; }
.access-management-level strong { font-size: 13px; }
.access-management-users-content { display: grid; min-width: 0; gap: 14px; padding: 16px 18px; }
.access-management-users-content > * { min-width: 0; margin-top: 0; margin-bottom: 0; }
.access-management-users-content .access-management-member-list { grid-template-columns: minmax(0,1fr); }
.access-management-users-content .access-management-member { gap: 9px; }
.access-management-users-content .access-management-member > button { flex: 0 0 auto; }
.access-management-users-content .access-management-add-form { grid-template-columns: minmax(0,1fr) auto; }
.access-management-users-content .access-management-add-form > div { grid-column: 1 / -1; }
.access-management-users-content .access-management-section-head h3,
.access-management-users-content .access-management-add-form h3 { margin: 0; color: #182230; font-size: 14px; }
.access-management-employee-picker { display: grid; min-width: 0; gap: 10px; border-top: 1px solid #eaecf0; padding-top: 14px; }
.access-management-employee-search { display: grid; min-width: 0; gap: 6px; }
.access-management-employee-search label { color: #475467; font-size: 12px; font-weight: 600; }
.access-management-employee-search > div { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.access-management-employee-search input { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 8px 10px; background: #fff; color: #101828; font: inherit; }
.access-management-employee-search input:focus-visible { border-color: #ef8a59; outline: 3px solid rgba(239,91,32,.16); outline-offset: 1px; }
.access-management-employee-search button { min-height: 42px; }
.access-management-search-hint { margin: 0; color: #667085; font-size: 12px; }
.access-management-employee-options { display: grid; max-height: 210px; gap: 6px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.access-management-employee-option { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: center; gap: 12px; border: 1px solid #eaecf0; border-radius: 8px; padding: 9px 11px; background: #fff; color: #344054; text-align: left; cursor: pointer; }
.access-management-employee-option:hover { border-color: #d0d5dd; background: #f9fafb; }
.access-management-employee-option:focus-visible { outline: 3px solid rgba(239,91,32,.2); outline-offset: 1px; }
.access-management-employee-option strong,
.access-management-employee-option small { min-width: 0; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.access-management-employee-option strong { font-size: 12px; }
.access-management-employee-option small { color: #667085; font-size: 11px; }
.access-management-selected-employee { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; border: 1px solid #b2ddff; border-radius: 9px; padding: 11px; background: #eff8ff; }
.access-management-selected-employee > div { display: grid; min-width: 0; gap: 3px; }
.access-management-selected-employee span,
.access-management-selected-employee small { color: #475467; font-size: 11px; }
.access-management-selected-employee strong { overflow: hidden; color: #182230; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.access-management-selected-employee > button:last-of-type { grid-column: 1 / -1; }
.access-management-employee-more { width: 100%; }
.access-management-permissions { margin: 14px 18px; }
.access-admin-human-catalog { margin: 14px 18px 18px; border-top: 1px solid #eaecf0; padding-top: 12px; }
.access-admin-human-catalog > summary { cursor: pointer; color: #344054; font-size: 12px; font-weight: 650; }
.access-admin-human-catalog > div { display: grid; gap: 7px; padding-top: 10px; }
.access-admin-human-catalog h3 { margin: 8px 0 0; color: #475467; font-size: 12px; }
.access-admin-human-catalog p { margin: 0; color: #667085; font-size: 12px; }
.access-admin-catalog-link { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #eaecf0; border-radius: 8px; padding: 8px 10px; background: #fff; color: #344054; text-align: left; cursor: pointer; }
.access-admin-catalog-link:hover { border-color: #d0d5dd; background: #f9fafb; }
.access-admin-catalog-link span { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.access-admin-catalog-link small { flex: 0 0 auto; color: #667085; font-size: 10px; }
.access-admin-search-tools { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; }
.access-admin-global-search { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px 10px; min-width: 0; border: 1px solid #eaecf0; border-radius: 12px; padding: 14px; background: #fff; }
.access-admin-global-search > label { grid-column: 1 / -1; color: #475467; font-size: 12px; font-weight: 600; }
.access-admin-global-search .search-field { display: flex; min-width: 0; align-items: center; gap: 8px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 0 10px; background: #fff; color: #667085; }
.access-admin-global-search .search-field:focus-within { border-color: #ef8a59; outline: 3px solid rgba(239,91,32,.16); outline-offset: 1px; }
.access-admin-global-search input { width: 100%; min-width: 0; min-height: 40px; border: 0; padding: 7px 0; outline: 0; box-shadow: none; font: inherit; }
.access-admin-global-search button { min-height: 42px; }
.access-admin-create-menu { position: relative; align-self: end; }
.access-admin-create-menu > summary { min-height: 42px; cursor: pointer; list-style: none; }
.access-admin-create-menu > summary::-webkit-details-marker { display: none; }
.access-admin-create-menu > div { position: absolute; z-index: 4; top: calc(100% + 6px); right: 0; display: grid; min-width: 140px; gap: 2px; border: 1px solid #eaecf0; border-radius: 9px; padding: 5px; background: #fff; box-shadow: 0 8px 20px rgba(16,24,40,.12); }
.access-admin-create-menu > div button { border: 0; border-radius: 6px; padding: 9px 10px; background: transparent; color: #344054; text-align: left; cursor: pointer; }
.access-admin-create-menu > div button:hover { background: #f2f4f7; }
.access-admin-create-menu > div button:focus-visible { outline: 2px solid #ef8a59; outline-offset: -2px; }
.access-admin-search-empty { display: grid; gap: 5px; border: 1px dashed #d0d5dd; border-radius: 12px; padding: 20px; background: #fcfcfd; color: #667085; font-size: 13px; }
.access-admin-search-empty strong { color: #344054; font-size: 14px; }
.access-admin-split { display: grid; min-width: 0; grid-template-columns: minmax(280px,350px) minmax(0,1fr); align-items: start; gap: 14px; }
.access-admin-search-panel,
.access-admin-detail-panel { display: grid; min-width: 0; gap: 12px; border: 1px solid #eaecf0; border-radius: 12px; padding: 14px; background: #fff; }
.access-admin-search-panel { align-content: start; }
.access-admin-search-results { display: grid; min-width: 0; gap: 9px; }
.access-admin-result-list { display: grid; max-height: min(62vh,600px); gap: 7px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.access-admin-result-list > li { min-width: 0; }
.access-admin-result { display: grid; width: 100%; min-width: 0; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 9px; border: 1px solid #eaecf0; border-radius: 8px; padding: 9px; background: #fff; color: #344054; text-align: left; cursor: pointer; }
.access-admin-result:hover { border-color: #d0d5dd; background: #f9fafb; }
.access-admin-result:focus-visible { outline: 3px solid rgba(239,91,32,.2); outline-offset: 1px; }
.access-admin-result.selected,
.access-admin-result[aria-pressed="true"] { border-color: #f2b08f; background: #fff8f4; }
.access-admin-result-kind { border-radius: 999px; padding: 4px 7px; background: #f2f4f7; color: #475467; font-size: 10px; white-space: nowrap; }
.access-admin-result-copy { display: grid; min-width: 0; gap: 3px; }
.access-admin-result-copy strong,
.access-admin-result-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-admin-result-copy strong { color: #344054; font-size: 12px; }
.access-admin-result-copy small { color: #667085; font-size: 10px; }
.access-admin-more-results { width: 100%; margin-top: 9px; }
.access-admin-search-status { margin: 0; border-radius: 8px; padding: 10px 12px; background: #f9fafb; color: #475467; font-size: 12px; }
.access-admin-detail-panel { min-height: 360px; align-content: start; }
.access-admin-detail-heading { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 9px; border-bottom: 1px solid #eaecf0; padding-bottom: 10px; }
.access-admin-detail-heading h2 { overflow: hidden; margin: 0; color: #182230; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.access-admin-detail-content { display: grid; min-width: 0; gap: 12px; }
.access-admin-detail-content > .access-admin-section { gap: 12px; }
.access-admin-detail-content .page-heading.ticket-workspace-heading { min-height: 0; height: auto; padding: 18px 20px; }
.access-admin-detail-content .page-heading.ticket-workspace-heading h1 { font-size: 22px; }
.access-admin-detail-content .ticket-panel { min-width: 0; }
.access-admin-detail-content .access-admin-section > .ticket-panel { margin: 0; }
.access-admin-detail-content .access-user-detail { margin-top: 0; }
.access-admin-detail-empty { display: grid; min-height: 290px; align-content: center; justify-items: center; gap: 6px; border: 1px dashed #d0d5dd; border-radius: 9px; padding: 24px; color: #667085; text-align: center; font-size: 13px; }
.access-admin-detail-empty strong { color: #344054; font-size: 15px; }
.access-role-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,360px),1fr)); gap: 14px; }
.access-role-card,
.access-role-editor,
.access-group-editor,
.access-user-detail,
.access-audit-panel { min-width: 0; padding: 18px; }
.access-role-card .ticket-panel-head,
.access-role-editor .ticket-panel-head,
.access-group-editor .ticket-panel-head,
.access-user-detail .ticket-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.access-role-meta,
.access-impact-summary,
.access-preview-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: #475467; font-size: 12px; }
.access-role-meta { margin: 14px 0; }
.access-grant-list { display: flex; flex-wrap: wrap; gap: 6px; }
.access-grant-chip,
.access-status { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; border: 1px solid #eaecf0; border-radius: 999px; padding: 4px 8px; background: #f9fafb; color: #475467; font-size: 11px; }
.access-role-fields,
.access-group-fields,
.access-exception-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 12px; margin: 16px 0; }
.access-group-fields .field,
.access-role-fields .field,
.access-exception-fields .field { display: grid; gap: 6px; color: #475467; font-size: 12px; font-weight: 600; }
.access-group-fields input,
.access-role-fields input,
.access-role-fields textarea,
.access-group-fields select,
.access-exception-fields input,
.access-exception-fields select,
.access-exception-fields textarea,
.access-member-management textarea { width: 100%; min-width: 0; border: 1px solid #d0d5dd; border-radius: 8px; padding: 9px 10px; background: #fff; color: #101828; font: inherit; }
.access-permissions-table { max-height: 520px; }
.access-permissions-table table { min-width: 620px; }
.access-permission-choice { display: flex; align-items: flex-start; gap: 9px; }
.access-permission-choice input { margin-top: 3px; }
.access-permission-choice span { display: grid; gap: 3px; }
.access-permission-choice small { color: #667085; font-size: 11px; }
.access-scope-note { border-left: 3px solid #98a2b3; padding: 8px 10px; background: #f9fafb; color: #475467; font-size: 12px; }
.access-impact-summary { margin: 14px 0; border: 1px solid #d0d5dd; border-radius: 8px; padding: 12px; }
.access-impact-summary > strong { color: #101828; }
.access-impact-summary ul { flex-basis: 100%; margin: 0; padding-left: 20px; }
.access-role-actions { justify-content: flex-end; margin-top: 14px; }
.access-group-active { align-self: end; padding: 10px; color: #475467; font-size: 12px; }
.access-member-management { display: grid; min-width: 0; max-width: 100%; gap: 12px; margin-top: 22px; border-top: 1px solid #eaecf0; padding-top: 16px; }
.access-member-management .table-scroll { max-height: 360px; }
.access-status-active,
.access-status-nuevo { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.access-status-inactive,
.access-status-vencido,
.access-status-no_elegible { border-color: #eaecf0; background: #f2f4f7; color: #475467; }
.access-status-ambiguo,
.access-status-no_encontrado { border-color: #fedf89; background: #fffaeb; color: #93370d; }
.access-status-duplicado,
.access-status-existente { border-color: #b2ddff; background: #eff8ff; color: #175cd3; }
.access-user-detail > section:not(.ticket-panel-head) { border: 1px solid #eaecf0; border-radius: 10px; padding: 14px; background: #fff; }
.access-user-detail > section > p { margin: 4px 0 12px; }
.access-admin-filter-toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,240px); align-items: end; gap: 12px; border-bottom: 1px solid #eaecf0; padding-bottom: 14px; }
.access-role-resource-filter { display: grid; gap: 6px; color: #475467; font-size: 12px; font-weight: 600; }
.access-role-resource-filter select { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 8px 10px; background: #fff; color: #101828; font: inherit; }
.access-role-resource-filter select:focus-visible { border-color: #ef8a59; outline: 3px solid rgba(239,91,32,.16); outline-offset: 1px; }
.access-role-matrix-panel,
.access-admin-group-list { min-width: 0; padding: 0; }
.access-management-groups { overflow: hidden; }
.access-management-controls { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(170px,.8fr) auto; align-items: end; gap: 12px; padding: 16px 21px; border-bottom: 1px solid #eaecf0; }
.access-management-controls .field,
.access-management-add-form .field { display: grid; min-width: 0; gap: 6px; color: #475467; font-size: 12px; font-weight: 600; }
.access-management-controls select,
.access-management-add-form input { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 8px 10px; background: #fff; color: #101828; font: inherit; }
.access-management-controls select:focus-visible,
.access-management-add-form input:focus-visible { border-color: #ef8a59; outline: 3px solid rgba(239,91,32,.16); outline-offset: 1px; }
.access-management-controls > button { min-height: 42px; white-space: nowrap; }
.access-management-result { display: grid; min-width: 0; gap: 16px; padding: 18px 21px; }
.access-management-result-head,
.access-management-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.access-management-result-head h3,
.access-management-section-head h4,
.access-management-add-form h4 { margin: 3px 0 0; color: #182230; font-size: 16px; }
.access-management-count { display: inline-flex; align-items: center; border: 1px solid #eaecf0; border-radius: 999px; padding: 5px 10px; background: #f9fafb; color: #475467; font-size: 12px; font-weight: 600; white-space: nowrap; }
.access-management-members { display: grid; min-width: 0; gap: 10px; }
.access-management-section-head p,
.access-management-add-form p { margin: 3px 0 0; color: #667085; font-size: 12px; }
.access-management-member-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.access-management-member { display: flex; min-width: 0; align-items: center; gap: 10px; border: 1px solid #eaecf0; border-radius: 10px; padding: 10px 12px; background: #fff; }
.access-management-member-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #fff4ed; color: #c4320a; font-size: 12px; font-weight: 700; }
.access-management-member-name { display: grid; min-width: 0; flex: 1; gap: 3px; }
.access-management-member-name strong { overflow: hidden; color: #344054; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.access-management-member-name small { color: #667085; font-size: 11px; }
.access-management-empty { display: grid; gap: 4px; border: 1px dashed #d0d5dd; border-radius: 10px; padding: 16px; background: #fcfcfd; color: #667085; font-size: 12px; }
.access-management-empty strong { color: #344054; font-size: 13px; }
.access-management-add-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,260px) auto; align-items: end; gap: 12px; border: 1px solid #eaecf0; border-radius: 10px; padding: 14px; background: #f9fafb; }
.access-management-add-form button { min-height: 42px; white-space: nowrap; }
.access-management-note { margin: 0; border-left: 3px solid #98a2b3; padding: 9px 12px; background: #f9fafb; color: #475467; font-size: 12px; }
.access-management-permissions { border: 1px solid #eaecf0; border-radius: 10px; background: #fff; }
.access-management-permissions-head { border-bottom: 1px solid #eaecf0; padding: 12px 14px; }
.access-management-permissions-head h3 { margin: 0; color: #344054; font-size: 13px; }
.access-management-permissions-head p { margin: 3px 0 0; color: #667085; font-size: 11px; }
.access-management-permissions form { display: grid; gap: 10px; padding: 10px 14px 14px; }
#app .access-management-permissions .table-scroll { max-height: 621px; overflow-x: hidden; overflow-y: auto; }
#app .access-management-permissions .ticket-table thead th { position: sticky; top: 0; z-index: 2; }
.access-management-permissions table { width: 100%; min-width: 0; table-layout: fixed; }
.access-management-permissions th,
.access-management-permissions td { padding: 8px; vertical-align: middle; }
.access-management-permissions th:first-child,
.access-management-permissions td:first-child { width: 62%; }
.access-management-permissions th:last-child,
.access-management-permissions td:last-child { width: 38%; }
.access-management-permissions td strong,
.access-management-permissions td small { display: block; }
.access-management-permissions td strong { overflow-wrap: anywhere; font-size: 12px; }
.access-management-permissions select { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #d0d5dd; border-radius: 7px; padding: 7px 8px; background: #fff; color: #344054; font: inherit; font-size: 12px; cursor: pointer; }
.access-management-permissions select:focus-visible { border-color: #ef8a59; outline: 3px solid rgba(239,91,32,.16); outline-offset: 1px; }
.access-management-loading,
.access-management-error { margin: 0; border-radius: 8px; padding: 12px; font-size: 13px; }
.access-management-loading { background: #f9fafb; color: #475467; }
.access-management-error { border: 1px solid #fecdca; background: #fff8f7; color: #b42318; }
.access-role-matrix-panel .queue-note { flex: 0 0 auto; white-space: nowrap; }
.access-role-matrix-panel > .ticket-panel-head,
.access-admin-group-list > .ticket-panel-head { padding: 17px 21px; }
.access-role-matrix-scroll,
.access-admin-groups-table { max-width: 100%; }
.access-role-view-controls { display: grid; grid-template-columns: minmax(220px,320px) minmax(0,1fr) auto; align-items: end; gap: 14px; padding: 14px 21px; border-bottom: 1px solid #eaecf0; }
.access-role-view-select { display: grid; gap: 6px; color: #475467; font-size: 12px; font-weight: 600; }
.access-role-view-select select { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 8px 10px; background: #fff; color: #101828; font: inherit; }
.access-role-view-select select:focus-visible { border-color: #ef8a59; outline: 3px solid rgba(239,91,32,.16); outline-offset: 1px; }
.access-role-view-metrics { display: flex; min-width: 0; flex-wrap: wrap; gap: 7px; padding-bottom: 3px; }
.access-role-view-metrics span { display: inline-flex; gap: 4px; align-items: center; border: 1px solid #eaecf0; border-radius: 999px; padding: 5px 9px; background: #f9fafb; color: #667085; font-size: 11px; white-space: nowrap; }
.access-role-view-metrics strong { color: #344054; }
.access-role-view-controls > button { white-space: nowrap; }
.access-role-empty { margin: 14px 21px; }
.access-role-matrix { min-width: 620px; }
.access-role-matrix th,
.access-role-matrix td { vertical-align: top; }
.access-role-matrix thead th { position: sticky; top: 0; z-index: 1; background: #f9fafb; }
.access-role-matrix-row td:nth-child(2) small { display: block; margin-top: 4px; color: #667085; font-size: 11px; font-weight: 400; }
.access-role-matrix-scope { display: inline-flex; max-width: 190px; border: 1px solid #b2ddff; border-radius: 8px; padding: 6px 8px; background: #eff8ff; color: #175cd3; font-size: 11px; line-height: 1.4; }
.access-role-matrix-none { color: #667085; font-size: 12px; }
.access-role-inline-permission { display: flex; min-width: 220px; align-items: center; gap: 8px; }
.access-role-inline-permission .access-role-matrix-state { flex: 0 0 auto; color: #475467; font-size: 11px; white-space: nowrap; }
.access-role-inline-permission input { margin: 0; accent-color: #ef5b20; }
.access-role-inline-permission select { width: 100%; min-width: 0; max-width: 210px; min-height: 32px; border: 1px solid #d0d5dd; border-radius: 6px; padding: 5px 7px; background: #fff; color: #344054; font: inherit; font-size: 11px; }
.access-role-inline-permission select:disabled { background: #f2f4f7; color: #98a2b3; cursor: not-allowed; }
.access-role-inline-permission select:focus-visible { border-color: #ef8a59; outline: 3px solid rgba(239,91,32,.16); outline-offset: 1px; }
.access-role-inline-editor { display: grid; gap: 10px; border-bottom: 1px solid #eaecf0; padding: 12px 21px; background: #fcfcfd; }
.access-role-inline-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 10px; }
.access-role-inline-fields .field { display: grid; min-width: 0; gap: 4px; color: #475467; font-size: 11px; font-weight: 600; }
.access-role-inline-fields input { width: 100%; min-width: 0; min-height: 34px; border: 1px solid #d0d5dd; border-radius: 6px; padding: 6px 8px; background: #fff; color: #101828; font: inherit; font-size: 12px; }
.access-role-inline-fields input:focus-visible { border-color: #ef8a59; outline: 3px solid rgba(239,91,32,.16); outline-offset: 1px; }
.access-role-inline-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.access-role-matrix-dirty { color: #667085; font-size: 11px; }
.access-role-inline-editor .access-role-actions { margin: 0; }
.access-role-inline-editor .access-impact-summary { margin: 0; padding: 8px 10px; }
.access-role-matrix-editor .access-role-matrix-row td { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
.access-role-resource { display: block; color: #344054; font-weight: 650; }
.access-role-sensitive { display: inline-block; margin-top: 5px; border-radius: 999px; padding: 3px 7px; background: #fff4ed; color: #b54708; font-size: 10px; }
.access-assignment-target { display: grid; gap: 12px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 14px; background: #f9fafb; }
.access-assignment-target > div { display: grid; gap: 5px; }
.access-assignment-target > div > span,
.access-assignment-target details summary { color: #475467; font-size: 12px; font-weight: 600; }
.access-assignment-target > div > strong { color: #101828; }
.access-scope-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.access-scope-chip { display: inline-flex; flex-wrap: wrap; gap: 4px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 6px 8px; background: #fff; color: #344054; font-size: 11px; }
.access-assignment-target details { margin-top: 4px; }
.access-assignment-target details summary { cursor: pointer; }
.access-role-scope-list { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 20px; }
.access-role-scope-list li { padding-left: 2px; color: #344054; font-size: 12px; }
.access-role-scope-list li strong { display: block; color: #667085; font-size: 11px; }
.access-target-warning { color: #b54708; font-size: 11px; }
.access-preview-result { display: grid; min-width: 0; max-width: 100%; gap: 12px; border-top: 1px solid #eaecf0; padding-top: 14px; }
.access-preview-result-head,
.access-preview-confirm,
.access-current-members-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.access-preview-result-head h4,
.access-current-members h4 { margin: 0; }
.access-preview-table { min-width: 0; max-width: 100%; }
.access-preview-table table { min-width: 680px; }
.access-preview-confirm { border-radius: 8px; padding: 12px; background: #f9fafb; }
.access-preview-confirm p { margin: 0; color: #475467; }
.access-preview-confirm [disabled] { cursor: not-allowed; opacity: .55; }

.access-current-members { min-width: 0; max-width: 100%; }
.access-user-detail { scroll-margin-top: 16px; }
.access-user-detail > section { min-width: 0; }
.access-user-detail h3 { margin: 4px 0; color: #182230; font-size: 15px; }
.access-user-detail > section > p { margin: 0 0 10px; color: #667085; font-size: 12px; }
.access-user-groups { display: grid; gap: 8px; margin-bottom: 0; padding: 0; list-style: none; }
.access-user-groups li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; border: 1px solid #eaecf0; border-radius: 8px; padding: 9px 11px; background: #fff; }
.access-user-groups li strong { color: #344054; }
.access-user-groups li > span:nth-child(2) { color: #667085; font-size: 12px; }
.access-origin { display: inline-flex; border-radius: 6px; padding: 4px 7px; font-size: 11px; line-height: 1.35; }
.access-origin-group { background: #eff8ff; color: #175cd3; }
.access-origin-exception { background: #f4f3ff; color: #5925dc; }
.access-status-expired { border-color: #fedf89; background: #fffaeb; color: #93370d; }
.access-status-revoked { border-color: #fecdca; background: #fff1f0; color: #b42318; }
.access-user-effective-table table { min-width: 620px; }
.access-user-exceptions-panel .table-scroll table { min-width: 940px; }
.access-user-detail .access-exception-form { margin-top: 2px; }
.access-user-detail { display: grid; gap: 12px; margin-top: 14px; }
.access-admin-user-modal { display: flex; width: min(100%, 1120px); max-height: min(90vh, 1000px); flex-direction: column; }
.access-admin-user-modal > .modal-heading,
.access-admin-user-modal > .modal-footer { flex: 0 0 auto; }
.access-admin-user-modal > .modal-body { min-height: 0; max-height: none; flex: 1 1 auto; padding: 16px 20px; }
.access-admin-user-modal .access-user-detail { margin: 0; }
.access-admin-create-modal { display: flex; width: min(100%, 980px); max-height: min(90vh, 1000px); flex-direction: column; }
.access-admin-create-modal > .modal-heading,
.access-admin-create-modal > .modal-footer { flex: 0 0 auto; }
.access-admin-create-modal > .modal-body { min-height: 0; max-height: none; flex: 1 1 auto; padding: 16px 20px; }
.access-admin-create-modal .access-role-editor,
.access-admin-create-modal .access-group-editor { margin: 0; }
.access-admin-create-modal .access-role-editor > .ticket-panel-head,
.access-admin-create-modal .access-group-editor > .ticket-panel-head { display: none; }
.access-user-groups { margin-top: 0; color: #475467; }
.access-exception-form { border-top: 1px solid #eaecf0; padding-top: 14px; }
.access-exception-form summary { cursor: pointer; color: #344054; font-weight: 650; }
.access-audit-toggle { display: flex; justify-content: flex-end; }
.access-audit-panel pre { max-width: 600px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #475467; font-size: 11px; }
.access-admin-error { border: 1px solid #fecdca; border-radius: 8px; padding: 10px 12px; background: #fff8f7; color: #b42318; font-size: 13px; }
@media(max-width:820px){
  .access-admin-split { grid-template-columns: minmax(0,1fr); }
  .access-admin-search-panel { order: 0; }
  .access-admin-detail-panel { min-height: 240px; order: 1; }
  .access-admin-result-list { max-height: 320px; }
  .access-management-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .access-management-controls > button { grid-column: 1 / -1; }
  .access-management-add-form { grid-template-columns: minmax(0,1fr) minmax(170px,260px); }
  .access-management-add-form > button { grid-column: 1 / -1; }
}
@media(max-width:640px){
  .access-role-card,
  .access-role-editor,
  .access-group-editor,
  .access-user-detail,
  .access-audit-panel { padding: 13px; }
  .access-role-view-controls { grid-template-columns: minmax(0,1fr); align-items: stretch; padding: 13px 14px; }
  .access-role-view-metrics { padding-bottom: 0; }
  .access-role-view-controls > button { width: 100%; }
  .access-role-empty { margin: 12px 14px; }
  .access-role-inline-editor { padding: 12px 14px; }
  .access-role-inline-fields { grid-template-columns: minmax(0,1fr); }
  .access-role-inline-actions { align-items: stretch; flex-direction: column; }
  .access-role-inline-actions .button-row { width: 100%; }
  .access-role-inline-actions .button-row button { flex: 1 1 auto; }
  .access-role-matrix-panel > .ticket-panel-head,
  .access-admin-group-list > .ticket-panel-head { padding: 13px 14px; }
  .access-role-card .ticket-panel-head,
  .access-role-editor .ticket-panel-head,
  .access-group-editor .ticket-panel-head,
  .access-user-detail .ticket-panel-head { flex-direction: column; }
  .access-admin-search-tools { grid-template-columns: minmax(0,1fr); align-items: stretch; }
  .access-admin-create-menu { justify-self: end; }
  .access-admin-global-search { grid-template-columns: minmax(0,1fr); }
  .access-admin-global-search > label { grid-column: auto; }
  .access-admin-global-search button { width: 100%; }
  .access-admin-result-list { max-height: 300px; }
  .access-admin-detail-content .page-heading.ticket-workspace-heading { padding: 16px 14px; }
  .access-admin-filter-toolbar { grid-template-columns: minmax(0,1fr); align-items: stretch; }
  .access-management-controls,
  .access-management-add-form { grid-template-columns: minmax(0,1fr); }
  .access-management-controls,
  .access-management-result { padding-right: 14px; padding-left: 14px; }
  .access-management-controls > button,
  .access-management-add-form > button { width: 100%; }
  .access-management-member-list { grid-template-columns: minmax(0,1fr); }
  .access-role-resource-filter { min-width: 0; }
  .access-preview-confirm { align-items: stretch; flex-direction: column; }
  .access-preview-confirm button { width: 100%; }
  .access-preview-result-head { align-items: flex-start; flex-direction: column; }
  .access-user-groups li { align-items: flex-start; flex-direction: column; }
}
@media(max-width:720px){
  .access-admin-user-modal-backdrop { padding: 12px; }
  .access-admin-user-modal { width: 100%; max-height: calc(100vh - 24px); }
  .access-admin-user-modal > .modal-heading { padding: 16px; }
  .access-admin-user-modal > .modal-body { padding: 12px; }
  .access-admin-user-modal > .modal-footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .access-admin-user-modal > .modal-footer .button-row,
  .access-admin-user-modal > .modal-footer .button-row button { width: 100%; }
  .access-admin-create-backdrop { align-items: end; padding: 0; }
  .access-admin-create-modal { width: 100%; max-height: 94vh; border-radius: 16px 16px 0 0; }
  .access-admin-create-modal > .modal-heading,
  .access-admin-create-modal > .modal-footer { flex: 0 0 auto; }
  .access-admin-create-modal > .modal-body { min-height: 0; max-height: none; flex: 1 1 auto; padding: 20px; }
  .access-admin-create-modal > .modal-footer { align-items: stretch; flex-direction: column; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
  .access-admin-create-modal > .modal-footer .button-row,
  .access-admin-create-modal > .modal-footer .button-row button { width: 100%; margin-left: 0; }
}

.request-kind { position: relative; width: min(100%, 30rem); color: #202936; }
.request-kind[open] { z-index: 20; }
.request-kind summary, .request-kind-options button {
  box-sizing: border-box; width: 100%; padding: .8rem 1rem;
  border: 1px solid #ccd3db; border-radius: .65rem; background: #fff;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.request-kind summary { display: flex; align-items: center; justify-content: space-between; list-style: none; }
.request-kind summary::-webkit-details-marker { display: none; }
.request-kind summary::after { content: ""; width: .5rem; height: .5rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.request-kind[open] summary::after { transform: rotate(225deg); }
.request-kind-options { position: absolute; top: calc(100% + .3rem); left: 0; z-index: 21; box-sizing: border-box; width: 100%; max-height: min(20rem, 55vh); overflow-y: auto; overscroll-behavior: contain; padding: .35rem; border: 1px solid #d6dbe0; border-radius: .65rem; background: #fff; box-shadow: 0 4px 12px #16212c12; }
.request-kind-options button { border-color: transparent; }
.request-kind-options button:hover, .request-kind-options button:focus-visible { background: #f2f4f6; color: #202936; }
.request-kind :is(summary,button):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.certificate-request-form { display: grid; gap: 20px; }
.certificate-request-title .eyebrow { color: #c74710; }
.certificate-request-title h2 { margin: 4px 0 6px; color: #172b3a; font-size: 20px; }
.certificate-request-title p { max-width: 650px; margin: 0; color: #667085; font-size: 13px; line-height: 1.55; }
.certificate-request-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.certificate-request-steps li { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e4e7ec; border-radius: 10px; background: #fafbfc; }
.certificate-request-steps li > span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: #fff0e6; color: #c74710; font-size: 12px; font-weight: 700; }
.certificate-request-steps li > div, .certificate-salary-copy { display: grid; min-width: 0; gap: 3px; }
.certificate-request-steps strong { color: #344054; font-size: 12px; }
.certificate-request-steps small, .certificate-salary-copy small { color: #667085; font-size: 11px; line-height: 1.45; }
.certificate-salary-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.certificate-salary-choice legend { grid-column: 1 / -1; margin-bottom: 10px; color: #344054; font-size: 14px; font-weight: 700; }
.certificate-salary-option { display: flex; min-width: 0; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid #dfe3e8; border-radius: 10px; background: #fff; cursor: pointer; }
.certificate-salary-option:focus-within { outline: 2px solid #c74710; outline-offset: 2px; }
.certificate-salary-option input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: #c74710; }
.certificate-salary-option input:checked + .certificate-salary-copy strong { color: #a63c10; }
.certificate-salary-copy strong { color: #344054; font-size: 13px; }
.certificate-request-note { grid-column: 1 / -1; margin: 3px 0 0; padding: 12px 14px; border-left: 3px solid #e69b66; border-radius: 0 7px 7px 0; background: #fff8f2; color: #5f6470; font-size: 12px; line-height: 1.55; }
.certificate-request-error:empty { display: none; }
.certificate-request-error:not(:empty) { margin: 0; color: #b42318; font-size: 13px; }
.certificate-request-actions { justify-content: flex-end; padding-top: 2px; }
@media(max-width:640px) {
  .certificate-request-form { gap: 16px; padding: 17px; }
  .certificate-request-steps, .certificate-salary-choice { grid-template-columns: minmax(0, 1fr); }
  .certificate-request-steps li { padding: 10px 12px; }
  .certificate-salary-choice legend, .certificate-request-note { grid-column: 1; }
  .certificate-request-actions { align-items: stretch; flex-direction: column-reverse; }
  .certificate-request-actions button { width: 100%; }
}

.incapacity-request-form { display: grid; gap: 16px; }
.incapacity-request-heading .eyebrow { color: #c74710; }
.incapacity-request-heading h2 { margin: 3px 0 5px; font-size: 20px; }
.incapacity-request-heading p, .incapacity-request-section-heading p { margin: 0; color: #667085; font-size: 12px; line-height: 1.55; }
.incapacity-request-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.incapacity-request-steps li { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid #e4e7ec; border-radius: 9px; background: #fafbfc; }
.incapacity-request-steps li > span { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border-radius: 50%; background: #fff0e6; color: #c74710; font-size: 12px; font-weight: 700; }
.incapacity-request-steps li > div { display: grid; min-width: 0; gap: 2px; }
.incapacity-request-steps strong { color: #344054; font-size: 12px; }
.incapacity-request-steps small, .incapacity-upload-field small { color: #667085; font-size: 11px; line-height: 1.45; }
.incapacity-request-profile, .incapacity-request-section { min-width: 0; padding: 16px; border: 1px solid #eaecf0; border-radius: 10px; background: #fff; }
.incapacity-request-profile .eyebrow { margin-bottom: 12px; }
.incapacity-request-profile .gh-approval-review-fields { gap: 10px; }
.incapacity-request-section-heading { margin-bottom: 12px; }
.incapacity-request-section-heading h3 { margin: 0 0 4px; color: #344054; font-size: 14px; }
.incapacity-request-section-heading h3 span { margin-left: 5px; color: #667085; font-size: 10px; font-weight: 500; }
.incapacity-request-date-grid, .incapacity-request-extra-grid { gap: 12px 16px; }
.incapacity-request-date-grid .field { margin: 0; }
.incapacity-request-date-grid .field small, .incapacity-request-extra-grid .field small { display: block; margin-top: 5px; color: #667085; font-size: 11px; line-height: 1.45; }
.incapacity-upload-field { display: grid; gap: 10px; padding: 14px; border: 1px dashed #cbd2da; border-radius: 9px; background: #fafbfc; cursor: pointer; }
.incapacity-upload-field:focus-within { outline: 2px solid #c74710; outline-offset: 2px; }
.incapacity-upload-field > span { display: grid; gap: 3px; }
.incapacity-upload-field strong { color: #344054; font-size: 12px; }
.incapacity-upload-field input { width: 100%; min-width: 0; color: #475467; font-size: 12px; }
.incapacity-upload-field input::file-selector-button { margin-right: 10px; padding: 7px 11px; border: 1px solid #d0d5dd; border-radius: 7px; background: #fff; color: #344054; font: inherit; font-weight: 600; cursor: pointer; }
.incapacity-upload-field input::file-selector-button:hover { background: #f2f4f6; }
.incapacity-overlap-confirm:not([hidden]) { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 12px 14px; border: 1px solid #fedf89; border-radius: 8px; background: #fffaeb; color: #7a2e0e; font-size: 12px; }
.incapacity-overlap-confirm input { flex: 0 0 auto; margin: 2px 0 0; accent-color: #c74710; }
.incapacity-truth-confirm { display: flex; align-items: flex-start; gap: 11px; margin: 0; padding: 15px 16px; border: 1px solid #e4e7ec; border-radius: 10px; background: #fafbfc; color: #344054; cursor: pointer; }
.incapacity-truth-confirm:focus-within { outline: 2px solid #c74710; outline-offset: 2px; }
.incapacity-truth-confirm input { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: #c74710; }
.incapacity-truth-confirm span { display: grid; min-width: 0; gap: 4px; }
.incapacity-truth-confirm strong { color: #344054; font-size: 12px; line-height: 1.55; }
.incapacity-truth-confirm small { color: #667085; font-size: 11px; line-height: 1.45; }
.incapacity-request-error:empty { display: none; }
.incapacity-request-error:not(:empty) { margin: 0; color: #b42318; font-size: 13px; }
.incapacity-request-actions { justify-content: flex-end; }
@media(max-width:640px) {
  .incapacity-request-form { gap: 13px; padding: 16px; }
  .incapacity-request-steps, .incapacity-request-date-grid, .incapacity-request-extra-grid { grid-template-columns: minmax(0, 1fr); }
  .incapacity-request-profile, .incapacity-request-section { padding: 13px; }
  .incapacity-request-actions, .incapacity-request-actions button { width: 100%; }
}

.self-service-history-panel { min-width: 0; }
.self-service-history-scroll { width: 100%; min-width: 0; }
.self-service-history-table { min-width: 920px; }
.self-service-history-table td { vertical-align: top; }
.self-service-history-table td:first-child strong,
.self-service-history-table td:first-child small,
.self-service-history-table td:nth-child(3) small { display: block; }
.self-service-history-table td:first-child strong { color: #344054; font-size: 12px; }
.self-service-history-table td:first-child small,
.self-service-history-table td:nth-child(3) small { margin-top: 4px; color: #667085; font-size: 10px; }
.self-service-history-table td.self-service-history-response-cell { min-width: 220px; max-width: 340px; white-space: normal; line-height: 1.5; overflow-wrap: anywhere; }
.self-service-history-table .gh-approval-status { margin-top: 0 !important; }
.self-service-history-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.self-service-history-actions .btn-secondary { min-height: 32px; padding: 6px 9px; font-size: 11px; }
.self-service-history-detail-row > td { padding: 14px !important; background: #f8fafc !important; white-space: normal !important; }
.self-service-history-detail { padding: 18px; border: 1px solid #e4e7ec; border-radius: 10px; background: #fff; }
.self-service-history-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.self-service-history-detail-heading h3 { margin: 0; color: #172b3a; font-size: 15px; }
.self-service-history-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.self-service-history-facts > div { min-width: 0; padding: 11px 12px; border: 1px solid #eaecf0; border-radius: 8px; background: #fcfcfd; }
.self-service-history-facts dt { margin-bottom: 4px; color: #667085; font-size: 10px; font-weight: 650; }
.self-service-history-facts dd { margin: 0; color: #344054; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.self-service-history-response { margin-top: 14px; padding: 14px 16px; border-left: 3px solid #e69b66; border-radius: 0 8px 8px 0; background: #fff8f2; }
.self-service-history-response h4 { margin: 0 0 6px; color: #344054; font-size: 12px; }
.self-service-history-response > p { margin: 0; color: #475467; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.self-service-history-response-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; color: #667085; font-size: 10px; }
.self-service-history-response-meta strong { color: #344054; }
.self-service-history-response .gh-approval-review-history { margin-top: 12px; }
.self-service-history-response .gh-approval-review-history h4 { margin-bottom: 8px; }
.self-service-history-empty { padding: 32px 20px; text-align: center; }
.self-service-history-empty strong { color: #344054; }
.self-service-history-empty p { max-width: 440px; margin: 6px auto 0; font-size: 12px; line-height: 1.5; }
@media(max-width:640px) {
  .self-service-history-detail-row > td { padding: 8px !important; }
  .self-service-history-detail { padding: 13px; }
  .self-service-history-facts { grid-template-columns: minmax(0, 1fr); }
  .self-service-history-detail-heading { align-items: flex-start; }
}
.support-chat-widget {
  position: fixed;
  z-index: 1050;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: grid;
  justify-items: end;
  gap: 12px;
  font-family: inherit;
}
.support-chat-panel {
  display: grid;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 106px);
  max-height: calc(100dvh - 106px);
  grid-template-rows: auto minmax(120px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .2);
}
.support-chat-panel[hidden] { display: none; }
.support-chat-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 17px;
  background: #172f40;
  color: #fff;
}
.support-chat-header > div { display: grid; min-width: 0; gap: 4px; }
.support-chat-status { display: flex; align-items: center; gap: 6px; color: #cbd5df; font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.support-chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #57c58a; }
.support-chat-header strong { font-size: 15px; }
.support-chat-header small { color: #cbd5df; font-size: 11px; }
.support-chat-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 9px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.support-chat-close:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.09); }
.support-chat-close:focus-visible { outline: 3px solid rgba(255,255,255,.35); outline-offset: 2px; }
.support-chat-messages {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 14px;
  background: #f7f8fa;
}
.support-chat-message {
  display: grid;
  max-width: 90%;
  gap: 4px;
  align-self: flex-start;
  border: 1px solid #e4e7ec;
  border-radius: 12px 12px 12px 4px;
  padding: 9px 11px;
  background: #fff;
  color: #344054;
}
.support-chat-message.is-user { align-self: flex-end; border-color: #f4d0bd; border-radius: 12px 12px 4px 12px; background: #fff4ed; }
.support-chat-speaker { color: #667085; font-size: 9px; font-weight: 700; }
.support-chat-message p { margin: 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.support-chat-prompt { display: grid; max-height: min(260px, 36vh); gap: 8px; overflow: auto; border-top: 1px solid #eaecf0; padding: 10px 12px; background: #fff; }
.support-chat-options { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; }
.support-chat-option {
  width: auto;
  max-width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  border-color: #d0d5dd;
  border-radius: 8px;
  padding: 5px 9px;
  background: #fff;
  color: #344054;
  font-size: 11px;
  text-align: left;
  white-space: normal;
}
.support-chat-option:hover,
.support-chat-option:focus-visible,
.support-chat-retry:hover,
.support-chat-retry:focus-visible { transform: none; border-color: #bfc5ce; background: #f9fafb; color: #344054; box-shadow: none; }
.support-chat-option:focus-visible,
.support-chat-retry:focus-visible,
.support-chat-history-link:focus-visible,
.support-chat-review-actions button:focus-visible { outline: 3px solid rgba(239,91,32,.2); outline-offset: 1px; }
.support-chat-answer { display: grid; gap: 8px; }
.support-chat-answer label { color: #344054; font-size: 12px; font-weight: 650; }
.support-chat-answer input,
.support-chat-answer textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 12px;
}
.support-chat-answer input { min-height: 40px; }
.support-chat-answer textarea { min-height: 82px; resize: vertical; }
.support-chat-answer input:focus-visible,
.support-chat-answer textarea:focus-visible { border-color: #ef8a59; outline: 3px solid rgba(239,91,32,.16); outline-offset: 1px; }
.support-chat-image-input { display: none !important; }
.support-chat-details { gap: 6px; }
.support-chat-details .ticket-image-control { margin-top: 0; }
.support-chat-image-preview { max-width: 100%; }
.support-chat-answer .btn-primary,
.support-chat-done .btn-primary,
.support-chat-review-actions .btn-primary { min-height: 40px; justify-content: center; padding: 8px 12px; font-size: 12px; }
.support-chat-error { margin: 0; border-left: 3px solid #b42318; padding: 8px 9px; background: #fef3f2; color: #912018; font-size: 11px; line-height: 1.45; }
.support-chat-loading,
.support-chat-empty-options { margin: 0; color: #475467; font-size: 12px; line-height: 1.5; }
.support-chat-retry { min-height: 38px; justify-self: start; padding: 8px 11px; }
.support-chat-review { display: grid; gap: 9px; }
.support-chat-review > strong { color: #344054; font-size: 12px; }
.support-chat-profile-note { margin: -3px 0 0; color: #667085; font-size: 10px; line-height: 1.45; }
.support-chat-review dl { display: grid; gap: 7px; margin: 0; }
.support-chat-review dl > div { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 8px; }
.support-chat-review dt { color: #667085; font-size: 10px; font-weight: 650; }
.support-chat-review dd { min-width: 0; margin: 0; color: #344054; font-size: 11px; overflow-wrap: anywhere; white-space: pre-wrap; }
.support-chat-review-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.support-chat-review-actions .btn-secondary { min-height: 40px; padding: 8px; font-size: 11px; }
.support-chat-done { display: grid; }
.support-chat-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #eaecf0; padding: 9px 14px; color: #667085; font-size: 10px; }
.support-chat-history-link { border: 0; padding: 5px 0; background: transparent; color: #b93815; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.support-chat-history-link:hover { color: #912018; text-decoration: underline; }
.support-chat-launcher {
  display: grid;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d5dd;
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: #344054;
  box-shadow: 0 3px 12px rgba(16,24,40,.16);
  font: inherit;
  cursor: pointer;
}
.support-chat-launcher-mark { display: grid; width: 34px; height: 34px; place-items: center; }
.support-chat-launcher-mark img { display: block; width: 25px; height: 25px; object-fit: contain; }
.support-chat-launcher:hover { border-color: #bfc5ce; background: #f9fafb; color: #344054; box-shadow: 0 4px 14px rgba(16,24,40,.18); transform: none; }
.support-chat-launcher:focus-visible { outline: 3px solid rgba(239,91,32,.28); outline-offset: 3px; }
.support-chat-launcher:active { transform: none; }
@media(max-width:520px) {
  .support-chat-widget { right: max(12px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); }
  .support-chat-panel { width: calc(100vw - 24px); max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); }
  .support-chat-prompt { max-height: min(230px, 34vh); }
}
@media(prefers-reduced-motion:reduce) {
  .support-chat-widget,
  .support-chat-widget * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.equipment-edit-modal .equipment-peripherals-fieldset,
.equipment-life-sheet-modal .life-sheet-activity-fieldset {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 11px;
  background: #fcfcfd;
}
.equipment-peripherals-fieldset legend,
.life-sheet-activity-fieldset legend {
  padding: 0 6px;
  color: #344054;
  font-size: 11px;
  font-weight: 700;
}
.equipment-peripherals-fieldset > p {
  margin: 0 0 10px;
  color: #667085;
  font-size: 10px;
}
.equipment-peripheral-row {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,.8fr) minmax(0,1fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #eaecf0;
}
.equipment-peripheral-row label,
.life-sheet-activity-option {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: #475467;
  font-size: 9px;
  font-weight: 650;
}
.equipment-peripheral-row input { width: 100%; }
.equipment-life-sheet-modal { width: min(100%,1080px); max-width: 1080px; overflow: hidden; border-radius: 16px; }
.equipment-life-sheet-modal > .modal-heading { flex: 0 0 auto; padding: 20px 26px; }
.equipment-life-sheet-modal .modal-body {
  max-height: min(74vh,820px);
  padding: 20px 26px 26px;
  overflow: auto;
  background: #f8f9fa;
}
.life-sheet-preview,
.life-sheet-register { display: grid; gap: 14px; }
.life-sheet-preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
}
.life-sheet-preview-heading .eyebrow,
.life-sheet-register .eyebrow { color: #c74710; font-size: 8px; }
.life-sheet-preview-heading h3,
.life-sheet-register h3 { margin: 3px 0; color: #172b3a; font-size: 16px; }
.life-sheet-preview-heading p { margin: 0; color: #667085; font-size: 10px; }
.life-sheet-section,
.life-sheet-register {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
}
.life-sheet-section h4 { margin: 0 0 12px; color: #344054; font-size: 11px; }
.life-sheet-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.life-sheet-fields > div { display: grid; min-width: 0; gap: 4px; padding: 9px 10px; border: 1px solid #eaecf0; border-radius: 8px; background: #fcfcfd; overflow-wrap: anywhere; }
.life-sheet-fields small { color: #98a2b3; font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.life-sheet-fields span { color: #344054; font-size: 10px; }
.life-sheet-table { min-width: 650px; font-size: 10px; }
.life-sheet-empty { margin: 0; color: #667085; font-size: 10px; }
.life-sheet-periodicity { margin: 0 0 10px; color: #475467; font-size: 10px; }
.life-sheet-activities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 14px; margin: 0; padding: 0; list-style: none; }
.life-sheet-activities li { display: flex; min-width: 0; gap: 7px; color: #667085; font-size: 9px; }
.life-sheet-activities li span { flex: 0 0 auto; color: #98a2b3; font-weight: 800; }
.life-sheet-activities li.is-complete { color: #027a48; }
.life-sheet-activities li.is-complete span { color: #039855; }
.life-sheet-activity-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 14px; }
.life-sheet-activity-option { grid-template-columns: 16px minmax(0,1fr); align-items: start; font-size: 10px; font-weight: 500; }
.life-sheet-activity-option input { width: 15px; height: 15px; margin: 0; accent-color: #ef5b20; }
.life-sheet-form-error { min-height: 0; margin: 6px 0; color: #b42318; font-size: 10px; }
.life-sheet-form-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* TI.FO.05 controlled form: display-only representation of the Excel layout. */
.equipment-life-sheet-modal { width: min(100%, 1180px); max-width: 1180px; }
.equipment-life-sheet-modal .modal-body { background: #e8eaed; }
.life-sheet-readonly-actions { align-items: center; }
.life-sheet-readonly-actions > span { color: #667085; font-size: 11px; }
.ti-fo-sheet { display: grid; gap: 0; width: min(100%, 1000px); margin: 0 auto; border: 1px solid #202124; background: #fff; color: #111; font-family: Arial, Helvetica, sans-serif; font-size: 10px; box-shadow: 0 2px 8px rgba(16,24,40,.12); }
.ti-fo-sheet section { border-bottom: 1px solid #202124; }
.ti-fo-title { position: static; display: grid; grid-template-columns: 220px minmax(0,1fr) 130px; min-height: 72px; border-bottom: 1px solid #202124; background: #fff; }
.ti-fo-title > * { display: grid; place-content: center; min-width: 0; padding: 8px 10px; text-align: center; border-right: 1px solid #202124; }
.ti-fo-title > :last-child { border-right: 0; font-size: 9px; font-weight: 700; line-height: 1.35; }
.ti-fo-title strong { font-size: 15px; line-height: 1.25; }
.ti-fo-brand { padding: 5px !important; }
.ti-fo-brand img { display: block; width: 100%; max-width: 205px; height: 58px; object-fit: contain; }
.ti-fo-sheet h4 { margin: 0; padding: 5px 8px; border-bottom: 1px solid #202124; background: #fd6c2d; color: #fff; font-size: 10px; font-weight: 800; }
.ti-fo-sheet h4 small { font-weight: 500; }
.ti-fo-sheet table { width: 100%; border-spacing: 0; border-collapse: collapse; table-layout: fixed; }
.ti-fo-sheet th, .ti-fo-sheet td { min-width: 0; padding: 4px 6px; border-right: 1px solid #202124; border-bottom: 1px solid #202124; overflow-wrap: anywhere; vertical-align: middle; }
.ti-fo-sheet tr > :last-child { border-right: 0; }
.ti-fo-sheet tbody tr:last-child > * { border-bottom: 0; }
.ti-fo-fields th { width: 28%; background: #fabf8f; font-weight: 700; text-align: left; }
.ti-fo-fields td { height: 19px; }
.ti-fo-equipment th { width: 11%; }
.ti-fo-equipment td { width: 22.33%; }
.ti-fo-value { display: block; min-height: 13px; line-height: 1.3; }
.ti-fo-grid thead th { background: #fabf8f; text-align: center; font-weight: 700; }
.ti-fo-grid td { height: 18px; }
.ti-fo-grid tbody th { width: 34%; background: #fabf8f; text-align: left; font-weight: 600; }
.ti-fo-grid th:nth-child(2), .ti-fo-grid td:nth-child(2) { width: 28%; }
.ti-fo-grid th:nth-child(3), .ti-fo-grid td:nth-child(3) { width: 38%; }
.ti-fo-periodicity { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid #202124; }
.ti-fo-periodicity b, .ti-fo-periodicity .ti-fo-value { padding: 4px 6px; }
.ti-fo-periodicity b { background: #fabf8f; border-right: 1px solid #202124; }
.ti-fo-activities { display: grid; grid-template-columns: 180px 1fr; min-height: 74px; }
.ti-fo-activities > strong { padding: 6px; background: #fabf8f; border-right: 1px solid #202124; }
.ti-fo-activities > div { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; }
.ti-fo-activity { display: flex; gap: 5px; align-items: center; min-width: 0; padding: 4px 6px; border-bottom: 1px solid #d0d5dd; font-size: 9px; }
.ti-fo-activity b, .ti-fo-activity i { display: inline-grid; width: 12px; height: 12px; flex: 0 0 12px; place-items: center; border: 1px solid #344054; font-style: normal; line-height: 1; }
.ti-fo-activity b { border-color: #0b6b35; background: #e8f7ed; color: #087443; }
.ti-fo-maintenance thead th { font-size: 9px; }
.ti-fo-maintenance th:nth-child(1), .ti-fo-maintenance td:nth-child(1) { width: 18%; }
.ti-fo-maintenance th:nth-child(2), .ti-fo-maintenance td:nth-child(2) { width: 18%; }
.ti-fo-maintenance th:nth-child(3), .ti-fo-maintenance td:nth-child(3) { width: 29%; }
.ti-fo-maintenance th:nth-child(4), .ti-fo-maintenance td:nth-child(4) { width: 35%; }
.ti-fo-footer { padding: 7px 10px; color: #344054; font-size: 8px; font-style: italic; text-align: center; }
.equipment-maintenance-editor { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; margin-top: 18px; padding: 16px; border: 1px solid #d0d5dd; border-radius: 10px; background: #f8fafc; }
.equipment-maintenance-editor .eyebrow { color: #c74710; font-size: 9px; }
.equipment-maintenance-editor h3 { margin: 3px 0; color: #172b3a; font-size: 14px; }
.equipment-maintenance-editor p { margin: 0; color: #667085; font-size: 11px; }
.equipment-maintenance-form { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #d0d5dd; }
.ti-schedule-page { display: grid; max-width: 1120px; gap: 16px; margin: 0 auto; }
.ti-schedule-page .ticket-workspace-heading { position: static; width: auto; height: auto; min-height: 0; padding: 16px 20px; }
.ti-schedule-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(330px,390px); gap: 16px; align-items: start; }
.ti-schedule-calendar { position: static; padding: 10px; overflow: hidden; }
.ti-schedule-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ti-schedule-calendar-head > button { width: 32px; min-width: 32px; height: 32px; padding: 0; }
.ti-schedule-calendar h2,.ti-schedule-side h2 { margin: 0; color: #172b3a; font-size: 18px; text-transform: capitalize; }
.ti-schedule-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); border-top: 1px solid #e4e7ec; border-left: 1px solid #e4e7ec; }
.ti-schedule-weekday { padding: 6px 4px; background: #f8fafc; color: #667085; font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; border-right: 1px solid #e4e7ec; border-bottom: 1px solid #e4e7ec; }
.ti-schedule-day { display: grid; align-content: start; min-height: 44px; gap: 2px; padding: 4px; color: #344054; text-align: left; background: #fff; border: 0; border-right: 1px solid #e4e7ec; border-bottom: 1px solid #e4e7ec; cursor: pointer; }
.ti-schedule-day:hover,.ti-schedule-day.is-selected { background: #fff4ed; box-shadow: inset 0 0 0 2px #fd6c2d; }
.ti-schedule-day.is-outside { color: #98a2b3; background: #fcfcfd; }
.ti-schedule-day.is-today > span { display: grid; width: 18px; height: 18px; place-items: center; color: #fff; background: #fd6c2d; border-radius: 50%; }
.ti-schedule-event { overflow: hidden; padding: 2px 3px; color: #344054; font-size: 8px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; background: #eaf2f8; border-left: 3px solid #2e90fa; }
.ti-schedule-event.is-maintenance { background: #fff4ed; border-color: #fd6c2d; }.ti-schedule-event.is-audit { background:#f4f3ff;border-color:#7a5af8; }.ti-schedule-event.is-meeting { background:#ecfdf3;border-color:#12b76a; }
.ti-schedule-day em { color: #667085; font-size: 9px; font-style: normal; }
.ti-schedule-side { position: static; display: grid; gap: 10px; padding: 12px; overflow: hidden; }.ti-schedule-side .ticket-panel-head { display: grid; gap: 4px; }.ti-schedule-side .eyebrow { color:#c74710; font-size:10px; }
.ti-schedule-list { display: grid; gap: 8px; max-height: 180px; overflow: auto; }.ti-schedule-list article { display:grid; gap:3px; padding:9px; border:1px solid #eaecf0; border-radius:8px; }.ti-schedule-list span,.ti-schedule-list small,.ti-schedule-list p { color:#667085; font-size:11px; }
.ti-schedule-side form { display:grid; gap:8px; padding-top:10px; border-top:1px solid #e4e7ec; }.ti-schedule-side form h3 { margin:0; color:#172b3a; font-size:15px; }.ti-schedule-side label { display:grid; gap:3px; color:#344054; font-size:11px; font-weight:700; }.ti-schedule-side input,.ti-schedule-side select,.ti-schedule-side textarea { width:100%; }
.schedule-date-row,.schedule-context-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.schedule-context { display:grid; gap:5px; padding:10px; border:1px solid #e4e7ec; border-radius:8px; background:#fcfcfd; }.schedule-context strong { color:#344054; font-size:11px; }.schedule-context p { margin:0 0 3px; color:#667085; font-size:10px; line-height:1.4; }
.schedule-equipment-picker { display:grid; gap:4px; }.schedule-equipment-results { display:grid; max-height:140px; overflow:auto; border:1px solid #e4e7ec; border-radius:8px; background:#fff; }.schedule-equipment-results[hidden] { display:none; }.schedule-equipment-results button { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,90px) auto; align-items:center; gap:8px; padding:6px 8px; border:0; border-bottom:1px solid #eaecf0; color:#344054; text-align:left; background:#fff; cursor:pointer; }.schedule-equipment-results button:last-child { border-bottom:0; }.schedule-equipment-results button:hover,.schedule-equipment-results button:focus-visible { background:#fff4ed; transform:none; }.schedule-equipment-results button strong,.schedule-equipment-results button span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.schedule-equipment-results button strong { font-size:11px; }.schedule-equipment-results button span { color:#667085; font-size:10px; }.schedule-equipment-results button b { color:#b54708; font-size:15px; }.schedule-equipment-results p { margin:0; padding:7px 8px; color:#667085; font-size:10px; }
.schedule-more { display:grid; gap:8px; padding-top:7px; border-top:1px solid #e4e7ec; }.schedule-more summary { width:max-content; color:#667085; font-size:11px; font-weight:650; cursor:pointer; }.schedule-more[open] summary { margin-bottom:2px; }
.schedule-equipment-chips { display:flex; flex-wrap:wrap; gap:6px; }.schedule-equipment-chips span { display:inline-flex; align-items:center; gap:5px; max-width:100%; padding:5px 7px; border:1px solid #fed7aa; border-radius:999px; color:#9a3412; background:#fff7ed; font-size:10px; }.schedule-equipment-chips button { width:16px; height:16px; border:0; border-radius:50%; padding:0; color:#9a3412; background:transparent; font-size:14px; line-height:1; cursor:pointer; }.schedule-equipment-chips small { color:#667085; font-size:10px; }
@media(max-width:900px){.ti-schedule-layout{grid-template-columns:1fr}}
@media(max-width:620px){.ti-schedule-day{min-height:44px;padding:3px}.ti-schedule-weekday{font-size:8px}}
@media(max-width:720px) {
  .equipment-life-sheet-modal .modal-body { max-height: none; padding: 16px; }
  .equipment-life-sheet-modal > .modal-heading { padding: 18px 20px; }
  .equipment-peripheral-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .equipment-peripheral-row label:first-child { grid-column: 1 / -1; }
  .life-sheet-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:520px) {
  .life-sheet-preview-heading { flex-direction: column; align-items: stretch; }
  .life-sheet-fields,
  .life-sheet-activities,
  .life-sheet-activity-grid { grid-template-columns: minmax(0,1fr); }
  .equipment-peripheral-row { grid-template-columns: minmax(0,1fr); }
  .equipment-peripheral-row label:first-child { grid-column: auto; }
  .life-sheet-form-actions { flex-direction: column-reverse; }
  .life-sheet-form-actions button { width: 100%; }
}

.factura-body{padding:24px}.factura-upload{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.factura-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px}.factura-grid input{width:100%;box-sizing:border-box}.factura-actions{margin-top:20px}.facturacion-workspace > .ticket-panel{margin-top:20px}

/* Configuración de desempeño: entradas compactas y creación progresiva. */
.performance-competencies { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.performance-competency-row { grid-template-columns: 24px minmax(0, 1fr) 82px; gap: 8px; align-items: end; padding: 12px; background: #fafbfd; }
.performance-competency-order { width: 24px; height: 24px; margin-bottom: 5px; }
.performance-competency-row .field { min-width: 0; }
.performance-competency-row input { width: 100%; min-width: 0; box-sizing: border-box; }
.performance-competency-row label { display: block; margin-bottom: 5px; }
.performance-competency-row .performance-weight-input input { padding-right: 25px; }
.performance-remove-competency { grid-column: 2 / -1; justify-self: end; padding: 3px 7px; border: 0; background: transparent; color: #6b7885; }
.performance-add-function { display: flex; width: 100%; align-items: center; gap: 14px; padding: 18px; border: 1px dashed #ed9874; border-radius: 11px; background: #fff8f4; color: #9c380e; text-align: left; cursor: pointer; }
.performance-add-function:hover { border-color: #d7511c; background: #fff1e9; }
.performance-add-function:focus-visible { outline: 3px solid rgba(239,91,32,.3); outline-offset: 2px; }
.performance-add-function > span:first-child { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 10px; background: #ffe5d8; font-size: 25px; }
.performance-add-function strong, .performance-add-function small { display: block; }
.performance-add-function strong { font-size: 14px; }
.performance-add-function small { margin-top: 4px; color: #765a4c; font-size: 11px; line-height: 1.4; }
.performance-function-editor { margin-top: 12px; padding: 16px; border: 1px solid #e5e9ee; border-radius: 10px; background: #fafbfd; }
.performance-function-editor[hidden] { display: none; }
.performance-function-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.performance-function-editor-head strong, .performance-function-editor-head small { display: block; }
.performance-function-editor-head small { margin-top: 4px; color: #667585; }
@media (max-width: 1000px) { .performance-competencies { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .performance-competency-row { grid-template-columns: 24px minmax(0, 1fr) 74px; } .performance-weight-field { grid-column: auto; } .performance-remove-competency { grid-column: 2 / -1; justify-self: end; } }

/* Creador de ciclos: navegación y criterios de evaluación. */
.performance-builder { grid-template-columns: 205px minmax(0, 1fr); gap: 20px; }
.performance-builder-aside { padding: 16px 12px; background: #fff; box-shadow: none; border-color: #e1e6eb; }
.performance-steps { gap: 3px; }
.performance-step-button { padding: 9px 8px; border-radius: 7px; }
.performance-steps li.is-current .performance-step-button { border-color: transparent; background: #fff2eb; }
.performance-steps li.is-current .performance-step-button > span:first-child { background: #e85c27; border-color: #e85c27; color: #fff; }
.performance-builder-tip { background: #f4f7f9; }
.performance-form-panel { border: 1px solid #e0e6eb; box-shadow: 0 5px 18px rgba(28,45,60,.045); }
.performance-form-panel[hidden], .performance-scope-selection[hidden], .performance-builder-actions button[hidden] { display: none !important; }
.performance-form-panel > .ticket-panel-head { min-height: 76px; gap: 12px; padding: 18px 22px; background: #fff; border-bottom: 1px solid #edf0f3; }
.performance-form-panel .ticket-panel-head h2 { font-size: 17px; letter-spacing: -.01em; }
.performance-form-panel .ticket-panel-head p { max-width: 580px; color: #687987; line-height: 1.45; }
.performance-form-panel .ticket-panel-kicker { color: #bd481c; }
.performance-inline-actions { justify-content: flex-end; }
.performance-inline-actions button { white-space: nowrap; }
.performance-competency-columns { display: grid; grid-template-columns: minmax(0,1fr) 82px 62px; margin: 18px 22px 0; padding: 0 10px 8px 38px; border-bottom: 1px solid #dce3e8; color: #73818d; font-size: 10px; font-weight: 700; }
.performance-competencies { display: block; padding: 0 22px 18px; }
.performance-competency-row { display: grid; grid-template-columns: 24px minmax(0,1fr) 82px 62px; align-items: center; gap: 8px; min-height: 49px; padding: 6px 10px; border: 0; border-bottom: 1px solid #edf0f2; border-radius: 0; background: #fff; }
.performance-competency-row:hover { background: #f9fafb; }
.performance-competency-order { width: 22px; height: 22px; margin: 0; border-radius: 6px; background: #f1f4f6; color: #6f7f8d; }
.performance-competency-row .field, .performance-competency-row .performance-weight-field { grid-column: auto; margin: 0; }
.performance-competency-row .field > label { margin: 0; font-size: 0; }
.performance-competency-row .field input { height: 34px; min-height: 34px; padding: 5px 9px; border: 1px solid #dce3e8; border-radius: 6px; background: #fff; color: #273b4a; font-size: 12px; }
.performance-competency-row .performance-weight-input { border: 0; background: transparent; }
.performance-competency-row .performance-weight-input input { padding-right: 6px; }
.performance-competency-row .performance-weight-input span { margin-left: -21px; padding: 0; pointer-events: none; }
.performance-remove-competency { grid-column: auto; justify-self: end; padding: 5px; color: #687987; font-size: 11px; }
.performance-competency-row:focus-within { background: #fffaf7; }
.performance-scope-options { gap: 0; padding: 0; background: white; }
.performance-scope-option { padding: 9px 12px; border: 0; border-bottom: 1px solid #edf0f2; border-radius: 0; }
.performance-scope-option:last-child { border-bottom: 0; }
.performance-scope-option button, .performance-scope-selected-list button { color: #b94519; }
.performance-scope-selected-list li { background: #f7faf8; }
.performance-levels { gap: 0; overflow: hidden; border: 1px solid #e0e6eb; border-radius: 8px; }
.performance-levels div { border: 0; border-right: 1px solid #e0e6eb; border-radius: 0; background: #fafbfc; }
.performance-levels div:last-child { border-right: 0; }
.performance-builder-actions { align-items: center; padding-top: 6px; }
@media (max-width: 820px) {
  .performance-builder { grid-template-columns: 1fr; }
  .performance-builder-aside { padding: 10px; }
  .performance-form-panel > .ticket-panel-head { flex-wrap: wrap; }
  .performance-inline-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .performance-competency-columns { grid-template-columns: minmax(0,1fr) 68px 44px; margin: 16px 12px 0; padding-left: 32px; }
  .performance-competencies { padding: 0 12px 14px; }
  .performance-competency-row { grid-template-columns: 20px minmax(0,1fr) 68px 44px; gap: 5px; padding: 6px; }
  .performance-competency-order { width: 20px; height: 20px; }
  .performance-remove-competency { padding: 4px 0; font-size: 10px; }
  .performance-form-panel > .ticket-panel-head { padding: 16px; }
  .performance-inline-actions { width: auto; }
  .performance-builder-actions { flex-direction: row; flex-wrap: wrap; }
  .performance-builder-actions button { width: auto; flex: 1 1 auto; }
}

/* Un espacio de trabajo más sobrio para la configuración del ciclo. */
.performance-builder-heading-note, .performance-builder-tip { display: none; }
.performance-builder { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
.performance-builder-aside { padding: 20px 12px; border-color: #e7eaed; border-radius: 10px; background: #fff; }
.performance-builder-aside > .eyebrow { padding-left: 10px; color: #7b8791; font-size: 10px; letter-spacing: .06em; }
.performance-steps { gap: 2px; margin: 14px 0 0; }
.performance-step-button { gap: 10px; padding: 10px 9px; }
.performance-step-button > span:first-child { width: 25px; height: 25px; border-color: #e8ecef; background: #f7f8f9; color: #77838c; }
.performance-steps li.is-current .performance-step-button { background: #f3f5f6; color: #243745; }
.performance-steps li.is-current .performance-step-button > span:first-child { border-color: #344b5a; background: #344b5a; color: #fff; }
.performance-steps strong { font-size: 12px; font-weight: 650; }
.performance-steps small { font-size: 10px; }
.performance-form-panel { border-color: #e7eaed; border-radius: 10px; box-shadow: 0 3px 12px rgba(33,48,60,.035); }
.performance-form-panel > .ticket-panel-head { min-height: 0; padding: 22px 24px 18px; border-color: #f0f2f3; }
.performance-form-panel .ticket-panel-kicker { color: #89949c; font-size: 10px; letter-spacing: .05em; }
.performance-form-panel .ticket-panel-head h2 { margin: 5px 0; font-size: 18px; font-weight: 650; }
.performance-form-panel .ticket-panel-head p { font-size: 12px; }
.performance-form-body, .performance-publication-options { padding: 22px 24px; }
.performance-competency-columns { margin-top: 16px; color: #8b969e; }
.performance-competency-row { min-height: 46px; }
.performance-competency-order { background: transparent; color: #9aa4ab; }
.performance-competency-row .field input { border-color: transparent; background: transparent; }
.performance-competency-row .field input:hover { border-color: #dce3e8; background: #fff; }
.performance-competency-row .field input:focus { border-color: #9aaab4; background: #fff; }
.performance-weight-total { border-color: #e4e9e6; background: #f7faf8; color: #426653; }
.performance-add-function, .performance-add-function:hover { display: inline-flex; width: auto; gap: 7px; padding: 8px 12px; border: 1px solid #d8dee3; border-radius: 7px; background: #fff; color: #3e505d; font-size: 12px; font-weight: 600; }
.performance-add-function:hover { background: #f5f7f8; border-color: #bfc9cf; }
.performance-add-function > span:first-child { display: inline; width: auto; height: auto; flex: none; background: transparent; color: inherit; font-size: 16px; line-height: 1; }
.performance-function-editor { background: #f9fafb; border-color: #edf0f2; }
.performance-builder-actions { padding: 4px 0 18px; }
@media (max-width: 820px) { .performance-builder { grid-template-columns: 1fr; } .performance-builder-aside { padding: 10px; } }
@media (max-width: 560px) { .performance-form-panel > .ticket-panel-head { padding: 18px 16px; } .performance-form-body, .performance-publication-options { padding: 16px; } }

/* Programación de capacitaciones SSTA */
.ssta-training-create { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 16px; align-items: start; margin-top: 18px; }
.ssta-training-create-main { display: grid; min-width: 0; gap: 16px; }
.ssta-training-create-main > .ticket-panel, .ssta-training-create-aside { min-width: 0; }
.ssta-training-create-body { display: grid; gap: 18px; padding: 20px 22px 22px; }
.ssta-training-create-body .field { min-width: 0; margin: 0; }
.ssta-training-create-body .field input { width: 100%; box-sizing: border-box; }
.ssta-training-create-body .field small { display: block; margin-top: 6px; color: #667585; font-size: 11px; line-height: 1.5; }
.ssta-training-count { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: #f1f4f6; color: #526373; font-size: 11px; font-weight: 650; }
.ssta-training-search-results:empty { display: none; }
.ssta-training-search-results { overflow: auto; max-height: 260px; margin-top: 8px; border: 1px solid #e0e6eb; border-radius: 8px; background: #fff; }
.ssta-training-search-results > p { margin: 0; padding: 12px; color: #667585; font-size: 12px; }
.ssta-training-search-results ul { margin: 0; padding: 0; list-style: none; }
.ssta-training-search-results li + li { border-top: 1px solid #edf0f2; }
.ssta-training-search-results li button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 0; background: #fff; color: #c34d1c; text-align: left; cursor: pointer; }
.ssta-training-search-results li button:hover:not(:disabled) { background: #f8fafb; }
.ssta-training-search-results li button:focus-visible { outline: 2px solid #ef672f; outline-offset: -2px; }
.ssta-training-search-results li button:disabled { color: #778590; cursor: default; }
.ssta-training-search-results li button > span:first-child, .ssta-training-responsible-chip > span { display: grid; min-width: 0; gap: 3px; color: #263b4b; overflow-wrap: anywhere; }
.ssta-training-search-results li button > span:last-child { flex: 0 0 auto; font-size: 11px; font-weight: 650; }
.ssta-training-search-results li button small, .ssta-training-responsible-chip small { color: #687986; font-size: 11px; }
.ssta-training-responsible-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; border: 1px solid #dfe8e3; border-radius: 8px; background: #f7fbf8; }
.ssta-training-responsible-chip button { flex: 0 0 auto; }
.ssta-training-area-picker { display: flex; gap: 8px; align-items: stretch; }
.ssta-training-area-picker select { min-width: 0; flex: 1; }
.ssta-training-area-picker .equipment-choice-control { min-width: 0; flex: 1; }
.ssta-training-area-picker .equipment-choice-trigger { width: 100%; }
.ssta-training-area-picker button { flex: 0 0 auto; }
.ssta-training-selection-empty { display: grid; gap: 5px; padding: 18px; border: 1px dashed #dce3e8; border-radius: 8px; color: #667585; text-align: center; font-size: 12px; }
.ssta-training-selection-empty strong { color: #425666; }
.ssta-training-create-aside { position: sticky; top: 110px; }
.ssta-training-summary { display: grid; gap: 14px; padding: 18px 20px 20px; }
.ssta-training-summary > div { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid #edf0f2; }
.ssta-training-summary > div span { color: #75838e; font-size: 11px; }
.ssta-training-summary > div strong { color: #263b4b; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.ssta-training-summary .ssta-training-form-error { padding: 0; }
.ssta-training-summary button { width: 100%; }
@media (max-width: 900px) { .ssta-training-create { grid-template-columns: 1fr; } .ssta-training-create-aside { position: static; } }
@media (max-width: 520px) { .ssta-training-create-body { padding: 16px; } .ssta-training-create .ticket-panel-head { flex-wrap: wrap; } .ssta-training-search-results li button { align-items: flex-start; } }
@media (max-width: 520px) { .ssta-training-area-picker { flex-wrap: wrap; } .ssta-training-area-picker .equipment-choice-control { flex-basis: 100%; } }

.ssta-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.ssta-dashboard-card { min-width: 0; }
.ssta-dashboard-card .ticket-panel-head { gap: 12px; }
.ssta-dashboard-card .ticket-panel-head button { flex: 0 0 auto; }
.ssta-dashboard-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 16px 20px 22px; }
.ssta-dashboard-metrics > div { display: grid; gap: 5px; padding: 0 12px; border-left: 1px solid #e8edf1; }
.ssta-dashboard-metrics > div:first-child { padding-left: 0; border-left: 0; }
.ssta-dashboard-metrics strong { color: #1c3444; font-size: 28px; line-height: 1.15; }
.ssta-dashboard-metrics span, .ssta-dashboard-unavailable, .ssta-dashboard-note { color: #647483; font-size: 12px; line-height: 1.5; }
.ssta-dashboard-unavailable { padding: 12px 20px 22px; margin: 0; }
.ssta-dashboard-note { margin: 16px 2px; }
@media (max-width: 720px) { .ssta-dashboard-grid { grid-template-columns: 1fr; } .ssta-dashboard-card .ticket-panel-head { flex-wrap: wrap; } }
.ssta-dashboard-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ssta-dashboard-page { gap: 14px; }
.ssta-dashboard-toolbar { justify-items: end; padding: 0; border: 0; background: transparent; box-shadow: none; }
.ssta-dashboard-toolbar .dashboard-period-controls { display: flex; justify-content: flex-end; }
#app .ssta-dashboard-toolbar .dashboard-refresh-button { width: auto; }
.ssta-dashboard-nav { margin-top: -3px; }
.ssta-dashboard-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ssta-dashboard-shortcuts .dashboard-card { display: flex; flex-direction: column; align-items: flex-start; }
.ssta-dashboard-shortcuts .dashboard-card-heading { width: 100%; flex: 1; }
.ssta-dashboard-page .dashboard-chart-area canvas, .ssta-dashboard-page .dashboard-donut-area canvas { cursor: default; }
.ssta-dashboard-page .dashboard-donut-area:has(.dashboard-chart-empty:not([hidden])) .dashboard-donut-center { display: none; }
.ssta-dashboard-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ssta-dashboard-charts .dashboard-card { min-width: 0; }
.ssta-dashboard-charts .dashboard-card-heading { align-items: center; }
.ssta-dashboard-charts .dashboard-card-heading button { flex: 0 0 auto; }
.ssta-dashboard-charts .dashboard-breakdown-list li > span { display: inline-flex; align-items: center; gap: 8px; }
.ssta-chart-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; }
.ssta-chart-dot-0 { background: #f4773c; }
.ssta-chart-dot-1 { background: #eab64e; }
.ssta-chart-dot-2 { background: #7994b0; }
.ssta-chart-dot-3 { background: #bc7d75; }
.ssta-chart-dot-4 { background: #54a37b; }
.ssta-bar-area { height: 218px; }
.ssta-progress-summary { display: flex; align-items: baseline; gap: 8px; padding: 14px 0 9px; }
.ssta-progress-summary strong { color: var(--tx); font-size: 28px; line-height: 1; }
.ssta-progress-summary span { color: var(--mut); font-size: 11px; }
.ssta-progress-list { display: grid; gap: 13px; list-style: none; margin: 12px 0 0; padding: 0; }
.ssta-progress-list li > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: var(--mut); font-size: 12px; }
.ssta-progress-list strong { color: var(--tx); }
.ssta-progress-track { height: 7px; overflow: hidden; margin-top: 6px; border-radius: 9px; background: #edf0f3; }
.ssta-progress-fill { display: block; height: 100%; border-radius: inherit; }
.ssta-progress-fill-0 { background: #f4773c; }
.ssta-progress-fill-1 { background: #eab64e; }
.ssta-progress-fill-2 { background: #7994b0; }
.ssta-progress-fill-3 { background: #bc7d75; }
.ssta-progress-fill-4 { background: #54a37b; }
.ssta-training-month-card { grid-column: 1 / -1; padding: 20px 22px; }
.ssta-training-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.ssta-training-year-control { display: flex; align-items: center; gap: 6px; color: #667789; font-size: 11px; font-weight: 650; }
.ssta-training-year-control select { width: auto; min-width: 82px; height: 34px; min-height: 34px; padding: 0 26px 0 9px; border: 1px solid #dce3e9; border-radius: 7px; background: #fff; color: #243746; font: inherit; font-size: 12px; }
.ssta-training-month-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, .8fr); align-items: stretch; gap: 24px; }
.ssta-training-month-chart { position: relative; min-width: 0; height: 270px; }
.ssta-training-month-chart canvas { width: 100% !important; height: 100% !important; cursor: pointer; }
.ssta-training-month-summary { align-self: center; padding: 8px 0 8px 22px; border-left: 1px solid #e9edf0; }
.ssta-training-month-summary > .eyebrow { color: #718292; font-size: 10px; letter-spacing: .08em; }
.ssta-training-month-summary > p { margin: 10px 0 18px; color: #607181; font-size: 13px; line-height: 1.65; }
.ssta-training-month-summary > p strong { color: #203545; font-size: 20px; font-weight: 700; white-space: nowrap; }
.ssta-training-month-summary .dashboard-breakdown-list { display: grid; gap: 8px; margin: 0; }
.ssta-training-month-summary .dashboard-breakdown-list li { padding: 0; border: 0; font-size: 11px; }
.ssta-training-month-summary .dashboard-breakdown-list strong { color: #243746; }
@media (max-width: 1100px) { .ssta-dashboard-kpis, .ssta-dashboard-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .ssta-dashboard-charts { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .ssta-training-month-card { padding: 16px; } .ssta-training-header-actions { gap: 6px; } .ssta-training-header-actions .btn-secondary { padding: 7px 9px; font-size: 11px; } .ssta-training-month-layout { grid-template-columns: 1fr; gap: 12px; } .ssta-training-month-chart { height: 250px; } .ssta-training-month-summary { padding: 14px 0 0; border-left: 0; border-top: 1px solid #e9edf0; } }
@media (max-width: 640px) { .ssta-dashboard-toolbar { justify-items: stretch; } .ssta-dashboard-toolbar .dashboard-period-controls { justify-content: flex-start; } .ssta-dashboard-kpis .dashboard-kpi:last-child { grid-column: auto; } }
@media (max-width: 520px) { .ssta-dashboard-shortcuts { grid-template-columns: 1fr; } }
