/* calc-sched.css: Schedule card (#titrStep) density, upper part above titration steps.
   sched30_1104 (Erik, Nov 4): 30% shorter. Switches 26px, fields 32px, weeks select no clipping, end buttons single line.
   Add later card fixes below with their own marker. */
#titrStep .cc-ssec{margin-top:4px!important;padding-top:4px!important}
#titrStep .cc-swrow{min-height:30px!important;margin-bottom:4px!important}
#titrStep .cc-swrow .seg{padding:2px!important}
#titrStep .cc-swrow .seg button{min-height:26px!important;padding-top:3px!important;padding-bottom:3px!important;line-height:16px}
#titrStep #titrBody{margin-top:4px!important}
#titrStep .cc-titr .cc-sum{padding-top:2px!important;padding-bottom:2px!important;margin-bottom:3px!important;line-height:14px}
#titrStep .cc-titr .hint,#titrStep .cc-titr p.hint{font-size:12px!important;line-height:1.25!important;margin:2px 0 4px!important}
#titrStep .cc-titr .cc-grid2{gap:5px!important;margin:5px 0!important}
#titrStep .cc-titr .cc-grid2 .cc-fl{line-height:14px!important}
#titrStep .cc-titr .cc-grid2 .cc-f{gap:2px!important}
#titrStep .cc-titr .cc-grid2 input,#titrStep .cc-titr .cc-grid2 select,#titrStep .cc-titr .cc-grid2 .tbox{height:32px!important;min-height:32px!important;padding-top:0!important;padding-bottom:0!important;box-sizing:border-box}
#titrStep .cc-titr .cc-grid2 select{padding-left:6px!important;padding-right:16px!important;background-position:right 5px center!important;flex:0 0 auto!important;width:auto!important;min-width:70px!important;max-width:none!important}
#titrStep .cc-titr .cc-grid2 .cc-ig:has(select) input{flex:1 1 0!important;min-width:0!important;width:auto!important}
#titrStep .cc-pat{margin:5px 0!important}
#titrStep .cc-pat>summary{padding:5px 0!important;min-height:30px!important;font-size:14px!important;line-height:1.2}
#titrStep .cc-patendf{margin:6px 0 2px!important}
#titrStep .cc-patendf>.cc-fl{margin-bottom:3px!important;line-height:14px}
#titrStep .cc-patend{padding:2px!important}
#titrStep .cc-patend button{padding:3px 3px!important;line-height:16px;white-space:nowrap!important;font-size:12px!important;letter-spacing:-.1px}
#titrStep #ccPatGo{min-height:28px!important;height:28px;padding-top:0!important;padding-bottom:0!important;margin-top:3px!important}
/* pillgap1104 (Erik, Nov 4): 'Then at the top amount' pills narrower, >=6px gap between pills and to the container edge, one line */
#titrStep #ccPatEnd{display:inline-flex!important;width:auto!important;max-width:100%!important;gap:6px!important;padding:4px 6px!important;justify-content:center;flex-wrap:nowrap!important}
#titrStep #ccPatEnd>button{flex:0 0 auto!important;min-width:0!important;padding:3px 5px!important;white-space:nowrap!important;font-size:12px!important;line-height:16px;letter-spacing:0}
@media (max-width:379px){#titrStep #ccPatEnd>button{padding:3px 3px!important;font-size:11px!important}#titrStep #ccPatEnd{gap:6px!important;padding:4px 6px!important}}
/* sumrow1104 (Erik, Nov 4): Schedule results, the 3 summary cards on ONE row, equal widths, even gaps, values centered */
#titrStep .cc-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;align-items:stretch}
#titrStep .cc-stats>.cc-stat{min-width:0;padding:7px 5px!important;text-align:center;align-items:center;justify-content:space-between}
#titrStep .cc-stats .cc-k{font-size:12px!important;line-height:14px;overflow-wrap:normal;word-break:normal;hyphens:manual}
#titrStep .cc-stats>.cc-stat>b{font-size:16px;line-height:20px;white-space:nowrap}
/* tzbtns1104 (Erik, Nov 4): '+ Add dose level / Duplicate last / Clear' fill the row (balanced: each pill grows from its text width), same edges as the Maintenance row, 6px gaps */
#titrStep #ccTitr>.cc-btns{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;width:100%;margin:6px 0!important}
#titrStep #ccTitr>.cc-btns>.btn{flex:1 1 auto!important;width:auto!important;min-width:0!important;margin:0!important;padding-left:10px!important;padding-right:10px!important;white-space:nowrap!important;font-size:12.5px!important;justify-content:center;text-align:center}
@media (max-width:379px){#titrStep #ccTitr>.cc-btns>.btn{font-size:12px!important;padding-left:8px!important;padding-right:8px!important}}
/* lenpill1104 (Erik, Nov 4): "Each level lasts" number + unit select as ONE pill: number | thin divider | unit select */
#titrStep .cc-ig:has(>#ccPatLenU){gap:0!important;height:32px;box-sizing:border-box;border:1px solid transparent;border-radius:16px;overflow:hidden;background:linear-gradient(90deg,rgba(230,25,230,.14),rgba(128,0,255,.14) 55%,rgba(0,128,255,.14)) padding-box,linear-gradient(#0E0E16,#0E0E16) padding-box,linear-gradient(90deg,#E619E6,#0080FF) border-box;align-items:stretch}
#titrStep .cc-ig:has(>#ccPatLenU):focus-within{box-shadow:0 0 0 2px rgba(0,221,235,.35),0 0 12px rgba(230,25,230,.35)}
#titrStep #ccPatLen{flex:1 1 0!important;min-width:0!important;width:auto!important;height:30px!important;min-height:30px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0 6px!important;text-align:center}
#titrStep #ccPatLenU{flex:0 0 auto!important;width:auto!important;min-width:0!important;height:30px!important;min-height:30px!important;border:0!important;border-left:1px solid rgba(255,255,255,.28)!important;border-radius:0!important;padding:0 24px 0 9px!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 9px center/10px 7px transparent!important;box-shadow:none!important;outline:none}
