.database-toolbar{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0 10px;position:relative;z-index:4}
.database-control{position:relative}
.database-control>summary{list-style:none;display:flex;align-items:center;gap:7px;min-height:38px;padding:0 12px;border:1px solid #dce5df;border-radius:9px;background:#fff;color:#405349;font-size:13px;font-weight:600;cursor:pointer;user-select:none}
.database-control>summary::-webkit-details-marker{display:none}
.database-control>summary:hover,.database-control[open]>summary{border-color:#9cb4a7;background:#f8fbf9;color:#285840}
.database-control>summary:focus-visible{outline:3px solid #b9d8c7;outline-offset:2px}
.control-icon{display:grid;place-items:center;width:18px;color:#55555c}.control-icon svg{width:18px;height:18px;stroke-width:2}.chevron{display:grid;place-items:center;margin-left:3px;color:#55555c}.chevron svg{width:16px;height:16px}.database-menu button b{display:grid;place-items:center}.count-pill{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#edf4f0;color:#35684f;font-size:11px}
.database-menu{position:absolute;right:0;top:calc(100% + 7px);z-index:10;width:225px;padding:7px;background:#fff;border:1px solid #dce4df;border-radius:12px;box-shadow:0 16px 34px rgba(24,48,35,.16),0 3px 8px rgba(24,48,35,.07)}
.database-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:38px;padding:8px 10px;border:0;border-radius:7px;background:transparent;color:#3a4d43;text-align:left;font-size:13px}
.database-menu button:hover,.database-menu button:focus-visible{background:#f0f5f2;color:#285840}.database-menu button:focus-visible{outline:2px solid #9bc5af;outline-offset:-2px}.database-menu button b{color:#397b5b;font-size:15px}
.database-menu hr{border:0;border-top:1px solid #e9eeeb;margin:6px 3px}.columns-menu{width:240px}.columns-menu>p{display:flex;align-items:center;justify-content:space-between;margin:4px 10px 7px;color:#405349;font-size:13px;font-weight:600}.columns-menu>p small{color:#97a59d;font-size:10px;font-weight:500}.columns-menu label{display:flex;align-items:center;gap:10px;min-height:38px;padding:7px 10px;border-radius:7px;color:#3a4d43;font-size:13px;font-weight:500;cursor:pointer}.columns-menu label:hover{background:#f4f7f5}.columns-menu input{appearance:none;width:18px;height:18px;margin:0;border:1px solid #bdcbc3;border-radius:5px;background:#fff;display:grid;place-items:center}.columns-menu input:checked{border-color:#397b5b;background:#397b5b}.columns-menu input:checked:after{content:'✓';color:#fff;font-size:12px;font-weight:700}.columns-menu input:focus-visible{outline:3px solid #b9d8c7;outline-offset:2px}
.database-table-scroll{border-radius:12px}.database-table{table-layout:auto!important;min-width:760px!important}.database-table th:nth-child(n){width:auto}.database-table th:first-child{width:32%;min-width:250px}.database-table thead th{height:44px;padding:10px 14px;background:#fbfcfb;color:#788a80;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}.database-table td{height:64px!important;padding:10px 14px;vertical-align:middle}.database-table tbody+tbody{border-top:0}.database-table .work-cell{min-width:250px}.database-table .work-title{display:block;font-weight:650}.type-chip{display:inline-flex;max-width:150px;padding:4px 8px;border-radius:7px;background:#edf3f0;color:#51675b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.link-count{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border-radius:7px;background:#edf5f1;color:#397b5b;font-size:12px;font-weight:700}.group-row{border:0}.group-row th{padding:0!important;background:#f1f5f3!important;border-top:1px solid #e1e8e4;border-bottom:1px solid #e1e8e4;text-transform:none!important;letter-spacing:0!important}.group-row button{display:flex;align-items:center;gap:9px;width:100%;min-height:45px;padding:8px 14px;border:0;background:transparent;color:#33483d;text-align:left}.group-row button:hover{background:#eaf0ed}.group-row button:focus-visible{outline:3px solid #9bc5af;outline-offset:-3px}.group-chevron{display:grid;place-items:center;width:18px;color:#55555c;line-height:1}.group-chevron svg{width:18px;height:18px}.group-row strong{font-size:13px}.group-count{padding:2px 7px;border-radius:9px;background:#fff;color:#71847a;font-size:11px}.group-progress{width:70px;height:5px;margin-left:2px;border-radius:5px;background:#dce6e1;overflow:hidden}.group-progress i{display:block;height:100%;border-radius:inherit;background:#48a87a}.database-table .badge{white-space:nowrap}.database-table .correction{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.database-table .status-pendiente{background:#f0f2f1;color:#65746c}.database-table .status-en-curso{background:#e7f2fb;color:#347aa9}.database-table .status-en-revision{background:#f1ebfa;color:#7654a0}.database-table .status-esperando-cliente{background:#fff3dc;color:#936716}.database-table .status-bloqueado{background:#ffebe8;color:#b3483e}.database-table .status-aprobado,.database-table .status-hecho{background:#e7f5eb;color:#317d53}
@media(max-width:760px){.database-toolbar{justify-content:flex-start;overflow:visible}.database-control>summary{font-size:12px;padding:0 9px}.database-menu{position:fixed;left:16px;right:16px;top:auto;bottom:16px;width:auto;max-height:55vh;overflow:auto}.database-table th:first-child,.database-table .work-cell{min-width:210px}}

.calendar-day.outside{background:#eeeef0;color:#777;opacity:1;pointer-events:auto}.calendar-day.outside>a{background:#f9f9fa}.calendar-navigation{display:flex;align-items:center;gap:10px}[data-drag-work]{cursor:grab}[data-drag-work]:active{cursor:grabbing}.calendar-navigation input{width:auto}.work-dragging{opacity:.5}

[data-drag-work]{touch-action:none;user-select:none}

[data-work-saving]{opacity:.65;cursor:progress}[data-work-saving]::after{content:'Guardando…';display:block;font-size:12px;color:#9a471f;padding:5px 8px}tr[data-work-saving]::after{display:none}tr[data-work-saving] .work-cell::after{content:'Guardando…';display:block;font-size:12px;color:#9a471f}[data-work-status]{font:inherit;font-size:13px;border:1px solid #dedbd5;border-radius:18px;background:#fff;padding:6px 24px 6px 10px;cursor:pointer;max-width:240px}[data-work-status]:disabled{cursor:progress}

.work-cell-edit{appearance:none!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:4px 0!important;text-align:left;font:inherit;cursor:pointer;white-space:nowrap}.work-cell-edit:hover{background:#eeece7!important;border-radius:5px}.work-cell-edit:focus-visible{outline:2px solid #c4461b;outline-offset:3px}.work-inline-editor{position:fixed;z-index:1000;background:#fff;border:1px solid #dedbd5;border-radius:10px;padding:8px;box-shadow:0 10px 35px #0002;min-width:240px;max-width:290px;max-height:300px;overflow:auto}.work-inline-editor>button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:7px;border-radius:5px}.work-inline-editor>button:hover,.work-inline-editor>button:focus-visible{background:#f3f1ec}.work-inline-editor label{display:block}.work-inline-editor input{display:block;margin:8px 0;width:100%}.work-inline-editor form button{margin:6px 4px 0 0}
.notification-bell{position:relative;flex:none;margin-left:12px;border:1px solid #dedee2;border-radius:12px;background:#fff;color:#3b3b40;width:40px;height:40px;min-height:40px;display:grid;place-items:center;padding:0}.notification-bell:hover{background:#f3f4f6;border-color:#c7c7cc}.notification-bell[hidden]{display:none}.notification-bell>span:not(:empty){position:absolute;right:-7px;top:-6px;background:#c4461b;color:white;font-size:11px;font-weight:700;line-height:1.3;text-align:center;border-radius:12px;padding:2px 5px;min-width:19px}.notification-panel{position:fixed;right:18px;top:62px;z-index:1100;background:#fff;border:1px solid #e4dfd9;border-radius:16px;box-shadow:0 15px 50px #0002;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 80px);overflow:auto;padding:18px}.notification-panel header,.notification-panel nav{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-bottom:12px}.notification-panel h2{font-size:20px;margin:0}.notification-panel button{font:inherit;cursor:pointer}.notification-panel nav button{font-size:13px;padding:7px}.notification-panel [aria-pressed=true]{background:#fff0da;border-color:#c4461b;color:#a83f19}.notification-item{border-top:1px solid #eee;padding:12px 8px}.notification-item.unread{background:#fff9ed;border-left:3px solid #c4461b}.notification-item [data-open]{display:block;text-align:left;border:0;background:transparent;padding:0;width:100%}.notification-item strong,.notification-item span,.notification-item small{display:block;margin-bottom:5px}.notification-item small{color:#777;font-size:12px}.notification-item [data-read]{font-size:12px;border:0;background:transparent;color:#a83f19;padding:4px 0}.notification-empty{color:#777;padding:16px 0}.comment-mentions{margin:10px 0}.comment-mentions summary{cursor:pointer;color:#a83f19}.comment-mentions label{display:flex;gap:8px;align-items:center;padding:5px}.comment-mentions input[type=checkbox]{width:auto}.mention-label{display:inline-block;background:#fff0d8;color:#9c4318;border-radius:5px;padding:3px 6px;font-size:13px;margin:4px}
/* Keep workflow badges distinct inside editable cells and their menus. */
.work-cell-edit .badge.status-en-curso,.work-cell-edit .badge.status-en-produccion,.work-inline-editor .badge.status-en-curso,.work-inline-editor .badge.status-en-produccion{background:#e7f2fb;color:#347aa9;border-color:#c9e0f2}
.work-cell-edit .badge.status-idea-pendiente-de-validar,.work-cell-edit .badge.status-contenido-pendiente-de-aprobacion,.work-cell-edit .badge.status-en-revision,.work-inline-editor .badge.status-idea-pendiente-de-validar,.work-inline-editor .badge.status-contenido-pendiente-de-aprobacion,.work-inline-editor .badge.status-en-revision{background:#f1ebfa;color:#7654a0;border-color:#ded1ed}
.work-cell-edit .badge.status-idea-con-correcciones,.work-cell-edit .badge.status-contenido-con-correcciones,.work-inline-editor .badge.status-idea-con-correcciones,.work-inline-editor .badge.status-contenido-con-correcciones{background:#fff3dc;color:#936716;border-color:#eed9ad}
.work-cell-edit .badge.status-idea-validada,.work-cell-edit .badge.status-aprobado,.work-cell-edit .badge.status-publicado,.work-cell-edit .badge.status-finalizado,.work-inline-editor .badge.status-idea-validada,.work-inline-editor .badge.status-aprobado,.work-inline-editor .badge.status-publicado,.work-inline-editor .badge.status-finalizado{background:#e7f5eb;color:#317d53;border-color:#cfe7d8}
