﻿.modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(15,23,42,.6);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1050;padding:1rem;animation:modalFadeIn .15s ease-out;}@keyframes modalFadeIn{from{opacity:0;}to{opacity:1;}}.modal-container{position:relative;background:#fff;border-radius:16px;box-shadow:0 25px 50px -12px rgba(0,0,0,.25);width:100%;max-width:480px;max-height:90vh;max-height:90dvh;display:flex;flex-direction:column;overflow:hidden;animation:modalSlideUp .2s ease-out;}.modal-container.modal-lg{max-width:640px;}.modal-container.modal-xl{max-width:800px;}@keyframes modalSlideUp{from{opacity:0;transform:translateY(20px) scale(.98);}to{opacity:1;transform:translateY(0) scale(1);}}.modal-header-custom{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid #e5e7eb;background:#fafafa;flex-shrink:0;}.modal-title-group{display:flex;align-items:center;gap:.75rem;}.modal-icon{width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,#3b82f6 0%,#1d4ed8 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.1rem;}.modal-icon.icon-success{background:linear-gradient(135deg,#10b981 0%,#059669 100%);}.modal-icon.icon-warning{background:linear-gradient(135deg,#f59e0b 0%,#d97706 100%);}.modal-icon.icon-danger{background:linear-gradient(135deg,#ef4444 0%,#dc2626 100%);}.modal-title-text{margin:0;font-size:1.125rem;font-weight:600;color:#1f2937;}.modal-close-btn{width:36px;height:36px;border:0;background:transparent;border-radius:8px;color:#6b7280;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;}.modal-close-btn:hover{background:#f3f4f6;color:#1f2937;}.modal-body-custom{padding:1.5rem;overflow-y:auto;flex:1;min-height:0;}.form-group-custom{margin-bottom:1.25rem;}.form-group-custom:last-child{margin-bottom:0;}.form-label-custom{display:block;font-size:.875rem;font-weight:500;color:#374151;margin-bottom:.5rem;}.form-label-custom .required{color:#ef4444;margin-left:2px;}.form-input-custom,.form-textarea-custom,.form-select-custom{width:100%;padding:.75rem 1rem;font-size:.9375rem;border:1.5px solid #d1d5db;border-radius:10px;background:#fff;color:#1f2937;transition:all .15s;outline:0;}.form-input-custom:focus,.form-textarea-custom:focus,.form-select-custom:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.15);}.form-input-custom::placeholder,.form-textarea-custom::placeholder,.form-select-custom::placeholder{color:#9ca3af;}.form-input-custom.input-error,.form-textarea-custom.input-error,.form-select-custom.input-error{border-color:#ef4444;}.form-input-custom.input-error:focus,.form-textarea-custom.input-error:focus,.form-select-custom.input-error:focus{box-shadow:0 0 0 3px rgba(239,68,68,.15);}.form-textarea-custom{resize:none;min-height:80px;}.error-text{display:block;font-size:.8125rem;color:#ef4444;margin-top:.375rem;}.info-box{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;color:#1e40af;font-size:.875rem;margin-top:1rem;}.info-box i{font-size:1.1rem;margin-top:1px;flex-shrink:0;}.error-box{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;color:#991b1b;font-size:.875rem;margin-top:1rem;}.error-box i{font-size:1.1rem;margin-top:1px;flex-shrink:0;}.success-box{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:10px;color:#065f46;font-size:.875rem;margin-top:1rem;}.modal-footer-custom{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid #e5e7eb;background:#fafafa;flex-shrink:0;}.modal-footer-row{display:flex;align-items:center;justify-content:space-between;width:100%;gap:.5rem;}.modal-footer-start{display:flex;align-items:center;gap:.5rem;}.modal-footer-end{display:flex;align-items:center;gap:.625rem;}.modal-footer-info{flex:1;min-width:0;}.btn-cancel{padding:.625rem 1.25rem;font-size:.9375rem;font-weight:500;border:1.5px solid #d1d5db;border-radius:10px;background:#fff;color:#4b5563;cursor:pointer;transition:all .15s;}.btn-cancel:hover{background:#f3f4f6;border-color:#9ca3af;}.btn-primary-custom{display:inline-flex;align-items:center;gap:.5rem;padding:.625rem 1.5rem;font-size:.9375rem;font-weight:500;border:0;border-radius:10px;background:linear-gradient(135deg,#3b82f6 0%,#2563eb 100%);color:#fff;cursor:pointer;transition:all .15s;box-shadow:0 2px 4px rgba(37,99,235,.2);}.btn-primary-custom:hover:not(:disabled){background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%);box-shadow:0 4px 8px rgba(37,99,235,.3);transform:translateY(-1px);}.btn-primary-custom:disabled{opacity:.6;cursor:not-allowed;}.btn-danger-custom{display:inline-flex;align-items:center;gap:.5rem;padding:.625rem 1.5rem;font-size:.9375rem;font-weight:500;border:0;border-radius:10px;background:linear-gradient(135deg,#ef4444 0%,#dc2626 100%);color:#fff;cursor:pointer;transition:all .15s;}.btn-danger-custom:hover:not(:disabled){background:linear-gradient(135deg,#dc2626 0%,#b91c1c 100%);}.btn-danger-outline{display:inline-flex;align-items:center;gap:.5rem;padding:.625rem 1.25rem;font-size:.875rem;font-weight:500;border:1.5px solid #fca5a5;border-radius:10px;background:#fff;color:#dc2626;cursor:pointer;transition:all .15s;}.btn-danger-outline:hover:not(:disabled){background:#fef2f2;border-color:#ef4444;}.btn-danger-outline:disabled{opacity:.6;cursor:not-allowed;}.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:modalSpinner .8s linear infinite;}@keyframes modalSpinner{to{transform:rotate(360deg);}}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}.modal-container.modal-card-wide{max-width:780px;}.modal-container.modal-card-typed{max-width:780px;transition:max-width .3s ease;}.modal-container.modal-card-typed.photos-open{max-width:1100px;}.card-controls-bar-wrapper{display:flex;align-items:center;background:#f8fafc;border-bottom:1px solid #e5e7eb;padding-right:.75rem;}.card-controls-bar-wrapper .card-controls-bar{border-bottom:0;}.card-controls-bar-wrapper .btn-typed-fotos{margin-left:auto;flex-shrink:0;}.card-vehicle-photo-top{border-radius:8px;overflow:hidden;background:#f1f5f9;border:1px solid #e5e7eb;max-height:220px;display:flex;align-items:center;justify-content:center;}.card-vehicle-photo-top img{width:100%;height:220px;object-fit:contain;display:block;}.typed-body-layout{display:flex;gap:1rem;align-items:stretch;flex:1;min-height:0;}.typed-body-left{flex:3;min-width:0;display:flex;flex-direction:column;gap:.75rem;}.typed-photos-panel{flex:2;display:flex;flex-direction:column;gap:.5rem;border-left:1px solid #e5e7eb;padding-left:1rem;min-height:0;}.btn-typed-fotos{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .85rem;font-size:.82rem;font-weight:500;color:#6b7280;background:#fafafa;border:1px solid #e5e7eb;border-radius:10px;cursor:pointer;transition:background .15s,color .15s,border-color .15s;}.btn-typed-fotos:hover{background:#eff6ff;color:#3b82f6;border-color:#3b82f6;}.btn-typed-fotos.active{background:#eff6ff;color:#3b82f6;border-color:#3b82f6;}.btn-typed-fotos .fotos-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.25rem;height:1.25rem;padding:0 .3rem;font-size:.7rem;font-weight:600;color:#fff;background:#3b82f6;border-radius:10px;}.modal-body-typed-main{flex:1;min-width:0;}.card-debug-info{display:flex;align-items:center;gap:.5rem;font-size:.7rem;color:#a1a1aa;padding:.25rem 0;white-space:nowrap;}.card-debug-info i{font-size:.8rem;}.entity-search-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;z-index:1060;border-radius:16px;animation:modalFadeIn .15s ease-out;}.entity-search-container{background:#fff;border-radius:12px;box-shadow:0 25px 50px -12px rgba(0,0,0,.25);width:92%;max-width:640px;max-height:80%;display:flex;flex-direction:column;overflow:hidden;}.entity-search-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid #e5e7eb;}.entity-search-header h5{font-size:1rem;font-weight:600;color:#1f2937;}.entity-search-filters{padding:.75rem 1.25rem;border-bottom:1px solid #e5e7eb;background:#f8fafc;}.entity-search-input-group{position:relative;display:flex;align-items:center;}.entity-search-input-group>i.bi-search{position:absolute;left:.75rem;color:#6b7280;font-size:.85rem;pointer-events:none;}.entity-search-input-group .form-input-custom{padding-left:2.25rem;padding-right:2rem;}.entity-search-input-group .entity-search-clear{position:absolute;right:.5rem;background:none;border:0;color:#9ca3af;cursor:pointer;padding:.25rem;font-size:.85rem;line-height:1;}.entity-search-input-group .entity-search-clear:hover{color:#6b7280;}.entity-search-results{flex:1;overflow-y:auto;min-height:120px;max-height:320px;}.entity-search-table{width:100%;border-collapse:collapse;font-size:.85rem;}.entity-search-table thead th{position:sticky;top:0;background:#f1f5f9;padding:.5rem .75rem;text-align:left;font-weight:600;color:#6b7280;font-size:.78rem;text-transform:uppercase;letter-spacing:.03em;border-bottom:1px solid #e5e7eb;}.entity-search-table tbody td{padding:.5rem .75rem;border-bottom:1px solid #f1f5f9;color:#1f2937;}.entity-search-table tbody tr:hover{background:#eff6ff;cursor:pointer;}.entity-search-table tbody tr.selected{background:#dbeafe;}.entity-search-empty{text-align:center;padding:2rem 1rem!important;color:#9ca3af;}.entity-search-empty i{display:block;font-size:1.75rem;margin-bottom:.5rem;}.entity-search-empty span{font-size:.85rem;}.entity-search-footer{display:flex;align-items:center;justify-content:flex-end;gap:.625rem;padding:.75rem 1.25rem;border-top:1px solid #e5e7eb;background:#fafafa;}.card-controls-bar{display:flex;align-items:center;gap:.5rem;padding:.5rem 1.5rem;background:#f8fafc;border-bottom:1px solid #e5e7eb;flex-wrap:wrap;}.selector-compact{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .5rem;background:#fff;border:1px solid #e5e7eb;border-radius:8px;transition:border-color .15s;}.selector-compact:hover{border-color:#93c5fd;}.selector-compact i{font-size:.85rem;flex-shrink:0;}.selector-compact-select{border:0;background:transparent;font-size:.8125rem;color:#374151;padding:.15rem 0;outline:0;cursor:pointer;min-width:70px;}.selector-compact-select:focus{outline:0;}.card-header-badges{display:flex;gap:.375rem;margin-top:.25rem;flex-wrap:wrap;}.badge-mini{display:inline-flex;align-items:center;gap:.25rem;font-size:.7rem;padding:.15rem .5rem;border-radius:4px;font-weight:500;}.badge-cliente{background:#eff6ff;color:#1d4ed8;}.badge-documento{background:#fef3c7;color:#92400e;}.badge-vehiculo{background:#ecfdf5;color:#065f46;}.card-meta-row{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:.75rem;}.card-meta-item{display:inline-flex;align-items:center;gap:.375rem;font-size:.875rem;color:#6b7280;}.card-meta-item i{font-size:.9rem;}.card-meta-item .badge{font-size:.9rem;}.card-meta-item.meta-vencida{color:#dc2626;}.card-description-area{margin-bottom:.75rem;}.card-description-area p{color:#374151;margin:0;line-height:1.6;white-space:pre-wrap;}.card-description-edit{min-height:120px;}.card-tags-section{display:flex;flex-wrap:wrap;gap:.375rem;margin-bottom:.75rem;}.card-tags-section .badge{font-size:.9rem;font-weight:500;}.card-tags-edit{display:flex;flex-wrap:wrap;gap:.375rem;margin-top:.25rem;}.card-tags-edit .badge{font-size:1.05rem;cursor:pointer;font-weight:500;}.card-tabs-section{margin-top:.75rem;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;}.card-tabs-header{display:flex;background:#f9fafb;border-bottom:1px solid #e5e7eb;}.card-tab-btn{flex:1;padding:.5rem .75rem;border:0;background:transparent;font-size:.8125rem;font-weight:500;color:#6b7280;cursor:pointer;transition:all .15s;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;}.card-tab-btn:hover{color:#1f2937;background:#f3f4f6;}.card-tab-btn.active{color:#2563eb;background:#fff;border-bottom:2px solid #2563eb;}.card-tab-content{padding:.75rem;}.card-tab-panels{display:grid;padding:.75rem;}.card-tab-panel{grid-area:1/1;visibility:hidden;opacity:0;transition:opacity .15s;}.card-tab-panel.active{visibility:visible;opacity:1;}.tab-action-row{display:flex;justify-content:flex-end;margin-bottom:.5rem;}.tab-search-btn{display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .75rem;font-size:.8rem;font-weight:500;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#4b5563;cursor:pointer;transition:all .15s;}.tab-search-btn:hover{background:#f3f4f6;border-color:#93c5fd;color:#2563eb;}.tab-search-btn i{font-size:.75rem;}.tab-detail-card{padding:.25rem;}.tab-detail-line{margin:.25rem 0 0;color:#6b7280;font-size:.875rem;}.tab-detail-line i{margin-right:.35rem;font-size:.8rem;}.card-doc-columns{display:grid;gap:.75rem;margin-top:.75rem;padding:.75rem;border:1px solid #e5e7eb;border-radius:10px;background:#f9fafb;}.card-doc-columns.cols-2{grid-template-columns:1fr 1fr;}.card-doc-columns.cols-3{grid-template-columns:1fr 1fr 1fr;}@media(max-width:600px){.card-doc-columns.cols-2,.card-doc-columns.cols-3{grid-template-columns:1fr;}}.card-doc-col{min-width:0;}.card-doc-col-header{display:flex;align-items:center;gap:.35rem;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:#6b7280;margin-bottom:.4rem;padding-bottom:.3rem;border-bottom:1px solid #e5e7eb;}.card-doc-col-header i{font-size:.8rem;}.card-doc-col-line{margin:.2rem 0 0;font-size:.85rem;color:#1f2937;line-height:1.4;}.card-doc-col-line i{font-size:.75rem;color:#6b7280;}.progreso-badge-container{display:inline-flex;align-items:center;gap:.4rem;}.progreso-badge-bar{width:60px;height:6px;background:#e5e7eb;border-radius:3px;overflow:hidden;}.progreso-badge-fill{height:100%;border-radius:3px;transition:width .3s;}.progreso-badge-text{font-size:.75rem;font-weight:600;color:#374151;}@media(max-width:576px){.modal-backdrop{padding:.5rem;}.modal-container{margin:0;max-height:calc(100vh - 1rem);max-height:calc(100dvh - 1rem);border-radius:12px;overflow-y:auto;overflow-x:hidden;}.modal-container.modal-card-wide{max-width:100%;}.modal-container.modal-card-typed{max-width:100%;}.modal-container.modal-card-typed.photos-open{max-width:100%;}.modal-header-custom{padding:1rem;position:sticky;top:0;z-index:2;}.modal-body-custom{padding:1rem;overflow-y:visible;flex-shrink:0;}.modal-footer-custom{padding:.875rem 1rem 3.5rem;}.modal-footer-row{flex-direction:column;align-items:stretch;gap:.75rem;}.modal-footer-start{flex-wrap:wrap;}.modal-footer-end{justify-content:flex-end;}.modal-footer-info{margin-right:0;}.form-row{grid-template-columns:1fr;}.card-controls-bar{padding:.5rem 1rem;gap:.375rem;}.card-tabs-header{flex-wrap:wrap;}.typed-body-layout{flex-direction:column;}.typed-photos-panel{flex:none;width:100%;border-left:0;padding-left:0;border-top:1px solid #e5e7eb;padding-top:.75rem;}.card-vehicle-photo-top{max-height:160px;}.card-vehicle-photo-top img{height:160px;}.card-controls-bar-wrapper{flex-wrap:wrap;padding-right:.5rem;}}