.plan-changes{min-width:0;container:plan-changes/inline-size}
.plan-changes>.page-heading{margin-bottom:20px}
.plan-changes>.page-heading>div{min-width:0}
.plan-changes>.page-heading h1{overflow-wrap:anywhere}
.pc-schedule{position:relative;display:flex;align-items:center;gap:17px;min-width:0;padding:20px 23px;margin-bottom:22px;overflow:hidden;border:1px solid color-mix(in srgb,var(--accent) 20%,var(--border));border-radius:16px;background:radial-gradient(ellipse at 95% 10%,#ff8a0010,transparent 55%),linear-gradient(110deg,var(--accent-soft),var(--surface) 75%);box-shadow:var(--shadow);animation:pcReveal .35s var(--ease) both}
.pc-schedule:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--brand-gradient)}
.pc-schedule-icon{display:grid;place-items:center;flex-shrink:0;width:47px;height:47px;border:1px solid color-mix(in srgb,var(--accent) 18%,var(--border));border-radius:14px;background:var(--surface);color:var(--accent);box-shadow:0 5px 16px #7951e80c}
.pc-schedule>div:not(.pc-date){min-width:0;flex:1}
.pc-schedule small{display:block;color:var(--accent);font-size:10px;font-weight:650;letter-spacing:.8px;line-height:1.5;text-transform:uppercase;margin-bottom:4px}
.pc-schedule strong{display:block;font-size:14px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.pc-schedule p{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.pc-date{flex-shrink:0;min-width:0;padding-left:21px;border-left:1px solid var(--border);text-align:right;font-variant-numeric:tabular-nums}
.pc-date strong{font-size:19px;font-weight:650;letter-spacing:-.4px;white-space:nowrap}
.pc-date span{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:4px}
.plan-changes>.card{border-radius:16px}
.plan-changes .mini-stats{gap:22px}
.plan-changes .toolbar>.search-field{max-width:470px;min-width:0}
.plan-changes .toolbar>.search-select{min-width:160px;max-width:230px}
.plan-changes .pc-table{max-height:600px;max-height:min(64vh,650px);scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--accent) 30%,transparent) transparent}
.plan-changes .pc-table table{width:100%;min-width:980px;table-layout:fixed;white-space:normal}
.plan-changes .pc-table th{position:sticky;top:0;z-index:1;font-size:10px;font-weight:600;line-height:1.5;padding:13px 12px;white-space:normal;background:var(--surface2);box-shadow:0 1px var(--border)}
.plan-changes .pc-table td{padding:17px 12px;font-size:12px;line-height:1.5;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
.plan-changes .pc-table th:nth-child(1){width:12%}
.plan-changes .pc-table th:nth-child(2){width:14%}
.plan-changes .pc-table th:nth-child(3){width:17%}
.plan-changes .pc-table th:nth-child(4),.plan-changes .pc-table th:nth-child(5){width:16%}
.plan-changes .pc-table th:nth-child(6){width:11%}
.plan-changes .pc-table th:nth-child(7){width:10%}
.plan-changes .pc-table th:last-child{width:48px}
.plan-changes .pc-table tr[data-pc-row]{cursor:pointer;transition:background .18s,box-shadow .18s}
.plan-changes .pc-table tr[data-pc-row]:hover{background:color-mix(in srgb,var(--accent-soft) 45%,var(--surface))}
.plan-changes .pc-table tr[data-pc-row]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;background:var(--surface2)}
.plan-changes .pc-table td strong{display:block;font-weight:550;line-height:1.5}
.plan-changes .pc-table td small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.plan-changes .pc-table .row-link{display:block;max-width:100%;min-height:32px;line-height:1.5}
.plan-changes .pc-number-cell .row-link strong{color:var(--accent);font-size:13px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.plan-changes .pc-new-cell strong{color:var(--accent)}
.plan-changes .pc-created-cell,.plan-changes .pc-date-cell{font-size:11px;font-variant-numeric:tabular-nums}
.plan-changes .pc-table td:last-child .icon-btn{border-color:transparent;background:transparent;min-width:30px;min-height:34px;color:var(--muted);transition:transform .18s var(--ease),color .18s,background .18s}
.plan-changes .pc-table tr:hover td:last-child .icon-btn{transform:translateX(3px);color:var(--accent);background:var(--accent-soft)}
.pc-status{display:inline-flex;align-items:center;justify-content:center;gap:5px;max-width:100%;padding:5px 8px;border:1px solid var(--border);border-radius:7px;font-size:10px;font-weight:600;line-height:1.5;color:var(--muted);background:var(--surface2);vertical-align:middle;overflow-wrap:anywhere}
.pc-status>svg{width:13px;height:13px;flex-shrink:0}
.pc-status.is-pending{color:var(--orange);background:var(--orange-bg);border-color:color-mix(in srgb,var(--orange) 18%,var(--border))}
.pc-status.is-completed{color:var(--green);background:var(--green-bg);border-color:color-mix(in srgb,var(--green) 18%,var(--border))}
.pc-status.is-rejected{color:var(--red);background:var(--red-bg);border-color:color-mix(in srgb,var(--red) 18%,var(--border))}
.pc-empty{display:flex;flex-direction:column;align-items:center;gap:11px;padding:55px 24px;text-align:center}
.pc-empty>svg{width:33px;height:33px;color:var(--accent);margin-bottom:3px}
.pc-empty h3{font-size:19px;line-height:1.4;letter-spacing:-.3px}
.pc-empty p{max-width:420px;color:var(--muted);font-size:13px;line-height:1.8}
.pc-empty .btn{margin-top:9px;white-space:normal}
#detail:has(.pc-detail){inset:0;margin:auto;width:min(980px,calc(100vw - 32px));max-width:calc(100vw - 24px);height:fit-content;max-height:calc(100dvh - 32px);overflow-x:hidden;border-radius:20px}
#detail[open]:has(.pc-detail){animation:pcDialogIn .32s var(--ease) both}
#detail[open]:has(.pc-detail)::backdrop{animation:pcBackdropIn .24s ease both}
#detail:has(.pc-detail)>.dialog-header{padding:22px 26px;gap:12px;background:linear-gradient(105deg,var(--surface2),var(--surface));border-bottom:1px solid var(--border)}
#detail:has(.pc-detail)>.dialog-header>div{min-width:0}
#detail:has(.pc-detail)>.dialog-header h2{overflow-wrap:anywhere}
#detail:has(.pc-detail)>.dialog-content{padding:25px 26px;min-width:0}
.pc-detail{min-width:0;container:pc-detail/inline-size}
.pc-detail-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:23px}
.pc-number{display:flex;align-items:center;gap:12px;min-width:0;font-size:26px;font-weight:650;line-height:1.3;letter-spacing:-.6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.pc-number>svg{width:25px;height:25px;color:var(--accent)}
.pc-detail-heading .pc-status{font-size:12px;padding:7px 10px}
.pc-owner-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:25px;margin-bottom:24px;padding-bottom:23px;border-bottom:1px solid var(--border)}
.pc-owner-grid>div{min-width:0}
.pc-owner-grid small{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-bottom:5px}
.pc-owner-grid strong{display:block;font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.pc-owner-grid p{font-size:12px;color:var(--muted);line-height:1.7;margin-top:4px;overflow-wrap:anywhere}
.pc-detail .pc-schedule{margin-bottom:25px;padding:18px 20px;box-shadow:none}
.pc-detail .pc-schedule strong{font-size:13px}
.pc-detail .pc-schedule .pc-date strong{font-size:18px}
.pc-comparison{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
.pc-plan{position:relative;min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:15px;background:var(--surface);animation:pcReveal .35s var(--ease) both}
.pc-plan.is-new{border-color:color-mix(in srgb,var(--accent) 40%,var(--border));box-shadow:0 6px 24px #7951e80a;animation-delay:65ms}
.pc-plan.is-new:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--brand-gradient)}
.pc-plan>header{padding:21px 22px 19px;background:var(--surface2);border-bottom:1px solid var(--border);min-height:105px}
.pc-plan.is-new>header{background:linear-gradient(120deg,var(--accent-soft),var(--surface))}
.pc-plan-label{display:block;font-size:10px;font-weight:650;letter-spacing:.8px;line-height:1.5;color:var(--muted);text-transform:uppercase;margin-bottom:8px}
.pc-plan.is-new .pc-plan-label{color:var(--accent)}
.pc-plan h3{font-size:17px;font-weight:650;line-height:1.5;letter-spacing:-.25px;overflow-wrap:anywhere}
.pc-plan dl{margin:0;padding:5px 22px 8px}
.pc-plan dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--border)}
.pc-plan dl>div:last-child{border-bottom:0}
.pc-plan dt{font-size:12px;color:var(--muted);line-height:1.6}
.pc-plan dd{min-width:0;margin:0;text-align:right;font-size:13px;font-weight:600;line-height:1.6;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.pc-plan>footer{display:flex;align-items:baseline;justify-content:space-between;gap:15px;min-width:0;padding:18px 22px;border-top:1px solid var(--border);background:var(--surface2)}
.pc-plan>footer small{font-size:11px;line-height:1.5;color:var(--muted)}
.pc-plan>footer strong{font-size:22px;font-weight:650;line-height:1.3;letter-spacing:-.6px;font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}
.pc-plan.is-new>footer strong{color:var(--accent)}
.pc-transfer{position:absolute;left:50%;top:67px;z-index:1;display:grid;place-items:center;width:35px;height:35px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--accent);box-shadow:var(--shadow);transform:translateX(-50%)}
.pc-detail-note{display:flex;align-items:flex-start;gap:9px;margin-top:19px;color:var(--muted)}
.pc-detail-note>svg{flex-shrink:0;margin-top:2px;color:var(--accent)}
.pc-detail-note p{font-size:12px;line-height:1.75;overflow-wrap:anywhere}
#detail:has(.pc-detail)>.dialog-content>.pc-detail>.dialog-footer{bottom:0;margin:23px 0 0;padding:19px 0 0;flex-wrap:wrap;gap:10px}
.pc-detail>.dialog-footer .btn{min-height:42px;white-space:normal}
@keyframes pcReveal{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes pcDialogIn{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
@keyframes pcBackdropIn{from{opacity:0}to{opacity:1}}
@container plan-changes (max-width:780px){
 .plan-changes>.page-heading{align-items:flex-start;gap:12px}.plan-changes>.page-heading h1{font-size:26px}.plan-changes>.page-heading .actions .btn{padding:9px 12px;font-size:12px}
 .plan-changes .pc-schedule{flex-wrap:wrap;padding:17px;gap:13px}.plan-changes .pc-schedule>div:not(.pc-date){flex:1 1 160px}.plan-changes .pc-schedule .pc-date{margin-left:60px;border-left:0;padding:0;text-align:left}.plan-changes .pc-schedule .pc-date strong{font-size:17px}.plan-changes .pc-schedule .pc-date span{margin-top:2px}
 .plan-changes .toolbar{padding:15px;gap:9px}.plan-changes .toolbar>.search-field{flex-basis:100%;max-width:none}.plan-changes .toolbar>.search-select{flex:1;max-width:none;min-width:0}.plan-changes .toolbar>select{flex:1;max-width:none;min-width:0}.plan-changes .mini-stats{gap:14px;padding:16px}
 .plan-changes .pc-table{max-height:none;overflow:visible}.plan-changes .pc-table table{display:block;min-width:0;table-layout:auto}.plan-changes .pc-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.plan-changes .pc-table tbody{display:block;padding:0 14px}
 .plan-changes .pc-table tr[data-pc-row]{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 17px;padding:20px 2px;border-bottom:1px solid var(--border)}.plan-changes .pc-table tr[data-pc-row]:last-child{border-bottom:0}.plan-changes .pc-table tr[data-pc-row]:hover{background:transparent}.plan-changes .pc-table tr[data-pc-row]:focus-visible{outline-offset:4px;border-radius:6px}
 .plan-changes .pc-table td{display:block;padding:0;border:0;min-width:0;font-size:12px}.plan-changes .pc-table td:before{display:none}.plan-changes .pc-table .pc-number-cell{grid-column:1;grid-row:1}.plan-changes .pc-table .pc-number-cell .row-link strong{font-size:15px}.plan-changes .pc-table .pc-state-cell{grid-column:2;grid-row:1;justify-self:end;padding-top:1px}.plan-changes .pc-table .pc-client-cell{grid-column:1/-1;grid-row:2;padding-bottom:12px;border-bottom:1px solid var(--border)}
 .plan-changes .pc-table .pc-old-cell{grid-column:1;grid-row:3}.plan-changes .pc-table .pc-new-cell{grid-column:2;grid-row:3}.plan-changes .pc-table .pc-created-cell{grid-column:1;grid-row:4}.plan-changes .pc-table .pc-date-cell{grid-column:2;grid-row:4;padding-right:30px}
 .plan-changes .pc-table .pc-old-cell:before,.plan-changes .pc-table .pc-new-cell:before,.plan-changes .pc-table .pc-created-cell:before,.plan-changes .pc-table .pc-date-cell:before{display:block;margin-bottom:5px;font-size:10px;font-weight:400;line-height:1.5;color:var(--muted)}.plan-changes .pc-table .pc-old-cell:before{content:"Plan anterior"}.plan-changes .pc-table .pc-new-cell:before{content:"Nuevo plan"}.plan-changes .pc-table .pc-created-cell:before{content:"Solicitud"}.plan-changes .pc-table .pc-date-cell:before{content:"Programado"}
 .plan-changes .pc-table td:last-child{position:absolute;right:0;bottom:17px;width:28px}.plan-changes .pc-table td:last-child .icon-btn{min-width:28px;min-height:34px}.plan-changes .pc-table td small{font-size:11px;margin-top:3px}.plan-changes .table-footer{align-items:flex-start;gap:12px;padding:15px;font-size:10px;flex-wrap:wrap}.plan-changes .pc-empty{padding:38px 18px}
}
@container pc-detail (max-width:580px){
 .pc-number{font-size:23px;gap:9px}.pc-detail-heading{margin-bottom:19px;gap:12px}.pc-detail-heading .pc-status{font-size:11px}.pc-owner-grid{grid-template-columns:1fr;gap:16px;padding-bottom:19px;margin-bottom:20px}.pc-owner-grid strong{font-size:13px}
 .pc-detail .pc-schedule{flex-wrap:wrap;gap:12px;padding:16px;margin-bottom:20px}.pc-detail .pc-schedule>div:not(.pc-date){flex:1 1 130px}.pc-detail .pc-schedule .pc-date{margin-left:59px;padding:0;border:0;text-align:left}.pc-detail .pc-schedule .pc-date strong{font-size:17px}
 .pc-comparison{grid-template-columns:1fr;gap:19px}.pc-plan>header{padding:18px 19px;min-height:0}.pc-plan dl{padding:3px 19px 6px}.pc-plan dl>div{padding:11px 0}.pc-plan>footer{padding:16px 19px}.pc-plan h3{font-size:16px}.pc-plan>footer strong{font-size:21px}.pc-transfer{display:none}.pc-detail>.dialog-footer{justify-content:stretch}.pc-detail>.dialog-footer .btn{flex:1 1 120px}
}
@media(max-width:540px){#detail:has(.pc-detail){width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:16px}#detail:has(.pc-detail)>.dialog-header{padding:18px}#detail:has(.pc-detail)>.dialog-content{padding:19px 18px}.pc-schedule strong{font-size:13px}.pc-schedule-icon{width:43px;height:43px;border-radius:12px}}
@media(prefers-reduced-motion:reduce){#detail[open]:has(.pc-detail),#detail[open]:has(.pc-detail)::backdrop,.pc-schedule,.pc-plan{animation:none}.plan-changes .pc-table tr[data-pc-row],.plan-changes .pc-table td:last-child .icon-btn{transition:none}.plan-changes .pc-table tr:hover td:last-child .icon-btn{transform:none}}
