#scoreManagerPanel #parrillasHistoryPanel,#scoreManagerPanel .ph-schedule,#phDetail{--ink:var(--v2-ink,#243047);--muted:var(--v2-muted,#64718a);--line:var(--v2-line,#dde3ee);--panel:var(--v2-surface,#fff);--soft:var(--v2-surface-soft,#f5f6fa);color:var(--ink)}
#scoreManagerPanel #parrillasHistoryPanel{grid-column:1/-1;min-width:0}
#scoreManagerPanel .ph-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:8px 0 20px}
#scoreManagerPanel .ph-head h2{font-size:24px;margin:0 0 7px}#scoreManagerPanel .ph-head p,.ph-note{color:var(--muted);margin:0;line-height:1.6}
#scoreManagerPanel .ph-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}
.ph-summary span{display:grid;gap:6px}.ph-summary strong{font-size:17px}.ph-summary small,.ph-entry small{color:var(--muted)}
#scoreManagerPanel .ph-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:14px;padding:22px 0 16px}.ph-toolbar label{display:grid;gap:6px;font-size:12px;font-weight:600}.ph-toolbar input,.ph-toolbar select,.ph-detail-tools input[type=search]{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel,var(--surface));color:inherit;min-height:40px;font:inherit}.ph-toolbar a{margin:auto 0 10px auto;font-size:13px}
#scoreManagerPanel .ph-note{font-size:12px;max-width:850px}#scoreManagerPanel .ph-error{color:var(--danger,#c6454b)}
#scoreManagerPanel .ph-entry{width:100%;display:grid;grid-template-columns:155px minmax(170px,1fr) minmax(200px,auto) 18px;gap:14px;text-align:left;align-items:center;padding:18px 12px;background:transparent;color:inherit;border:0;border-bottom:1px solid var(--line);font:inherit;cursor:pointer;border-radius:6px}.ph-entry:hover{background:var(--soft,rgba(100,120,180,.07))}.ph-entry:focus-visible{outline:2px solid var(--accent,#5364ef)}.ph-time,.ph-name{display:grid;gap:6px}.ph-time{font-size:13px}.ph-name strong{font-size:14px}.ph-badges{display:flex;flex-wrap:wrap;gap:6px}.ph-badges b{font-size:11px;padding:5px 8px;font-weight:600;border-radius:6px;background:rgba(92,112,211,.12);color:inherit}.ph-badges .ph-added,.ph-badges .ph-stable{background:rgba(40,160,100,.12)}.ph-badges .ph-removed{background:rgba(200,95,76,.12)}.ph-empty{text-align:center;padding:45px 15px;color:var(--muted)}.ph-empty strong{color:var(--ink,inherit)}
#scoreManagerPanel .ph-schedule{margin-top:24px;padding:22px 0;border-top:1px solid var(--line)}.ph-schedule h3{margin:0 0 6px;font-size:17px}.ph-schedule p{font-size:13px;color:var(--muted);line-height:1.6}.ph-schedule-fields{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.ph-schedule-fields label{display:grid;gap:5px;font-size:12px}.ph-schedule-fields input{width:110px}.ph-schedule-fields input,.ph-schedule-fields select{color:inherit;background:var(--panel,var(--surface));border:1px solid var(--line);padding:10px;border-radius:8px;min-height:40px}
#phDetail{width:min(850px,calc(100vw - 30px));max-height:85dvh;border:1px solid var(--line);border-radius:14px;background:var(--panel,var(--surface,#fff));color:var(--ink,inherit);padding:24px;box-sizing:border-box}#phDetail::backdrop{background:rgba(10,20,35,.6)}#phDetail header{display:flex;justify-content:space-between;gap:15px;align-items:start}#phDetail h2{margin:0;font-size:22px}#phDetail p{font-size:12px;color:var(--muted);line-height:1.6}.ph-detail-tools{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:20px 0}.ph-detail-tools input[type=search]{flex:1;min-width:160px}.ph-detail-tools label{font-size:13px}.ph-product{display:grid;grid-template-columns:48px 1fr auto;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.ph-product img{object-fit:cover;border-radius:5px;background:rgba(120,120,120,.08)}.ph-product a{color:inherit;font-size:13px}.ph-position{font-size:12px;font-weight:600;white-space:nowrap}.ph-no-image{width:48px;height:60px;display:grid;place-items:center;color:var(--muted)}
@media(max-width:700px){#scoreManagerPanel .ph-summary{grid-template-columns:1fr;gap:16px}.ph-summary span{grid-template-columns:1fr 1fr;align-items:center}.ph-summary strong{font-size:14px}.ph-summary small{text-align:right}#scoreManagerPanel .ph-head{align-items:start}.ph-toolbar label{flex:1;min-width:120px}.ph-toolbar select{max-width:100%}.ph-toolbar a{margin:0 0 10px}#scoreManagerPanel .ph-entry{grid-template-columns:1fr 18px;gap:10px;padding:15px 4px}.ph-time{display:flex;gap:10px;grid-column:1}.ph-name{grid-column:1}.ph-badges{grid-column:1}.ph-entry>span:last-child{grid-column:2;grid-row:1/4}#phDetail{padding:16px}.ph-product{grid-template-columns:40px 1fr;gap:8px}.ph-product img{width:40px;height:50px}.ph-position{grid-column:2}.ph-product>a{overflow-wrap:anywhere}}

/* Allow a native select to shrink inside the mobile filter grid. */
#scoreManagerPanel .ph-toolbar input,#scoreManagerPanel .ph-toolbar select{box-sizing:border-box;min-width:0;width:100%}
@media(max-width:700px){#scoreManagerPanel .ph-toolbar label{min-width:0;flex-basis:140px}}
