:root{color-scheme:light;--ink:#242424;--muted:#6a6c70;--accent:#bd431f;--line:#e4e3de;--paper:#fff;--bg:#f5f4f0;--dark:#202222;--soft:#fff0e7;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}a{color:var(--accent);text-decoration:none}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:white;border:1px solid transparent;border-radius:9px;padding:11px 18px;font-weight:650;cursor:pointer;min-height:44px;text-align:center}button:hover,.button:hover{filter:brightness(.94)}button:disabled{opacity:.4;cursor:default}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #dd8b35;outline-offset:3px}input,select,textarea{width:100%;min-width:0;border:1px solid #cccac4;border-radius:8px;padding:11px 12px;background:white;color:var(--ink);min-height:44px}textarea{resize:vertical}label{display:flex;flex-direction:column;gap:7px;font-size:.9rem;font-weight:600}h1{font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.18;letter-spacing:-.045em;margin:8px 0 12px}h2{font-size:1.1rem;letter-spacing:-.015em;margin:0}p{line-height:1.6;margin:0}.muted{color:var(--muted);font-weight:400}.small,small{font-size:.82rem}.eyebrow{font-size:.72rem;letter-spacing:.16em;font-weight:750;color:var(--accent)}.topbar{background:var(--dark);color:white;padding:15px max(24px,calc((100vw - 1200px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:110px}.brand{display:flex;align-items:center;gap:22px;color:white}.brand img{width:200px;height:56px;object-fit:contain}.brand img.brand-logo--fallback{width:72px;height:78px}.brand span{font-size:1.5rem;letter-spacing:-.025em;font-weight:650;border-left:1px solid #555;padding-left:22px}.user{display:flex;align-items:center;gap:18px;font-size:.9rem}.user small{display:block;color:#bfc0bd;margin-top:4px}.quiet{background:transparent;color:var(--accent);border-color:var(--line)}.topbar .quiet{color:white;border-color:#606260}.nav{background:white;border-bottom:1px solid var(--line);padding:14px max(24px,calc((100vw - 1200px)/2));display:flex;align-items:center;gap:24px}.nav>a{color:#595b5d;font-weight:600;white-space:nowrap;padding:10px 0}.nav>a.selected{color:var(--accent);box-shadow:0 3px var(--accent)}.nav>a.button{margin-left:auto;color:white;padding:11px 18px}main{max-width:1248px;margin:0 auto;padding:38px 24px 60px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:26px;margin-bottom:24px;box-shadow:0 3px 10px #22222203}.stack{display:flex;flex-direction:column;gap:18px}.stack>.card{margin-bottom:0}.stack>button,.stack>form>button{align-self:flex-start}.login{max-width:450px;margin:44px auto;padding:36px}.login h1{font-size:2.3rem}.login form{margin-top:12px}.login button{width:100%}.login .eyebrow{margin-bottom:8px}.notice{padding:14px 18px;background:#eaf3e9;color:#2e6337;border:1px solid #cbdcca;border-radius:9px;margin-bottom:24px}.notice.error{background:#fff0eb;color:#963224;border-color:#eec1b5}.secondary{background:white;border-color:#cfcec8;color:var(--ink)}.danger{background:#fff0ed;color:#a53222;border-color:#eac0b7}.month-controls{display:flex;align-items:center;gap:16px}.month-controls h2{min-width:160px;text-align:center}.icon-button{border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);width:44px;height:44px;display:grid;place-items:center;font-size:1.7rem}.filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin-bottom:25px}.filters label{min-width:170px}.filters .check{min-width:0;margin-bottom:10px}.check{flex-direction:row;align-items:center;gap:10px}.check input{width:19px;min-height:19px;height:19px;margin:0;accent-color:var(--accent);flex-shrink:0}.calendar{padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));overflow:hidden}.weekday{padding:14px;text-align:center;background:#fcfbf8;color:var(--muted);font-size:.8rem;border-bottom:1px solid var(--line);font-weight:600}.day{border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-height:135px;padding:9px;min-width:0}.day:nth-child(7n){border-right:none}.day.outside{background:#faf9f6}.day.outside .day-number{color:#959691}.day-number{width:30px;height:30px;display:grid;place-items:center;font-weight:600;font-size:.86rem;color:#46484a;margin-bottom:6px}.today .day-number{background:var(--accent);color:white;border-radius:50%}.calendar-event{display:flex;flex-direction:column;background:var(--soft);border-left:3px solid #e17f37;border-radius:5px;padding:7px 8px;margin-bottom:5px;gap:3px;color:#7c361c;font-size:.78rem;overflow-wrap:anywhere}.calendar-event small{font-size:.68rem}.calendar-event span{font-size:.68rem;color:#925e43}.calendar-event.cancelled{background:#f2f1ee;color:#787974;border-color:#9c9d98;text-decoration:line-through}.empty{text-align:center;padding:50px 24px}.empty p{margin:12px 0 22px}.badge{display:inline-flex;align-items:center;font-size:.75rem;border-radius:20px;padding:7px 12px;color:#386148;background:#edf4eb;white-space:nowrap}.badge.cancelled{background:#fcece7;color:#9b4031}.event-list{display:flex;flex-direction:column;gap:14px}.list-item{display:flex;align-items:center;gap:22px;margin:0;color:var(--ink)}.list-item h2{margin-bottom:4px}.list-item p,.list-item small{color:var(--muted);font-size:.85rem}.list-item .badge{margin-left:auto}.date-block{text-align:center;min-width:60px;border-right:1px solid var(--line);padding-right:22px}.date-block strong{display:block;font-size:1.85rem}.date-block span{font-size:.75rem;color:var(--muted)}.editor{max-width:920px}.form-grid,.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.detail-grid{grid-template-columns:1.65fr 1fr;align-items:start}.session-row{display:grid;grid-template-columns:1.5fr 1fr 1fr auto;gap:16px;align-items:end}.resource-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.resource{padding:15px;background:#faf9f6;border:1px solid var(--line);border-radius:9px;line-height:1.5}.resource:has(input:checked){border-color:#da976e;background:var(--soft)}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-weight:600;margin-bottom:14px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px;align-items:center}.actions form{margin:0}.tags{display:flex;gap:8px;flex-wrap:wrap}.tag{font-size:.84rem;padding:9px 13px;border-radius:7px;background:#f3f1eb;color:#4f514b}.date-line{display:flex;justify-content:space-between;gap:12px;background:#faf8f3;border-radius:8px;padding:14px;font-size:.9rem}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}dl{margin:0}dt{font-size:.75rem;color:var(--muted);margin-bottom:4px}dd{margin:0 0 17px;overflow-wrap:anywhere}dd:last-child{margin-bottom:0}.history strong,.history small{display:block}.history strong{font-size:.86rem}.history small{color:var(--muted)}.narrow{max-width:560px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:.86rem}th{color:var(--muted);font-weight:600}th,td{border-bottom:1px solid var(--line);padding:13px 8px}td small{display:block;margin-top:4px;color:var(--muted)}footer{color:var(--muted);font-size:.78rem;text-align:center;padding:25px;border-top:1px solid var(--line)}.mobile-hint{display:none}@media(max-width:800px){.topbar{padding:12px 18px}.nav{padding:12px 18px;gap:18px;overflow:auto}.nav>a{font-size:.84rem}.heading{align-items:flex-start;flex-direction:column}.month-controls{width:100%;justify-content:space-between}.detail-grid{grid-template-columns:1fr}.calendar{min-width:740px}.calendar.card{margin-bottom:8px}main:has(.calendar){overflow-x:auto}.mobile-hint{display:block;margin-bottom:24px}.filters{gap:12px}.card{padding:22px}.brand img{width:160px;height:45px}.brand img.brand-logo--fallback{width:56px;height:62px}.brand span{font-size:1.25rem;padding-left:16px}.brand{gap:16px}.user>span{max-width:130px;font-size:.8rem}.user small{font-size:.68rem}.user{gap:8px}main{padding:26px 18px 40px}.list-item{gap:16px}.list-item .badge{align-self:flex-start}.form-grid{grid-template-columns:1fr}.session-row{grid-template-columns:1fr 1fr}.session-row label:first-child{grid-column:1/-1}.session-row button{grid-column:1/-1}.resource-grid{grid-template-columns:1fr}.date-line{flex-direction:column}.login{margin:22px auto;padding:28px}.nav>a.button{padding:10px 14px}.list-item p{overflow-wrap:anywhere}}@media(max-width:450px){.brand{gap:12px}.brand img{width:136px;height:40px}.brand span{font-size:1rem;padding-left:12px}.user>span{display:none}.list-item{flex-wrap:wrap}.list-item .badge{margin-left:0}.list-item>div:nth-child(2){flex:1}.topbar{min-height:90px}}
@media(max-width:800px){.nav{flex-wrap:wrap;overflow:visible;gap:8px 16px}.nav>a.button{width:100%;margin-left:0}.nav>a{font-size:.82rem}}
.staging-notice{display:flex;flex-wrap:wrap;gap:4px 14px;background:#fff5dd;border-color:#e7cf90;color:#6f5012}.staging-notice span{font-size:.88rem}


/* Identidad corporativa PradaDigital — primera fase, sin modificar la lógica de eventos. */
:root {
  --accent:#078DDB;
  --soft:#eaf5fd;
  --bg:#f0f3f6;
  --line:#dfe5eb;
}
body { background-color:var(--bg); }
a { transition: color .25s ease; }
button,.button { background-color:#078DDB; border-radius:10px; transition:background-color .3s ease,border-color .3s ease,color .3s ease,box-shadow .3s ease; }
button:hover,.button:hover { background-color:#fff; color:#078DDB; border-color:#078DDB; filter:none; }
button:focus-visible,.button:focus-visible { outline:3px solid #078DDB; outline-offset:3px; }
a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline-color:#078DDB}
.topbar { background:#222; min-height:82px; }
.brand img { object-fit:contain; }
.nav>a.selected { color:#078DDB; box-shadow:0 3px #078DDB; }
.eyebrow { color:#078DDB; }
.resource:has(input:checked) { border-color:#078DDB; background:#eaf5fd; }
.icon-button,.secondary,.quiet,.danger { background:#fff; color:#263747; border-color:#dce3e9; }
.icon-button:hover,.secondary:hover,.quiet:hover { border-color:#078DDB;color:#078DDB;background:#eef7fd; }
.topbar .quiet { background:transparent;color:#fff;border-color:#73777a; }
.topbar .quiet:hover { background:#fff;color:#222;border-color:#fff; }
footer { color:#687888; font-size:12px; }


/* APP EVENTOS · Pantalla de acceso integrada en PradaDigital */
body:has(.login.card) {
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:#f0f3f6 url("ondas-login.svg") center center/cover no-repeat;
}
body:has(.login.card) main { flex:1 0 auto; width:100%; }

.login.card { max-width:490px; padding:32px; margin:32px auto 55px; background:#fff; }
.login.card .eyebrow { letter-spacing:.16em; }
.login.card h1 {font-size:clamp(1.8rem,3vw,2.4rem)}
.login.card form button { width:auto; min-width:145px; max-width:100%; align-self:center; padding:9px 26px; min-height:39px; border-radius:10px; }
.login.card form button:hover { background:#fff; border-color:#078DDB; color:#078DDB; box-shadow:0 0 0 2px rgba(7,141,219,.12); }
@media(max-width:550px){body:has(.login.card){background-size:auto 100%}.login.card{margin:24px 16px 40px;padding:24px}}


/* Integración corporativa: geometría y contenido tomados de web-corporativa/clientes.html V5. */
html,body{min-height:100%}
body{display:flex;flex-direction:column;min-height:100vh}
body>main{flex:1 0 auto;width:100%;max-width:none;padding:24px max(24px,calc((100% - 1248px)/2)) 56px}
.pd-header{position:relative;z-index:20;background:#21282d;color:white;min-height:82px}
.pd-header-inner{width:min(1500px,100%);margin:auto;min-height:82px;padding:8px 24px;display:flex;align-items:center;gap:clamp(18px,3vw,44px)}
.pd-brand{flex:none;display:flex;align-items:center}
.pd-brand img{display:block;width:170px;max-height:62px;object-fit:contain}
.pd-corporate-nav{display:flex;flex:1;align-items:center;justify-content:center;gap:clamp(15px,2.25vw,34px)}
.pd-corporate-nav a{color:white;font-size:14px;font-weight:600;white-space:nowrap}
.pd-corporate-nav a:hover,.pd-corporate-nav a:focus-visible{color:#078DDB}
.pd-shortcuts{display:flex;align-items:center;gap:clamp(10px,1.6vw,23px);border-left:1px solid #68737b;padding-left:clamp(12px,1.8vw,25px)}
.pd-shortcuts>a{position:relative;display:flex;align-items:center;justify-content:center;width:27px;height:31px}
.pd-shortcuts>a img,.pd-phone img{width:23px;height:23px;display:block;object-fit:contain}
.pd-shortcuts>a:hover img{opacity:.7}
.pd-phone{position:relative;display:flex;align-items:center;gap:10px;font-size:14px;white-space:nowrap}
.pd-phone>span{cursor:help}
.pd-phone-tip{display:none;position:absolute;z-index:80;right:0;top:calc(100% + 14px);background:#30383e;border:1px solid #68737b;padding:18px 22px;min-width:238px;box-shadow:0 12px 24px #0003;flex-direction:column;gap:9px;font-size:12px;line-height:1.5}
.pd-phone:hover .pd-phone-tip,.pd-phone:focus-within .pd-phone-tip{display:flex}
.pd-header .user{flex-shrink:0;gap:10px}
.pd-header .user>span{font-size:12px}
.pd-header .user button{min-height:33px;padding:6px 10px;font-size:12px}
body:has(.pd-login-stage) main{padding:0;max-width:none}
.pd-login-stage{position:relative;isolation:isolate;overflow:hidden;padding:50px 24px 48px;background:radial-gradient(ellipse at 50% 30%,#fff 0%,#f0f3f6 82%);min-height:650px}
.pd-login-stage:before{content:"";position:absolute;inset:0;z-index:-1;background:url('ondas-login.svg') center/cover no-repeat;opacity:.7;pointer-events:none}
.pd-login-grid{max-width:1500px;margin:0 auto;display:grid;grid-template-columns:minmax(200px,1fr) minmax(350px,520px) minmax(200px,1fr);gap:clamp(20px,3vw,54px);align-items:center}
.pd-side{min-width:0;color:#697989}
.pd-side-left{padding-left:clamp(18px,3vw,50px)}
.pd-side-left h1{font:italic 300 clamp(27px,2.35vw,42px)/1.25 Arial,sans-serif;color:#748290;margin:0 0 16px;letter-spacing:normal}
.pd-side p{font:400 12px/2 Arial,sans-serif;letter-spacing:.24em;margin:0;color:#65788c}
.pd-side-right{justify-self:center}
.pd-login-grid .login.card{width:100%;max-width:520px;min-height:455px;margin:0;padding:35px 42px 30px;border:0;border-radius:14px;background:#fff;box-shadow:0 14px 36px #21282d1a;text-align:center}
.pd-login-logo{width:220px;max-width:90%;height:75px;object-fit:contain;display:block;margin:0 auto 4px}
.pd-login-heading{display:block;font:700 20px/1.4 Arial,sans-serif;letter-spacing:.07em;color:#283847;margin-bottom:12px}
.pd-login-grid .login.card>p{font-size:12px}
.pd-login-grid .login.card form{margin:22px 0 15px;gap:17px;text-align:left}
.pd-login-grid .login.card label{font-size:13px;color:#293847}
.pd-login-grid .login.card input{font-size:14px}
.pd-login-grid .login.card form button{margin:4px auto 0}
.pd-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:1450px;margin:58px auto 0;gap:25px}
.pd-features>div{display:flex;flex-direction:column;gap:3px;min-width:0;color:#263747;font:400 14px Arial,sans-serif}
.pd-features small{font-size:12px;color:#677789}
@media(max-width:1200px){.pd-header-inner{gap:14px}.pd-brand img{width:140px}.pd-corporate-nav{gap:14px}.pd-corporate-nav a{font-size:13px}.pd-header .user>span{display:none}}
@media(max-width:900px){.pd-header-inner{flex-wrap:wrap;justify-content:center;padding:12px 18px;gap:13px}.pd-corporate-nav{flex:1 1 100%;order:3;justify-content:center}.pd-shortcuts{margin-left:auto}.pd-login-grid{display:flex;flex-direction:column;gap:16px}.pd-side-left{padding-left:0;text-align:center}.pd-side-right{text-align:center}.pd-features{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:30px}.pd-login-stage{padding:24px 18px 42px}}
@media(max-width:560px){.pd-brand img{width:135px}.pd-shortcuts{gap:10px;padding-left:10px}.pd-shortcuts>a{width:20px}.pd-shortcuts>a img,.pd-phone img{width:19px;height:19px}.pd-phone>span{font-size:12px}.pd-phone{gap:5px}.pd-header .user{width:100%;justify-content:center}.pd-header .user>span{display:none}.pd-corporate-nav a{font-size:12px}.pd-login-grid .login.card{padding:26px 23px;min-height:0}.pd-login-stage{padding:20px 16px 30px}.pd-features{gap:18px}.pd-features>div{font-size:12px}}


/* Iconografía EXACTA de Bootstrap Icons usada en el Área de Clientes PradaDigital. */
@font-face{font-family:"bootstrap-icons";src:url("bootstrap-icons.woff2") format("woff2");font-style:normal;font-weight:normal;font-display:block}
.pd-features .bi:before{display:inline-block;font-family:"bootstrap-icons"!important;font-style:normal;font-weight:normal!important;line-height:1;-webkit-font-smoothing:antialiased}
.pd-features .bi-file-earmark-text:before{content:"\f38b"}
.pd-features .bi-people:before{content:"\f4d0"}
.pd-features .bi-cloud:before{content:"\f2c1"}
.pd-features .bi-shield-check:before{content:"\f52f"}
.pd-features>div{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:10px;align-items:center}
.pd-features .bi{grid-row:1/span 2;font-size:28px;line-height:1;color:#2e4050}
.pd-features strong,.pd-features small{grid-column:2}


/* APP EVENTOS interior: misma identidad aprobada, sin cambios funcionales. */
body:not(:has(.pd-login-stage)){background:#f0f3f6}
body:not(:has(.pd-login-stage))>main{background:#f0f3f6}
.nav{background:#fff;border-bottom:1px solid #dfe5eb;box-shadow:0 2px 8px rgba(24,46,62,.04);padding-top:7px;padding-bottom:7px}
.nav>a{color:#435467;transition:color .25s ease,box-shadow .25s ease}
.nav>a:hover{color:#078DDB}
.nav>a.selected{color:#078DDB;box-shadow:inset 0 -3px #078DDB}
.nav>a.button{background:#078DDB;color:#fff;border-radius:10px;padding:10px 18px;box-shadow:none}
.nav>a.button:hover{background:#fff;color:#078DDB;border-color:#078DDB}
body:not(:has(.pd-login-stage)) .heading{margin:16px 0 28px}
body:not(:has(.pd-login-stage)) .heading h1{color:#263747;letter-spacing:-.025em}
body:not(:has(.pd-login-stage)) .heading .muted{color:#697989}
body:not(:has(.pd-login-stage)) .card{border:1px solid #dfe5eb;border-radius:12px;box-shadow:0 8px 22px rgba(31,49,67,.055);background:#fff}
body:not(:has(.pd-login-stage)) .card h2{color:#263747}
.filters{background:#fff;border:1px solid #dfe5eb;border-radius:12px;padding:20px;margin-bottom:24px;box-shadow:0 5px 15px rgba(31,49,67,.035)}
.filters input,.filters select,.editor input,.editor textarea,.editor select{border-color:#cbd6de;border-radius:8px}
.filters input:focus,.filters select:focus,.editor input:focus,.editor textarea:focus,.editor select:focus{outline:2px solid #078DDB;outline-offset:1px}
.calendar{border:1px solid #dfe5eb}
.calendar .weekday{background:#edf4f8;color:#3c5366;border-bottom-color:#dfe5eb}
.calendar .day{border-color:#dfe5eb}
.calendar .day.outside{background:#f7f9fb}
.calendar .day.outside .day-number{color:#9aa8b3}
.calendar .today .day-number{background:#078DDB;color:#fff}
.calendar .calendar-event:not(.cancelled){background:#eaf5fd;border-color:#078DDB;color:#174f73}
.calendar .calendar-event:not(.cancelled) span{color:#55748b}
.calendar .day-number:hover{color:#078DDB}
.calendar .today .day-number:hover{color:#fff}
.icon-button{color:#263747;border-color:#dfe5eb}
.badge:not(.cancelled){color:#24577c;background:#eaf5fd}
.list-item:hover{border-color:#078DDB!important;box-shadow:0 12px 26px rgba(7,141,219,.1)!important}
.date-block strong{color:#263747}
.resource{background:#f7f9fb;border-color:#dfe5eb}
.resource:has(input:checked){background:#eaf5fd;border-color:#078DDB}
.resource input[type=checkbox]{accent-color:#078DDB}
.tag{background:#eef4f8;color:#3a596e}
.date-line{background:#f5f8fa}
.actions button,.editor button{border-radius:10px}
.table-scroll{max-width:100%}
table th{color:#42566a}
table td,table th{border-color:#e2e9ef}
@media(max-width:800px){.nav{padding:12px 18px;gap:8px 16px}.filters{padding:16px}.filters label{min-width:min(100%,170px)}}


/* Revisión de fidelidad: SVG definitivo, ondas continuas y agenda móvil sin recortes. */
.pd-login-grid .pd-login-logo{width:min(360px,95%);height:115px;object-fit:contain;margin:0 auto 3px}
.pd-login-stage:before{
  background-image:url("ondas-login.svg");
  background-repeat:no-repeat;
  background-position:center center;
  background-size:100% 100%;
  opacity:.85;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 15%,#000 78%,transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0%,#000 15%,#000 78%,transparent 100%);
}
.pd-mobile-agenda{display:none}
@media(max-width:600px){
 .calendar.card{display:none}
 .pd-mobile-agenda{display:block;background:#fff;border:1px solid #dfe5eb;border-radius:12px;padding:18px;margin-bottom:16px;width:100%;min-width:0}
 .pd-mobile-agenda h2{margin:0 0 14px;color:#263747;font-size:19px}
 .pd-mobile-agenda-item{display:grid;grid-template-columns:58px minmax(0,1fr) 13px;gap:12px;align-items:center;padding:14px 2px;color:#263747;border-top:1px solid #e2e9ef}
 .pd-mobile-agenda-item:hover{color:#078DDB}
 .pd-mobile-date{font-weight:700;font-size:15px;color:#078DDB}
 .pd-mobile-date small{display:block;font-weight:400;font-size:12px}
 .pd-mobile-event{display:block;min-width:0}
 .pd-mobile-event strong{display:block;font-size:14px;overflow-wrap:anywhere}
 .pd-mobile-event small{display:block;font-size:12px;color:#697989;overflow-wrap:anywhere;margin-top:5px}
 main:has(.calendar){overflow-x:visible}
 .month-controls{width:100%}
 .month-controls h2{min-width:0}
 .pd-login-grid .pd-login-logo{width:min(310px,98%);height:100px}
 .pd-login-stage:before{background-size:auto 100%;background-position:50% 50%}
}

/* Atenuación de la franja inferior del SVG para evitar cortes visibles. */
.pd-login-stage:before{-webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 14%,#000 60%,transparent 76%);mask-image:linear-gradient(to bottom,transparent 0%,#000 14%,#000 60%,transparent 76%)}

/* Mantener una sola capa SVG: desactivar fondo heredado del body. */
body:has(.pd-login-stage){background:#f0f3f6!important;background-image:none!important}

/* La salida de sesión vive en Mi cuenta, no en otra fila del header. */
.pd-account-logout{margin-top:8px;padding-top:18px;border-top:1px solid #dfe5eb}
.pd-account-logout form{display:flex;justify-content:flex-start}
.pd-account-logout button{min-width:145px}


/* Ajuste visual de revisión 2026-10-12: ondas sin extremos cortados y logotipo proporcional.
   Se mantiene el SVG corporativo original sin modificar su contenido. */
@media(min-width:601px){
 .pd-login-grid .pd-login-logo{width:min(278px,90%);height:88px;margin:0 auto 5px}
}
.pd-login-stage:before{
 background-size:125% 100%;
 background-position:center center;
 -webkit-mask-image:radial-gradient(ellipse 78% 78% at 50% 48%,#000 42%,transparent 90%);
 mask-image:radial-gradient(ellipse 78% 78% at 50% 48%,#000 42%,transparent 90%);
}
@media(max-width:600px){
 .pd-login-stage:before{background-size:auto 100%}
}

/* Transición horizontal: los trazos llegan al borde ópticamente desvanecidos, sin líneas cortadas. */
.pd-login-stage:before{
 -webkit-mask-image:linear-gradient(to right,transparent 0%,transparent 7%,rgba(0,0,0,.48) 20%,#000 32%,#000 68%,rgba(0,0,0,.48) 80%,transparent 93%,transparent 100%);
 mask-image:linear-gradient(to right,transparent 0%,transparent 7%,rgba(0,0,0,.48) 20%,#000 32%,#000 68%,rgba(0,0,0,.48) 80%,transparent 93%,transparent 100%);
}


/* SISTEMA VISUAL PRADADIGITAL · REFERENCIA ILLUSTRATOR 12-10-2026
   Todas las aplicaciones y la web corporativa deben utilizar el mismo token naranja. */
:root{--pd-orange:#e44121;--accent:#e44121;--soft:#fff2ee;--pd-bg:#e9e9e9;--pd-ink:#323642;--pd-head:#1b2227}
html,body{font-family:"Segoe UI",system-ui,-apple-system,Arial,sans-serif}
.pd-header{background:var(--pd-head);border-top:2px solid var(--pd-orange);border-bottom:2px solid var(--pd-orange)}
.pd-corporate-nav a:hover,.pd-corporate-nav a:focus-visible{color:var(--pd-orange)}
body:has(.pd-login-stage){background:var(--pd-bg)!important}
body:has(.pd-login-stage)>main{padding:0;background:var(--pd-bg)}
.pd-login-stage{
  background:#e9e9e9;
  min-height:0;
  padding:57px 24px 46px;
  isolation:isolate;
}
.pd-login-stage:before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:url("ondas-login.svg");
  background-repeat:no-repeat;
  background-position:center 43%;
  background-size:100% auto;
  opacity:1;
  -webkit-mask-image:none;
  mask-image:none;
}
.pd-login-grid{display:block;max-width:600px;margin:auto}
.pd-login-grid .login.card{
  width:min(600px,100%);max-width:600px;
  min-height:0;margin:0 auto;
  padding:29px 49px 27px;
  background:#fff;
  border:1px solid var(--pd-orange)!important;
  border-radius:27px;
  box-shadow:0 18px 45px rgba(28,35,40,.16);
  text-align:center;
}
.pd-login-grid .pd-login-logo{display:block;width:220px;max-width:85%;height:93px;object-fit:contain;margin:0 auto 4px}
.pd-login-heading{display:block;color:var(--pd-orange);font:700 24px/1.3 "Segoe UI",Arial,sans-serif;letter-spacing:0;margin:0 0 13px}
.pd-login-grid .pd-login-hours{font:400 13px/1.5 "Segoe UI",Arial,sans-serif;color:var(--pd-ink);margin:0 0 32px}
.pd-login-grid .login.card form{margin:0 0 29px;gap:20px}
.pd-login-grid .login.card form label{font-size:18px;font-weight:350;text-align:left;color:var(--pd-ink);gap:5px}
.pd-login-grid .login.card form input{
  min-height:48px;border:1px solid #ff8b77;background:#fff;border-radius:6px;font-size:16px;padding:10px 13px;
}
.pd-login-grid .login.card>p:last-child{font:400 13px/1.4 "Segoe UI",Arial,sans-serif;margin:6px 0 0;color:var(--pd-ink)}
/* Un único contrato para TODOS los botones, incluyendo secundario y en menús. */
button,.button,.nav>a.button,.secondary,.quiet,.icon-button{
 background:transparent;color:var(--pd-orange);border:1px solid var(--pd-orange);
 border-radius:7px;
 transition:color .24s ease,background-color .24s ease,border-color .24s ease;
 box-shadow:none;filter:none;
}
button:hover,.button:hover,.nav>a.button:hover,.secondary:hover,.quiet:hover,.icon-button:hover{
 background:var(--pd-orange);color:#fff;border-color:var(--pd-orange);filter:none;
}
button:focus-visible,.button:focus-visible,.nav>a.button:focus-visible{outline:2px solid var(--pd-orange);outline-offset:3px}
.pd-header button{color:var(--pd-orange)}
.login.card button.pd-outlined-button{display:inline-flex;gap:12px;min-width:181px;max-width:100%;height:50px;padding:8px 22px;margin:16px auto 0;font-size:20px;font-weight:350}
.pd-outlined-button svg{flex-shrink:0}
.nav>a.selected,.eyebrow{color:var(--pd-orange)}
.calendar .today .day-number{background:var(--pd-orange)}
.calendar .calendar-event:not(.cancelled){background:#fff2ee;border-color:var(--pd-orange);color:#80301f}
.calendar .calendar-event:not(.cancelled) span{color:#844b42}
.resource:has(input:checked){border-color:var(--pd-orange);background:#fff2ee}
.resource input[type=checkbox],.check input{accent-color:var(--pd-orange)}
.list-item:hover{border-color:var(--pd-orange)!important}
.nav>a.selected{box-shadow:inset 0 -3px var(--pd-orange)}
.nav>a{color:#435467}
.nav>a:hover{color:var(--pd-orange)}
.pd-features{margin-top:73px;max-width:1320px;gap:28px}
.pd-features>div{font:400 16px "Segoe UI",Arial,sans-serif;color:var(--pd-ink)}
.pd-features small{font-size:13px;color:var(--pd-ink)}
@media(max-width:700px){
 .pd-login-stage{padding:26px 16px 35px}
 .pd-login-stage:before{background-size:auto 85%;background-position:center center}
 .pd-login-grid{width:100%}
 .pd-login-grid .login.card{border-radius:18px;padding:25px 23px}
 .pd-login-grid .pd-login-logo{width:190px;height:82px}
 .pd-login-heading{font-size:22px}
 .pd-login-grid .pd-login-hours{font-size:12px;margin-bottom:22px}
 .pd-login-grid .login.card form label{font-size:15px}
 .pd-login-grid .login.card form input{min-height:45px}
 .pd-features{margin-top:32px;gap:20px}
}


/* Componentes globales de botones de la nueva guía visual. */
.login.card button.pd-outlined-button::before{display:none}
button:disabled{opacity:.45;cursor:not-allowed}
.pd-legal{flex:1 0 auto;width:min(980px,100%);margin:0 auto;padding:45px 28px 85px;color:#323642}
.pd-legal h1{font-size:34px;font-weight:700;color:#1b2227;margin:0 0 20px}
.pd-legal h2{font-size:20px;color:#e44121;margin:0 0 10px}
.pd-legal section{background:#fff;border:1px solid #e0e0e0;border-radius:12px;padding:23px 26px;margin:19px 0;box-shadow:0 6px 22px #00000007}
.pd-legal section p{margin:9px 0;line-height:1.7;overflow-wrap:anywhere}
.pd-legal a{color:#c63016;text-decoration:underline}
.pd-legal .pd-legal-draft{padding:14px 19px;background:#fff2ee;border-left:3px solid #e44121;color:#7d392d;margin:0 0 25px}
.pd-legal code{font-size:.92em;background:#f2f2f2;border-radius:4px;padding:2px 5px}
@media(max-width:700px){.pd-legal{padding:30px 16px 65px}.pd-legal h1{font-size:26px}.pd-legal section{padding:20px 18px}.pd-legal h2{font-size:18px}}


/* Referencia móvil: conservar las ondas, pero no atravesar los textos inferiores. */
@media(max-width:700px){
 .pd-login-stage:before{
   -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 50%,rgba(0,0,0,.45) 61%,transparent 76%);
   mask-image:linear-gradient(to bottom,#000 0%,#000 50%,rgba(0,0,0,.45) 61%,transparent 76%);
 }
}


/* Regla definitiva de interacción PradaDigital · sin azul heredado.
   Mantener al final: anula reglas de mayor especificidad del CSS anterior. */
:where(input,textarea,select):focus,
:where(input,textarea,select):focus-visible,
.login.card form input:focus,
.login.card form input:focus-visible,
.filters input:focus,.filters select:focus,
.editor input:focus,.editor textarea:focus,.editor select:focus {
  border-color:#E44121;
  outline:2px solid #E44121;
  outline-offset:1px;
  box-shadow:0 0 0 3px rgba(228,65,33,.12);
}
.login.card form button.pd-outlined-button,
.login.card form button.pd-outlined-button:not(:hover) {
  background:transparent;
  color:#E44121;
  border:1px solid #E44121;
  box-shadow:none;
  filter:none;
}
.login.card form button.pd-outlined-button:hover,
.login.card form button.pd-outlined-button:active {
  background:#E44121;
  color:#FFFFFF;
  border-color:#E44121;
  box-shadow:none;
  filter:none;
}
.login.card form button.pd-outlined-button:focus-visible {
  outline:2px solid #E44121;
  outline-offset:3px;
}


/* Tooltip compatibility. Header icons are defined only in corporate-header.css. */
.pd-shortcut-tip{
 position:absolute;z-index:100;top:calc(100% + 12px);right:0;
 display:block;width:max-content;max-width:min(240px,90vw);
 padding:9px 13px;pointer-events:none;
 background:#1B2227;color:#E44121;border:1px solid #E44121;
 border-radius:5px;font:500 12px/1.4 "Segoe UI",Arial,sans-serif;
 box-shadow:0 8px 18px #0003;
 opacity:0;visibility:hidden;transform:translateY(-4px);
 transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}
.pd-shortcut-tip::before{content:"";position:absolute;right:9px;top:-5px;width:8px;height:8px;background:#1B2227;border-left:1px solid #E44121;border-top:1px solid #E44121;transform:rotate(45deg)}
.pd-shortcuts .pd-shortcut:hover .pd-shortcut-tip,
.pd-shortcuts .pd-shortcut:focus-visible .pd-shortcut-tip{
 opacity:1;visibility:visible;transform:translateY(0);
}
.pd-phone-tip{background:#1B2227;color:#E44121;border-color:#E44121}
.pd-phone-tip strong{color:#E44121}
.pd-phone>span[tabindex]:hover,.pd-phone>span[tabindex]:focus-visible{color:#E44121}


/* Etiquetas definitivas: texto blanco y posición visible sobre la página. */
.pd-header,.pd-header-inner,.pd-shortcuts{overflow:visible!important}
.pd-shortcuts .pd-shortcut{overflow:visible!important}
.pd-shortcuts .pd-shortcut .pd-shortcut-tip{
 color:#FFFFFF!important;
 background:#1B2227!important;
 border:1px solid #E44121!important;
 z-index:9999;
}
.pd-shortcuts .pd-shortcut:hover .pd-shortcut-tip,
.pd-shortcuts .pd-shortcut:focus-visible .pd-shortcut-tip{
 display:block;
 opacity:1!important;
 visibility:visible!important;
 transform:translateY(0)!important;
}
.pd-phone-tip,.pd-phone-tip strong,.pd-phone-tip span{color:#FFFFFF!important}

/* Horarios: escritura libre y lista explícita cada 30 minutos. */
.pd-clock-field{position:relative;display:flex;flex-direction:column}
.session-row .pd-time-input{padding-right:48px}
.pd-clock-field .pd-time-picker{
 position:absolute;right:5px;bottom:5px;width:38px;min-width:38px;height:34px;min-height:34px;
 padding:0 0 0 2px;border:1px solid #E44121;border-radius:5px;
 background:#fff;color:#E44121;font-size:12px;cursor:pointer;
}
.pd-clock-field .pd-time-picker:focus-visible{outline:2px solid #E44121;outline-offset:1px}


/* Ajuste proporcional del selector de hora: HH:MM y flecha compacta. */
.session-row{grid-template-columns:minmax(210px,1.5fr) minmax(122px,.7fr) minmax(122px,.7fr) auto}
.session-row label:has(.pd-time-input){max-width:180px;width:100%}
.session-row .pd-time-input{padding-right:39px;font-variant-numeric:tabular-nums}
.pd-clock-field .pd-time-picker{
 right:5px;bottom:5px;width:31px;min-width:31px;height:34px;min-height:34px;
 font-size:12px;padding:0;color:#E44121;
}
@media(max-width:800px){
 .session-row{grid-template-columns:minmax(0,1fr) minmax(115px,.65fr) minmax(115px,.65fr) auto;gap:10px}
}
@media(max-width:560px){
 .session-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .session-row label:first-child{grid-column:1/-1}
 .session-row label:has(.pd-time-input){max-width:none}
 .session-row button{grid-column:1/-1}
}


/* Administración modular: búsqueda y paginación del directorio. */
.pd-admin-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.pd-admin-search label{flex:1 1 270px}
.pd-admin-search button,.pd-admin-search .button{min-height:44px}
.pd-pagination{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;font-size:14px}
.pd-pagination a{color:#E44121;font-weight:600}
.pd-pagination a:hover{text-decoration:underline}
@media(max-width:560px){.pd-admin-search button,.pd-admin-search .button{flex:1 1 auto}}

/* Usuarios: matriz de permisos flexible sin modificar la identidad corporativa. */
.pd-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pd-permission-grid label{min-width:0}
.pd-user-permissions{scroll-margin-top:16px}
.pd-user-permissions>summary{cursor:pointer;font-size:15px;font-weight:650;color:#323642;line-height:1.4}
.pd-user-permissions[open]>summary{margin-bottom:14px}
.pd-user-permissions>.stack{gap:14px}
.pd-user-permissions .pd-permission-grid{gap:8px 12px}
.pd-user-permissions .pd-permission-grid .resource{padding:9px 10px}
.pd-permission-grid .resource{margin:0}
@media(max-width:700px){.pd-permission-grid{grid-template-columns:1fr}}


/* Alineación vertical de botones con los desplegables de permisos. */
.pd-user-permissions .pd-admin-search {
  align-items: flex-end;
}
.pd-user-permissions .pd-admin-search > label { flex:1 1 0; max-width:420px; }
.pd-user-permissions .pd-admin-search > button {
  align-self: flex-end;
  height: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  margin: 0;
}
.pd-user-permissions .pd-admin-search > label > select {
  height: 44px;
  min-height: 44px;
}

.pd-password-wrap{position:relative;display:block;width:100%}
.pd-password-wrap input{padding-right:48px}
.pd-password-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:38px;height:36px;min-height:36px;padding:7px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:#E44121;box-shadow:none}
.pd-password-toggle:hover{background:#fff2ee;color:#E44121}
.pd-password-toggle::before{display:none!important}

/* Formularios con búsqueda: alinear campo y acciones por la base, no por la etiqueta. */
.pd-admin-search{align-items:flex-end}
.pd-admin-search > button,
.pd-admin-search > .button{
 align-self:flex-end;
 height:44px;
 min-height:44px;
 margin:0;
 flex-shrink:0;
}
.pd-admin-search > label > input,
.pd-admin-search > label > select{
 height:44px;
 min-height:44px;
}

/* Foco definitivo PradaDigital: borde naranja fino, mismo grosor que el gris. */
html body input:not([type="checkbox"]):focus,
html body input:not([type="checkbox"]):focus-visible,
html body select:focus,
html body select:focus-visible,
html body textarea:focus,
html body textarea:focus-visible {
 border:1px solid #E44121!important;
 outline:none!important;
 box-shadow:none!important;
}

/* Solución a la colisión con .stack>form>button: todos los controles sobre una misma base. */
.stack > form.pd-admin-search > button,
.stack > form.pd-admin-search > a.button {
  align-self:flex-end;
  margin:0;
  height:44px;
  min-height:44px;
}


/* Base unificada de controles PradaDigital. No alterar geometría corporativa. */
:root{--pd-control-height:44px;--pd-control-border:#cbd6de}
html body input:not([type="checkbox"]):not([type="radio"]),
html body select,html body textarea{
  border-width:1px;
  transition:border-color .2s ease,background-color .2s ease;
}
html body input:not([type="checkbox"]):focus,
html body input:not([type="checkbox"]):focus-visible,
html body select:focus,html body select:focus-visible,
html body textarea:focus,html body textarea:focus-visible{
  border:1px solid var(--pd-orange,#E44121)!important;
  outline:none!important;
  box-shadow:none!important;
}
html body button:focus-visible,
html body a:focus-visible,
html body input[type="checkbox"]:focus-visible{
  outline:2px solid var(--pd-orange,#E44121)!important;
  outline-offset:2px;
  box-shadow:none!important;
}
/* Formulario de búsqueda: mismos bordes inferiores y dimensiones de acciones. */
form.pd-admin-search{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
form.pd-admin-search > label{flex:1 1 270px;min-width:0}
form.pd-admin-search > label > input,
form.pd-admin-search > label > select{height:var(--pd-control-height);min-height:var(--pd-control-height)}
form.pd-admin-search > button,
form.pd-admin-search > a.button,
.stack > form.pd-admin-search > button,
.stack > form.pd-admin-search > a.button{
  align-self:flex-end;flex:0 0 auto;
  height:var(--pd-control-height);min-height:var(--pd-control-height);
  margin:0;
}
@media(max-width:560px){
 form.pd-admin-search > label{flex:1 1 100%}
 form.pd-admin-search > button,form.pd-admin-search > a.button{flex:1 1 auto}
}

/* Ficha económica: resumen sobrio, adaptable a móvil. */
.pd-finance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pd-finance-summary>div{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid #e2e2e2;border-radius:9px;background:#fafafa}
.pd-finance-summary small{color:#5f6570;font-size:13px}
.pd-finance-summary strong{color:#323642;font-size:clamp(19px,2.4vw,27px);font-variant-numeric:tabular-nums}
@media(max-width:700px){.pd-finance-summary{grid-template-columns:1fr}}

/* Identificación permanente del usuario que ha iniciado sesión. */
.nav .pd-current-user{margin-left:auto;display:flex;align-items:center;gap:9px;min-width:0;color:#323642;padding:3px 0;box-shadow:none}
.nav .pd-current-user:hover{color:#E44121}
.pd-current-avatar{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border-radius:50%;background:#E44121;color:#fff;font-weight:700;font-size:17px}
.pd-current-identity{display:flex;flex-direction:column;gap:1px;min-width:0}
.pd-current-identity strong{font-size:12px;max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pd-current-identity small{font-size:10px;color:#697989;max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:800px){.nav .pd-current-user{margin-left:auto}.pd-current-identity strong,.pd-current-identity small{max-width:115px}}

/* Ojo universal para todos los campos de contraseña, incluido el login. */
.pd-password-wrap{display:block;position:relative;width:100%}
.pd-password-wrap input{width:100%;padding-right:48px!important}
/* Evita duplicar el ojo nativo de Edge cuando ya existe el botón de la aplicación. */
.pd-password-wrap input::-ms-reveal{display:none}
html body .pd-password-wrap > button.pd-password-toggle,
html body .login.card form .pd-password-wrap > button.pd-password-toggle{
 position:absolute;top:50%;right:5px;transform:translateY(-50%);
 display:grid;place-items:center;width:38px;min-width:38px;max-width:38px;
 height:36px;min-height:36px;margin:0;padding:7px;
 border:0;border-radius:6px;background:transparent;color:#E44121;
 box-shadow:none;filter:none;
}
html body .pd-password-wrap > button.pd-password-toggle:hover{background:#f1f3f4;color:#E44121}
html body .pd-password-wrap > button.pd-password-toggle::before{display:none!important}

.pd-finance-breakdown{display:flex;gap:12px 24px;flex-wrap:wrap;padding:14px 0;border-top:1px solid #e4e3de}
.pd-finance-breakdown span{font-size:14px;color:#4c5260}
.pd-finance-breakdown strong{color:#323642;font-variant-numeric:tabular-nums}

/* Inventario compacto: campos cortos juntos, proporciones según su contenido. */
.pd-inventory .stack{gap:12px}
.pd-inventory .card{padding:18px;margin-bottom:16px}
.pd-inventory label{gap:4px;min-width:0}
.pd-inventory input:not([type=hidden]),.pd-inventory select{height:36px;min-height:36px;padding:6px 9px;line-height:22px}
.pd-inventory textarea{min-height:60px;padding:7px 9px;line-height:20px}
.pd-inventory button{min-height:36px;padding:6px 12px}
.pd-inventory .actions{margin-top:0;gap:10px}
.pd-inventory-fields{display:grid;grid-template-columns:8rem 8rem minmax(0,2fr) minmax(0,1fr);gap:10px 12px;align-items:end}
.pd-field-category{grid-column:1 / 3}
.pd-field-icon{grid-column:3 / 5;display:flex;gap:10px;align-items:end;min-width:0}
.pd-field-icon label{flex:1;min-width:0}
.pd-field-features{grid-column:1 / -1}
.pd-icon-preview{width:60px;height:44px;flex:none;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:#fff8f5}
.pd-icon-preview svg{width:52px;height:40px}
.pd-inventory .filters{padding:12px;gap:10px;margin-bottom:10px}
.pd-inventory .filters label{min-width:0;flex:1 1 180px}
.pd-inventory .filters button{align-self:end}
.pd-inventory-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:12px}
.pd-inventory .pd-equipment-card{margin:0;gap:8px}
.pd-equipment-card>svg{width:70px;height:56px}
.pd-equipment-card h3{margin:0;font-size:1rem}
.pd-equipment-card p{font-size:.86rem;line-height:1.4;overflow-wrap:anywhere}
.pd-inventory .pd-short-quantity{max-width:14rem}
.pd-inventory tbody input[name=quantity]{width:10rem;max-width:100%}
.pd-inventory tbody form:has(input[name=quantity]){display:flex;flex-wrap:wrap;align-items:center;gap:8px}
@media(max-width:900px){
 .pd-inventory-fields{grid-template-columns:7rem 7rem minmax(0,1fr)}
 .pd-field-brand{grid-column:1 / 3}
 .pd-field-category{grid-column:3}
 .pd-field-icon{grid-column:1 / -1}
}
@media(max-width:560px){
 .pd-inventory .card{padding:14px;margin-bottom:12px}
 .pd-inventory-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px}
 .pd-field-name,.pd-field-features{grid-column:1 / -1}
 .pd-field-brand{grid-column:1}
 .pd-field-category{grid-column:2}
 .pd-field-icon{grid-column:1 / -1}
 .pd-inventory input:not([type=hidden]),.pd-inventory select{height:40px;min-height:40px;font-size:16px;padding:7px 8px}
 .pd-inventory button{min-height:40px}
 .pd-inventory .filters label{flex:1 1 110px}
 .pd-inventory .pd-equipment-card{margin:0}
}

/* Navigation applicative, référence Illustrator 17/10 : blanc, 50 px, filet 1 px. */
nav.pd-app-nav{min-height:50px;padding-top:5px;padding-bottom:5px;gap:14px;flex-wrap:wrap;overflow:visible;border-bottom:1px solid #E44121;box-shadow:none}
nav.pd-app-nav>a.pd-app-link{display:inline-flex;align-items:center;gap:4px;padding:5px 0;color:#1b2227;font-size:13px;font-weight:500;line-height:20px;box-shadow:none}
nav.pd-app-nav>a.pd-app-link img{display:block;width:22px;height:22px;object-fit:contain;flex:none}
nav.pd-app-nav>a.pd-app-link.selected,nav.pd-app-nav>a.pd-app-link:hover{color:#E44121;box-shadow:none}
nav.pd-app-nav>a.pd-app-settings{margin-left:auto}
@media(min-width:561px){nav.pd-app-nav>a.pd-app-settings+a.pd-current-user{margin-left:8px}}
nav.pd-app-nav>a.pd-current-user{margin-left:auto;gap:9px;padding:0;color:#1b2227}
.pd-app-nav .pd-current-identity{text-align:right}
.pd-app-nav .pd-current-identity strong{font-size:13px;font-weight:500;max-width:125px}
.pd-app-nav .pd-current-identity small{font-size:13px;color:#E44121;max-width:125px}
.pd-app-avatar{width:34px;height:36px;object-fit:contain;flex:none}
body:not(:has(.pd-login-stage)) .heading.pd-calendar-heading{margin:0 0 16px;min-height:36px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
body:not(:has(.pd-login-stage)) .pd-calendar-heading h1{display:flex;align-items:center;gap:12px;margin:0;font-size:23px;line-height:1.2;letter-spacing:0;text-transform:uppercase;color:#E44121}
.pd-calendar-heading h1 img{width:30px;height:30px;flex:none}
.pd-calendar-heading>.button{min-height:36px;padding:6px 12px;font-size:13px}
body:has(.pd-calendar-heading)>main{padding-top:16px}
.pd-calendar-filters{padding:16px 20px;margin-bottom:20px;gap:14px;align-items:flex-end}
.pd-calendar-filters .check{margin-bottom:12px}
.calendar .calendar-event{display:flex;flex-direction:row;align-items:center;gap:7px;padding:6px 8px;min-height:30px;line-height:18px;white-space:nowrap;overflow:hidden}
.calendar .calendar-event small{font-size:10px;line-height:18px;flex:none}
.calendar .calendar-event strong{font-size:12px;line-height:18px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1100px){nav.pd-app-nav{gap:7px 12px}nav.pd-app-nav>a.pd-app-link{font-size:12px}}
@media(max-width:560px){
 nav.pd-app-nav{padding:7px 16px;gap:6px 12px}
 nav.pd-app-nav>a.pd-app-settings{margin-left:0}
 nav.pd-app-nav>a.pd-current-user{margin-left:auto}
 nav.pd-app-nav>a.pd-app-link img{width:20px;height:20px}
 body:not(:has(.pd-login-stage)) .heading.pd-calendar-heading{flex-wrap:wrap;margin-bottom:12px;gap:10px}
 body:not(:has(.pd-login-stage)) .pd-calendar-heading h1{font-size:19px;gap:8px}
 .pd-calendar-heading h1 img{width:25px;height:25px}
 .pd-calendar-heading>.button{font-size:12px;padding:6px 9px}
 .pd-calendar-filters{padding:12px;gap:10px;margin-bottom:14px}
 .pd-calendar-filters label{min-width:0;flex:1 1 130px}
 .pd-calendar-filters .check{flex:1 1 auto;margin:0;align-self:center}
}


/* Preserve the full company SVG, including its four corner marks. */
.pd-app-avatar{width:40px;height:36px;object-fit:contain;border:0;border-radius:0;padding:0;background:transparent;clip-path:none}
.pd-company-icon-form{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}
.pd-company-icon-form label{min-width:160px}
.pd-current-user:focus-visible{outline:2px solid #E44121;outline-offset:3px}


/* Shared compact record layout: clients, users and every company-logo upload. */
.pd-logo-control{display:flex;align-items:center;gap:8px;min-width:0}
.pd-logo-control input[type=file]{flex:1;min-width:0;width:0}
.pd-logo-control [hidden],.pd-company-preview[hidden]{display:none!important}
.pd-logo-field{min-width:0}
.pd-form-actions{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.pd-form-actions>.pd-logo-field{flex:1 1 200px}
.pd-form-actions>button{flex:none;margin:0;align-self:flex-end}
.pd-company-icon-form>.pd-logo-field{flex:1 1 180px;min-width:0}
.pd-company-icon-form{align-items:flex-end;margin-top:0}
main table th,main table td{vertical-align:middle}
main table .pd-entity-link{display:inline-flex;align-items:center;gap:8px}
main table .pd-entity-link .pd-app-avatar{display:block;flex:none}
main table .pd-entity-link strong{display:inline;line-height:1.3}
.form-grid.pd-record-fields{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 16px}
.pd-record-fields>label,.pd-record-fields>.pd-company-preview{grid-column:span 3}
.pd-record-fields:has([name=postal_code])>label:has([name=address]){grid-column:1/-1}
.pd-record-fields>label:has([name=postal_code]){grid-column:span 1}
.pd-record-fields>label:has([name=province]){grid-column:span 2}
.pd-record-fields label,.pd-logo-field{gap:5px}
.pd-record-fields input:not([type=checkbox]):not([type=hidden]),.pd-record-fields select,.pd-logo-control input[type=file]{height:36px;min-height:36px;padding:6px 9px}
.pd-form-actions>button,.pd-company-icon-form>button{height:36px;min-height:36px;padding:6px 14px}
form.stack:has(.pd-record-fields){gap:14px}
body:not(:has(.pd-login-stage)) main>.heading{margin-bottom:16px;min-height:36px}
body:not(:has(.pd-login-stage)) main>.heading .eyebrow,body:not(:has(.pd-login-stage)) main>.heading p.muted{display:none}
body:not(:has(.pd-login-stage)) main>.heading h1{margin:0;font-size:23px;line-height:1.2}
@media(max-width:600px){
 .form-grid.pd-record-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
 .pd-record-fields>label,.pd-record-fields>.pd-company-preview{grid-column:1/-1}
 .pd-record-fields:has([name=postal_code])>label:has([name=name]){order:1}
 .pd-record-fields:has([name=postal_code])>label:has([name=fiscal_name]){order:2}
 .pd-record-fields:has([name=postal_code])>label:has([name=address]){order:3}
 .pd-record-fields:has([name=postal_code])>label:has([name=postal_code]){order:4;grid-column:span 1}
 .pd-record-fields:has([name=postal_code])>label:has([name=phone]){order:5;grid-column:span 1}
 .pd-record-fields:has([name=postal_code])>label:has([name=province]){order:6;grid-column:1/-1}
 .pd-record-fields input:not([type=checkbox]):not([type=hidden]),.pd-record-fields select,.pd-logo-control input[type=file]{height:40px;min-height:40px;font-size:16px}
 .pd-form-actions>button,.pd-company-icon-form>button{height:40px;min-height:40px}
 .pd-form-actions>.pd-logo-field{flex-basis:180px}
}


/* Common compact workspace headings and toolbars. */
body:not(:has(.pd-login-stage)) main{padding-top:16px}
body:not(:has(.pd-login-stage)) .heading.pd-page-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;min-height:36px;margin:0 0 16px}
.pd-page-heading>div:first-child{min-width:0;flex:1 1 220px}
body:not(:has(.pd-login-stage)) .heading.pd-page-heading h1{display:flex;align-items:center;gap:10px;margin:0;color:#E44121;font-size:21px;font-weight:700;line-height:1.25;letter-spacing:0;text-transform:uppercase;overflow-wrap:anywhere}
body:not(:has(.pd-login-stage)) .heading.pd-page-heading h1 img{width:26px;height:26px;object-fit:contain;flex:none}
.pd-page-heading .pd-heading-context{margin:4px 0 0 36px;font-size:13px;line-height:1.4;color:#555;overflow-wrap:anywhere}
.pd-page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pd-page-actions .button{min-height:36px;padding:6px 12px;font-size:13px;white-space:nowrap}
.pd-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pd-section-heading h2{margin:0}
.pd-section-heading a{font-size:13px;white-space:nowrap}
.pd-row-details{min-width:145px}
.pd-row-details summary{cursor:pointer;color:#E44121;font-size:13px;padding:6px 0}
.pd-row-details[open]{max-width:480px}
.pd-row-details[open] summary{margin-bottom:10px}
.pd-row-details .pd-role-form,.pd-row-details .pd-company-icon-form{margin:8px 0}
body:not(:has(.pd-login-stage)) form.pd-admin-search,body:not(:has(.pd-login-stage)) form.filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px 12px;margin:0}
body:not(:has(.pd-login-stage)) form.pd-admin-search label,body:not(:has(.pd-login-stage)) form.filters label{margin:0;min-width:0}
@media(max-width:560px){
 body:not(:has(.pd-login-stage)) .heading.pd-page-heading{margin-bottom:12px;gap:8px}
 .pd-page-heading>div:first-child{flex-basis:180px}
 .pd-page-actions .button{min-height:40px}
 .pd-section-heading{align-items:flex-start}
}
body:not(:has(.pd-login-stage)) form.pd-admin-search,
body:not(:has(.pd-login-stage)) form.filters{--pd-control-height:36px}
body:not(:has(.pd-login-stage)) form.pd-admin-search>button,
body:not(:has(.pd-login-stage)) form.pd-admin-search>a.button,
body:not(:has(.pd-login-stage)) form.filters>button{font-size:13px;padding:6px 12px;height:var(--pd-control-height);min-height:var(--pd-control-height)}
@media(max-width:560px){
 body:not(:has(.pd-login-stage)) form.pd-admin-search,
 body:not(:has(.pd-login-stage)) form.filters{--pd-control-height:40px}
}


/* Shared alignment contract for every horizontal filter/action row. */
body:not(:has(.pd-login-stage)) :is(form.filters,form.pd-admin-search,form.pd-control-row,.pd-filter-actions){
 --pd-control-height:36px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px;
}
body:not(:has(.pd-login-stage)) :is(form.filters,form.pd-admin-search,form.pd-control-row,.pd-filter-actions)>label{
 margin:0;min-width:0;gap:6px;line-height:1.35;align-self:flex-end;
}
body:not(:has(.pd-login-stage)) :is(form.filters,form.pd-admin-search,form.pd-control-row,.pd-filter-actions)>label:not(.check)>:is(input,select),
body:not(:has(.pd-login-stage)) :is(form.filters,form.pd-admin-search,form.pd-control-row,.pd-filter-actions)>:is(button,a.button){
 height:var(--pd-control-height);min-height:var(--pd-control-height);margin:0;align-self:flex-end;padding:6px 12px;font-size:13px;line-height:1.35;
}
body:not(:has(.pd-login-stage)) :is(form.filters,form.pd-admin-search,form.pd-control-row,.pd-filter-actions)>label.check{
 display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;
 min-height:var(--pd-control-height);height:var(--pd-control-height);margin:0;padding:0;flex:0 0 auto;white-space:nowrap;
}
body:not(:has(.pd-login-stage)) :is(form.filters,form.pd-admin-search,form.pd-control-row,.pd-filter-actions)>label.check>input{
 width:18px;height:18px;min-height:18px;flex:0 0 18px;padding:0;margin:0;
}
body:not(:has(.pd-login-stage)) form.filters{margin-bottom:16px}
body:not(:has(.pd-login-stage)) form.pd-billing-filters {
 display:grid;
 grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr) minmax(0,1.25fr) minmax(0,1.3fr) minmax(0,1fr) auto;
}
.pd-billing-filters :is(input,select){width:100%;min-width:0}
.pd-billing-title{position:relative;min-width:0}
.pd-billing-title>label{display:flex;flex-direction:column;gap:6px;line-height:1.35}
body:not(:has(.pd-login-stage)) form.pd-billing-filters .pd-billing-title input{
 height:var(--pd-control-height);min-height:var(--pd-control-height);margin:0;
 padding:6px 36px 6px 12px;font-size:13px;line-height:1.35;
}
.pd-billing-title input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
.pd-billing-title .pd-clear-title{
 position:absolute;inset-inline-end:1px;bottom:1px;width:32px;height:calc(var(--pd-control-height) - 2px);
 display:grid;place-items:center;text-decoration:none;color:#E44121;font:20px/1 system-ui;border-radius:3px;
}
.pd-billing-title .pd-clear-title:is(:hover,:focus-visible){background:#fff0e9;outline:1px solid #E44121}
.pd-billing-title .pd-clear-title[hidden]{display:none}
@media(max-width:1000px){
 body:not(:has(.pd-login-stage)) form.pd-billing-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pd-billing-filters>button{justify-self:start}
}
@media(max-width:360px){
 body:not(:has(.pd-login-stage)) form.pd-billing-filters{grid-template-columns:minmax(0,1fr)}
}
body:not(:has(.pd-login-stage)) form.pd-calendar-filters>label:not(.check){flex:0 1 210px}
.calendar [data-add-url]{cursor:pointer}
.calendar [data-add-url]:hover{background:#fff8f5}
.calendar [data-add-url]:focus-within{box-shadow:inset 0 0 0 1px #E44121}
.calendar .calendar-event[draggable="true"]{cursor:grab}
.calendar .calendar-event.pd-dragging{opacity:.45;cursor:grabbing}
.calendar .day.pd-drop-target{background:#fff0e9;box-shadow:inset 0 0 0 2px #E44121}
.calendar[aria-busy="true"]{opacity:.7;pointer-events:none}
.pd-reschedule summary{color:#E44121;cursor:pointer;font-weight:600;font-size:13px}
.pd-reschedule[open] summary{margin-bottom:12px}
.pd-reschedule p{margin-top:10px}
@media(max-width:560px){
 body:not(:has(.pd-login-stage)) :is(form.filters,form.pd-admin-search,form.pd-control-row,.pd-filter-actions){--pd-control-height:40px}
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters>label:not(.check){flex:1 1 130px}
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters>label.check{flex:1 1 auto}
 .pd-control-row>label:not(.check){flex:1 1 140px}
}

body:not(:has(.pd-login-stage)) .pd-filter-actions{flex-wrap:nowrap;max-width:100%;align-self:flex-end}
.pd-reschedule form.pd-control-row>label:has(select){min-width:210px}
@media(max-width:560px){
 .pd-reschedule form.pd-control-row>label:has(select){flex:1 1 100%;min-width:0}
 .pd-reschedule form.pd-control-row>label:has(input[type="date"]){flex:1 1 130px}
}


/* Visible edit entry, with native links that also work without JavaScript. */
.pd-client-entry{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px}
.pd-client-entry .pd-entity-link{min-width:0}
.pd-client-edit{display:inline-flex;align-items:center;min-height:32px;padding:2px 0;font-size:13px;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
#client-detail{scroll-margin-top:16px}

main table tr.pd-client-saved>td{background:#fff3ed}
main table tr.pd-client-saved>td:first-child{box-shadow:inset 3px 0 #E44121}

.pd-client-spaces{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:16px;scroll-margin-top:16px}
.pd-client-spaces form{margin:0}
.pd-client-spaces .pd-control-row>label{flex:1 1 260px}
.pd-client-spaces .pd-space-row>label{flex:1 1 220px}
.pd-client-spaces .pd-space-row button{min-width:86px}
.pd-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pd-client-spaces .pd-control-row>label.pd-space-color{flex:0 0 44px;min-width:44px}
.pd-client-spaces .pd-control-row>label.pd-space-color>input[type=color]{width:44px;padding:3px;cursor:pointer}
.pd-space-field{display:grid;gap:10px;min-width:0}
.pd-space-field [hidden]{display:none!important}
.pd-space-choice{display:flex;align-items:center;gap:10px;min-width:0}
.pd-space-choice select{flex:1;min-width:0;appearance:auto;padding-right:28px}
.pd-space-preview{display:flex;align-items:center;justify-content:center;flex:0 0 24px}
.pd-space-preview .pd-space-dot{width:24px;height:24px}
.pd-space-dot{flex:0 0 16px;vertical-align:middle}
.pd-space-tag{display:inline-flex;align-items:center;gap:5px;max-width:100%;vertical-align:middle;font-weight:500;color:#3e454b}
.pd-space-tag>span{min-width:0;overflow-wrap:anywhere}
.calendar-event .pd-space-tag{font-size:10px;line-height:1.25}
.calendar-event .pd-space-tag>span{font-size:inherit;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pd-mobile-event>.pd-space-tag{font-size:12px;line-height:1.3;margin-top:3px}
@media(max-width:560px){
 .pd-client-spaces .pd-control-row>label{flex:1 1 100%}
 .pd-client-spaces .pd-space-row{padding:10px 0;border-bottom:1px solid var(--line)}
}




/* Densidad compartida: listados por filas, detalles plegables y temporadas. */
.editor .pd-implicit-save[hidden]{display:none}
.pd-event-schedule .pd-all-day{justify-self:start}
.pd-event-schedule:not(:has(.pd-all-day input:checked)) .pd-last-date,
.pd-event-schedule:has(.pd-all-day input:checked) .pd-clock-field{display:none}
@media(min-width:561px){
 .pd-event-schedule:has(.pd-all-day input:checked) .session-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
}
.pd-weekly-builder>summary,.pd-schedule-list>summary,.pd-inventory-templates>summary{cursor:pointer;font-weight:600;min-height:36px;padding:7px 0;font-size:14px}
summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.pd-repeat-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1.3fr)) repeat(2,minmax(0,1fr));gap:10px 12px;padding-top:8px;align-items:end}
.pd-repeat-fields label{gap:4px;min-width:0}
.pd-repeat-fields .pd-clock-field input.pd-time-input{padding-right:39px}
.pd-repeat-fields .pd-time-picker{height:28px;min-height:28px;bottom:4px}
.pd-repeat-fields input:not([type=checkbox]){height:36px;min-height:36px;padding:6px 8px}
.pd-repeat-weekdays{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px 14px}
.pd-repeat-weekdays legend{font-size:13px;margin-bottom:4px}
.pd-repeat-weekdays .check{min-height:36px;font-weight:400;font-size:13px;gap:6px}
.pd-repeat-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.pd-repeat-actions small{color:var(--muted);flex:1 1 220px;font-size:12px}
.pd-schedule-list>#sessions{gap:10px;padding:8px 0 10px}
.pd-schedule-list>.date-line{padding:8px 10px;margin-top:5px}
.pd-inventory-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px}
.pd-inventory-toolbar h2{font-size:15px;margin:0}
.pd-inventory-toolbar h2 small{color:var(--muted);font-weight:400}
.pd-inventory .pd-view-switch{display:inline-flex;gap:0;flex:none}
.pd-inventory .pd-view-switch button{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:0;min-height:36px;padding:5px 10px;font-size:13px}
.pd-inventory .pd-view-switch button::before{display:none}
.pd-inventory .pd-view-switch button:first-child{border-radius:6px 0 0 6px}
.pd-inventory .pd-view-switch button:last-child{border-radius:0 6px 6px 0;margin-left:-1px}
.pd-inventory .pd-view-switch button[aria-pressed=true]{background:#fff1eb;color:#b83418;border-color:#E44121;z-index:1}
.pd-inventory .pd-inventory-catalogue{padding:14px;gap:8px}
.pd-inventory .pd-inventory-catalogue .filters{padding:0;margin:0 0 4px;border:0;background:transparent}
.pd-inventory-columns,.pd-inventory[data-inventory-layout=rows] .pd-equipment-card{display:grid;grid-template-columns:28px minmax(0,2.2fr) minmax(0,1fr) minmax(0,1fr) minmax(65px,.65fr) 66px;gap:8px 12px;align-items:center}
.pd-inventory-columns{padding:5px 8px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}
.pd-inventory[data-inventory-layout=rows] .pd-inventory-cards{display:block}
.pd-inventory .pd-equipment-card{padding:8px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;min-width:0;box-shadow:none}
.pd-inventory .pd-equipment-card:last-child{border-bottom:0}
.pd-inventory .pd-equipment-card>svg{width:28px;height:28px}
.pd-equipment-name,.pd-equipment-category,.pd-equipment-brand,.pd-equipment-quantity{min-width:0;overflow-wrap:anywhere;font-size:13px;line-height:1.35}
.pd-equipment-name h3{font-size:14px;line-height:1.3;margin:0;font-weight:600}
.pd-equipment-name h3 a{color:var(--ink)}
.pd-equipment-name h3 a:hover{color:var(--accent);text-decoration:underline}
.pd-equipment-name small{font-size:11px;color:var(--muted)}
.pd-equipment-quantity{font-weight:600}
.pd-equipment-details{min-width:0;font-size:13px}
.pd-equipment-details>summary{cursor:pointer;min-height:36px;line-height:22px;padding:7px 0;font-size:12px;color:var(--accent);white-space:nowrap}
.pd-inventory[data-inventory-layout=rows] .pd-equipment-details[open]{grid-column:2/-1}
.pd-equipment-extra{padding:2px 0 8px;display:grid;gap:8px}
.pd-equipment-extra>p{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.pd-equipment-mobile-meta{display:none}
.pd-equipment-actions{display:flex;align-items:end;flex-wrap:wrap;gap:8px 14px;margin:0}
.pd-equipment-actions form{margin:0}
.pd-equipment-actions>a{display:flex;align-items:center;min-height:36px}
.pd-inventory[data-inventory-layout=cards] .pd-inventory-columns{display:none}
.pd-inventory[data-inventory-layout=cards] .pd-inventory-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:10px}
.pd-inventory[data-inventory-layout=cards] .pd-equipment-card{display:grid;gap:5px;padding:12px;border:1px solid var(--line);border-radius:8px;align-content:start}
.pd-inventory[data-inventory-layout=cards] .pd-equipment-card>svg{width:60px;height:48px}
.pd-inventory[data-inventory-layout=cards] .pd-equipment-quantity:before{content:'Cantidad: ';font-weight:400}
.pd-inventory-templates{padding-block:8px!important}
.pd-template-forms{display:flex;flex-wrap:wrap;gap:12px 24px;padding:8px 0}
.pd-template-forms>form{display:flex;align-items:end;flex-wrap:wrap;gap:8px;flex:1 1 350px}
.pd-template-forms label{flex:1 1 170px}
.pd-template-list>details{border-top:1px solid var(--line);padding:8px 0}
.pd-template-list summary{cursor:pointer;min-height:36px;padding:7px 0;font-size:13px}
.pd-assigned-inventory td{padding:8px;overflow-wrap:anywhere}
.pd-assigned-inventory td svg{width:28px;height:28px}
@media(max-width:800px){
 .pd-inventory-columns,.pd-inventory[data-inventory-layout=rows] .pd-equipment-card{grid-template-columns:24px minmax(0,1fr) minmax(45px,.25fr) 58px;gap:6px 8px}
 .pd-inventory-columns>span:nth-child(3),.pd-inventory-columns>span:nth-child(4),.pd-inventory[data-inventory-layout=rows] .pd-equipment-category,.pd-inventory[data-inventory-layout=rows] .pd-equipment-brand{display:none}
 .pd-equipment-mobile-meta{display:block}
 .pd-inventory[data-inventory-layout=rows] .pd-equipment-card>svg{width:24px;height:24px}
 .pd-repeat-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
 .pd-inventory .pd-inventory-catalogue{padding:10px;gap:6px}
 .pd-inventory-columns{display:none}
 .pd-inventory .pd-equipment-card{padding:6px 0}
 .pd-equipment-name h3{font-size:13px}
 .pd-equipment-quantity{font-size:12px}
 .pd-equipment-details>summary,.pd-weekly-builder>summary,.pd-schedule-list>summary,.pd-inventory-templates>summary{min-height:40px}
 .pd-inventory .pd-view-switch button{min-height:40px}
 .pd-repeat-fields input:not([type=checkbox]){height:40px;min-height:40px}
 .pd-repeat-weekdays .check{min-height:40px}
 .pd-repeat-weekdays{gap:0 12px}
 .pd-assigned-inventory table,.pd-assigned-inventory tbody{display:block}
 .pd-assigned-inventory thead{display:none}
 .pd-assigned-inventory tr{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;border-bottom:1px solid var(--line);padding:6px 0}
 .pd-assigned-inventory td{padding:4px;border:0}
 .pd-assigned-inventory td:nth-child(3){grid-column:1/-1;grid-row:2}
 .pd-inventory .pd-assigned-inventory td button{font-size:12px;padding-inline:8px}
}

@media(max-width:560px){
 body:not(:has(.pd-login-stage)) .pd-client-spaces form.pd-space-row>button{padding-inline:8px;font-size:12px;gap:5px;min-width:0}
}



/* Calendario: fondo del cliente y barra del espacio sin ocupar el título. */
.calendar .weekday{background:#E44121;color:#fff;font-weight:700}
.calendar .calendar-event.pd-calendar-color,.pd-mobile-agenda-item.pd-calendar-color{
 background:var(--pd-client-background,#fff2ee);color:var(--pd-event-text,#000);
 text-shadow:var(--pd-event-text-shadow,none);
 border-left:7px solid var(--pd-event-space,#68717d);
}
.calendar .calendar-event.pd-calendar-color strong{color:inherit;font-weight:700}
.calendar .calendar-event.pd-calendar-color small{color:inherit;font-weight:400}
.pd-form-actions>.pd-client-color{flex:0 0 44px;gap:5px;min-width:0}
.pd-client-color input[type=color]{width:44px;height:36px;min-height:36px;padding:3px;cursor:pointer}
.pd-form-actions:has(.pd-client-color)>button{font-size:13px;padding-inline:12px;white-space:nowrap}
@media(max-width:600px){
 .pd-mobile-agenda-item.pd-calendar-color{border-top:0;border-radius:5px;margin-top:7px;padding:8px;gap:8px}
 .pd-mobile-agenda-item.pd-calendar-color .pd-mobile-date,.pd-mobile-agenda-item.pd-calendar-color .pd-mobile-event small{color:inherit}
 .pd-mobile-agenda-item.pd-calendar-color .pd-mobile-date small{color:inherit;font-weight:400}
 .pd-mobile-agenda-item.pd-calendar-color .pd-mobile-event strong{color:inherit;font-weight:700}
 .pd-mobile-agenda-item.pd-calendar-color.cancelled .pd-mobile-event strong{text-decoration:line-through}
 .pd-mobile-agenda-item.pd-calendar-color .pd-mobile-event small{margin-top:2px}
}
@media(max-width:600px){
 .pd-client-color input[type=color]{height:40px;min-height:40px}
 .pd-form-actions:has(.pd-client-color)>button{padding-inline:8px;gap:6px}
 .pd-form-actions:has(.pd-client-color)>.pd-logo-field{flex-basis:100%}
}

/* Selectores nativos compartidos: misma elección de mes y año en cualquier perfil. */
.pd-month-filter{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:8px;flex:0 1 230px;min-width:0;max-width:100%}
.pd-month-filter>label{min-width:0;margin:0;gap:6px;line-height:1.35}
.pd-month-filter select{height:var(--pd-control-height);min-height:var(--pd-control-height);padding:6px 8px;font-size:13px;line-height:1.35;appearance:auto}
/* One compact row, with each label beside its selector on desktop and tablet. */
body:not(:has(.pd-login-stage)) form.pd-calendar-filters{align-items:center;gap:12px 24px;padding:12px 20px}
form.pd-calendar-filters [data-filter-submit][hidden]{display:none!important}
body:not(:has(.pd-login-stage)) form.pd-calendar-filters>.pd-month-filter{display:flex;flex:0 0 auto;gap:24px}
body:not(:has(.pd-login-stage)) form.pd-calendar-filters>.pd-month-filter>label,
body:not(:has(.pd-login-stage)) form.pd-calendar-filters>label:not(.check){display:flex;flex-direction:row;align-items:center;gap:8px;flex:0 1 auto}
form.pd-calendar-filters .pd-month-filter select[name=month_number]{width:135px}
form.pd-calendar-filters .pd-month-filter select[name=year]{width:80px}
form.pd-calendar-filters select[name=municipality]{width:210px;max-width:100%}
form.pd-calendar-filters select[name=calendar_view]{width:108px}
.pd-date-filter{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.pd-date-filter>label{display:flex;flex-direction:row;align-items:center;gap:8px;white-space:nowrap}
.pd-date-filter input{width:150px;height:var(--pd-control-height);min-height:var(--pd-control-height);padding:6px 8px;font-size:13px}
.pd-period-arrows{display:flex;gap:4px;align-self:flex-end}
.pd-period-arrow{display:flex;align-items:center;justify-content:center;border:1px solid #cfcec8;border-radius:7px;background:#fff;color:#242424;width:var(--pd-control-height);height:var(--pd-control-height);font-size:22px;line-height:1}
.pd-period-arrow:hover{background:#fff2ee;border-color:#E44121}
.calendar.pd-calendar-week,.calendar.pd-calendar-day{min-width:0;padding:0}
.calendar.pd-calendar-week .day{min-height:240px}
.calendar.pd-calendar-week .day-number,.calendar.pd-calendar-day .day-number{width:auto;flex:0 0 auto;white-space:nowrap;padding:0 7px;border-radius:5px;justify-content:start}
.calendar.pd-calendar-week .calendar-event{flex-wrap:wrap;gap:0 5px;align-content:start}
.calendar.pd-calendar-week .calendar-event strong{flex:1 1 100%;white-space:normal;overflow-wrap:anywhere}
.calendar.pd-calendar-day{grid-template-columns:minmax(0,1fr)}
.calendar.pd-calendar-day .day{min-height:110px;border-right:0;padding:10px 14px}
.calendar.pd-calendar-day .calendar-event{display:grid;grid-template-columns:125px minmax(0,1fr) minmax(140px,30%);gap:12px;padding:9px 12px;white-space:normal}
.calendar.pd-calendar-day .calendar-event small{font-size:12px;white-space:normal}
.calendar.pd-calendar-day .calendar-event strong{font-size:13px;white-space:normal;overflow-wrap:anywhere}
.calendar.pd-calendar-day .calendar-event span.pd-calendar-location{font-size:12px;color:inherit;white-space:normal;overflow-wrap:anywhere}
.pd-day-empty{font-size:13px;padding:8px 7px}
@media(min-width:701px) and (max-width:1000px){
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters{gap:10px;padding-inline:12px}
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters>.pd-month-filter{gap:10px}
 form.pd-calendar-filters .pd-month-filter select[name=month_number]{width:120px}
 form.pd-calendar-filters .pd-month-filter select[name=year]{width:74px}
 form.pd-calendar-filters select[name=municipality]{width:150px}
 form.pd-calendar-filters select[name=calendar_view]{width:116px}
}
@media(max-width:700px){
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters{gap:10px 12px;padding:12px}
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters>.pd-month-filter{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:8px;flex:1 1 100%}
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters>.pd-month-filter>label,
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters>label:not(.check){flex-direction:column;align-items:stretch;gap:6px}
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters>label:not(.check){flex:1 1 100%}
 form.pd-calendar-filters .pd-month-filter select[name],form.pd-calendar-filters select[name=municipality]{width:100%}
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters:has(.pd-view-filter)>label:not(.check){flex:1 1 120px}
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters:has(.pd-view-filter)>label.pd-view-filter{flex:0 0 108px}
 .pd-date-filter{flex:1 1 100%;align-items:flex-end}
 .pd-date-filter>label{flex:1;min-width:0;flex-direction:column;align-items:stretch;gap:6px}
 .pd-date-filter input{width:100%}
}
@media(max-width:360px){
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters>.pd-filter-actions{flex-wrap:nowrap;gap:8px}
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters .pd-filter-actions>label.check{font-size:12px;gap:6px}
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters .pd-filter-actions>button{font-size:12px;padding-inline:8px;gap:5px}
}

.pd-template-editor{scroll-margin-top:16px}
.pd-template-editor form.stack{gap:10px}
.pd-template-editor [hidden]{display:none!important}
.pd-template-lines{display:grid;gap:8px}
.pd-template-line,.pd-template-columns{display:grid;grid-template-columns:minmax(0,1fr) 150px 80px;gap:8px;align-items:center}
.pd-template-columns{font-size:12px;color:var(--muted);margin-bottom:-5px}
.pd-template-line>*{min-width:0}
.pd-template-editor .actions{gap:8px}
.pd-template-entry{display:flex;gap:12px;align-items:flex-start;border-top:1px solid var(--line);padding:6px 0}
.pd-template-entry>details{min-width:0;flex:1}
.pd-template-entry>details>summary{overflow-wrap:anywhere}
.pd-template-entry>a{display:flex;align-items:center;min-height:36px;font-size:13px;flex:none}
.pd-template-forms a{font-size:13px;display:flex;align-items:center;min-height:36px}
.pd-user-options{align-items:flex-end}
.pd-user-options>.pd-user-logo{flex:1 1 240px;min-width:0}
.pd-user-options>[hidden]{display:none!important}
.pd-user-options>label.check{height:36px;display:flex;align-items:center;gap:8px;margin:0}
.pd-user-options>.pd-company-preview{align-self:center}
@media(max-width:600px){.pd-user-options>label.check{height:40px}}

@media(max-width:560px){
 .pd-template-columns{display:none}
 .pd-template-line{grid-template-columns:minmax(0,1fr) auto;border-bottom:1px solid var(--line);padding-bottom:8px}
 .pd-template-line>select{grid-column:1/-1}
 .pd-template-entry>a{min-height:40px}
 .pd-template-editor button{font-size:13px;padding-inline:10px}
}





/* A compact overtime entry in the event and a monthly administrative summary. */
.pd-event-overtime{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--line);padding-top:12px}
.pd-overtime-form>label{flex:0 1 160px}
.pd-overtime-totals table{min-width:0;table-layout:fixed}
.pd-overtime-totals th:last-child,.pd-overtime-totals td:last-child{width:104px;text-align:right}
.pd-overtime-totals td{overflow-wrap:anywhere}
.pd-overtime-totals tfoot th{color:var(--ink)}
.pd-overtime-filters>.pd-month-filter{flex:0 1 230px}
.pd-overtime-filters>label{flex:1 1 180px}
.pd-overtime-filters>a.button{height:36px;min-height:36px;padding:6px 12px}
.pd-overtime-detail>summary{cursor:pointer;font-weight:600;padding:6px 0}
@media(max-width:560px){
 .pd-overtime-filters>.pd-month-filter{flex-basis:100%}
 .pd-overtime-filters>a.button{height:40px;min-height:40px}
 .pd-overtime-form>label{flex:1 1 130px}
}

/* SVG originales compartidos; las acciones conservan su tamaño y el color de hover. */
.pd-features img{display:block;grid-row:1/span 2;width:28px;height:28px;object-fit:contain}
button.pd-action-download:not(.icon-button)::before,.button.pd-action-download::before{
 -webkit-mask-image:url("app-nav/descarga.svg?v=20261020-r2");mask-image:url("app-nav/descarga.svg?v=20261020-r2");mask-mode:alpha
}
button.pd-action-logout:not(.icon-button)::before{
 -webkit-mask-image:url("app-nav/cerrar.svg?v=20261020-r2");mask-image:url("app-nav/cerrar.svg?v=20261020-r2");mask-mode:alpha
}
button.pd-action-mail:not(.icon-button)::before{
 -webkit-mask-image:url("app-nav/correo.svg?v=20261020-r2");mask-image:url("app-nav/correo.svg?v=20261020-r2");mask-mode:alpha
}

/* Calendar: full weekday names and weather without narrowing event titles. */
.pd-weekday-short{display:none}
.calendar .weekday{padding:10px 3px;font-size:12px;white-space:nowrap}
.pd-day-heading{display:flex;align-items:center;justify-content:space-between;gap:2px;margin-bottom:6px;min-height:30px}
.pd-day-heading .day-number{margin:0;flex:0 0 30px}
.pd-day-weather{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:1px;min-width:0}
.pd-weather-slot:empty{display:none}
html body button.pd-weather-button{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:26px;height:28px;min-height:28px;min-width:26px;padding:2px;margin:0;border:0;border-radius:4px;background:transparent;color:#000;box-shadow:none;cursor:pointer;line-height:1}
html body button.pd-weather-button::before,html body button.pd-weather-button::after{content:none!important;display:none!important}
html body button.pd-weather-button:hover{background:#e8eef2}
html body button.pd-weather-button:focus-visible{outline:2px solid #E44121;outline-offset:1px}
.pd-weather-button svg{width:22px;height:22px;flex:none}
.pd-weather-tooltip{position:fixed;inset:auto;margin:0;z-index:10000;box-sizing:border-box;width:max-content;max-width:min(330px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;white-space:pre-line;overflow-wrap:anywhere;background:#fff;color:#202428;border:1px solid #ced6dc;border-radius:7px;padding:10px 12px;font-size:12px;font-weight:400;line-height:1.4;box-shadow:0 3px 14px #0002}
.pd-weather-tooltip[hidden]{display:none}
.pd-mobile-weather-row{position:relative}
.pd-mobile-weekday{display:block;font-size:11px;line-height:1.15;font-weight:400;color:inherit}
@media(max-width:600px){
 .pd-weekday-full{display:none}
 .pd-weekday-short{display:inline}
 .pd-mobile-weather-row>.pd-weather-slot{position:absolute;right:3px;top:50%;transform:translateY(-50%)}
 .pd-mobile-weather-row:has(.pd-weather-button) .pd-mobile-chevron{visibility:hidden}
 .pd-mobile-weather-row:has(.pd-weather-button) .pd-mobile-agenda-item{grid-template-columns:50px minmax(0,1fr) 28px}
 html body .pd-mobile-weather-row button.pd-weather-button{width:36px;height:40px;min-height:40px}
}

/* Shared icon hover and one-click sign out beside the account. */
nav.pd-app-nav>a.pd-app-link{padding-block:3px}
.pd-app-nav .pd-nav-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;border-radius:5px;transition:background-color .15s}
.pd-app-nav .pd-nav-icon img{display:block;width:22px;height:22px;object-fit:contain}
.pd-app-nav .pd-app-link:is(:hover,:focus-visible) .pd-nav-icon,
.pd-app-nav .pd-nav-logout:is(:hover,:focus-visible) .pd-nav-icon{background:#E44121}
.pd-app-nav .pd-app-link:is(:hover,:focus-visible) .pd-nav-icon img,
.pd-app-nav .pd-nav-logout:is(:hover,:focus-visible) .pd-nav-icon img{filter:brightness(0) invert(1)}
.pd-app-nav .pd-nav-user{display:flex;align-items:center;gap:10px;margin-left:auto;max-width:100%}
.pd-app-nav>.pd-app-settings+.pd-nav-user{margin-left:0}
.pd-app-nav .pd-nav-user .pd-current-user{padding:0;margin:0;gap:9px;color:#1b2227}
.pd-nav-logout-form{margin:0;display:flex;flex:none}
button.pd-nav-logout{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:32px;height:36px;min-height:36px;padding:0;border:0;border-radius:5px;color:#E44121;background:transparent;box-shadow:none;filter:none}
.pd-app-nav button.pd-nav-logout::before{display:none}
.pd-nav-logout-tip{display:none;position:absolute;right:0;top:calc(100% + 6px);z-index:90;padding:8px 11px;background:#1B2227;color:#fff;border:1px solid #E44121;border-radius:5px;white-space:nowrap;font-size:12px;font-weight:400;line-height:1.4;pointer-events:none}
.pd-nav-logout:is(:hover,:focus-visible) .pd-nav-logout-tip{display:block}
@media(max-width:1100px){
 .pd-app-nav>.pd-app-settings+.pd-nav-user{margin-left:auto}
}
@media(max-width:560px){
 .pd-app-nav .pd-nav-icon{width:26px;height:26px}
 .pd-app-nav .pd-nav-icon img{width:20px;height:20px}
 .pd-app-nav .pd-current-identity strong,.pd-app-nav .pd-current-identity small{max-width:105px}
 .pd-nav-logout-tip{left:0;right:auto}
}

/* Compact space multiselect: the options overlay the calendar instead of adding rows. */
form.pd-calendar-filters .pd-space-filter{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;font-weight:600}
.pd-calendar-spaces{position:relative;min-width:0;width:130px}
.pd-calendar-spaces>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;cursor:pointer;width:100%;height:var(--pd-control-height);min-height:var(--pd-control-height);padding:6px 10px;border:1px solid var(--pd-control-border);border-radius:8px;background:#fff;color:#242424;font-size:13px;line-height:1.35;white-space:nowrap}
.pd-calendar-spaces>summary::-webkit-details-marker{display:none}
.pd-calendar-spaces>summary:focus-visible{outline:2px solid #E44121;outline-offset:2px}
.pd-calendar-spaces[open]>summary{border-color:#E44121}
.pd-select-chevron{flex:none;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.pd-calendar-spaces[open] .pd-select-chevron{transform:translateY(2px) rotate(225deg)}
.pd-space-panel{position:absolute;top:calc(100% + 6px);right:0;z-index:60;width:320px;max-width:calc(100vw - 48px);max-height:min(360px,60vh);overflow:auto;overscroll-behavior:contain;padding:8px;border:1px solid #cbd6de;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0002;white-space:normal}
.pd-calendar-spaces fieldset{min-width:0;border:0;margin:0;padding:0}
.pd-space-actions{display:flex;justify-content:flex-end;gap:8px;padding-bottom:5px;border-bottom:1px solid #e5e8eb;margin-bottom:4px}
.pd-space-actions[hidden]{display:none}
.pd-space-actions button{min-height:30px;padding:4px 8px;background:transparent;border:0;border-radius:4px;color:#b83619;font-size:12px;font-weight:600}
.pd-calendar-spaces .pd-space-actions button::before{display:none}
.pd-space-actions button:hover{background:#fff2ee;color:#b83619;filter:none}
.pd-calendar-spaces .pd-space-checks{display:flex;flex-direction:column;gap:0}
.pd-calendar-spaces .pd-space-check{display:flex;flex:none;flex-direction:row;align-items:center;gap:7px;width:100%;min-height:36px;margin:0;padding:6px 4px;font-size:12px;line-height:1.4;font-weight:500;cursor:pointer}
.pd-calendar-spaces .pd-space-check:hover{background:#fff5f1}
.pd-calendar-spaces .pd-space-check>span{min-width:0;overflow-wrap:anywhere}
.pd-calendar-spaces .pd-space-check small{font-size:inherit;color:#68717d}
.pd-calendar-spaces input[type=checkbox]{flex:0 0 16px;width:16px;height:16px;min-height:16px;padding:0;margin:0;accent-color:#E44121;cursor:pointer}
.pd-calendar-spaces .pd-space-dot{flex:0 0 12px;width:12px;height:12px}
@media(min-width:901px) and (max-width:1200px){
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters:has(.pd-space-filter){gap:10px;padding-inline:12px}
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters:has(.pd-space-filter)>.pd-month-filter{gap:10px}
 form.pd-calendar-filters:has(.pd-space-filter) select[name=municipality]{width:150px}
 .pd-calendar-spaces{width:116px}
}
@media(min-width:561px) and (max-width:900px){
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters:has(.pd-space-filter){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 16px;align-items:center}
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters:has(.pd-space-filter)>label{align-self:center}
 form.pd-calendar-filters .pd-space-filter{grid-column:2}
 .pd-calendar-spaces{width:116px}
}
@media(max-width:560px){
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters:has(.pd-space-filter){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters:has(.pd-space-filter)>.pd-month-filter,
 form.pd-calendar-filters:has(.pd-space-filter)>.pd-date-filter,
 form.pd-calendar-filters:has(.pd-space-filter)>label:has(select[name=municipality]){grid-column:1/-1}
 form.pd-calendar-filters:has(.pd-space-filter) select[name=calendar_view]{width:100%}
 form.pd-calendar-filters .pd-space-filter{flex-direction:column;align-items:stretch;gap:6px;grid-column:2}
 .pd-calendar-spaces{width:100%}
 .pd-calendar-spaces>summary{font-size:14px}
 .pd-calendar-spaces .pd-space-check{min-height:40px}
 .pd-space-panel{max-height:min(280px,45vh)}
}

/* Locality shares the address row instead of adding an empty half-row. */
.pd-record-fields:has([name=weather_location])>label:has([name=address]){grid-column:span 3}
@media(max-width:600px){
 .pd-record-fields:has([name=weather_location])>label:has([name=address]){grid-column:1/-1}
 .pd-record-fields:has([name=postal_code])>label:has([name=weather_location]){order:7;grid-column:1/-1}
}

/* Compact category creation, shared control heights and alignment. */
.pd-category-editor .pd-control-row>label{flex:1 1 120px;max-width:480px}

@media(max-width:560px){body:not(:has(.pd-login-stage)) form.pd-calendar-filters:has(.pd-space-filter)>label.check{white-space:normal;line-height:1.2;align-self:end}}

/* Shared eye state; the slash indicates the action that hides the password. */
.pd-password-toggle .pd-password-slash{display:none}
.pd-password-toggle[aria-pressed="true"] .pd-password-slash{display:block}
html body .pd-password-wrap > button.pd-password-toggle:focus-visible{outline:2px solid #e44121;outline-offset:1px}
html body .pd-password-wrap > button.pd-password-toggle:disabled{opacity:.45;cursor:default}

.pd-event-client-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 24px}
.pd-event-client-row>label,.pd-event-client-row>p{margin:0;min-width:0;flex:1 1 12rem;overflow-wrap:anywhere}
.pd-event-client-row>label select{width:100%;min-width:0}
.pd-event-client-row .pd-publish-choice{min-width:0;max-width:100%;margin-inline-start:auto}
.pd-event-client-row .check{margin:0;cursor:pointer}
@media(max-width:560px){
 .pd-event-client-row{gap:4px 12px}
 .pd-event-client-row:has(>p):has(.pd-publish-choice:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
 .pd-event-client-row .check input{flex-shrink:0}
 .pd-event-client-row>.pd-publish-choice{margin-inline-start:0}
 .pd-event-client-row .check{min-height:32px}
}
.pd-schedule-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.pd-schedule-heading h2,.pd-schedule-heading .pd-all-day{margin:0}
.pd-schedule-heading .pd-all-day{white-space:nowrap;min-height:32px}
.pd-calendar-filters .pd-export{margin-left:auto;flex:1 1 144px;min-width:0;max-width:300px}
.pd-calendar-filters .pd-export[hidden]{display:none}
.pd-calendar-filters .pd-export label{display:flex;align-items:center;gap:8px;flex-direction:row}
.pd-calendar-filters .pd-export select{min-width:0;width:100%;flex:1;height:var(--pd-control-height);min-height:var(--pd-control-height);padding:6px 10px;font-size:13px;line-height:1.35}
@media(min-width:901px){body:not(:has(.pd-login-stage)) form.pd-calendar-filters:has(.pd-export)>label{align-self:center}}
@media(min-width:901px) and (max-width:1200px){
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters:has(.pd-export:not([hidden])){flex-wrap:nowrap;gap:8px}
 form.pd-calendar-filters:has(.pd-export) select[name=month_number]{width:104px}
 form.pd-calendar-filters:has(.pd-export) select[name=year]{width:68px}
 form.pd-calendar-filters:has(.pd-export) select[name=municipality]{width:125px}
 form.pd-calendar-filters:has(.pd-export) select[name=calendar_view]{width:90px}
 form.pd-calendar-filters:has(.pd-export) .pd-calendar-spaces{width:98px}
 .pd-calendar-filters .pd-export{flex-basis:0}
}
.pd-export .pd-pdf-icon{display:block;flex:0 0 auto;width:21px;height:26px}
.pd-mobile-forecast{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:12px}
.pd-mobile-forecast>div{display:flex;align-items:center;flex-direction:column;min-width:35px;flex:1 1 32px;font-size:11px}
.pd-mobile-forecast>div:not(:has(button)),.pd-mobile-forecast:not(:has(button)){display:none}
@media(min-width:701px) and (max-width:900px){
 body:not(:has(.pd-login-stage)) form.pd-calendar-filters:has(.pd-space-filter):has(.pd-export){grid-template-columns:repeat(6,minmax(0,1fr))}
 .pd-calendar-filters:has(.pd-export)>.pd-month-filter,.pd-calendar-filters:has(.pd-export)>.pd-date-filter{grid-column:1/4}
 .pd-calendar-filters:has(.pd-export)>label:has(select[name=municipality]){grid-column:4/7}
 .pd-calendar-filters:has(.pd-space-filter)>.pd-view-filter{grid-column:1/3}
 form.pd-calendar-filters:has(.pd-export) .pd-space-filter{grid-column:3/5}
 .pd-calendar-filters:has(.pd-space-filter)>.pd-export{grid-column:5/7;max-width:none;width:100%;margin:0}
}
@media(max-width:700px){.pd-calendar-filters .pd-export{grid-column:1/-1;max-width:none;width:100%;margin:0}}

/* La entrada comparte fila con el espacio. Las condiciones de venta solo ocupan sitio en eventos de pago. */
.pd-event-admission{display:grid;grid-template-columns:minmax(0,2fr) minmax(9rem,1fr);align-items:start;gap:12px 18px}
.pd-ticket-sale{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px}
.pd-event-admission:has(select[name=ticket_mode] option:checked:not([value=paid])) .pd-ticket-sale{display:none}
.pd-ticket-record .ticket-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 12px;margin:8px 0 0}
.pd-ticket-record .ticket-facts dd{margin:0;overflow-wrap:anywhere}
@media(max-width:600px){
 .pd-event-admission{grid-template-columns:minmax(0,1fr) minmax(6.8rem,.55fr);gap:10px}
 .pd-ticket-sale{grid-template-columns:1fr;gap:8px}
}

.pd-title-poster{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:start;gap:12px 18px}
.pd-title-poster>*,.pd-poster-input input[type=file]{min-width:0;width:100%;max-width:100%}
.pd-poster-input>label{display:block}
.pd-poster-input>label small{font-size:11px;color:#556167;font-weight:400}
.pd-poster-input input[type=file]{display:block;margin-top:5px}
.pd-poster-current,.pd-poster-current a{display:flex;align-items:center;gap:8px}
.pd-poster-current{flex-wrap:wrap;justify-content:space-between;margin-top:6px}
.pd-poster-current img{width:26px;height:32px;object-fit:contain}
.pd-poster-record img{display:block;max-width:100%;max-height:180px;object-fit:contain;margin-top:8px}
@media(max-width:640px){.pd-title-poster{grid-template-columns:minmax(0,1fr);gap:10px}}

.pd-event-primary{min-width:0;gap:12px}
.pd-event-primary>.actions{margin-top:0;gap:8px}

.pd-org-upload{min-width:0}
.pd-org-upload input[type=file]{padding-block:9px}
.pd-org-upload [hidden]{display:none}

.pd-client-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
@media(min-width:850px){.form-grid.pd-org-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}}

.pd-crew-row { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px 16px }
.pd-crew-row h2 { margin:0 }
.pd-crew-picker { min-width:0 }
.pd-crew-picker summary,.pd-event-info summary { cursor:pointer; font-weight:650 }
.pd-crew-picker > div { display:grid; gap:5px; padding:8px 0; max-height:13rem; overflow:auto }
.pd-crew-picker label { overflow-wrap:anywhere }
.pd-event-info { min-inline-size:0 }
.pd-info-row { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); align-items:start; gap:8px 16px }
.pd-info-row + .pd-info-row,.pd-event-info > details { border-top:1px solid #dbe3ea; padding-top:10px; margin-top:10px }
.pd-event-info details[open] > summary { margin-bottom:8px }
.pd-info-file,.pd-info-row label { min-width:0 }
.pd-info-file input[type=file] { width:100%; max-width:100% }
.pd-info-current { display:flex; align-items:center; gap:6px 12px; flex-wrap:wrap; margin-top:6px; overflow-wrap:anywhere }
.pd-info-current img { display:block; width:auto; height:auto; max-width:96px; max-height:76px; object-fit:contain }
.pd-info-remove { grid-column:1/-1 }
@media(max-width:640px) {
  .pd-info-row { grid-template-columns:minmax(0,1fr) }
}

.pd-publish-choice:not([hidden]),.pd-agenda-category-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pd-publish-choice select{width:auto;max-width:min(100%,16rem)}
.pd-agenda-category-form{align-items:flex-end}
.pd-agenda-category-form label{width:min(100%,22rem)}
