/* Plantilla autorizada: página de RR.HH. dentro del shell existente. */
.application-card--plantillas {
  --app-accent: #214a80;
  --app-soft: #edf4ff;
  --app-ink: #173c70;
}
.application-card--plantillas::before { background: #214a80; }
.application-card--plantillas .application-card-icon,
.application-card--plantillas .application-run-button {
  color: #173c70; border-color: #ccdcf5; background: #edf4ff;
}
.application-card--plantillas .application-card-icon i { font-size: 1.45rem; }
.application-card-chip--plantillas { color: #173c70; background: #e3ecfb; border-color: #cbdcf6; }

/* La sede se reconoce igual en las dos aplicaciones, sin perder el color de cada una. */
#applicationsBoard .application-card[data-application-city="CDMX"] { --city-ink: #164a79; --city-soft: #e9f4ff; --city-border: #b9d9f5; }
#applicationsBoard .application-card[data-application-city="GDL"] { --city-ink: #8a4b10; --city-soft: #fff3dd; --city-border: #f4d39b; }
#applicationsBoard .application-card[data-application-city="MTY"] { --city-ink: #6042a0; --city-soft: #f1ecff; --city-border: #d7c9fa; }
#applicationsBoard .application-card[data-application-city]::before {
  background: linear-gradient(90deg, var(--app-accent) 0 64%, var(--city-ink) 64% 100%);
}
#applicationsBoard .application-card[data-application-city] .application-card-chip--city {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--city-border); border-radius: 999px;
  background: var(--city-soft); color: var(--city-ink);
  font-weight: 900; letter-spacing: .045em; box-shadow: none;
}
#applicationsBoard .application-card[data-application-city] .application-card-chip--city i { font-size: .9em; }
#applicationsBoard > .applications-city-heading {
  --city-ink: #164a79; --city-soft: #e9f4ff; --city-border: #b9d9f5;
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  min-width: 0; margin: 12px 0 1px; padding: 8px 2px 7px;
  border-bottom: 1px solid #dbe4ef; color: #23364e;
}
#applicationsBoard > .applications-city-heading[hidden] { display: none !important; }
#applicationsBoard > .applications-city-heading[data-application-city-section="GDL"] { --city-ink: #8a4b10; --city-soft: #fff3dd; --city-border: #f4d39b; }
#applicationsBoard > .applications-city-heading[data-application-city-section="MTY"] { --city-ink: #6042a0; --city-soft: #f1ecff; --city-border: #d7c9fa; }
.applications-city-heading-mark {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--city-border); border-radius: 9px;
  background: var(--city-soft); color: var(--city-ink); font-size: .78rem;
}
.applications-city-heading strong { display: block; font-size: .82rem; line-height: 1.15; }
.applications-city-heading small { display: block; margin-top: 2px; color: #617087; font-size: .67rem; }
.recruiting-city-pill, .pl-city-pill {
  display: inline-flex; align-items: center; vertical-align: middle;
  margin-left: 6px; padding: 4px 9px; border-radius: 999px;
  border: 1px solid #b9d9f5; background: #e9f4ff; color: #164a79;
  font-size: .63em; font-weight: 850; letter-spacing: .06em; line-height: 1;
}
.recruiting-city-pill[data-city="GDL"], .pl-city-pill[data-city="GDL"] { border-color: #f4d39b; background: #fff3dd; color: #8a4b10; }
.recruiting-city-pill[data-city="MTY"], .pl-city-pill[data-city="MTY"] { border-color: #d7c9fa; background: #f1ecff; color: #6042a0; }

.app-shell.plantillas-central-lock {
  --assistant-side-size: 0px;
  --inbox-side-size: 0px;
  --swap-rail-size: 0px;
}
@media (min-width: 721px) {
  .app-shell.plantillas-central-lock.view-inbox {
    grid-template-columns: var(--sidebar-size) minmax(0, 1fr) 0 0;
    grid-template-areas: "sidebar discovery discovery discovery";
  }
  .app-shell.plantillas-central-lock.view-inbox.sidebar-collapsed {
    grid-template-columns: var(--sidebar-collapsed-size) minmax(0, 1fr) 0 0;
  }
}
.app-shell.plantillas-central-lock .workspace-slot[data-slot="side"],
.app-shell.plantillas-central-lock .workspace-swap-rail,
.app-shell.plantillas-central-lock .panel-swap-button,
.app-shell.plantillas-central-lock .side-panel-collapse-button,
.app-shell.plantillas-central-lock .assistant-float-toggle { display: none !important; }
.applications-workspace.is-plantillas-open {
  overflow: hidden; grid-template-rows: minmax(0, 1fr); padding: 0; gap: 0;
}
.applications-workspace.is-plantillas-open .applications-hero,
.applications-workspace.is-plantillas-open .applications-board { display: none; }
.applications-workspace.is-plantillas-open .plantillas-panel {
  width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none;
}

.plantillas-panel {
  min-height: 0; height: 100%; overflow: hidden; color: #17243a; background: #f8fafc;
  font-family: inherit;
}
.plantillas-panel[hidden] { display: none !important; }
.plantillas-panel [data-plantillas-root] { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.pl-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 54px 18px 28px; border-bottom: 1px solid #e0e7f1; background: #fff; position: relative;
}
.pl-head-copy nav { display: flex; align-items: center; gap: 9px; color: #68768c; font-size: .78rem; margin-bottom: 9px; }
.pl-head-copy nav i { font-size: .6rem; }
.pl-head-copy nav strong { color: #214a80; font-weight: 700; }
.pl-head h1 { margin: 0; color: #17243a; font-size: 1.42rem; letter-spacing: -.025em; line-height: 1.2; }
.pl-head p { margin: 4px 0 0; color: #617087; font-size: .82rem; }
.pl-head-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.pl-button, .pl-close, .pl-section-head button, .pl-area-card header button, .pl-vacancy button,
.pl-subhead button, .pl-table button, .pl-request-actions button {
  font: inherit; cursor: pointer; border: 0; background: transparent;
}
.pl-button {
  min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 9px; font-size: .79rem; font-weight: 700; white-space: nowrap;
}
.pl-button--quiet { color: #224c82; border: 1px solid #d2dfef; background: #fff; }
.pl-button--quiet:hover { background: #f0f5fd; }
.pl-button--primary { color: #fff; background: #1c477e; border: 1px solid #1c477e; box-shadow: 0 3px 7px #1c477e20; }
.pl-button--primary:hover { background: #143763; }
.pl-button:disabled { opacity: .55; cursor: wait; }
.pl-close {
  position: absolute; right: 15px; top: 19px; color: #68768c; width: 28px; height: 28px;
  border-radius: 7px; display: grid; place-items: center;
}
.pl-close:hover { background: #eff3f8; color: #142d51; }
.pl-body { overflow: auto; min-height: 0; padding: 22px 28px 32px; }
.pl-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; margin-bottom: 19px; }
.pl-stats > div, .pl-section, .pl-area-card, .pl-detail-card, .pl-table-wrap {
  border: 1px solid #cbd5e1; background: #fff; border-radius: 11px; box-shadow: 0 2px 8px #19396208;
}
.pl-stats > div { padding: 13px 17px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pl-stats small { font-size: .75rem; color: #475569; font-weight: 650; }
.pl-stats strong { font-size: 1.38rem; color: #17243a; letter-spacing: -.035em; }
.pl-stats .pl-stat-occupied { position: relative; }
.pl-stat-title { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pl-stat-info { position: static; flex: none; }
.pl-stat-info summary { display: grid; place-items: center; width: 22px; height: 22px; box-sizing: border-box;
  border: 1px solid #c9d9ed; border-radius: 50%; background: #edf4ff; color: #214a80; cursor: pointer; list-style: none; font-size: .78rem; }
.pl-stat-info summary::-webkit-details-marker { display: none; }
.pl-stat-info summary:hover, .pl-stat-info[open] summary { border-color: #8cb0df; background: #dceaff; }
.pl-stat-info summary:focus-visible { outline: 2px solid #214a80; outline-offset: 3px; }
.pl-stat-tooltip { position: absolute; z-index: 5; top: calc(100% + 9px); left: 0; width: min(344px, calc(100vw - 48px)); box-sizing: border-box;
  padding: 16px; border: 1px solid #cbdcf0; border-radius: 12px; background: #fff; box-shadow: 0 14px 36px #18385c27;
  color: #334155; line-height: 1.4; }
.pl-stat-tooltip::before { content: ""; position: absolute; top: -6px; left: 136px; width: 10px; height: 10px;
  border-top: 1px solid #cbdcf0; border-left: 1px solid #cbdcf0; background: #fff; transform: rotate(45deg); }
.pl-stat-tooltip-eyebrow { display: block; color: #4670a4; font-size: .64rem; font-weight: 800; letter-spacing: .07em; }
.pl-stats .pl-stat-tooltip-title { display: block; margin-top: 2px; color: #193e6f; font-size: .9rem; letter-spacing: 0; }
.pl-balance-lines { display: grid; gap: 2px; margin-top: 11px; }
.pl-balance-lines > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 9px;
  border-radius: 7px; font-size: .76rem; }
.pl-balance-lines > div:nth-child(2) { background: #f6f8fb; }
.pl-balance-lines > div.is-result { margin-top: 4px; background: #eaf3ff; color: #193e6f; font-weight: 750; }
.pl-balance-lines b { white-space: nowrap; font-size: .87rem; }
.pl-stat-tooltip p { margin: 11px 0 0; padding-top: 10px; border-top: 1px solid #e4eaf2; color: #526178; font-size: .72rem; }
.pl-ink { color: #1c477e !important; }
.pl-section { padding: 20px; }
.pl-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.pl-section h2, .pl-subhead h2 { margin: 0; font-size: 1.13rem; color: #17243a; letter-spacing: -.018em; }
.pl-section-head p, .pl-subhead p { margin: 3px 0 0; color: #68768c; font-size: .79rem; }
.pl-section-head button, .pl-area-card header button, .pl-vacancy button, .pl-subhead button, .pl-table button {
  color: #1b4a83; font-size: .77rem; font-weight: 700; white-space: nowrap;
}
.pl-section-head button i, .pl-area-card header button i, .pl-vacancy button i { margin-left: 4px; }
.pl-section-head button:hover, .pl-area-card header button:hover, .pl-vacancy button:hover,
.pl-subhead button:hover, .pl-table button:hover { color: #112b4e; text-decoration: underline; }
.pl-vacancy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pl-vacancy { border: 1px solid #d8e2ef; border-radius: 9px; padding: 15px; min-height: 147px; position: relative; }
.pl-vacancy:hover { border-color: #adc4e2; box-shadow: 0 5px 17px #15396212; }
.pl-vacancy-top { display: flex; justify-content: space-between; gap: 12px; }
.pl-vacancy-top > span { color: #31557f; font-size: .75rem; font-weight: 700; }
.pl-vacancy-top > span i { margin-right: 5px; color: #244d82; }
.pl-vacancy-top b {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 70px; min-height: 56px; padding: 4px; background: #f0f4fa; color: #1b2a41;
  border-radius: 8px; font-size: 1.35rem; line-height: 1;
}
.pl-vacancy-top b small { color: #67768b; font-size: .65rem; font-weight: 500; margin-top: 5px; }
.pl-vacancy > small { display: block; margin-top: -23px; color: #63748b; font-size: .74rem; }
.pl-vacancy h3 { margin: 3px 76px 0 0; line-height: 1.23; font-size: .88rem; color: #17243a; }
.pl-vacancy p { margin: 5px 0 20px; font-size: .7rem; color: #68768c; }
.pl-vacancy button { position: absolute; right: 13px; bottom: 12px; }
.pl-filter-row { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin: 20px 0 15px; }
.pl-filter-row > span { font-size: .81rem; font-weight: 700; color: #334155; }
.pl-fixed-city { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 15px; border: 1px solid #618bc0; border-radius: 999px; background: #e7f0fb; color: #123d70; font-size: .79rem; font-weight: 700; }
.pl-pills { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pl-pills button { font: inherit; cursor: pointer; border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 999px; padding: 7px 15px; font-size: .79rem; font-weight: 650; }
.pl-pills button:hover { border-color: #9eb8dc; }
.pl-pills button.is-active { color: #123d70; background: #e7f0fb; border-color: #618bc0; }
.pl-search { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid #b9c8d8; background: #fff; border-radius: 8px; padding: 8px 11px; color: #475569; }
.pl-search input { width: 185px; min-width: 0; border: 0; outline: 0; font: inherit; font-size: .8rem; color: #17243a; }
.pl-filter-vacancies { border: 1px solid #b9c8d8; background: #fff; color: #1b4a83; border-radius: 8px; padding: 8px 11px; font: inherit; font-size: .79rem; font-weight: 700; cursor: pointer; }
.pl-filter-vacancies:hover { background: #eaf3fb; }
.pl-area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; align-items: start; }
.pl-area-card { padding: 18px; min-width: 0; }
.pl-area-card header { display: flex; align-items: flex-start; gap: 10px; min-height: 51px; }
.pl-area-icon { display: grid; place-items: center; flex: none; width: 39px; height: 39px; border-radius: 9px; color: #1c477e; background: #eaf2ff; font-size: 1.05rem; }
.pl-area-card header > div { min-width: 0; flex: 1; }
.pl-area-card h3 { margin: 2px 0 0; font-size: .97rem; line-height: 1.2; color: #14233b; overflow-wrap: anywhere; }
.pl-area-card header p { margin: 3px 0 0; font-size: .75rem; color: #475569; }
.pl-area-card header button { margin-top: 5px; }
.pl-area-numbers { display: grid; grid-template-columns: repeat(3, 1fr); margin: 15px 0 14px; }
.pl-area-numbers > div { padding: 0 10px; border-left: 1px solid #e2e8f2; }
.pl-area-numbers > div:first-child { border: 0; padding-left: 0; }
.pl-area-numbers small { display: block; color: #475569; font-size: .74rem; }
.pl-area-numbers strong { display: block; margin-top: 4px; color: #17243a; font-size: 1.29rem; line-height: 1.1; }
.pl-progress { background: #e7edf6; border-radius: 999px; height: 6px; overflow: hidden; }
.pl-progress span { display: block; height: 100%; background: #285d9b; border-radius: inherit; }
.pl-percent { display: block; margin-top: 6px; color: #697890; font-size: .67rem; text-align: right; }
.pl-area-card h4 { margin: 13px 0 7px; color: #334155; font-size: .75rem; }
.pl-area-rows button { width: 100%; min-width: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr) 20px 10px; align-items: center; gap: 5px; border: 0; border-top: 1px solid #dce4ec; background: none; color: #334155; cursor: pointer; padding: 10px 0; text-align: left; font: inherit; font-size: .75rem; }
.pl-area-rows button:hover { color: #1b4a83; background: #f7faff; }
.pl-area-rows button span:nth-child(1), .pl-area-rows button span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-area-rows b { color: #17243a; text-align: right; }
.pl-no-vacancies { color: #475569; font-size: .79rem; }
.pl-subhead { margin-bottom: 17px; }
.pl-subhead button { padding: 0; margin: 0 0 13px; }
.pl-subhead h2 { font-size: 1.37rem; }
.pl-table-wrap { overflow-x: auto; }
.pl-table { width: 100%; border-collapse: collapse; min-width: 750px; }
.pl-table th { text-align: left; padding: 14px 16px; background: #eaf0f6; color: #24364d; font-size: .76rem; font-weight: 750; }
.pl-table td { padding: 13px 16px; border-top: 1px solid #dbe3ec; color: #24364d; font-size: .82rem; }
.pl-table tbody tr:hover { background: #edf4fb; }
.pl-table tbody tr.is-vacant { background: #f6faff; }
.pl-table tbody tr.is-vacant:hover { background: #eaf3fd; }
.pl-table td b { color: #11243e; font-size: .86rem; }
.pl-table td b, .pl-table td small { display: block; }
.pl-table td small { color: #52637a; font-size: .72rem; margin-top: 3px; }
.pl-vacancy-number { display: inline-flex; padding: 5px 9px; border-radius: 7px; background: #dcebf9; color: #143d69; font-size: .78rem; white-space: nowrap; }
.pl-vacancy-label { margin-left: .28em; }
.pl-complete { color: #52637a; font-size: .76rem; }
/* Sobre cupo y sin cupo autorizado ya no se leen como «Completa» (24-sep). */
.pl-state { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: .74rem; font-weight: 750; white-space: nowrap; }
.pl-state.is-over { color: #9a3412; background: #fff1e6; border: 1px solid #fdc9a3; }
.pl-state.is-zero { color: #475569; background: #f1f5f9; border: 1px dashed #b8c4d3; }
.pl-slot-status.is-over { color: #9a3412; background: #fff1e6; border: 1px solid #fdc9a3; }
.pl-only-mobile { display: none; }
.pl-empty-row { text-align: center; color: #52637a; padding: 22px 16px !important; }
.pl-slot-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; }
.pl-slot-toolbar button { border: 0; background: transparent; padding: 2px 0; color: #1b4a83; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.pl-slot-toolbar button:hover { text-decoration: underline; }
.pl-slot-toolbar span { color: #52637a; font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.pl-slot-hero { overflow: hidden; border: 1px solid #cbd9ed; border-radius: 15px; background: #fff; box-shadow: 0 4px 18px #1b3f6d0b; margin-bottom: 14px; }
.pl-slot-hero::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, #5165a9, #3483a8 48%, #2b9a8d); }
.pl-slot-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 20px; }
.pl-slot-hero-top small { color: #4d6282; font-size: .7rem; font-weight: 800; letter-spacing: .09em; }
.pl-slot-hero h2 { margin: 6px 0 3px; color: #172a48; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.16; letter-spacing: -.03em; }
.pl-slot-hero-top p { margin: 0; color: #52637a; font-size: .82rem; }
.pl-slot-status { flex: none; display: inline-flex; align-items: center; border-radius: 999px; padding: 8px 12px; font-size: .76rem; font-weight: 750; }
.pl-slot-status.is-open { color: #145b4d; background: #e7f5f0; border: 1px solid #b7dece; }
.pl-slot-status.is-full { color: #435977; background: #eef3f8; border: 1px solid #d3dfeb; }
.pl-slot-route { display: flex; align-items: center; gap: 18px; padding: 14px 24px 17px; border-top: 1px solid #e5edf5; background: #f8fbff; }
.pl-slot-route-label { flex: none; color: #455c7a; font-size: .74rem; font-weight: 750; }
.pl-slot-route-label i { color: #376497; margin-right: 5px; }
.pl-slot-route-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.pl-slot-route-steps > i { color: #8797ad; font-size: .65rem; }
.pl-slot-route-step { display: inline-flex; align-items: center; max-width: 100%; padding: 6px 10px; border-radius: 7px; font-size: .76rem; font-weight: 750; line-height: 1.25; }
.pl-slot-route-step.is-level-1 { color: #4d478f; background: #eeecfa; border: 1px solid #dad5f3; }
.pl-slot-route-step.is-level-2 { color: #225a89; background: #e8f3fb; border: 1px solid #cce5f5; }
.pl-slot-route-step.is-level-3 { color: #176b63; background: #e7f6f1; border: 1px solid #c6e8de; }
.pl-slot-route-step.is-level-4 { color: #81572b; background: #fbf1e2; border: 1px solid #eeddbd; }
.pl-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 14px; }
.pl-detail-card { padding: 17px 19px; min-width: 0; }
.pl-detail-card small, .pl-detail-card strong, .pl-detail-card span { display: block; }
.pl-detail-card small { color: #52637a; font-size: .75rem; font-weight: 700; }
.pl-detail-card strong { font-size: 1.85rem; line-height: 1.1; color: #172a48; margin-top: 10px; letter-spacing: -.035em; }
.pl-detail-card span { color: #65768e; font-size: .7rem; margin-top: 5px; }
.pl-detail-card.is-vacancies { background: #eff6fc; border-color: #a9c9e5; }
.pl-detail-card.is-vacancies strong { color: #155a93; }
.pl-slot-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.pl-slot-panels .pl-section { min-width: 0; padding: 20px; }
.pl-slot-panels header { display: flex; align-items: flex-start; gap: 11px; }
.pl-slot-panel-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; font-size: 1rem; }
.pl-slot-panel-icon.is-manager { color: #7352a2; background: #f1ecfa; }
.pl-slot-panel-icon.is-candidates { color: #227d80; background: #e8f5f4; }
.pl-slot-panels header > div { flex: 1; min-width: 0; }
.pl-slot-panels h3 { margin: 1px 0 2px; color: #1c2e49; font-size: .94rem; }
.pl-slot-panels header p { margin: 0; color: #687990; font-size: .73rem; line-height: 1.4; }
.pl-slot-manager header button { border: 1px solid #c9d9ec; border-radius: 8px; background: #fff; padding: 7px 10px; color: #1b4a83; font: inherit; font-size: .74rem; font-weight: 750; cursor: pointer; }
.pl-slot-manager header button:hover { background: #eff6fd; }
.pl-slot-manager-value { margin: 23px 0 3px; color: #172a48; font-size: 1.13rem; font-weight: 750; }
.pl-slot-manager-value.is-empty { color: #64748b; font-weight: 600; }
.pl-slot-manager > small { color: #687990; font-size: .72rem; }
.pl-slot-manager form { margin-top: 18px; }
.pl-slot-manager form label { display: block; margin-bottom: 6px; color: #405674; font-size: .73rem; font-weight: 750; }
.pl-slot-manager form input { width: 100%; box-sizing: border-box; border: 1px solid #b9cce2; border-radius: 8px; background: #fff; padding: 10px 11px; color: #172a48; font: inherit; font-size: .84rem; }
.pl-slot-manager form input:focus { outline: 2px solid #91b8de; outline-offset: 1px; }
.pl-slot-manager-actions { display: flex; gap: 8px; margin-top: 11px; }
.pl-slot-manager-actions .pl-button { min-height: 34px; }
.pl-slot-manager .pl-inline-error { margin: 9px 0; }
.pl-slot-candidate-count { display: flex; align-items: baseline; gap: 9px; margin-top: 17px; }
.pl-slot-candidate-count strong { color: #166d72; font-size: 1.85rem; line-height: 1; letter-spacing: -.03em; }
.pl-slot-candidate-count span { color: #344d65; font-size: .78rem; font-weight: 700; }
.pl-slot-candidates > p { color: #63758c; font-size: .73rem; margin: 9px 0 0; }
.pl-slot-to-assign { color: #75551e; background: #fff8e9; border: 1px solid #efd9a8; border-radius: 8px; padding: 10px 11px; font-size: .73rem; line-height: 1.4; margin-top: 13px; }
.pl-slot-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 17px; }
.pl-slot-footer .pl-alert { margin: 0 auto 0 0; }
.pl-alert, .pl-inline-error { padding: 11px 13px; border: 1px solid #e7c8aa; border-radius: 8px; background: #fff8ee; color: #8a4d15; font-size: .76rem; }
.pl-inline-error { margin: 0 0 15px; }
.pl-request-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pl-request-grid > .pl-section > h3 { margin: 0 0 15px; color: #17243a; font-size: .94rem; }
.pl-request-grid > .pl-section > h3 span { color: #6680a3; }
.pl-request-subhead { margin: 18px 0 8px; color: #334155; font-size: .77rem; }
.pl-request-grid .pl-request-subhead:first-of-type { margin-top: 0; }
.pl-request-source-note { margin: -6px 0 14px; color: #52637a; font-size: .74rem; line-height: 1.45; }
.pl-request-card { border: 1px solid #e0e7f0; border-radius: 9px; padding: 13px; margin-top: 10px; }
.pl-request-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pl-request-card h4 { margin: 0; font-size: .81rem; color: #1c2d47; }
.pl-request-card small { display: block; margin-top: 4px; font-size: .66rem; color: #7b899c; }
.pl-request-card p { margin: 9px 0; font-size: .74rem; color: #53647b; }
.pl-request-card .pl-request-change { font-size: .82rem; color: #253a58; }
.pl-status { flex: none; border-radius: 999px; padding: 4px 8px; font-size: .64rem; font-weight: 700; }
.pl-status.is-pending { color: #8b5417; background: #fff2da; }
.pl-status.is-approved { color: #1b684b; background: #e8f7ef; }
.pl-status.is-rejected { color: #9c3f48; background: #fdecef; }
.pl-request-actions { display: flex; gap: 8px; margin-top: 13px; }
.pl-request-actions button { padding: 7px 12px; border-radius: 7px; background: #1c477e; color: white; font-size: .72rem; font-weight: 700; }
.pl-request-actions button + button { background: #fff; color: #9c3f48; border: 1px solid #e7bac1; }
.pl-empty { min-height: 100px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #708096; font-size: .82rem; }
.pl-empty i { font-size: 1.1rem; }
.pl-error { flex-direction: column; }
.pl-error button { border: 0; background: #1c477e; color: white; border-radius: 7px; padding: 7px 13px; cursor: pointer; }
.pl-dialog-backdrop { position: fixed; inset: 0; z-index: 950; background: #101e36a6; display: grid; place-items: center; padding: 16px; }
/* La pregunta de Flowmo (aprobar / rechazar), encima del dialogo. */
.pl-confirm-backdrop { z-index: 960; }
/* Falta la plaza en la solicitud: en rojo el boton que se ve. */
.pl-dialog .flowmo-select-trigger.is-invalid, .pl-dialog [data-flowmo-select-trigger].is-invalid { border-color: #dc2626 !important; background: #fef2f2 !important; }
.pl-confirm { width: min(100%, 440px); }
.pl-confirm h2 { margin: 0 0 8px; color: #142842; font-size: 1.08rem; }
.pl-confirm p { margin: 0 0 16px; color: #475569; font-size: .86rem; line-height: 1.5; }
.pl-button--danger { color: #fff; background: #b91c1c; border-color: #b91c1c; }
.pl-button--danger:hover { background: #991b1b; }
.pl-dialog { width: min(100%, 550px); max-height: min(90vh, 760px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 24px 80px #0b1a3450; padding: 22px; }
.pl-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pl-dialog header small { color: #5775a1; font-size: .7rem; font-weight: 700; }
.pl-dialog h2 { margin: 3px 0 0; font-size: 1.18rem; color: #1c2e49; }
.pl-dialog header button { border: 0; background: transparent; cursor: pointer; color: #72829a; font-size: .9rem; }
.pl-dialog > p { color: #64738a; font-size: .77rem; margin: 12px 0 18px; }
.pl-dialog form > label { display: block; margin-bottom: 13px; }
.pl-dialog label span { display: block; font-size: .71rem; color: #425874; font-weight: 700; margin-bottom: 5px; }
.pl-dialog input, .pl-dialog select, .pl-dialog textarea { width: 100%; box-sizing: border-box; border: 1px solid #cdd9e9; border-radius: 7px; padding: 9px 10px; font: inherit; font-size: .77rem; color: #1d304e; background: #fff; }
.pl-dialog textarea { resize: vertical; }
.pl-dialog input:focus, .pl-dialog select:focus, .pl-dialog textarea:focus, .pl-search:focus-within { outline: 2px solid #9dbce6; outline-offset: 1px; }
.pl-dialog-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 13px; align-items: end; }
.pl-dialog-numbers > div { border: 1px solid #dae3ef; background: #f7faff; border-radius: 8px; padding: 9px 12px; }
.pl-dialog-numbers small { display: block; font-size: .7rem; color: #6d7d94; }
.pl-dialog-numbers strong { display: block; font-size: 1.23rem; margin-top: 2px; }
.pl-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

@media (max-width: 1180px) {
  .pl-head { flex-wrap: wrap; }
  .pl-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-vacancy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-stats { grid-template-columns: repeat(2, 1fr); }
  .pl-stat-tooltip { left: auto; right: 0; width: min(344px, calc(100vw - var(--sidebar-size) - 30px)); }
  .pl-stat-tooltip::before { left: auto; right: 26px; }
  .pl-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pl-head { padding: 14px 43px 14px 15px; }
  .pl-head h1 { font-size: 1.17rem; }
  .pl-head-actions { width: 100%; flex-wrap: wrap; gap: 6px; }
  .pl-head-actions .pl-button { min-height: 34px; font-size: .7rem; padding: 0 8px; }
  .pl-close { right: 9px; top: 12px; }
  .pl-body { padding: 14px; }
  .pl-stats > div { display: block; padding: 11px; }
  .pl-stats strong { display: block; margin-top: 3px; }
  .pl-vacancy-grid, .pl-area-grid, .pl-request-grid, .pl-slot-panels { grid-template-columns: 1fr; }
  .pl-slot-hero-top { padding: 17px; flex-direction: column; gap: 10px; }
  .pl-slot-route { align-items: flex-start; flex-direction: column; gap: 9px; padding: 12px 17px 15px; }
  .pl-detail-grid { gap: 8px; }
  .pl-detail-card { padding: 13px; }
  .pl-detail-card strong { font-size: 1.5rem; }
  .pl-slot-panels .pl-section { padding: 16px; }
  .pl-slot-manager header { flex-wrap: wrap; }
  .pl-slot-manager header button { margin-left: 47px; }
  .pl-slot-footer { align-items: stretch; flex-direction: column; }
  .pl-vacancy > small { margin-top: -23px; }
  .pl-search { margin-left: 0; width: 100%; }
  .pl-search input { width: 100%; }
  .pl-slot-info dl { grid-template-columns: 1fr; }
  /* En el telefono la tabla cabe: puesto y vacantes a la vista, sin
     desplazarse de lado; la ciudad pasa debajo del puesto. */
  .pl-table { min-width: 0; table-layout: fixed; }
  .pl-table .pl-col-city, .pl-table .pl-col-dept, .pl-table .pl-col-num { display: none; }
  .pl-table th, .pl-table td { padding: 11px 10px; }
  .pl-table th:first-child, .pl-table td:first-child { overflow-wrap: anywhere; }
  .pl-table th:nth-child(2), .pl-table td:nth-child(2) { width: 76px; padding-left: 4px; padding-right: 4px; }
  .pl-table th:last-child, .pl-table td:last-child { width: 44px; padding-left: 0; padding-right: 0; text-align: center; }
  .pl-table .pl-vacancy-number { padding: 5px 8px; }
  .pl-table .pl-vacancy-label { display: none; }
  .pl-table .pl-state { box-sizing: border-box; max-width: 100%; white-space: normal; overflow-wrap: break-word; word-break: normal; }
  .pl-table td:last-child button { display: inline-grid; box-sizing: border-box; width: 44px; height: 44px; padding: 0; place-items: center; }
  .pl-only-mobile { display: inline; }
}
