.App{text-align:center}.App-logo{height:40vmin;pointer-events:none}@media(prefers-reduced-motion:no-preference){.App-logo{animation:App-logo-spin infinite 20s linear}}.App-header{background-color:#282c34;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:calc(10px + 2vmin);color:#fff}.App-link{color:#61dafb}@keyframes App-logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--primary: #7A1F2B;--primary-dark: #5C1620;--sidebar-bg: #1F2430;--sidebar-link: #cbd5e1;--sidebar-link-hover: #2A2F3D;--body-bg: #F6F5F4;--card-bg: #ffffff;--border-color: #e5e7eb;--text-dark: #111827;--text-muted: #6b7280}:root{--bs-primary: #7A1F2B;--bs-primary-rgb: 122, 31, 43;--bs-link-color: #7A1F2B;--bs-link-color-rgb: 122, 31, 43;--bs-link-hover-color: #5C1620;--bs-link-hover-color-rgb: 92, 22, 32;--bs-dropdown-link-active-bg: #7A1F2B;--bs-list-group-active-bg: #7A1F2B;--bs-list-group-active-border-color: #7A1F2B;--bs-nav-pills-link-active-bg: #7A1F2B;--bs-pagination-active-bg: #7A1F2B;--bs-pagination-active-border-color: #7A1F2B;--bs-progress-bar-bg: #7A1F2B}.btn-primary{--bs-btn-color: #fff;--bs-btn-bg: #7A1F2B;--bs-btn-border-color: #7A1F2B;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #5C1620;--bs-btn-hover-border-color: #5C1620;--bs-btn-focus-shadow-rgb: 122, 31, 43;--bs-btn-active-color: #fff;--bs-btn-active-bg: #431016;--bs-btn-active-border-color: #431016;--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #7A1F2B;--bs-btn-disabled-border-color: #7A1F2B}.btn-outline-primary{--bs-btn-color: #7A1F2B;--bs-btn-border-color: #7A1F2B;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #7A1F2B;--bs-btn-hover-border-color: #7A1F2B;--bs-btn-focus-shadow-rgb: 122, 31, 43;--bs-btn-active-color: #fff;--bs-btn-active-bg: #7A1F2B;--bs-btn-active-border-color: #7A1F2B;--bs-btn-disabled-color: #7A1F2B;--bs-btn-disabled-border-color: #7A1F2B}.form-check-input:checked{background-color:#7a1f2b;border-color:#7a1f2b}.form-range::-webkit-slider-thumb{background-color:#7a1f2b}.form-range::-moz-range-thumb{background-color:#7a1f2b}.form-control:focus,.form-select:focus{border-color:#9a3b47;box-shadow:0 0 0 .25rem #7a1f2b40}body{margin:0;background:var(--body-bg);font-family:Segoe UI,Arial,sans-serif;color:var(--text-dark)}a{text-decoration:none}.auth-page{min-height:100vh;background:linear-gradient(135deg,#f3e3e5,#fbf3f4);display:flex;align-items:center;justify-content:center;padding:24px}.auth-card{width:980px;max-width:100%;min-height:560px;border-radius:24px;overflow:hidden;background:#fff;display:grid;grid-template-columns:1fr 1fr}.auth-left{background:linear-gradient(135deg,#3d0f16,#7a1f2b);color:#fff;padding:56px 44px;display:flex;flex-direction:column;justify-content:center}.auth-left h2{font-weight:700;margin-top:24px}.auth-left p{opacity:.9;line-height:1.7;margin-top:16px}.auth-right{padding:56px 44px;display:flex;flex-direction:column;justify-content:center}.auth-logo{width:64px;height:64px;border-radius:20px;background:#ffffff29;color:#fff;display:flex;align-items:center;justify-content:center;font-size:32px}.auth-right .auth-logo,.register-card .auth-logo{background:#7a1f2b}.register-card{width:720px;max-width:100%;background:#fff;padding:40px;border-radius:24px}.app-shell{min-height:100vh;display:flex}.sidebar{width:270px;background:var(--sidebar-bg);color:#fff;position:fixed;left:0;top:0;bottom:0;padding:22px 16px;z-index:1000}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:6px 8px 26px;border-bottom:1px solid rgba(255,255,255,.08)}.sidebar-brand h5{margin:0;font-weight:700}.sidebar-brand small{color:#475569}.brand-icon{width:44px;height:44px;background:#7a1f2b;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:20px}.sidebar-menu{margin-top:22px}.sidebar-link{color:var(--sidebar-link);display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:12px;margin-bottom:6px;transition:all .2s ease;font-size:15px}.sidebar-link:hover{background:var(--sidebar-link-hover);color:#fff}.sidebar-link.active{background:var(--primary);color:#fff}.main-area{margin-left:270px;width:calc(100% - 270px);min-height:100vh}.top-navbar{height:72px;background:#fff;border-bottom:1px solid var(--border-color);padding:0 28px;display:flex;justify-content:space-between;align-items:center;position:-webkit-sticky;position:sticky;top:0;z-index:900}.user-avatar{width:28px;height:28px;background:#f3e3e5;color:#5c1620;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.page-content{padding:28px}.page-header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:24px}.page-header h4{margin:0;font-weight:700}.page-header p{margin:4px 0 0;color:var(--text-muted)}.content-card{background:var(--card-bg);border:1px solid var(--border-color);border-radius:18px;padding:24px;box-shadow:0 6px 18px #0f172a0a}.stat-card{background:#fff;border-radius:18px;padding:24px;border:1px solid var(--border-color);box-shadow:0 6px 18px #0f172a0a;display:flex;justify-content:space-between;align-items:center;min-height:132px}.stat-card p{margin:0;color:var(--text-muted);font-size:14px}.stat-card h3{margin:10px 0 0;font-weight:800}.stat-icon{width:56px;height:56px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:26px;background:#fbf3f4;color:#7a1f2b}.stat-card.success .stat-icon{background:#dcfce7;color:#16a34a}.stat-card.warning .stat-icon{background:#fef3c7;color:#d97706}.stat-card.danger .stat-icon{background:#fee2e2;color:#dc2626}.stat-card.info .stat-icon{background:#e0f2fe;color:#0284c7}.stat-card.purple .stat-icon{background:#ede9fe;color:#7c3aed}.mini-module{border:1px solid var(--border-color);padding:18px;border-radius:16px;display:flex;gap:14px;align-items:flex-start;height:100%}.mini-module i{font-size:24px;color:var(--primary)}.mini-module p{margin:4px 0 0;color:var(--text-muted);font-size:14px}.full-page-loader{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center}.unauthorized-page{max-width:680px;margin:60px auto}@media(max-width:992px){.sidebar{width:230px}.main-area{margin-left:230px;width:calc(100% - 230px)}.auth-card{grid-template-columns:1fr}.auth-left{display:none}}@media(max-width:768px){.sidebar{position:static;width:100%;height:auto}.app-shell{flex-direction:column}.main-area{margin-left:0;width:100%}.top-navbar{padding:0 16px}.page-content{padding:18px}.page-header{flex-direction:column;align-items:flex-start}.register-card,.auth-right{padding:28px}}.user-toggle-btn{width:78px;height:34px;border:none;border-radius:999px;padding:4px;display:inline-flex;align-items:center;position:relative;cursor:pointer;transition:all .2s ease;font-size:12px;font-weight:700}.user-toggle-btn:disabled{opacity:.7;cursor:not-allowed}.user-toggle-btn .toggle-circle{width:26px;height:26px;background:#fff;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;transition:all .2s ease;box-shadow:0 2px 6px #0f172a40}.user-toggle-btn .toggle-text{position:absolute;top:8px;letter-spacing:.4px}.user-toggle-btn.active{background:#16a34a;color:#fff;justify-content:flex-end}.user-toggle-btn.active .toggle-text{left:12px}.user-toggle-btn.inactive{background:#475569;color:#fff;justify-content:flex-start}.user-toggle-btn.inactive .toggle-text{right:10px}.user-toggle-btn .spinner-border-sm{width:14px;height:14px;color:#7a1f2b}.case-table th{white-space:nowrap;font-size:13px}.case-table td{font-size:14px}.comment-cell{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.comment-timeline{position:relative;padding-left:18px}.comment-item{position:relative;padding-left:22px;padding-bottom:20px;border-left:2px solid #e5e7eb}.comment-item:last-child{padding-bottom:0}.comment-dot{position:absolute;left:-7px;top:3px;width:12px;height:12px;border-radius:50%;background-color:#7a1f2b;border:2px solid #ffffff;box-shadow:0 0 0 2px #f3e3e5}.dashboard-row{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--border-color);border-radius:12px;padding:10px 12px;margin-bottom:10px;background:#f8fafc}.case-table th,.daily-sheet-table th{white-space:nowrap;font-size:13px}.case-table td,.daily-sheet-table td{font-size:14px;vertical-align:middle}.daily-sheet-table thead th{background:#f3e3e5}.comment-cell{max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.case-status-badge{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;color:#111827;border:1px solid rgba(15,23,42,.08)}.case-info-box{border:1px solid var(--border-color);border-radius:14px;padding:14px;background:#f8fafc;min-height:82px}.case-info-box span{display:block;font-size:12px;color:var(--text-muted);margin-bottom:6px}.case-info-box strong{font-size:15px}.case-status-summary p{margin:0 0 6px;color:var(--text-muted);font-size:13px}.comment-timeline,.activity-timeline{position:relative;padding-left:18px}.comment-item,.activity-item{position:relative;padding-left:22px;padding-bottom:20px;border-left:2px solid #e5e7eb}.comment-item:last-child,.activity-item:last-child{padding-bottom:0}.comment-dot,.activity-dot{position:absolute;left:-7px;top:3px;width:12px;height:12px;border-radius:50%;background-color:#7a1f2b;border:2px solid #ffffff;box-shadow:0 0 0 2px #f3e3e5}.case-inline-controls{min-width:360px;display:flex;gap:8px;align-items:center}.case-inline-controls .form-select{width:135px}.quick-comment{display:flex;gap:6px;min-width:210px}.quick-comment input{min-width:145px}.sidebar{width:270px;transition:width .25s ease}.sidebar.collapsed{width:82px}.sidebar.collapsed .sidebar-brand{justify-content:center;padding-left:0;padding-right:0}.sidebar.collapsed .brand-icon{margin:0 auto}.sidebar.collapsed .sidebar-link{justify-content:center;padding-left:0;padding-right:0}.sidebar.collapsed .sidebar-link i{font-size:20px}.sidebar-collapse-btn{margin-left:auto;width:30px;height:30px;border:0;border-radius:10px;background:#ffffff1f;color:#fff;display:inline-flex;align-items:center;justify-content:center}.sidebar-collapse-btn:hover{background:#fff3}.sidebar.collapsed .sidebar-collapse-btn{position:absolute;right:-14px;top:28px;background:#7a1f2b;box-shadow:0 4px 10px #0f172a40}.sidebar-brand{position:relative}.sidebar-collapsed .main-area{margin-left:82px;width:calc(100% - 82px);transition:all .25s ease}.main-area{transition:all .25s ease}.sidebar-top-toggle{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center}.master-tab-card{padding:14px}.master-tab{width:100%;border:0;background:transparent;color:#334155;display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:12px;margin-bottom:6px;font-size:14px;text-align:left;transition:all .2s ease}.master-tab i{font-size:18px;color:#7a1f2b}.master-tab:hover{background:#fbf3f4}.master-tab.active{background:#7a1f2b;color:#fff}.master-tab.active i{color:#fff}@media(max-width:768px){.sidebar,.sidebar.collapsed{position:static;width:100%;height:auto}.sidebar.collapsed .brand-text{display:block}.sidebar.collapsed .sidebar-link{justify-content:flex-start;padding:13px 14px}.sidebar-collapsed .main-area,.main-area{margin-left:0;width:100%}.sidebar-collapse-btn{display:none}}.master-horizontal-tabs-card{padding:14px}.master-horizontal-tabs{display:flex;gap:12px;overflow-x:auto;padding-bottom:4px}.master-horizontal-tabs::-webkit-scrollbar{height:6px}.master-horizontal-tabs::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}.master-horizontal-tab{min-width:210px;border:1px solid #e5e7eb;background:#fff;color:#334155;display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;text-align:left;transition:all .2s ease;flex-shrink:0}.master-horizontal-tab:hover{border-color:#d9a8ae;background:#fbf3f4}.master-horizontal-tab.active{background:linear-gradient(135deg,#5c1620,#7a1f2b);border-color:#7a1f2b;color:#fff;box-shadow:0 10px 22px #2563eb38}.master-tab-icon{width:42px;height:42px;border-radius:14px;background:#fbf3f4;color:#7a1f2b;display:inline-flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}.master-horizontal-tab.active .master-tab-icon{background:#ffffff2e;color:#fff}.master-tab-content{display:flex;flex-direction:column;gap:3px}.master-tab-content strong{font-size:14px;line-height:1.2}.master-tab-content small{color:#334155;font-size:11px;line-height:1.25}.master-horizontal-tab.active .master-tab-content small{color:#ffffffc7}.master-summary-strip{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:14px}.master-summary-box{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px 18px;box-shadow:0 6px 18px #0f172a0a}.master-summary-box span{display:block;color:#334155;font-size:12px;margin-bottom:6px}.master-summary-box strong{font-size:20px}.master-form-card{border-top:4px solid #7A1F2B}.master-section-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:22px}.master-section-heading h5{font-weight:700}.master-section-heading p{color:#334155;margin-bottom:0}.master-list-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.master-table th{white-space:nowrap;font-size:13px}.master-table td{font-size:14px}.master-color-preview{width:22px;height:22px;border-radius:8px;border:1px solid #cbd5e1;display:inline-block}.form-control-color{height:38px}.master-tab-card{display:none}@media(max-width:1200px){.master-summary-strip{grid-template-columns:repeat(2,1fr)}.master-horizontal-tab{min-width:195px}}@media(max-width:768px){.master-summary-strip{grid-template-columns:1fr}.master-horizontal-tab{min-width:185px}.master-section-heading,.master-list-header{flex-direction:column}}.owner-control-banner{background:linear-gradient(135deg,#5c1620,#7a1f2b);border-radius:18px;color:#fff;padding:22px 24px;display:flex;justify-content:space-between;gap:18px;align-items:center;box-shadow:0 12px 28px #2563eb38}.owner-control-banner h5{margin-bottom:6px;font-weight:700}.owner-control-banner p{color:#ffffffd1}.owner-kpi-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;display:flex;justify-content:space-between;align-items:center;min-height:112px;box-shadow:0 8px 22px #0f172a0d}.owner-kpi-card span{display:block;font-size:13px;color:#334155;margin-bottom:8px}.owner-kpi-card strong{font-size:30px;line-height:1;color:#0f172a}.owner-kpi-card i{width:48px;height:48px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;font-size:23px}.owner-kpi-primary i{background:#f3e3e5;color:#7a1f2b}.owner-kpi-warning i{background:#fef3c7;color:#d97706}.owner-kpi-success i{background:#dcfce7;color:#16a34a}.owner-kpi-danger i{background:#fee2e2;color:#dc2626}.owner-kpi-purple i{background:#ede9fe;color:#7c3aed}.owner-kpi-secondary i{background:#f1f5f9;color:#475569}.owner-alert-row{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid #f1f5f9}.owner-alert-row:last-child{border-bottom:0}.owner-alert-row span:last-child{color:#334155;font-size:14px}.ai-summary-box{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:16px;white-space:pre-line;color:#0f172a;line-height:1.65;max-height:520px;overflow-y:auto}.owner-share-placeholder{background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:12px;padding:10px 12px;font-size:13px}@media(max-width:768px){.owner-control-banner{flex-direction:column;align-items:flex-start}}.owner-control-tabs .nav-link{border-radius:12px;font-weight:600}.owner-action-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.owner-action-table th{white-space:nowrap;font-size:13px}.owner-action-table td{font-size:14px;vertical-align:top}.owner-action-risk-cell{min-width:240px;color:#475569}@media(max-width:992px){.owner-action-header{flex-direction:column}}.user-summary-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.user-summary-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px 18px;box-shadow:0 6px 18px #0f172a0a}.user-summary-card span{display:block;color:#334155;font-size:12px;margin-bottom:6px}.user-summary-card strong{font-size:20px}.user-filter-card{border-top:4px solid #7A1F2B}.user-table th{white-space:nowrap;font-size:13px}.user-table td{font-size:14px;vertical-align:middle}.user-list-avatar{width:36px;height:36px;border-radius:12px;background:#f3e3e5;color:#5c1620;display:inline-flex;align-items:center;justify-content:center;font-weight:700}@media(max-width:992px){.user-summary-strip{grid-template-columns:repeat(2,1fr)}}@media(max-width:576px){.user-summary-strip{grid-template-columns:1fr}}.billing-table th{white-space:nowrap;font-size:13px}.billing-table td{font-size:14px;vertical-align:middle}.invoice-item-row{border:1px solid #e5e7eb;border-radius:14px;padding:14px;margin-bottom:14px;background:#f8fafc}.invoice-summary-row strong{color:#0f172a}.invoice-summary-total{background:#f3e3e5;border-radius:12px;padding:14px;border-bottom:0;margin-top:8px}.invoice-info-box{border:1px solid #e5e7eb;border-radius:14px;padding:16px;background:#f8fafc;min-height:160px}.invoice-info-box span{display:block;color:#334155;font-size:13px;margin-bottom:8px}.invoice-info-box strong{display:block;margin-bottom:8px;color:#0f172a}.invoice-info-box p{margin-bottom:4px;color:#475569}@media(max-width:992px){.invoice-summary-card{position:static}}.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.dashboard-stat-card{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:20px;box-shadow:0 10px 24px #0f172a0f}.dashboard-stat-icon{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.dashboard-stat-icon i{font-size:24px}.dashboard-stat-card p{margin-bottom:4px;color:#334155;font-size:13px;font-weight:600}.dashboard-stat-card h4{margin-bottom:2px;color:#0f172a;font-size:24px;font-weight:800}.dashboard-stat-card span{color:#475569;font-size:12px}.dashboard-card-primary .dashboard-stat-icon{background:#f3e3e5;color:#5c1620}.dashboard-card-success .dashboard-stat-icon{background:#dcfce7;color:#16a34a}.dashboard-card-warning .dashboard-stat-icon{background:#fef3c7;color:#d97706}.dashboard-card-danger .dashboard-stat-icon{background:#fee2e2;color:#dc2626}.dashboard-card-info .dashboard-stat-icon{background:#e0f2fe;color:#0284c7}.dashboard-card-dark .dashboard-stat-icon{background:#e2e8f0;color:#334155}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-heading h5{margin-bottom:4px;font-weight:800;color:#0f172a}.section-heading p{margin-bottom:0;color:#334155}.dashboard-progress-row{margin-bottom:18px}.dashboard-progress-row span{color:#475569;font-weight:600}.dashboard-progress{height:9px;background:#e5e7eb;border-radius:999px;overflow:hidden}.dashboard-progress .progress-bar{border-radius:999px;background-color:#7a1f2b}.empty-state{text-align:center;padding:40px 20px;color:#475569}.empty-state i{font-size:38px;display:block;margin-bottom:10px}.empty-state p{margin-bottom:0}.billing-mini-card{border:1px solid #e5e7eb;border-radius:16px;padding:18px;background:#f8fafc}.billing-mini-card span{display:block;color:#334155;font-size:13px;font-weight:600;margin-bottom:8px}.billing-mini-card strong{display:block;color:#0f172a;font-size:22px;font-weight:800}@media(max-width:1200px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:576px){.dashboard-grid{grid-template-columns:1fr}.dashboard-stat-card{padding:16px}.dashboard-stat-card h4{font-size:21px}}.invoice-items-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.invoice-preset-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.invoice-items-table{display:flex;flex-direction:column;gap:12px}.invoice-items-table-head{display:grid;grid-template-columns:minmax(240px,1.8fr) minmax(110px,.7fr) minmax(70px,.45fr) minmax(120px,.7fr) minmax(140px,.8fr) 52px;gap:12px;padding:0 14px;color:#334155;font-size:13px;font-weight:700}.invoice-items-table-row{display:grid;grid-template-columns:minmax(240px,1.8fr) minmax(110px,.7fr) minmax(70px,.45fr) minmax(120px,.7fr) minmax(140px,.8fr) 52px;gap:12px;align-items:end;border:1px solid #e5e7eb;border-radius:18px;padding:14px;background:#f8fafc}.invoice-field label{display:none;margin-bottom:6px;color:#475569;font-size:13px;font-weight:700}.invoice-line-total{width:100%;min-height:38px;padding:8px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;color:#0f172a;font-weight:700;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invoice-delete-cell{display:flex;justify-content:center;align-items:center}.invoice-delete-cell .btn{width:42px;height:38px;padding:0;display:inline-flex;align-items:center;justify-content:center}.selected-case-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;border:1px solid #E3C4C8;border-radius:16px;background:#fbf3f4}.selected-case-preview span{display:block;color:#334155;font-size:12px;font-weight:700;margin-bottom:4px}.selected-case-preview strong{display:block;color:#0f172a;font-size:14px}.invoice-summary-card{position:-webkit-sticky;position:sticky;top:90px}.invoice-summary-row{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #e5e7eb}.invoice-summary-row span{color:#334155}.invoice-summary-row strong{color:#0f172a;white-space:nowrap}.invoice-summary-total{background:#f3e3e5;border-radius:14px;padding:16px;border-bottom:0;margin-top:10px}.invoice-summary-total span,.invoice-summary-total strong{color:#5c1620;font-size:18px}@media(max-width:1200px){.invoice-summary-card{position:static}}@media(max-width:992px){.invoice-items-header{flex-direction:column}.invoice-items-table-head{display:none}.invoice-items-table-row{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-field label{display:block}.invoice-delete-cell{justify-content:flex-start}.selected-case-preview{grid-template-columns:1fr}}@media(max-width:576px){.invoice-items-table-row{grid-template-columns:1fr}.invoice-line-total{text-align:left}.invoice-delete-cell .btn{width:100%}}.invoice-details-page .invoice-summary-card{position:static!important}.invoice-document-card,.invoice-action-card,.invoice-amount-card,.invoice-side-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 10px 28px #0f172a0f}.invoice-document-card{padding:26px}.invoice-document-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding-bottom:22px;border-bottom:1px solid #e5e7eb;margin-bottom:22px}.invoice-document-header h4{margin:4px 0 6px;color:#0f172a;font-weight:800}.invoice-document-header p{margin-bottom:0;color:#334155}.invoice-label{display:block;color:#334155;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.invoice-status-group{display:flex;flex-direction:column;gap:8px;align-items:flex-end}.invoice-basic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}.invoice-info-box{border:1px solid #e5e7eb;border-radius:18px;padding:18px;background:#f8fafc;min-height:170px}.invoice-info-box span{display:block;color:#334155;font-size:13px;font-weight:700;margin-bottom:8px}.invoice-info-box strong{display:block;color:#0f172a;font-weight:800;margin-bottom:8px}.invoice-info-box p{color:#475569;margin-bottom:5px}.invoice-section-title{margin-bottom:12px}.invoice-section-title h5{margin-bottom:0;color:#0f172a;font-weight:800}.invoice-item-details-table{border:1px solid #e5e7eb;border-radius:16px;overflow:hidden}.invoice-item-details-table thead th{background:#f1f5f9;color:#475569;font-size:13px;font-weight:800;border-bottom:1px solid #e5e7eb}.invoice-item-details-table tbody td{color:#334155;border-bottom:1px solid #f1f5f9}.invoice-notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}.invoice-notes-grid div{border:1px solid #e5e7eb;border-radius:16px;background:#f8fafc;padding:16px}.invoice-notes-grid span{display:block;color:#334155;font-size:13px;font-weight:800;margin-bottom:8px}.invoice-notes-grid p{margin-bottom:0;color:#475569}.invoice-side-stack{display:flex;flex-direction:column;gap:18px}.invoice-action-card,.invoice-amount-card,.invoice-side-card{padding:22px}.invoice-action-card h5,.invoice-amount-card h5,.invoice-side-card h5{margin-bottom:16px;color:#0f172a;font-weight:800}.invoice-side-card p{font-size:14px;margin-bottom:16px}.invoice-amount-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid #e5e7eb}.invoice-amount-row span{color:#334155;font-weight:600}.invoice-amount-row strong{color:#0f172a;font-weight:800;white-space:nowrap}.invoice-amount-row.no-border{border-bottom:0}.invoice-total-box{display:flex;justify-content:space-between;align-items:center;gap:14px;background:linear-gradient(135deg,#f3e3e5,#fbf3f4);border:1px solid #E3C4C8;border-radius:18px;padding:18px;margin:16px 0}.invoice-total-box span{color:#5c1620;font-weight:800}.invoice-total-box strong{color:#5c1620;font-size:24px;font-weight:900;white-space:nowrap}.invoice-payment-progress{border:1px solid #e5e7eb;border-radius:16px;background:#f8fafc;padding:14px;margin-bottom:8px}.invoice-payment-progress span{color:#334155;font-size:13px;font-weight:700}.invoice-payment-progress strong{color:#0f172a;font-size:13px}.invoice-payment-progress .progress{height:9px;border-radius:999px;background:#e5e7eb;overflow:hidden}.invoice-payment-progress .progress-bar{border-radius:999px}@media(max-width:1200px){.invoice-side-stack{margin-top:0}}@media(max-width:992px){.invoice-document-header{flex-direction:column}.invoice-status-group{align-items:flex-start;flex-direction:row;flex-wrap:wrap}.invoice-basic-grid,.invoice-notes-grid{grid-template-columns:1fr}.invoice-document-card{padding:20px}}@media(max-width:576px){.invoice-total-box{flex-direction:column;align-items:flex-start}.invoice-total-box strong{font-size:22px}.invoice-amount-row{align-items:flex-start;flex-direction:column;gap:4px}.page-header .d-flex{width:100%;flex-direction:column}.page-header .btn{width:100%}}.customer-search-wrapper{position:relative}.customer-search-input-group{display:flex;gap:8px}.customer-search-input-group .form-control{min-height:44px}.customer-search-dropdown{position:absolute;top:82px;left:0;right:0;z-index:1050;background:#fff;border:1px solid #dbe3ef;border-radius:16px;box-shadow:0 18px 40px #0f172a29;overflow:hidden;max-height:320px;overflow-y:auto}.customer-search-state{padding:16px;color:#334155;font-size:14px}.customer-search-option{width:100%;border:0;background:#fff;text-align:left;padding:14px 16px;display:flex;justify-content:space-between;gap:14px;align-items:center;border-bottom:1px solid #f1f5f9;cursor:pointer}.customer-search-option:hover{background:#fbf3f4}.customer-search-option strong{display:block;color:#0f172a;font-weight:800;margin-bottom:4px}.customer-search-option span{display:block;color:#334155;font-size:13px;line-height:1.4}.customer-search-option i{color:#7a1f2b;font-size:18px}.selected-customer-card{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;border:1px solid #E3C4C8;background:#fbf3f4;border-radius:18px;padding:16px}.selected-customer-card span{display:block;color:#334155;font-size:12px;font-weight:800;margin-bottom:5px}.selected-customer-card strong{display:block;color:#0f172a;font-size:14px;word-break:break-word}.create-case-side-card{position:-webkit-sticky;position:sticky;top:90px}.case-summary-line{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #e5e7eb}.case-summary-line span{color:#334155;font-weight:600}.case-summary-line strong{color:#0f172a;text-align:right;word-break:break-word}.case-help-box{border:1px solid #F3E3E5;background:#fbf3f4;border-radius:14px;padding:14px}.case-help-box strong{display:block;color:#5c1620;margin-bottom:6px}.case-help-box p{margin-bottom:0;color:#475569;font-size:13px}@media(max-width:1200px){.create-case-side-card{position:static}.selected-customer-card{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:576px){.customer-search-input-group{flex-direction:column}.customer-search-dropdown{top:118px}.selected-customer-card{grid-template-columns:1fr}.case-summary-line{flex-direction:column;gap:4px}.case-summary-line strong{text-align:left}}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}html{font-size:17.5px}html,body,#root{min-height:100%}body{background:#f6f8fb;color:#172033;font-family:Inter,Segoe UI,Arial,sans-serif;font-weight:600}h1,h2,h3,h4,h5,h6{color:#0f172a;font-weight:800;letter-spacing:-.01em}.page-header{margin-bottom:20px}.page-header h4{color:#0f172a;font-size:1.5rem;font-weight:800}.content-card{border-color:#dfe6ef;border-radius:8px;padding:20px;box-shadow:0 1px 2px #0f172a0a}.form-label{margin-bottom:6px;color:#334155;font-size:.82rem;font-weight:700}.form-control,.form-select{min-height:40px;border-color:#cfd8e3;border-radius:6px;color:#172033;font-size:.88rem;font-weight:500}textarea.form-control{min-height:88px}.form-control::placeholder{color:#7c899a;opacity:1}.form-control:focus,.form-select:focus{border-color:#9a3b47;box-shadow:0 0 0 3px #7a1f2b24}.btn{min-height:40px;border-radius:6px;font-size:.86rem;font-weight:700}.btn-sm{min-height:32px;border-radius:5px}.table{margin-bottom:0;color:#273449;font-size:.86rem}.table>:not(caption)>*>*{padding:.72rem .8rem;border-color:#e7ecf2}.table thead th,.table-light th{background:#f8fafc!important;color:#334155;font-size:.74rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase;vertical-align:middle;white-space:nowrap}.table tbody td{color:#273449;font-weight:500;vertical-align:middle}.table-responsive{scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}.table-responsive::-webkit-scrollbar{height:7px}.table-responsive::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}.text-muted{color:#526174!important}.badge{font-weight:700}.alert{border-radius:6px;font-weight:600}@media(max-width:767.98px){.content-card{padding:16px}.page-header h4{font-size:1.35rem}}.legal-editor-shell .ProseMirror{min-height:760px;padding:22mm 18mm;outline:none;background:#fff;color:#0f172a;font-family:Times New Roman,serif;font-size:12pt;line-height:1.5}.legal-editor-shell .ProseMirror p{margin:0 0 10px;text-align:justify}.legal-editor-shell .ProseMirror h1,.legal-editor-shell .ProseMirror h2,.legal-editor-shell .ProseMirror h3{margin:12px 0 10px;font-weight:700}.legal-editor-shell .ProseMirror table{width:100%;border-collapse:collapse;margin:10px 0}.legal-editor-shell .ProseMirror th,.legal-editor-shell .ProseMirror td{border:1px solid #cbd5e1;padding:6px 8px;vertical-align:top}.legal-editor-shell .ProseMirror th{font-weight:700;background:#f8fafc}.legal-editor-shell .ProseMirror ul,.legal-editor-shell .ProseMirror ol{padding-left:28px}.legal-editor-shell .ProseMirror blockquote{border-left:3px solid #94a3b8;margin:12px 0;padding-left:14px;color:#475569}@media(max-width:900px){.legal-editor-shell .ProseMirror{min-height:520px;padding:20px 14px;font-size:15px}}
