/* TidyOne V13.5.43 — Document Card Component Refactor */
.v12-upload-first{order:-20}
#bara-contabil{display:none!important}
.v12-doc-notice{display:none;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;margin:0 0 18px;border:1px solid #bfdbfe;border-radius:15px;background:linear-gradient(135deg,#eff6ff,#f5f3ff);color:#1e3a8a}
.v12-doc-notice.show{display:flex}.v12-doc-notice strong{display:block;font-size:13px}.v12-doc-notice span{display:block;font-size:11px;color:#64748b;margin-top:3px}
.v12-category-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 10px}.v12-category-head h2{margin:0;font-size:17px}.v12-category-actions{display:flex;gap:8px;flex-wrap:wrap}
.v12-category-ai{border:0;border-radius:10px;background:linear-gradient(135deg,#7c3aed,#4f46e5);color:white;padding:9px 12px;font:800 12px Inter;cursor:pointer}.v12-category-ai:disabled{opacity:.55;cursor:not-allowed}
.tabs-container{padding-bottom:10px}.tab-btn{position:relative}.v12-cat-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:rgba(15,23,42,.08);font-size:10px;font-weight:800}.tab-btn.active .v12-cat-count{background:rgba(255,255,255,.18)}
.v12-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 16px;padding:12px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-sm)}
.v12-search{flex:1 1 260px;position:relative}.v12-search input{width:100%;border:1px solid var(--border);border-radius:10px;padding:11px 12px 11px 36px;font:600 12px Inter;background:#f8fafc;color:var(--navy);outline:none}.v12-search input:focus{border-color:#60a5fa;background:#fff;box-shadow:0 0 0 3px #dbeafe}.v12-search span{position:absolute;left:12px;top:10px;color:#94a3b8}
.v12-toolbar select{border:1px solid var(--border);border-radius:10px;padding:10px 11px;background:#fff;color:var(--navy);font:700 11px Inter}
.v12-selection{display:none;position:sticky;top:66px;z-index:40;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;margin:0 0 14px;background:rgba(15,23,42,.96);color:#fff;border-radius:14px;box-shadow:0 10px 28px rgba(15,23,42,.24);backdrop-filter:blur(10px)}.v12-selection.show{display:flex}.v12-selection-copy strong{font-size:13px}.v12-selection-copy span{font-size:10px;color:#cbd5e1;margin-left:7px}.v12-selection-actions{display:flex;gap:7px;flex-wrap:wrap}.v12-selection-actions button{border:0;border-radius:9px;padding:8px 10px;font:800 10px Inter;cursor:pointer}.v12-selection-actions .primary{background:#38bdf8;color:#082f49}.v12-selection-actions .secondary{background:#334155;color:#fff}
.docs-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;gap:15px!important}.doc-card{padding:0!important;display:block!important;overflow:hidden;border-radius:16px!important}.doc-preview{height:158px!important;background:#e2e8f0;position:relative;display:grid;place-items:center;overflow:hidden}.doc-preview img{width:100%;height:100%;object-fit:cover;display:block}.doc-card-body{padding:12px!important}.doc-name{font-size:12px!important;margin-bottom:4px}.doc-smart-type{font-size:10px;color:#2563eb;font-weight:800}.doc-meta-line{font-size:10px!important;line-height:1.45;margin-top:5px;color:#64748b}.doc-card-actions{top:8px!important;right:8px!important}.v12-select-box{position:absolute;z-index:5;right:8px;bottom:8px;width:31px;height:31px;border:1px solid rgba(255,255,255,.7);border-radius:9px;background:rgba(15,23,42,.55);backdrop-filter:blur(7px);color:#fff;font-weight:900;cursor:pointer}.v12-select-box.selected{background:#2563eb;border-color:#93c5fd}.v12-ai-chip{position:absolute;z-index:4;left:8px;bottom:8px;color:white;background:linear-gradient(135deg,rgba(37,99,235,.93),rgba(124,58,237,.78));backdrop-filter:blur(6px);padding:5px 8px;border-radius:999px;font:800 9px Inter;box-shadow:0 4px 12px rgba(15,23,42,.15)}
.v12-pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin:18px 0 10px}.v12-pagination button{border:1px solid var(--border);background:#fff;border-radius:9px;padding:8px 11px;font:800 11px Inter;cursor:pointer}.v12-pagination button:disabled{opacity:.4;cursor:not-allowed}.v12-pagination span{font:700 11px Inter;color:#64748b}
.v12-modal{position:fixed;inset:0;background:rgba(15,23,42,.7);backdrop-filter:blur(5px);z-index:5000;display:none;align-items:center;justify-content:center;padding:14px}.v12-modal.open{display:flex}.v12-modal-card{width:min(720px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:22px;padding:20px;box-shadow:0 24px 70px rgba(15,23,42,.35)}.v12-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.v12-modal-head h3{margin:0;font-size:19px}.v12-modal-head p{margin:5px 0 0;color:#64748b;font-size:11px;line-height:1.5}.v12-close{border:0;background:#f1f5f9;border-radius:999px;width:34px;height:34px;font-size:20px;cursor:pointer}.v12-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0}.v12-category-choice{border:1px solid #dbe3ee;background:#fff;border-radius:12px;padding:12px;text-align:left;font:800 11px Inter;cursor:pointer}.v12-category-choice:hover{border-color:#60a5fa;background:#eff6ff}.v12-ai-choice{grid-column:1/-1;background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff;border:0}.v12-batch-list{display:grid;gap:7px;margin:12px 0}.v12-batch-row{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:9px;align-items:center;padding:9px 10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px}.v12-batch-row strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v12-batch-row select{width:100%;padding:9px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font:700 10px Inter}.v12-progress{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:12px 0}.v12-progress>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#2563eb,#7c3aed);transition:width .25s}.v12-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.v12-modal-actions button{border:0;border-radius:10px;padding:10px 13px;font:800 11px Inter;cursor:pointer}.v12-modal-actions .confirm{background:#2563eb;color:#fff}.v12-modal-actions .cancel{background:#f1f5f9;color:#334155}
.v12-share-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:15px}.v12-share-grid button{border:1px solid #e2e8f0;background:#fff;border-radius:13px;padding:12px 7px;font:800 10px Inter;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px}.v12-share-grid b{font-size:22px}.v12-share-note{font-size:10px;color:#64748b;line-height:1.5;margin-top:12px}
.v12-empty-icon{font-size:32px;margin-bottom:8px}.v12-upload-summary{font-size:11px;color:#64748b;margin-top:8px}.upload-zone h3 #nume-dosar-curent{display:none!important}
@media(max-width:760px){.v12-doc-notice{align-items:flex-start;flex-direction:column}.v12-category-head{align-items:flex-start;flex-direction:column}.v12-toolbar{gap:7px}.v12-toolbar select{flex:1}.docs-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.doc-preview{height:132px!important}.v12-selection{top:58px;align-items:flex-start;flex-direction:column}.v12-batch-row{grid-template-columns:1fr}.v12-share-grid{grid-template-columns:repeat(2,1fr)}.v12-category-grid{grid-template-columns:1fr}.v12-ai-choice{grid-column:auto}.v12-modal-card{padding:16px;border-radius:18px}}
@media(max-width:390px){.docs-grid{grid-template-columns:1fr!important}.doc-preview{height:190px!important}}

/* TidyOne V12.1 premium document UX */
.v12-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.v12-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.v12-upload-first{padding:28px!important;border:1px solid #dbe6f2!important;border-radius:20px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;box-shadow:0 14px 40px rgba(15,23,42,.06)!important}
.v12-upload-first h3{font-size:20px!important;letter-spacing:-.02em}.v12-upload-first p{max-width:680px;line-height:1.55!important}
.v12-doc-notice{border:1px solid #d8e4f2;background:#fff;box-shadow:0 8px 26px rgba(15,23,42,.05);color:#172554}.v12-notice-copy{display:flex;align-items:flex-start;gap:10px}.v12-notice-copy>.v12-icon{width:32px;height:32px;border-radius:10px;background:#eef2ff;color:#4f46e5}.v12-notice-copy>.v12-icon svg{width:17px;height:17px}
.v12-category-head{margin-top:24px}.v12-category-head h2{font-size:19px}.v12-category-head p{margin:4px 0 0;color:#64748b;font-size:11px;line-height:1.45}.v12-category-ai{display:inline-flex;align-items:center;gap:7px;background:#15223b;border:1px solid #1e2d4a;box-shadow:0 7px 18px rgba(15,23,42,.14);padding:10px 13px}
.v12-toolbar{display:block;padding:13px;border-radius:16px}.v12-search{max-width:none}.v12-search>.v12-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#94a3b8}.v12-search input{height:44px;padding-left:39px;font-size:12px;border-radius:12px}
.v12-filter-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.v12-filter{display:inline-flex;align-items:center;gap:6px;border:1px solid #dbe3ee;background:#fff;color:#475569;border-radius:999px;padding:8px 11px;font:750 10px/1 Inter,system-ui;cursor:pointer;transition:.16s ease}.v12-filter:hover{border-color:#9fc7f5;background:#f8fbff}.v12-filter.active{background:#eaf4ff;border-color:#88bff4;color:#145a9f}.v12-select-unsent{margin-left:auto;background:#f8fafc;color:#1e293b;border-style:dashed}.v12-select-unsent .v12-icon svg{width:13px;height:13px}
.v12-selection-actions button{display:inline-flex;align-items:center;gap:6px}.v12-selection-actions .v12-icon svg{width:14px;height:14px}
.docs-grid{grid-template-columns:repeat(auto-fill,minmax(225px,1fr))!important}.doc-card{border:1px solid #e3eaf2!important;background:#fff;box-shadow:0 7px 24px rgba(15,23,42,.06)!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.doc-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(15,23,42,.09)!important;border-color:#cbd9e8!important}.doc-preview{height:172px!important;background:#edf2f7}.doc-status-overlay{font-weight:800!important;letter-spacing:.01em}.v12-ai-chip{display:flex;align-items:center;gap:5px;background:rgba(30,64,175,.88);border:1px solid rgba(255,255,255,.35)}.v12-ai-chip .v12-icon svg{width:11px;height:11px}
.v12-more-btn{position:absolute;z-index:8;right:8px;top:8px;width:34px;height:34px;border:1px solid rgba(255,255,255,.55);border-radius:10px;background:rgba(15,23,42,.58);color:#fff;display:grid;place-items:center;cursor:pointer;backdrop-filter:blur(8px)}.v12-more-btn:hover{background:rgba(15,23,42,.78)}.v12-more-btn .v12-icon svg{width:17px;height:17px}
.v12-card-menu{display:none;position:absolute;z-index:20;right:8px;top:48px;width:188px;padding:6px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 16px 38px rgba(15,23,42,.18)}.v12-card-menu.open{display:grid}.v12-card-menu button{border:0;background:transparent;border-radius:9px;padding:9px 10px;display:flex;align-items:center;gap:8px;text-align:left;color:#334155;font:700 10px Inter,system-ui;cursor:pointer}.v12-card-menu button:hover{background:#f1f5f9}.v12-card-menu button.danger{color:#b91c1c}.v12-card-menu .v12-icon svg{width:14px;height:14px}
.v12-select-box{display:grid;place-items:center}.v12-select-box .v12-icon svg{width:15px;height:15px}
.v12-card-ai-state{display:inline-flex;align-items:center;gap:5px;margin-top:9px;padding:5px 8px;border-radius:999px;font:800 9px Inter,system-ui}.v12-card-ai-state.done{background:#eef2ff;color:#4f46e5}.v12-card-ai-state.pending{background:#f1f5f9;color:#64748b}.v12-card-ai-state .v12-icon svg{width:11px;height:11px}
.v12-modal-card{border:1px solid rgba(226,232,240,.9)}.v12-close{display:grid;place-items:center;color:#64748b}.v12-close .v12-icon svg{width:16px;height:16px}.v12-modal-actions button{display:inline-flex;align-items:center;gap:6px}.v12-modal-actions .v12-icon svg{width:14px;height:14px}
.v12-ai-choice{display:flex;align-items:center;gap:8px;justify-content:center;background:linear-gradient(135deg,#334155,#1e40af)}
.v12-share-card{max-width:610px!important}.v12-share-primary{width:100%;margin-top:16px;border:1px solid #b9daf8;background:linear-gradient(135deg,#eff8ff,#f6f8ff);border-radius:15px;padding:14px;display:flex;align-items:center;gap:12px;text-align:left;color:#15385e;cursor:pointer}.v12-share-primary>.v12-icon{width:38px;height:38px;border-radius:12px;background:#2586df;color:#fff}.v12-share-primary>.v12-icon svg{width:18px;height:18px}.v12-share-primary strong{display:block;font-size:12px}.v12-share-primary small{display:block;margin-top:3px;color:#64748b;line-height:1.45;font-size:9.5px}.v12-share-grid{grid-template-columns:repeat(3,1fr)}.v12-share-grid button{min-height:72px;gap:7px;color:#334155}.v12-share-grid button>.v12-icon{width:28px;height:28px;border-radius:9px;background:#f1f5f9;color:#315b86}.v12-share-grid button>.v12-icon svg{width:15px;height:15px}.v12-share-note{padding:11px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:11px}
.v12-crop-card{width:min(980px,100%)!important}.v12-crop-stage{margin-top:16px;min-height:220px;max-height:68vh;overflow:auto;display:grid;place-items:center;background:#0b1220;border-radius:15px;padding:12px}.v12-crop-stage canvas{display:block;max-width:100%;height:auto;cursor:crosshair;touch-action:none;box-shadow:0 0 0 1px rgba(255,255,255,.12)}.v12-crop-help{margin-top:8px;color:#64748b;font-size:10px}.gallery-actions button{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important}.gallery-actions .v12-icon svg{width:14px;height:14px}.gallery-ai-box h4{display:flex;align-items:center;gap:7px}.gallery-ai-box h4 .v12-icon{color:#4f46e5}.gallery-file-placeholder>.v12-icon{width:44px;height:44px;border-radius:14px;background:#1e293b;color:#cbd5e1}.gallery-file-placeholder>.v12-icon svg{width:20px;height:20px}
.v12-empty-icon>.v12-icon{width:42px;height:42px;border-radius:13px;background:#f1f5f9;color:#64748b}.v12-empty-icon>.v12-icon svg{width:19px;height:19px}
@media(max-width:760px){.v12-filter-row{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;scrollbar-width:none}.v12-filter-row::-webkit-scrollbar{display:none}.v12-filter{white-space:nowrap}.v12-select-unsent{margin-left:0}.docs-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v12-share-grid{grid-template-columns:repeat(2,1fr)}.v12-upload-first{padding:20px!important}.v12-crop-stage{max-height:58vh}}
@media(max-width:420px){.docs-grid{grid-template-columns:1fr!important}.doc-preview{height:210px!important}.v12-share-grid{grid-template-columns:1fr 1fr}}

/* TidyOne V12.2 — readability + premium controls */
.v12-doc-notice{justify-content:flex-start!important;padding:16px 18px!important}
.v12-doc-notice strong{font-size:14px!important}.v12-doc-notice span{font-size:12px!important;line-height:1.5}
.v12-category-head h2{font-size:20px!important}.v12-category-head p{font-size:12px!important}
.v12-category-ai{font-size:13px!important;padding:10px 14px!important;border-radius:11px!important}
.tab-btn{font-size:15px!important;gap:9px!important}.v12-cat-count{font-size:11px!important;min-width:22px;height:22px}
.v12-category-icon{width:25px;height:25px;border-radius:8px;background:#f1f5f9;color:#42688e;display:grid;place-items:center;flex:0 0 auto}
.tab-btn.active .v12-category-icon{background:rgba(255,255,255,.16);color:#fff}.v12-category-icon .v12-icon svg{width:14px;height:14px}
.v12-search input{font-size:13px!important}.v12-filter{font-size:11px!important;padding:9px 12px!important}
.v12-selection-copy strong{font-size:14px!important}.v12-selection-copy span{font-size:11px!important}.v12-selection-actions button{font-size:11px!important}
.doc-name{font-size:13px!important}.doc-smart-type{font-size:11px!important}.doc-meta-line{font-size:11px!important}.v12-card-ai-state{font-size:10px!important}
.v12-pagination button,.v12-pagination span{font-size:12px!important}
.v12-modal-head h3{font-size:20px!important}.v12-modal-head p{font-size:12px!important}.v12-category-choice{font-size:12px!important;display:flex;align-items:center;gap:9px}.v12-category-choice>.v12-icon{width:29px;height:29px;border-radius:9px;background:#f1f5f9;color:#315b86}.v12-category-choice>.v12-icon svg{width:15px;height:15px}.v12-ai-choice>.v12-icon{background:rgba(255,255,255,.16);color:#fff}
.v12-batch-row strong{font-size:12px!important}.v12-batch-row select{font-size:11px!important}.v12-upload-summary{font-size:12px!important}.v12-modal-actions button{font-size:12px!important}
.v12-share-primary strong{font-size:13px!important}.v12-share-primary small{font-size:10.5px!important}.v12-share-grid button{font-size:11px!important}.v12-share-note{font-size:11px!important}
.v12-crop-help{font-size:11px!important}
.v12-more-btn{width:31px;height:31px;border-radius:50%;background:rgba(255,255,255,.92);border:1px solid rgba(148,163,184,.45);color:#334155;box-shadow:0 4px 12px rgba(15,23,42,.12)}
.v12-more-btn:hover{background:#fff;color:#0f172a}.v12-more-btn .v12-icon svg{width:16px;height:16px}
.v12-select-box{width:28px;height:28px;right:9px;bottom:9px;border-radius:50%;background:rgba(255,255,255,.94);border:1.5px solid rgba(100,116,139,.65);color:#fff;box-shadow:0 4px 12px rgba(15,23,42,.12)}
.v12-select-box:hover{border-color:#2563eb;background:#eff6ff}.v12-select-box.selected{background:#2563eb;border-color:#2563eb;color:#fff}
.v12-select-box:not(.selected)::after{content:'';width:8px;height:8px;border-radius:50%;background:#cbd5e1}.v12-select-box.selected::after{display:none}
.v12-card-menu button{font-size:11px!important}.v12-card-menu{width:200px}
.v12-upload-first .btn{font-size:15px!important}.v12-upload-first .btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.upload-zone p{font-size:15px!important}.docs-header h2{font-size:19px!important}.docs-header #contor-fisiere{font-size:14px!important}
.gallery-meta-row,.gallery-actions button{font-size:13px!important}.gallery-ai-box p{font-size:13px!important}
@media(max-width:760px){.v12-doc-notice{padding:14px 15px!important}.v12-category-head{gap:10px}.v12-category-ai{width:auto}.v12-more-btn{width:30px;height:30px}.v12-select-box{width:27px;height:27px}}


/* TidyOne V12.3 — mobile card controls, selection bar, desktop email helper */
.doc-preview{isolation:isolate}
.v12-more-btn{right:10px!important;top:10px!important;box-shadow:0 2px 8px rgba(15,23,42,.12)!important}
.v12-select-box{right:10px!important;bottom:10px!important;box-shadow:0 2px 8px rgba(15,23,42,.12)!important}
.v12-category-choice.v12-ai-choice,
.v12-category-choice.v12-ai-choice:hover,
.v12-category-choice.v12-ai-choice:focus,
.v12-category-choice.v12-ai-choice:active{color:#fff!important;background:linear-gradient(135deg,#334155,#1e40af)!important;border-color:transparent!important}
.v12-category-choice.v12-ai-choice span,.v12-category-choice.v12-ai-choice .v12-icon{color:#fff!important}
.v12-selection-actions .download{background:#1e293b;color:#fff;border:1px solid #475569}
.v12-desktop-guide{display:none;margin-top:15px;padding:15px;border:1px solid #cbd5e1;border-radius:15px;background:#f8fafc}
.v12-desktop-guide.show{display:block}.v12-desktop-guide h4{margin:0 0 6px;font-size:15px}.v12-desktop-guide>p{margin:0 0 12px;color:#64748b;font-size:13px;line-height:1.55}
.v12-email-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;margin-top:10px}.v12-email-field label{grid-column:1/-1;font-size:12px;font-weight:800;color:#334155}
.v12-email-value{min-height:42px;padding:10px 11px;border:1px solid #dbe3ee;border-radius:10px;background:#fff;color:#172033;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.v12-email-value.body{min-height:128px;max-height:210px;overflow:auto}.v12-copy-btn{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:10px;padding:10px 12px;font:800 12px Inter;cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:42px}
.v12-desktop-download{width:100%;margin-top:12px;border:0;border-radius:11px;padding:11px 13px;background:#15223b;color:#fff;font:800 13px Inter;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}
@media(max-width:760px){
 .v12-more-btn{right:8px!important;top:8px!important;width:28px!important;height:28px!important}
 .v12-select-box{right:8px!important;bottom:8px!important;width:26px!important;height:26px!important}
 .v12-selection{width:100%;max-width:100%;box-sizing:border-box;overflow:hidden}
 .v12-selection-actions{width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
 .v12-selection-actions button{width:100%;justify-content:center;padding:9px 8px!important}
 .v12-email-field{grid-template-columns:1fr}.v12-copy-btn{width:100%;justify-content:center}
}
/* V12.4 project/fund assignment inside document viewer */
.v124-doc-links{margin-top:14px;padding:12px;border:1px solid rgba(196,181,253,.28);background:rgba(124,58,237,.10);border-radius:12px;display:grid;gap:9px}.v124-doc-links label{display:grid;gap:5px;color:#ddd6fe;font:700 11px Inter}.v124-doc-links select{width:100%;border:1px solid rgba(255,255,255,.18);background:#172033;color:#fff;border-radius:8px;padding:9px;font:600 12px Inter}.v124-doc-links button{border:0;border-radius:9px;padding:9px 10px;background:#7c3aed;color:#fff;font:800 12px Inter;cursor:pointer}
/* V12.11 — AI action belongs to the AI notice, not the category heading */
.v12-doc-notice{justify-content:space-between!important}.v12-doc-notice .v12-category-ai{flex:0 0 auto}.v12-category-head{justify-content:flex-start!important}.v12-category-actions{display:none!important}@media(max-width:760px){.v12-doc-notice .v12-category-ai{width:100%;justify-content:center}}


/* V12.13 — upload block alignment */
.v12-upload-first{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important}
.v12-upload-first>svg{display:block!important;margin:0 auto 16px!important;flex:0 0 auto}
.v12-upload-first h3,.v12-upload-first p,.v12-upload-summary{width:100%;max-width:760px!important;margin-left:auto!important;margin-right:auto!important;text-align:center!important}
.v12-upload-first .upload-actions{width:100%;display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important}
.v12-upload-first .upload-actions .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1.2!important}
.v12-upload-first .upload-actions .btn svg{display:block!important;margin:0!important;transform:none!important;flex:0 0 auto!important;vertical-align:middle!important}
@media(max-width:520px){.v12-upload-first .upload-actions{display:grid!important;grid-template-columns:1fr!important}.v12-upload-first .upload-actions .btn{width:100%!important}}

/* V13.0 — ONG document context filters */
.v13-ong-doc-context{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:4px;padding-top:10px;border-top:1px solid #E2E8F0}
.v13-ong-doc-context label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:800;color:#475569}
.v13-doc-select{width:100%;min-width:0;border:1px solid #CBD5E1;border-radius:10px;background:#fff;padding:9px 10px;font:600 12px Inter,sans-serif;color:#0F172A}
.v13-doc-select:focus{outline:none;border-color:#8B5CF6;box-shadow:0 0 0 3px #F3E8FF}
@media(max-width:760px){.v13-ong-doc-context{grid-template-columns:1fr}.v13-doc-select{font-size:13px;padding:11px}}

/* V13.2.2 — elegant document cards, compact desktop categories, polished scrollbars */
@media (min-width:761px){
  .tabs-container{display:flex!important;flex-wrap:wrap!important;gap:5px!important;overflow:visible!important;padding-bottom:10px!important}
  .tab-btn{font-size:12px!important;padding:7px 9px!important;gap:5px!important;line-height:1.15!important;flex:0 0 auto!important}
  .v12-category-icon{width:22px!important;height:22px!important;border-radius:7px!important}
  .v12-category-icon .v12-icon svg{width:12px!important;height:12px!important}
  .v12-cat-count{min-width:18px!important;height:18px!important;padding:0 5px!important;font-size:9px!important}
}

.doc-preview{height:218px!important;isolation:isolate}
.v1321-preview-info{position:absolute;z-index:3;left:0;right:0;bottom:0;padding:58px 13px 13px;color:#fff;background:linear-gradient(180deg,rgba(15,23,42,0) 0%,rgba(15,23,42,.10) 16%,rgba(15,23,42,.70) 58%,rgba(15,23,42,.94) 100%);pointer-events:none}
.v1321-preview-name{font-size:15px;font-weight:850;line-height:1.2;letter-spacing:-.01em;text-shadow:0 2px 10px rgba(0,0,0,.32);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.v1321-preview-type{margin-top:5px;color:#bfdbfe;font-size:11px;font-weight:800;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v1321-preview-meta{margin-top:6px;color:rgba(255,255,255,.84);font-size:10px;font-weight:650;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.v12-ai-chip{left:9px!important;top:45px!important;bottom:auto!important;z-index:6!important}
.v12-select-box{right:10px!important;top:49px!important;bottom:auto!important;z-index:6!important}
.v12-more-btn{z-index:8!important}
.v12-card-menu{z-index:30!important;width:218px!important}
.doc-card-body{padding:10px 12px 12px!important}
.v12-card-ai-state{margin-top:0!important}

/* Keep scrollbars inside modal/viewer surfaces subtle rather than browser-default. */
.modal-box,.v12-modal-card,.v12-crop-stage,.gallery-side,.gallery-stage,.doc-share-sheet,.v12-email-value.body{scrollbar-width:thin;scrollbar-color:#94A3B8 transparent}
.modal-box::-webkit-scrollbar,.v12-modal-card::-webkit-scrollbar,.v12-crop-stage::-webkit-scrollbar,.gallery-side::-webkit-scrollbar,.gallery-stage::-webkit-scrollbar,.doc-share-sheet::-webkit-scrollbar,.v12-email-value.body::-webkit-scrollbar{width:9px;height:9px}
.modal-box::-webkit-scrollbar-track,.v12-modal-card::-webkit-scrollbar-track,.v12-crop-stage::-webkit-scrollbar-track,.gallery-side::-webkit-scrollbar-track,.gallery-stage::-webkit-scrollbar-track,.doc-share-sheet::-webkit-scrollbar-track,.v12-email-value.body::-webkit-scrollbar-track{background:transparent;border-radius:999px;margin:8px}
.modal-box::-webkit-scrollbar-thumb,.v12-modal-card::-webkit-scrollbar-thumb,.v12-crop-stage::-webkit-scrollbar-thumb,.gallery-side::-webkit-scrollbar-thumb,.gallery-stage::-webkit-scrollbar-thumb,.doc-share-sheet::-webkit-scrollbar-thumb,.v12-email-value.body::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#cbd5e1,#94a3b8);border:2px solid transparent;background-clip:padding-box;border-radius:999px}
.modal-box::-webkit-scrollbar-thumb:hover,.v12-modal-card::-webkit-scrollbar-thumb:hover,.v12-crop-stage::-webkit-scrollbar-thumb:hover,.gallery-side::-webkit-scrollbar-thumb:hover,.gallery-stage::-webkit-scrollbar-thumb:hover,.doc-share-sheet::-webkit-scrollbar-thumb:hover,.v12-email-value.body::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#94a3b8,#64748b);border:2px solid transparent;background-clip:padding-box}

@media(max-width:760px){
  .doc-preview{height:190px!important}
  .v1321-preview-info{padding:52px 11px 11px}
  .v1321-preview-name{font-size:14px}
  .v1321-preview-type{font-size:10.5px}
  .v1321-preview-meta{font-size:9.5px}
  .v12-ai-chip{top:43px!important;left:8px!important}
  .v12-select-box{top:45px!important;right:8px!important;bottom:auto!important}
  .v12-card-menu{width:min(218px,calc(100vw - 34px))!important}
}
@media(max-width:420px){.doc-preview{height:230px!important}}


/* =========================================================
   V13.4.2 — Document controls + complete dark surfaces
   ========================================================= */
/* The controls must stay visible regardless of the preview brightness. */
.doc-preview .v12-more-btn,
.doc-preview .v12-select-box{
  position:absolute!important;
  right:10px!important;
  width:32px!important;
  height:32px!important;
  border-radius:50%!important;
  background:rgba(10,23,38,.82)!important;
  border:1px solid rgba(255,255,255,.52)!important;
  color:#fff!important;
  box-shadow:0 6px 18px rgba(0,0,0,.26)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
.doc-preview .v12-more-btn{top:10px!important;z-index:18!important}
.doc-preview .v12-select-box{top:50px!important;bottom:auto!important;z-index:17!important}
.doc-preview .v12-more-btn:hover,
.doc-preview .v12-select-box:hover{background:rgba(20,45,72,.96)!important;border-color:#93C5FD!important;transform:translateY(-1px)}
.doc-preview .v12-select-box:not(.selected)::after{content:''!important;width:9px!important;height:9px!important;border-radius:50%!important;background:#D8E8FA!important;box-shadow:0 0 0 2px rgba(255,255,255,.16)!important}
.doc-preview .v12-select-box.selected{background:linear-gradient(135deg,#2563EB,#7C3AED)!important;border-color:#BFDBFE!important}
.v12-card-menu{z-index:60!important}


.doc-card.menu-open{overflow:visible!important;z-index:80!important}
.doc-card.menu-open .doc-preview{overflow:visible!important}
.doc-card.menu-open .doc-preview>img{border-radius:15px 15px 0 0}

/* Reusable empty state instead of a hard-coded white inline panel. */
.v12-doc-empty{grid-column:1/-1;text-align:center;padding:38px;border:1px dashed #CBD5E1;border-radius:16px;background:#fff;color:#64748B}

html[data-theme="dark"] .v12-toolbar,
html[data-theme="dark"] .v12-doc-notice,
html[data-theme="dark"] .v12-modal-card,
html[data-theme="dark"] .v12-doc-empty,
html[data-theme="dark"] .v12-desktop-guide,
html[data-theme="dark"] .v12-email-field,
html[data-theme="dark"] .v12-card-menu,
html[data-theme="dark"] .v12-crop-stage{
  background:linear-gradient(180deg,#0E1E30,#0B1928)!important;
  color:#EAF2FC!important;
  border-color:#29435F!important;
  box-shadow:0 14px 34px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] .v12-toolbar{box-shadow:inset 0 0 0 1px rgba(100,165,255,.03)!important}
html[data-theme="dark"] .v12-search input,
html[data-theme="dark"] .v12-toolbar select,
html[data-theme="dark"] .v13-doc-select,
html[data-theme="dark"] .v12-batch-row select{
  background:#081827!important;
  color:#EAF2FC!important;
  border-color:#31506D!important;
}
html[data-theme="dark"] .v12-search input:focus{background:#0B1E31!important;border-color:#4F8DFF!important;box-shadow:0 0 0 3px rgba(79,141,255,.13)!important}
html[data-theme="dark"] .v12-filter{
  background:#102237!important;
  color:#C7D7E8!important;
  border-color:#29435F!important;
}
html[data-theme="dark"] .v12-filter:hover{background:#142B44!important;border-color:#49739E!important;color:#F1F7FF!important}
html[data-theme="dark"] .v12-filter.active{background:linear-gradient(135deg,#153B63,#1F4D7F)!important;border-color:#4F8DFF!important;color:#DCEEFF!important;box-shadow:inset 0 0 0 1px rgba(143,192,255,.09)!important}
html[data-theme="dark"] .v12-select-unsent{background:#0D1D2D!important;border-color:#3D5875!important;color:#DCE8F5!important}
html[data-theme="dark"] .v13-ong-doc-context label{color:#B8C8D9!important}
html[data-theme="dark"] .v12-doc-empty{color:#9FB2C8!important;border-color:#31506D!important}
html[data-theme="dark"] .v12-empty-icon{color:#82B7F5!important}
html[data-theme="dark"] .v12-pagination button{
  background:#102237!important;
  color:#DDEAFF!important;
  border-color:#29435F!important;
}
html[data-theme="dark"] .v12-pagination button:hover:not(:disabled){background:#17314D!important;border-color:#4E769E!important}
html[data-theme="dark"] .v12-pagination span{color:#9FB2C8!important}
html[data-theme="dark"] .v12-card-menu button{color:#DDEAFF!important}
html[data-theme="dark"] .v12-card-menu button:hover{background:#142B44!important}
html[data-theme="dark"] .v12-card-menu button.danger{color:#FDA4AF!important}
html[data-theme="dark"] .v12-batch-row{background:#0A1726!important;border-color:#29435F!important;color:#EAF2FC!important}
html[data-theme="dark"] .v12-progress{background:#13263B!important}
html[data-theme="dark"] .v12-modal-head h3{color:#F0F6FF!important}
html[data-theme="dark"] .v12-modal-head p,
html[data-theme="dark"] .v12-share-note,
html[data-theme="dark"] .v12-desktop-guide p{color:#9FB2C8!important}
html[data-theme="dark"] .v12-close{background:#13263B!important;color:#DDEAFF!important;border:1px solid #29435F!important}
html[data-theme="dark"] .v12-share-primary{
  background:linear-gradient(135deg,#1D5FC2,#5B43C5)!important;
  color:#fff!important;
  border-color:transparent!important;
}
html[data-theme="dark"] .v12-share-grid button,
html[data-theme="dark"] .v12-desktop-download,
html[data-theme="dark"] .v12-copy-btn{
  background:#102237!important;
  color:#EAF2FC!important;
  border-color:#29435F!important;
}
html[data-theme="dark"] .v12-share-grid button:hover,
html[data-theme="dark"] .v12-desktop-download:hover,
html[data-theme="dark"] .v12-copy-btn:hover{background:#17314D!important;border-color:#49739E!important}
html[data-theme="dark"] .v12-email-value{
  background:#081827!important;
  color:#DDEAFF!important;
  border-color:#29435F!important;
}
html[data-theme="dark"] .doc-card{
  background:#0D1B2A!important;
  border-color:#29435F!important;
  box-shadow:0 10px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .doc-card-body{background:#0D1B2A!important;color:#EAF2FC!important}
html[data-theme="dark"] .v12-card-ai-state{border-color:#29435F!important}
html[data-theme="dark"] .v12-card-ai-state.pending{background:#101F30!important;color:#A8B9CB!important}
html[data-theme="dark"] .v12-card-ai-state.review{background:#231C43!important;color:#CBB9FF!important}
html[data-theme="dark"] .v12-card-ai-state.done{background:#103424!important;color:#A7F3C2!important}

/* Category tabs in dark mode should never turn into a bright white pill. */
html[data-theme="dark"] .tabs-container{border-bottom-color:#29435F!important}
html[data-theme="dark"] .tab-btn{color:#AFC1D4!important}
html[data-theme="dark"] .tab-btn:hover{background:#102237!important;color:#F0F6FF!important}
html[data-theme="dark"] .tab-btn.active{background:linear-gradient(135deg,#204F83,#365FB8)!important;color:#fff!important;box-shadow:0 7px 18px rgba(0,0,0,.20)!important}
html[data-theme="dark"] .v12-category-icon{background:#102237!important;border-color:#31506D!important;color:#9CC8FF!important}
html[data-theme="dark"] .tab-btn.active .v12-category-icon{background:rgba(255,255,255,.12)!important;color:#fff!important;border-color:rgba(255,255,255,.16)!important}
html[data-theme="dark"] .v12-cat-count{background:#142A42!important;color:#BFD9FF!important}
html[data-theme="dark"] .tab-btn.active .v12-cat-count{background:rgba(255,255,255,.14)!important;color:#fff!important}

@media(max-width:760px){
  .doc-preview .v12-more-btn{top:8px!important;right:8px!important;width:30px!important;height:30px!important}
  .doc-preview .v12-select-box{top:45px!important;right:8px!important;width:29px!important;height:29px!important}
}

/* V13.5.37 — always-visible thumbnail controls + dark share readability */
.doc-preview .v12-select-box{left:10px!important;right:auto!important;top:10px!important;bottom:auto!important;border-radius:10px!important}
.doc-preview .v12-select-box:not(.selected)::after{content:''!important;width:12px!important;height:12px!important;border-radius:3px!important;background:transparent!important;border:2px solid #FFFFFF!important;box-shadow:0 0 0 1px rgba(15,23,42,.20)!important}
.doc-preview .v12-more-btn{top:10px!important;right:10px!important}
.v1342-doc-card .doc-status-overlay{top:50px!important;left:10px!important}
.v1342-doc-card .v12-ai-chip{top:50px!important;left:auto!important;right:10px!important;bottom:auto!important}
html[data-theme="dark"] body .v12-share-primary small{color:#DCEAFF!important}
html[data-theme="dark"] body .v12-share-note{color:#D7E4F2!important;background:#13283E!important;border-color:#31506D!important}
html[data-theme="dark"] body .v12-desktop-guide>p{color:#C8D8E8!important}
@media(max-width:760px){.doc-preview .v12-select-box{left:8px!important;right:auto!important;top:8px!important}.doc-preview .v12-more-btn{top:8px!important;right:8px!important}.v1342-doc-card .doc-status-overlay{top:45px!important;left:8px!important}.v1342-doc-card .v12-ai-chip{top:45px!important;right:8px!important;left:auto!important}}


/* V13.5.38 — thumbnail overflow + explicit menu control */
.v1321-preview-name{max-width:100%!important;overflow-wrap:anywhere!important;word-break:break-word!important;}
.v1321-preview-type,.v1321-preview-meta{max-width:100%!important;overflow-wrap:anywhere!important;word-break:break-word!important;}
/* AI state is already repeated below each card; removing this overlay keeps the menu visible and the thumbnail uncluttered. */
.v1342-doc-card .v12-ai-chip{display:none!important;}
.doc-preview .v12-more-btn{display:grid!important;place-items:center!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;z-index:40!important;min-width:32px!important;min-height:32px!important;padding:0!important;background:rgba(10,23,38,.88)!important;color:#fff!important;border:1px solid rgba(255,255,255,.68)!important;}
.doc-preview .v12-more-btn .v12-more-glyph{display:block!important;font:900 22px/1 Inter,system-ui,sans-serif!important;letter-spacing:1px!important;transform:translateY(-2px);color:#fff!important;}
.doc-preview .v12-select-box{z-index:39!important;}
@media(max-width:760px){.doc-preview .v12-more-btn{min-width:30px!important;min-height:30px!important}.doc-preview .v12-more-btn .v12-more-glyph{font-size:20px!important}}


/* =========================================================
   V13.5.39 — premium clean thumbnails + reliable controls
   ========================================================= */
.v139-premium-card{
  border:1px solid #E2E8F0!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(15,23,42,.065)!important;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease!important;
}
.v139-premium-card:hover{transform:translateY(-3px)!important;box-shadow:0 18px 40px rgba(15,23,42,.11)!important;border-color:#CBD5E1!important}
.v139-premium-card .doc-preview{height:210px!important;background:linear-gradient(145deg,#EEF5FD,#F8FAFC)!important;overflow:hidden!important;isolation:isolate!important}
.v139-premium-card .doc-preview img{object-fit:cover!important;transform:none!important}
.v139-premium-card:hover .doc-preview img{transform:scale(1.018)!important}
/* No filename/title overlay on the thumbnail. The full filename is shown only in the viewer. */
.v139-premium-card .v1321-preview-info,.v139-premium-card .v12-ai-chip{display:none!important}
.v139-premium-card .v12-select-box,
.v139-premium-card .v12-more-btn{
  top:11px!important;bottom:auto!important;width:36px!important;height:36px!important;border-radius:11px!important;
  background:rgba(15,23,42,.78)!important;border:1px solid rgba(255,255,255,.72)!important;color:#fff!important;
  box-shadow:0 8px 22px rgba(15,23,42,.24)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;
  opacity:1!important;visibility:visible!important;display:grid!important;place-items:center!important;pointer-events:auto!important;
}
.v139-premium-card .v12-select-box{left:11px!important;right:auto!important;z-index:43!important}
.v139-premium-card .v12-more-btn{right:11px!important;left:auto!important;z-index:44!important;padding:0!important}
.v139-premium-card .v12-more-btn .v12-icon{display:grid!important;place-items:center!important;width:20px!important;height:20px!important}
.v139-premium-card .v12-more-btn .v12-icon svg{display:block!important;width:20px!important;height:20px!important;stroke-width:2.4!important;color:#fff!important}
.v139-premium-card .v12-select-box:not(.selected)::after{content:''!important;width:14px!important;height:14px!important;border-radius:4px!important;background:transparent!important;border:2px solid #fff!important;box-shadow:none!important}
.v139-premium-card .v12-select-box.selected{background:linear-gradient(135deg,#2563EB,#6D4AFF)!important;border-color:#DBEAFE!important}
.v139-premium-card .doc-status-overlay{top:auto!important;left:11px!important;bottom:11px!important;right:auto!important;z-index:12!important;padding:6px 9px!important;font-size:10px!important}
.v139-premium-card .v12-card-menu{top:53px!important;right:10px!important;z-index:80!important}
.v139-card-body{padding:13px 14px 14px!important;min-height:112px!important;display:flex!important;flex-direction:column!important;gap:6px!important}
.v139-doc-type{font:800 13px/1.25 Inter,system-ui;color:#0F172A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v139-doc-summary,.v139-doc-context{font:600 10.5px/1.45 Inter,system-ui;color:#64748B;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.v139-doc-context{color:#7C3AED}
.v139-search-hit{display:flex;align-items:flex-start;gap:6px;margin-top:2px;padding:7px 8px;border:1px solid #BFDBFE;background:#EFF6FF;color:#1D4ED8;border-radius:9px;font:750 10px/1.35 Inter,system-ui;overflow:hidden}
.v139-search-hit .v12-icon{flex:0 0 auto;margin-top:1px}.v139-search-hit .v12-icon svg{width:12px;height:12px}.v139-search-hit span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v139-card-actions-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:auto;padding-top:2px}
.v139-card-actions-row .v12-card-ai-state{margin:0!important}
.v139-search-fallback::after{content:'Căutare compatibilă: aplică migrarea V13.5.39 pentru indexarea completă a arhivei.';display:block;width:100%;margin-top:8px;color:#92400E;font:650 10px/1.4 Inter,system-ui}
html[lang="en"] .v139-search-fallback::after{content:'Compatibility search: apply the V13.5.39 migration to index the full archive.'}
html[data-theme="dark"] .v139-premium-card{background:#0D1B2A!important;border-color:#29435F!important;box-shadow:0 12px 30px rgba(0,0,0,.22)!important}
html[data-theme="dark"] .v139-premium-card .doc-preview{background:linear-gradient(145deg,#10243A,#0B1725)!important}
html[data-theme="dark"] .v139-doc-type{color:#F1F6FC!important}
html[data-theme="dark"] .v139-doc-summary{color:#AFC1D4!important}
html[data-theme="dark"] .v139-doc-context{color:#C4B5FD!important}
html[data-theme="dark"] .v139-search-hit{background:#102B49!important;border-color:#28598B!important;color:#B9DCFF!important}
html[data-theme="dark"] .v139-card-body{background:#0D1B2A!important}
@media(max-width:760px){
 .v139-premium-card .doc-preview{height:185px!important}
 .v139-premium-card .v12-select-box,.v139-premium-card .v12-more-btn{top:9px!important;width:34px!important;height:34px!important}
 .v139-premium-card .v12-select-box{left:9px!important}.v139-premium-card .v12-more-btn{right:9px!important}
 .v139-premium-card .doc-status-overlay{left:9px!important;bottom:9px!important}
 .v139-card-body{padding:11px 12px 12px!important;min-height:104px!important}
}

/* =========================================================
   V13.5.43 — Document Card Component Refactor
   One stable media/card component + one global fixed action popover.
   ========================================================= */
.docs-grid{
  align-items:start!important;
  grid-auto-rows:auto!important;
}
.tdoc-card{
  height:auto!important;
  align-self:start!important;
  display:block!important;
  overflow:hidden!important;
  padding:0!important;
  border:1px solid #DDE6F0!important;
  border-radius:18px!important;
  background:#FFFFFF!important;
  box-shadow:0 9px 26px rgba(15,23,42,.07)!important;
  transform:none!important;
  transition:border-color .16s ease,box-shadow .16s ease!important;
}
.tdoc-card:hover,
.tdoc-card:focus-within{
  transform:none!important;
  border-color:#C7D4E2!important;
  box-shadow:0 13px 31px rgba(15,23,42,.10)!important;
}
.tdoc-media{
  position:relative!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:4 / 3!important;
  display:block!important;
  overflow:hidden!important;
  border-radius:17px 17px 0 0!important;
  background:#EEF3F8!important;
}
.tdoc-media::after{display:none!important;content:none!important}
.tdoc-image{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  transform:none!important;
  transition:none!important;
}
.tdoc-card:hover .tdoc-image,
.tdoc-card:focus-within .tdoc-image,
.tdoc-card:active .tdoc-image{
  transform:none!important;
}
.tdoc-bottom-gradient{
  position:absolute;
  z-index:5;
  left:0;right:0;bottom:0;
  height:35%;
  pointer-events:none;
  background:linear-gradient(to bottom,rgba(255,255,255,0) 0%,rgba(255,255,255,.07) 42%,rgba(255,255,255,.68) 88%,rgba(255,255,255,.95) 100%);
}
.tdoc-select{
  position:absolute!important;
  z-index:20!important;
  top:10px!important;
  left:10px!important;
  right:auto!important;
  bottom:auto!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.70)!important;
  border-radius:10px!important;
  background:rgba(31,41,55,.80)!important;
  color:#FFFFFF!important;
  box-shadow:0 5px 15px rgba(15,23,42,.18)!important;
  backdrop-filter:blur(10px)!important;
  transform:none!important;
  cursor:pointer;
}
.tdoc-select:not(.selected)::after{
  content:''!important;
  width:15px!important;
  height:15px!important;
  border:2px solid #FFFFFF!important;
  border-radius:4px!important;
  background:transparent!important;
  box-shadow:none!important;
}
.tdoc-select.selected{
  background:linear-gradient(135deg,#2563EB,#6D4AFF)!important;
  border-color:#DBEAFE!important;
}
.tdoc-more{
  position:absolute;
  z-index:20;
  top:10px;
  right:10px;
  width:38px;
  height:34px;
  min-width:38px;
  min-height:34px;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:11px;
  background:rgba(31,41,55,.86);
  color:#FFFFFF;
  box-shadow:0 5px 15px rgba(15,23,42,.18);
  backdrop-filter:blur(10px);
  cursor:pointer;
  transform:none!important;
  transition:background .14s ease,border-color .14s ease,box-shadow .14s ease;
}
.tdoc-more span{
  display:block;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#FFFFFF;
  pointer-events:none;
}
.tdoc-more:hover,
.tdoc-more:focus-visible,
.tdoc-more[aria-expanded="true"]{
  background:rgba(17,24,39,.96);
  border-color:rgba(255,255,255,.85);
  box-shadow:0 7px 18px rgba(15,23,42,.24);
  transform:none!important;
}
.tdoc-status{
  position:absolute!important;
  z-index:12!important;
  left:10px!important;
  right:auto!important;
  bottom:10px!important;
  top:auto!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  font:800 10px/1.15 Inter,system-ui,sans-serif!important;
  color:#FFFFFF!important;
  box-shadow:0 5px 15px rgba(15,23,42,.16)!important;
  backdrop-filter:blur(8px)!important;
}
.tdoc-status.sent{background:rgba(22,163,74,.90)!important}
.tdoc-status.unsent{background:rgba(71,85,105,.84)!important}
.tdoc-file-placeholder{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  text-align:center;
  pointer-events:none;
  color:#2563EB;
}
.tdoc-file-icon{
  width:58px;
  height:72px;
  display:grid;
  place-items:center;
  background:#FFFFFF;
  border:1px solid #DBEAFE;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(37,99,235,.10);
}
.tdoc-file-icon svg{width:30px;height:38px}
.tdoc-file-placeholder>span{font:850 10px/1 Inter,system-ui,sans-serif;letter-spacing:.04em;color:#1D4ED8}
.tdoc-body{
  height:auto!important;
  min-height:0!important;
  padding:10px 12px 12px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  background:#FFFFFF!important;
}
.tdoc-type{
  font:800 13px/1.25 Inter,system-ui,sans-serif!important;
  color:#0F172A!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.tdoc-meta,.tdoc-context{
  font:600 10.5px/1.42 Inter,system-ui,sans-serif!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
}
.tdoc-meta{color:#64748B!important}
.tdoc-context{color:#6D4AFF!important}
.tdoc-ai-row{margin-top:2px!important;padding-top:2px!important}

/* Single global action popover. It is intentionally outside every card. */
.tdoc-actions-menu{
  position:fixed;
  z-index:99999;
  width:220px;
  max-width:calc(100vw - 24px);
  padding:6px;
  border:1px solid #E2E8F0;
  border-radius:14px;
  background:#FFFFFF;
  color:#27364A;
  box-shadow:0 24px 60px rgba(15,23,42,.22);
}
.tdoc-actions-menu[hidden]{display:none!important}
.tdoc-actions-title{
  padding:8px 10px;
  margin:0 0 3px;
  border-bottom:1px solid #EDF1F6;
  color:#64748B;
  font:800 10px/1.2 Inter,system-ui,sans-serif;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.tdoc-actions-menu button{
  width:100%;
  min-height:39px;
  padding:9px 10px;
  display:flex;
  align-items:center;
  gap:9px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#27364A;
  font:750 11px/1.2 Inter,system-ui,sans-serif;
  text-align:left;
  cursor:pointer;
}
.tdoc-actions-menu button:hover,
.tdoc-actions-menu button:focus-visible{background:#F1F5F9;color:#0F172A;outline:none}
.tdoc-actions-menu button .v12-icon{flex:0 0 auto;width:17px;height:17px;color:#475569}
.tdoc-actions-menu button .v12-icon svg{width:17px;height:17px}
.tdoc-actions-menu button.danger{color:#B91C1C}
.tdoc-actions-menu button.danger .v12-icon{color:#DC2626}
.tdoc-actions-separator{height:1px;background:#EDF1F6;margin:4px 6px}

/* Keep the special "Select unsent" control separated from filters. */
.v142-bulk-tools{display:flex;align-items:center;justify-content:flex-end;margin-top:11px;padding-top:11px;border-top:1px solid #E6ECF3}
.v142-select-unsent{border:1px solid #99F6E4;background:linear-gradient(135deg,#0F766E 0%,#0D9488 54%,#0891B2 100%);color:#fff;border-radius:13px;min-height:46px;padding:9px 14px;display:inline-flex;align-items:center;gap:10px;cursor:pointer;box-shadow:0 9px 22px rgba(13,148,136,.20);transition:box-shadow .16s ease,filter .16s ease;transform:none!important}
.v142-select-unsent:hover{filter:brightness(1.04);box-shadow:0 12px 28px rgba(13,148,136,.28);transform:none!important}
.v142-select-unsent>.v12-icon{width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.14);color:#fff;flex:0 0 auto}
.v142-select-unsent>.v12-icon svg{width:16px;height:16px}.v142-select-unsent>span{display:grid;text-align:left;gap:2px}.v142-select-unsent strong{font:850 11px/1.2 Inter,system-ui,sans-serif;color:#fff}.v142-select-unsent small{font:650 9.5px/1.3 Inter,system-ui,sans-serif;color:#CCFBF1;max-width:330px}

html[data-theme="dark"] .tdoc-card{background:#0D1B2A!important;border-color:#29435F!important;box-shadow:0 12px 30px rgba(0,0,0,.22)!important}
html[data-theme="dark"] .tdoc-card:hover,html[data-theme="dark"] .tdoc-card:focus-within{border-color:#3C5A78!important;box-shadow:0 15px 36px rgba(0,0,0,.30)!important}
html[data-theme="dark"] .tdoc-media{background:linear-gradient(145deg,#10243A,#0B1725)!important}
html[data-theme="dark"] .tdoc-bottom-gradient{background:linear-gradient(to bottom,rgba(13,27,42,0) 0%,rgba(13,27,42,.08) 42%,rgba(13,27,42,.72) 88%,#0D1B2A 100%)}
html[data-theme="dark"] .tdoc-body{background:#0D1B2A!important}
html[data-theme="dark"] .tdoc-type{color:#F1F6FC!important}
html[data-theme="dark"] .tdoc-meta{color:#AFC1D4!important}
html[data-theme="dark"] .tdoc-context{color:#C4B5FD!important}
html[data-theme="dark"] .tdoc-more{background:rgba(30,41,59,.92);border-color:rgba(148,163,184,.45)}
html[data-theme="dark"] .tdoc-more:hover,html[data-theme="dark"] .tdoc-more[aria-expanded="true"]{background:#111827;border-color:#94A3B8}
html[data-theme="dark"] .tdoc-file-icon{background:#10243A;border-color:#28598B;color:#60A5FA;box-shadow:0 8px 24px rgba(0,0,0,.24)}
html[data-theme="dark"] .tdoc-file-placeholder>span{color:#93C5FD}
html[data-theme="dark"] .tdoc-actions-menu{background:#0E1E30;border-color:#29435F;color:#EAF2FC;box-shadow:0 24px 60px rgba(0,0,0,.50)}
html[data-theme="dark"] .tdoc-actions-title{color:#AFC1D4;border-color:#243B52}
html[data-theme="dark"] .tdoc-actions-menu button{color:#E5EEF8}
html[data-theme="dark"] .tdoc-actions-menu button:hover,html[data-theme="dark"] .tdoc-actions-menu button:focus-visible{background:#152A40;color:#FFFFFF}
html[data-theme="dark"] .tdoc-actions-menu button .v12-icon{color:#AFC1D4}
html[data-theme="dark"] .tdoc-actions-menu button.danger{color:#FDA4AF}
html[data-theme="dark"] .tdoc-actions-separator{background:#243B52}
html[data-theme="dark"] .v142-bulk-tools{border-color:#29435F}
html[data-theme="dark"] .v142-select-unsent{border-color:#2DD4BF;background:linear-gradient(135deg,#115E59,#0F766E 54%,#0E7490);box-shadow:0 10px 28px rgba(0,0,0,.25)}
html[data-theme="dark"] .v142-select-unsent small{color:#CCFBF1}

@media(max-width:760px){
  .tdoc-select{top:8px!important;left:8px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
  .tdoc-more{top:8px;right:8px;width:36px;height:34px;min-width:36px;min-height:34px}
  .tdoc-status{left:8px!important;bottom:8px!important}
  .tdoc-actions-menu{width:min(220px,calc(100vw - 24px))}
  .v142-bulk-tools{justify-content:stretch;margin-top:12px;padding-top:12px}
  .v142-select-unsent{width:100%;justify-content:flex-start;min-height:52px;padding:9px 11px;border-radius:14px}
  .v142-select-unsent small{max-width:none}
}
