/* JSPREADSHEET: TEMA "CLEAN SAAS" */
.jexcel_container { width: 100% !important; height: 100% !important; background-color: #fff; font-family: 'Inter', sans-serif !important; border: none !important; overflow: hidden !important; }
.jexcel>thead>tr>td { background-color: #fff !important; color: #64748b !important; font-weight: 600 !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 2px solid #f1f5f9 !important; border-right: 1px solid transparent !important; padding: 14px 10px !important; }
.jexcel>tbody>tr>td { color: #1e293b !important; font-size: 14px !important; padding: 10px 12px !important; border-bottom: 1px solid #f1f5f9 !important; border-right: 1px solid transparent !important; background-color: #fff !important; }
.jexcel>tbody>tr:hover>td { background-color: #f8fafc !important; }
.jexcel>tbody>tr>td.jexcel_row { background-color: #f8fafc !important; color: #94a3b8 !important; font-size: 11px !important; border-right: 2px solid #e2e8f0 !important; border-bottom: 1px solid #f1f5f9 !important; }
.jexcel .highlight { background-color: rgba(37, 99, 235, 0.08) !important; border: 2px solid #3b82f6 !important; border-radius: 4px !important; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important; z-index: 100 !important; }
.jexcel .corner { background-color: #3b82f6 !important; border-radius: 50%; width: 8px; height: 8px; border: 2px solid white; }
.jexcel_content input { font-family: 'Inter', sans-serif !important; font-size: 14px !important; color: #0f172a !important; padding-left: 8px !important; }

/* TOOLBAR & HEADER */
.jexcel_filter { display: none !important; }
.jexcel_pagination { display: none !important; }
.jexcel_toolbar { display: flex !important; align-items: center !important; background-color: #f1f5f9 !important; border-radius: 100px !important; padding: 4px 8px !important; gap: 2px !important; border: 1px solid #e2e8f0 !important; margin: 14px auto 10px auto !important; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important; width: fit-content !important; }
.jexcel_toolbar_item { width: 32px !important; height: 32px !important; border-radius: 4px !important; display: flex !important; align-items: center !important; justify-content: center !important; color: #64748b !important; background: transparent !important; transition: all 0.2s !important; cursor: pointer !important; transform: translateY(-1px); }
.jexcel_toolbar_item:hover { background-color: #e2e8f0 !important; color: #0f172a !important; }
.jexcel_toolbar_item i { font-size: 18px !important; line-height: 1 !important; }
.jexcel_toolbar_item.jexcel_toolbar_divisor { width: 1px !important; height: 18px !important; background-color: #cbd5e1 !important; margin: 0 6px !important; }

/* BUSCADOR */
.jexcel_search { height: 28px !important; width: 140px !important; border: none !important; background-color: transparent !important; border-radius: 4px !important; padding: 0 8px 0 28px !important; font-size: 13px !important; outline: none !important; margin-left: 4px !important; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3e%3c/svg%3e") !important; background-repeat: no-repeat !important; background-position: 6px center !important; background-size: 16px !important; transition: all 0.2s !important; padding-right: 0px !important; flex-grow: 1 !important; }
.jexcel_search:focus { background-color: #fff !important; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important; width: 200px !important; }

/* SCROLLBAR JEXCEL */
.jexcel_content { scrollbar-width: auto !important; scrollbar-color: #64748b #f1f5f9 !important; }
.jexcel_content::-webkit-scrollbar { width: 24px !important; height: 24px !important; }
.jexcel_content::-webkit-scrollbar-track { background: #f8fafc !important; border-left: 1px solid #e2e8f0 !important; }
.jexcel_content::-webkit-scrollbar-thumb { background-color: #64748b !important; border: 4px solid #f8fafc !important; border-radius: 12px !important; }
.jexcel_content::-webkit-scrollbar-thumb:hover { background-color: #334155 !important; }
.jexcel_content::-webkit-scrollbar-corner { background-color: #f8fafc; }
.jexcel_container { height: 100% !important; width: 100% !important; overflow: hidden !important; }
.jexcel_content { height: 100% !important; width: 100% !important; overflow: auto !important; padding-bottom: 100px !important; box-sizing: border-box !important; }

/* SEARCH & REPLACE */
.search-replace-container { display: flex !important; align-items: center !important; background-color: #fff !important; border: 1px solid #e2e8f0 !important; border-radius: 6px !important; padding: 2px !important; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important; width: 180px !important; overflow: hidden !important; position: relative !important; z-index: 20 !important; }
.search-replace-container.active { width: 420px !important; border-color: #3b82f6 !important; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important; }
.jexcel_search { border: none !important; background-color: transparent !important; height: 28px !important; width: 100% !important; padding: 0 8px 0 28px !important; font-size: 13px !important; outline: none !important; color: #1e293b !important; margin: 0 !important; box-shadow: none !important; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3e%3c/svg%3e") !important; background-repeat: no-repeat !important; background-position: 8px center !important; background-size: 14px !important; }
.search-divider { width: 1px !important; height: 16px !important; background-color: #e2e8f0 !important; margin: 0 8px !important; display: none !important; }
.search-replace-container.active .search-divider { display: block !important; }
.jexcel_replace { border: none !important; background-color: transparent !important; height: 28px !important; padding: 0 8px !important; font-size: 13px !important; outline: none !important; color: #1e293b !important; width: 0 !important; opacity: 0 !important; transition: width 0.3s ease, opacity 0.2s ease !important; }
.search-replace-container.active .jexcel_replace { width: 180px !important; opacity: 1 !important; }
.replace-btn { display: none !important; width: 24px !important; height: 24px !important; align-items: center !important; justify-content: center !important; border-radius: 4px !important; color: #3b82f6 !important; background: #eff6ff !important; cursor: pointer !important; margin-right: 4px !important; flex-shrink: 0 !important; }
.replace-btn:hover { background: #2563eb !important; color: white !important; }
.search-replace-container.active .replace-btn { display: flex !important; }

/* OPEN IN DROPDOWN */
.open-in-container { position: relative; display: inline-block; margin-right: 5px; }
.open-in-dropdown { display: none; position: absolute; top: 100%; left: 0; background: white; border: 1px solid #ddd; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); z-index: 1000; min-width: 180px; border-radius: 4px; padding: 5px 0; }
.open-in-dropdown.active { display: block; }
.open-in-item { display: block; width: 100%; padding: 8px 12px; text-align: left; background: none; border: none; cursor: pointer; font-size: 13px; color: #333; transition: background 0.2s; }
.open-in-item:hover { background-color: #f3f4f6; color: #000; }
.open-in-item span { margin-right: 8px; }
