:root{font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.5}#root{width:100%;min-height:100vh}a{color:#646cff;-webkit-text-decoration:inherit;text-decoration:inherit;font-weight:500}a:hover{color:#535bf2}body{width:100%;min-height:100vh;margin:0;padding:0}button{cursor:pointer;font-family:inherit}.page-content{padding:2rem}@media (width<=768px){.page-content{padding:1rem}}@media (prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}}.login-container{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));justify-content:center;align-items:center;min-height:100vh;display:flex}.login-box{background:#fff;border-radius:10px;width:100%;max-width:400px;padding:2.5rem;box-shadow:0 10px 25px #0003}.login-box h1{color:#333;text-align:center;margin:0 0 .5rem;font-size:1.75rem}.subtitle{color:#666;text-align:center;margin:0 0 2rem;font-size:.95rem}.form-group input{box-sizing:border-box;border:1px solid #ddd;border-radius:5px;width:100%;padding:.75rem;font-size:1rem;transition:border-color .3s}.form-group input:focus{border-color:var(--brand-primary,#667eea);outline:none}button[type=submit],.login-primary-btn{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));color:#fff;cursor:pointer;border:none;border-radius:5px;width:100%;padding:.875rem;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}button[type=submit]:hover:not(:disabled),.login-primary-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}button[type=submit]:disabled,.login-primary-btn:disabled{opacity:.6;cursor:not-allowed}.session-expired-message{color:#856404;text-align:center;background:#fff3cd;border:1px solid #ffc107;border-radius:5px;margin-bottom:1.5rem;padding:1rem;font-size:.9rem;line-height:1.5}.signup-link{text-align:center;color:#666;margin:1.5rem 0 0;font-size:.9rem}.signup-link a{color:var(--brand-primary,#667eea);font-weight:600;text-decoration:none}.signup-link a:hover{text-decoration:underline}.legal-links{text-align:center;color:#aaa;margin:1rem 0 0;font-size:.8rem}.legal-links a{color:#aaa;text-decoration:none}.legal-links a:hover{text-decoration:underline}.navbar{z-index:100;background:#fff;align-items:center;height:56px;padding:0 2rem;display:flex;position:sticky;top:0;box-shadow:0 2px 8px #0000001a}.navbar-brand{color:var(--brand-primary,#667eea);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;align-items:center;gap:.5rem;margin-right:2rem;font-size:1.15rem;font-weight:700;display:flex}.navbar-logo{height:28px}.company-name-navbar{color:#888;background:#f0f0f0;border-radius:4px;margin-left:.25rem;padding:.15rem .5rem;font-size:.75rem;font-weight:500}.navbar-menus{flex:1;align-items:center;gap:.25rem;display:flex}.navbar-menu-item{position:relative}.navbar-menu-btn{color:#555;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:5px;align-items:center;gap:.35rem;padding:.5rem 1rem;font-size:.9rem;font-weight:500;transition:all .2s;display:flex}.navbar-menu-btn:hover{background:var(--brand-hover-bg,#f0f3ff);color:var(--brand-primary,#667eea)}.navbar-menu-btn.active{color:var(--brand-primary,#667eea);font-weight:600}.dropdown-arrow{opacity:.6;font-size:.7rem}.navbar-dropdown{z-index:200;background:#fff;border-radius:8px;min-width:200px;margin-top:.25rem;padding:.5rem 0;position:absolute;top:100%;left:0;box-shadow:0 4px 20px #00000026}.navbar-dropdown-item{text-align:left;color:#555;cursor:pointer;white-space:nowrap;background:0 0;border:none;width:100%;padding:.625rem 1.25rem;font-size:.9rem;transition:all .15s;display:block}.navbar-dropdown-item:hover{background:var(--brand-hover-bg,#f0f3ff);color:var(--brand-primary,#667eea)}.navbar-dropdown-item.active{color:var(--brand-primary,#667eea);background:var(--brand-hover-bg,#f0f3ff);font-weight:600}.navbar-avatar-wrapper{cursor:pointer;align-items:center;gap:.5rem;margin-left:auto;display:flex}.navbar-user-name{color:var(--brand-primary,#667eea);white-space:nowrap;font-size:.875rem;font-weight:500}.navbar-avatar{background:var(--brand-hover-bg,#f0f3ff);width:34px;height:34px;color:var(--brand-primary,#667eea);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;transition:all .2s;display:flex}.navbar-avatar:hover{background:var(--brand-primary,#667eea);color:#fff}.navbar-dropdown-right{min-width:150px;left:auto;right:0}.navbar-dropdown-logout{color:#dc3545!important}.navbar-dropdown-logout:hover{color:#c82333!important;background:#fee!important}@media (width<=768px){.navbar{flex-wrap:wrap;gap:.5rem;height:auto;padding:.75rem 1rem}.navbar-brand{margin-right:0}.navbar-menus{flex-wrap:wrap;order:3;width:100%}.navbar-menu-btn{padding:.4rem .75rem;font-size:.85rem}.navbar-dropdown{width:auto;position:fixed;left:1rem;right:1rem}.navbar-user-name{display:none}}.admin-container{background:#f5f5f5;min-height:100vh}.btn-primary{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));color:#fff;cursor:pointer;white-space:nowrap;border:none;border-radius:6px;flex-shrink:0;padding:.5rem 1rem;font-size:.9rem;font-weight:500;transition:opacity .2s}.btn-primary:hover{opacity:.9}.btn-import{color:var(--brand-primary,#667eea);border:1.5px solid var(--brand-primary,#667eea);white-space:nowrap;background:#fff;border-radius:6px;flex-shrink:0;padding:.5rem 1rem;font-size:.9rem;font-weight:500;transition:background .2s,color .2s}.btn-import:hover{background:var(--brand-primary,#667eea);color:#fff}.failed-rows-section{background:#fff3cd;border:1px solid #ffc107;border-radius:6px;margin-top:1rem;padding:1rem}.failed-rows-section h4{color:#856404;margin:0 0 .5rem;font-size:.95rem}.failed-rows-section ul{color:#856404;margin:0;padding-left:1.25rem;font-size:.85rem}.admin-header{background:#fff;border-radius:10px;justify-content:space-between;align-items:center;margin-bottom:2rem;padding:1.5rem 2rem;display:flex;box-shadow:0 2px 8px #0000001a}.admin-header h1{color:#333;margin:0;font-size:1.75rem}.data-btn{background:var(--brand-primary,#667eea);color:#fff;cursor:pointer;border:none;border-radius:5px;padding:.625rem 1.25rem;font-size:.95rem;transition:background .2s}.data-btn:hover{background:#5568d3}.schema-section-wrapper{width:100%}.admin-content{grid-template-columns:1fr 2fr;gap:2rem;display:grid}@media (width<=968px){.admin-content{grid-template-columns:1fr}}.create-user-section,.users-list-section{background:#fff;border-radius:10px;padding:2rem;box-shadow:0 2px 8px #0000001a}.create-user-section h2,.users-list-section h2{color:#333;margin:0 0 1.5rem;font-size:1.25rem}.form-group{margin-bottom:1.25rem}.form-group label{color:#333;margin-bottom:.5rem;font-size:.9rem;font-weight:500;display:block}.form-group input,.form-group select{box-sizing:border-box;border:1px solid #ddd;border-radius:5px;width:100%;padding:.75rem;font-size:1rem;transition:border-color .3s}.form-group input:focus,.form-group select:focus{border-color:var(--brand-primary,#667eea);outline:none}button[type=submit]{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));color:#fff;cursor:pointer;border:none;border-radius:5px;width:100%;padding:.875rem;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}button[type=submit]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}button[type=submit]:disabled{opacity:.6;cursor:not-allowed}.error-message{color:#c33;text-align:center;background:#fee;border-radius:5px;margin-bottom:1rem;padding:.75rem;font-size:.9rem}.success-message{color:#3c3;text-align:center;background:#efe;border-radius:5px;margin-bottom:1rem;padding:.75rem;font-size:.9rem}.table-container{max-height:calc(100vh - 300px);overflow:auto}thead{z-index:10;background:#f8f9fa;position:sticky;top:0}.no-users{text-align:center;color:#999;padding:2rem!important}.role-checkboxes{flex-wrap:wrap;gap:.75rem;display:flex}.role-checkbox{color:#555;cursor:pointer;align-items:center;gap:.375rem;font-size:.9rem;display:flex}.role-checkbox input[type=checkbox]{cursor:pointer;width:auto}.actions-cell{white-space:nowrap}.icon-btn{cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;width:34px;height:34px;margin-right:.375rem;padding:0;font-size:0;line-height:1;transition:background .2s,transform .15s;display:inline-flex}.icon-btn svg{fill:none;stroke:#fff;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;display:block;overflow:visible}.icon-btn svg *{fill:none;stroke:inherit;stroke-width:inherit;stroke-linecap:inherit;stroke-linejoin:inherit}.icon-btn:last-child{margin-right:0}.icon-btn:hover{transform:scale(1.1)}.icon-btn.edit-btn{background:var(--brand-primary,#667eea);color:#fff}.icon-btn.edit-btn:hover{background:#5568d3}.icon-btn.save-btn{color:#fff;background:#28a745}.icon-btn.save-btn:hover{background:#218838}.icon-btn.cancel-btn{color:#fff;background:#6c757d}.icon-btn.cancel-btn:hover{background:#5a6268}.icon-btn.delete-btn{color:#fff;background:#dc3545}.icon-btn.delete-btn:hover{background:#c82333}.data-entry-btn{color:#fff;cursor:pointer;background:#28a745;border:none;border-radius:5px;padding:.625rem 1.25rem;font-size:.95rem;transition:background .2s}.data-entry-btn:hover{background:#218838}.reports-btn{color:#fff;cursor:pointer;background:#17a2b8;border:none;border-radius:5px;padding:.625rem 1.25rem;font-size:.95rem;transition:background .2s}.reports-btn:hover{background:#138496}.roles-btn{color:#fff;cursor:pointer;background:#764ba2;border:none;border-radius:5px;padding:.625rem 1.25rem;font-size:.95rem;transition:background .2s}.roles-btn:hover{background:#653a8f}.admin-container .tabs{background:#fff;border-radius:10px;gap:.5rem;margin-bottom:2rem;padding:1rem;display:flex;box-shadow:0 2px 8px #0000001a}.admin-container .tab{cursor:pointer;color:#333;background:#f8f9fa;border:none;border-radius:5px;padding:.75rem 1.5rem;font-size:.95rem;transition:all .2s}.admin-container .tab:hover{background:#e9ecef}.admin-container .tab.active{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));color:#fff}.admin-container .tab-content{background:#fff;border-radius:10px;padding:2rem;box-shadow:0 2px 8px #0000001a}.roles-grid{grid-template-columns:repeat(2,1fr);gap:1.5rem;display:grid}@media (width<=968px){.roles-grid{grid-template-columns:1fr}}.role-card{background:#f8f9fa;border-radius:10px;flex-direction:column;padding:1.5rem;display:flex}.role-card-header{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.role-card-header h2{color:#333;margin:0;font-size:1.25rem}.role-count{background:var(--brand-primary,#667eea);color:#fff;border-radius:12px;padding:.25rem .75rem;font-size:.8rem;font-weight:600}.role-description{color:#888;margin:0 0 1.25rem;font-size:.85rem}.role-users h3{color:#555;margin:0 0 .75rem;font-size:.9rem;font-weight:600}.no-users-text{color:#999;margin:0;font-size:.85rem;font-style:italic}.user-list{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.user-item{background:#fff;border-radius:6px;justify-content:space-between;align-items:center;padding:.5rem .75rem;display:flex}.user-email{color:#333;font-size:.9rem}.remove-role-btn{color:#dc3545;cursor:pointer;background:0 0;border:none;padding:0 .25rem;font-size:1.25rem;font-weight:700;line-height:1;transition:color .2s}.remove-role-btn:hover{color:#a71d2a}.add-user-section{border-top:1px solid #eee;margin-top:1rem;padding-top:1rem}.add-user-section select{color:#333;cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:5px;width:100%;padding:.5rem .75rem;font-size:.9rem}.add-user-section select:focus{border-color:var(--brand-primary,#667eea);outline:none}.audit-timestamp{white-space:nowrap;color:#888;font-size:.85rem}.audit-action{white-space:nowrap;border-radius:4px;padding:.2rem .6rem;font-size:.8rem;font-weight:600;display:inline-block}.audit-action-created{color:#155724;background:#d4edda}.audit-action-updated,.audit-action-updated-roles,.audit-action-changed-password{color:#856404;background:#fff3cd}.audit-action-deleted,.audit-action-bulk-deleted{color:#721c24;background:#f8d7da}.audit-action-imported{color:#0c5460;background:#d1ecf1}.audit-pagination{border-top:1px solid #eee;justify-content:center;align-items:center;gap:1rem;margin-top:1.5rem;padding-top:1rem;display:flex}.audit-pagination button{background:var(--brand-primary,#667eea);color:#fff;cursor:pointer;border:none;border-radius:5px;padding:.5rem 1rem;font-size:.85rem;transition:background .2s}.audit-pagination button:hover:not(:disabled){background:#5568d3}.audit-pagination button:disabled{opacity:.5;cursor:not-allowed}.audit-pagination span{color:#555;font-size:.9rem}.signup-badge{color:#fff;background:#dc3545;border-radius:10px;justify-content:center;align-items:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;font-size:.75rem;font-weight:700;line-height:1;display:inline-flex}.signup-requests-section{border-bottom:2px solid #ffc107;margin-bottom:2rem;padding-bottom:1.5rem}.signup-requests-section h2{color:#856404;margin:0 0 1rem;font-size:1.15rem}.settings-section h2{color:#333;margin:0 0 1.5rem;font-size:1.25rem}.settings-card{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;justify-content:space-between;align-items:center;margin-bottom:1rem;padding:1.25rem;display:flex}.settings-card-info{flex:1}.settings-card-info h3{color:#333;margin:0 0 .25rem;font-size:1rem}.settings-card-info p{color:#666;margin:0;font-size:.9rem}.toggle-btn{cursor:pointer;white-space:nowrap;border:none;border-radius:10px;flex-shrink:0;padding:.25rem .6rem;font-size:.75rem;font-weight:600;transition:all .2s;width:auto!important}.toggle-btn.toggle-on{color:#fff;background:#28a745}.toggle-btn.toggle-on:hover{background:#218838}.toggle-btn.toggle-off{color:#666;background:#e9ecef}.toggle-btn.toggle-off:hover{background:#dee2e6}tr.editing-row,tr.editing-row:hover{background:#e8f0fe}.edit-user-actions{gap:.5rem;display:flex}.edit-save-btn{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));color:#fff;cursor:pointer;border:none;border-radius:5px;flex:1;padding:.875rem;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.edit-save-btn:hover{transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.edit-cancel-btn{color:#555;cursor:pointer;background:#f8f9fa;border:1px solid #ddd;border-radius:5px;flex:1;padding:.875rem;font-size:1rem;font-weight:600;transition:background .2s}.edit-cancel-btn:hover{background:#e9ecef}.super-admin-checkbox{font-weight:600;color:#764ba2!important}.branding-editor{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;margin-top:1.5rem;padding:1.5rem}.branding-editor h3{color:#333;margin:0 0 1rem;font-size:1.1rem}.branding-colors{flex-wrap:wrap;align-items:flex-end;gap:1.5rem;margin-bottom:1rem;display:flex}.branding-color-field{color:#555;flex-direction:column;gap:.35rem;font-size:.85rem;font-weight:600;display:flex}.branding-color-input{align-items:center;gap:.5rem;display:flex}.branding-color-input input[type=color]{cursor:pointer;background:0 0;border:1px solid #ddd;border-radius:4px;width:36px;height:36px;padding:2px}.branding-color-input input[type=text]{border:1px solid #ddd;border-radius:4px;width:80px;padding:.4rem;font-family:monospace;font-size:.85rem}.branding-preview{flex:1;min-width:120px}.branding-preview-bar{color:#fff;text-align:center;border-radius:5px;padding:.5rem 1rem;font-size:.85rem;font-weight:600}.branding-logo-section{margin-bottom:1rem}.branding-actions{gap:.75rem;margin-top:.5rem;display:flex}.usage-section h2{color:#333;margin:0 0 1.5rem;font-size:1.25rem}.usage-company-selector{align-items:center;gap:.75rem;margin-bottom:1.5rem;display:flex}.usage-company-selector label{color:#333;font-weight:600}.usage-company-selector select{border:1px solid #ddd;border-radius:5px;min-width:200px;padding:.5rem;font-size:.9rem}.usage-loading,.usage-empty{text-align:center;color:#999;padding:2rem}.usage-summary{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:1rem;margin-bottom:2rem;display:grid}.usage-stat-card{text-align:center;background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:1.25rem}.usage-stat-number{color:var(--brand-primary,#667eea);font-size:1.75rem;font-weight:700}.usage-stat-label{color:#888;margin-top:.25rem;font-size:.8rem;font-weight:500}.usage-breakdown{margin-bottom:1.5rem}.usage-breakdown h3{color:#333;margin:0 0 1rem;font-size:1rem;font-weight:600}.usage-slug{color:#999;font-family:monospace;font-size:.85rem}.usage-activity-list{flex-direction:column;gap:.4rem;display:flex}.usage-activity-row{align-items:center;gap:.75rem;display:flex}.usage-activity-date{color:#666;min-width:90px;font-family:monospace;font-size:.8rem}.usage-activity-bar-container{background:#f0f0f0;border-radius:9px;flex:1;height:18px;overflow:hidden}.usage-activity-bar{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));border-radius:9px;min-width:2px;height:100%;transition:width .3s}.usage-activity-count{color:#555;text-align:right;min-width:30px;font-size:.8rem;font-weight:600}.modal-overlay{z-index:1000;background:#00000080;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:10px;flex-direction:column;gap:1rem;min-width:320px;max-width:90vw;padding:1.5rem;display:flex}.modal h3{margin:0;font-size:1.1rem}.modal p{color:#555;margin:0;font-size:.9rem}.modal input{box-sizing:border-box;border:1px solid #ddd;border-radius:6px;width:100%;padding:.5rem .75rem;font-size:.9rem}.modal-actions{justify-content:flex-end;gap:.5rem;display:flex}.btn-secondary{color:#555;cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:6px;padding:.5rem 1rem;font-size:.9rem;font-weight:500;transition:background .2s}.crop-modal-overlay{z-index:1000;background:#000000a6;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.crop-modal{background:#fff;border-radius:12px;width:calc(100vw - 2rem);max-width:620px;padding:1.5rem;box-shadow:0 8px 32px #00000040}.profiles-list{flex-direction:column;gap:1rem;display:flex}.profile-card{background:#f8f9fa;border-radius:10px;flex-direction:column;gap:.75rem;padding:1.25rem 1.5rem;display:flex}.profile-card-header{justify-content:space-between;align-items:center;display:flex}.profile-roles{flex-wrap:wrap;gap:.4rem;display:flex}.role-tag{background:var(--brand-primary,#667eea);color:#fff;border-radius:10px;padding:.2rem .6rem;font-size:.75rem;font-weight:500}.role-checkbox-readonly{opacity:.6;cursor:default}.btn-grant-sa{color:#fff;cursor:pointer;background:#28a745;border:none;border-radius:6px;padding:.45rem 1rem;font-size:.875rem;font-weight:500;transition:opacity .2s}.btn-grant-sa:hover{opacity:.85}.btn-revoke-sa{color:#fff;cursor:pointer;background:#dc3545;border:none;border-radius:6px;padding:.45rem 1rem;font-size:.875rem;font-weight:500;transition:opacity .2s}.btn-revoke-sa:hover{opacity:.85}.entity-perms-table{border-collapse:collapse;width:100%;font-size:.85rem}.entity-perms-table th,.entity-perms-table td{text-align:left;border-bottom:1px solid #eee;padding:.35rem .6rem}.entity-perms-table th{color:#555;background:#f5f5f5;font-weight:600}.entity-perms-table td:not(:first-child){text-align:center;width:60px}.entity-perms-table tr:last-child td{border-bottom:none}@media (width<=768px){.admin-header{flex-direction:column;align-items:flex-start;gap:1rem;padding:1.25rem}.admin-header h1{font-size:1.4rem}.header-actions{flex-wrap:wrap;gap:.5rem}.admin-container .tab-content{padding:1rem}.create-user-section,.users-list-section{padding:1.25rem}}.tabs{background:#fff;border-radius:10px;gap:.5rem;margin-bottom:2rem;padding:1rem;display:flex;box-shadow:0 2px 8px #0000001a}.tab{cursor:pointer;color:#333;background:#f8f9fa;border:none;border-radius:5px;padding:.75rem 1.5rem;font-size:.95rem;transition:all .2s}.tab:hover{background:#e9ecef}.tab.active{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));color:#fff}.error-message{color:#c33;background:#fee;border-left:4px solid #dc3545;border-radius:5px;margin-bottom:1rem;padding:1.25rem;font-size:.9rem}.error-text{white-space:pre-line;line-height:1.5}.success-message{color:#155724;background:#d4edda;border-left:4px solid #28a745;border-radius:5px;margin-bottom:1rem;padding:1.25rem;font-size:.9rem}.tab-content{background:#fff;border-radius:10px;padding:2rem;box-shadow:0 2px 8px #0000001a}.content-section{grid-template-columns:auto 1fr;gap:2rem;display:grid}.form-section{background:#f8f9fa;border-radius:8px;width:350px;max-height:calc(100vh - 4rem);padding:1.5rem;transition:width .2s,opacity .2s,padding .2s;position:sticky;top:2rem;overflow:hidden}.form-section:not(.form-section--hidden){overflow-y:auto}.form-section--hidden{opacity:0;pointer-events:none;width:0;padding:0}.form-section h2{color:#333;margin:0 0 1.5rem;font-size:1.25rem}.form-section form{flex-direction:column;gap:1rem;display:flex}.form-section input,.form-section select,.form-section textarea{border:1px solid #ddd;border-radius:5px;padding:.75rem;font-family:inherit;font-size:1rem;transition:border-color .3s}.form-section textarea{resize:vertical;min-height:60px}.form-section input:focus,.form-section select:focus,.form-section textarea:focus{border-color:var(--brand-primary,#667eea);outline:none}.form-section input:disabled,.form-section select:disabled{cursor:not-allowed;background:#e9ecef}.form-section button[type=submit]{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));color:#fff;cursor:pointer;border:none;border-radius:5px;padding:.875rem;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.form-section button[type=submit]:hover{transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.form-section-header{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.form-section-header h2{margin:0!important}.close-panel-btn{cursor:pointer;color:#999;border-radius:5px;justify-content:center;align-items:center;padding:.4rem;transition:all .2s;display:inline-flex}.close-panel-btn:hover{color:#dc3545;background:#fee}.cancel-edit-btn{color:#fff;cursor:pointer;background:#6c757d;border:none;border-radius:5px;padding:.875rem;font-size:1rem;font-weight:600;transition:background .2s}.cancel-edit-btn:hover{background:#5a6268}.csv-help{color:#666;border-left:3px solid var(--brand-primary,#667eea);background:#fff;border-radius:5px;margin:0 0 1rem;padding:.75rem;font-size:.875rem;line-height:1.5}.csv-input{cursor:pointer;box-sizing:border-box;background:#fff;border:2px dashed #ddd;border-radius:5px;width:100%;padding:.75rem;font-size:.95rem;transition:border-color .3s,background-color .3s;display:block}.csv-input:hover{border-color:var(--brand-primary,#667eea);background:#f0f3ff}.csv-input::file-selector-button{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));color:#fff;cursor:pointer;border:none;border-radius:5px;margin-right:1rem;padding:.5rem 1rem;font-size:.875rem;font-weight:600;transition:transform .2s,box-shadow .2s}.csv-input::file-selector-button:hover{transform:translateY(-1px);box-shadow:0 3px 10px #667eea4d}.download-template-btn{width:100%;color:var(--brand-accent,#28a745);border:1px solid var(--brand-accent,#28a745);cursor:pointer;background:0 0;border-radius:5px;margin-top:.75rem;padding:.5rem .75rem;font-size:.85rem;font-weight:500;transition:background .2s,color .2s;display:block}.download-template-btn:hover{background:var(--brand-accent,#28a745);color:#fff}.import-loading{color:#6b7280;margin-top:.75rem;font-size:.85rem}.import-result{background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;flex-direction:column;gap:.25rem;margin-top:1rem;padding:.75rem;display:flex}.import-result-summary{color:#065f46;margin:0;font-size:.85rem;font-weight:500}.import-result-duplicates{color:#92400e;margin:0;font-size:.85rem}.import-result-errors{color:#991b1b;margin:0;font-size:.85rem}.import-result-actions{flex-wrap:wrap;gap:.5rem;margin-top:.5rem;display:flex}.import-update-btn{color:#fff;cursor:pointer;background:#f59e0b;border:none;border-radius:5px;padding:.4rem .9rem;font-size:.82rem;font-weight:600}.import-update-btn:hover{background:#d97706}.import-update-btn:disabled{opacity:.6;cursor:not-allowed}.import-errors-btn{color:#374151;cursor:pointer;background:#f9fafb;border:1px solid #d1d5db;border-radius:5px;padding:.4rem .9rem;font-size:.82rem}.import-errors-btn:hover{background:#f3f4f6}.table-section{min-width:0}.table-scroll-container{min-height:200px;overflow:auto}.table-wrapper{min-width:max-content}.table-wrapper thead th{top:var(--row-sticky-top,0px);z-index:2;background:#f8f9fa;position:sticky}.list-toolbar{gap:.75rem;margin-bottom:1.5rem;display:flex}.toolbar-btn{cursor:pointer;border:none;border-radius:5px;align-items:center;gap:.5rem;padding:.625rem 1.25rem;font-size:.95rem;font-weight:600;transition:transform .2s,box-shadow .2s,background .2s;display:inline-flex}.toolbar-btn:hover{transform:translateY(-1px)}.create-toolbar-btn{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));color:#fff}.create-toolbar-btn:hover{box-shadow:0 4px 12px #667eea66}.import-toolbar-btn{color:#fff;background:#28a745}.import-toolbar-btn:hover{background:#218838;box-shadow:0 4px 12px #28a7454d}.export-toolbar-btn{color:#fff;background:#17a2b8}.export-toolbar-btn:hover{background:#138496;box-shadow:0 4px 12px #17a2b84d}.delete-toolbar-btn{color:#fff;background:#dc3545}.delete-toolbar-btn:hover{background:#c82333;box-shadow:0 4px 12px #dc35454d}.select-col{width:40px;text-align:center!important}.select-checkbox{cursor:pointer;width:16px;height:16px;accent-color:var(--brand-primary,#667eea)}.table-search-bar{align-items:center;gap:.4rem;margin-bottom:.75rem;display:flex}.table-search-input{background:#fff;border:1px solid #d1d5db;border-radius:6px;outline:none;flex:1;min-width:120px;max-width:400px;padding:.4rem .75rem;font-size:.875rem}.table-search-input:focus{border-color:var(--brand-primary,#667eea);box-shadow:0 0 0 2px color-mix(in srgb, var(--brand-primary,#667eea) 15%, transparent)}.table-search-clear{cursor:pointer;color:#9ca3af;background:0 0;border:none;border-radius:4px;padding:.25rem .4rem;font-size:.85rem;line-height:1}.table-search-clear:hover{color:#374151;background:#f3f4f6}.table-search-spinner{border:2px solid #d1d5db;border-top-color:var(--brand-primary,#667eea);border-radius:50%;flex-shrink:0;width:14px;height:14px;animation:.6s linear infinite ep-spin;display:inline-block}@keyframes ep-spin{to{transform:rotate(360deg)}}.filter-toggle-btn{color:#374151;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #d1d5db;border-radius:5px;align-items:center;gap:.35rem;padding:.35rem .75rem;font-size:.85rem;transition:border-color .15s,background .15s;display:inline-flex}.filter-toggle-btn:hover{border-color:var(--brand-primary,#667eea);color:var(--brand-primary,#667eea)}.filter-toggle-btn--open{border-color:var(--brand-primary,#667eea);background:color-mix(in srgb, var(--brand-primary,#667eea) 8%, white);color:var(--brand-primary,#667eea)}.filter-toggle-btn--active{border-color:var(--brand-primary,#667eea);background:color-mix(in srgb, var(--brand-primary,#667eea) 12%, white);color:var(--brand-primary,#667eea);font-weight:600}.filter-badge{background:var(--brand-primary,#667eea);color:#fff;border-radius:9px;justify-content:center;align-items:center;min-width:18px;height:18px;padding:0 4px;font-size:.72rem;font-weight:700;line-height:1;display:inline-flex}.filter-panel{background:#fafbfc;border:1px solid #d1d5db;border-radius:7px;margin-bottom:.75rem;padding:.75rem}.filter-panel-scroll{max-height:200px;overflow-y:auto}.filter-panel-empty{color:#9ca3af;margin:0 0 .5rem;font-size:.85rem}.filter-and-sep{text-align:left;color:#6b7280;letter-spacing:.08em;margin:.35rem 0;padding-left:.6rem;font-size:.72rem;font-weight:700}.filter-group{background:#fff;border:1px solid #e5e7eb;border-radius:5px;padding:.5rem .6rem}.filter-row{flex-wrap:wrap;align-items:center;gap:.4rem;margin-bottom:.35rem;display:flex}.filter-or-label{color:var(--brand-primary,#667eea);text-align:center;flex-shrink:0;width:22px;font-size:.72rem;font-weight:700}.filter-select{color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:5px;padding:.3rem .4rem;font-size:.85rem}.filter-select:focus{border-color:var(--brand-primary,#667eea);outline:none}.filter-remove-btn{cursor:pointer;color:#9ca3af;background:0 0;border:none;border-radius:3px;flex-shrink:0;padding:.2rem .3rem;font-size:.8rem;line-height:1}.filter-remove-btn:hover{color:#dc3545;background:#fee2e2}.filter-group-footer{justify-content:flex-start;align-items:center;gap:.5rem;margin-top:.4rem;display:flex}.filter-add-or-btn{border:1px solid var(--brand-primary,#667eea);color:var(--brand-primary,#667eea);cursor:pointer;background:0 0;border-radius:4px;padding:.2rem .5rem;font-size:.78rem}.filter-add-or-btn:hover{background:color-mix(in srgb, var(--brand-primary,#667eea) 8%, white)}.filter-delete-group-btn{color:#dc3545;cursor:pointer;background:0 0;border:1px solid #f3a4a4;border-radius:4px;padding:.2rem .5rem;font-size:.78rem}.filter-delete-group-btn:hover{background:#fee2e2}.filter-panel-footer{align-items:center;gap:.5rem;margin-top:.5rem;display:flex}.filter-add-group-btn{cursor:pointer;color:#374151;background:#f9fafb;border:1px solid #d1d5db;border-radius:4px;padding:.25rem .6rem;font-size:.82rem}.filter-add-group-btn:hover{background:#f3f4f6}.filter-clear-btn{color:#9ca3af;cursor:pointer;background:0 0;border:none;padding:.25rem .6rem;font-size:.82rem}.filter-clear-btn:hover{color:#dc3545}.filter-chips{flex-wrap:wrap;align-items:center;gap:.4rem;margin-bottom:.6rem;display:flex}.filter-chip{background:color-mix(in srgb, var(--brand-primary,#667eea) 10%, white);border:1px solid color-mix(in srgb, var(--brand-primary,#667eea) 30%, white);color:var(--brand-primary,#667eea);white-space:nowrap;border-radius:999px;align-items:center;gap:.25rem;padding:.2rem .5rem;font-size:.78rem;font-weight:500;display:inline-flex}.filter-chip-remove{cursor:pointer;color:var(--brand-primary,#667eea);opacity:.7;background:0 0;border:none;padding:0 1px;font-size:.7rem;line-height:1}.filter-chip-remove:hover{opacity:1}.filter-clear-all{cursor:pointer;color:#9ca3af;background:0 0;border:none;padding:.1rem .3rem;font-size:.78rem}.filter-clear-all:hover{color:#dc3545}.zoom-controls{border:1px solid #d1d5db;border-radius:5px;flex-shrink:0;align-items:center;gap:.25rem;display:inline-flex;overflow:hidden}.zoom-btn{cursor:pointer;color:#374151;background:#fff;border:none;padding:.3rem .55rem;font-size:.8rem;font-weight:600;line-height:1;transition:background .15s,color .15s}.zoom-btn:hover:not(:disabled){color:var(--brand-primary,#667eea);background:#f3f4f6}.zoom-btn:disabled{opacity:.35;cursor:default}.zoom-label{color:#6b7280;text-align:center;-webkit-user-select:none;user-select:none;min-width:32px;font-size:.75rem}.zoom-reset-btn{cursor:pointer;background:0 0;border:none;padding:.3rem .25rem;transition:background .15s,color .15s}.zoom-reset-btn:hover:not(:disabled){color:var(--brand-primary,#667eea);background:#f3f4f6}.zoom-reset-btn:disabled{cursor:default}.table-load-more-row{text-align:center;padding:.75rem}.table-load-more-row--top{text-align:left;padding:0 0 .75rem}.table-load-more-btn{color:#374151;cursor:pointer;background:#f9fafb;border:1px solid #d1d5db;border-radius:6px;padding:.4rem 1.25rem;font-size:.85rem}.table-load-more-btn:hover:not(:disabled){background:#f3f4f6;border-color:#9ca3af}.table-load-more-btn:disabled{opacity:.6;cursor:not-allowed}.table-end-note{text-align:center;color:#bbb;padding:.5rem;font-size:.8rem}.table-end-note--top{text-align:left;padding:0 0 .75rem}@media (width<=1200px){.form-section:not(.form-section--hidden){width:300px}}@media (width<=992px){.content-section{display:block}.form-section{opacity:1;width:100%;max-height:600px;margin-bottom:1.5rem;transition:max-height .25s,opacity .2s;position:static;overflow:hidden}.form-section.form-section--hidden{opacity:0;width:100%;max-height:0;margin-bottom:0;padding:0}}.th-content{align-items:center;gap:.2rem;display:inline-flex}.pin-btn{cursor:pointer;color:#aaa;vertical-align:middle;background:0 0;border:none;border-radius:3px;margin-left:4px;padding:2px 3px;line-height:1;display:none}.pin-btn:hover{color:#667eea;background:#667eea1a}.pin-btn--active{color:#667eea;display:inline-flex}th:hover .pin-btn{display:inline-flex}.col-pin-last,th.col-pin-last{box-shadow:3px 0 6px -2px #0000001f}.legend-header-row th{background:#f8f9fa;border-bottom:1px solid #e9ecef;padding:.35rem .6rem;font-weight:400}.legend-header-cell{white-space:normal}.legend-header-cell--empty{background:0 0!important;border-bottom:none!important}.field-color-legend-entry{color:#555;align-items:center;gap:.3rem;margin-right:.6rem;font-size:.78rem;display:inline-flex}.field-color-swatch{border:1px solid #00000026;border-radius:2px;flex-shrink:0;width:12px;height:12px;display:inline-block}.section-header-row th{color:#4a5568;white-space:nowrap;background:#f0f4ff;border-bottom:2px solid #c3d0f8;padding:.4rem .6rem;font-size:.82rem;font-weight:600}.section-group-header{text-align:center;letter-spacing:.02em}.section-group-empty{background:0 0!important;border-bottom:none!important}th.section-start,td.section-start{border-left:2px solid #667eea!important}th.section-end,td.section-end{border-right:2px solid #667eea!important}.cell-editor-wrap{align-items:center;gap:4px;display:flex}.cell-editor{box-sizing:border-box;border:2px solid var(--brand-primary,#667eea);min-width:0;font-size:inherit;color:#333;background:#fff;border-radius:3px;outline:none;flex:1;padding:2px 4px;font-family:inherit}.cell-color-swatches{flex-shrink:0;align-items:center;gap:3px;display:flex}.cell-color-swatch-btn{cursor:pointer;border:2px solid #0000;border-radius:3px;outline:none;flex-shrink:0;width:16px;height:16px;padding:0}.cell-color-swatch-btn:hover{border-color:#00000059}.cell-color-swatch-btn.active{border-color:#0009;box-shadow:0 0 0 2px #fff,0 0 0 3px #0006}.cell-color-clear{cursor:pointer;color:#9ca3af;background:0 0;border:none;flex-shrink:0;padding:0 2px;font-size:.7rem;line-height:1}.cell-color-clear:hover{color:#dc3545}td.cell-editing{background:color-mix(in srgb, var(--brand-primary,#667eea) 8%, white)!important;padding:2px!important}@media (width<=768px){.tabs{flex-direction:column}.tab{width:100%}.tab-content,.form-section{padding:1rem}.form-section.form-section--hidden{padding:0}}.data-management-container,.customer-relationships-container{background:#f5f5f5;min-height:100vh}.relationships-subheader{background:#fff;border-radius:10px;justify-content:space-between;align-items:center;margin:2rem;padding:1.5rem 2rem;display:flex;box-shadow:0 2px 8px #0000001a}.relationships-subheader h1{color:#333;margin:0;font-size:1.75rem}.customer-navigation{align-items:center;gap:.5rem;display:flex}.nav-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#28a745;border:none;border-radius:5px;padding:.625rem 1rem;font-size:.9rem;transition:background .2s,opacity .2s}.nav-btn:hover:not(:disabled){background:#218838}.nav-btn:disabled{cursor:not-allowed;opacity:.5;background:#6c757d}.back-btn{background:var(--brand-primary,#667eea);color:#fff;cursor:pointer;border:none;border-radius:5px;padding:.625rem 1.25rem;font-size:.95rem;transition:background .2s}.logout-btn{color:#fff;cursor:pointer;background:#dc3545;border:none;border-radius:5px;padding:.625rem 1.25rem;font-size:.95rem;transition:background .2s}.error-message{color:#c33;background:#fee;border-radius:5px;margin-bottom:1rem;padding:1rem;font-size:.9rem}.success-message{color:#3c3;background:#efe;border-radius:5px;margin-bottom:1rem;padding:1rem;font-size:.9rem}.loading{text-align:center;color:#666;padding:2rem;font-size:1.2rem}.relationships-content{grid-template-columns:350px 1fr;gap:2rem;display:grid;overflow:hidden}@media (width<=968px){.relationships-content{grid-template-columns:1fr}}.section{background:#fff;border-radius:10px;padding:2rem;box-shadow:0 2px 8px #0000001a}.section h2{color:#333;border-bottom:2px solid #e9ecef;margin:0 0 1.5rem;padding-bottom:1rem;font-size:1.5rem}.add-form{margin-bottom:0}.add-form h3{color:#555;margin:0 0 1rem;font-size:1.1rem}.add-form form{flex-direction:column;gap:1rem;display:flex}.form-label{color:#555;flex-direction:column;gap:.35rem;font-size:.85rem;font-weight:600;display:flex}.type-toggle{border:1px solid #ddd;border-radius:5px;gap:0;display:flex;overflow:hidden}.toggle-btn{color:#555;cursor:pointer;background:#f8f9fa;border:none;flex:1;padding:.625rem 1rem;font-size:.95rem;font-weight:600;transition:all .2s}.toggle-btn:first-child{border-right:1px solid #ddd}.toggle-btn:hover:not(.active){background:#e9ecef}.toggle-btn.active{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));color:#fff}.add-form input,.add-form select{border:1px solid #ddd;border-radius:5px;padding:.75rem;font-size:1rem;transition:border-color .3s}.add-form input:focus,.add-form select:focus{border-color:var(--brand-primary,#667eea);outline:none}.add-form button[type=submit]{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));color:#fff;cursor:pointer;border:none;border-radius:5px;padding:.875rem;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.add-form button[type=submit]:hover{transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.list{overflow-x:auto}.list h3{color:#555;margin:0 0 1rem;font-size:1.1rem}table{border-collapse:collapse;width:100%}thead{background:#f8f9fa}th{text-align:left;color:#333;border-bottom:2px solid #dee2e6;padding:1rem;font-weight:600}td{color:#555;border-bottom:1px solid #dee2e6;padding:1rem}tr:hover{background:#f8f9fa}.no-data{text-align:center;color:#999;font-style:italic}.delete-btn{color:#fff;cursor:pointer;background:#dc3545;border:none;border-radius:5px;padding:.5rem 1rem;font-size:.875rem;transition:background .2s}.delete-btn:hover{background:#c82333}@media (width<=768px){.relationships-subheader{flex-direction:column;align-items:flex-start;gap:1rem;margin:0;padding:1.25rem}.relationships-subheader h1{font-size:1.4rem}.customer-navigation{flex-wrap:wrap}.section{padding:1.25rem}}.reports-container{background:#f5f5f5;min-height:100vh}.report-progress{margin-top:.85rem}.report-progress-bar-track{background:#e8e8e8;border-radius:2px;width:100%;height:4px;margin-bottom:.75rem;overflow:hidden}.report-progress-bar-fill{background:var(--brand-primary,#667eea);border-radius:2px;height:100%;transition:width .5s}.report-progress-steps-list{flex-direction:column;gap:0;display:flex}.report-step{align-items:center;gap:.5rem;padding:.22rem 0;font-size:.8rem;line-height:1.3;display:flex}.report-step--done{color:#aaa}.report-step--active{color:#333;font-weight:600}.report-step--pending{color:#ccc}.report-step-icon{flex-shrink:0;justify-content:center;align-items:center;width:14px;display:flex}.report-step-check{color:#4caf50;font-size:.75rem;font-weight:700}.report-step-dot{color:#ccc;font-size:.7rem}.report-step-spinner{border:2px solid var(--brand-primary,#667eea);border-top-color:#0000;border-radius:50%;width:10px;height:10px;animation:.7s linear infinite report-spin;display:inline-block}@keyframes report-spin{to{transform:rotate(360deg)}}.reports-header{background:#fff;border-radius:10px;justify-content:space-between;align-items:center;margin-bottom:2rem;padding:1.5rem 2rem;display:flex;box-shadow:0 2px 8px #0000001a}.reports-header h1{color:#333;margin:0;font-size:1.75rem}.header-actions{gap:.75rem;display:flex}.templates-btn,.back-btn,.logout-btn{cursor:pointer;border:none;border-radius:5px;padding:.625rem 1.25rem;font-size:.9rem;font-weight:600;transition:all .2s}.templates-btn{background:var(--brand-primary,#667eea);color:#fff}.templates-btn:hover{background:#5568d3}.back-btn{color:#fff;background:#6c757d}.back-btn:hover{background:#5a6268}.logout-btn{color:#fff;background:#dc3545}.logout-btn:hover{background:#c82333}.reports-content{background:#fff;border-radius:10px;padding:2rem;box-shadow:0 2px 8px #0000001a}.reports-intro{border-bottom:2px solid #e9ecef;margin-bottom:2rem;padding-bottom:1.5rem}.reports-intro h2{color:#333;margin:0 0 .75rem;font-size:1.5rem}.reports-intro p{color:#666;margin:0;line-height:1.6}.reports-grid{grid-template-columns:repeat(auto-fit,minmax(min(350px,100%),1fr));gap:1.5rem;margin-bottom:2rem;display:grid}.report-card{border:2px solid #e9ecef;border-radius:10px;flex-direction:column;padding:1.5rem;transition:all .3s;display:flex}.report-card.ready{background:#f8fff9;border-color:#28a745}.report-card.not-ready{background:#fffcf0;border-color:#ffc107}.report-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.report-card-icon{text-align:center;margin-bottom:1rem;font-size:2.5rem}.report-card-header{border-bottom:1px solid #e9ecef;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;display:flex}.report-card-header h3{color:#333;margin:0;font-size:1.25rem}.template-status{border-radius:12px;padding:.25rem .75rem;font-size:.85rem;font-weight:600}.template-status.ready{color:#fff;background:#28a745}.template-status.not-ready{color:#333;background:#ffc107}.report-description{color:#666;flex-grow:1;margin-bottom:1.5rem;line-height:1.6}.report-parameters{margin-bottom:1.5rem}.report-parameters label{color:#555;margin-bottom:.5rem;font-size:.9rem;font-weight:600;display:block}.report-parameters select,.report-parameters input{box-sizing:border-box;background:#fff;border:1px solid #ddd;border-radius:5px;width:100%;padding:.625rem;font-size:.9rem;transition:border-color .2s}.report-parameters select{cursor:pointer}.report-parameters select:focus,.report-parameters input:focus{border-color:var(--brand-primary,#667eea);outline:none}.report-parameters select:disabled,.report-parameters input:disabled{cursor:not-allowed;background:#f5f5f5}.no-parameters{color:#999;text-align:center;margin:0;padding:1rem 0;font-style:italic}.export-btn{background:var(--brand-primary,#667eea);color:#fff;cursor:pointer;border:none;border-radius:5px;width:100%;padding:.875rem 1.5rem;font-size:1rem;font-weight:600;transition:all .2s}.export-btn:hover{background:#5568d3;transform:translateY(-1px);box-shadow:0 3px 10px #667eea4d}.export-btn:disabled{cursor:not-allowed;background:#ccc;transform:none}.template-missing{flex-direction:column;align-items:center;gap:1rem;padding:1rem 0;display:flex}.template-missing p{color:#999;margin:0;font-style:italic}.upload-template-btn{color:#333;cursor:pointer;background:#ffc107;border:none;border-radius:5px;padding:.875rem 1.5rem;font-size:1rem;font-weight:600;transition:all .2s}.upload-template-btn:hover{background:#e0a800;transform:translateY(-1px);box-shadow:0 3px 10px #ffc1074d}.reports-help{border-left:4px solid var(--brand-primary,#667eea);background:#f8f9fa;border-radius:8px;margin-top:2rem;padding:1.5rem}.reports-help h3{color:#333;margin:0 0 1rem;font-size:1.25rem}.reports-help ul{margin:0;padding:0;list-style:none}.reports-help li{color:#555;padding:.5rem 0;line-height:1.6}.reports-help li strong{color:#333}@media (width<=768px){.reports-header{flex-direction:column;align-items:flex-start;gap:1rem;padding:1.25rem}.reports-header h1{font-size:1.4rem}.reports-content{padding:1rem}}.error-message{color:#721c24;background:#f8d7da;border:1px solid #f5c6cb;border-radius:5px;margin-bottom:1rem;padding:1rem 1.5rem}.success-message{color:#155724;background:#d4edda;border:1px solid #c3e6cb;border-radius:5px;margin-bottom:1rem;padding:1rem 1.5rem}.rb-container{background:#f5f5f5;min-height:100vh}.rb-list-page,.rb-form-page{background:#fff;border-radius:10px;padding:2rem;box-shadow:0 2px 8px #0000001a}.rb-list-header,.rb-form-header{border-bottom:2px solid #e9ecef;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;display:flex}.rb-list-header h2,.rb-form-header h2{color:#333;margin:0;font-size:1.5rem}.rb-create-btn{background:var(--brand-primary,#667eea);color:#fff;cursor:pointer;border:none;border-radius:5px;padding:.625rem 1.25rem;font-size:.95rem;font-weight:600;transition:background .2s}.rb-create-btn:hover{background:#5568d3}.rb-empty{text-align:center;color:#888;padding:3rem 1rem}.rb-empty p{margin:.5rem 0}.rb-config-list{flex-direction:column;gap:1rem;display:flex}.rb-config-card{border:1px solid #e9ecef;border-radius:8px;flex-direction:column;gap:1rem;padding:1.25rem;transition:box-shadow .2s;display:flex}.rb-config-card-top{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.rb-config-card:hover{box-shadow:0 2px 8px #00000014}.rb-config-info{flex:1}.rb-config-info h3{color:#333;margin:0 0 .25rem;font-size:1.1rem}.rb-config-info p{color:#666;margin:0 0 .5rem;font-size:.9rem}.rb-config-meta{flex-wrap:wrap;gap:.75rem;display:flex}.rb-config-meta span{color:#555;background:#f0f0f0;border-radius:12px;padding:.2rem .6rem;font-size:.8rem}.rb-badge-ready{color:#155724!important;background:#d4edda!important}.rb-badge-missing{color:#856404!important;background:#fff3cd!important}.rb-config-actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.rb-edit-btn,.rb-download-btn,.rb-upload-label{background:var(--brand-primary,#667eea);color:#fff;cursor:pointer;border:none;border-radius:4px;align-items:center;padding:.4rem .8rem;font-size:.85rem;line-height:normal;transition:background .2s;display:inline-flex}.rb-edit-btn:hover,.rb-download-btn:hover,.rb-upload-label:hover{background:#5568d3}.rb-delete-btn{color:#fff;cursor:pointer;background:#dc3545;border:none;border-radius:4px;padding:.4rem .8rem;font-size:.85rem;transition:background .2s}.rb-delete-btn:hover{background:#c82333}.rb-form-section{background:#f8f9fa;border-radius:8px;margin-bottom:2rem;padding:1.5rem}.rb-form-section h3{color:#333;margin:0 0 1rem;font-size:1.15rem}.rb-form-section label{color:#555;margin-bottom:.75rem;font-size:.9rem;font-weight:600;display:block}.rb-form-section input[type=text],.rb-form-section textarea,.rb-form-section select{box-sizing:border-box;border:1px solid #ddd;border-radius:5px;width:100%;margin-top:.25rem;padding:.5rem .75rem;font-family:inherit;font-size:.9rem;display:block}.rb-form-section textarea{resize:vertical}.rb-checkbox-label{cursor:pointer;align-items:center;gap:.5rem;font-weight:500;display:flex}.rb-checkbox-label input[type=checkbox]{width:auto;margin:0}.rb-form-section input:focus,.rb-form-section textarea:focus,.rb-form-section select:focus{border-color:var(--brand-primary,#667eea);outline:none}.rb-icon-picker-field{align-items:flex-start;gap:.75rem;margin-bottom:.75rem;display:flex}.rb-icon-picker-label{color:#555;min-width:60px;padding-top:.4rem;font-size:.9rem;font-weight:600}.rb-icon-picker-control{position:relative}.rb-icon-trigger{cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:6px;align-items:center;gap:.5rem;padding:.35rem .75rem;font-size:.9rem;transition:border-color .15s;display:flex}.rb-icon-trigger:hover{border-color:var(--brand-primary,#667eea)}.rb-icon-preview{font-size:1.5rem;line-height:1}.rb-icon-trigger-hint{color:#888;font-size:.8rem}.rb-icon-grid{z-index:100;background:#fff;border:1px solid #ddd;border-radius:8px;grid-template-columns:repeat(10,28px);gap:2px;width:fit-content;padding:.5rem;display:grid;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 4px 16px #0000001f}.rb-icon-option{box-sizing:border-box;cursor:pointer;background:0 0;border:2px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:28px;height:28px;font-size:1.1rem;transition:background .1s,border-color .1s;display:flex}.rb-icon-option:hover{background:#f0f0f0}.rb-icon-option.selected{border-color:var(--brand-primary,#667eea);background:#eef0fd}.rb-section-header{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.rb-section-header h3{margin:0}.rb-add-btn{color:#fff;cursor:pointer;background:#28a745;border:none;border-radius:4px;padding:.35rem .8rem;font-size:.85rem;transition:background .2s}.rb-add-btn:hover{background:#218838}.rb-help-text{color:#888;margin:0 0 1rem;font-size:.85rem}.rb-item-card{background:#fff;border:1px solid #dee2e6;border-radius:6px;margin-bottom:.75rem;padding:1rem}.rb-item-header{border-bottom:1px solid #eee;justify-content:space-between;align-items:center;margin-bottom:.75rem;padding-bottom:.5rem;display:flex}.rb-item-header strong{color:#333;font-size:.95rem}.rb-remove-btn{color:#fff;cursor:pointer;background:#dc3545;border:none;border-radius:3px;padding:.25rem .6rem;font-size:.8rem}.rb-remove-btn:hover{background:#c82333}.rb-constant-row{align-items:center;gap:.5rem;margin-top:.5rem;display:flex}.rb-constant-row input{border:1px solid #ccc;border-radius:4px;flex:1;padding:.35rem .5rem;font-size:.85rem}.rb-item-fields{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem;display:grid}.rb-checkbox{align-items:center;gap:.5rem;font-weight:400!important;display:flex!important}.rb-checkbox input[type=checkbox]{width:auto;margin:0;display:inline}.rb-checkbox-group{flex-direction:column;gap:.35rem;margin-top:.25rem;display:flex}.rb-muted{color:#999;font-size:.9rem;font-style:italic}.rb-field-hint{color:#888;margin-top:.2rem;font-size:.78rem;display:block}.rb-param-targets{flex-direction:column;gap:.35rem;margin-bottom:.75rem;display:flex}.rb-param-targets-label{color:#555;margin-bottom:.1rem;font-size:.9rem;font-weight:600}.rb-form-actions{gap:.75rem;padding-top:1rem;display:flex}.rb-save-btn{color:#fff;cursor:pointer;background:#28a745;border:none;border-radius:5px;padding:.75rem 2rem;font-size:1rem;font-weight:600;transition:background .2s}.rb-save-btn:hover{background:#218838}.rb-save-btn:disabled{cursor:not-allowed;background:#ccc}.rb-cancel-btn{color:#fff;cursor:pointer;background:#6c757d;border:none;border-radius:5px;padding:.625rem 1.25rem;font-size:.95rem;transition:background .2s}.rb-cancel-btn:hover{background:#5a6268}.rb-undo-btn{color:#444;cursor:pointer;white-space:nowrap;background:#f0f0f0;border:1px solid #ccc;border-radius:5px;padding:.625rem 1rem;font-size:.9rem;transition:background .2s,color .2s}.rb-undo-btn:hover:not(:disabled){color:#222;background:#e0e0e0}.rb-undo-btn:disabled{opacity:.4;cursor:not-allowed}.report-parameters input[type=date]{background:#fff;border:1px solid #ddd;border-radius:5px;width:100%;padding:.625rem;font-size:.9rem;transition:border-color .2s}.report-parameters input[type=date]:focus{border-color:var(--brand-primary,#667eea);outline:none}.report-parameters input[type=date]:disabled{cursor:not-allowed;background:#f5f5f5}.rb-test-section{border-top:1px dashed #dee2e6;padding-top:.85rem}.rb-test-section h4{color:#555;text-transform:uppercase;letter-spacing:.04em;margin:0 0 .6rem;font-size:.85rem;font-weight:600}.rb-test-params{flex-wrap:wrap;gap:.75rem;margin-bottom:.75rem;display:flex}.rb-test-param{color:#444;flex-direction:column;gap:.25rem;min-width:160px;font-size:.85rem;font-weight:500;display:flex}.rb-test-param select,.rb-test-param input{box-sizing:border-box;background:#fff;border:1px solid #ccc;border-radius:4px;padding:.35rem .6rem;font-size:.85rem}.rb-test-param select:focus,.rb-test-param input:focus{border-color:var(--brand-primary,#667eea);outline:none}.rb-required{color:#dc3545}.rb-test-actions{flex-wrap:wrap;gap:.5rem;display:flex}.rb-payload-btn{color:#fff;cursor:pointer;background:#6c757d;border:none;border-radius:4px;padding:.4rem 1rem;font-size:.85rem;font-weight:600;transition:background .2s}.rb-payload-btn:hover:not(:disabled){background:#5a6268}.rb-payload-btn:disabled{opacity:.65;cursor:not-allowed}.rb-test-btn{color:#fff;cursor:pointer;background:#28a745;border:none;border-radius:4px;padding:.4rem 1rem;font-size:.85rem;font-weight:600;transition:background .2s}.rb-test-btn:hover:not(:disabled){background:#218838}.rb-test-btn:disabled{opacity:.65;cursor:not-allowed}.rb-editor-layout{display:block}.rb-editor-left{max-width:860px}.rb-editor-topbar{border-bottom:2px solid #e9ecef;flex-wrap:wrap;align-items:center;gap:1rem;margin-bottom:1rem;padding-bottom:1rem;display:flex}.rb-back-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#6c757d;border:none;border-radius:4px;flex-shrink:0;padding:.35rem .8rem;font-size:.85rem}.rb-back-btn:hover{background:#5a6268}.rb-editor-title{color:#333;white-space:nowrap;text-overflow:ellipsis;flex:1;align-items:center;gap:.4rem;min-width:0;margin:0;font-size:1.3rem;display:flex;overflow:hidden}.rb-editor-icon{flex-shrink:0;font-size:1.2rem}.rb-editor-top-actions{flex-shrink:0;gap:.5rem;display:flex}.rb-collapsible-section{border:1px solid #e0e0e0;border-radius:8px;margin-bottom:.75rem;overflow:hidden}.rb-collapse-toggle{cursor:pointer;color:#333;text-align:left;background:#f8f9fa;border:none;align-items:center;gap:.5rem;width:100%;padding:.7rem 1rem;font-size:.95rem;font-weight:600;transition:background .15s;display:flex}.rb-collapse-toggle:hover{background:#eef0f2}.rb-collapse-arrow{color:#666;flex-shrink:0;font-size:.8rem}.rb-collapse-summary{color:#888;white-space:nowrap;text-overflow:ellipsis;margin-left:.5rem;font-size:.88rem;font-weight:400;overflow:hidden}.rb-collapsible-section .rb-form-section{border-top:1px solid #e0e0e0;border-radius:0;margin:0}.rb-count-badge{background:var(--brand-primary,#667eea);color:#fff;vertical-align:middle;border-radius:20px;justify-content:center;align-items:center;min-width:1.4em;height:1.4em;margin-left:.4rem;padding:0 .3em;font-size:.72rem;font-weight:700;display:inline-flex}.rb-var-chip{white-space:nowrap;border-radius:4px;padding:.15rem .5rem;font-family:Courier New,Courier,monospace;font-size:.82rem;font-weight:600;display:inline-block}.rb-var-chip-ds{color:#1a56db;background:#e8f0fe;border:1px solid #b6d0fb}.rb-var-chip-param{color:#b45309;background:#fff3e0;border:1px solid #fcd34d}.rb-var-input-wrap{border:1px solid #ddd;border-radius:5px;align-items:center;margin-top:.25rem;display:flex;overflow:hidden}.rb-var-input-wrap input{flex:1;font-family:Courier New,Courier,monospace;font-size:.88rem;border:none!important;border-radius:0!important;margin:0!important;padding:.45rem .5rem!important}.rb-var-input-wrap input:focus{box-shadow:none;outline:none}.rb-var-affix{color:#4a5568;-webkit-user-select:none;user-select:none;background:#f0f4ff;flex-shrink:0;padding:.45rem .4rem;font-family:Courier New,Courier,monospace;font-size:.82rem;font-weight:600}.rb-ds-header-left{flex-wrap:wrap;align-items:center;gap:.5rem;min-width:0;display:flex}.rb-ds-entity-name{color:#444;font-size:.9rem;font-weight:500}.rb-mode-badge{text-transform:uppercase;letter-spacing:.03em;border-radius:10px;padding:.1rem .45rem;font-size:.72rem;font-weight:600}.rb-mode-list{color:#2e7d32;background:#e8f5e9}.rb-mode-single{color:#6a1b9a;background:#f3e5f5}.rb-ds-hint{border-radius:4px;margin-bottom:.5rem;padding:.3rem .6rem;font-size:.82rem}.rb-ds-grouping-hint{color:#1565c0;background:#e8f4fd;border-left:3px solid #1a73e8}.rb-ds-sort-hint{color:#555;background:#f5f5f5}.rb-ds-hint code{background:#0000000f;border-radius:2px;padding:0 .2rem;font-family:Courier New,Courier,monospace}.rb-rel-group-hint{color:#1a56db;background:#e8f0fe;border-radius:10px;margin-left:.3rem;padding:.1rem .35rem;font-size:.72rem;font-weight:600}.rb-ds-filtered-by{border-top:1px dashed #e0e0e0;flex-wrap:wrap;align-items:center;gap:.35rem;margin-top:.6rem;padding-top:.5rem;display:flex}.rb-filtered-label{color:#888;font-size:.78rem;font-weight:600}.rb-filter-pill{color:#b45309;background:#fff3e0;border:1px solid #fcd34d;border-radius:10px;padding:.15rem .5rem;font-size:.75rem}.rb-field-join-section{border-top:1px dashed #e0e0e0;margin-top:.75rem;padding-top:.6rem}.rb-field-join-config{grid-template-columns:1fr 1fr 1fr;gap:.5rem;margin-top:.5rem;display:grid}.rb-field-join-config label{color:#555;flex-direction:column;gap:.2rem;font-size:.8rem;font-weight:600;display:flex}.rb-field-join-config select,.rb-field-join-config input{border:1px solid #ccc;border-radius:4px;padding:.3rem .4rem;font-size:.82rem;font-weight:400}.rb-param-header-left{flex-wrap:wrap;align-items:center;gap:.5rem;min-width:0;display:flex}.rb-param-label-display{color:#444;font-size:.9rem;font-weight:500}.rb-required-badge{color:#c53030;text-transform:uppercase;letter-spacing:.04em;background:#fde8e8;border:1px solid #fc8181;border-radius:10px;padding:.1rem .4rem;font-size:.7rem;font-weight:700}.rb-param-filter-desc{color:#4a5568;background:#f8f9fa;border-radius:4px;margin-bottom:.5rem;padding:.3rem .6rem;font-family:Courier New,Courier,monospace;font-size:.83rem}.rb-conditions-section{border-top:1px solid #e8e8e8;margin-top:.75rem;padding-top:.6rem}.rb-conditions-header{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.rb-conditions-label{color:#555;font-size:.82rem;font-weight:600}.rb-add-condition-btn{color:var(--brand-primary,#667eea);border:1px dashed var(--brand-primary,#667eea);cursor:pointer;background:#fff;border-radius:4px;padding:.2rem .6rem;font-size:.78rem;transition:background .15s}.rb-add-condition-btn:hover{background:var(--brand-hover-bg,#667eea15)}.rb-conditions-empty{margin:.25rem 0;font-size:.82rem}.rb-condition-row{align-items:center;gap:.4rem;margin-bottom:.4rem;display:flex}.rb-condition-row select{background:#fff;border:1px solid #ddd;border-radius:4px;padding:.3rem .5rem;font-size:.83rem}.rb-condition-ds{flex:0 0 160px}.rb-condition-field{flex:1}.rb-condition-op{flex:0 0 130px}.rb-const-prefix,.rb-const-suffix{color:#276749;background:#f0fff4}.rb-const-equals{color:#888;flex-shrink:0;padding:0 .35rem;font-size:.9rem;font-weight:600}.rb-sort-rule-row select,.rb-sort-rule-row input{border:1px solid #ccc;border-radius:4px;padding:.35rem .5rem;font-size:.85rem}.rb-sort-rule-row input{flex:1;min-width:0}.rb-exclude-label{color:#666;white-space:nowrap;flex:none;font-size:.8rem}.rb-sort-priority-label{color:var(--brand-primary,#667eea);white-space:nowrap;background:#667eea1a;border-radius:3px;flex:none;padding:.1rem .35rem;font-size:.72rem;font-weight:700}.rb-test-progress{margin-top:.85rem}.rb-test-progress-bar-track{background:#e8e8e8;border-radius:2px;width:100%;height:4px;margin-bottom:.65rem;overflow:hidden}.rb-test-progress-bar-fill{background:var(--brand-primary,#667eea);border-radius:2px;height:100%;transition:width .5s}.rb-test-steps-list{flex-direction:column;gap:0;display:flex}.rb-test-step{align-items:center;gap:.45rem;padding:.2rem 0;font-size:.78rem;line-height:1.3;display:flex}.rb-test-step--done{color:#aaa}.rb-test-step--active{color:#333;font-weight:600}.rb-test-step--pending{color:#ccc}.rb-test-step-icon{flex-shrink:0;justify-content:center;align-items:center;width:14px;display:flex}.rb-test-step-check{color:#4caf50;font-size:.75rem;font-weight:700}.rb-test-step-dot{color:#ccc;font-size:.7rem}.rb-test-step-spinner{border:2px solid var(--brand-primary,#667eea);border-top-color:#0000;border-radius:50%;width:10px;height:10px;animation:.7s linear infinite rb-spin;display:inline-block}@keyframes rb-spin{to{transform:rotate(360deg)}}@media (width<=768px){.rb-list-page,.rb-form-page{padding:1rem}.rb-list-header,.rb-form-header{flex-direction:column;align-items:flex-start;gap:.75rem}.rb-list-header h2,.rb-form-header h2{font-size:1.25rem}.rb-editor-left{max-width:100%}}.data-entry-container{background:#f5f5f5;min-height:100vh}@media (width<=768px){.data-entry-container{padding:1rem}}.profile-container{background:#f5f5f5;min-height:100vh}.profile-header{max-width:900px;margin-bottom:2rem;margin-left:auto;margin-right:auto}.profile-header h1{color:#333;margin:0;font-size:1.75rem}.profile-sections{grid-template-columns:1fr 1fr;gap:2rem;max-width:900px;margin:0 auto;display:grid}.profile-card{background:#fff;border-radius:10px;padding:2rem;box-shadow:0 2px 8px #0000001a}.profile-card h2{color:#333;margin:0 0 1.5rem;font-size:1.25rem}.profile-card form{flex-direction:column;gap:1rem;display:flex}.profile-card .form-label{color:#555;flex-direction:column;gap:.35rem;font-size:.85rem;font-weight:600;display:flex}.profile-card input,.profile-card select{border:1px solid #ddd;border-radius:5px;padding:.75rem;font-family:inherit;font-size:1rem;transition:border-color .3s}.profile-card input:focus,.profile-card select:focus{border-color:var(--brand-primary,#667eea);outline:none}.profile-card button[type=submit]{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));color:#fff;cursor:pointer;border:none;border-radius:5px;padding:.875rem;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.profile-card button[type=submit]:hover{transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.profile-card button[type=submit]:disabled{opacity:.7;cursor:not-allowed;transform:none}.profile-card .error-message{color:#c33;background:#fee;border-left:4px solid #dc3545;border-radius:5px;padding:.75rem;font-size:.875rem}.profile-card .success-message{color:#155724;background:#d4edda;border-left:4px solid #28a745;border-radius:5px;padding:.75rem;font-size:.875rem}.profile-help{color:#666;margin:0 0 1rem;font-size:.875rem}@media (width<=768px){.profile-sections{grid-template-columns:1fr}}.no-access-container{background:#f5f5f5;justify-content:center;align-items:center;min-height:100vh;padding:2rem;display:flex}.no-access-card{text-align:center;background:#fff;border-radius:10px;width:100%;max-width:400px;padding:3rem;box-shadow:0 2px 8px #0000001a}.no-access-icon{margin-bottom:1.5rem}.no-access-card h1{color:#333;margin:0 0 .75rem;font-size:1.75rem}.no-access-card p{color:#666;margin:0 0 2rem;font-size:1rem}.go-back-btn{background:var(--brand-gradient,linear-gradient(135deg, #667eea 0%, #764ba2 100%));color:#fff;cursor:pointer;border:none;border-radius:5px;padding:.75rem 2rem;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.go-back-btn:hover{transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.text-widget-view{height:100%;padding:16px;font-size:.95rem;line-height:1.6;overflow-y:auto}.text-widget-view h1,.text-widget-view h2,.text-widget-view h3{margin:.5em 0 .25em}.text-widget-view p{margin:.25em 0}.text-widget-view ul,.text-widget-view ol{margin:.25em 0;padding-left:1.5em}.text-widget-view img{border-radius:4px;max-width:100%}.text-widget-editor{flex-direction:column;height:100%;display:flex}.text-widget-toolbar{border-bottom:1px solid var(--border-color,#e5e7eb);background:var(--surface-subtle,#f9fafb);flex-wrap:wrap;gap:4px;padding:6px 8px;display:flex}.text-widget-toolbar button{border:1px solid var(--border-color,#d1d5db);cursor:pointer;background:#fff;border-radius:4px;padding:2px 8px;font-size:.8rem;font-weight:600;line-height:1.6}.text-widget-toolbar button:hover{background:var(--surface-hover,#f3f4f6)}.text-widget-toolbar button.active{background:var(--primary,#667eea);color:#fff;border-color:var(--primary,#667eea)}.text-widget-content{flex:1;padding:12px 16px;font-size:.95rem;line-height:1.6;overflow-y:auto}.text-widget-content .ProseMirror{outline:none;min-height:60px}.text-widget-content .ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:#9ca3af;pointer-events:none;float:left;height:0}.entity-data-widget{flex-direction:column;height:100%;display:flex}.entity-data-widget-header{border-bottom:1px solid var(--border-color,#e5e7eb);flex-shrink:0;padding:10px 14px 8px}.entity-data-widget-title{color:var(--text-primary,#111827);font-size:.9rem;font-weight:600}.entity-data-widget-body{flex:1;overflow:auto}.entity-data-widget-state{padding:16px 14px;font-size:.88rem}.entity-data-widget-state.muted{color:var(--text-muted,#9ca3af)}.entity-data-widget-table{border-collapse:collapse;width:100%;font-size:.85rem}.entity-data-widget-table th{text-align:left;color:var(--text-muted,#6b7280);border-bottom:1px solid var(--border-color,#e5e7eb);white-space:nowrap;padding:6px 14px;font-size:.8rem;font-weight:600}.entity-data-widget-table td{border-bottom:1px solid var(--border-color,#f3f4f6);white-space:nowrap;text-overflow:ellipsis;max-width:200px;padding:6px 14px;overflow:hidden}.entity-data-widget-table tr:last-child td{border-bottom:none}.entity-data-widget-table tr:hover td{background:var(--surface-hover,#f9fafb)}.entity-form-widget{height:100%;padding:12px 14px;overflow:auto}.entity-form-widget-title{color:var(--text-primary,#111827);margin-bottom:8px;font-size:.9rem;font-weight:600}.entity-form-widget-empty{color:var(--text-muted,#9ca3af);font-size:.88rem}.section-header-widget{border-bottom:2px solid var(--brand-primary,#667eea);align-items:center;height:100%;padding:0 14px;display:flex}.section-header-widget-title{color:var(--text-primary,#111827);text-transform:uppercase;letter-spacing:.03em;font-size:1rem;font-weight:700}.metric-widget{text-align:center;flex-direction:column;justify-content:center;align-items:center;height:100%;padding:12px;display:flex}.metric-widget-title{color:var(--text-muted,#6b7280);text-transform:uppercase;letter-spacing:.03em;margin-bottom:6px;font-size:.8rem;font-weight:600}.metric-widget-value{color:var(--text-primary,#111827);font-size:2rem;font-weight:700;line-height:1}.metric-widget-state{color:var(--text-muted,#9ca3af);font-size:.88rem}.chart-widget{flex-direction:column;height:100%;display:flex}.chart-widget-header{border-bottom:1px solid var(--border-color,#e5e7eb);flex-shrink:0;padding:10px 14px 8px}.chart-widget-title{color:var(--text-primary,#111827);font-size:.9rem;font-weight:600}.chart-widget-body{flex:1;min-height:0;padding:8px}.chart-widget-state{padding:16px 14px;font-size:.88rem}.chart-widget-state.muted{color:var(--text-muted,#9ca3af)}.dashboard-grid{align-items:start;gap:16px;width:100%;display:grid}.dashboard-widget{background:var(--card-bg,#fff);border:1px solid var(--border-color,#e5e7eb);border-radius:8px;flex-direction:column;height:100%;display:flex;overflow:hidden}.dashboard-form-message{border-radius:6px;margin-bottom:12px;padding:10px 14px;font-size:.88rem}.dashboard-form-message.success{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0}.dashboard-form-message.error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.dashboard-form-submit{background:var(--brand-primary,#667eea);color:#fff;border:none;border-radius:6px;margin-top:16px;padding:9px 20px;font-size:.9rem;font-weight:600}.dashboard-form-submit:disabled{opacity:.6;cursor:not-allowed}.dashboard-form-submit.secondary{color:#374151;border:1px solid var(--border-color,#d1d5db);background:#fff}.dashboard-wizard{max-width:640px;margin:0 auto}.dashboard-wizard-progress{color:var(--text-muted,#6b7280);text-transform:uppercase;letter-spacing:.03em;margin-bottom:12px;font-size:.8rem;font-weight:600}.dashboard-wizard-step{background:var(--card-bg,#fff);border:1px solid var(--border-color,#e5e7eb);border-radius:8px;min-height:120px;padding:20px}.dashboard-wizard-errors{color:#b91c1c;margin:12px 0 0;padding-left:1.2rem;font-size:.85rem}.dashboard-wizard-nav{justify-content:space-between;gap:12px;display:flex}.home-container{background:#f5f5f5;min-height:100vh}.home-welcome{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;padding:2.5rem 0 1.5rem;display:flex}.home-manage-btn{cursor:pointer;white-space:nowrap;color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:6px;margin-top:.4rem;padding:7px 14px;font-size:.85rem;font-weight:500}.home-manage-btn:hover{background:#f3f4f6}.home-welcome h1{color:#1a1a1a;margin:0 0 .4rem;font-size:2rem}.home-subtitle{color:#666;margin:0;font-size:1rem}.home-loading,.home-no-access{color:#888;margin-top:2rem;font-size:.95rem}.home-section{margin-bottom:2.5rem}.home-section-title{color:#555;text-transform:uppercase;letter-spacing:.05em;margin:0 0 1rem;font-size:1rem;font-weight:600}.home-cards{flex-wrap:wrap;gap:1rem;display:flex}.home-card{cursor:pointer;text-align:left;background:#fff;border:1px solid #e0e0e0;border-radius:12px;min-width:160px;padding:1.4rem 1.8rem;transition:box-shadow .15s,transform .1s,border-color .15s}.home-card:hover{border-color:var(--brand-primary,#667eea);transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.home-card-name{color:#1a1a1a;font-size:1rem;font-weight:600}@media (width<=768px){.home-welcome{padding:1.5rem 0 1rem}.home-welcome h1{font-size:1.5rem}.home-card{flex:100%;min-width:0}}.react-grid-layout{transition:height .2s;position:relative}.react-grid-item{transition:left .2s,top .2s,width .2s,height .2s}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{z-index:1;will-change:width, height;transition:none}.react-grid-item.react-draggable-dragging{z-index:3;will-change:transform;transition:none}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{opacity:.2;z-index:2;-webkit-user-select:none;user-select:none;background:red;transition-duration:.1s}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item>.react-resizable-handle{opacity:0;width:20px;height:20px;position:absolute}.react-grid-item:hover>.react-resizable-handle{opacity:1}.react-grid-item>.react-resizable-handle:after{content:"";border-bottom:2px solid #0006;border-right:2px solid #0006;width:5px;height:5px;position:absolute;bottom:3px;right:3px}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{cursor:sw-resize;bottom:0;left:0;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{cursor:se-resize;bottom:0;right:0}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{cursor:nw-resize;top:0;left:0;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{cursor:ne-resize;top:0;right:0;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{cursor:ew-resize;margin-top:-10px;top:50%}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{cursor:ns-resize;margin-left:-10px;left:50%}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.dashboard-editor{background:var(--bg,#f9fafb);flex-direction:column;height:100%;display:flex}.dashboard-editor-toolbar{border-bottom:1px solid var(--border-color,#e5e7eb);background:#fff;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:12px;padding:12px 16px;display:flex}.dashboard-editor-name{border:1px solid var(--border-color,#d1d5db);border-radius:6px;flex:1;min-width:160px;padding:6px 10px;font-size:1rem;font-weight:600}.dashboard-editor-mode-toggle{border:1px solid var(--border-color,#d1d5db);border-radius:6px;flex-shrink:0;display:flex;overflow:hidden}.dashboard-editor-mode-toggle button{color:#6b7280;cursor:pointer;background:#fff;border:none;padding:6px 12px;font-size:.82rem;font-weight:600}.dashboard-editor-mode-toggle button+button{border-left:1px solid var(--border-color,#d1d5db)}.dashboard-editor-mode-toggle button.active{color:#fff;background:#667eea}.dashboard-editor-mode-toggle button:disabled{cursor:not-allowed;opacity:.5}.dashboard-editor-wizard-toggle{color:#374151;white-space:nowrap;align-items:center;gap:6px;font-size:.85rem;display:flex}.dashboard-editor-entity-type{border:1px solid var(--border-color,#d1d5db);border-radius:6px;min-width:180px;padding:6px 10px;font-size:.9rem}.dashboard-editor-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.editor-error{color:#dc2626;font-size:.85rem}.add-widget-dropdown{position:relative}.add-widget-dropdown:hover .add-widget-menu,.add-widget-dropdown:focus-within .add-widget-menu{display:block}.add-widget-menu{z-index:100;border:1px solid var(--border-color,#e5e7eb);background:#fff;border-radius:6px;min-width:160px;padding:4px 0;display:none;position:absolute;top:100%;left:0;box-shadow:0 4px 12px #0000001a}.add-widget-menu button{text-align:left;cursor:pointer;background:0 0;border:none;width:100%;padding:8px 14px;font-size:.9rem;display:block}.add-widget-menu button:hover{background:var(--surface-hover,#f3f4f6)}.dashboard-editor-body{flex:1;display:flex;overflow:hidden}.dashboard-editor-canvas{flex:1;padding:16px;overflow-y:auto}.dashboard-editor-empty{text-align:center;color:var(--text-muted,#9ca3af);padding:48px 16px;font-size:.95rem}.editor-widget{border:2px solid var(--border-color,#e5e7eb);background:#fff;border-radius:8px;flex-direction:column;display:flex;overflow:hidden}.editor-widget.editing{border-color:var(--primary,#667eea)}.editor-widget-bar{background:var(--surface-subtle,#f9fafb);border-bottom:1px solid var(--border-color,#e5e7eb);flex-shrink:0;align-items:center;gap:6px;padding:4px 8px;display:flex}.widget-drag-handle{cursor:grab;color:var(--text-muted,#9ca3af);-webkit-user-select:none;user-select:none;padding:0 2px;font-size:1.1rem}.widget-drag-handle:active{cursor:grabbing}.widget-type-label{color:var(--text-muted,#6b7280);text-transform:uppercase;letter-spacing:.04em;flex:1;font-size:.75rem;font-weight:600}.widget-edit-btn,.widget-remove-btn{cursor:pointer;color:var(--text-muted,#6b7280);background:0 0;border:none;border-radius:4px;padding:2px 5px;font-size:.95rem}.widget-edit-btn:hover{background:var(--surface-hover,#f3f4f6);color:var(--primary,#667eea)}.widget-remove-btn:hover{color:#dc2626;background:#fee2e2}.editor-widget-preview{pointer-events:none;flex:1;overflow:hidden}.dashboard-editor-sidebar{border-left:1px solid var(--border-color,#e5e7eb);background:#fff;flex-direction:column;flex-shrink:0;width:320px;display:flex;overflow:hidden}.sidebar-header{border-bottom:1px solid var(--border-color,#e5e7eb);flex-shrink:0;justify-content:space-between;align-items:center;padding:10px 14px;font-size:.9rem;font-weight:600;display:flex}.sidebar-header button{cursor:pointer;color:var(--text-muted,#6b7280);background:0 0;border:none;font-size:1.2rem;line-height:1}.widget-config-form{flex-direction:column;gap:6px;padding:12px 14px;display:flex;overflow-y:auto}.widget-config-form label{color:var(--text-muted,#6b7280);margin-top:6px;font-size:.8rem;font-weight:600}.widget-config-form label:first-child{margin-top:0}.widget-config-form input[type=text],.widget-config-form select{border:1px solid var(--border-color,#d1d5db);border-radius:5px;width:100%;padding:6px 8px;font-size:.88rem}.widget-config-hint{color:var(--text-muted,#9ca3af);margin:0;font-size:.82rem}.field-checkboxes{flex-direction:column;gap:4px;display:flex}.field-checkbox{cursor:pointer;align-items:center;gap:6px;font-size:.85rem;display:flex;color:var(--text-primary,#111827)!important;margin-top:0!important;font-weight:400!important}.sort-row{gap:8px;display:flex}.field-visibility-list{flex-direction:column;gap:10px;display:flex}.field-visibility-row{border:1px solid var(--border-color,#e5e7eb);border-radius:6px;flex-direction:column;gap:4px;padding:8px;display:flex}.field-visibility-row select,.field-visibility-row input[type=text]{border:1px solid var(--border-color,#d1d5db);border-radius:5px;width:100%;padding:5px 7px;font-size:.84rem}.field-visibility-label{color:var(--text-primary,#111827);font-size:.82rem;font-weight:600}.field-visibility-warning{color:#b45309}.widget-config-section{border-top:1px solid var(--border-color,#e5e7eb);margin-top:4px;padding-top:10px}.sort-row select{flex:1}.btn-primary{background:var(--primary,#667eea);color:#fff;cursor:pointer;border:none;border-radius:6px;padding:7px 16px;font-size:.88rem;font-weight:600}.btn-primary:hover:not(:disabled){opacity:.9}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{color:var(--text-primary,#374151);border:1px solid var(--border-color,#d1d5db);cursor:pointer;background:#fff;border-radius:6px;padding:7px 14px;font-size:.88rem;font-weight:500}.btn-secondary:hover{background:var(--surface-hover,#f9fafb)}.dashboards-tab{padding:1.5rem 0}.dashboards-tab-header{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.dashboards-tab-header h2{margin:0;font-size:1.2rem}.dashboards-tab-header-actions{gap:8px;display:flex}.btn-secondary-sm{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:7px 14px;font-size:.85rem;font-weight:600}.btn-secondary-sm:hover{background:#f9fafb}.dashboards-tab-muted{color:#888;font-size:.95rem}.dashboards-table{border-collapse:collapse;width:100%;font-size:.9rem}.dashboards-table th{text-align:left;color:#6b7280;text-transform:uppercase;letter-spacing:.04em;border-bottom:2px solid #e5e7eb;padding:8px 12px;font-size:.82rem;font-weight:600}.dashboards-table td{vertical-align:middle;border-bottom:1px solid #f3f4f6;padding:10px 12px}.dashboards-table tr:hover td{background:#fafafa}.dashboard-name-cell{align-items:center;gap:8px;font-weight:500;display:flex}.home-badge{color:#1d4ed8;white-space:nowrap;background:#dbeafe;border-radius:10px;padding:2px 7px;font-size:.72rem;font-weight:600}.dashboard-date-cell{color:#6b7280;font-size:.85rem}.dashboard-actions-cell{justify-content:flex-end;gap:6px;display:flex}.btn-primary-sm{color:#fff;cursor:pointer;background:#667eea;border:none;border-radius:6px;padding:7px 14px;font-size:.85rem;font-weight:600}.btn-primary-sm:hover{opacity:.9}.btn-set-home{color:#374151;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #d1d5db;border-radius:5px;padding:4px 10px;font-size:.82rem}.btn-set-home:hover{background:#f3f4f6}.btn-unset-home{color:#1d4ed8;cursor:pointer;white-space:nowrap;background:#eff6ff;border:1px solid #bfdbfe;border-radius:5px;padding:4px 10px;font-size:.82rem}.btn-unset-home:hover{background:#dbeafe}.btn-edit-sm{cursor:pointer;color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:5px;padding:4px 10px;font-size:.82rem}.btn-edit-sm:hover{background:#f3f4f6}.btn-delete-sm{cursor:pointer;color:#dc2626;background:#fff;border:1px solid #fca5a5;border-radius:5px;padding:4px 10px;font-size:.82rem}.btn-delete-sm:hover{background:#fee2e2}.forms-hub-container{background:var(--bg,#f9fafb);min-height:100vh}.forms-hub-title{margin:1.5rem 0 1rem;font-size:1.4rem}.forms-hub-muted{color:#888;font-size:.95rem}.forms-hub-grid{flex-wrap:wrap;gap:1rem;display:flex}.forms-hub-card{cursor:pointer;text-align:left;background:#fff;border:1px solid #e0e0e0;border-radius:12px;min-width:160px;padding:1.4rem 1.8rem;transition:box-shadow .15s,transform .1s,border-color .15s}.forms-hub-card:hover{border-color:var(--brand-primary,#667eea);transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.forms-hub-card-name{color:#1a1a1a;font-size:1rem;font-weight:600}.forms-hub-back{color:var(--brand-primary,#667eea);cursor:pointer;background:0 0;border:none;margin-top:1rem;padding:0;font-size:.9rem;font-weight:600}
