/* V110: notebook from approved design, modeless movable corner window. */
.cm-live-dialog{position:fixed!important;inset:auto 10px 10px auto;left:auto;top:auto;margin:0!important;width:min(565px,calc(100vw - 20px))!important;max-height:min(82dvh,735px)!important;overflow:hidden!important;border:1px solid #b8a078!important;border-radius:20px!important;background:transparent!important;z-index:100000;box-shadow:0 10px 25px #0006!important}
.cm-live-dialog::backdrop{background:transparent!important;pointer-events:none}
.cm-live-surface{display:flex!important;flex-direction:column!important;height:auto!important;min-height:250px!important;max-height:min(82dvh,735px)!important;overflow:hidden!important;padding:0!important;border:0!important;border-radius:19px!important;background:#faf0df url('assets/mantel-cuadros.png') center/95px!important}
.cm-live-top{flex:none!important;display:grid!important;grid-template-columns:1fr 1fr 29px 29px 29px!important;gap:3px!important;height:44px!important;padding:0 10px!important;border-radius:15px 15px 0 0!important;background:#20507a!important;color:#fff!important;cursor:grab;touch-action:none;user-select:none}
.cm-live-top:active{cursor:grabbing}.cm-live-top span{text-align:center!important}.cm-live-top button{height:30px;min-width:28px;font-size:1.4rem!important;cursor:pointer}
.cm-live-blue{display:grid!important;grid-template-columns:1fr auto 1fr!important;gap:5px!important;min-height:27px!important;border-radius:0!important;background:#296089!important;color:white!important}
.cm-live-blue [role=status]{text-align:right;font-size:.63rem}
.cm-live-notebook{position:relative!important;display:flex!important;flex-direction:column!important;gap:0!important;min-height:0!important;max-height:calc(82dvh - 72px)!important;overflow:hidden!important;margin:8px 7px 9px 15px!important;padding:0 10px 8px 18px!important;border:2px solid #ccb693!important;border-radius:14px!important;background:#fcf3dc url('assets/papel-artesanal.png') center/cover!important;box-shadow:2px 3px 6px #4d3b274f!important}
.cm-live-notebook::before{content:'';position:absolute;left:-11px;top:18px;bottom:16px;width:16px;background:repeating-linear-gradient(to bottom,transparent 0 18px,#62737c 18px 20px,#f8f8f2 20px 26px,#657782 26px 29px,transparent 29px 54px);opacity:.7;pointer-events:none}
.cm-live-icons{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:2px!important;flex:none!important;padding:0!important;margin:3px 0 0!important}
.cm-live-icons button{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:0!important;min-height:51px!important;min-width:0!important;padding:4px 1px!important;border:1px solid #cdb790!important;border-radius:12px 12px 0 0!important;background:var(--tab-bg,#efdbc1)!important;color:#142f48!important;font-size:1rem!important;cursor:pointer}
.cm-live-icons button:nth-child(1){--tab-bg:#f6dcb5}.cm-live-icons button:nth-child(2){--tab-bg:#cce6b6}.cm-live-icons button:nth-child(3){--tab-bg:#fae4a5}.cm-live-icons button:nth-child(4){--tab-bg:#f1bac1}.cm-live-icons button:nth-child(5){--tab-bg:#dbbce9}.cm-live-icons button:nth-child(6){--tab-bg:#b9def2}
.cm-live-icons button[aria-pressed=true]{border-color:#244d72!important;box-shadow:inset 0 -3px #2d587a!important;font-weight:700}.cm-live-icons button span{font-size:1.1rem}.cm-live-icons button small{font-size:clamp(.48rem,1.65vw,.7rem);line-height:1.15;white-space:normal;text-align:center}
.cm-live-detail{display:flex!important;flex-direction:column!important;flex:1!important;min-height:0!important;max-height:none!important;padding:0!important;overflow:hidden!important;background:transparent!important;border:0!important;color:#1d3552!important}
.cm-live-period{display:grid;grid-template-columns:39px 1fr 39px;align-items:center;gap:7px;padding:8px 2px 5px}
.cm-live-period h2{font-family:Georgia,cursive!important;font-size:clamp(1.22rem,4.8vw,2rem)!important;font-weight:400;font-style:italic;color:#9a2588;text-align:center;text-transform:capitalize;margin:0!important}
.cm-live-period button{width:37px;height:37px;background:#faf1df;border:1px solid #d8c8ab;border-radius:50%;color:#183756;font-size:2rem;line-height:1;cursor:pointer}
.cm-live-switch{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:3px!important;margin:2px 2px 7px!important;padding:3px;border:1px solid #b9a789;border-radius:30px;background:#f1e7d6}
.cm-live-switch[hidden]{display:none!important}.cm-live-switch button{border:0!important;border-radius:22px!important;background:transparent!important;font-family:Georgia,serif;font-size:.83rem;font-style:italic;color:#28435b;padding:6px 2px}
.cm-live-switch button[aria-pressed=true]{background:#315a7b!important;color:#fff!important}
.cm-live-meals{display:grid;grid-template-columns:repeat(3,1fr);gap:4px 2px;margin:0 0 6px;border-bottom:1px solid #c8bba3;padding:0 0 8px}
.cm-live-meals[hidden]{display:none!important}.cm-live-meals button{display:flex;gap:4px;align-items:center;border:0;background:transparent;text-align:left;font:italic .76rem Georgia,serif;color:#27425d;cursor:pointer;padding:0}
.cm-live-meals button span{display:grid;place-items:center;width:27px;height:26px;flex:none;background:#dfcfab;border-radius:5px;font-style:normal;font-size:1.04rem}
.cm-live-meals button:nth-child(1) span{background:#f0c57e}.cm-live-meals button:nth-child(2) span{background:#7cc7c3}.cm-live-meals button:nth-child(3) span{background:#e3a194}.cm-live-meals button:nth-child(4) span{background:#f4ed6c}.cm-live-meals button:nth-child(5) span{background:#92b3df}
.cm-live-meals button[aria-pressed=true]{font-weight:900;text-decoration:underline}
.cm-live-detail-head{display:flex!important;justify-content:space-between;gap:8px;min-height:26px!important;border-bottom:1px solid #ddcfb6}
.cm-live-detail-head[hidden]{display:none!important;min-height:0!important;border:0!important}
.cm-live-detail-head #cm-live-range{font:italic .78rem Georgia,serif;color:#394a5b}
.cm-live-select-wrap[hidden]{display:none!important}
.cm-live-list{display:block!important;flex:1!important;min-height:80px!important;max-height:min(41dvh,360px)!important;overflow-y:auto!important;padding:2px 0!important}
.cm-live-dayrow{display:grid;grid-template-columns:75px minmax(0,1fr) 24px;align-items:center;min-height:57px;border-bottom:1px solid #cbbba3}
.cm-live-dayhead{display:flex;align-items:center;gap:6px;background:transparent;border:0;text-align:left;color:#1d3652;cursor:pointer;padding:2px}.cm-live-dayhead strong{font:italic 1.65rem Georgia,serif;color:#9c268a}.cm-live-dayhead em{font:.82rem Georgia,serif}
.cm-live-dayhead.is-today{outline:2px solid #244d72;outline-offset:-1px;border-radius:7px}
.cm-live-daymeals{display:flex;flex-direction:column;gap:3px;padding:4px 1px}.cm-live-meal-line{display:flex;align-items:center;gap:5px;font:italic .78rem Georgia,serif;white-space:normal}.cm-live-meal-icon{display:grid;place-items:center;width:22px;height:22px;flex:none;border-radius:4px;font-style:normal}.cm-live-no-food{color:#ac9f8c}.cm-live-dayarrow{border:0;background:none;font-size:1.4rem;color:#254364;cursor:pointer}
.cm-live-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;align-items:stretch;padding:4px 0}.cm-live-weekday{text-align:center;font-size:.68rem;color:#435670}.cm-live-daycell{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:43px;border:1px solid #e4d6bf;background:#fffaf0ad;border-radius:6px;color:#284159;cursor:pointer;font-size:.83rem}.cm-live-daycell small{font-size:.57rem}.cm-live-daycell.is-today{border:2px solid #235a8d}.cm-live-bottom{display:flex;justify-content:space-between;min-height:24px}.cm-live-bottom[hidden]{display:none!important}.cm-live-bottom button{border:0;background:none;color:#2d5579;cursor:pointer;font-size:.68rem}
.cm-live-compact .cm-live-notebook{display:none!important}.cm-live-compact .cm-live-surface{min-height:0!important}.cm-live-tall .cm-live-list{max-height:min(59dvh,530px)!important}
.cm-live-alt-colors .cm-live-daycell{background:#e7f1fa}
@media(max-width:390px){.cm-live-dialog{width:calc(100vw - 12px)!important;right:6px;bottom:6px}.cm-live-notebook{padding-left:14px!important;padding-right:5px!important}.cm-live-dayrow{grid-template-columns:65px minmax(0,1fr) 20px}.cm-live-meals button{font-size:.66rem}.cm-live-meal-line{font-size:.7rem}}

/* Widget 114 · cuadraditos de color y comensales en mes y semana */
.cm-live-servings-marks{display:flex;justify-content:center;align-items:center;gap:2px;flex-wrap:wrap;max-width:100%;line-height:1}
.cm-live-servings-square{display:inline-grid;place-items:center;flex:none;box-sizing:border-box;min-width:16px;height:16px;padding:0 2px;background:color-mix(in srgb,var(--cm-meal-marker-color) 80%,white);border:1px solid color-mix(in srgb,var(--cm-meal-marker-color) 70%,#41392c);border-radius:3px;color:#193351;font:700 10px/1 Arial,sans-serif;box-shadow:0 1px 1px #352f2926}
.cm-live-daycell{justify-content:flex-start;gap:2px;padding:2px;min-height:43px}
.cm-live-daycell .cm-live-servings-square{min-width:12px;height:12px;padding:0 1px;font-size:8px}
.cm-live-month .cm-live-daycell{overflow:hidden}
.cm-live-dayrow .cm-live-servings-square{min-width:20px;height:20px;font-size:11px}
