.day-cell.selected{z-index:2;position:relative;box-shadow:inset 0 0 0 3px #7d1425,0 0 0 1px #7d14251a}.day-cell.selected:after{content:"";pointer-events:none;border:1px solid #7d142538;border-radius:3px;position:absolute;inset:4px}.day-cell.today.selected{box-shadow:inset 0 0 0 3px #7d1425,inset 0 0 0 5px #ffffffb8}.calendar-legend .legend-icon{flex:none;place-items:center;width:12px;height:12px;display:inline-grid}.calendar-legend .legend-icon svg{width:12px;height:12px}.calendar-legend .legend-icon.remote{color:#274d72}.calendar-legend .legend-icon.guard{color:#c16a18}.calendar-legend .legend-icon.manual{color:#8e2637}.calendar-legend .legend-separator{background:#ddd4d7;width:1px;height:12px;margin:0 2px;padding:0}:root{color:#241c1f;font-synthesis:none;text-rendering:optimizelegibility;--brand:#a32235;--brand-dark:#741725;--brand-deep:#57101b;--brand-soft:#f8e9ec;--brand-soft-2:#fdf4f5;--ink:#241c1f;--muted:#746b6f;--border:#e6dde0;background:#f7f4f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%}body{background:#f7f4f5;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{-webkit-tap-highlight-color:transparent}input,select,textarea{color:#30272a;background:#fff;border:1px solid #d8cfd2;border-radius:9px;padding:9px 10px}input:focus,select:focus,textarea:focus{outline-offset:1px;border-color:#bd596b;outline:2px solid #e7a8b3}textarea{resize:vertical}.app-shell{min-height:100vh}.sidebar{z-index:50;background:linear-gradient(180deg, var(--brand-dark), var(--brand-deep));color:#fff;flex-direction:column;gap:28px;width:72px;padding:20px 10px;transition:width .18s,box-shadow .18s;display:flex;position:fixed;inset:0 auto 0 0;overflow:hidden;box-shadow:8px 0 24px #4a0c181f}.sidebar.expanded{width:248px;box-shadow:14px 0 34px #4a0c182e}.brand{color:#fff;cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:12px;width:100%;min-height:46px;padding:0 4px;display:flex}.brand-mark{letter-spacing:-.03em;background:#ffffff24;border-radius:14px;flex:0 0 44px;place-items:center;width:44px;height:44px;font-weight:800;display:grid}.brand-copy{opacity:0;min-width:140px;transition:opacity .12s,transform .12s;display:block;transform:translate(-5px)}.sidebar.expanded .brand-copy{opacity:1;transform:translate(0)}.brand strong,.brand small{display:block}.brand strong{font-size:18px}.brand small{color:#e5c7cd;margin-top:2px}nav{gap:7px;display:grid}.nav-item{color:#efdce0;cursor:pointer;white-space:nowrap;text-align:left;background:0 0;border:0;border-radius:11px;align-items:center;gap:13px;width:100%;padding:12px 14px;display:flex;overflow:hidden}.nav-item:hover,.nav-item.active{color:#fff;background:#ffffff21}.nav-icon{flex:0 0 24px;place-items:center;width:24px;display:grid}.nav-icon svg{width:21px;height:21px}.nav-label{opacity:0;min-width:145px;transition:opacity .1s}.sidebar.expanded .nav-label{opacity:1}.sidebar-foot{color:#d5b4bb;opacity:0;min-width:205px;margin-top:auto;padding:0 8px;font-size:12px;line-height:1.35;transition:opacity .1s}.sidebar.expanded .sidebar-foot{opacity:1}.sidebar-touch-backdrop{display:none}.content{width:calc(100% - 72px);max-width:none;margin-left:72px;padding:28px 32px 48px}.page-header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;display:flex}h1,h2,p{margin-top:0}h1{letter-spacing:-.03em;margin-bottom:0;font-size:clamp(28px,3vw,38px)}h2{margin-bottom:0;font-size:20px}.eyebrow{color:#81757a;text-transform:capitalize;margin-bottom:7px;font-size:13px}.primary-action,.secondary-action{cursor:pointer;border:0;border-radius:10px;padding:11px 16px;font-weight:700}.primary-action{background:var(--brand);color:#fff}.primary-action:hover{background:#8d1c2d}.secondary-action{background:var(--brand-soft);color:#7e1a2a}.secondary-action:hover{background:#f1d9de}.primary-action:disabled,.secondary-action:disabled{opacity:.45;cursor:not-allowed}.day-context{color:#51464a;flex-wrap:wrap;align-items:center;gap:10px;margin:-8px 0 16px;display:flex}.badge{background:var(--brand-soft);color:#842033;border-radius:999px;align-items:center;padding:5px 9px;font-size:12px;font-weight:700;display:inline-flex}.badge.guardia{color:#805217;background:#fff1dc}.notice{color:#74404a;background:#fff4f6;border:1px solid #e3c9cf;border-radius:12px;margin-bottom:18px;padding:14px 16px}.metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px;display:grid}.metric-card,.panel{border:1px solid var(--border);background:#fff;box-shadow:0 4px 16px #371d240a}.metric-card{border-radius:14px;gap:10px;padding:20px;display:grid}.metric-card span{color:#766b70;font-size:13px}.metric-card strong{letter-spacing:-.02em;font-size:24px}.panel{border-radius:14px;padding:22px}.panel-heading{border-bottom:1px solid #f0e8ea;justify-content:space-between;align-items:start;gap:18px;padding-bottom:18px;display:flex}.empty-state{text-align:center;color:#7e7478;place-content:center;gap:7px;min-height:210px;display:grid}.empty-state strong{color:#45393e}.empty-state.compact{min-height:140px}.field-preview{color:#786d72;text-transform:uppercase;grid-template-columns:1fr .8fr 2fr .6fr;gap:10px;padding:14px 0;font-size:12px;font-weight:700;display:grid}.settings-stack{gap:18px;display:grid}.day-types{display:grid}.day-type-row{border-bottom:1px solid #f0e8ea;justify-content:space-between;align-items:center;gap:20px;padding:15px 2px;display:flex}.day-type-row.editable{grid-template-columns:minmax(220px,1.6fr) minmax(150px,.7fr) auto;align-items:end;display:grid}.day-type-row label{gap:5px;display:grid}.day-type-row label span,.minutes-field span{color:#80747a;font-size:12px}.minutes-field input{width:100%}.text-action{cursor:pointer;color:#8f2435;background:0 0;border:0;padding:9px 4px;font-weight:700}.text-action.danger{color:#a84848}.text-action:disabled{color:#b5abad;cursor:not-allowed}.weekday-rules{display:grid}.weekday-row{border-bottom:1px solid #f0e8ea;grid-template-columns:130px minmax(220px,1fr) 150px;align-items:center;gap:16px;padding:12px 2px;display:grid}.check-field{color:#62565b;align-items:center;gap:8px;font-size:13px;display:flex}.check-field input{width:17px;height:17px;accent-color:var(--brand);padding:0}.attribute-panel{gap:20px;display:grid}.attribute-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.attribute-grid div{background:#fcfafb;border:1px solid #ebe3e5;border-radius:12px;gap:7px;padding:16px;display:grid}.attribute-grid span{color:#71666a;font-size:13px;line-height:1.45}.hint{color:#7d7276;margin:16px 0 0;font-size:13px}.entry-list{display:grid}.entry-row{border-bottom:1px solid #f0e8ea;grid-template-columns:minmax(150px,.9fr) minmax(260px,2fr) minmax(110px,.5fr);align-items:center;gap:16px;padding:14px 2px;display:grid}.entry-row>div{gap:3px;display:grid}.entry-row span{color:#81757a;font-size:12px}.entry-description{color:#51464a;line-height:1.4}.entry-row-actions{grid-template-columns:minmax(140px,.8fr) minmax(240px,1.8fr) 110px auto}.entry-totals{color:#74686d;flex-wrap:wrap;gap:12px;font-size:12px;display:flex}.entry-totals span{background:#f8f3f4;border-radius:999px;padding:6px 10px}.entries-layout{grid-template-columns:minmax(330px,.75fr) minmax(520px,1.25fr);align-items:start;gap:18px;display:grid}.entry-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-top:18px;display:grid}.entry-form label{gap:6px;display:grid}.entry-form label>span{color:#74686d;font-size:12px;font-weight:700}.entry-description-field{grid-column:1/-1}.entry-submit{grid-column:1/-1;justify-self:start}.entry-message{margin:16px 0 0}.calendar-content{flex-direction:column;height:100vh;padding-top:22px;padding-bottom:20px;display:flex;overflow:hidden}.calendar-content .page-header{flex:none;margin-bottom:14px}.calendar-content h1{font-size:clamp(27px,2.5vw,34px)}.calendar-layout{flex:1;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:14px;min-height:0;display:grid;position:relative}.calendar-layout.has-editor{grid-template-columns:minmax(0,1fr) 338px}.calendar-panel{flex-direction:column;min-width:0;height:100%;min-height:0;padding:18px;display:flex;overflow:hidden}.calendar-toolbar{flex:none;justify-content:space-between;align-items:center;gap:14px;padding-bottom:12px;display:flex}.calendar-heading{align-items:center;gap:22px;min-width:0;display:flex}.calendar-title{text-transform:capitalize;white-space:nowrap}.calendar-legend{color:#776d71;flex-wrap:wrap;gap:5px 10px;font-size:10px;line-height:1;display:flex}.calendar-legend span{white-space:nowrap;align-items:center;gap:4px;display:inline-flex}.legend-swatch{border:1px solid #0000000d;border-radius:3px;width:9px;height:9px}.legend-swatch.red{background:#fdebed}.legend-swatch.orange{background:#fff0dd}.legend-swatch.blue{background:#eaf2fc}.legend-swatch.green{background:#eaf6ec}.calendar-actions{flex:none;gap:7px;display:flex}.calendar-actions .secondary-action{min-width:42px;padding:8px 11px}.calendar-loading{z-index:3;margin:0;position:absolute;top:72px;left:18px;right:18px}.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));display:grid}.calendar-head{color:#786d72;text-align:center;text-transform:uppercase;border-top:1px solid #eee6e8;border-bottom:1px solid #eee6e8;flex:none;font-size:11px;font-weight:800}.calendar-head div{padding:7px 4px}.month-grid{border-left:1px solid #e9e1e4;flex:1;grid-auto-rows:minmax(0,1fr);min-height:0}.calendar-cell{border:1px solid #e9e1e4;border-top:0;border-left:0;min-width:0;min-height:0}.calendar-cell.empty{background:#fcfbfb}.day-cell{--day-bg:#fff;--day-accent:#274d72;background:var(--day-bg);text-align:left;color:#352b2f;cursor:pointer;flex-direction:column;gap:5px;padding:7px 8px;transition:filter .12s,box-shadow .12s;display:flex}.day-cell:hover{filter:brightness(.985)}.day-cell.today{box-shadow:inset 0 0 0 2px var(--brand)}.day-tone-white{--day-bg:#fff;--day-accent:#274d72}.day-tone-red{--day-bg:#fdebed;--day-accent:#b23b4d}.day-tone-orange{--day-bg:#fff0dd;--day-accent:#c16a18}.day-tone-blue{--day-bg:#eaf2fc;--day-accent:#4c75a7}.day-tone-green{--day-bg:#eaf6ec;--day-accent:#4d8659}.day-topline{justify-content:space-between;align-items:start;gap:6px;min-height:24px;display:flex}.day-topline strong{font-size:16px;line-height:1}.day-top-actions{justify-content:flex-end;align-items:flex-start;gap:3px;min-width:0;display:flex}.day-type-label{color:#776d71;text-align:right;max-width:86px;font-size:9px;line-height:1.15}.day-flags{flex-wrap:wrap;align-items:center;gap:4px;min-height:18px;display:flex}.calendar-symbol{border-radius:7px;place-items:center;width:20px;height:20px;display:inline-grid}.calendar-symbol svg{width:15px;height:15px}.calendar-symbol.remote{color:var(--day-accent)}.calendar-symbol.guard{color:#a76410;background:#ffffff7a}.calendar-symbol.manual{color:#8e2637;width:16px;height:16px}.calendar-symbol.manual svg{width:12px;height:12px}.mini-badge{color:#6f5f65;background:#ffffffa6;border-radius:999px;padding:3px 6px;font-size:8px;font-weight:800}.day-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin-top:auto;display:grid}.day-metrics span{text-align:center;background:#ffffff9e;border-radius:6px;gap:0;padding:4px 2px;display:grid}.day-metrics b{font-size:11px;line-height:1.1}.day-metrics small{color:#8b8084;font-size:7px;line-height:1.1}.guard-total{color:#8a5817;white-space:nowrap;text-overflow:ellipsis;font-size:8px;font-weight:700;overflow:hidden}.day-editor{z-index:62;align-self:start;height:fit-content;max-height:100%;padding:18px;position:relative}.editor-heading{padding-bottom:13px}.editor-heading h2{text-transform:capitalize}.editor-fields{gap:11px;padding-top:14px;display:grid}.editor-fields>label:not(.check-field){gap:5px;display:grid}.editor-fields>label>span{color:#74686d;font-size:11px;font-weight:700}.editor-check{padding:5px 0}.restore-rule{color:#8c2435;cursor:pointer;background:0 0;border:0;margin-top:10px;padding:5px 0;font-size:12px;font-weight:700}.editor-message{margin:9px 0 0;padding:10px 12px}.editor-footer{justify-content:flex-end;gap:8px;margin-top:13px;display:flex}.editor-backdrop{display:none}.toast{z-index:90;color:#fff;background:#2f6c3c;border-radius:10px;padding:10px 14px;font-size:13px;font-weight:700;position:fixed;bottom:24px;right:26px;box-shadow:0 10px 30px #18361e38}@media (width<=1220px){.calendar-heading{gap:14px}.calendar-legend{max-width:360px}.day-type-label{max-width:72px}}@media (width<=1100px){.calendar-layout.has-editor{grid-template-columns:1fr}.day-editor{z-index:72;width:min(360px,100vw - 48px);max-height:calc(100vh - 32px);position:fixed;top:50%;right:24px;overflow:hidden;transform:translateY(-50%);box-shadow:0 22px 70px #34121b42}.editor-backdrop{z-index:70;background:#27161c47;border:0;padding:0;display:block;position:fixed;inset:0}.entries-layout{grid-template-columns:1fr}.calendar-legend{display:none}}@media (height<=760px){.calendar-content{padding-top:14px;padding-bottom:12px}.calendar-content .page-header{margin-bottom:9px}.calendar-content .page-header .eyebrow{margin-bottom:3px}.calendar-toolbar{padding-bottom:8px}.calendar-head div{padding:5px 3px}.day-cell{gap:3px;padding:5px 6px}.day-topline strong{font-size:14px}.day-flags{min-height:15px}.calendar-symbol{width:17px;height:17px}.calendar-symbol svg{width:13px;height:13px}.day-metrics span{padding:2px}.day-metrics b{font-size:10px}.day-editor{padding:15px}.editor-fields{gap:8px;padding-top:10px}}@media (width<=900px){.content{padding:22px 18px 42px}.calendar-content{padding-top:16px;padding-bottom:14px}.page-header{margin-bottom:18px}.day-type-row.editable{grid-template-columns:1fr 170px auto}.weekday-row{grid-template-columns:100px 1fr 135px}.attribute-grid{grid-template-columns:1fr}.day-type-label,.day-metrics small{display:none}.entry-row,.entry-row-actions{grid-template-columns:1fr 1fr}.entry-description{grid-area:2/1/auto/-1}}@media (hover:none){.sidebar-touch-backdrop{z-index:45;background:0 0;border:0;padding:0;display:block;position:fixed;inset:0}}@media (width<=650px){.sidebar{width:64px;padding-left:8px;padding-right:8px}.sidebar.expanded{width:230px}.content{width:calc(100% - 64px);margin-left:64px;padding:18px 12px 36px}.calendar-content{padding:12px 8px}.page-header{align-items:flex-start}.page-header>.primary-action{display:none}.calendar-content .page-header{margin-bottom:8px}.calendar-content .page-header .eyebrow{display:none}.calendar-content h1{font-size:25px}.metrics{grid-template-columns:1fr}.field-preview{grid-template-columns:1fr 1fr}.panel-heading{align-items:flex-start}.day-type-row.editable{grid-template-columns:1fr;gap:10px}.weekday-row{grid-template-columns:1fr;gap:8px;padding:16px 2px}.entry-form{grid-template-columns:1fr}.entry-description-field,.entry-submit{grid-column:auto}.calendar-panel{padding:10px}.calendar-toolbar{padding-bottom:6px}.calendar-toolbar .eyebrow{display:none}.calendar-title{font-size:16px}.calendar-actions .secondary-action{min-width:34px;padding:7px 8px;font-size:12px}.calendar-head{font-size:9px}.calendar-head div{padding:4px 1px}.day-cell{padding:4px 3px}.day-topline strong{font-size:12px}.calendar-symbol{width:15px;height:15px}.calendar-symbol svg{width:11px;height:11px}.day-metrics{gap:1px}.day-metrics span{padding:2px 1px}.day-metrics b{font-size:9px}.mini-badge,.guard-total{display:none}.day-editor{width:calc(100vw - 24px);right:12px}}.app-shell:has(.nav-item.active[title=Resumen]){height:100dvh;min-height:100dvh;overflow:hidden}.app-shell:has(.nav-item.active[title=Resumen]) .content{flex-direction:column;height:100dvh;min-height:0;padding-top:22px;padding-bottom:20px;display:flex;overflow:hidden}.app-shell:has(.nav-item.active[title=Resumen]) .page-header{flex:none;margin-bottom:14px}.app-shell:has(.nav-item.active[title=Resumen]) .content>section{flex-direction:column;flex:auto;min-height:0;display:flex}.app-shell:has(.nav-item.active[title=Resumen]) .day-context{flex:none;margin-top:-4px;margin-bottom:12px}.app-shell:has(.nav-item.active[title=Resumen]) .metrics{flex:none;margin-bottom:14px}.app-shell:has(.nav-item.active[title=Resumen]) .metric-card{gap:7px;padding:16px 20px}.app-shell:has(.nav-item.active[title=Resumen]) .panel{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.app-shell:has(.nav-item.active[title=Resumen]) .panel-heading{flex:none;padding-bottom:14px}.app-shell:has(.nav-item.active[title=Resumen]) .empty-state{flex:auto;height:auto;min-height:0}.app-shell:has(.nav-item.active[title=Resumen]) .entry-list{overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}@media (height<=760px){.app-shell:has(.nav-item.active[title=Resumen]) .content{padding-top:16px;padding-bottom:14px}.app-shell:has(.nav-item.active[title=Resumen]) .page-header{margin-bottom:10px}:is(.app-shell:has(.nav-item.active[title=Resumen]) .day-context,.app-shell:has(.nav-item.active[title=Resumen]) .metrics){margin-bottom:10px}.app-shell:has(.nav-item.active[title=Resumen]) .metric-card{padding:13px 18px}.app-shell:has(.nav-item.active[title=Resumen]) .panel{padding:18px}}.auth-screen{background:#f4f7fa;place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{background:#fff;border:1px solid #dfe6ed;border-radius:18px;gap:22px;width:min(440px,100%);padding:28px;display:grid;box-shadow:0 12px 38px #142a4114}.auth-brand{align-items:center;gap:12px;display:flex}.auth-brand .brand-mark{color:#fff;background:#163a5f}.auth-brand strong,.auth-brand span{display:block}.auth-brand strong{font-size:18px}.auth-brand div>span{color:#6f8192;margin-top:2px;font-size:13px}.auth-form{gap:14px;display:grid}.auth-form label{gap:7px;display:grid}.auth-form label>span{color:#526575;font-size:13px;font-weight:700}.auth-form input{color:#182430;background:#fff;border:1px solid #cfd9e2;border-radius:10px;width:100%;padding:11px 12px}.auth-form input[readonly]{color:#526575;background:#f7f9fb}.auth-form input:focus{border-color:#1b6c9b;outline:3px solid #1b6c9b24}.auth-submit{cursor:pointer;width:100%}.secondary-action.auth-submit{color:#24445f;background:#fff;border:1px solid #c7d5e1;border-radius:10px;padding:11px 16px;font-weight:700}.auth-switch{color:#1b6c9b;font:inherit;cursor:pointer;text-align:center;background:0 0;border:0;padding:0;font-size:13px;font-weight:700}.auth-switch:disabled{opacity:.5;cursor:default}.auth-divider{color:#8a98a5;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;font-size:12px;display:grid}.auth-divider:before,.auth-divider:after{content:"";background:#e4eaf0;height:1px}.auth-note,.auth-error,.auth-success{margin:0;font-size:13px;line-height:1.45}.auth-note{color:#6f8192}.auth-error{color:#a53131;background:#fff2f2;border:1px solid #f0cccc;border-radius:10px;padding:10px 12px}.auth-success{color:#285f42;background:#eff9f3;border:1px solid #c9e7d4;border-radius:10px;padding:10px 12px}.auth-brand .brand-mark{overflow:hidden;color:#0000!important;box-shadow:none!important;background-image:url(/ayudante-home-180.png)!important;background-position:50%!important;background-repeat:no-repeat!important;background-size:cover!important;font-size:0!important;line-height:0!important}.sidebar{padding-top:4px!important}.sidebar .brand{width:72px;margin-left:-10px;overflow:visible;gap:8px!important;min-height:96px!important;padding:0!important}.sidebar.expanded .brand{width:100%;margin-left:0}.sidebar .brand-mark{color:#0000!important;width:72px!important;height:92px!important;box-shadow:none!important;background-color:#0000!important;background-image:url(/dragon-sidebar-final.png?v=2)!important;background-position:top!important;background-repeat:no-repeat!important;background-size:contain!important;border-radius:0!important;flex:0 0 72px!important;font-size:0!important;line-height:0!important;overflow:visible!important}.sidebar.expanded .brand-mark{flex-basis:82px!important;width:82px!important;height:96px!important}
