*{box-sizing:border-box}html,body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111827;background:#f6f8fc}a{color:inherit;text-decoration:none}button,input,select{font:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:220px;background:linear-gradient(180deg,#1b2230,#111722);color:#fff;padding:24px 12px;display:flex;flex-direction:column;justify-content:flex-start;position:fixed;top:0;bottom:0;left:0}.brand{font-weight:800;font-size:32px;letter-spacing:.5px}.brand-sub{font-size:12px;color:#94a3b8;line-height:1.4;margin-top:2px}.nav{margin-top:28px}.nav-item{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:9px;color:#dbe3f0;margin-bottom:6px}.nav-item.active{background:#2b3650;color:#fff}.nav-icon{width:20px;text-align:center}.sidebar-bottom{border-top:1px solid #344055;padding-top:10px;margin-top:auto}.quote{color:#c1cad8;font-size:13px;font-style:italic;margin:36px 14px 0;line-height:1.5}.main{margin-left:220px;min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:66px;background:#fff;border-bottom:1px solid #e7ebf2;display:flex;align-items:center;justify-content:space-between;padding:0 32px;position:sticky;top:0;z-index:20}.search-global{background:#f4f6fa;border-radius:18px;padding:10px 16px;color:#667085;width:430px}.search-global input{border:0;background:transparent;outline:0;width:90%;color:#667085}.profile{display:flex;gap:10px;align-items:center}.profile:before{content:"SO";display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#6c63ff;color:white}.content{padding:28px 30px;flex:1}.footer{padding:18px 30px;border-top:1px solid #e5e9f1;background:#fff;display:flex;justify-content:space-between;color:#7c89a3;font-size:12px}.footer strong{color:#56627a}.page-heading h1,.project-compact h1{margin:0;font-size:34px;letter-spacing:-.8px}.muted{color:#77839a}.small{font-size:12px}.row-between{display:flex;justify-content:space-between;align-items:center}.btn{border:1px solid #d9dfeb;background:#fff;border-radius:9px;padding:10px 14px;cursor:pointer}.btn.primary{background:#4c46ed;color:#fff;border-color:#4c46ed}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}.project-card{background:#fff;border:1px solid #e6eaf0;border-radius:14px;padding:18px;box-shadow:0 8px 24px rgba(30,41,59,.04)}.project-card h2{margin:20px 0 8px;font-size:20px}.project-card p{margin:0 0 18px;color:#69758d}.status-pill{display:inline-flex;align-items:center;gap:8px;background:#def7e9;color:#11844f;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:600}.status-pill:before{content:"";width:8px;height:8px;background:#15a466;border-radius:50%}.progress-line{height:10px;background:#e9edf4;border-radius:999px;overflow:hidden;flex:1}.progress-fill{height:100%;border-radius:999px}.progress-fill.red{background:#ff5a63}.progress-fill.yellow{background:#f8b72f}.progress-fill.green{background:#2fc071}.progress-fill.blue{background:#4c46ed}.project-card .progress-line{margin:15px 0 9px}.back-link{color:#4944e8;font-size:14px}.project-compact{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-top:16px}.title-line{display:flex;align-items:center;gap:14px}.project-meta-inline{display:flex;gap:22px;flex-wrap:wrap;color:#536078;font-size:14px;margin-top:10px}.project-meta-inline a{color:#4039ea}.compact-actions{display:flex;align-items:center;gap:20px}.overall-box{display:flex;align-items:center;gap:10px;color:#4f5b70;font-size:13px}.overall-ring{--p:0;width:70px;height:70px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:conic-gradient(#4c46ed calc(var(--p)*1%),#e7ebf3 0);position:relative}.overall-ring:before{content:"";position:absolute;inset:9px;background:#fff;border-radius:50%}.overall-ring{isolation:isolate}.overall-ring::after{content:attr(data-label)}.overall-ring{font-size:0}.overall-ring span{position:relative}.overall-ring{color:#111827}.overall-ring::after{content:""}.overall-ring{font-size:0}.overall-ring:before{z-index:-1}.overall-ring{font-size:15px}.tabs{display:flex;gap:34px;border-bottom:1px solid #e1e6ef;margin-top:22px}.tab{background:none;border:0;padding:12px 0;cursor:pointer;color:#5e6a80}.tab.active{color:#423cea;border-bottom:2px solid #423cea;font-weight:600}.panel{background:#fff;border:1px solid #e8ebf1;border-radius:13px;margin-top:18px;padding:16px;box-shadow:0 8px 24px rgba(30,41,59,.035)}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.panel h2{margin:0;font-size:20px}.panel p{margin:3px 0 0;font-size:13px}.toolbar{display:flex;gap:10px;align-items:center}.search-input{width:240px;border:1px solid #dce2eb;border-radius:8px;padding:10px 12px;outline:0}.table-wrap{overflow:auto;margin-top:16px;border:1px solid #e2e7ef;border-radius:10px}table{width:100%;border-collapse:collapse;min-width:1000px}th,td{text-align:left;padding:13px 12px;border-bottom:1px solid #e5e9f0;border-right:1px solid #eef1f5;font-size:13px;vertical-align:middle}th{background:#f8fafc;font-weight:500;color:#3c465b}tbody tr:last-child td{border-bottom:0}.assignee-avatar{width:31px;height:31px;border-radius:50%;display:inline-grid;place-items:center;background:#e8edf5;color:#42516b;font-weight:700;margin-right:8px}.priority{display:inline-block;padding:7px 12px;border-radius:7px;font-weight:600}.priority-high{background:#fee6e7;color:#e43e48}.priority-normal{background:#fff2cf;color:#c58300}.priority-low{background:#e3f2ff;color:#286cae}.status-progress{display:flex;align-items:center;gap:9px;min-width:140px}.status-progress .progress-line{min-width:100px}.dots{border:0;background:transparent;font-weight:800;cursor:pointer;color:#34415d}.action-menu-wrap{position:relative}.action-menu{display:none;position:absolute;right:0;top:28px;background:white;border:1px solid #dfe4ec;border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.12);min-width:130px;z-index:10;overflow:hidden}.action-menu.open{display:block}.action-menu button{display:block;width:100%;border:0;background:white;text-align:left;padding:10px 12px;cursor:pointer}.action-menu button:hover{background:#f5f7fa}.action-menu .danger{color:#e5484d}.table-footer{padding-top:14px;color:#6f7c93;font-size:13px}.modal{display:none;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:100;align-items:center;justify-content:center;padding:20px}.modal.open{display:flex}.modal-card{width:min(620px,96vw);background:#fff;border-radius:14px;padding:20px;box-shadow:0 25px 70px rgba(0,0,0,.2)}.modal-card.wide{width:min(760px,96vw)}.modal-card h3{margin:0}.icon-btn{border:0;background:transparent;font-size:26px;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#4d5a71}.form-grid input,.form-grid select{border:1px solid #dbe1ea;border-radius:8px;padding:10px;outline:0}.form-grid .full{grid-column:1/-1}.modal-actions{display:flex!important;flex-direction:row!important;justify-content:flex-end}.help{font-size:12px;color:#7b879b}@media(max-width:1050px){.project-grid{grid-template-columns:1fr 1fr}.project-compact,.panel-head{flex-direction:column;align-items:stretch}.compact-actions{justify-content:space-between}}
.tab-panel{display:none}.tab-panel.active{display:block}
.notes-panel{padding:20px}.notes-form{margin-top:18px}.notes-editor{width:100%;min-height:300px;resize:vertical;border:1px solid #dfe4ec;border-radius:12px;padding:18px;outline:0;background:#fbfcfe;color:#202938;line-height:1.6}.notes-editor:focus{border-color:#8f8bf7;box-shadow:0 0 0 3px rgba(76,70,237,.08)}.notes-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px}
.calendar-panel{padding:18px}.calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.calendar-head h2{margin:0}.calendar-month{font-weight:700;color:#303b52;background:#f4f6fb;border:1px solid #e1e6ef;padding:9px 13px;border-radius:9px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));border:1px solid #e4e8ef;border-radius:12px;overflow:hidden;background:#fff}.calendar-weekday{padding:11px 12px;background:#f8fafc;border-right:1px solid #e9edf3;font-size:12px;font-weight:700;color:#68758b}.calendar-cell{min-height:112px;padding:10px;border-top:1px solid #edf0f5;border-right:1px solid #edf0f5;background:#fff}.calendar-cell.empty{background:#fbfcfe}.calendar-date{font-size:12px;color:#7a8699;margin-bottom:8px}.calendar-event{display:flex;align-items:flex-start;gap:7px;background:#f1f0ff;color:#3530b5;border-radius:7px;padding:7px 8px;margin-bottom:6px;font-size:11px;line-height:1.25}.calendar-dot{width:7px;height:7px;background:#4c46ed;border-radius:50%;margin-top:3px;flex:0 0 auto}
.gantt-panel{padding:18px}.gantt-range{font-size:12px;color:#667085;background:#f6f8fb;border:1px solid #e2e7ef;padding:8px 10px;border-radius:8px}.gantt-scroll{overflow:auto;margin-top:16px;border:1px solid #e3e7ee;border-radius:12px}.gantt-table{display:grid;grid-template-columns:220px minmax(900px,1fr);min-width:1120px}.gantt-header{background:#f8fafc;border-bottom:1px solid #e4e8ef;font-size:12px;font-weight:700;color:#56627a}.gantt-name-col{padding:12px 14px;border-right:1px solid #e8ecf2}.gantt-timeline-head{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(42px,1fr)}.gantt-day{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 0;border-right:1px solid #edf0f4}.gantt-day small{font-size:9px;color:#96a0b3;text-transform:uppercase;margin-top:2px}.gantt-row-name{min-height:58px;display:flex;flex-direction:column;justify-content:center;border-bottom:1px solid #edf0f4}.gantt-row-name span{font-size:11px;color:#8590a3;margin-top:3px}.gantt-track{position:relative;min-height:58px;border-bottom:1px solid #edf0f4;background:#fff}.gantt-grid-lines{position:absolute;inset:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(42px,1fr)}.gantt-grid-lines span{border-right:1px solid #f0f2f6}.gantt-bar{position:absolute;top:15px;height:28px;background:linear-gradient(90deg,#5b55f2,#7771f8);border-radius:8px;display:flex;align-items:center;min-width:38px;box-shadow:0 4px 10px rgba(76,70,237,.16);overflow:hidden}.gantt-bar span{color:#fff;font-size:10px;font-weight:600;padding:0 9px;white-space:nowrap}
@media(max-width:900px){.calendar-grid{grid-template-columns:repeat(7,minmax(90px,1fr))}.calendar-panel{overflow:auto}.notes-actions{align-items:flex-start;flex-direction:column}}

.calendar-nav{display:flex;align-items:center;gap:8px}
.calendar-nav-btn{width:34px;height:34px;display:grid;place-items:center;border:1px solid #e1e6ef;border-radius:8px;background:#fff;color:#4c46ed;font-weight:700}
.calendar-nav-btn:hover{background:#f6f7ff}
.calendar-nav-btn.disabled{color:#b8c0cf;background:#f8fafc;pointer-events:none}
.gantt-table{min-width:max-content}
.gantt-timeline-head{display:grid;grid-auto-flow:unset;grid-auto-columns:unset}
.gantt-grid-lines{display:grid;grid-auto-flow:unset;grid-auto-columns:unset}
.gantt-track{overflow:visible}

.calendar-actions,.gantt-head-actions{display:flex;align-items:center;gap:10px}
.print-btn{white-space:nowrap}

@media print{
  @page{size:landscape;margin:10mm}
  body{background:#fff!important}
  body *{visibility:hidden!important}
  .sidebar,.topbar,.footer,.tabs,.back-link,.project-compact{display:none!important}

  body.print-calendar #tab-calendario,
  body.print-calendar #tab-calendario *,
  body.print-gantt #tab-gantt,
  body.print-gantt #tab-gantt *{
    visibility:visible!important
  }

  body.print-calendar #tab-calendario,
  body.print-gantt #tab-gantt{
    display:block!important;
    position:absolute;
    inset:0;
    width:100%;
    margin:0!important;
    padding:0!important
  }

  body.print-calendar #tab-calendario .panel,
  body.print-gantt #tab-gantt .panel{
    box-shadow:none!important;
    border:0!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important
  }

  .print-btn,
  .calendar-nav-btn{display:none!important}

  body.print-calendar .calendar-grid{
    overflow:visible!important;
    grid-template-columns:repeat(7,1fr)!important;
    width:100%!important;
  }

  body.print-calendar .calendar-cell{
    min-height:95px!important;
    break-inside:avoid;
  }

  body.print-gantt .gantt-scroll{
    overflow:visible!important;
    border:0!important;
  }

  body.print-gantt .gantt-table{
    min-width:0!important;
    transform-origin:top left;
  }

  body.print-gantt .gantt-panel{
    overflow:visible!important;
  }

  .calendar-head,.panel-head{
    margin-bottom:10px!important;
  }

  .calendar-event,.gantt-bar{
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
}

/* SOAM v2.5 estable - mejoras sin arrastre */
.project-shortcuts{margin:6px 4px 0 16px;padding-left:12px;border-left:1px solid rgba(255,255,255,.10);max-height:42vh;overflow-y:auto}
.project-shortcut{display:flex;align-items:center;gap:8px;padding:7px 8px;margin:2px 0;border-radius:7px;color:#aeb8c9;font-size:12px;line-height:1.25}
.project-shortcut:hover{background:rgba(255,255,255,.06);color:#fff}.project-shortcut.current{background:rgba(91,85,242,.18);color:#fff}
.project-shortcut-dot{width:6px;height:6px;border-radius:50%;background:#64748b;flex:0 0 auto}.project-shortcut.current .project-shortcut-dot{background:#7c77ff}
.project-shortcut-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:145px}
.brand-area{min-width:0}.brand{display:block;color:#fff}.brand-logo-link{display:block}.brand-logo{display:block;max-width:165px;max-height:54px;object-fit:contain;object-position:left center}
.search-global-wrap{position:relative;width:430px}.search-global{width:100%;display:flex;align-items:center;gap:9px}.search-global input{border:0;background:transparent;outline:0;width:100%;color:#3f4a60}
.global-search-results{position:absolute;top:calc(100% + 9px);left:0;width:min(560px,72vw);max-height:420px;overflow:auto;background:#fff;border:1px solid #e1e6ef;border-radius:12px;box-shadow:0 18px 45px rgba(15,23,42,.14);padding:6px;z-index:100}
.global-search-item{display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:9px;color:#253047}.global-search-item:hover,.global-search-item.active{background:#f4f5ff}
.global-search-item-icon{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:#f0f2f8;color:#514bec;flex:0 0 auto}.global-search-item-body{display:flex;flex-direction:column;min-width:0;flex:1}
.global-search-item-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.global-search-item-top strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.global-search-item-top small{font-size:10px;color:#8a95a8;text-transform:uppercase}.global-search-item-sub{font-size:11px;color:#78849a;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filter-toggle-btn{display:inline-flex;align-items:center;gap:7px}.filter-count{min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:inline-grid;place-items:center;background:#4c46ed;color:#fff;font-size:10px;font-weight:700}
.filters-panel{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:14px;padding:14px;background:#f8fafc;border:1px solid #e5e9f0;border-radius:10px}.filters-panel[hidden]{display:none!important}
.filter-group{display:flex;flex-direction:column;gap:6px;min-width:160px}.filter-group label{font-size:11px;font-weight:700;color:#667085}.filter-group select{height:38px;border:1px solid #dce2eb;border-radius:8px;background:#fff;color:#344054;padding:0 10px;outline:0}
.action-menu{z-index:9999!important}.action-menu.open{display:block!important}
.logged-user{display:flex;align-items:center;gap:9px;white-space:nowrap}.logged-user-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#4c46ed;color:#fff;font-weight:700;font-size:12px}
.logged-user-info{display:flex;flex-direction:column;line-height:1.05}.logged-user-info strong{font-size:12px}.logged-user-info span{font-size:9px;color:#8a95a8;margin-top:3px}.logout-link{font-size:11px;color:#6d7890;padding:6px 8px;border-radius:7px}
.auth-body{min-height:100vh;margin:0;display:grid;place-items:center;background:#f4f6fa;padding:24px}.auth-card{width:min(430px,96vw);background:#fff;border:1px solid #e2e7ef;border-radius:16px;padding:28px;box-shadow:0 20px 55px rgba(15,23,42,.09)}
.auth-brand{text-align:center;margin-bottom:24px}.auth-brand img{max-width:180px;max-height:64px;object-fit:contain}.auth-brand-name{font-size:34px;font-weight:800;color:#1c2432}
.auth-form{display:flex;flex-direction:column;gap:14px;margin-top:18px}.auth-form label{display:flex;flex-direction:column;gap:7px;color:#4d5a71;font-size:12px}.auth-form input{border:1px solid #dce2eb;border-radius:9px;padding:11px 12px;outline:0}.auth-submit{margin-top:4px;width:100%}
.user-actions{display:flex;align-items:center;gap:7px}.user-actions form{margin:0}.small-btn{padding:7px 9px;font-size:11px}.role-pill,.user-state{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:600}
.role-pill.admin{background:#eeeafe;color:#5147d7}.role-pill.encargado{background:#eef2f7;color:#536078}.user-state.active{background:#e8f8ef;color:#16804d}.user-state.inactive{background:#f2f3f5;color:#8a93a2}
.settings-page{max-width:920px}.settings-card{background:#fff;border:1px solid #e5e9f0;border-radius:14px;overflow:hidden}.settings-section{padding:24px;border-bottom:1px solid #edf0f4}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}.settings-grid label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#4d5a71}.settings-grid label.full{grid-column:1/-1}.settings-grid input{width:100%;border:1px solid #dce2eb;border-radius:9px;padding:11px 12px}
.logo-upload-row{display:flex;align-items:center;gap:22px;margin-top:20px}.logo-preview{width:220px;height:90px;display:flex;align-items:center;justify-content:center;border:1px dashed #cfd6e2;border-radius:12px;background:#f8fafc;padding:14px}.logo-preview img{max-width:100%;max-height:100%;object-fit:contain}.settings-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px}
.settings-alert{padding:12px 14px;border-radius:9px;margin-bottom:14px;font-size:13px}.settings-alert.success{background:#e8f8ef;color:#147a49;border:1px solid #cdeedc}.settings-alert.error{background:#fff0f1;color:#bf3340;border:1px solid #ffd7da}
.status-pill.project-status.in-progress{background:#def7e9!important;color:#11844f!important}.status-pill.project-status.in-progress::before{background:#15a466!important}
.status-pill.project-status.completed{background:#e8ebff!important;color:#3f46c8!important}.status-pill.project-status.completed::before{background:#4c46ed!important}.project-card p strong{color:#536078;font-weight:600}
.overall-ring{display:grid!important;place-items:center!important;text-align:center!important;line-height:1!important;background:radial-gradient(circle at center,#fff 0 58%,transparent 59%),conic-gradient(#4c46ed calc(var(--p)*1%),#e7ebf3 0)!important;font-size:15px!important;font-weight:700!important;color:#111827!important}
.overall-ring::before,.overall-ring::after{content:none!important;display:none!important}
body.modal-open{overflow:hidden}.modal{z-index:10000!important}.modal.open{display:flex!important}
.gantt-bar{cursor:default!important;user-select:auto!important}.gantt-track{touch-action:auto!important}

/* Eliminación segura de proyecto */
.project-delete-zone{margin-top:20px;padding-top:18px;border-top:1px solid #eceff4;display:flex;align-items:center;justify-content:space-between;gap:18px}.project-delete-zone p{margin:5px 0 0}.btn.danger-btn{background:#fff;color:#d92d20;border-color:#f3b5b0}.btn.danger-btn:hover{background:#fff5f4;border-color:#e98279}@media(max-width:640px){.project-delete-zone{align-items:stretch;flex-direction:column}.project-delete-zone form,.project-delete-zone .danger-btn{width:100%}}
.delete-success{margin-bottom:16px;padding:12px 14px;border:1px solid #b7e4ca;background:#effaf4;color:#18794e;border-radius:9px;font-size:14px;font-weight:600}

/* V3.3 · edición discreta: la tabla conserva su apariencia normal */
.quick-edit-cell{cursor:text;position:relative}.quick-edit-cell:not(.is-editing):hover{background:#fafbff}.quick-edit-cell:not(.is-editing):hover:after{content:"✎";position:absolute;right:5px;top:5px;font-size:10px;color:#a1a9b8}.quick-edit-cell.is-editing{padding:7px 8px;background:#fff}.quick-edit-input{width:100%;min-width:90px;border:1px solid #8f8bf7;border-radius:7px;padding:6px 8px;background:#fff;outline:0;box-shadow:0 0 0 3px rgba(76,70,237,.07);font:inherit;color:inherit}.quick-edit-cell input[type="range"].quick-edit-input{padding:0;box-shadow:none;border:0;accent-color:#4c46ed;min-width:110px}.quick-progress-number{display:inline-block;margin-left:8px;min-width:38px;font-size:12px}.quick-edit-cell.is-saving{opacity:.65}.quick-edit-cell.is-error{background:#fff4f4}


/* V3.5 · impresión de entregables SIN duplicar títulos en pantalla */
@media print{
  body.print-deliverables .main{margin-left:0!important;width:100%!important}
  body.print-deliverables .content{padding:0!important;width:100%!important}

  /* El encabezado original del proyecto sí se imprime */
  body.print-deliverables .project-compact,
  body.print-deliverables .project-compact *{visibility:visible!important}
  body.print-deliverables .project-compact{
    display:flex!important;
    position:relative!important;
    width:100%!important;
    margin:0 0 14px 0!important;
    padding:0 0 12px 0!important;
    border-bottom:1px solid #dfe3ea!important;
  }
  body.print-deliverables .project-compact .btn{display:none!important}
  body.print-deliverables .project-meta-inline{gap:12px 18px!important}
  body.print-deliverables .project-meta-inline a{color:#111827!important}
  body.print-deliverables .overall-box{display:flex!important}

  /* Solo la sección de entregables */
  body.print-deliverables #tab-entregables,
  body.print-deliverables #tab-entregables *{visibility:visible!important}
  body.print-deliverables #tab-entregables{
    display:block!important;
    position:relative!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  body.print-deliverables #tab-entregables .panel{
    box-shadow:none!important;
    border:0!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
  }

  /* Conserva Lista de entregables, pero no los controles */
  body.print-deliverables #tab-entregables .panel-head{
    display:block!important;
    margin:0 0 10px 0!important;
  }
  body.print-deliverables #tab-entregables .toolbar,
  body.print-deliverables #filtersPanel,
  body.print-deliverables .table-footer{display:none!important}

  body.print-deliverables .table-wrap{overflow:visible!important;margin-top:10px!important}
  body.print-deliverables #deliverablesTable{
    width:100%!important;
    min-width:0!important;
    table-layout:auto!important;
    border-collapse:collapse!important;
    font-size:10px!important;
  }
  body.print-deliverables #deliverablesTable th,
  body.print-deliverables #deliverablesTable td{
    padding:7px 6px!important;
    border:1px solid #dfe3ea!important;
    background:#fff!important;
    color:#111827!important;
    break-inside:avoid;
  }
  body.print-deliverables #deliverablesTable th{background:#f3f4f6!important;font-weight:700!important}
  body.print-deliverables #deliverablesTable th:last-child,
  body.print-deliverables #deliverablesTable td:last-child{display:none!important}
  body.print-deliverables .quick-edit-cell:not(.is-editing):hover:after{display:none!important}
  body.print-deliverables .priority,
  body.print-deliverables .progress-fill,
  body.print-deliverables .assignee-avatar,
  body.print-deliverables .status-pill,
  body.print-deliverables .overall-ring{
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
}

/* V3.7 · herramientas avanzadas de entregables (discretas) */
.advanced-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.advanced-tools-wrap{position:relative}.advanced-tools-btn{border:0;background:transparent;color:#98a2b3;font-size:12px;padding:4px 6px;border-radius:6px;cursor:pointer}.advanced-tools-btn:hover{background:#f4f6f8;color:#667085}.advanced-tools-menu{display:none;position:absolute;right:0;bottom:28px;min-width:190px;background:#fff;border:1px solid #e3e7ee;border-radius:10px;box-shadow:0 12px 28px rgba(15,23,42,.12);padding:5px;z-index:40}.advanced-tools-menu.open{display:block}.advanced-tools-menu a,.advanced-tools-menu button{display:block;width:100%;border:0;background:transparent;color:#475467;text-align:left;padding:9px 10px;border-radius:7px;font-size:12px;cursor:pointer}.advanced-tools-menu a:hover,.advanced-tools-menu button:hover{background:#f7f8fa;color:#111827}.import-modal-card{max-height:88vh;overflow:auto}.import-help{max-width:650px;line-height:1.45;margin-top:6px!important}.import-upload-box{display:flex;align-items:end;gap:12px;margin-top:18px;padding:14px;border:1px dashed #d6dbe5;border-radius:10px;background:#fafbfc}.import-file-label{display:flex;flex-direction:column;gap:6px;flex:1;font-size:12px;color:#667085}.import-file-label input{border:1px solid #dbe1ea;border-radius:8px;padding:8px;background:#fff}.import-preview-status{margin-top:14px;padding:10px 12px;border-radius:8px;background:#f2f4f7;color:#344054;font-size:13px}.import-preview-status.ok{background:#ecfdf3;color:#027a48}.import-preview-status.warn{background:#fff7ed;color:#b54708}.import-preview-errors{margin-top:10px;padding:10px 12px;border:1px solid #fecaca;background:#fff5f5;color:#b42318;border-radius:8px;font-size:12px;line-height:1.5}.import-preview-table-wrap{margin-top:12px;overflow:auto;border:1px solid #eaecf0;border-radius:9px}.import-preview-table{min-width:760px}.import-preview-table th,.import-preview-table td{padding:8px 10px;font-size:12px}.import-confirm-actions{margin-top:14px}.import-flash{margin-top:12px;padding:10px 12px;border-radius:9px;font-size:13px}.import-flash.success{background:#ecfdf3;color:#027a48;border:1px solid #abefc6}.import-flash.error{background:#fff5f5;color:#b42318;border:1px solid #fecaca}@media(max-width:700px){.import-upload-box{flex-direction:column;align-items:stretch}}

/* SOAM v4.3 - Responsive móvil */
.mobile-menu-btn,.mobile-sidebar-overlay{display:none}

@media (max-width: 900px){
  html,body{overflow-x:hidden}
  .app-shell{display:block;min-height:100vh}
  .main{margin-left:0!important;width:100%;min-width:0}
  .content{padding:18px 14px 28px}

  .mobile-menu-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:42px;height:42px;border:1px solid #e1e6ef;border-radius:10px;background:#fff;color:#344054;font-size:22px;cursor:pointer}
  .topbar{height:auto;min-height:64px;padding:10px 14px;gap:10px;align-items:center}
  .search-global-wrap{flex:1;min-width:0}
  .search-global{width:100%!important;min-width:0;padding:9px 12px}
  .search-global input{width:calc(100% - 24px)}
  .logged-user{gap:8px}
  .logged-user-info,.logout-link{display:none}
  .logged-user-avatar{width:36px;height:36px;flex:0 0 36px}

  .sidebar{width:min(84vw,300px)!important;transform:translateX(-105%);transition:transform .24s ease;z-index:1200;box-shadow:18px 0 45px rgba(15,23,42,.18);padding-top:20px}
  body.mobile-nav-open .sidebar{transform:translateX(0)}
  .mobile-sidebar-overlay{display:block;position:fixed;inset:0;background:rgba(15,23,42,.38);opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:1190}
  body.mobile-nav-open .mobile-sidebar-overlay{opacity:1;pointer-events:auto}
  body.mobile-nav-open{overflow:hidden}

  .page-heading h1,.project-compact h1{font-size:28px;line-height:1.12}
  .row-between{gap:12px;align-items:flex-start}
  .page-heading.row-between{flex-direction:column}
  .project-grid{grid-template-columns:1fr!important;gap:12px;margin-top:16px}
  .project-card{padding:16px}

  .project-compact{margin-top:10px;gap:14px}
  .title-line{align-items:flex-start;gap:8px;flex-wrap:wrap}
  .project-meta-inline{gap:9px 14px;font-size:13px;margin-top:8px}
  .compact-actions{width:100%;gap:10px;align-items:center;justify-content:space-between!important}
  .compact-actions .btn{white-space:nowrap}
  .overall-ring{width:58px;height:58px}
  .overall-box{font-size:12px}

  .tabs{gap:24px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin-top:16px;padding:0 2px}
  .tabs::-webkit-scrollbar{display:none}
  .tab{flex:0 0 auto}

  .panel{padding:13px;margin-top:14px;border-radius:12px}
  .panel-head{gap:12px}
  .toolbar{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}
  .search-input{width:100%;min-width:0}
  .toolbar .btn{padding:9px 10px;white-space:nowrap}
  .toolbar .primary{grid-column:auto}

  .table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
  table{min-width:860px}
  th,td{padding:11px 10px}
  .status-progress{min-width:120px}
  .status-progress .progress-line{min-width:80px}

  .advanced-footer{align-items:flex-start;gap:8px;flex-wrap:wrap}
  .advanced-tools-menu{right:0;left:auto}

  .calendar-panel,.gantt-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .calendar-grid{min-width:720px}
  .gantt-table{min-width:max-content}

  .form-grid{grid-template-columns:1fr}
  .form-grid .full{grid-column:auto}
  .modal{padding:10px;align-items:flex-end}
  .modal-card,.modal-card.wide{width:100%;max-height:92vh;overflow:auto;border-radius:16px 16px 0 0}
  .modal-actions{position:sticky;bottom:-20px;background:#fff;padding-top:12px;padding-bottom:4px}

  .import-upload-box{flex-direction:column;align-items:stretch}
  .import-preview-table-wrap{max-width:100%}
  .project-delete-zone{align-items:stretch;flex-direction:column}
  .project-delete-zone form,.project-delete-zone .danger-btn{width:100%}
}

@media (max-width: 640px){
  .content{padding:14px 10px 24px}
  .topbar{padding:9px 10px}
  .search-global{font-size:13px}
  .page-heading h1,.project-compact h1{font-size:25px}
  .project-meta-inline{display:grid;grid-template-columns:1fr;gap:7px}
  .compact-actions{flex-direction:column;align-items:stretch}
  .compact-actions .btn{width:100%}
  .overall-box{justify-content:flex-start}
  .panel h2{font-size:18px}
  .toolbar{grid-template-columns:1fr auto}
  .toolbar .search-input{grid-column:1/-1}
  .toolbar .primary{grid-column:1/-1;width:100%}
  .toolbar .print-btn{grid-column:auto}
  .table-footer{font-size:12px}
  .advanced-footer{justify-content:space-between}
  .btn{padding:9px 11px}
  .project-card h2{font-size:18px}
}

/* v4.7 — Cronograma: rango real, colores por avance y marcador del día actual */
.gantt-day.is-today{
  position:relative;
  background:rgba(79,70,229,.10);
  color:#4338ca;
  font-weight:800;
}
.gantt-day.is-today::after{
  content:"HOY";
  position:absolute;
  bottom:2px;
  left:50%;
  transform:translateX(-50%);
  font-size:7px;
  letter-spacing:.05em;
  color:#4338ca;
}
.gantt-grid-lines span.is-today{
  background:rgba(79,70,229,.07);
}
.gantt-today-line{
  position:absolute;
  top:0;
  bottom:0;
  z-index:1;
  pointer-events:none;
  box-sizing:border-box;
  border-left:2px solid rgba(67,56,202,.75);
  background:rgba(79,70,229,.035);
}
.gantt-bar{
  z-index:2;
}
.gantt-bar.progress-start{
  background:linear-gradient(90deg,#ef4444,#f87171);
}
.gantt-bar.progress-mid{
  background:linear-gradient(90deg,#d9a20b,#f2bd2e);
}
.gantt-bar.progress-advanced{
  background:linear-gradient(90deg,#16a34a,#38b96a);
}
.gantt-bar.progress-done{
  background:linear-gradient(90deg,#315ee8,#5b75f2);
}

/* v4.9 - Calendario: descripción + proyecto y formato */
.calendar-event-text{display:flex;flex-direction:column;min-width:0;gap:2px}
.calendar-event-title{font-weight:700;white-space:normal;overflow-wrap:anywhere;color:inherit}
.calendar-event-meta{font-size:9.5px;line-height:1.2;color:#6f6aa8;font-weight:500;white-space:normal;overflow-wrap:anywhere}
@media (max-width:700px){.calendar-event{padding:6px 7px}.calendar-event-title{font-size:10.5px}.calendar-event-meta{font-size:9px}}

/* v5.0 - indicador automático del día actual en calendario */
.calendar-cell.calendar-today{background:#faf9ff;box-shadow:inset 0 0 0 1px rgba(76,70,237,.08)}
.calendar-date.calendar-date-today{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#4c46ed;color:#fff;font-weight:800;margin-top:-3px;margin-left:-4px;margin-bottom:5px;box-shadow:0 4px 10px rgba(76,70,237,.22)}
@media print{.calendar-date.calendar-date-today{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* =========================
   V5.2 · CONTENIDO ADICIONAL DEL ENTREGABLE
   Minimalista y discreto
========================= */
.row-actions-inline{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.detail-toggle{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  color:#777c8a;
  font-size:18px;
  line-height:1;
  border-radius:7px;
  cursor:pointer;
  transition:background .15s ease,color .15s ease,transform .15s ease;
}
.detail-toggle:hover{background:#f3f4f8;color:#4438ca}
.detail-toggle.open{transform:rotate(180deg);color:#4438ca}
.deliverable-details-row[hidden]{display:none!important}
.deliverable-details-row td{
  padding:0!important;
  border-top:0!important;
  background:#fafafd;
}
.deliverable-details-card{
  display:grid;
  grid-template-columns:minmax(280px,1fr) minmax(280px,1fr);
  gap:18px;
  padding:16px 20px 18px;
  margin:0 10px 12px;
  border:1px solid #ececf3;
  border-top:0;
  border-radius:0 0 12px 12px;
  background:#fbfbfd;
}
.detail-field{min-width:0}
.detail-field>label,.detail-field-head label{
  display:block;
  margin:0;
  font-size:12px;
  font-weight:700;
  color:#555b68;
}
.detail-field-head{
  min-height:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}
.detail-link-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.detail-textarea,.detail-input{
  width:100%;
  border:1px solid #e2e4ea;
  background:#fff;
  border-radius:8px;
  color:#2d3038;
  font:inherit;
  outline:none;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.detail-textarea{min-height:150px;resize:vertical;padding:10px 11px;line-height:1.45}
.detail-input{height:38px;padding:0 10px}
.detail-textarea:focus,.detail-input:focus{
  border-color:#b8b3ed;
  box-shadow:0 0 0 3px rgba(85,72,205,.08);
}
.detail-mini-btn{
  border:0;
  background:transparent;
  color:#686d7a;
  font-size:11px;
  font-weight:600;
  padding:4px 6px;
  border-radius:6px;
  cursor:pointer;
  white-space:nowrap;
}
.detail-mini-btn:hover{background:#f0f0f7;color:#4438ca}
.detail-platforms-field{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.platform-checks{
  display:flex;
  flex-wrap:wrap;
  gap:7px 12px;
}
.platform-checks label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#555b68;
  font-size:12px;
  cursor:pointer;
}
.platform-checks input{accent-color:#5147d9}
.detail-save-state{
  min-height:16px;
  color:#898e99;
  font-size:11px;
}
.detail-save-state.saved{color:#27825c}
.detail-save-state.error{color:#c13f45}
.detail-save-state.saving{color:#787d89}

@media(max-width:900px){
  .deliverable-details-card{
    grid-template-columns:1fr;
    gap:14px;
    padding:14px;
    margin:0 6px 10px;
  }
}

@media print{
  .deliverable-details-row{display:none!important}
  .detail-toggle{display:none!important}
}

/* SOAM v5.5 - Estado discreto de autoguardado en Notas */
.notes-actions-autosave{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px}
.notes-save-state{font-size:12px;font-weight:600;color:#6b7280;white-space:nowrap}
.notes-save-state.saving{color:#8b5cf6}
.notes-save-state.saved{color:#16a34a}
.notes-save-state.error{color:#dc2626}
@media (max-width:700px){.notes-actions-autosave{align-items:flex-start;flex-direction:column;gap:4px}.notes-save-state{align-self:flex-end}}

/* V5.7 · Gestión general */
.global-project-link{color:#4338ca;font-weight:700;white-space:nowrap}.global-project-link:hover{text-decoration:underline}.global-deliverables-table{min-width:1220px}.global-open-project{display:inline-flex;align-items:center;justify-content:center;min-width:36px;text-decoration:none}.global-deliverables-table .deliverable-details-row td{background:#fbfcff}.tab-panel#tab-projects{padding-top:0}
@media(max-width:900px){.global-deliverables-table{min-width:1180px}}

/* v5.8 - colores por proyecto en vista general */
.project-color-legend{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;max-width:760px}.project-color-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:var(--pc-bg);border:1px solid var(--pc-border);color:var(--pc-text);font-size:10px;font-weight:650;line-height:1.1}.project-color-chip i{width:7px;height:7px;border-radius:50%;background:var(--pc-dot);flex:0 0 auto}.project-colored-event{background:var(--pc-bg)!important;color:var(--pc-text)!important;border:1px solid var(--pc-border)!important}.project-colored-event .calendar-dot{background:var(--pc-dot)!important}.project-colored-event .calendar-event-title,.project-colored-event .calendar-event-meta{color:var(--pc-text)!important}.gantt-project-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;vertical-align:1px}.project-accent-bar{border-left:5px solid var(--project-accent)!important}.project-accent-bar span{padding-left:7px!important}@media(max-width:700px){.project-color-legend{gap:4px}.project-color-chip{font-size:9px;padding:3px 6px}.calendar-head{align-items:flex-start}.project-color-legend{max-width:100%}}


/* SOAM v5.14 - Login oscuro con logo visible */
.auth-body{
  min-height:100vh;
  margin:0;
  display:grid;
  place-items:center;
  background:linear-gradient(180deg,#eef2f8 0%,#f7f8fb 100%);
  padding:24px;
}
.auth-card.auth-card-login{
  width:min(430px,94vw);
  padding:0;
  overflow:hidden;
  background:#fff;
  border:1px solid #dfe5ee;
  border-radius:18px;
  box-shadow:0 22px 60px rgba(15,23,42,.13);
}
.auth-brand.auth-brand-dark{
  margin:0;
  padding:28px 28px 24px;
  text-align:center;
  background:linear-gradient(160deg,#0f1b31 0%,#162743 100%);
  color:#fff;
}
.auth-brand.auth-brand-dark img{
  display:block;
  max-width:220px;
  max-height:82px;
  width:auto;
  height:auto;
  margin:0 auto 12px;
  object-fit:contain;
  filter:none;
}
.auth-brand.auth-brand-dark .auth-brand-name{
  color:#fff;
}
.auth-brand.auth-brand-dark p{
  margin:8px 0 0;
  color:#d7dfec;
  font-size:14px;
}
.auth-content{
  padding:26px 28px 28px;
}
.auth-content h1{
  margin:0 0 8px;
  color:#111827;
}
.auth-content>.muted{
  margin:0 0 18px;
}
.auth-content .auth-form{margin-top:0}
@media(max-width:600px){
  .auth-body{display:flex;align-items:flex-start;justify-content:center;padding:20px 14px 28px}
  .auth-card.auth-card-login{width:100%;max-width:430px;margin-top:18px}
  .auth-brand.auth-brand-dark{padding:24px 20px 20px}
  .auth-brand.auth-brand-dark img{max-width:190px;max-height:72px}
  .auth-content{padding:24px 20px 26px}
}

/* SOAM v5.15 - Guion + Copy lado a lado; Referencia + Publicar en debajo */
.detail-script-field,.detail-copy-field{grid-row:1}
.detail-reference-field,.detail-platforms-field{grid-row:2}
.detail-reference-field{align-self:start}
.detail-platforms-field{align-self:start;padding-top:1px}
@media(max-width:900px){
  .detail-script-field,.detail-copy-field,.detail-reference-field,.detail-platforms-field{grid-row:auto}
  .detail-textarea{min-height:130px}
}

/* SOAM v5.21 - Tabla general compacta real al 100% de zoom */
@media (min-width: 901px){
  #tab-entregables .panel{padding:12px}
  #tab-entregables .table-wrap{overflow-x:hidden}
  #tab-entregables .global-deliverables-table{
    width:100%;
    min-width:0!important;
    table-layout:fixed;
  }
  #tab-entregables .global-deliverables-table th,
  #tab-entregables .global-deliverables-table td{
    padding:8px 6px;
    font-size:11px;
    line-height:1.2;
    overflow-wrap:anywhere;
  }
  #tab-entregables .global-deliverables-table th:nth-child(1),
  #tab-entregables .global-deliverables-table td:nth-child(1){width:3%;text-align:center}
  #tab-entregables .global-deliverables-table th:nth-child(2),
  #tab-entregables .global-deliverables-table td:nth-child(2){width:14%}
  #tab-entregables .global-deliverables-table th:nth-child(3),
  #tab-entregables .global-deliverables-table td:nth-child(3){width:17%}
  #tab-entregables .global-deliverables-table th:nth-child(4),
  #tab-entregables .global-deliverables-table td:nth-child(4){width:10%}
  #tab-entregables .global-deliverables-table th:nth-child(5),
  #tab-entregables .global-deliverables-table td:nth-child(5){width:11%}
  #tab-entregables .global-deliverables-table th:nth-child(6),
  #tab-entregables .global-deliverables-table td:nth-child(6){width:11%}
  #tab-entregables .global-deliverables-table th:nth-child(7),
  #tab-entregables .global-deliverables-table td:nth-child(7){width:11%}
  #tab-entregables .global-deliverables-table th:nth-child(8),
  #tab-entregables .global-deliverables-table td:nth-child(8){width:8%}
  #tab-entregables .global-deliverables-table th:nth-child(9),
  #tab-entregables .global-deliverables-table td:nth-child(9){width:10%}
  #tab-entregables .global-deliverables-table th:nth-child(10),
  #tab-entregables .global-deliverables-table td:nth-child(10){width:5%;text-align:center}

  #tab-entregables .global-project-link{
    white-space:normal;
    line-height:1.2;
    font-size:10.5px;
  }
  #tab-entregables .global-deliverables-table td:nth-child(3) strong{font-size:11px;line-height:1.2}
  #tab-entregables .global-deliverables-table td:nth-child(5),
  #tab-entregables .global-deliverables-table td:nth-child(6){white-space:nowrap;font-size:10.5px}

  #tab-entregables .assignee-avatar{
    width:24px;height:24px;margin-right:4px;font-size:10px;
  }
  #tab-entregables .quick-assignee-name{font-size:10.5px}
  #tab-entregables .priority{padding:5px 7px;font-size:10px}
  #tab-entregables .status-progress{min-width:0;gap:5px}
  #tab-entregables .status-progress .progress-line{min-width:0;height:7px}
  #tab-entregables .status-progress span{font-size:10px;white-space:nowrap}
  #tab-entregables .row-actions-inline{gap:2px;justify-content:center}
  #tab-entregables .detail-toggle,
  #tab-entregables .global-open-project{min-width:22px;width:22px;height:24px;padding:0;font-size:11px}

  #tab-entregables .panel-head{gap:10px}
  #tab-entregables .toolbar{gap:6px}
  #tab-entregables .search-input{width:190px;padding:8px 10px;font-size:11px}
  #tab-entregables .btn{padding:8px 10px;font-size:11px}
}

/* En pantallas angostas se mantiene desplazamiento horizontal en vez de cortar columnas */
@media (max-width:900px){
  #tab-entregables .table-wrap{overflow-x:auto}
  #tab-entregables .global-deliverables-table{min-width:1040px!important;table-layout:auto}
}

/* === SOAM v5.23 · Hosting y dominios === */
.hosting-heading{align-items:flex-end}.hosting-years-bar{display:flex;align-items:center;justify-content:space-between;margin:4px 0 14px}.hosting-year-tabs{display:flex;gap:8px;flex-wrap:wrap}.hosting-year-tab{display:inline-flex;padding:8px 14px;border:1px solid var(--border,#e5e7eb);border-radius:10px;color:#697386;text-decoration:none;font-weight:700;background:#fff}.hosting-year-tab.active{background:#4b46ee;color:#fff;border-color:#4b46ee}.hosting-panel-head{gap:16px}.hosting-toolbar{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.hosting-filter-select{border:1px solid #dfe3ea;border-radius:10px;padding:9px 10px;background:#fff;color:#596273}.hosting-table-wrap{overflow:auto}.hosting-table{width:100%;min-width:1480px;border-collapse:separate;border-spacing:0;font-size:13px}.hosting-table th{font-size:12px;color:#5f6878;font-weight:700;background:#f8fafc;position:sticky;top:0;z-index:1}.hosting-table th,.hosting-table td{padding:7px;border-bottom:1px solid #e7eaf0;vertical-align:middle}.hosting-table th:first-child,.hosting-table td:first-child{padding-left:10px}.hosting-table input,.hosting-table select,.hosting-table textarea{font:inherit}.hosting-input,.hosting-select,.hosting-observation{width:100%;box-sizing:border-box;border:1px solid transparent;background:transparent;border-radius:8px;padding:7px 8px;color:#313847}.hosting-input:hover,.hosting-select:hover,.hosting-observation:hover,.hosting-input:focus,.hosting-select:focus,.hosting-observation:focus{border-color:#d9ddeb;background:#fff;outline:none;box-shadow:0 0 0 2px rgba(76,70,237,.06)}.hosting-select{min-width:105px}.hosting-status{font-weight:700}.status-pago{background:#e6f2d8!important;color:#496331}.status-en-cobro{background:#fff0bd!important;color:#745816}.status-no-cobrado{background:#e5eefc!important;color:#415b7b}.status-cancelado{background:#ffdeda!important;color:#ad342f}.hosting-money{min-width:86px;text-align:right}.hosting-date{min-width:130px}.hosting-observation{min-width:180px;resize:vertical}.hosting-delete-btn{border:0;background:transparent;color:#9b5360;font-size:22px;line-height:1;cursor:pointer}.hosting-save-state{display:block;min-height:16px;font-size:10px;color:#2f8a57}.hosting-save-state.error{color:#c43e3e}.hosting-table tfoot td{background:#fbfcfe;font-weight:600}.hosting-total-note{font-size:11px;color:#8a93a3;font-weight:400}.hosting-empty td{text-align:center;padding:30px;color:#8a93a3}.hosting-dialog{border:0;border-radius:16px;padding:0;box-shadow:0 22px 70px rgba(26,31,44,.2);max-width:430px;width:calc(100% - 32px)}.hosting-dialog::backdrop{background:rgba(20,25,40,.32)}.hosting-dialog form{padding:24px;display:grid;gap:12px}.hosting-dialog input[type=number]{border:1px solid #dfe3ea;border-radius:10px;padding:10px}.hosting-copy-year{display:flex;gap:8px;align-items:flex-start}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
@media(max-width:900px){.hosting-heading{align-items:flex-start}.hosting-panel-head{align-items:flex-start}.hosting-toolbar{justify-content:flex-start}.hosting-table{min-width:1350px}}
@media print{body.print-hosting .sidebar,body.print-hosting .topbar,body.print-hosting .page-heading,body.print-hosting .hosting-years-bar,body.print-hosting .no-print,body.print-hosting .quote{display:none!important}body.print-hosting .main,body.print-hosting .content{margin:0!important;padding:0!important;width:100%!important;max-width:none!important}body.print-hosting .hosting-panel{border:0!important;box-shadow:none!important;padding:0!important}body.print-hosting .hosting-table-wrap{overflow:visible!important}body.print-hosting .hosting-table{min-width:0!important;width:100%!important;font-size:8.5pt!important}body.print-hosting .hosting-table th,body.print-hosting .hosting-table td{padding:4px!important}body.print-hosting .hosting-table input,body.print-hosting .hosting-table select,body.print-hosting .hosting-table textarea{border:0!important;padding:0!important;background:transparent!important;appearance:none!important;-webkit-appearance:none!important;color:#000!important;resize:none!important}body.print-hosting .hosting-table .status-pago,body.print-hosting .hosting-table .status-en-cobro,body.print-hosting .hosting-table .status-no-cobrado,body.print-hosting .hosting-table .status-cancelado{background:transparent!important}body.print-hosting .print-subtitle{display:block!important}@page{size:landscape;margin:9mm}}
.hosting-concept{background:#e7edf4!important;color:#485766}.hosting-tax.tax-sin-igv{background:#e6dcff!important;color:#5b478f}.hosting-tax.tax-con-igv{background:#dfe9ff!important;color:#405e9c}.hosting-package.package-básico{background:#ffe0d8!important;color:#a24a3d}.hosting-package.package-empresarial{background:#e6f2d8!important;color:#526c35}.hosting-package.package-premium{background:#ffc7b9!important;color:#9a3f2d}


/* === SOAM v5.24 · Hosting y dominios compacto en escritorio === */
@media (min-width: 901px){
  .hosting-table-wrap{overflow-x:hidden}
  .hosting-table{width:100%;min-width:0!important;table-layout:fixed;font-size:11.5px}
  .hosting-table th,.hosting-table td{padding:5px 4px}
  .hosting-table th{font-size:10.5px;line-height:1.15}
  .hosting-table .hosting-input,
  .hosting-table .hosting-select,
  .hosting-table .hosting-observation{min-width:0!important;width:100%;padding:6px 5px;font-size:11.5px}
  .hosting-table .hosting-date{min-width:0!important;font-size:10.8px}
  .hosting-table .hosting-money{min-width:0!important;padding-left:3px;padding-right:3px}
  .hosting-table .hosting-observation{min-width:0!important;resize:vertical}
  .hosting-table th:nth-child(1), .hosting-table td:nth-child(1){width:3%}
  .hosting-table th:nth-child(2), .hosting-table td:nth-child(2){width:10%}
  .hosting-table th:nth-child(3), .hosting-table td:nth-child(3){width:13%}
  .hosting-table th:nth-child(4), .hosting-table td:nth-child(4){width:11%}
  .hosting-table th:nth-child(5), .hosting-table td:nth-child(5){width:9%}
  .hosting-table th:nth-child(6), .hosting-table td:nth-child(6){width:5.5%}
  .hosting-table th:nth-child(7), .hosting-table td:nth-child(7){width:5.5%}
  .hosting-table th:nth-child(8), .hosting-table td:nth-child(8){width:5.5%}
  .hosting-table th:nth-child(9), .hosting-table td:nth-child(9){width:9%}
  .hosting-table th:nth-child(10), .hosting-table td:nth-child(10){width:7%}
  .hosting-table th:nth-child(11), .hosting-table td:nth-child(11){width:8%}
  .hosting-table th:nth-child(12), .hosting-table td:nth-child(12){width:9%}
  .hosting-table th:nth-child(13), .hosting-table td:nth-child(13){width:4.5%}
  .hosting-status{font-size:11px!important}
  .hosting-delete-btn{font-size:18px}
  .hosting-panel{padding-left:12px;padding-right:12px}
}

/* === SOAM v5.25 · Totales de Hosting más discretos === */
.hosting-table tfoot td{
  font-size:11px!important;
  font-weight:500!important;
  line-height:1.2;
  padding-top:5px!important;
  padding-bottom:5px!important;
  color:#5f6878;
}
.hosting-table tfoot td strong{
  font-size:11px!important;
  font-weight:600!important;
  white-space:nowrap;
  color:#4f5968;
}
.hosting-table tfoot .hosting-total-note{
  font-size:10px!important;
  font-weight:400!important;
  color:#929baa;
}
#hostingTotalTotal,#hostingTotalDomain,#hostingTotalHosting{
  white-space:nowrap;
  text-align:right;
}
@media print{
  body.print-hosting .hosting-table tfoot td,
  body.print-hosting .hosting-table tfoot td strong{
    font-size:8pt!important;
    font-weight:500!important;
  }
}


/* v5.27 · referencia discreta para versículo diario */
.quote .quote-ref{display:block;margin-top:5px;font-size:10px;line-height:1.25;opacity:.62;font-style:normal;letter-spacing:.01em}

/* SOAM v5.28 · Calendario anual continuo */
.calendar-year-panel{overflow:visible}
.annual-calendar-head{position:sticky;top:66px;z-index:8;background:#fff;padding:6px 0 12px;margin-bottom:4px}
.annual-calendar-actions{align-items:flex-end}
.calendar-year-picker{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#7a8699;font-weight:600}
.calendar-year-picker select{min-width:108px;border:1px solid #dfe4ec;background:#fff;border-radius:9px;padding:9px 30px 9px 11px;color:#303b52;font-weight:700;outline:0}
.annual-calendar{display:flex;flex-direction:column;gap:24px;padding-top:8px}
.calendar-month-section{scroll-margin-top:150px}
.calendar-month-title{font-size:16px;font-weight:800;color:#303b52;margin:0 0 9px;padding-left:2px}
.annual-month-grid{width:100%}
#calendar-today{scroll-margin-top:170px}
@media(max-width:900px){.annual-calendar-head{position:static}.annual-calendar-actions{width:100%;justify-content:space-between}.calendar-year-picker{flex-direction:row;align-items:center}.calendar-month-section{overflow-x:auto}.annual-month-grid{min-width:720px}}
@media print{.annual-calendar-head{position:static!important}.calendar-year-picker{display:none!important}.annual-calendar{gap:14px!important}.calendar-month-section{break-before:page;page-break-before:always}.calendar-month-section:first-child{break-before:auto;page-break-before:auto}.calendar-month-title{font-size:14px!important;margin-bottom:6px!important}body.print-calendar .calendar-cell{min-height:76px!important}}


/* SOAM v5.37 - Tablas de entregables más compactas + fila concluida */
.deliverable-complete-row > td{
  background:#eef4ff!important;
  border-bottom-color:#dbe7ff!important;
}
.deliverable-complete-row:hover > td{background:#e8f0ff!important}
.deliverable-complete-row .status-progress .progress-line{background:#d7e2f8}

@media (min-width:901px){
  /* Tabla dentro de cada proyecto */
  .project-deliverables-table{
    width:100%;
    min-width:0!important;
    table-layout:fixed;
  }
  .project-deliverables-table th,
  .project-deliverables-table td{
    padding:10px 8px;
    font-size:12px;
  }
  .project-deliverables-table th:nth-child(1),.project-deliverables-table td:nth-child(1){width:4%;text-align:center}
  .project-deliverables-table th:nth-child(2),.project-deliverables-table td:nth-child(2){width:20%}
  .project-deliverables-table th:nth-child(3),.project-deliverables-table td:nth-child(3){width:14%}
  .project-deliverables-table th:nth-child(4),.project-deliverables-table td:nth-child(4){width:12%;white-space:nowrap}
  .project-deliverables-table th:nth-child(5),.project-deliverables-table td:nth-child(5){width:12%;white-space:nowrap}
  .project-deliverables-table th:nth-child(6),.project-deliverables-table td:nth-child(6){width:12%}
  .project-deliverables-table th:nth-child(7),.project-deliverables-table td:nth-child(7){width:9%}
  .project-deliverables-table th:nth-child(8),.project-deliverables-table td:nth-child(8){width:12%}
  .project-deliverables-table th:nth-child(9),.project-deliverables-table td:nth-child(9){width:5%;text-align:center}
  .project-deliverables-table .status-progress{min-width:0;gap:7px;width:100%}
  .project-deliverables-table .status-progress .progress-line{min-width:0;height:9px;flex:1}
  .project-deliverables-table .status-progress span{font-size:11px;white-space:nowrap;min-width:34px;text-align:right}

  /* Tabla general */
  #tab-entregables .global-deliverables-table th:nth-child(5),
  #tab-entregables .global-deliverables-table td:nth-child(5){width:8%}
  #tab-entregables .global-deliverables-table th:nth-child(6),
  #tab-entregables .global-deliverables-table td:nth-child(6){width:8%}
  #tab-entregables .global-deliverables-table th:nth-child(7),
  #tab-entregables .global-deliverables-table td:nth-child(7){width:12%}
  #tab-entregables .global-deliverables-table th:nth-child(9),
  #tab-entregables .global-deliverables-table td:nth-child(9){width:14%}
  #tab-entregables .status-progress .progress-line{height:9px}
}
