:root{--sidebar-width: 240px;--header-height: 60px;--right-panel-width: 300px}body{min-height:100vh}.sidebar{position:fixed;top:0;left:0;width:var(--sidebar-width);height:100vh;background:#1a1d21;color:#fff;display:flex;flex-direction:column;z-index:1000}.sidebar-brand{padding:1rem 1.25rem;font-size:1.25rem;font-weight:600;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar-nav{flex:1;padding:1rem 0}.sidebar-nav .nav-link{color:#ffffffb3;padding:.75rem 1.25rem;display:flex;align-items:center;gap:.75rem;transition:all .2s}.sidebar-nav .nav-link:hover{color:#fff;background:#ffffff1a}.sidebar-nav .nav-link.active{color:#fff;background:#ffffff26;border-left:3px solid #0d6efd}.sidebar-nav .nav-link i{width:20px;text-align:center}.sidebar-divider{border-top:1px solid rgba(255,255,255,.1);margin:.5rem 1rem}.sidebar-footer{padding:1rem;border-top:1px solid rgba(255,255,255,.1)}.sidebar-user{display:flex;align-items:center;gap:.75rem;color:#fff;text-decoration:none}.sidebar-user:hover{color:#fffc}.sidebar-avatar{width:36px;height:36px;border-radius:50%;background:#0d6efd;display:flex;align-items:center;justify-content:center;font-weight:600}.app-wrapper{margin-left:var(--sidebar-width)}.app-header{height:var(--header-height);background:#fff;border-bottom:1px solid #dee2e6;display:flex;align-items:center;padding:0 1.5rem;position:sticky;top:0;z-index:100}.app-main{display:flex;min-height:calc(100vh - var(--header-height))}.app-content{flex:1;padding:1.5rem;background:#f8f9fa}.app-right-panel{width:var(--right-panel-width);background:#fff;border-left:1px solid #dee2e6;padding:1.5rem}.stat-card{background:#fff;border-radius:12px;padding:1.25rem;box-shadow:0 1px 3px #0000001a}.stat-card .stat-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.25rem}.stat-card .stat-value{font-size:1.75rem;font-weight:700}.stat-card .stat-label{color:#6c757d;font-size:.875rem}.property-card{background:#fff;border-radius:12px;padding:1rem;box-shadow:0 1px 3px #0000001a;transition:transform .2s,box-shadow .2s;cursor:pointer}.property-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.property-card .property-status{font-size:.75rem;padding:.25rem .5rem;border-radius:4px}.property-card .property-title{font-weight:600;margin:.5rem 0}.property-card .property-meta{font-size:.875rem;color:#6c757d}.status-draft{background:#e9ecef;color:#495057}.status-document-collection{background:#fff3cd;color:#664d03}.status-active{background:#d1e7dd;color:#0f5132}.status-pre-deal{background:#cff4fc;color:#055160}.status-deal{background:#e0cffc;color:#3d0a91}.status-finished,.status-sold{background:#cfe2ff;color:#084298}.status-archived{background:#f8d7da;color:#842029}.property-status{font-size:.75rem;padding:.25rem .5rem;border-radius:4px;display:inline-block}.status-selector{display:inline-flex;align-items:center;position:relative}.status-selector-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.4rem .75rem;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.02em;border:none;border-radius:4px;cursor:pointer;transition:all .15s ease;background:#e9ecef;color:#495057}.status-selector-btn:hover{filter:brightness(.95);box-shadow:0 1px 4px #00000026}.status-selector-btn:focus{outline:none;box-shadow:0 0 0 2px #0000001a}.status-selector-btn .bi-chevron-down{font-size:.7rem;opacity:.7;transition:transform .15s}.status-selector-btn[aria-expanded=true] .bi-chevron-down{transform:rotate(180deg)}.status-selector-btn.status-draft{background:#e9ecef;color:#495057}.status-selector-btn.status-document-collection{background:#fff3cd;color:#664d03}.status-selector-btn.status-active{background:#d1e7dd;color:#0f5132}.status-selector-btn.status-pre-deal{background:#cff4fc;color:#055160}.status-selector-btn.status-deal{background:#e0cffc;color:#3d0a91}.status-selector-btn.status-finished,.status-selector-btn.status-sold{background:#cfe2ff;color:#084298}.status-selector-btn.status-archived{background:#f8d7da;color:#842029}.status-selector .dropdown-menu{min-width:220px;padding:.5rem 0;border:1px solid #dee2e6;box-shadow:0 4px 12px #00000026;border-radius:6px}.status-selector .dropdown-header{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#6c757d;padding:.5rem 1rem .25rem}.status-selector .dropdown-item{display:flex;align-items:center;gap:.75rem;padding:.6rem 1rem;font-size:.85rem;color:#212529;transition:background-color .1s}.status-selector .dropdown-item:hover{background-color:#f8f9fa}.status-selector .dropdown-item:active{background-color:#e9ecef;color:#212529}.status-selector .transition-badge{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:4px;font-size:.75rem}.status-selector .transition-badge.forward{background:#d1e7dd;color:#0f5132}.status-selector .transition-badge.backward{background:#fff3cd;color:#664d03}.status-selector .transition-badge.archive{background:#f8d7da;color:#842029}.status-selector .transition-badge.restore{background:#cfe2ff;color:#084298}.status-selector .transition-label{flex:1}.status-selector .transition-status{font-size:.7rem;padding:.15rem .4rem;border-radius:3px;text-transform:uppercase;font-weight:600}.status-selector-mini .status-selector-btn{padding:.25rem .5rem;font-size:.7rem}.status-selector-mini .status-selector-btn .bi-chevron-down{font-size:.6rem}.notification-item{display:flex;gap:.75rem;padding:.75rem 0;border-bottom:1px solid #dee2e6}.notification-item:last-child{border-bottom:none}.notification-icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.notification-content{flex:1;min-width:0}.notification-text{font-size:.875rem;margin-bottom:.25rem}.notification-time{font-size:.75rem;color:#6c757d}.promo-card{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:12px;padding:1.5rem}.promo-card h5{margin-bottom:.5rem}.promo-card p{opacity:.9;font-size:.875rem;margin-bottom:1rem}.calendar-today{text-align:center;padding:1rem;background:#f8f9fa;border-radius:12px}.calendar-today .day-name{font-size:.875rem;color:#6c757d;text-transform:uppercase}.calendar-today .day-number{font-size:2.5rem;font-weight:700;color:#0d6efd}.calendar-today .month{font-size:.875rem;color:#6c757d}.search-input{background:#f8f9fa;border:none;border-radius:8px;padding:.5rem 1rem .5rem 2.5rem;width:300px}.search-input:focus{background:#fff;box-shadow:0 0 0 2px #0d6efd40}.badge-sm{font-size:.7rem;padding:.2rem .4rem}.checklist-tabs{border-bottom:1px solid #dee2e6;flex-wrap:wrap;gap:.25rem}.checklist-tabs .nav-link{font-size:.85rem;padding:.5rem .75rem;white-space:nowrap;color:#6c757d;border:none;border-bottom:2px solid transparent;background:none}.checklist-tabs .nav-link:hover{color:#0d6efd;border-bottom-color:#dee2e6}.checklist-tabs .nav-link.active{color:#0d6efd;border-bottom-color:#0d6efd;font-weight:500}.checklist-tabs .remove-template-btn{opacity:0;transition:opacity .15s}.checklist-tabs .nav-link:hover .remove-template-btn{opacity:.6}.checklist-tabs .remove-template-btn:hover{opacity:1!important;color:#dc3545}.checklist-document-card{background:#fff;border-radius:8px;padding:.75rem;margin-bottom:.5rem;border-left:3px solid;box-shadow:0 1px 2px #0000000d}.checklist-document-card.status-pending{border-left-color:#6c757d;background:#f8f9fa}.checklist-document-card.status-uploaded{border-left-color:#0d6efd;background:#e7f1ff}.checklist-document-card.status-approved{border-left-color:#198754;background:#d1e7dd}.checklist-document-card .checklist-doc-info{font-size:.85rem;color:#6c757d;margin-top:.35rem}.checklist-document-card .btn-link{font-size:.85rem;text-decoration:none}.checklist-document-card .btn-link:hover{text-decoration:underline}.checklist-drop-target{transition:all .2s ease;border:2px dashed transparent}.checklist-drop-target.drag-over{border-color:#0d6efd;background:#e7f1ff!important;transform:scale(1.02);box-shadow:0 4px 12px #0d6efd33}.inbox-doc-item{cursor:grab;transition:all .2s ease}.inbox-doc-item:active{cursor:grabbing}.inbox-doc-item.dragging{opacity:.5;transform:scale(.95)}.drag-handle{cursor:grab;opacity:.5}.inbox-doc-item:hover .drag-handle{opacity:1}.template-item{cursor:pointer;transition:background-color .15s}.template-item:hover:not(.disabled){background-color:#f8f9fa}.template-item.active{background-color:#e7f1ff;border-color:#0d6efd}.template-item.disabled{cursor:not-allowed}.template-card{transition:transform .15s,box-shadow .15s}.template-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.document-preview-container{min-height:500px;max-height:75vh;overflow:auto;background:#f8f9fa}.document-preview-iframe{width:100%;height:75vh;border:none}.document-preview-text{background:#fff}.document-preview-image{max-width:100%;max-height:70vh;object-fit:contain}.document-list-item{cursor:pointer;transition:background-color .15s}.document-list-item:hover{background-color:#f8f9fa}.inbox-doc-item{border:1px solid #dee2e6;border-radius:8px;padding:.75rem;margin-bottom:.5rem;background:#fff}.inbox-doc-item:last-child{margin-bottom:0}.inbox-doc-item:hover{background-color:#f8f9fa}.checklist-filled-item{cursor:grab}.checklist-filled-item:active{cursor:grabbing}.checklist-filled-item .drag-handle{opacity:.3;transition:opacity .15s}.checklist-filled-item:hover .drag-handle{opacity:.7}.checklist-filled-item.dragging{opacity:.5;transform:scale(.98);box-shadow:0 4px 12px #00000026}.checklist-document-card{position:relative}.unlinked-documents-zone{margin-top:1rem;padding-top:1rem;border-top:2px dashed #dee2e6}.unlinked-zone-header{display:flex;align-items:center;font-size:.85rem;color:#6c757d;margin-bottom:.75rem}.unlinked-documents-zone.drag-over{border:2px dashed #dc3545;border-radius:8px;background:#fff5f5}.unlinked-document-item{cursor:grab}.unlinked-document-item:active{cursor:grabbing}.unlinked-document-item.dragging{opacity:.5;transform:scale(.98)}.unlinked-document-item .drag-handle{opacity:.3;transition:opacity .15s}.unlinked-document-item:hover .drag-handle{opacity:.7}.checklist-item-group{background:#fff;border-radius:8px;margin-bottom:.5rem;border-left:3px solid;box-shadow:0 1px 2px #0000000d;overflow:hidden}.checklist-item-group.status-pending{border-left-color:#6c757d}.checklist-item-group.status-uploaded{border-left-color:#0d6efd}.checklist-item-group.status-approved{border-left-color:#198754}.checklist-group-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#f8f9fa;border-bottom:1px solid #e9ecef}.checklist-slots{padding:.5rem}.checklist-slot{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-radius:6px;margin-bottom:.25rem;transition:all .15s ease;border:2px dashed transparent}.checklist-slot:last-child{margin-bottom:0}.checklist-slot-pending{background:#f8f9fa;border-style:dashed;border-color:#dee2e6}.checklist-slot-filled{background:#e9ecef}.checklist-slot-filled.slot-uploaded{background:#e7f1ff}.checklist-slot-filled.slot-approved{background:#d1e7dd}.slot-number{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#6c757d;color:#fff;font-size:.7rem;font-weight:600;flex-shrink:0}.checklist-slot-filled .slot-number{background:#0d6efd}.checklist-slot-filled.slot-approved .slot-number{background:#198754}.slot-file-icon{color:#6c757d;font-size:1rem}.slot-content{flex:1;min-width:0;display:flex;align-items:center;gap:.5rem}.slot-content.slot-empty{justify-content:flex-start}.slot-filename{font-size:.85rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot-filesize{font-size:.75rem;color:#6c757d;flex-shrink:0}.slot-actions{display:flex;gap:.5rem;flex-shrink:0}.slot-actions .btn-link{font-size:.85rem;padding:.25rem}.checklist-slot.drag-over{border-color:#0d6efd;background:#e7f1ff!important;transform:scale(1.01)}.checklist-slot.dragging{opacity:.5}.checklist-slot .drag-handle{opacity:.3;cursor:grab;font-size:.9rem}.checklist-slot:hover .drag-handle{opacity:.7}.avatar-preview{width:80px;height:80px;border-radius:50%;background:#e9ecef;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:600;color:#6c757d;overflow:hidden}#avatar-container{position:relative;display:inline-block}.avatar-upload-btn{position:absolute;bottom:0;right:0;width:28px;height:28px;border-radius:50%;background:#0d6efd;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;border:2px solid white;font-size:.75rem;transition:background-color .15s}.avatar-upload-btn:hover{background:#0b5ed7}@media (max-width: 991.98px){.sidebar{transform:translate(-100%);transition:transform .3s}.sidebar.show{transform:translate(0)}.app-wrapper{margin-left:0}.app-right-panel{display:none}}.inbox-file-card{cursor:grab}.inbox-file-card:active{cursor:grabbing}.inbox-file-card.dragging{opacity:.5;transform:scale(.98);box-shadow:0 4px 12px #00000026}.inbox-file-card .drag-handle{opacity:.3;transition:opacity .15s}.inbox-file-card:hover .drag-handle{opacity:.7}.subject-drop-card{background:#fff;border-radius:8px;border:2px dashed #dee2e6;transition:all .2s ease}.subject-drop-card .drop-icon{opacity:.4;transition:all .2s ease}.subject-drop-card:hover{border-color:#adb5bd}.subject-drop-card:hover .drop-icon{opacity:.7}.subject-drop-card.drag-over{border-color:#0d6efd;border-style:solid;background:#e7f1ff;transform:scale(1.02)}.subject-drop-card.drag-over .drop-icon{opacity:1}.subject-drop-card.drag-over .drop-icon i{animation:inbox-pulse .5s ease-in-out infinite alternate}@keyframes inbox-pulse{0%{transform:scale(1)}to{transform:scale(1.15)}}.subject-detail-tabs{border-bottom:2px solid #dee2e6;margin-bottom:1.5rem;gap:.25rem}.subject-detail-tabs .nav-link{color:#6c757d;border:none;border-bottom:2px solid transparent;background:none;padding:.75rem 1.25rem;font-size:.95rem;font-weight:500;margin-bottom:-2px;transition:color .15s,border-color .15s}.subject-detail-tabs .nav-link:hover{color:#0d6efd;border-bottom-color:#dee2e6}.subject-detail-tabs .nav-link.active{color:#0d6efd;border-bottom-color:#0d6efd;font-weight:600}.email-list{border-radius:8px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.email-list-item{border-bottom:1px solid #e9ecef;background:#fff;transition:background-color .15s}.email-list-item:last-child{border-bottom:none}.email-list-item-header{display:flex;align-items:center;gap:.75rem;padding:.875rem 1rem;cursor:pointer;transition:background-color .15s}.email-list-item-header:hover{background-color:#f8f9fa}.email-list-item.active .email-list-item-header{background-color:#e7f1ff}.email-sender-avatar{width:36px;height:36px;border-radius:50%;background:#e9ecef;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#6c757d}.email-list-item.active .email-sender-avatar{background:#cfe2ff;color:#0d6efd}.email-detail-body{border-top:1px solid #e9ecef;background:#f8f9fa;padding:1rem}.email-body-content{background:#fff;border-radius:6px;padding:1rem;max-height:500px;overflow-y:auto;box-shadow:0 1px 2px #0000000d}.email-body-html img{max-width:100%;height:auto}.email-body-html table{max-width:100%;overflow-x:auto;display:block}.email-body-html a{color:#0d6efd;word-break:break-all}.notification-item.notification-unread{background-color:#e8f4fd;border-radius:6px;padding-left:.75rem;padding-right:.75rem}.notification-item.clickable{cursor:pointer;transition:background-color .15s}.notification-item.clickable:hover{background-color:#f0f0f0}#notifications-section.notifications-highlight{background-color:#e8f4fd;border-radius:8px;padding:.75rem;transition:background-color .5s}.notifications-header .btn-link{font-size:.8rem;padding:0}
