:root {
    --primary: #0086BF;
    --secondary: #1FC0ED;
    --terciary: #005584;
}

/* Tipografia (05/10): toda la app en Funnel Display (titulos, var(--display)) y Google Sans Flex
   (el resto, var(--body)). Las variables y el respaldo local (Poppins, Funnel Display Bold) estan en ui.css,
   que se carga en todas las pantallas con layouts.head. */

html, body { margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6, p { margin: 0; padding: 0; }

h2 { font-family: var(--display); font-weight: 700; font-size: 35px; line-height: 1; }

h3 { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1; }

p, a, li, label, input, button, textarea, select, small { font-family: var(--body); font-weight: 400; font-size: 16px; color: #222; }

small { font-size: 11px; }

th, td, tr { font-family: var(--body); font-weight: 400; font-size: 16px; line-height: 1.4; color: #222; }

th { font-family: var(--body); font-weight: 700; }

a { text-decoration: none; }

a, button { transition: background 0.6s, color 0.6s, border-color 0.6s; }

img, iframe, video, textarea { display: block; }

.container { width: 100%; max-width: 100%; margin: auto; padding: 0 50px; box-sizing: border-box; }

.d-flex { display: flex; }

.align-items-center { align-items: center; }

.justify-content-center { justify-content: center; }

.justify-content-between { justify-content: space-between; }

.btn { border-radius: 20px; padding: 14px 40px; box-sizing: border-box; font-family: var(--body); font-weight: 700; box-sizing: border-box; }

.btn-primary { background: var(--primary); color: #fff; }

.btn-primary:hover { background: var(--secondary); }

.btn-secondary { background: var(--secondary); color: #fff; }

.btn-danger { background: #e74c3c; color: #fff; }

.btn-danger:hover { background: #c0392b; }

.btn-secondary:hover { background: var(--primary); }

/* login page styles */

.use-login-background { background-image: url(../images/login-background.jpg); background-size: cover; background-repeat: no-repeat; background-position: center; }

.login-section .container { height: 100vh; display: flex; align-items: center; justify-content: center; }

.login-section form { width: 100%; max-width: 540px; margin: auto; }

.login-section form .first-row, .login-section .mcp-authorize .first-row { background: var(--secondary); padding: 40px; box-sizing: border-box; column-gap: 30px; border-top-left-radius: 30px; border-top-right-radius: 30px; }

.login-section form .first-row img, .login-section .mcp-authorize .first-row img { width: 100%; }

.login-section form .first-row .divider-vertical-line, .login-section .mcp-authorize .first-row .divider-vertical-line { width: 1px; height: 70px; background: #fff; display: block; }

.login-section form .second-row, .login-section .mcp-authorize .second-row { background: #fff; padding: 60px; box-sizing: border-box; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; }

.login-section form .second-row h2, .login-section .mcp-authorize .second-row h2 { color: var(--terciary); }

.login-section form .second-row p, .login-section .mcp-authorize .second-row p { margin-top: 5px; }

.login-section form .second-row input, .login-section .mcp-authorize .second-row input { display: block; width: 100%; border: 0; border-bottom: 1px solid rgba(34, 34, 34, 0.4); margin-top: 20px; padding: 6px 0; outline: none; }

.login-section form .second-row button, .login-section .mcp-authorize .second-row button { font-family: var(--body); font-weight: 700; background: var(--primary); color: #fff; width: 100%; border: 0; cursor: pointer; border-radius: 8px; margin-top: 35px; padding: 12px; }

.login-section form .second-row button:hover, .login-section .mcp-authorize .second-row button:hover { background: #222; }

/* Conexion con Claude (conector MCP): autorizar (mcp/authorize) y adjuntar el archivo (reports/upload) */
.login-section .mcp-authorize { width: 100%; max-width: 540px; margin: auto; }
.login-section .mcp-authorize .mcp-authorize-list { margin: 14px 0 0 18px; padding: 0; list-style: disc; font-family: var(--body); font-size: 14px; line-height: 1.6; }
.login-section .mcp-authorize .mcp-authorize-note { margin-top: 14px; font-size: 13px; color: rgba(34, 34, 34, 0.6); }
.login-section .mcp-authorize .second-row button.mcp-authorize-cancel { background: transparent; color: var(--terciary); margin-top: 10px; }
.login-section .mcp-authorize .second-row button.mcp-authorize-cancel:hover { background: rgba(34, 34, 34, 0.06); }
.login-section form .second-row a.button { display: block; text-align: center; font-family: var(--body); font-weight: 700; background: var(--primary); color: #fff; border-radius: 8px; margin-top: 35px; padding: 12px; text-decoration: none; }

@media (max-width: 1380px) {
	h2 { font-size: 28px; }

	h3 { font-size: 20px; }

	p, a, li, label, input, button, textarea, select { font-size: 15px; }

	th, td, tr { font-size: 15px; }
}

@media (max-width: 768px) {
    .login-section form .first-row, .login-section .mcp-authorize .first-row { flex-wrap: wrap; row-gap: 30px; }

    .login-section form .first-row .column, .login-section .mcp-authorize .first-row .column { width: 100%; }

    .login-section form .first-row .divider-vertical-line, .login-section .mcp-authorize .first-row .divider-vertical-line { display: none; }

    .login-section form .first-row img, .login-section .mcp-authorize .first-row img { max-width: 140px; margin: auto; }
}

/* end login page styles */



/* sidebar menu styles */

.sidebar-menu { position: fixed; top: 0; left: 0; width: 400px; height: 100vh; background: var(--terciary); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; overflow-y: auto; padding: 30px 0; box-sizing: border-box; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }

.sidebar-menu::-webkit-scrollbar { width: 6px; }

.sidebar-menu::-webkit-scrollbar-track { background: transparent; }

.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

.sidebar-menu::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }

.sidebar-menu.active { transform: translateX(0); }

.sidebar-menu .sidebar-close { display: none; position: absolute; top: 15px; right: 20px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; padding: 0; line-height: 1; }

@media (max-width: 992px) {
	.sidebar-menu .sidebar-close { display: block; }
}

.sidebar-menu .menu-list { list-style: none; margin: 0; padding: 0; }

.sidebar-menu .menu-list .menu-item { margin: 0 40px; border-bottom: 1px solid #fff; }

.sidebar-menu .menu-list .menu-item > a { display: flex; align-items: center; padding: 15px 0; color: #fff; text-decoration: none; font-family: var(--body); font-weight: 700; font-size: 18px; }

.sidebar-menu .menu-list .menu-item .menu-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; }

.sidebar-menu .menu-list .menu-item .menu-icon svg { width: 100%; height: 100%; }

.sidebar-menu .menu-list .menu-item .menu-text { flex: 1; }

.sidebar-menu .menu-list .menu-item .menu-arrow { display: flex; align-items: center; margin-left: 10px; transition: transform 0.3s; transform: rotate(-90deg); }

.sidebar-menu .menu-list .menu-item.open .menu-arrow { transform: rotate(-180deg); }

.sidebar-menu .menu-list .menu-item .submenu { list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

.sidebar-menu .menu-list .menu-item.open .submenu { max-height: 200px; }

.sidebar-menu .menu-list .menu-item .submenu li a { display: block; padding: 5px 25px 5px 35px; color: #fff; font-size: 18px; text-decoration: none; }

.sidebar-menu .menu-list .menu-item .submenu li:last-child a { padding-bottom: 20px; }

@media (max-width: 1380px) {
	.sidebar-menu .menu-list .menu-item > a,
	.sidebar-menu .menu-list .menu-item .submenu li a { font-size: 16px; }
}

/* end sidebar menu styles */



/* records list page styles */

.header { background-image: url('../images/header-background.jpg'); background-size: cover; background-repeat: no-repeat; background-position: center; padding: 20px 0; }

.header .row .column { width: 33.33%; }

.header .row .column .inner-row { column-gap: 20px; }

.header .row .column .burger-menu { display: grid; row-gap: 4px; cursor: pointer; }

.header .row .column .burger-menu .bar { width: 28px; height: 4px; background: #fff; display: block; }

.header .row .column .inner-row h2 { font-size: 25px; color: #fff; }

.header .row .column .divider-vertical-line { width: 1px; height: 70px; background: #fff; display: block; }

.header .row .column:nth-child(2) .inner-column { max-width: 120px; }

.header .row .column:nth-child(2) .inner-column img { width: 100%; }

.header .row .column:nth-child(3) .header-actions { justify-content: flex-end; column-gap: 20px; }

.header .row .column:nth-child(3) a svg { display: block; margin-left: auto; }

.notification-bell { position: relative; }

/* Conmutador de cliente/s en el header */
.client-scope-switch { column-gap: 8px; text-decoration: none; max-width: 220px; }

.client-scope-switch svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }

.client-scope-switch .client-scope-label { color: #fff; font-family: var(--body); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.client-scope-switch:hover .client-scope-label { text-decoration: underline; }

/* Popup de seleccion de clientes */
.cs-page { min-height: 100vh; background-image: url('../images/header-background.jpg'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; padding: 30px 20px; box-sizing: border-box; }

.cs-modal { background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); width: 100%; max-width: 520px; padding: 30px; box-sizing: border-box; }

/* Variante popup: el mismo bloque, montado sobre la pagina en vez de ocupar
   una pantalla propia. Reutiliza .cs-page/.cs-modal para no duplicar estilos. */
.cs-popup { display: none; position: fixed; inset: 0; min-height: 0; z-index: 2000; background: rgba(0,0,0,0.5); background-image: none; }

.cs-popup.is-open { display: flex; }

.cs-popup .cs-modal { position: relative; max-height: calc(100vh - 60px); overflow-y: auto; }

.cs-popup .cs-modal-head { padding-right: 34px; }

/* Solo la ✕ del encabezado se posiciona: .cs-modal-close es el enganche del JS
   para cerrar y lo lleva tambien el "Cancelar" del pie, que va en el flujo. */
.cs-popup .cs-modal-head .cs-modal-close { position: absolute; top: 22px; right: 24px; }

/* El "Cancelar" del popup es un <button> y no un <a>: hay que sacarle el
   aspecto de boton para que quede igual al de la pantalla completa. */
.cs-popup button.cs-cancel { border: none; background: none; padding: 0; font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.6); cursor: pointer; }

.cs-popup button.cs-cancel:hover { color: #222; text-decoration: underline; }

.cs-modal-brand { column-gap: 16px; margin-bottom: 24px; }

.cs-modal-brand img { max-width: 110px; }

.cs-brand-divider { width: 1px; height: 40px; background: rgba(34,34,34,0.15); display: block; }

.cs-modal-head { margin-bottom: 20px; }

.cs-modal-head h2 { margin: 0 0 6px; font-size: 22px; color: #222; }

.cs-modal-head p { margin: 0; font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.6); line-height: 1.5; }

.cs-error { background: #FDECEA; color: #B91C1C; border-radius: 8px; padding: 10px 14px; font-family: var(--body); font-size: 13px; margin-bottom: 16px; }

.cs-search { position: relative; margin-bottom: 12px; }

.cs-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; opacity: 0.4; pointer-events: none; }

.cs-search input { width: 100%; border: 1px solid rgba(34,34,34,0.15); border-radius: 8px; padding: 11px 14px 11px 38px; font-family: var(--body); font-size: 13px; outline: none; box-sizing: border-box; transition: border-color 0.2s; }

.cs-search input:focus { border-color: var(--primary); }

.cs-option { display: flex; align-items: center; column-gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-family: var(--body); font-size: 14px; color: #222; transition: background 0.15s; }

.cs-option:hover { background: #f0f4f8; }

.cs-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; margin: 0; }

.cs-option .cs-option-name { flex: 1; }

.cs-option-all { font-family: var(--body); font-weight: 700; border-bottom: 1px solid rgba(34,34,34,0.1); border-radius: 8px 8px 0 0; }

.cs-option-count { background: rgba(34,34,34,0.08); border-radius: 20px; padding: 2px 10px; font-family: var(--body); font-size: 12px; color: rgba(34,34,34,0.6); }

.cs-list { max-height: 300px; overflow-y: auto; margin: 4px 0 16px; scrollbar-width: thin; }

.cs-empty { font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.5); text-align: center; padding: 20px 0; margin: 0; }

.cs-modal-foot { display: flex; align-items: center; justify-content: space-between; column-gap: 16px; flex-wrap: wrap; row-gap: 12px; border-top: 1px solid rgba(34,34,34,0.1); padding-top: 18px; }

.cs-summary { font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.6); }

.cs-summary.is-warning { color: #B91C1C; }

.cs-actions { column-gap: 18px; }

.cs-cancel { font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.6); text-decoration: none; }

.cs-cancel:hover { color: #222; text-decoration: underline; }

.cs-modal-foot .btn { border: 0; cursor: pointer; padding: 12px 26px; border-radius: 8px; font-family: var(--body); font-weight: 700; }

.cs-modal-foot .btn:disabled { opacity: 0.45; cursor: not-allowed; }


.notification-bell-btn { background: none; border: none; cursor: pointer; position: relative; padding: 0; display: flex; align-items: center; }

.notification-bell-btn svg { display: block; width: 21px; height: 23px; }

.header .row .column:nth-child(3) a svg { width: 23px; height: 24px; }

.notification-badge { position: absolute; top: -6px; right: -8px; background: #E53935; color: #fff; font-family: var(--body); font-weight: 700; font-size: 11px; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0 4px; box-sizing: border-box; }

.notification-dropdown { display: none; position: absolute; top: calc(100% + 12px); right: 0; width: 380px; max-height: 450px; background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); z-index: 1000; overflow: hidden; }

.notification-dropdown.active { display: block; }

.notification-dropdown-header { padding: 16px 20px; border-bottom: 1px solid #eee; }

.notification-dropdown-header h3 { font-size: 18px; color: #222; margin: 0; }

.notification-mark-all { background: none; border: none; color: var(--primary); font-family: var(--body); font-size: 13px; cursor: pointer; padding: 0; }

.notification-mark-all:hover { text-decoration: underline; }

.notification-dropdown-list { max-height: 380px; overflow-y: auto; }

.notification-item { display: flex; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid #f2f2f2; cursor: pointer; transition: background 0.2s; column-gap: 12px; }

.notification-item:hover { background: #f7f9fb; }

.notification-item.unread { background: rgba(0,134,191,0.06); }

.notification-item-dot { width: 8px; height: 8px; min-width: 8px; border-radius: 50%; background: var(--primary); margin-top: 6px; }

.notification-item.unread .notification-item-dot { background: var(--primary); }

.notification-item:not(.unread) .notification-item-dot { background: transparent; }

.notification-item-content { flex: 1; min-width: 0; }

.notification-item-title { font-family: var(--body); font-weight: 700; font-size: 13px; color: #222; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.notification-item-message { font-family: var(--body); font-size: 12px; color: #666; margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.notification-item-time { font-family: var(--body); font-size: 11px; color: #999; margin-top: 4px; }

.notification-empty { text-align: center; padding: 40px 20px; color: #999; font-size: 14px; }

.filter-options-section { padding: 50px 0; }

.filter-options-section .row { column-gap: 50px; }

.filter-options-section .row .first-column .inner-row { column-gap: 10px; }

.filter-options-section .row.custom-row .first-column .inner-row { column-gap: 20px; }

.filter-options-section .row .first-column .tool { cursor: pointer; }

.filter-options-section .search-box { height: 0; overflow: hidden; opacity: 0; transition: height 0.3s ease, opacity 0.2s ease, margin-top 0.3s ease; }

.filter-options-section .search-box.open { height: auto; opacity: 1; margin-top: 20px; }

.filter-options-section .search-box label { display: block; font-family: var(--body); font-weight: 700; margin-bottom: 8px; font-size: 14px; }

.filter-options-section .search-box input { width: 100%; border: 0; border-bottom: 2px solid rgba(34, 34, 34, 0.15); padding: 8px 0; outline: none; box-sizing: border-box; background: transparent; font-size: 14px; transition: border-color 0.3s ease; }

.filter-options-section .search-box input:focus { border-bottom-color: var(--primary); }

.filter-options-section .search-box .search-box-actions { display: flex; column-gap: 10px; margin-top: 15px; }

.filter-options-section .search-box .search-box-actions .btn-clear { border: 0; cursor: pointer; background: var(--primary); color: #fff; }

.filter-options-section .search-box .search-box-actions .btn-clear:hover { background: var(--secondary); }

.filter-options-section .search-box .search-box-actions .btn-filter { border: 0; cursor: pointer; background: var(--secondary); color: #fff; }

.filter-options-section .search-box .search-box-actions .btn-filter:hover { background: var(--primary); }

.filter-options-section .row .first-column .inner-row .tool { column-gap: 5px; }

.filter-options-section .row .first-column .inner-row .tool .icon-item { display: flex; align-items: center; justify-content: center; }

.tool-search-input { border: none; outline: none; font-family: var(--body); font-size: 14px; color: #222; background: transparent; width: 180px; }

.tool-search-input::placeholder { color: rgba(34,34,34,0.4); }

.tool-dropdown { position: relative; }

.tool-dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border: 1px solid rgba(34,34,34,0.12); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); z-index: 20; min-width: 200px; padding: 6px; }

.tool-dropdown .chevron-icon { display: flex; align-items: center; transition: transform 0.2s; }

.tool-dropdown .chevron-icon svg { width: 20px; height: 20px; fill: #222; }

.tool-dropdown.open .chevron-icon { transform: rotate(180deg); }

.tool-dropdown.open .tool-dropdown-menu { display: block; }

#clientFilterToggle .tool-dropdown-menu { max-height: 300px; overflow-y: auto; }

.filter-option { display: flex; align-items: center; column-gap: 9px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-family: var(--body); font-size: 13px; color: #222; transition: background 0.15s; }

.filter-option:hover { background: #f0f4f8; }

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] { width: 14px; height: 14px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; margin: 0; }

.filter-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }

.tool-dropdown-menu a { display: block; padding: 8px 14px; font-family: var(--body); font-size: 13px; color: #222; text-decoration: none; transition: background 0.15s; }

.tool-dropdown-menu a:hover { background: #f0f4f8; }

.tool-dropdown-menu a.active { background: #e8f4fd; font-family: var(--body); font-weight: 700; }

.report-title-link { color: #222; text-decoration: none; }

.report-title-link:hover { color: var(--primary); }

.records-list-section .row table { width: 100%; border-collapse: separate; border-spacing: 0; }

.records-list-section .row table th,
.records-list-section .row table td { text-align: left; padding: 15px; box-sizing: border-box; border-bottom: 1px solid rgba(34, 34, 34, 0.4); }

/* La ultima fila no lleva linea: el borde de abajo cierra la tabla igual y
   evita la doble linea contra el fin de la seccion. Solo afecta al tbody, asi
   que el separador del thead se mantiene. Cubre las tres familias de tablas. */
.records-list-section .row table tbody tr:last-child td,
.legajo-bu-section table tbody tr:last-child td,
.legajo-category-items table tbody tr:last-child td { border-bottom: none; }

.records-list-section .row table th:first-child,
.records-list-section .row table td:first-child { padding-left: 0; }

.records-list-section .row table th:last-child,
.records-list-section .row table td:last-child { padding-right: 0; }

.records-list-section .row table th:last-child { text-align: right; }

/* Sticky header for the reports list: on desktop the page is the scroll container,
   so the header cells pin to the top of the viewport as the rows scroll past. */
#reportsTableContainer table thead th { position: sticky; top: 0; z-index: 3; background: #fff; }

.records-list-section .row table .status-label { border-radius: 50px; width: 100%; text-align: center; display: block; padding: 15px; box-sizing: border-box; }

.records-list-section .row table .status-label.no-state { background: #D9D9D9; color: rgba(34, 34, 34, 0.4); }

.records-list-section .row table .actions-icons-content { column-gap: 8px; justify-content: flex-end; }

.records-list-section .row table .actions-icons-content a { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; position: relative; }

.records-list-section .row table .actions-icons-content a svg { width: 25px; pointer-events: none; }

/* z-index 10: el thead es sticky con z-index 3 y tapaba el tooltip de la primera
   fila. El <a> contenedor no crea contexto de apilamiento (position: relative sin
   z-index), asi que el tooltip compite directo contra el header. Va siempre puesto
   y no en :hover, para que no se hunda a mitad del fade de salida. */
.records-list-section .row table .actions-icons-content a .tooltip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); z-index: 10; background: #222; color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 6px; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; pointer-events: none; }

.records-list-section .row table .actions-icons-content a .tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #222; }

.records-list-section .row table .actions-icons-content a:hover .tooltip { opacity: 1; visibility: visible; }

.records-list-section .row table .actions-icons-content a.comments-icon { background: #0086BF; position: relative; }

.comments-count { position: absolute; top: -6px; right: -6px; background: #B91C1C; color: #fff; font-size: 10px; font-family: var(--body); font-weight: 700; line-height: 1; min-width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 3px; box-sizing: border-box; }

.records-list-section .row table .actions-icons-content a.edit-icon { background: #005584; }

.records-list-section .row table .actions-icons-content a.delete-icon { background: #B91C1C; }

@media (max-width: 1260px) {
	.filter-options-section .row.custom-row { flex-wrap: wrap; row-gap: 20px; }

	.filter-options-section .row.custom-row .btn { display: table; }

	.filter-options-section .row.custom-row .column { width: 100%; }

	.filter-options-section .row.custom-row .first-column .inner-row { flex-wrap: wrap; row-gap: 15px; }

	.filter-options-section .row.custom-row .first-column .inner-row .tool:not(.tool-dropdown) { width: 100%; }

	.custom-searcher-tool { min-width: 100% !important; }

}

@media (max-width: 992px) {
    .header .row .column:nth-child(2) { display: none; }

	.records-list-section .row { overflow-x: auto; }

	.records-list-section .row table { min-width: 800px; }

	/* Below 992px the .row becomes a horizontal scroller, so it also has to be the
	   vertical one for the sticky header to have a scrolling box to pin inside. */
	#gridContainer, #reportsTableContainer { max-height: calc(100vh - 80px); overflow-y: auto; }

	.sidebar-menu { width: 100%; }

	.sidebar-menu .menu-list { margin-top: 20px; }

	.notification-dropdown { width: 320px; right: -40px; }
}

@media (max-width: 768px) {
	.filter-options-section .row { flex-wrap: wrap; row-gap: 20px; }

	.filter-options-section .row .column { width: 100%; }

	.filter-options-section .row .column a { display: table; }
}

.records-list-section { padding-bottom: 70px; }

.records-list-section .row .empty-message { text-align: center; color: rgba(34, 34, 34, 0.4); }

.custom-searcher-tool { position: relative; min-width: 280px; }

.custom-searcher-tool input { color: #222; border: 1px solid rgba(34, 34, 34, 0.4); border-radius: 50px; padding: 4px 20px; box-sizing: border-box; width: 100%; }

.custom-searcher-tool input::placeholder { color: #222; }

.custom-searcher-tool .icon-item { display: flex; justify-content: center; align-items: center; background: var(--secondary); width: 40px; height: 40px; border-radius: 50%; position: absolute; right: 0; transition: background 0.6s; }

.custom-searcher-tool .icon-item:hover { background: var(--primary); }

.custom-searcher-tool .icon-item svg path { fill: #fff; }

.pagination-nav { display: flex; align-items: center; justify-content: center; column-gap: 8px; margin-top: 30px; padding-bottom: 30px; }

.pagination-nav a, .pagination-nav span { font-family: var(--body); font-weight: 700; font-size: 16px; color: #222; text-decoration: none; padding: 4px 8px; }

.pagination-nav a:hover { color: var(--primary); }

.pagination-nav .pagination-active { color: var(--primary); }

.pagination-nav .pagination-dots { color: rgba(34, 34, 34, 0.3); }

@media (max-width: 1380px) {
	.pagination-nav a, .pagination-nav span { font-size: 15px; }
}

/* end records list page styles */



/* record registration page styles */

.record-registration-section { padding-bottom: 50px; }

.record-registration-section h3 { color: rgba(34, 34, 34, 0.4); font-size: 14px; font-family: var(--body); font-weight: 400; }

.record-registration-section form { margin-top: 20px; }

.record-registration-section form .form-group { gap: 20px; flex-wrap: wrap; }

.record-registration-section form .form-group + .form-group { margin-top: 20px; }

.record-registration-section form .form-group .form-field { flex: 1; min-width: 200px; }

.record-registration-section form .form-group .form-field.full-width { flex: 100%; }

/* Un bloque oculto (p. ej. la pantalla de inicio para un usuario cliente): .d-flex le gana a [hidden] */
.record-registration-section form .form-group[hidden] { display: none; }
/* Pantalla de inicio: la ayuda pegada a los dos campos, como en los demas bloques */
.record-registration-section form #startPageField { row-gap: 0; }

.record-registration-section form .form-group .form-field label { display: block; font-family: var(--body); font-weight: 700; font-size: 14px; margin-bottom: 8px; }

.record-registration-section form .form-group .form-field .checkbox-label { display: flex; align-items: center; column-gap: 5px; }

.record-registration-section form .form-group .form-field input,
.record-registration-section form .form-group .form-field select,
.record-registration-section form .form-group .form-field textarea { display: block; width: 100%; border: 0; border-bottom: 1px solid rgba(34, 34, 34, 0.15); padding: 8px 0; outline: none; box-sizing: border-box; background: transparent; transition: border-color 0.3s ease; resize: vertical; }

.record-registration-section form .form-group .form-field input:focus,
.record-registration-section form .form-group .form-field select:focus,
.record-registration-section form .form-group .form-field textarea:focus { border-bottom-color: var(--primary); }

.record-registration-section form .form-group .form-field input:disabled,
.record-registration-section form .form-group .form-field select:disabled { color: rgba(34, 34, 34, 0.45); cursor: not-allowed; }

.record-registration-section form .form-group .form-field .field-hint { display: block; margin-top: 6px; font-family: var(--body); font-size: 12px; color: rgba(34, 34, 34, 0.5); }

/* Un segundo campo dentro del mismo bloque de configuracion (ej. el flujo de GA4 debajo del Property ID). */
.record-registration-section form .form-group .form-field .setup-extra-label { display: block; margin-top: 18px; }

.record-registration-section form .form-group .form-field textarea { resize: none; border: 1px solid rgba(34, 34, 34, 0.15); border-radius: 8px; padding: 12px; margin-top: 2px; }

.record-registration-section form .form-group .form-field textarea:focus { border-color: var(--primary); }

.record-registration-section .file-field .file-upload-area { position: relative; border: 2px dashed rgba(34, 34, 34, 0.15); border-radius: 8px; padding: 8px 15px; cursor: pointer; transition: border-color 0.3s ease, background 0.3s ease; margin-top: 10px; }

.record-registration-section .file-field .file-upload-area:hover { border-color: var(--primary); background: rgba(0, 134, 191, 0.03); }

.record-registration-section .file-field .file-upload-area.dragover { border-color: var(--primary); background: rgba(0, 134, 191, 0.06); }

.record-registration-section .file-field .file-upload-area input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.record-registration-section .file-field .file-upload-content { pointer-events: none; column-gap: 8px; }

.record-registration-section .file-field .file-upload-icon { color: rgba(34, 34, 34, 0.3); display: flex; }

.record-registration-section .file-field .file-upload-text { font-size: 13px; color: rgba(34, 34, 34, 0.4); }

.record-registration-section .file-field .file-upload-name { font-size: 13px; color: var(--primary); font-family: var(--body); font-weight: 700; margin-top: 5px; display: none; }

.record-registration-section .file-field small { display: block; margin-top: 8px; color: rgba(34, 34, 34, 0.4); }

.record-registration-section form .form-actions { display: flex; column-gap: 10px; margin-top: 35px; }

.record-registration-section form .form-actions .btn-save { border: 0; cursor: pointer; }

.record-registration-section form .form-actions .btn-save:hover { background: var(--primary); }

.record-registration-section form .form-actions .btn-cancel { background: var(--primary); color: #fff; }

.record-registration-section form .form-actions .btn-cancel:hover { background: var(--secondary); }

@media (max-width: 992px) {
	.record-registration-section form .form-group .form-field { width: calc(50% - 10px); flex: auto; }
}

@media (max-width: 768px) {
	.filter-options-section.back-section .row { flex-direction: row; }

	.filter-options-section.back-section .row .column { width: auto; }

	.record-registration-section form .form-group .form-field { width: 100%; }
}

@media (max-width: 575px) {
	.record-registration-section form .form-actions { flex-direction: column; text-align: center; row-gap: 20px; }
}

/* end record registration page styles */



/* checkbox group styles */

.checkbox-group { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 6px; }

.checkbox-group .checkbox-label { display: flex; flex-direction: row; align-items: center; column-gap: 6px; cursor: pointer; font-size: 14px; }

.checkbox-group .checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); margin: 0; display: initial !important; width: auto !important; }

.generate-password-link { display: inline-block; font-size: 12px; color: var(--primary); margin-top: 6px; cursor: pointer; }

.generate-password-link:hover { color: var(--secondary); }

.checkbox-group.checkbox-group-vertical { flex-wrap: wrap; row-gap: 6px; }

/* Acciones de Meta en la ficha: dos columnas, con el total de 180 dias al costado. */
.checkbox-group.meta-acciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 6px; margin-top: 8px; }
.checkbox-group.meta-acciones code { font-size: 12px; overflow-wrap: anywhere; }
.meta-accion-total { margin-left: auto; padding-left: 8px; font-size: 12px; color: rgba(34, 34, 34, 0.5); font-variant-numeric: tabular-nums; }
.meta-acciones-otras { margin-top: 10px; font-size: 14px; font-family: inherit; }
.meta-acciones-otras summary { cursor: pointer; color: var(--primary); font-family: inherit; font-size: 13px; }
@media (max-width: 640px) { .checkbox-group.meta-acciones { grid-template-columns: 1fr; } }

/* end checkbox group styles */

/* avatar color picker */
.avatar-color-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-color-option { cursor: pointer; }
.avatar-color-option input[type="radio"] { display: none !important; width: 0 !important; height: 0 !important; border: none !important; }
.avatar-color-swatch { display: block; width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; transition: border-color 0.2s, transform 0.2s; }
.avatar-color-swatch:hover { transform: scale(1.15); }
.avatar-color-option input[type="radio"]:checked + .avatar-color-swatch { border-color: #222; transform: scale(1.15); }
.avatar-color-hint { font-size: 12px; color: #999; margin-top: 6px; }



/* role and status labels */

.role-label { font-size: 12px; font-family: var(--body); font-weight: 700; padding: 4px 12px; border-radius: 50px; display: inline-block; }

.role-label.role-superadmin { background: var(--terciary); color: #fff; text-align: center; min-width: 100px; }

.role-label.role-admin { background: var(--primary); color: #fff; }

.role-label.role-client { background: var(--secondary); color: #fff; }

.status-label { font-size: 12px; font-family: var(--body); font-weight: 700; padding: 4px 12px; border-radius: 50px; display: inline-block; }

.status-label.active { background: #2ecc71; color: #fff; }

.status-label.inactive { background: #e74c3c; color: #fff; }

.role-label.section-role-admin { background: #dc3545; color: #fff; }

.role-label.section-role-editor { background: #0d6efd; color: #fff; }

.role-label.section-role-commenter { background: #198754; color: #fff; }

/* end role and status labels */



/* current logo preview */

.current-logo { margin-bottom: 10px; }

.current-logo img { max-width: 120px; max-height: 60px; border-radius: 4px; border: 1px solid rgba(34, 34, 34, 0.1); padding: 5px; }

.country-icon-preview { width: 40px; height: 40px; object-fit: contain; }

.current-design-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 15px; }

.current-design-item { border-radius: 6px; overflow: hidden; border: 1px solid rgba(34,34,34,0.1); aspect-ratio: 1; }

.current-design-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* end current logo preview */



/* form error message */

.form-error-message { color: #e74c3c; font-size: 14px; margin-top: 15px; }

/* end form error message */



/* color picker styles */

.color-picker-group { column-gap: 10px; }

.color-picker-group input[type="color"] { width: 40px; height: 40px; border: none; cursor: pointer; padding: 0; background: none; }

.color-picker-group .color-hex-value { font-size: 14px; font-family: var(--body); color: #222; }

.color-preview-inline { column-gap: 8px; }

.color-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.status-color-label { font-size: 16px; font-family: var(--body); font-weight: 400; padding: 12px; border-radius: 50px; display: inline-block; text-align: center; min-width: 180px; }

@media (max-width: 1380px) {
	.status-color-label { font-size: 15px; }
}

/* Estados de Proyectos: aclaracion de la edicion y tipo (tarea o proyecto) en el listado */
.status-projects-hint { margin-top: 20px; }
.status-scope { opacity: .6; }

/* end color picker styles */



/* assignee tags */

.assignee-tag { font-size: 11px; font-family: var(--body); background: #f0f0f0; padding: 2px 8px; border-radius: 50px; display: inline-block; margin: 1px 2px; }

/* end assignee tags */



/* tags input */

.tags-container { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }

.tag-item { font-size: 12px; font-family: var(--body); background: var(--primary); color: #fff; padding: 3px 10px; border-radius: 50px; display: inline-flex; align-items: center; column-gap: 6px; }

.tag-item .tag-remove { cursor: pointer; font-size: 16px; line-height: 1; opacity: 0.7; }

.tag-item .tag-remove:hover { opacity: 1; }

/* end tags input */



/* search box filters */

.search-box-filters { column-gap: 15px; margin-top: 12px; }

.search-box-filters .search-box-filter-field { flex: 1; }

.search-box-filters .search-box-filter-field label { display: block; font-family: var(--body); font-weight: 700; font-size: 12px; margin-bottom: 4px; }

.search-box-filters .search-box-filter-field select { width: 100%; border: 0; border-bottom: 2px solid rgba(34, 34, 34, 0.15); padding: 6px 0; outline: none; background: transparent; font-size: 13px; }

/* end search box filters */



/* loader styles */

.loader { display: none; position: fixed; width: 100%; height: 100%; top: 0; bottom: 0; left: 0; right: 0; z-index: 9999; background: rgba(0,0,0,0.4); align-items: center; justify-content: center; flex-direction: column; }

.loader-spinner { width: 45px; height: 45px; border: 4px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.loader-message { color: #fff; font-size: 14px; text-align: center; margin-top: 15px; }

/* end loader styles */



/* popup styles */

.popup-section { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }

.popup-section.active { opacity: 1; visibility: visible; }

.popup-section .popup-content { padding: 30px; box-sizing: border-box; background: #fff; width: 100%; max-width: 500px; border-radius: 5px; box-shadow: 0 2px 5px rgb(0 0 0 / 10%); }

.popup-section .popup-content .popup-icon { font-size: 60px; line-height: 80px; width: 80px; height: 80px; border: 4px solid transparent; border-radius: 50%; text-align: center; margin: auto; }

.popup-section .popup-content .popup-icon.warning-icon { border-color: #f8bb86; color: #f8bb86; }

.popup-section .popup-content .popup-icon.success-icon { border-color: #2ecc71; color: #2ecc71; }

.popup-section .popup-content .popup-title { margin-top: 20px; }

.popup-section .popup-content .popup-text { margin-top: 5px; }

.popup-section .popup-content .popup-buttons-group { margin-top: 20px; column-gap: 10px; }

.popup-section .popup-content .popup-buttons-group span { cursor: pointer; font-size: 14px; }

.popup-section .popup-content .popup-buttons-group .popup-confirmation-button { background: var(--primary); color: #fff; }

.popup-section .popup-content .popup-buttons-group .popup-confirmation-button:hover { background: var(--secondary); }

.popup-section .popup-content .popup-buttons-group .popup-cancel-button { display: none; background: #e74c3c; color: #fff; }

.popup-section .popup-content .popup-buttons-group .popup-cancel-button:hover { background: #c0392b; }

.text-center { text-align: center; }

/* end popup styles */



/* sort modal styles */

.sort-modal-content .sort-list { list-style: none; margin: 20px 0 0; padding: 0; max-height: 400px; overflow-y: auto; }

.sort-modal-content .sort-list .sort-item { padding: 10px 15px; background: #f5f5f5; border: 1px solid rgba(34, 34, 34, 0.1); border-radius: 4px; margin-bottom: 5px; cursor: grab; display: flex; align-items: center; column-gap: 10px; font-family: var(--body); font-size: 14px; }

.sort-modal-content .sort-list .sort-item:active { cursor: grabbing; }

.sort-modal-content .sort-list .sort-item .drag-handle { color: rgba(34, 34, 34, 0.3); font-size: 18px; }

.sort-modal-content .sort-list .sort-item.sortable-ghost { opacity: 0.4; }

.sort-modal-content .sort-list .sort-item.sortable-chosen { background: #e8f4fd; border-color: var(--primary); }

.sort-modal-content .popup-buttons-group .popup-cancel-button { display: block; }

/* end sort modal styles */



/* legajo styles */

.legajo-section-title { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(34, 34, 34, 0.1); }

.legajo-bu-section { margin-top: 30px; padding: 20px; border: 1px solid rgba(34, 34, 34, 0.1); border-radius: 8px; }

.legajo-bu-header { margin-bottom: 15px; }

.legajo-bu-header h3 { display: flex; align-items: center; column-gap: 8px; font-size: 18px; }

.legajo-bu-header-actions { column-gap: 8px; }

.legajo-bu-header-actions .btn { font-size: 12px; padding: 10px 20px; border: 0; cursor: pointer; }

.cbu-info-display { margin-bottom: 15px; }

.cbu-info-display p { font-size: 14px; margin-bottom: 4px; }

.cbu-info-display .cbu-edit-btn { font-size: 12px; padding: 8px 20px; margin-top: 8px; border: 0; cursor: pointer; }

.cbu-info-edit { margin-bottom: 15px; }

.cbu-info-edit.hidden, .cbu-info-display.hidden { display: none !important; }

.cbu-info-edit .form-actions .btn { font-size: 12px; padding: 10px 20px; border: 0; cursor: pointer; }

.brief-current-file { margin-bottom: 10px; display: flex; align-items: center; column-gap: 6px; }

.brief-current-file a { font-size: 14px; color: var(--primary); }

.brief-delete-btn { background: none; border: none; color: #e74c3c; font-size: 18px; cursor: pointer; padding: 0 4px; }

.item-status-select { padding: 4px 8px; border: 1px solid rgba(34, 34, 34, 0.15); border-radius: 4px; font-size: 13px; font-family: var(--body); background: #fff; }

.legajo-bu-section table { width: 100%; border-collapse: collapse; margin-top: 15px; }

.legajo-bu-section table th, .legajo-bu-section table td { text-align: left; padding: 10px 8px; font-size: 13px; border-bottom: 1px solid rgba(34, 34, 34, 0.1); }

.legajo-bu-section table th { font-family: var(--body); font-weight: 700; }

@media (max-width: 992px) {
	.legajo-bu-header { flex-wrap: wrap; row-gap: 10px; }
	.legajo-bu-section table { display: block; overflow-x: auto; }
}

/* end legajo styles */



/* legajo sidebar */

.legajo-with-sidebar { display: flex; }

.legajo-sidebar { width: 400px; flex: 0 0 400px; background: #F2F2F2; position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; border-right: 1px solid rgba(34,34,34,0.08); }

.legajo-sidebar-list { overflow-y: auto; padding: 30px 60px; padding-right: 40px; box-sizing: border-box; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(34,34,34,0.15) transparent; }

.legajo-sidebar-list::-webkit-scrollbar { width: 6px; }

.legajo-sidebar-list::-webkit-scrollbar-track { background: transparent; }

.legajo-sidebar-list::-webkit-scrollbar-thumb { background: rgba(34,34,34,0.15); border-radius: 3px; }

.legajo-sidebar-list::-webkit-scrollbar-thumb:hover { background: rgba(34,34,34,0.3); }

.legajo-tiergrp { margin-top: 20px; }

.legajo-tiergrp:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.legajo-tiergrp-title { font-family: var(--body); font-weight: 400; font-size: 16px; text-transform: uppercase; color: #222; padding: 0 0 8px; }

.legajo-tiergrp-title ~ .divider-horizontal-line { width: 100%; height: 1px; background: #222; display: block; margin: 15px 0; }

.legajo-cli { width: 100%; text-align: left; background: transparent; border: none; color: #222; padding: 5px 0; cursor: pointer; display: flex; gap: 10px; align-items: center; text-decoration: none; transition: opacity 0.15s; }

.legajo-cli:hover { opacity: 0.7; }

.legajo-cli.active .legajo-cli-name { color: var(--primary); }

.legajo-cli-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; background: #b9c6da; }

.legajo-cli-name { font-family: var(--body); font-weight: 700; font-size: 16px; line-height: 1.25; display: inline; color: #222; }

.legajo-cli-meta { font-family: var(--body); font-size: 16px; color: #222; display: inline; margin-left: 4px; }

.legajo-main-content { flex: 1; min-width: 0; }

.legajo-sidebar-toggle { display: none; }

@media (max-width: 1380px) {
	.legajo-sidebar { width: 320px; flex: 0 0 320px; }

	.legajo-tiergrp-title,
	.legajo-cli-name,
	.legajo-cli-meta { font-size: 15px; }
}

@media (max-width: 1260px) {
    .legajo-with-sidebar { flex-direction: column; }

    .legajo-sidebar { width: 100%; flex: none; height: auto; position: relative; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

    .legajo-sidebar.open { max-height: 60vh; overflow-y: auto; }

    .legajo-sidebar-list { padding: 50px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 50px; }

    .legajo-tiergrp { width: calc(50% - 25px); }

    .legajo-sidebar-toggle { display: flex; align-items: center; gap: 8px; background: #F2F2F2; color: #222; border: none; border-bottom: 1px solid rgba(34,34,34,0.08); padding: 10px 50px; cursor: pointer; font-family: var(--body); font-weight: 700; font-size: 15px; width: 100%; }

    .legajo-sidebar-toggle svg { width: 12px; height: 12px; fill: #222; transition: transform 0.3s; }

    .legajo-sidebar-toggle.open svg { transform: rotate(180deg); }

    .legajo-tiergrp { margin-top: 0; padding-top: 0; }
}

@media (max-width: 768px) {
    .legajo-tiergrp { width: 100%; }
}

/* legajo show (frontend detail view) */

.legajo-show-section .legajo-section-label { font-family: var(--body); font-weight: 700; font-size: 16px; color: var(--terciary); margin-bottom: 15px; }

/* client header */

.legajo-client-header { margin-bottom: 30px; gap: 20px; }

.legajo-client-info { flex: 1; min-width: 0; }

.legajo-header-client-name { width: fit-content; background: var(--terciary); border-radius: 20px; padding: 20px 40px; box-sizing: border-box; color: #fff; }

.legajo-client-meta { gap: 30px; flex-wrap: wrap; }

.legajo-meta-item { display: flex; flex-direction: column; }

.legajo-meta-label { font-family: var(--body); font-weight: 400; color: var(--terciary); }

.legajo-meta-value { font-family: var(--body); font-weight: 400; color: #222; margin-top: 2px; }

.legajo-setup-badge { padding: 15px 20px; border-radius: 8px; text-align: center; min-width: 180px; }

.legajo-setup-badge.setup-vencido { background: #fde8e8; }

.legajo-setup-badge.setup-ok { background: #e8f5e9; }

.legajo-setup-badge .setup-badge-label { font-family: var(--body); font-weight: 400; display: block; text-align: left; }

.legajo-setup-badge.setup-vencido .setup-badge-label { color: #222; }

.legajo-setup-badge.setup-ok .setup-badge-label { color: #198754; }

.legajo-setup-badge .setup-badge-days { font-family: var(--display); font-weight: 700; display: block; line-height: 1.2; text-align: left; }

.legajo-setup-badge.setup-vencido .setup-badge-days { color: #dc3545; }

.legajo-setup-badge.setup-ok .setup-badge-days { color: #198754; }

.legajo-setup-badge .setup-badge-text { font-family: var(--body); font-weight: 400; color: #222; display: block; margin-top: 2px; text-align: left; }

/* plazo indicator per BU */

.legajo-plazo-indicator { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: 8px; margin-bottom: 16px; font-family: var(--body); font-size: 13px; }

.legajo-plazo-indicator.plazo-ok { background: #e8f5e9; }

.legajo-plazo-indicator.plazo-alerta { background: #fff8e1; }

.legajo-plazo-indicator.plazo-vencido { background: #fde8e8; }

.plazo-signal { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }

.plazo-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.plazo-ok .plazo-dot { background: #16884D; }

.plazo-alerta .plazo-dot { background: #f5a623; }

.plazo-vencido .plazo-dot { background: #E5484D; }

.plazo-ok .plazo-label { color: #16884D; }

.plazo-alerta .plazo-label { color: #b8860b; }

.plazo-vencido .plazo-label { color: #E5484D; }

.plazo-detail { display: flex; align-items: center; gap: 12px; }

.plazo-date { color: #555; white-space: nowrap; }

.plazo-text { color: #555; margin-left: auto; white-space: nowrap; }

/* timeline / cronograma */

.legajo-timeline-section { margin-bottom: 20px; }

.legajo-timeline-header { margin-bottom: 12px; }

.legajo-timeline-range { font-family: var(--body); font-size: 12px; color: #888; }

.legajo-timeline { position: relative; padding: 0; }

.legajo-timeline-today-row { display: flex; align-items: flex-end; gap: 12px; height: 18px; margin-bottom: 2px; }

.legajo-timeline-today-row .timeline-stage-label { min-width: 180px; max-width: 220px; flex-shrink: 0; }

.timeline-today-track { flex: 1; position: relative; height: 18px; }

.timeline-today-label { position: absolute; transform: translateX(-50%); font-size: 10px; color: #E5484D; font-family: var(--body); font-weight: 600; white-space: nowrap; }

.timeline-today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #E5484D; z-index: 2; pointer-events: none; }

.timeline-row { display: flex; align-items: center; margin-bottom: 6px; gap: 12px; }

.timeline-stage-label { min-width: 180px; max-width: 220px; font-family: var(--body); font-size: 13px; color: #333; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.timeline-check { width: 18px; height: 18px; border: 2px solid #ccc; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 11px; color: #fff; flex-shrink: 0; transition: all .2s; }

.timeline-check.checked { background: #16884D; border-color: #16884D; }

.timeline-bar-track { flex: 1; position: relative; height: 28px; background: #f3f4f6; border-radius: 4px; overflow: hidden; }

.timeline-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; display: flex; align-items: center; justify-content: center; min-width: 40px; transition: all .2s; }

.timeline-bar-dates { font-family: var(--body); font-size: 10px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }

.timeline-bar.stage-completed { background: #16884D; }

.timeline-bar.stage-active { background: #20A8F2; }

.timeline-bar.stage-overdue { background: #E5484D; }

.timeline-bar.stage-upcoming { background: #b9c6da; }

/* stages manage */

.legajo-stages-manage { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(34, 34, 34, 0.1); }

.legajo-stages-header { margin-bottom: 16px; }

.legajo-stages-header h4 { font-family: var(--body); font-weight: 700; font-size: 14px; margin: 0; }

.legajo-stages-header .add-stage-btn { font-size: 13px; padding: 6px 16px; border: 1px solid rgba(34, 34, 34, 0.15); background: #fff; color: #222; border-radius: 6px; cursor: pointer; transition: all .2s; }

.legajo-stages-header .add-stage-btn:hover { border-color: var(--primary); color: var(--primary); }

.legajo-stages-list { margin-bottom: 8px; }

.legajo-stage-form { margin-top: 16px; padding: 20px; background: #f8f9fa; border-radius: 8px; }

.legajo-stage-form .form-group { gap: 20px; flex-wrap: wrap; }

.legajo-stage-form .form-group + .form-group { margin-top: 20px; }

.legajo-stage-form .form-group .form-field { flex: 1; min-width: 200px; }

.legajo-stage-form .form-group .form-field label { display: block; font-family: var(--body); font-weight: 700; font-size: 14px; margin-bottom: 8px; }

.legajo-stage-form .form-group .form-field input { display: block; width: 100%; border: 0; border-bottom: 1px solid rgba(34, 34, 34, 0.15); padding: 8px 0; outline: none; box-sizing: border-box; background: transparent; transition: border-color 0.3s ease; }

.legajo-stage-form .form-group .form-field input:focus { border-bottom-color: var(--primary); }

.legajo-stage-form .form-actions { display: flex; column-gap: 10px; margin-top: 24px; }

.legajo-stage-form .form-actions .btn { font-size: 13px; padding: 10px 24px; border: 0; cursor: pointer; }

.legajo-stage-form.hidden { display: none !important; }

.stage-row { display: flex; align-items: center; padding: 10px 14px; border: 1px solid rgba(34, 34, 34, 0.08); border-radius: 6px; margin-bottom: 6px; gap: 14px; background: #fff; transition: background .15s; }

.stage-row:hover { background: #f8f9fa; }

.stage-check { width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; color: #fff; flex-shrink: 0; transition: all .2s; }

.stage-check:hover { border-color: #16884D; }

.stage-check.checked { background: #16884D; border-color: #16884D; }

.stage-name-display { font-family: var(--body); font-size: 14px; flex: 1; color: #222; }

.stage-name-display.completed { text-decoration: line-through; color: #999; }

.stage-dates { font-family: var(--body); font-size: 13px; color: #888; white-space: nowrap; }

.stage-row .btn { font-size: 12px; padding: 5px 14px; border: 0; cursor: pointer; }

/* scope cards */

.legajo-scope-section { margin-top: 50px; margin-bottom: 30px; }

.legajo-scope-cards { gap: 20px; flex-wrap: wrap; }

.legajo-scope-card { flex: 1; min-width: 250px; background: #f2f2f2; border-radius: 30px; padding: 40px; box-sizing: border-box; }

.legajo-scope-card h4 { font-family: var(--body); font-weight: 700; font-size: 18px; margin-bottom: 15px; }

.legajo-scope-card p { color: #222; line-height: 1.5; }

/* BU tabs */

.legajo-bu-tabs-section { margin-top: 50px; }

.legajo-bu-tabs { gap: 0; border-bottom: 2px solid rgba(34,34,34,0.1); margin-bottom: 20px; }

.legajo-bu-tab { background: none; border: none; padding: 10px 0; padding-right: 20px; font-family: var(--body); font-size: 14px; color: rgba(34,34,34,0.5); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.3s, border-color 0.3s; }

.legajo-bu-tab:hover { color: #222; }

.legajo-bu-tab.active { color: var(--primary); font-family: var(--body); font-weight: 700; border-bottom-color: var(--primary); }

.legajo-bu-content { display: none; }

.legajo-bu-content.active { display: block; }

/* progress */

.legajo-progress { margin-bottom: 20px; gap: 20px; flex-wrap: wrap; }

.legajo-bu-responsible { font-family: var(--body); font-weight: 400; font-size: 16px; }

.legajo-progress-info { text-align: right; min-width: 200px; }

.legajo-progress-text { font-family: var(--body); font-weight: 700; font-size: 16px; color: #222; }

.legajo-progress-bar { height: 6px; background: rgba(34,34,34,0.1); border-radius: 3px; margin-top: 6px; overflow: hidden; }

.legajo-progress-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.5s ease; }

/* category groups */

.legajo-show-section { padding-bottom: 70px; }

.legajo-category-group { margin-top: 30px; margin-bottom: 10px; }

.legajo-category-toggle { background: none; border: none; cursor: pointer; padding: 10px 0; gap: 8px; width: 100%; }

.legajo-category-name { font-family: var(--body); font-weight: 700; color: var(--terciary); }

.legajo-category-arrow { transition: transform 0.3s; display: flex; color: var(--primary); }

.legajo-category-group.collapsed .legajo-category-arrow { transform: rotate(-90deg); }

.legajo-category-items { overflow: visible; transition: max-height 0.3s ease; }

.legajo-category-group.collapsed .legajo-category-items { max-height: 0 !important; overflow: hidden; }

.legajo-category-items table { width: 100%; border-collapse: collapse; table-layout: fixed; }

.legajo-category-items table th:nth-child(1),
.legajo-category-items table td:nth-child(1) { width: 35%; }

.legajo-category-items table th:nth-child(2),
.legajo-category-items table td:nth-child(2) { width: 20%; }

.legajo-category-items table th:nth-child(3),
.legajo-category-items table td:nth-child(3) { width: 15%; }

.legajo-category-items table th:nth-child(4),
.legajo-category-items table td:nth-child(4) { width: 15%; }

.legajo-category-items table th:nth-child(5),
.legajo-category-items table td:nth-child(5) { width: 15%; }

.legajo-category-items table th { font-family: var(--body); font-weight: 700; text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(34,34,34,0.15); }

.legajo-category-items table td { padding: 12px 10px; border-bottom: 1px solid rgba(34,34,34,0.06); vertical-align: top; }

.legajo-item-name { display: block; }

.legajo-item-type { display: block; color: #15803D; margin-top: 5px; }

.st-picker { position: relative; display: inline-block; }

.st-picker-trigger { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 50px; padding: 8px 16px; cursor: pointer; color: #fff; white-space: nowrap; min-width: 120px; text-align: center; justify-content: center; }

.st-picker-trigger svg { stroke: #fff; flex-shrink: 0; }

.st-picker-trigger svg { transition: transform 0.2s; }

.st-picker.open .st-picker-trigger svg { transform: rotate(180deg); }

.st-picker-dropdown { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: #fff; border: 1px solid rgba(34,34,34,0.12); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); z-index: 20; min-width: 150px; overflow: hidden; }

/* Variante flotante: position: fixed para que no lo recorte el overflow del
   contenedor de la tabla. La clase la pone el JS que ademas lo ubica
   (positionPicker en content-calendar.js), asi nunca queda un dropdown fixed
   sin nadie que le calcule la posicion. */
.st-picker-dropdown.is-floating { position: fixed; top: 0; left: 0; z-index: 30; max-height: 300px; overflow-y: auto; }

.st-picker.open .st-picker-dropdown { display: block; }

.st-picker-option { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-family: var(--body); font-size: 13px; color: #222; transition: background 0.15s; }

.st-picker-option:hover { background: #f0f4f8; }

.st-picker-option.selected { background: #e8f4fd; font-family: var(--body); font-weight: 700; }

.st-picker-option .st-dot,
.bulk-picker-option .st-dot,
.filter-option .st-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* barra de filtros del listado de informes: buscador arriba, filtros debajo */

.filter-options-section .row.filters-row { margin-top: 18px; }

.filter-options-section .row.filters-row .inner-row { column-gap: 20px; row-gap: 12px; flex-wrap: wrap; }

.filter-options-section .row.filters-row .tool { cursor: pointer; column-gap: 5px; }

.filter-options-section .row.filters-row .tool .icon-item { display: flex; align-items: center; justify-content: center; }

/* exportacion del listado de informes */

.list-header-actions { column-gap: 10px; flex-shrink: 0; }

/* Los botones de esta fila van mas compactos que el .btn general: con el padding
   por defecto "Nuevo informe" se partia en dos lineas. */
.list-header-actions .btn { padding: 11px 26px; white-space: nowrap; line-height: 1.4; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }

.btn-outline { column-gap: 8px; background: #fff; border: 1px solid var(--primary); color: var(--primary); cursor: pointer; transition: background 0.2s, color 0.2s; }

.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-outline svg { flex-shrink: 0; }

.popup-section .export-modal-content { max-width: 860px; width: 90%; max-height: 92vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 12px; }

.export-modal-header { gap: 12px; padding: 16px 25px; border-bottom: 1px solid rgba(34,34,34,0.08); flex-shrink: 0; }

.export-modal-title { flex: 1; }

.export-modal-label { font-family: var(--body); font-size: 12px; color: rgba(34,34,34,0.5); display: block; }

.export-modal-title h3 { font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1.2; }

.export-modal-body { padding: 16px 25px; overflow-y: auto; flex: 1; min-height: 0; }

.export-hint { font-family: var(--body); font-size: 12px; color: rgba(34,34,34,0.5); margin-bottom: 14px; }

.export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.export-field { margin-bottom: 14px; }

.export-field > label { display: block; font-family: var(--body); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(34,34,34,0.55); margin-bottom: 6px; }

/* Acotado para que el bloque de Formato entre sin scroll en pantallas bajas */
.export-check-list { border: 1px solid rgba(34,34,34,0.14); border-radius: 8px; padding: 7px; max-height: 132px; overflow-y: auto; }

.export-check { display: flex; align-items: center; column-gap: 8px; padding: 5px 6px; border-radius: 6px; cursor: pointer; font-family: var(--body); font-size: 13px; }

.export-check:hover { background: #f4f8fb; }

.export-check input { accent-color: var(--primary); cursor: pointer; margin: 0; }

.export-date-row { column-gap: 10px; }

.export-date-row input { border: 1px solid rgba(34,34,34,0.15); border-radius: 8px; padding: 10px 14px; font-family: var(--body); font-size: 13px; outline: none; }

.export-date-row input:focus { border-color: var(--primary); }

.export-date-sep { font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.45); }

.export-formats { display: flex; column-gap: 10px; }

.export-format { cursor: pointer; }

.export-format input { position: absolute; opacity: 0; pointer-events: none; }

.export-format-box { display: block; border: 2px solid rgba(34,34,34,0.12); border-radius: 10px; padding: 9px 20px; text-align: center; transition: border-color 0.2s, background 0.2s; }

.export-format-box b { display: block; font-family: var(--body); font-weight: 700; font-size: 14px; color: #222; }

.export-format-box small { font-family: var(--body); font-size: 11px; color: rgba(34,34,34,0.45); }

.export-format input:checked + .export-format-box { border-color: var(--primary); background: #f0f8fd; }

.export-format input:checked + .export-format-box b { color: var(--primary); }

.export-modal-footer { padding: 14px 25px; border-top: 1px solid rgba(34,34,34,0.08); flex-shrink: 0; }

/* Mismo criterio que los botones del header: el padding del .btn general
   es demasiado grande para una barra de acciones. */
.export-modal-footer .btn { padding: 11px 30px; white-space: nowrap; line-height: 1.4; font-size: 14px; border: none; cursor: pointer; }

.export-clear { background: none; border: none; font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.5); cursor: pointer; padding: 8px 0; transition: color 0.15s; }

.export-clear:hover { color: var(--primary); }

@media (max-width: 992px) {
	.export-grid { grid-template-columns: 1fr; }
	.export-formats { flex-wrap: wrap; row-gap: 10px; }
}

/* seleccion masiva del listado de informes */

.records-list-section .row table th.bulk-col,
.records-list-section .row table td.bulk-col { width: 42px; padding-left: 0; padding-right: 0; }

.bulk-check { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; margin: 0; vertical-align: middle; }

.bulk-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140%); z-index: 1500; display: flex; align-items: center; gap: 16px; background: #222; border-radius: 50px; padding: 10px 12px 10px 22px; box-shadow: 0 8px 28px rgba(0,0,0,0.28); opacity: 0; visibility: hidden; transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease; }

.bulk-bar.active { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }

.bulk-bar-count { font-family: var(--body); font-size: 13px; color: rgba(255,255,255,0.75); white-space: nowrap; }

.bulk-bar-count b { font-family: var(--body); font-weight: 700; color: #fff; }

.bulk-bar-clear { background: none; border: none; color: rgba(255,255,255,0.6); font-family: var(--body); font-size: 13px; cursor: pointer; padding: 8px 12px; transition: color 0.15s; }

.bulk-bar-clear:hover { color: #fff; }

.bulk-picker { position: relative; }

.bulk-picker-trigger { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); border: none; border-radius: 50px; padding: 9px 18px; cursor: pointer; color: #fff; font-family: var(--body); font-size: 13px; white-space: nowrap; transition: background 0.2s; }

.bulk-picker-trigger:hover { background: var(--secondary); }

.bulk-picker-trigger svg { transition: transform 0.2s; }

.bulk-picker.open .bulk-picker-trigger svg { transform: rotate(180deg); }

/* se abre hacia arriba: la barra esta pegada al borde inferior */
.bulk-picker-dropdown { display: none; position: absolute; bottom: calc(100% + 8px); left: 0; background: #fff; border: 1px solid rgba(34,34,34,0.12); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.18); min-width: 170px; max-height: 260px; overflow-y: auto; }

.bulk-picker.open .bulk-picker-dropdown { display: block; }

.bulk-picker-option { display: flex; align-items: center; gap: 8px; padding: 9px 13px; cursor: pointer; font-family: var(--body); font-size: 13px; color: #222; transition: background 0.15s; }

.bulk-picker-option:hover { background: #f0f4f8; }

.legajo-comment-btn { background: var(--primary); border: none; border-radius: 8px; padding: 8px 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.legajo-comment-btn svg { width: 20px; height: 20px; fill: #fff; }

.legajo-comment-btn:hover { background: var(--secondary); }

.legajo-empty-state { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 60vh; }

.legajo-empty-state-inner { text-align: center; }

.legajo-empty-state-icon svg { width: 60px; height: 60px; fill: #b9c6da; margin-bottom: 20px; }

.legajo-empty-state h2 { font-family: var(--body); font-weight: 700; font-size: 22px; color: #222; margin-bottom: 8px; }

.legajo-empty-state p { font-family: var(--body); font-size: 15px; color: #666; }

/* comments modal */

.popup-section .comments-modal-content { max-width: 1360px; width: 80%; max-height: 80vh; display: flex; flex-direction: column; padding: 0; overflow: visible; border-radius: 12px; }

.comments-modal-header { display: flex; align-items: center; gap: 12px; padding: 18px 25px; border-bottom: 1px solid rgba(34,34,34,0.08); background: #fff; border-radius: 12px 12px 0 0; }

.comments-modal-icon { background: var(--primary); border-radius: 8px; padding: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.comments-modal-icon svg { width: 22px; height: 22px; fill: #fff; }

.comments-modal-title { flex: 1; }

.comments-modal-label { font-family: var(--body); color: #222; display: block; }

.comments-modal-title h3 { font-family: var(--body); font-weight: 700; font-size: 16px; line-height: 1.2; }

.comments-report-link { color: var(--primary); text-decoration: none; font-family: var(--body); font-weight: 700; }
.comments-report-link:hover { text-decoration: underline; }

.comments-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #222; line-height: 1; padding: 0; flex-shrink: 0; }

.comments-modal-close:hover { color: #222; }

.comments-list { flex: 1; overflow-y: auto; max-height: 400px; padding: 15px 25px; background: #fff; }

.comments-loading, .comments-empty { font-family: var(--body); font-size: 14px; color: rgba(34,34,34,0.4); text-align: center; padding: 20px 0; }

.comment-item { display: flex; gap: 10px; padding: 12px 0; }

.comment-item + .comment-item { border-top: 1px solid rgba(34,34,34,0.06); }

.comment-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--terciary); color: #fff; font-family: var(--body); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.comment-body { flex: 1; min-width: 0; }

.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }

.comment-header strong { font-family: var(--body); font-weight: 700; font-size: 16px; }

.comment-time { font-family: var(--body); font-size: 11px; color: rgba(34,34,34,0.4); }

.comment-message { font-family: var(--body); line-height: 1.5; background: #f2f2f2; border-radius: 8px; padding: 10px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }

.comment-mention { color: var(--primary); font-family: var(--body); font-weight: 700; }

.comments-form { display: flex; gap: 10px; align-items: flex-end; padding: 15px 25px; border-top: 1px solid rgba(34,34,34,0.08); background: #fff; border-radius: 0 0 12px 12px; }

.comments-input-wrapper { flex: 1; position: relative; }

/* Textarea desde el 06/10 (Shift+Enter hace un salto de linea): crece con el texto hasta 6 lineas */
.comments-input-wrapper input, .comments-input-wrapper textarea { width: 100%; border: 1px solid rgba(34,34,34,0.15); border-radius: 22px; padding: 12px 20px; font-family: var(--body); font-size: 13px; line-height: 1.4; outline: none; box-sizing: border-box; resize: none; max-height: 140px; display: block; }

.comments-input-wrapper input:focus, .comments-input-wrapper textarea:focus { border-color: var(--primary); }

.comments-submit-btn { width: 42px; height: 42px; border-radius: 8px; background: var(--terciary); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.3s; }

.comments-submit-btn:hover { background: var(--primary); }

@media (max-width: 1380px) {
	.comment-header strong,
	.comments-modal-title h3 { font-size: 15px; }
}

/* mention dropdown */

.mention-dropdown { position: absolute; bottom: 100%; left: 0; width: 100%; background: #fff; border: 1px solid rgba(34,34,34,0.1); border-radius: 8px; box-shadow: 0 -4px 12px rgba(0,0,0,0.08); max-height: 200px; overflow-y: auto; display: none; margin-bottom: 5px; }

.mention-dropdown.active { display: block; }

.mention-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; cursor: pointer; transition: background 0.15s; }

.mention-item:hover, .mention-item.active { background: #f0f7ff; }

/* Contenidos (13/11): separa al resto de Rednodo del equipo de la cuenta */
.mention-group { padding: 8px 14px 4px; border-top: 1px solid rgba(34,34,34,0.08); color: #6b7a86; font-size: 11px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }

.mention-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--body); font-weight: 700; font-size: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.mention-name { font-family: var(--body); font-size: 13px; color: #222; }

.mention-role { font-family: var(--body); font-size: 11px; color: rgba(34,34,34,0.4); }

/* comment reactions */

.cr-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.cr-chip { display: inline-flex; align-items: center; gap: 4px; background: #f2f2f2; border: 1px solid transparent; border-radius: 50px; padding: 2px 9px 2px 7px; cursor: pointer; font-family: var(--body); line-height: 1.6; transition: background 0.15s, border-color 0.15s; }

.cr-chip:hover { background: #e6e6e6; }

.cr-chip.is-mine { background: #e8f3fb; border-color: var(--primary); }

.cr-chip-emoji { font-size: 13px; }

.cr-chip-count { font-size: 11px; color: rgba(34,34,34,0.6); font-family: var(--body); font-weight: 700; }

.cr-chip.is-mine .cr-chip-count { color: var(--primary); }

.cr-add { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 24px; border: 1px dashed rgba(34,34,34,0.2); background: transparent; border-radius: 50px; cursor: pointer; color: rgba(34,34,34,0.45); padding: 0; transition: background 0.15s, color 0.15s, border-color 0.15s; }

/* Editar y eliminar. Van discretos y al final de la barra: son acciones sobre
   el comentario propio y no tienen que competir con las reacciones. */
.cr-edit, .cr-delete { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 24px; margin-left: auto; border: none; background: transparent; border-radius: 50px; cursor: pointer; color: rgba(34,34,34,0.3); padding: 0; transition: background 0.15s, color 0.15s; }

/* Con los dos presentes, el auto lo lleva solo el primero para que queden juntos */
.cr-edit + .cr-delete { margin-left: 0; }

.cr-edit:hover { background: rgba(0,134,191,0.1); color: var(--primary); }

.cr-delete:hover { background: rgba(229,57,53,0.1); color: #E53935; }

.cr-edited { font-family: var(--body); font-size: 11px; color: rgba(34,34,34,0.35); margin-left: 6px; }

/* resolver comentario */

.cr-resolve { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 24px; margin-left: auto; border: none; background: transparent; border-radius: 50px; cursor: pointer; color: rgba(34,34,34,0.3); padding: 0; transition: background 0.15s, color 0.15s; }

/* Con varios botones el margin auto lo lleva solo el primero, asi quedan juntos */
.cr-resolve + .cr-edit, .cr-resolve + .cr-delete { margin-left: 0; }

.cr-resolve:hover { background: rgba(46,204,113,0.12); color: #27AE60; }

.cr-resolve.is-resolved { color: #27AE60; }

.cr-resolved-tag { font-family: var(--body); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; color: #27AE60; background: rgba(46,204,113,0.12); padding: 2px 8px; border-radius: 20px; margin-left: 6px; }

/* El comentario resuelto queda tachado y atenuado, pero sigue legible: el
   registro no se pierde, solo deja de pedir atencion. */
.cc-comment.is-resolved .cc-comment-msg { text-decoration: line-through; color: rgba(34,34,34,0.4); }

.cc-comment.is-resolved .cc-comment-avatar, .cc-comment.is-resolved .cc-pin-ref { opacity: 0.5; }

.cc-comment.is-resolved:hover .cc-comment-msg { color: rgba(34,34,34,0.6); }

.cr-edit-input { width: 100%; box-sizing: border-box; border: 1px solid var(--primary); border-radius: 6px; padding: 8px 10px; font-family: var(--body); font-size: 13px; line-height: 1.5; color: #222; outline: none; resize: vertical; }

.cr-edit-actions { display: flex; gap: 8px; margin-top: 8px; }

.cr-edit-actions button { border: none; border-radius: 50px; padding: 5px 14px; font-family: var(--body); font-weight: 700; font-size: 12px; cursor: pointer; transition: background 0.15s; }

.cr-edit-save { background: var(--primary); color: #fff; }

.cr-edit-save:hover { background: var(--secondary); }

.cr-edit-cancel { background: rgba(34,34,34,0.07); color: rgba(34,34,34,0.6); }

.cr-edit-cancel:hover { background: rgba(34,34,34,0.12); }

.cr-add:hover { background: #f2f2f2; color: var(--primary); border-color: var(--primary); }

.cr-add-plus { position: absolute; right: 2px; bottom: 1px; font-family: var(--body); font-weight: 700; font-size: 10px; line-height: 1; }

/* emoji picker (reacciones e input de comentarios) */

.emoji-trigger { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: rgba(34,34,34,0.45); padding: 4px; flex-shrink: 0; transition: color 0.15s; }

.emoji-trigger:hover { color: var(--primary); }

/* en el composer de contenidos el emoji y el autor van juntos a la izquierda */
.cc-composer-row .cc-composer-who { margin-right: auto; margin-left: 4px; }

.emoji-panel { position: fixed; z-index: 10000; display: none; background: #fff; border: 1px solid rgba(34,34,34,0.1); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.14); padding: 10px; }

.emoji-panel.active { display: block; }

.emoji-panel-reactions { max-width: 260px; }

.emoji-panel-composer { width: 300px; max-height: 260px; overflow-y: auto; }

.emoji-panel-group + .emoji-panel-group { margin-top: 8px; }

.emoji-panel-label { display: block; font-family: var(--body); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(34,34,34,0.4); margin-bottom: 4px; }

.emoji-panel-grid { display: flex; flex-wrap: wrap; gap: 2px; }

.emoji-opt { background: none; border: none; cursor: pointer; font-size: 18px; line-height: 1; padding: 5px; border-radius: 6px; transition: background 0.15s; }

.emoji-opt:hover { background: #f0f7ff; }

@media (max-width: 1380px) {
	.legajo-show-section .legajo-section-label,
	.legajo-bu-responsible,
	.legajo-progress-text { font-size: 15px; }
}

@media (max-width: 992px) {
    .legajo-client-header { flex-direction: column; align-items: flex-start; }

    .legajo-bu-tabs { flex-wrap: wrap; }

    .legajo-category-items table { display: block; overflow-x: auto; }

    .legajo-scope-card { flex: auto; }
}

@media (max-width: 768px) {
    .legajo-client-meta { flex-direction: column; gap: 10px; }

    .legajo-progress { flex-direction: column; }

    .legajo-progress-info { text-align: left; }

    .legajo-meta-item { width: 100%; }
}

/* end legajo show */

/* legajo resources (links & credentials) */

.legajo-resources-section { margin-top: 60px; }

.legajo-res-tab { background: none; border: none; padding: 10px 0; padding-right: 20px; font-family: var(--body); font-size: 14px; color: rgba(34,34,34,0.5); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.3s, border-color 0.3s; }

.legajo-res-tab:hover { color: #222; }

.legajo-res-tab.active { color: var(--primary); font-family: var(--body); font-weight: 700; border-bottom-color: var(--primary); }

.legajo-resources-tabs { gap: 0; border-bottom: 2px solid rgba(34,34,34,0.1); margin-bottom: 20px; }

.legajo-res-panel { display: none; }

.legajo-res-panel.active { display: block; }

.legajo-res-toolbar { margin-bottom: 15px; }

.legajo-res-count { font-family: var(--body); font-size: 14px; color: rgba(34,34,34,0.5); }

.legajo-res-toolbar .btn { padding: 8px 18px; font-size: 13px; border-radius: 8px; border: 1px solid rgba(34,34,34,0.12); background: transparent; color: #222; font-family: var(--body); font-weight: 400; cursor: pointer; transition: all 0.2s; }

.legajo-res-toolbar .btn:hover { border-color: var(--primary); color: var(--primary); }

.legajo-res-empty { font-family: var(--body); font-size: 14px; color: rgba(34,34,34,0.4); padding: 20px 0; }

/* tech stack */

.legajo-techstack-list { overflow-x: auto; }

.legajo-techstack-table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--body); font-size: 13px; }

.legajo-techstack-table th { text-align: left; padding: 8px 10px; font-family: var(--body); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: rgba(34,34,34,0.45); border-bottom: 1px solid rgba(34,34,34,0.1); white-space: nowrap; }

.legajo-techstack-table td { padding: 11px 10px; border-bottom: 1px solid rgba(34,34,34,0.06); vertical-align: middle; }

.legajo-techstack-table tbody tr:last-child td { border-bottom: none; }

.legajo-techstack-table th:first-child, .legajo-techstack-table td:first-child { padding-left: 0; }

.legajo-techstack-table th:last-child, .legajo-techstack-table td:last-child { padding-right: 0; }

.legajo-ts-name { font-family: var(--body); font-weight: 700; color: #222; white-space: nowrap; }

.legajo-ts-empty { color: rgba(34,34,34,0.3); }

/* Las notas se truncan y el texto completo queda en el title: una nota larga no
   tiene que estirar la fila y romper la lectura de la tabla. */
.legajo-ts-notes { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(34,34,34,0.6); }

.legajo-ts-payer { display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }

.legajo-ts-payer.is-cliente { background: rgba(0,134,191,0.1); color: #0086BF; }

.legajo-ts-payer.is-rednodo { background: rgba(46,204,113,0.14); color: #1E8449; }

.legajo-ts-payer.is-otro { background: rgba(34,34,34,0.07); color: rgba(34,34,34,0.55); }

.legajo-ts-actions { text-align: right; white-space: nowrap; }

/* links */

.legajo-link-item { padding: 12px 0; border-bottom: 1px solid rgba(34,34,34,0.06); gap: 12px; }

.legajo-link-icon { flex: 0 0 32px; width: 32px; height: 32px; background: #f2f2f2; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--primary); }

.legajo-link-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.legajo-link-label { font-family: var(--body); font-weight: 700; font-size: 14px; color: var(--primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.legajo-link-label:hover { text-decoration: underline; }

.legajo-link-type { font-family: var(--body); font-size: 12px; color: rgba(34,34,34,0.5); margin-top: 2px; }

.legajo-link-actions { flex: 0 0 auto; display: flex; gap: 6px; }

/* credentials */

.legajo-credential-item { padding: 12px 0; border-bottom: 1px solid rgba(34,34,34,0.06); gap: 12px; }

.legajo-credential-icon { flex: 0 0 32px; width: 32px; height: 32px; background: #fde8e8; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #E5484D; }

.legajo-credential-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.legajo-credential-service { font-family: var(--body); font-weight: 700; font-size: 14px; color: #222; }

.legajo-credential-meta { font-family: var(--body); font-size: 12px; color: rgba(34,34,34,0.5); margin-top: 2px; }

.legajo-credential-actions { flex: 0 0 auto; display: flex; gap: 6px; }

/* action buttons */

.legajo-res-action-btn { background: none; border: 1px solid rgba(34,34,34,0.1); border-radius: 6px; padding: 6px; cursor: pointer; color: #666; transition: color 0.2s, border-color 0.2s; display: flex; align-items: center; justify-content: center; }

.legajo-res-action-btn:hover { color: var(--primary); border-color: var(--primary); }

/* forms */

.legajo-res-form { background: #f8f9fa; border-radius: 12px; padding: 20px; margin-top: 15px; }

.legajo-res-form-row { gap: 15px; }

.legajo-res-form-row > .legajo-res-field { flex: 1; min-width: 0; }

.legajo-res-field { margin-bottom: 12px; }

.legajo-res-field label { font-family: var(--body); font-weight: 700; font-size: 12px; color: rgba(34,34,34,0.6); display: block; margin-bottom: 4px; text-transform: uppercase; }

.legajo-res-field input, .legajo-res-field select, .legajo-res-field textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(34,34,34,0.15); border-radius: 8px; font-family: var(--body); font-size: 14px; color: #222; background: #fff; box-sizing: border-box; }

.legajo-res-field input:focus, .legajo-res-field select:focus, .legajo-res-field textarea:focus { outline: none; border-color: var(--primary); }

.legajo-res-form-actions { gap: 10px; margin-top: 5px; }

.legajo-res-form-actions .btn { padding: 8px 18px; font-size: 13px; border-radius: 8px; cursor: pointer; border: 1px solid rgba(34,34,34,0.12); font-family: var(--body); font-weight: 400; transition: all 0.2s; }

.legajo-res-form-actions .btn-primary { background: #222; color: #fff; border-color: #222; }

.legajo-res-form-actions .btn-primary:hover { background: #444; border-color: #444; }

.legajo-res-form-actions .btn-secondary { background: transparent; color: #222; }

.legajo-res-form-actions .btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* confirm password modal */

.confirm-password-modal-content { max-width: 400px; padding: 30px; }

.confirm-password-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }

.confirm-password-header h3 { flex: 1; font-family: var(--body); font-weight: 700; font-size: 18px; margin: 0; }

.confirm-password-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #666; padding: 0; line-height: 1; }

.confirm-password-text { font-family: var(--body); font-size: 14px; color: #666; margin-bottom: 15px; }

.confirm-password-modal-content input { width: 100%; padding: 12px; border: 1px solid rgba(34,34,34,0.15); border-radius: 8px; font-family: var(--body); font-size: 14px; box-sizing: border-box; margin-bottom: 15px; }

.confirm-password-modal-content input:focus { outline: none; border-color: var(--primary); }

.confirm-password-actions { gap: 10px; }

.confirm-password-actions .btn { padding: 8px 18px; font-size: 13px; border-radius: 8px; cursor: pointer; border: 1px solid rgba(34,34,34,0.12); font-family: var(--body); font-weight: 400; transition: all 0.2s; }

.confirm-password-actions .btn-primary { background: #222; color: #fff; border-color: #222; }

.confirm-password-actions .btn-primary:hover { background: #444; border-color: #444; }

.confirm-password-actions .btn-secondary { background: transparent; color: #222; }

.confirm-password-actions .btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* reveal credential modal */

.reveal-credential-modal-content { max-width: 480px; padding: 30px; }

.reveal-credential-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }

.reveal-credential-header h3 { flex: 1; font-family: var(--body); font-weight: 700; font-size: 18px; margin: 0; }

.reveal-credential-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #666; padding: 0; line-height: 1; }

.reveal-field { margin-bottom: 15px; }

.reveal-field label { font-family: var(--body); font-weight: 700; font-size: 12px; color: rgba(34,34,34,0.6); display: block; margin-bottom: 4px; text-transform: uppercase; }

.reveal-value-row { gap: 8px; }

.reveal-value { font-family: var(--body); font-size: 14px; color: #222; background: #f2f2f2; padding: 10px 14px; border-radius: 8px; flex: 1; min-width: 0; word-break: break-all; }

.reveal-copy-btn { background: none; border: 1px solid rgba(34,34,34,0.1); border-radius: 6px; padding: 8px; cursor: pointer; color: #666; transition: color 0.2s, border-color 0.2s; flex: 0 0 auto; display: flex; align-items: center; }

.reveal-copy-btn:hover { color: var(--primary); border-color: var(--primary); }

@media (max-width: 768px) {
    .legajo-res-form-row { flex-direction: column; gap: 0; }
}

/* end legajo resources */

/* logs */

.log-action-badge { display: inline-block; padding: 4px 12px; border-radius: 6px; color: #fff; font-family: var(--body); font-weight: 700; font-size: 12px; }

/* end logs */


/* ─── Content Calendar ─── */

/* El aire de arriba acompania el ancho de pantalla en vez de saltar en un
   breakpoint: 40px cuando hay lugar, nunca menos de 24px. */
.cc-header-section { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(14px, 2vw, 20px); }

.cc-view-picker { gap: 6px; padding: 8px 10px 8px 16px; border: 1px solid var(--terciary); border-radius: 20px; cursor: pointer; background: #fff; transition: border-color 0.2s; }

.cc-view-picker:hover { border-color: var(--primary); }

.cc-view-picker p { margin: 0; font-family: var(--body); color: #222; white-space: nowrap; }

.cc-view-picker .chevron-icon svg { width: 16px; height: 16px; }

.cc-view-picker .tool-dropdown-menu { left: auto; right: 0; min-width: 160px; }

.cc-header-actions { gap: 12px; margin-left: auto; }

.cc-client-picker { gap: 6px; padding: 8px 10px 8px 12px; border: 1px solid var(--terciary); border-radius: 20px; cursor: pointer; background: #fff; transition: border-color 0.2s; }

.cc-client-picker:hover { border-color: var(--primary); }

.cc-client-picker p { margin: 0; font-family: var(--body); color: #222; white-space: nowrap; }

.cc-client-picker .icon-item svg { width: 16px; height: 16px; }

.cc-client-picker .chevron-icon svg { width: 16px; height: 16px; }

.cc-header-actions .cc-clear-filters { white-space: nowrap; }

/* tabs */

.cc-tabs-bar { gap: 0; border-bottom: 1px solid #222; }

/* Los tabs no se parten ni se achican: el nombre de un tab ("KW Core Q1") en
   tres renglones no se lee, y ademas desalinea el subrayado del activo. Cuando
   no entran, la barra scrollea (ver .cc-header-row .cc-tabs-bar). */
.cc-tab { padding: 10px 20px; font-family: var(--body); color: #222; text-decoration: none; white-space: nowrap; flex-shrink: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; }

.cc-tab:hover { color: #222; }

.cc-tab.active { color: var(--primary); font-family: var(--body); font-weight: 700; border-bottom-color: var(--primary); }

.cc-tab-add { background: none; border: none; font-size: 20px; color: #222; cursor: pointer; padding: 8px 14px; margin-left: 4px; line-height: 1; flex-shrink: 0; }

.cc-tab-add:hover { color: var(--secondary); }

.cc-select-client-hint { font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.45); padding: 10px 0; border-bottom: 2px solid rgba(34,34,34,0.08); }

/* sortable headers */

.cc-sortable { cursor: pointer; user-select: none; white-space: nowrap; }

.cc-sortable:hover { color: var(--primary); }

/* ── Filtro por columna (estilo Excel) ── */

/* El ▾ del encabezado. Se pinta cuando esa columna tiene filtro puesto, que es
   lo que permite ver de un vistazo donde esta filtrado. */
.cc-col-filter-btn { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; padding: 2px; margin-left: 4px; vertical-align: middle; cursor: pointer; border-radius: 4px; transition: background 0.15s; }

.cc-col-filter-btn svg { width: 16px; height: 16px; fill: rgba(34,34,34,0.35); transition: fill 0.15s; }

.cc-col-filter-btn:hover { background: rgba(34,34,34,0.07); }

.cc-col-filter-btn:hover svg { fill: #222; }

.cc-col-filter-btn.is-open { background: rgba(0,134,191,0.12); }

.cc-col-filter-btn.is-on svg,
.cc-col-filter-btn.is-open svg { fill: var(--primary); }

/* Un puntito sobre el ▾ de las columnas filtradas: el color solo no alcanza
   cuando la columna esta ademas ordenada. */
.cc-col-filter-btn.is-on { position: relative; }

.cc-col-filter-btn.is-on::after { content: ''; position: absolute; top: 0; right: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* El panel se posiciona a mano desde JS (top/left en px), por eso va fixed. */
.cc-fpanel { position: fixed; z-index: 60; width: 270px; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid rgba(34,34,34,0.12); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,0.16); padding: 8px; font-family: var(--body); font-size: 13px; }

.cc-fp-head { font-family: var(--body); font-weight: 700; font-size: 13px; color: #222; padding: 4px 8px 8px; }

.cc-fp-sort { display: flex; flex-direction: column; gap: 2px; }

.cc-fp-sort-btn { background: none; border: none; text-align: left; padding: 7px 8px; border-radius: 6px; font-family: var(--body); font-size: 13px; color: #222; cursor: pointer; }

.cc-fp-sort-btn:hover { background: #f0f4f8; }

.cc-fp-dates { display: flex; flex-direction: column; gap: 6px; }

.cc-fp-dates label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: rgba(34,34,34,0.7); }

.cc-fp-dates input { border: 1px solid rgba(34,34,34,0.18); border-radius: 6px; padding: 5px 8px; font-family: var(--body); font-size: 12px; }

.cc-fp-search { position: relative; display: flex; align-items: center; margin: 6px 0; }

.cc-fp-search svg { position: absolute; left: 8px; width: 14px; height: 14px; color: rgba(34,34,34,0.4); pointer-events: none; }

.cc-fp-search input { width: 100%; box-sizing: border-box; border: 1px solid rgba(34,34,34,0.18); border-radius: 6px; padding: 6px 8px 6px 28px; font-family: var(--body); font-size: 12px; outline: none; }

.cc-fp-all-row { border-bottom: 1px solid rgba(34,34,34,0.08); }

/* Tope de alto: una columna de texto libre puede tener cientos de valores y el
   panel no puede crecer hasta tapar la pantalla. */
.cc-fp-list { max-height: 210px; overflow-y: auto; }

/* Los valores pueden ser largos (una URL de pagina, un copy): se cortan con
   puntos suspensivos en vez de ensanchar el panel. */
.cc-fp-list .filter-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cc-fp-empty { padding: 10px 8px; margin: 0; font-size: 12px; color: rgba(34,34,34,0.45); }

.cc-fp-foot { border-top: 1px solid rgba(34,34,34,0.08); margin-top: 6px; padding-top: 6px; }

.cc-fp-clear { width: 100%; background: none; border: none; padding: 7px; border-radius: 6px; font-family: var(--body); font-size: 12px; color: var(--primary); cursor: pointer; }

.cc-fp-clear:hover { background: #f0f4f8; }

.cc-sort-icon { display: inline-flex; align-items: center; margin-left: 4px; vertical-align: middle; transition: transform 0.2s; }

.cc-sort-icon svg { width: 16px; height: 16px; fill: rgba(34,34,34,0.3); }

.cc-sortable.sort-active .cc-sort-icon svg { fill: var(--primary); }

.cc-sortable.sort-asc .cc-sort-icon { transform: rotate(180deg); }

.cc-sortable.sort-desc .cc-sort-icon { transform: rotate(0deg); }

/* resizable columns */

.cc-col-resize { position: relative; }

.cc-col-handle { position: absolute; top: 0; right: -3px; width: 6px; height: 100%; cursor: col-resize; z-index: 5; }

.cc-col-handle:hover, .cc-col-handle.dragging { background: var(--primary); opacity: 0.3; }

/* reordenar columnas */

#viewGrid thead th[draggable="true"] { cursor: grab; }

#viewGrid thead th.cc-col-dragging { opacity: 0.4; cursor: grabbing; }

/* La marca de destino va con box-shadow y no con border: un borde cambiaria
   el ancho de la celda y las columnas saltarian mientras arrastras. */
#viewGrid thead th.cc-col-drop-before { box-shadow: inset 2px 0 0 var(--primary); }

#viewGrid thead th.cc-col-drop-after { box-shadow: inset -2px 0 0 var(--primary); }

#ccClientFilter .tool-dropdown-menu { max-height: 240px; overflow-y: auto; }

/* Aca el overflow va en hidden a proposito: el buscador y "Todos" quedan fijos
   y el scroll lo lleva .cc-picker-list, no el menu entero. */
#ccAssigneeFilter .tool-dropdown-menu { max-height: 400px; overflow: hidden; min-width: 260px; }

#ccAssigneeFilter.open .tool-dropdown-menu { display: flex; flex-direction: column; }

#ccAssigneeFilter .cc-picker-list { max-height: 260px; }

.cc-add-btn { background: var(--terciary); color: #fff; border: none; border-radius: 20px; padding: 10px 24px; font-family: var(--body); font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.6s; margin-left: auto; }

.cc-add-btn:hover { background: var(--primary); }

/* grid extras */

.cc-cell-copy { color: rgba(34,34,34,0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }

/* design thumbnails */

/* Cinco lugares de 36px: las 4 miniaturas que se muestran como maximo, mas el
   boton de agregar. Era un grid de 4 columnas, asi que con 5 o mas disenios la
   fila se iba a dos renglones y desalineaba la grilla entera. */
.cc-design-thumbs { display: grid; grid-template-columns: repeat(5, 36px); gap: 4px; align-items: center; }

/* Contador de las que no entran, sobre la ultima miniatura visible. Existe para
   que pasar de 4 a 7 disenios se note en la grilla y no sea un ocultamiento
   silencioso. */
.cc-design-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(34,34,34,0.62); color: #fff; font-family: var(--body); font-weight: 700; font-size: 12px; }

.cc-design-add { width: 36px; height: 36px; border-radius: 6px; border: 1px dashed rgba(34,34,34,0.3); background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(34,34,34,0.4); padding: 0; transition: border-color 0.15s, color 0.15s, background 0.15s; }

.cc-design-add svg { width: 16px; height: 16px; }

.cc-design-add:hover { border-color: var(--primary); color: var(--primary); background: rgba(0,134,191,0.06); }

.cc-design-thumb { width: 36px; height: 36px; border-radius: 6px; background: #e8edf2; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; border: 1px solid rgba(34,34,34,0.08); }

.cc-design-thumb img,
.cc-design-thumb video { width: 100%; height: 100%; object-fit: cover; }

/* Distintivo de video sobre la miniatura (el poster es el primer cuadro) */
.cc-video-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.28); pointer-events: none; }

.cc-video-badge svg { width: 45%; max-width: 26px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }

.cc-design-thumb svg { width: 18px; height: 18px; fill: none; stroke: var(--terciary); stroke-width: 1.5; }

.cc-design-thumb { position: relative; }

.cc-design-thumb.placeholder { cursor: default; }


/* cards view */

.cc-cards-section { padding: 0 0 40px; }

.cc-cards-wrap { display: flex; flex-direction: column; gap: 20px; max-width: 1000px; margin: auto; }

.cc-card { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid rgba(34,34,34,0.1); border-radius: 16px; padding: 18px 24px; transition: box-shadow 0.2s; background: #f2f2f2; }

.cc-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.cc-card-thumb { width: 50px; height: 50px; border-radius: 8px; background: #e8edf2; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; cursor: pointer; }

.cc-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cc-card-thumb svg { width: 24px; height: 24px; fill: none; stroke: rgba(34,34,34,0.3); stroke-width: 1.5; }

.cc-card-info { flex: 1; min-width: 0; }

.cc-card-design-name { color: rgba(34,34,34,0.5); }

.cc-card-design-name::before { content: '·'; margin: 0 6px; }

.cc-card-title { font-family: var(--body); font-weight: 700; font-size: 16px; color: #222; display: block; }

.cc-card-format { font-family: var(--body); color: #222; font-size: 16px; }

.cc-card-date { flex: 1; font-family: var(--body); font-size: 16px; color: #222; }

.cc-card-assignee { flex: 1; font-family: var(--body); color: #222; }

.cc-card-status { flex: 1; }

.cc-card-status .status-color-label { font-size: 16px; }

@media (max-width: 1380px) {
	.cc-card-title,
	.cc-card-format,
	.cc-card-date,
	.cc-card-assignee,
	.cc-card-status .status-color-label { font-size: 15px; }
}

@media (max-width: 768px) {
    .cc-card { flex-wrap: wrap; gap: 12px; }
    .cc-card-date, .cc-card-assignee { min-width: auto; }
}

/* gallery view */

.cc-gallery-section { padding: 0 0 40px; }

.cc-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.cc-gcard { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid rgba(34,34,34,0.08); display: flex; flex-direction: column; transition: box-shadow 0.2s; position: relative; min-width: 0; }

/* (Los dos pickers ya son fixed / z-index 30 globalmente; la excepcion de las
   tarjetas de galeria dejo de hacer falta.) */

.cc-gcard:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.cc-gcard-image { width: 100%; aspect-ratio: 4/3; background: #e8edf2; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; position: relative; }

.cc-gcard-image img { width: 100%; height: 100%; object-fit: cover; }

.cc-gcard-image svg { width: 40px; height: 40px; fill: none; stroke: rgba(34,34,34,0.2); stroke-width: 1.5; }

.cc-gcard-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.cc-gcard-row { display: flex; justify-content: space-between; align-items: center; }

.cc-gcard-assignee { font-family: var(--body); font-size: 16px; color: #222; }

.cc-gcard-date { font-family: var(--body); font-size: 16px; color: #222; }

.cc-gcard-title { font-family: var(--body); font-weight: 700; font-size: 16px; color: #222; }

.cc-gcard-format { font-family: var(--body); font-size: 16px; color: #222; }

.cc-gcard-copy { font-family: var(--body); font-size: 16px; color: rgba(34,34,34,0.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 20px; }

.cc-gcard-status { margin-top: auto; padding-top: 10px; }

.cc-gcard-status .status-color-label { font-size: 16px; display: block; text-align: center; }

@media (max-width: 1380px) {
	.cc-gcard-date,
	.cc-gcard-title,
	.cc-gcard-format,
	.cc-gcard-copy,
	.cc-gcard-status .status-color-label { font-size: 15px; }
}

@media (max-width: 1200px) { .cc-gallery-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 768px) { .cc-gallery-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 480px) { .cc-gallery-grid { grid-template-columns: 1fr; } }

/* calendar view */

.cc-calendar-section { padding: 0 0 40px; }

.cc-cal-nav { gap: 10px; margin-bottom: 20px; }

.cc-cal-arrow { background: none; border: 1px solid rgba(34,34,34,0.15); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; color: #222; line-height: 1; transition: background 0.15s; }

.cc-cal-arrow:hover { background: #f0f4f8; }

.cc-cal-title { font-family: var(--body); font-weight: 700; font-size: 20px; color: #222; margin: 0; }

.cc-cal-today { font-family: var(--body); font-size: 14px; color: var(--primary); text-decoration: none; margin-left: 6px; }

.cc-cal-today:hover { text-decoration: underline; }

.cc-cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid rgba(34,34,34,0.1); }

.cc-cal-dow span { font-family: var(--body); font-weight: 400; font-size: 16px; color: #222; padding: 8px 10px; }

.cc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.cc-cal-cell { min-height: 100px; border-right: 1px solid rgba(34,34,34,0.06); border-bottom: 1px solid rgba(34,34,34,0.06); padding: 6px 8px; position: relative; }

.cc-cal-cell:nth-child(7n) { border-right: none; }

.cc-cal-cell.other-month { background: #fafafa; }

.cc-cal-cell.other-month .cc-cal-day { color: rgba(34,34,34,0.25); }

.cc-cal-cell.today { box-shadow: inset 0 0 0 2px var(--primary); border-radius: 4px; }

.cc-cal-day { font-family: var(--body); font-size: 14px; color: #222; display: block; margin-bottom: 4px; }

.cc-cal-cell.today .cc-cal-day { color: var(--primary); font-family: var(--body); font-weight: 700; }

.cc-cal-entry { display: block; padding: 3px 8px; border-radius: 4px; font-family: var(--body); font-size: 11px; color: #fff; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }

.cc-cal-entry:hover { opacity: 0.85; }

.cc-cal-entry.no-status { background: #D9D9D9; color: rgba(34,34,34,0.5); }

.cc-cal-more { font-family: var(--body); font-size: 11px; color: rgba(34,34,34,0.4); cursor: pointer; }

.cc-cal-more:hover { color: var(--primary); }

@media (max-width: 1380px) {
	.cc-cal-dow span { font-size: 15px; }
}

@media (max-width: 768px) {
    .cc-cal-cell { min-height: 70px; padding: 4px; }

    .cc-cal-dow span { font-size: 11px; padding: 6px 4px; }
    
    .cc-cal-entry { font-size: 10px; padding: 2px 4px; }
}

/* inline edit */

.cc-editable { cursor: pointer; }

.cc-editable:hover { background: rgba(0,134,191,0.05); }

.cc-editable[data-field="assignee"] { position: relative; }


.cc-inline-input, .cc-inline-select { border: 1px solid var(--primary); border-radius: 4px; padding: 4px 8px; font-family: var(--body); font-size: 14px; width: 100%; box-sizing: border-box; outline: none; }

.cc-inline-select { background: #fff; }

/* Fixed para escapar del overflow de la tabla (lo ubica positionPicker). Aca no
   hace falta la variante .is-floating como en .st-picker-dropdown, porque este
   picker existe solo en Contenidos. El scroll va en .cc-picker-list, asi el
   buscador queda siempre visible. */
.cc-assignee-picker { background: #fff; border: 1px solid rgba(34,34,34,0.12); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); padding: 6px; max-height: 320px; min-width: 240px; position: fixed; top: 0; left: 0; z-index: 30; display: flex; flex-direction: column; overflow: hidden; }

.cc-picker-list { overflow-y: auto; }

.cc-picker-search { position: relative; margin-bottom: 6px; flex-shrink: 0; }

.cc-picker-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: rgba(34,34,34,0.4); pointer-events: none; }

.cc-picker-search .cc-adv-search { padding-left: 31px; }

.cc-picker-empty { font-family: var(--body); font-size: 12px; color: rgba(34,34,34,0.45); text-align: center; padding: 12px 6px 8px; margin: 0; }

.cc-assignee-picker .filter-option { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-family: var(--body); font-size: 13px; }

.cc-assignee-picker .filter-option:hover { background: #f0f4f8; }

/* assignee avatars */

.cc-avatars-row { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }

.cc-avatar-sm { width: 30px; height: 30px; border-radius: 50%; background: var(--terciary); color: #fff; font-family: var(--body); font-weight: 700; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid #fff; }
/* "Sin asignar" en el selector del responsable (una sola persona, 30/10) */
.cc-avatar-sm.cc-avatar-none { background: #E2E8F0; color: #64748B; }

.cc-assignee-picker input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--primary); cursor: pointer; margin: 0; }


/* design review modal (scrim + modal) */

.cc-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }

.cc-scrim.active { display: flex; }

.cc-modal { background: #fff; border-radius: 16px; width: 95vw; max-width: 1200px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }

.cc-modal-head { display: flex; align-items: flex-start; gap: 16px; padding: 24px 28px 18px; border-bottom: 1px solid rgba(34,34,34,0.08); }

.cc-modal-info { flex: 1; min-width: 0; }

.cc-modal-eyebrow { font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); display: block; margin-bottom: 4px; }

.cc-modal-title { font-family: var(--body); font-weight: 700; font-size: 24px; line-height: 1.2; color: #222; }

.cc-modal-meta { font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.5); margin-top: 2px; display: block; }

.cc-modal-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 50px; border: 1px solid rgba(34,34,34,0.15); font-family: var(--body); font-size: 13px; color: #222; white-space: nowrap; flex-shrink: 0; margin-top: 4px; }

.cc-modal-status .cc-st-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.cc-modal-close { background: none; border: none; font-size: 28px; cursor: pointer; color: rgba(34,34,34,0.4); line-height: 1; padding: 0; flex-shrink: 0; }

.cc-modal-close:hover { color: #222; }

/* body: left canvas + right panel */

.cc-modal-body { display: flex; flex: 1; min-height: 0; overflow: hidden; }

/* left: canvas */

.cc-canvas-area { flex: 1; min-width: 0; background: #f4f6f8; display: flex; flex-direction: column; align-items: center; overflow-y: auto; padding: 20px 28px 28px; }

.cc-hint { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 1px dashed rgba(34,34,34,0.15); border-radius: 50px; font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.45); margin-bottom: 16px; }

.cc-hint svg { flex-shrink: 0; color: var(--primary); }

.cc-design-area { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 300px; }

.cc-design-area img { max-width: 100%; max-height: 100%; display: block; border-radius: 8px; cursor: crosshair; user-select: none; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

/* El video no lleva cursor crosshair: no se le pueden anclar pins */
.cc-design-area video { max-width: 100%; max-height: 70vh; display: block; border-radius: 8px; background: #000; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.cc-no-design { text-align: center; padding: 40px; }

.cc-no-design strong { font-family: var(--body); font-weight: 700; font-size: 16px; display: block; margin-bottom: 8px; }

.cc-no-design p { font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.5); max-width: 280px; margin: 0 auto 16px; }

.cc-upload-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; border: none; border-radius: 50px; padding: 10px 22px; font-family: var(--body); font-weight: 700; font-size: 13px; cursor: pointer; transition: background 0.2s; }

.cc-upload-btn:hover { background: var(--secondary); }

.cc-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; transition: background 0.2s; }

.cc-carousel-arrow:hover { background: rgba(0,0,0,0.7); }

.cc-carousel-arrow svg { width: 14px; height: 14px; fill: #fff; }

.cc-carousel-prev { left: 10px; }

.cc-carousel-prev svg { transform: rotate(90deg); }

.cc-carousel-next { right: 10px; }

.cc-carousel-next svg { transform: rotate(-90deg); }

.cc-carousel-counter { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.55); color: #fff; font-family: var(--body); font-weight: 700; font-size: 12px; padding: 4px 12px; border-radius: 20px; z-index: 5; }

/* nombre editable del adjunto */

.cc-design-name { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; background: #fff; border: 1px solid rgba(34,34,34,0.12); border-radius: 50px; max-width: 340px; width: 100%; }

.cc-design-name svg { color: rgba(34,34,34,0.35); flex-shrink: 0; }

.cc-design-name input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-family: var(--body); font-size: 13px; color: #222; padding: 2px 0; }

.cc-design-name input::placeholder { color: rgba(34,34,34,0.35); }

.cc-design-name:focus-within { border-color: var(--primary); }

.cc-design-name input[readonly] { cursor: default; }

/* Rotulo sobre la miniatura de tarjetas y cuadricula */
.cc-design-caption { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(0,0,0,0.6); color: #fff; font-family: var(--body); font-size: 11px; line-height: 1.3; padding: 3px 8px; border-radius: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }

.cc-design-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.cc-design-action-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: #fff; border: none; border-radius: 50px; padding: 8px 18px; font-family: var(--body); font-weight: 700; font-size: 12px; cursor: pointer; transition: background 0.2s; }

.cc-design-action-btn:hover { background: var(--secondary); }

.cc-design-delete-btn { background: #E53935; }

.cc-design-delete-btn:hover { background: #C62828; }

/* barra de progreso de subida */

.cc-upload-progress { position: sticky; bottom: 0; z-index: 6; align-self: stretch; display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding: 14px 16px; background: #fff; border: 1px solid rgba(34,34,34,0.08); border-radius: 10px; box-shadow: 0 4px 18px rgba(0,0,0,0.08); }

.cc-upload-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.cc-upload-progress-label { font-family: var(--body); font-weight: 700; font-size: 13px; color: #222; }

.cc-upload-progress-pct { font-family: var(--body); font-size: 12px; color: rgba(34,34,34,0.55); white-space: nowrap; }

.cc-upload-progress-track { position: relative; height: 8px; background: rgba(34,34,34,0.08); border-radius: 50px; overflow: hidden; }

.cc-upload-progress-bar { height: 100%; width: 0; background: var(--primary); border-radius: 50px; transition: width 0.2s ease; }

.cc-upload-progress.indeterminate .cc-upload-progress-bar { width: 40%; animation: cc-upload-slide 1.1s ease-in-out infinite; }

@keyframes cc-upload-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

.cc-upload-progress-cancel { align-self: flex-start; background: none; border: none; padding: 0; font-family: var(--body); font-size: 12px; color: rgba(34,34,34,0.5); text-decoration: underline; cursor: pointer; }

.cc-upload-progress-cancel:hover { color: #E53935; }

.cc-upload-progress.indeterminate .cc-upload-progress-cancel { visibility: hidden; }

/* pins */

.cc-pins-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

.cc-pin { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--body); font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3); border: 2px solid #fff; }

.cc-pin:hover { background: var(--terciary); }

.cc-draft-pin { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--secondary); color: #fff; font-family: var(--body); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 2px 10px rgba(0,0,0,0.3); border: 2px solid #fff; z-index: 5; }

/* right: comments panel */

.cc-panel { width: 380px; flex: 0 0 380px; display: flex; flex-direction: column; border-left: 1px solid rgba(34,34,34,0.08); background: #fff; }

.cc-comments-list { flex: 1; overflow-y: auto; padding: 20px; }

.cc-comments-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 40px 20px; }

.cc-comments-empty svg { color: rgba(34,34,34,0.15); margin-bottom: 16px; }

.cc-comments-empty strong { font-family: var(--body); font-weight: 700; font-size: 18px; color: #222; display: block; margin-bottom: 6px; }

.cc-comments-empty p { font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.45); max-width: 240px; }

.cc-comment { display: flex; gap: 10px; padding: 12px 0; }

.cc-comment + .cc-comment { border-top: 1px solid rgba(34,34,34,0.06); }

.cc-comment-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--terciary); color: #fff; font-family: var(--body); font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.cc-comment-body { flex: 1; min-width: 0; }

.cc-comment-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }

.cc-comment-head strong { font-family: var(--body); font-weight: 700; font-size: 14px; }

.cc-comment-head .cc-pin-ref { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--body); font-weight: 700; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.cc-comment-time { font-family: var(--body); font-size: 11px; color: rgba(34,34,34,0.4); }

.cc-comment-msg { font-family: var(--body); font-size: 13px; line-height: 1.5; background: #f2f2f2; border-radius: 8px; padding: 10px 14px; margin-top: 4px; }

.cc-comment-msg .comment-mention { color: var(--primary); font-family: var(--body); font-weight: 700; }

/* composer */

.cc-composer { border-top: 1px solid rgba(34,34,34,0.08); padding: 16px 20px; }

.cc-composer-ctx { display: flex; align-items: center; gap: 6px; background: rgba(0,134,191,0.08); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-family: var(--body); font-size: 12px; color: var(--primary); }

.cc-composer-ctx svg { flex-shrink: 0; }

.cc-ctx-clear { margin-left: auto; cursor: pointer; font-size: 18px; line-height: 1; }

.cc-composer-input-wrap { position: relative; margin-bottom: 10px; }

.cc-composer-input-wrap textarea { width: 100%; border: 1px solid rgba(34,34,34,0.15); border-radius: 10px; padding: 12px 16px; font-family: var(--body); font-size: 13px; resize: none; outline: none; box-sizing: border-box; }

.cc-composer-input-wrap textarea:focus { border-color: var(--primary); }

.cc-composer-input-wrap .mention-dropdown { position: absolute; bottom: 100%; left: 0; width: 100%; background: #fff; border: 1px solid rgba(34,34,34,0.1); border-radius: 8px; box-shadow: 0 -4px 12px rgba(0,0,0,0.08); max-height: 200px; overflow-y: auto; display: none; margin-bottom: 5px; }

.cc-composer-input-wrap .mention-dropdown.active { display: block; }

.cc-composer-row { display: flex; align-items: center; justify-content: space-between; }

.cc-composer-who { font-family: var(--body); font-size: 12px; color: rgba(34,34,34,0.5); }

.cc-composer-who b { font-family: var(--body); font-weight: 700; color: #222; }

.cc-send-btn { background: var(--primary); color: #fff; border: none; border-radius: 50px; padding: 8px 24px; font-family: var(--body); font-weight: 700; font-size: 13px; cursor: pointer; transition: background 0.2s; }

.cc-send-btn:hover { background: var(--secondary); }

.cc-send-btn:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 992px) {
    .cc-modal-body { flex-direction: column; }
    .cc-canvas-area { min-height: 250px; max-height: 50vh; }
    .cc-panel { width: 100%; flex: none; max-height: 50vh; }
    .cc-modal-head { padding: 16px 20px 14px; }
    .cc-modal-title { font-size: 20px; }
}

/* custom columns */

.cc-custom-col { position: relative; white-space: nowrap; }

.cc-custom-col .cc-del-col, .cc-custom-col .cc-rename-col { display: none; cursor: pointer; font-size: 14px; color: rgba(34,34,34,0.3); line-height: 1; margin-left: 6px; vertical-align: middle; background: none; border: none; padding: 2px 4px; }

.cc-custom-col:hover .cc-del-col, .cc-custom-col:hover .cc-rename-col { display: inline-block; }

.cc-del-col:hover { color: #E53935; }

.cc-rename-col:hover { color: #fff; }

/* default column admin controls */

.cc-default-col { position: relative; white-space: nowrap; }

.cc-default-col .cc-rename-col, .cc-default-col .cc-hide-col { display: none; cursor: pointer; font-size: 14px; color: rgba(34,34,34,0.3); line-height: 1; margin-left: 6px; vertical-align: middle; background: none; border: none; padding: 2px 4px; position: relative; z-index: 10; }

.cc-default-col:hover .cc-rename-col, .cc-default-col:hover .cc-hide-col { display: inline-block; }

.cc-default-col .cc-hide-col:hover { color: #E53935; }

.cc-default-col .cc-rename-col:hover { color: var(--primary); }

.cc-rename-input { width: 100%; padding: 4px 6px; border: 1px solid rgba(34,34,34,0.3); border-radius: 4px; font-family: var(--body); font-size: 13px; background: #fff; color: #222; box-sizing: border-box; }

.cc-rename-input:focus { outline: none; border-color: var(--primary); }

/* Va fixed y colgado del body: adentro de #gridContainer, que scrollea con
   overflow, el menu del "+" quedaba recortado por el borde de la grilla. */
.cc-col-dropdown { display: none; position: fixed; background: #fff; border: 1px solid rgba(34,34,34,0.12); border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,0.16); min-width: 200px; max-width: calc(100vw - 20px); max-height: 70vh; overflow-y: auto; z-index: 60; padding: 6px 0; }

.cc-col-dropdown.active { display: block; }

.cc-col-dropdown-item { padding: 8px 14px; font-family: var(--body); font-size: 13px; color: #222; cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: background 0.15s; }

.cc-col-dropdown-item:hover { background: #f2f2f2; }

.cc-col-dropdown-item svg { flex: 0 0 14px; color: #666; }

.cc-col-dropdown-divider { height: 1px; background: rgba(34,34,34,0.1); margin: 4px 0; }

.cc-add-col-th { width: 40px; text-align: center; }

#gridContainer { overflow: auto; overscroll-behavior: contain; }

#gridContainer table { width: max-content; min-width: 100%; }

#viewGrid table thead th { position: sticky; top: 0; z-index: 3; background: #fff; }

#viewGrid .cc-sticky-col { position: sticky; left: 0; background: #fff; z-index: 2; border-right: 1px solid transparent; transition: border-color 0.15s ease; }

#gridContainer.is-scrolled-x .cc-sticky-col { border-right-color: rgba(34, 34, 34, 0.12); }

#viewGrid thead .cc-sticky-col { z-index: 4; }

.cc-add-col-btn { background: none; border: 2px dashed rgba(34,34,34,0.2); border-radius: 6px; width: 32px; height: 32px; font-size: 20px; color: rgba(34,34,34,0.4); cursor: pointer; transition: border-color 0.2s, color 0.2s; display: flex; align-items: center; justify-content: center; padding: 0; }

.cc-add-col-btn:hover,
.cc-add-col-btn.is-open { border-color: var(--primary); color: var(--primary); }

.cc-custom-cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cc-custom-file-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }

.cc-custom-file-link { color: var(--primary); font-size: 13px; text-decoration: underline; }

.cc-custom-url-link { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; color: var(--primary); text-decoration: underline; }

.cc-custom-url-link:hover { color: var(--secondary); }

.cc-datetime-wrap { display: flex; gap: 4px; }

.cc-datetime-wrap input { width: 50%; }

/* add column modal */

.cc-add-col-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; }

.cc-add-col-modal.active { display: flex; }

.cc-add-col-modal-content { background: #fff; border-radius: 12px; width: 100%; max-width: 420px; overflow: hidden; }

.cc-add-col-modal-header { padding: 20px 24px; border-bottom: 1px solid #eee; }

.cc-add-col-modal-header h3 { margin: 0; font-size: 18px; }

.cc-add-col-modal-body { padding: 24px; display: grid; row-gap: 16px; }

.cc-add-col-modal-body .form-field label { display: block; font-family: var(--body); font-weight: 700; font-size: 13px; margin-bottom: 6px; }

.cc-add-col-modal-body input, .cc-add-col-modal-body select, .cc-add-col-modal-body textarea { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 14px; font-family: var(--body); font-size: 14px; box-sizing: border-box; }

.cc-add-col-modal-body textarea { resize: vertical; }

.cc-add-col-modal-footer { padding: 16px 24px; border-top: 1px solid #eee; text-align: right; }

.cc-add-col-modal-footer .btn-primary { background: var(--primary); color: #fff; border: none; border-radius: 50px; padding: 10px 28px; font-family: var(--body); font-weight: 700; font-size: 14px; cursor: pointer; transition: background 0.2s; }

.cc-add-col-modal-footer .btn-primary:hover { background: var(--secondary); }

.cc-text-modal .cc-add-col-modal-content { max-width: 720px; }

.cc-text-modal textarea { min-height: 220px; max-height: 60vh; overflow-y: auto; resize: vertical; line-height: 1.55; white-space: pre-wrap; }

.cc-text-modal textarea:focus { border-color: var(--primary); outline: none; }

.cc-text-modal textarea[readonly] { background: #f7f9fb; color: rgba(34,34,34,0.75); cursor: default; }

.cc-cell-copy, .cc-custom-cell[data-col-type="text"] { cursor: text; }

.cc-footer { padding: 30px 0; text-align: center; border-top: 1px solid rgba(34,34,34,0.08); margin-top: 20px; }

.cc-footer p { font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.4); }

.cc-new-row td { background: rgba(0,134,191,0.05); }

#viewGrid .cc-new-row .cc-sticky-col { background: #f3f9fc; }

.cc-new-date { min-width: 130px; }

/* Nombre del contenido nuevo (16/11): fijo al lado de la columna Fecha y con un ancho de campo, no de toda la fila */
#viewGrid .cc-new-row .cc-new-title { position: sticky; left: calc(var(--cc-new-left, 160px) + 8px); width: min(480px, 70vw); z-index: 1; }

/* ─── Vistas guardadas de Contenidos ─── */

/* Mismo aspecto que el selector de vista y el de cliente: son tres desplegables
   de la misma barra y tienen que leerse como hermanos. */
.cc-views-picker { gap: 6px; padding: 8px 10px 8px 12px; border: 1px solid var(--terciary); border-radius: 20px; cursor: pointer; background: #fff; transition: border-color 0.2s; }

.cc-views-picker:hover { border-color: var(--primary); }

.cc-views-picker p { margin: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--body); color: #222; }

.cc-views-picker .icon-item svg, .cc-views-picker .chevron-icon svg { width: 16px; height: 16px; }

/* Se filtro por encima de la vista: lo que se ve ya no es lo que el cliente va a
   ver. Se avisa en el mismo lugar donde dice el nombre, porque es ahi donde uno
   mira para saber que esta mirando. */
.cc-views-picker.is-modified { border-color: #E0A100; }

.cc-views-picker.is-modified p::after { content: ' · modificada'; color: #A15C00; font-size: 12px; }

.cc-views-menu { left: auto; right: 0; min-width: 280px; max-width: 340px; }

.cc-views-list { max-height: 320px; overflow-y: auto; }

/* Fila con el ⋯: el link ocupa todo el ancho que sobra para que el area de clic
   sea la fila entera y no solo el texto. */
.cc-view-row { display: flex; align-items: center; }

.cc-view-row .cc-view-opt { flex: 1; min-width: 0; }

.cc-view-opt { display: block; padding: 8px 12px; border-radius: 6px; font-family: var(--body); font-size: 13px; color: #222; text-decoration: none; transition: background 0.15s; }

.cc-view-opt:hover { background: #f0f4f8; }

.cc-view-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cc-view-row.active .cc-view-opt, .cc-view-opt.active { background: #e8f4fd; font-family: var(--body); font-weight: 700; }

.cc-view-menu-btn { flex: none; width: 28px; height: 28px; margin-right: 4px; border: 0; border-radius: 6px; background: transparent; color: rgba(34,34,34,0.5); font-size: 16px; line-height: 1; cursor: pointer; }

.cc-view-menu-btn:hover { background: rgba(34,34,34,0.08); color: #222; }

.cc-views-actions { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(34,34,34,0.1); }

.cc-view-save { width: 100%; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; font-family: var(--body); font-weight: 700; font-size: 13px; color: var(--primary); text-align: left; cursor: pointer; }

.cc-view-save:hover { background: #f0f4f8; }

/* Menu del ⋯. Va suelto en el body y posicionado a mano: dentro del desplegable
   se cerraria junto con el, que es justo cuando hace falta. */
.cc-view-menu { position: absolute; z-index: 2100; min-width: 200px; padding: 6px; background: #fff; border: 1px solid rgba(34,34,34,0.12); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.cc-view-menu button { display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; font-family: var(--body); font-size: 13px; color: #222; text-align: left; cursor: pointer; }

.cc-view-menu button:hover { background: #f0f4f8; }

/* Eliminar va separado y en rojo: es la unica accion del menu que no se puede
   deshacer, y el separador evita el clic de mas cuando alguien apunta a
   "Asignar" y el menu se movio. */
.cc-view-menu .cc-view-menu-danger { margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(34,34,34,0.12); border-radius: 0 0 6px 6px; color: #C4563F; }

.cc-view-menu .cc-view-menu-danger:hover { background: #FBEDEA; }

/* Resumen de lo que se esta por guardar, en el modal. */
.cc-view-summary { padding: 12px 14px; border-radius: 8px; background: #F7F7F8; }

.cc-view-summary p { margin: 0 0 6px; font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.75); }

.cc-view-summary p:last-child { margin-bottom: 0; }

.cc-view-summary strong { font-family: var(--body); font-weight: 700; color: #222; }

.cc-view-refresh { font-size: 13px; }

/* Asignar */

.cc-assign-modal .cc-add-col-modal-content { max-width: 560px; }

.cc-assign-help { margin: 0; font-family: var(--body); font-size: 13px; color: rgba(34,34,34,0.6); }

.cc-assign-list { border: 1px solid #eee; border-radius: 8px; padding: 4px; }

.cc-assign-users { max-height: 220px; overflow-y: auto; }

/* Dos columnas: quien, y si ademas entra con esta. La segunda va a la derecha
   con ancho fijo para que las casillas queden alineadas entre filas. */
.cc-assign-row { display: flex; align-items: center; gap: 10px; }

.cc-assign-row .cc-assign-who { flex: 1; min-width: 0; }

.cc-assign-row .cc-assign-default { flex: none; width: 190px; color: rgba(34,34,34,0.6); }

.cc-assign-row .cc-assign-default input:disabled + span { opacity: 0.4; }

.cc-assign-role { font-style: normal; font-size: 11px; color: rgba(34,34,34,0.45); }

/* El borrado vive en el modal de asignar y no en el desplegable: es la pantalla
   donde se ve a quien le afecta borrarla. */
.cc-assign-modal .cc-add-col-modal-footer { display: flex; align-items: center; justify-content: space-between; }

.cc-view-delete { border: 0; background: transparent; font-family: var(--body); font-size: 13px; color: #C62828; cursor: pointer; padding: 10px 0; }

.cc-view-delete:hover { text-decoration: underline; }

/* end content calendar */

/* report source block */

.report-source-block { background: #F7F7F8; border-radius: 10px; padding: 20px 24px; margin-top: 20px; margin-bottom: 20px; }

.report-source-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

.report-source-title { font-family: var(--body); font-weight: 700; font-size: 14px; }

.report-source-tabs { display: flex; gap: 4px; background: #E8E8EA; border-radius: 8px; padding: 3px; }

.report-source-tab { display: flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; color: #666; transition: all 0.2s ease; }

.report-source-tab:hover { color: #333; }

.report-source-tab.active { background: #fff; color: #222; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }

.report-source-tab input[type="radio"] { display: none; }

.report-source-body .form-field label { display: block; font-family: var(--body); font-weight: 700; font-size: 14px; margin-bottom: 8px; }

.report-source-body .form-field input[type="url"] { display: block; width: 100%; border: 0; border-bottom: 1px solid rgba(34, 34, 34, 0.15); padding: 8px 0; outline: none; background: transparent; transition: border-color 0.3s ease; }

.report-source-body .form-field input[type="file"] { display: block; width: 100%; border: none; padding: 8px 0; outline: none; background: transparent; }

.report-source-body .form-field input[type="url"]:focus { border-bottom-color: var(--primary); }

.report-source-body .form-field .field-hint { margin-top: 6px; font-family: var(--body); font-size: 13px; color: #666; }

.report-source-body .form-field .field-hint a { color: var(--primary); text-decoration: underline; }

.report-type-group.is-hidden { display: none; }

@media (max-width: 600px) {
    .report-source-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.cc-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.cc-adv-divider { height: 1px; background: rgba(34,34,34,0.1); margin: 6px 4px; }

.cc-adv-body { display: flex; flex-direction: column; row-gap: 8px; padding: 6px; }

.cc-adv-op,
.cc-adv-text,
.cc-adv-num,
.cc-adv-search { font-family: var(--body); font-size: 13px; color: #222; border: 1px solid rgba(34,34,34,0.18); border-radius: 6px; padding: 7px 9px; outline: none; box-sizing: border-box; background: #fff; width: 100%; }

.cc-adv-op { cursor: pointer; }

.cc-adv-op:focus,
.cc-adv-text:focus,
.cc-adv-num:focus,
.cc-adv-search:focus { border-color: var(--primary); }

.cc-adv-vals { display: flex; align-items: center; column-gap: 6px; }

.cc-adv-sep { font-family: var(--body); font-size: 12px; color: rgba(34,34,34,0.5); }

.cc-clear-filters { display: inline-flex; align-items: center; column-gap: 6px; border: 1px solid var(--terciary); background: #fff; cursor: pointer; font-family: var(--body); color: #222; padding: 8px 10px 8px 12px; border-radius: 20px; white-space: nowrap; transition: all 0.2s; }

.cc-clear-filters:hover { border-color: var(--primary); color: var(--primary); }

#customFiltersContainer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }

.cc-header-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 15px 20px; min-height: 58px; }

.cc-header-row .cc-add-btn { margin-left: 0; padding: 8px 20px; border: 1px solid var(--terciary); }

.cc-header-row .cc-add-btn:hover { border-color: var(--primary); }

.cc-header-row .cc-tabs-bar { flex: 0 1 min-content; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }

.cc-header-row .cc-tabs-bar::-webkit-scrollbar { display: none; }

.cc-header-actions { flex-wrap: wrap; justify-content: flex-end; }

.cc-client-picker { min-width: 0; }

.cc-client-picker p { overflow: hidden; text-overflow: ellipsis; }

.cc-fpanel { max-width: calc(100vw - 20px); }

.cc-col-type-note { font-family: var(--body); font-size: 12px; line-height: 1.5; color: #8a5300; background: #FFF6E5; border: 1px solid rgba(214, 158, 46, 0.35); border-radius: 8px; padding: 10px 12px; margin-top: 4px; }

.cc-col-type-note.is-info { color: rgba(34,34,34,0.6); background: #F2F6FA; border-color: rgba(34,34,34,0.12); }

.record-registration-section form .form-group.module-setup { background: rgba(0, 134, 191, 0.04); border: 1px solid rgba(0, 134, 191, 0.18); border-radius: 10px; padding: 20px; margin-bottom: 20px; }

.record-registration-section form .form-group.module-setup .setup-steps { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(0, 134, 191, 0.18); }

.record-registration-section form .form-group.module-setup .setup-steps-title { font-family: var(--body); font-weight: 700; font-size: 13px; margin: 0 0 10px; color: var(--terciary); }

.record-registration-section form .form-group.module-setup .setup-steps ol { margin: 0; padding-left: 18px; }

.record-registration-section form .form-group.module-setup .setup-steps li { font-size: 13px; line-height: 1.6; margin-bottom: 8px; color: rgba(34, 34, 34, 0.75); }

.record-registration-section form .form-group.module-setup .setup-steps li:last-child { margin-bottom: 0; }

.record-registration-section form .form-group.module-setup .setup-steps code { background: rgba(34, 34, 34, 0.07); border-radius: 4px; padding: 2px 6px; font-size: 12px; word-break: break-all; }

@media (max-width: 1380px) {
	.header .row .column .inner-row h2 { font-size: 20px; }
	
	.notification-bell-btn svg,
	.header .row .column:nth-child(3) a svg { width: 21px; height: 21px; }
}

@media (max-width: 768px) {
	.header .row .column .inner-row h2 { display: none; }
}
/* ─── Columna de seleccion multiple ─── */

/* Los valores elegidos se muestran como chips y no como texto separado por
   comas: con tres o cuatro valores, la coma no deja ver donde termina uno. */
.cc-chip { display: inline-block; margin: 1px 3px 1px 0; padding: 2px 8px; border-radius: 10px; background: #eef3f8; font-family: var(--body); font-size: 11px; color: #222; white-space: nowrap; }

/* Editor de la celda: se abre en el lugar y guarda al hacer clic afuera, para
   poder marcar varias opciones seguidas sin un guardado por cada tilde. */
.cc-multi-edit { max-height: 180px; overflow-y: auto; background: #fff; border: 1px solid rgba(34,34,34,0.15); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); padding: 4px; min-width: 160px; }

.cc-multi-vacio { margin: 0; padding: 8px; font-family: var(--body); font-size: 12px; color: rgba(34,34,34,0.45); }

/* ─── Seleccion de filas y acciones en lote (Contenidos) ─── */

/* Angosta y fija: es la primera columna, y al scrollear en horizontal tiene que
   quedar pegada igual que la de Fecha. */
#viewGrid .cc-sel-col { width: 36px; min-width: 36px; padding-left: 0; padding-right: 0; text-align: center; position: sticky; left: 0; background: #fff; z-index: 2; }

#viewGrid thead .cc-sel-col { z-index: 4; }

/* Con la casilla adelante, la primera columna de datos deja de estar en el
   borde: se corre 36px para no quedar debajo de ella. */
#gridContainer.is-seleccionable #viewGrid .cc-sticky-col,
#viewGrid .cc-sel-col ~ .cc-sticky-col { left: 36px; }

#viewGrid tr.is-selected td { background: #f0f8fd; }

#viewGrid tr.is-selected .cc-sticky-col,
#viewGrid tr.is-selected .cc-sel-col { background: #f0f8fd; }

/* La barra vive fija abajo y aparece sola cuando hay algo seleccionado: no
   empuja la grilla ni ocupa lugar mientras no se usa. */
.cc-bulk-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #222; color: #fff; padding: 12px 0; transform: translateY(100%); transition: transform 0.2s ease; }

.cc-bulk-bar.is-visible { transform: translateY(0); }

.cc-bulk-bar .container { gap: 12px; flex-wrap: wrap; }

.cc-bulk-count { font-family: var(--body); font-weight: 700; font-size: 13px; white-space: nowrap; margin-right: 8px; }

.cc-bulk-select { border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; border-radius: 16px; padding: 6px 10px; font-family: var(--body); font-size: 12px; cursor: pointer; }

.cc-bulk-select option { color: #222; }

.cc-bulk-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; border-radius: 16px; padding: 6px 14px; font-family: var(--body); font-size: 12px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }

.cc-bulk-btn:hover { background: rgba(255,255,255,0.18); }

.cc-bulk-btn.is-danger:hover { background: #c0392b; border-color: #c0392b; }

.cc-bulk-clear { margin-left: auto; border: none; background: none; color: rgba(255,255,255,0.65); font-family: var(--body); font-size: 12px; cursor: pointer; text-decoration: underline; }

.cc-bulk-clear:hover { color: #fff; }

/* ─── Alta rapida desde el calendario ─── */

/* Arriba a la derecha de cada dia y visible solo al pasar el mouse: con 35
   celdas, mostrarlos todos siempre llena el mes de botones y le compite la
   atencion a los contenidos, que son lo que hay que leer. */
.cc-cal-add { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 4px; background: rgba(34,34,34,0.06); color: rgba(34,34,34,0.55); font-size: 15px; line-height: 1; cursor: pointer; padding: 0; opacity: 0; transition: opacity 0.15s, background 0.15s, color 0.15s; }

.cc-cal-cell:hover .cc-cal-add { opacity: 1; }

.cc-cal-add:hover { background: var(--primary); color: #fff; }

/* Con teclado no hay hover: si recibe foco tiene que verse igual. */
.cc-cal-add:focus-visible { opacity: 1; outline: 2px solid var(--primary); outline-offset: 1px; }

.cc-cal-nueva { margin-top: 4px; }

.cc-cal-nueva input { width: 100%; box-sizing: border-box; border: 1px solid var(--primary); border-radius: 4px; padding: 3px 6px; font-family: var(--body); font-size: 11px; outline: none; }


/* ─── Popup de alta rapida del calendario ─── */

.cc-quick-modal .cc-add-col-modal-content { max-width: 420px; }

/*
 * Sin el anillo de foco del navegador, que en el titulo se veia como un marco
 * negro grueso. Se reemplaza por el borde en color: el foco tiene que seguir
 * viendose, porque es lo unico que orienta a quien navega con teclado.
 */
.cc-quick-modal input,
.cc-quick-modal select,
.cc-quick-modal textarea { outline: none; }

.cc-quick-modal input:focus,
.cc-quick-modal select:focus,
.cc-quick-modal textarea:focus { border-color: var(--primary); }

/*
 * La flecha de los selectores queda pegada al borde derecho porque la dibuja el
 * navegador y no se puede mover. Se apaga la nativa (appearance) y se pone una
 * propia como fondo, con aire a la derecha; el padding-right deja lugar para que
 * el texto no se le encime.
 */
.cc-quick-modal select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

/*
 * La lista de asignados usa la misma estructura que el picker de la Grilla
 * (.cc-picker-search / .cc-picker-list / .cc-picker-empty). Aca va embebida en
 * el formulario en vez de flotando, asi que se le saca el position fixed y la
 * sombra, y se le pone el alto maximo que corresponde a un campo mas del popup.
 */
.cc-quick-assignees { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 6px; max-height: 150px; }

.cc-quick-assignees .cc-picker-list { overflow-y: auto; }

/* El buscador es un campo del picker, no del formulario: va mas chico y con
   lugar para la lupa. */
.cc-quick-assignees .cc-adv-search { padding: 7px 10px 7px 31px; font-size: 13px; border-radius: 6px; }

.cc-quick-assignees .filter-option { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-family: var(--body); font-size: 13px; }

.cc-quick-assignees .filter-option:hover { background: #f0f4f8; }

/*
 * Las casillas quedan igual que las del picker de la Grilla.
 *
 * Hay que resetearlas a mano porque la regla de los campos del modal
 * (.cc-add-col-modal-body input) les aplica width:100%, borde, radio y
 * padding:10px 14px: con eso la casilla salia como un cuadrado grande, corrido
 * respecto del avatar y del nombre. El padding y el borde son lo que
 * descentraba; el tamanio fijo y el margin 0 la dejan alineada con la linea.
 */
.cc-quick-assignees .filter-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* Meta organico en la ficha del cliente: estado de la sincronizacion y "Volver a cargar" */
.record-registration-section form .form-group.module-setup .meta-sync { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; padding: 10px 14px; border-radius: 8px; background: rgba(0, 134, 191, 0.06); font-family: var(--body); font-size: 13px; color: var(--terciary); }
.record-registration-section form .form-group.module-setup .meta-sync-estado { min-width: 0; overflow-wrap: anywhere; }
.record-registration-section form .form-group.module-setup .meta-sync-btn { flex: none; border: 1px solid var(--primary); border-radius: 6px; background: #fff; color: var(--primary); font: 600 13px var(--body); padding: 6px 12px; cursor: pointer; }
.record-registration-section form .form-group.module-setup .meta-sync-btn:hover { background: var(--primary); color: #fff; }
.record-registration-section form .form-group.module-setup .meta-sync-btn:disabled { opacity: .6; cursor: default; }

/* Contenidos: diseño en PDF (13/11). No tiene miniatura: tarjeta con el icono, "PDF" y el nombre,
   del tamaño de la miniatura que reemplaza (grilla, tablero, tira de la revision, edicion) */
.cc-pdf-thumb { width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; box-sizing: border-box; background: #FDECEC; color: #B42318; text-decoration: none; overflow: hidden; }
.cc-pdf-thumb svg { width: 40%; max-width: 36px; height: auto; flex: none; }
.cc-pdf-thumb b { font-weight: 700; font-size: 12px; line-height: 1.1; letter-spacing: .04em; }
.cc-pdf-thumb small { max-width: 100%; color: #7A271A; font-size: 10.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-design-thumb .cc-pdf-thumb { padding: 0; }
.cc-design-thumb .cc-pdf-thumb svg { width: 20px; height: 20px; stroke: currentColor; }
.cc-design-thumb .cc-pdf-thumb b, .cc-design-thumb .cc-pdf-thumb small { display: none; }
