/* ITA Ecosistema 3.2.97 — Paleta 1: grafito + petróleo.
 * Se limita a .ita-panel-wrap: no afecta WordPress admin, ni actas/PDF de impresión.
 * Sin dependencias externas y sin cambios de datos o permisos.
 */
.ita-panel-wrap {
  --ita-coal: #232c30;
  --ita-coal-deep: #171f23;
  --ita-petrol: #075b63;
  --ita-petrol-hover: #07484e;
  --ita-petrol-light: #e1f0f0;
  --ita-paper: #f8f9f9;
  --ita-mist: #edf0f1;
  --ita-stroke: #d4dcdd;
  --ita-text: #27353a;
  --ita-muted: #60747b;
  --ita-head: #d9dcda;
  background: #edf0f1 !important;
  color: var(--ita-text);
  gap: 10px !important;
  padding: 10px !important;
}
.ita-panel-wrap .ita-app-sidebar {
  width: 232px;
  flex: 0 0 232px;
  border: 1px solid #3a4549;
  border-radius: 18px;
  padding: 14px 10px;
  background: linear-gradient(180deg, #2c3437, #1c2529) !important;
  box-shadow: 0 7px 24px rgba(18,33,37,.13);
  backdrop-filter: none;
}
.ita-panel-wrap .ita-app-brand-mark {
  color: #fff;
  background: #06777c;
  box-shadow: none;
  border-radius: 12px;
}
.ita-panel-wrap .ita-app-brand small,
.ita-panel-wrap .ita-side-group-title { color: #c2d4d4; }
.ita-panel-wrap .ita-side-link,
.ita-panel-wrap .ita-side-section > summary { color: #eff4f3 !important; border-radius: 9px; }
.ita-panel-wrap .ita-side-link:hover,
.ita-panel-wrap .ita-side-section > summary:hover { color: #fff !important; background: rgba(177,220,219,.12) !important; }
.ita-panel-wrap .ita-side-link.is-current,
.ita-panel-wrap .ita-side-section > summary.is-current {
  color: #fff !important;
  background: #076970 !important;
  box-shadow: none !important;
}
.ita-panel-wrap .ita-side-section-items .ita-side-link.is-current { background: #07535a !important; }
.ita-panel-wrap .ita-side-user-card { background: #2b3539; border-color: #465257; }
.ita-panel-wrap .ita-side-nav { scrollbar-color: #596d70 transparent !important; }
.ita-panel-wrap .ita-app-main { flex: 1 1 0; min-width: 0; }
.ita-panel-wrap .ita-panel-card,
.ita-panel-wrap .ita-app-main .ita-panel-card {
  padding: 18px clamp(14px, 1.45vw, 24px) !important;
  border: 1px solid #d9e0e1;
  border-radius: 18px;
  background: var(--ita-paper);
  box-shadow: 0 5px 22px rgba(21,43,46,.06);
  color: var(--ita-text);
}
.ita-panel-wrap .ita-panel-header,
.ita-panel-wrap .ita-app-main .ita-panel-header {
  margin-bottom: 14px !important;
  gap: 12px !important;
}
.ita-panel-wrap .ita-panel-header h1,
.ita-panel-wrap .ita-app-main .ita-panel-header h1 {
  font-size: clamp(26px, 2.35vw, 35px) !important;
  line-height: 1.12 !important;
  margin: 0 0 5px !important;
  letter-spacing: -.035em !important;
}
.ita-panel-wrap .ita-panel-card h1,
.ita-panel-wrap .ita-panel-card h2 { color: #222c31; }
.ita-panel-wrap .ita-eyebrow { color: var(--ita-petrol) !important; letter-spacing: .11em; }
.ita-panel-wrap .ita-intro,
.ita-panel-wrap .ita-app-main .ita-intro { font-size: 13px !important; line-height: 1.4 !important; color: #566a70 !important; }
.ita-panel-wrap .ita-panel-card .ita-primary-button,
.ita-panel-wrap .ita-panel-card button.ita-primary-button,
.ita-panel-wrap .ita-panel-card .ita-filter-bar button[type="submit"] {
  color: #fff !important;
  background: var(--ita-petrol) !important;
  border-color: var(--ita-petrol) !important;
  box-shadow: none !important;
}
.ita-panel-wrap .ita-panel-card .ita-primary-button:hover,
.ita-panel-wrap .ita-panel-card .ita-filter-bar button[type="submit"]:hover {
  background: var(--ita-petrol-hover) !important;
  border-color: var(--ita-petrol-hover) !important;
}
.ita-panel-wrap .ita-panel-card .ita-secondary-button { background: #ecf0f0 !important; color: #25383d !important; box-shadow: none !important; border-color: #d2dcdd !important; }
.ita-panel-wrap .ita-app-main .ita-filter-bar {
  border-color: var(--ita-stroke);
  border-radius: 12px;
  background: #f2f5f5;
  padding: 9px;
  margin: 12px 0;
}
.ita-panel-wrap .ita-app-main .ita-filter-bar :is(input:not([type=hidden]),select,button) {
  min-height: 39px;
  font-size: 13px;
  border-radius: 8px;
}
.ita-panel-wrap .ita-app-main :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { accent-color: var(--ita-petrol); }
.ita-panel-wrap :is(a, button, input, select, textarea, summary):focus-visible { outline-color: #15888d !important; }
.ita-panel-wrap .ita-app-main .ita-data-table:not(.ita-agencias-excel-table) th,
.ita-panel-wrap .ita-history-table th { background: #e0e5e5; color: #253338; }
.ita-panel-wrap .ita-app-main .ita-data-table:not(.ita-agencias-excel-table) tbody tr:hover { background: #edf7f6; }
.ita-panel-wrap .ita-app-main .ita-table-scroll:not(.ita-agencias-table-compact) { border-color: var(--ita-stroke); }
.ita-panel-wrap .ita-app-main .ita-table-summary { color: #536c71; }
.ita-panel-wrap .ita-app-main .ita-config-tabs a[aria-current="page"] { background: var(--ita-petrol); }

/* Nómina de Servicios: barra única, KPIs reales y tabla densificada. */
.ita-panel-wrap.ita-service-list-page .ita-panel-card { padding-top: 16px !important; }
.ita-service-list-page .ita-service-list-heading { align-items: center !important; }
.ita-service-list-page .ita-service-list-heading > div:first-child { flex: 1 1 300px; }
.ita-service-list-page .ita-service-kpis { display: flex; align-items: stretch; flex: 0 1 auto; gap: 7px; flex-wrap: wrap; }
.ita-service-list-page .ita-service-kpi {
  display: flex; align-items: center; gap: 9px;
  min-width: 86px; padding: 7px 10px;
  border: 1px solid #d5ddde; border-radius: 10px; background: #fff;
}
.ita-service-list-page .ita-kpi-icon { width: 28px; height: 28px; border-radius: 8px; background: #e4f0f0; color: #08717a; display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.ita-service-list-page .ita-service-kpi:nth-child(2) .ita-kpi-icon { background: #fff0dc; color: #b46a0a; }
.ita-service-list-page .ita-service-kpi:nth-child(3) .ita-kpi-icon { background: #f2e9d8; color: #886019; }
.ita-service-list-page .ita-service-kpi:nth-child(4) .ita-kpi-icon { background: #e1f2e5; color: #1e7340; }
.ita-service-list-page .ita-service-kpi strong { display: block; font-size: 20px; line-height: 1.1; color: #1f3034; }
.ita-service-list-page .ita-service-kpi small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.15; color: #55686c; white-space: nowrap; }
.ita-panel-wrap.ita-service-list-page .ita-service-list-toolbar { display: flex; gap: 8px; flex-wrap: nowrap; padding: 8px !important; margin: 10px 0 !important; }
.ita-panel-wrap.ita-service-list-page .ita-service-list-toolbar .ita-service-toolbar-create { min-height: 39px; padding: 8px 11px; flex: 0 0 auto; white-space: nowrap; }
.ita-panel-wrap.ita-service-list-page .ita-service-list-toolbar input[type="search"] { flex: 1 1 250px; min-width: 90px; background: #fff; border-color: #d0d9da; }
.ita-panel-wrap.ita-service-list-page .ita-service-list-toolbar .ita-filter-select { flex: 0 1 200px; min-width: 120px; background: #fff; border-color: #d0d9da; }
.ita-panel-wrap.ita-service-list-page .ita-service-export-toggle { min-height: 39px; border-radius: 8px; background: #fff; color: #26383e; border-color: #ccd7d8; padding: 7px 11px; font-size: 13px; }
.ita-panel-wrap.ita-service-list-page .ita-service-export-toggle:hover,
.ita-panel-wrap.ita-service-list-page .ita-service-export-menu[open] .ita-service-export-toggle { background: #e5f2f1; border-color: #75a8a8; }
.ita-panel-wrap.ita-service-list-page .ita-service-export-option-icon { color: #075b63; background: #e5f2f1; }
.ita-panel-wrap.ita-service-list-page .ita-service-export-options a:hover { background: #e5f2f1; }
.ita-service-list-page .ita-service-list-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 9px 0 !important; font-size: 13px !important; }
.ita-service-list-page .ita-service-list-summary small { font-size: 11px; color: #6b8084; }
.ita-service-list-page .ita-service-mode-switch { padding: 6px 10px; border: 1px solid #d4dcde; border-radius: 8px; text-decoration: none; font-size: 12px; font-weight: 700; color: #075b63; background: #fff; }
.ita-service-list-page .ita-service-mode-switch:hover { background: #e7f2f2; }

.ita-panel-wrap.ita-service-list-page .ita-service-sheet-scroll-compact {
  border: 1px solid #ccd4d5; border-radius: 10px; overflow-x: auto; overflow-y: visible; max-width: 100%; background: #fff;
}
.ita-panel-wrap.ita-service-list-page .ita-service-sheet-compact {
  width: 100%; min-width: 1310px; border-spacing: 0; border-collapse: separate;
  table-layout: auto; color: #27353a; font-size: 11.5px; line-height: 1.2;
}
.ita-panel-wrap.ita-service-list-page .ita-service-sheet-compact th {
  background: #d4d7d5; color: #20292d; font-size: 11px; font-weight: 800;
  position: sticky; top: 0; z-index: 1;
  text-align: left; white-space: nowrap; padding: 8px 7px;
  border-right: 1px solid #bec7c7; border-bottom: 1px solid #b6c1c2;
}
.ita-panel-wrap.ita-service-list-page .ita-service-sheet-compact td {
  padding: 5px 7px; border-right: 1px solid #e0e5e5; border-bottom: 1px solid #e3e8e8;
  vertical-align: middle; white-space: nowrap; height: 31px; box-sizing: border-box;
}
.ita-service-list-page .ita-service-sheet-compact tr:nth-child(even) { background: #f5f7f7; }
.ita-service-list-page .ita-service-sheet-compact tbody tr:hover { background: #e8f2f2; }
.ita-service-list-page .ita-service-sheet-compact th:nth-child(1) { min-width: 65px; }
.ita-service-list-page .ita-service-sheet-compact th:nth-child(3) { min-width: 150px; }
.ita-service-list-page .ita-service-sheet-compact th:nth-child(8) { min-width: 135px; }
.ita-service-list-page .ita-service-sheet-compact th:nth-child(9) { min-width: 158px; }
.ita-service-list-page .ita-sc-lotos { font-weight: 800; font-variant-numeric: tabular-nums; }
.ita-service-list-page .ita-sc-center { text-align: center; }
.ita-service-list-page .ita-sc-agency { max-width: 215px; }
.ita-service-list-page .ita-sc-agency > span { display: block; max-width: 205px; overflow: hidden; text-overflow: ellipsis; }
.ita-service-list-page .ita-sc-series { font-variant-numeric: tabular-nums; font-size: 11px; }
.ita-service-list-page .ita-sc-type { display: inline-block; border-radius: 6px; padding: 4px 7px; font-weight: 700; color: #074b59; background: #e2efed; white-space: nowrap; }
.ita-service-list-page .ita-sc-type-retiro { background: #f4e4e6; color: #873a47; }
.ita-service-list-page .ita-sc-type-movimiento { background: #e9e7f9; color: #53498c; }
.ita-service-list-page .ita-sc-type-reparacion { background: #fcebdc; color: #915511; }
.ita-service-list-page .ita-sc-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 8px; font-weight: 750; white-space: nowrap; font-size: 11px; }
.ita-service-list-page .ita-sc-status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ita-service-list-page .ita-sc-state-pending { background: #fff0dc; color: #9b5705; }
.ita-service-list-page .ita-sc-state-review { background: #fff0cf; color: #865300; }
.ita-service-list-page .ita-sc-state-ready { background: #e1f3e6; color: #176139; }
.ita-service-list-page .ita-sc-state-cancelled { background: #ebeff1; color: #525d62; }
.ita-service-list-page .ita-sc-actions { display: flex; align-items: center; gap: 4px; }
.ita-service-list-page .ita-sc-icon-btn { width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #d1dbdc; border-radius: 6px; background: #f9fbfb; color: #1e4146; text-decoration: none; font-size: 17px; line-height: 1; cursor: pointer; box-sizing: border-box; list-style: none; }
.ita-service-list-page .ita-sc-icon-btn:hover { background: #e1efef; border-color: #87b9b7; }
.ita-service-list-page .ita-sc-icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ita-service-list-page .ita-sc-icon-btn::-webkit-details-marker { display: none; }
.ita-service-list-page .ita-sc-more { position: relative; }
.ita-service-list-page .ita-sc-more-panel { display: grid; gap: 8px; min-width: 220px; padding: 10px; position: static; margin-top: 6px; z-index: 2; border: 1px solid #c8d5d6; background: #fff; border-radius: 10px; box-shadow: 0 9px 20px #162e312c; }
.ita-service-list-page .ita-sc-more:not([open]) > .ita-sc-more-panel { display: none; }
.ita-service-list-page .ita-sc-more-panel form { display: grid; gap: 6px; margin: 0; }
.ita-service-list-page .ita-sc-more-panel label { display: grid; gap: 5px; font-size: 12px; color: #385056; }
.ita-service-list-page .ita-sc-more-panel select { width: 100%; min-height: 34px; border: 1px solid #c8d5d6; border-radius: 7px; padding: 4px; }
.ita-service-list-page .ita-sc-more-panel .ita-service-button { padding: 6px 8px; min-height: 34px; border-radius: 7px; font-size: 12px; }
.ita-service-list-page .ita-sc-more-panel .ita-service-button-primary { background: #075b63; border-color: #075b63; color: #fff; }
.ita-service-list-page .ita-sc-more-panel .ita-service-button-danger { color: #a32121; }
/* La vista completa y Pendientes mantienen el formulario histórico: ajustar solo su color. */
.ita-panel-wrap .ita-service-sheet:not(.ita-service-sheet-compact) th { background: #d4d7d5 !important; color: #263338 !important; }
.ita-panel-wrap .ita-service-sheet:not(.ita-service-sheet-compact) tbody tr:hover { background: #e8f2f2 !important; }
.ita-panel-wrap .ita-service-sheet:not(.ita-service-sheet-compact) .ita-service-button-primary { background: #075b63; border-color: #075b63; }

@media (max-width: 1300px) {
  .ita-panel-wrap.ita-service-list-page .ita-service-list-toolbar { flex-wrap: wrap; }
  .ita-panel-wrap.ita-service-list-page .ita-service-list-toolbar input[type="search"] { flex: 1 1 280px; }
}
@media (max-width: 980px) {
  .ita-panel-wrap .ita-app-sidebar { width: min(300px, 88vw); flex-basis: auto; }
  .ita-panel-wrap .ita-panel-card, .ita-panel-wrap .ita-app-main .ita-panel-card { padding: 16px !important; }
  .ita-service-list-page .ita-service-kpis { width: 100%; }
  .ita-service-list-page .ita-service-kpi { flex: 1 1 105px; }
}
@media (max-width: 640px) {
  .ita-panel-wrap.ita-service-list-page .ita-service-list-toolbar { align-items: stretch; }
  .ita-panel-wrap.ita-service-list-page .ita-service-list-toolbar input[type="search"] { flex: 1 1 100%; }
  .ita-panel-wrap.ita-service-list-page .ita-service-list-toolbar .ita-filter-select { flex: 1 1 170px; }
  .ita-service-list-page .ita-service-list-summary small { display: block; }
}
