:root{font-family:Inter,Arial,sans-serif;color:#0f172a;background:#eef4fb;line-height:1.5;font-weight:400}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{background:#eef4fb}#root{min-height:100vh}a{text-decoration:none}button,input,select{font:inherit}.auth-screen{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(135deg,#eef4fb,#f8fbff)}.auth-page{min-height:0;flex:1;display:grid;grid-template-columns:1.1fr 1fr;background:linear-gradient(135deg,#eef4fb,#f8fbff)}.auth-left{background:linear-gradient(145deg,#0d3b75,#1164bf);display:flex;align-items:center;justify-content:center;padding:48px;color:#fff}.auth-brand-box{max-width:480px}.auth-logo{width:min(240px,72%);height:auto;margin-bottom:18px}.auth-brand-box h1{font-size:clamp(2rem,3vw,3rem);margin:0 0 10px}.auth-brand-box p{margin:0;opacity:.92;font-size:1.05rem}.auth-right{display:flex;align-items:center;justify-content:center;padding:30px}.auth-card,.page-card{background:#fffffff2;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(148,163,184,.18);box-shadow:0 22px 60px #0f172a14;border-radius:24px}.auth-card{width:100%;max-width:460px;padding:32px}.eyebrow{display:inline-block;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#1164bf;margin-bottom:8px}.auth-card h2,.page-head h2{margin:0 0 8px;font-size:1.9rem}.muted,.page-head p{color:#64748b;margin-top:0}label{display:block;margin:16px 0 8px;font-weight:600;color:#1e293b}input,select{width:100%;padding:14px 16px;border-radius:14px;border:1px solid #d7dfeb;background:#f8fbff;outline:none}input:focus,select:focus{border-color:#1164bf;box-shadow:0 0 0 4px #1164bf1f}.primary-btn,.secondary-btn,.small-btn,.text-btn{border:none;cursor:pointer;transition:.2s ease}.primary-btn{width:100%;margin-top:22px;padding:14px 18px;border-radius:14px;background:linear-gradient(135deg,#1164bf,#0d4b8f);color:#fff;font-weight:700}.primary-btn:hover{transform:translateY(-1px)}.primary-btn:disabled{opacity:.7;cursor:wait}.secondary-btn,.small-btn.secondary{background:#e8f1fb;color:#0d4b8f}.secondary-btn{padding:12px 18px;border-radius:12px;font-weight:600}.auth-footer-links,.auth-actions-row{margin-top:18px;display:flex;justify-content:space-between;gap:16px}.auth-footer-links a,.auth-actions-row a,.text-btn{color:#1164bf;font-weight:600;background:transparent;padding:0}.alert{padding:12px 14px;border-radius:14px;margin:12px 0;font-size:.95rem}.alert.success{background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}.alert.error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.dashboard-shell{min-height:100vh;display:grid;grid-template-columns:280px 1fr}.sidebar{background:linear-gradient(180deg,#0e2f57,#104a87);color:#fff;padding:24px}.sidebar-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}.sidebar-brand img{width:64px;height:auto;object-fit:contain}.sidebar-brand h2{margin:0;font-size:1.1rem}.sidebar-brand p{margin:0;opacity:.85;font-size:.9rem}.sidebar-nav{display:flex;flex-direction:column;gap:10px}.sidebar-nav a{color:#ffffffe6;padding:12px 14px;border-radius:12px;font-weight:600}.sidebar-nav a.active,.sidebar-nav a:hover{background:#ffffff24;color:#fff}.main-area{padding:24px;min-width:0;display:flex;flex-direction:column}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.content-area{flex:1}.topbar h1{margin:0;font-size:1.8rem}.topbar p{margin:4px 0 0;color:#64748b}.hero-panel{background:linear-gradient(135deg,#fff,#f3f8ff);border:1px solid #dce8f7;border-radius:24px;padding:28px;margin-bottom:22px}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.stat-card{background:#fff;border-radius:20px;padding:22px;box-shadow:0 12px 40px #0f172a0f;border:1px solid #e2e8f0}.stat-card span{display:block;color:#64748b;margin-bottom:8px}.stat-card strong{font-size:1.1rem}.page-card-narrow{max-width:760px}.page-head{margin-bottom:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.users-grid{display:grid;grid-template-columns:420px 1fr;gap:20px}.table-wrap{overflow-x:auto}.table-wrap table{width:100%;border-collapse:collapse}.table-wrap th,.table-wrap td{text-align:left;padding:14px 10px;border-bottom:1px solid #e2e8f0}.table-wrap th{color:#475569;font-size:.9rem}.row-actions{display:flex;gap:8px;flex-wrap:wrap}.small-btn{padding:10px 12px;border-radius:10px;background:#1164bf;color:#fff;font-weight:600}@media (max-width: 1080px){.dashboard-shell{grid-template-columns:1fr}.sidebar{padding-bottom:12px}.users-grid,.form-grid,.stat-grid{grid-template-columns:1fr}}@media (max-width: 900px){.auth-page{grid-template-columns:1fr}.auth-left{min-height:280px}}.row-actions{display:flex;gap:8px;align-items:center}.top-gap{margin-top:10px}.small-btn{padding:10px 14px;border-radius:12px;background:linear-gradient(135deg,#1164bf,#0d4b8f);color:#fff;font-weight:700}.small-btn:hover{transform:translateY(-1px)}.small-btn.secondary:hover{background:#dcecfb}.small-btn.danger{background:#fee2e2;color:#b91c1c}.small-btn.danger:hover{background:#fecaca}.table-wrap td:last-child{min-width:320px}@media (max-width: 1100px){.users-grid{grid-template-columns:1fr}}@media (max-width: 900px){.dashboard-shell{grid-template-columns:1fr}.sidebar{padding-bottom:10px}.main-area{padding:16px}.stat-grid,.form-grid{grid-template-columns:1fr}}textarea{width:100%;padding:14px 16px;border-radius:14px;border:1px solid #d7dfeb;background:#f8fbff;outline:none;resize:vertical;font:inherit}textarea:focus{border-color:#1164bf;box-shadow:0 0 0 4px #1164bf1f}.page-card{padding:24px}.page-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .full-span{grid-column:1 / -1}.row-actions{display:flex;gap:10px;align-items:center}.wrap-actions{flex-wrap:wrap}.top-gap{margin-top:8px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px 10px;border-bottom:1px solid #e2e8f0;vertical-align:top}.cell-title{font-weight:700}.cell-subtitle{color:#64748b;font-size:.9rem;margin-top:3px}.small-btn{padding:10px 12px;border-radius:10px;background:linear-gradient(135deg,#1164bf,#0d4b8f);color:#fff;font-weight:600}.small-btn.danger{background:#b91c1c;color:#fff}.small-btn.secondary,.link-btn.secondary{background:#e8f1fb;color:#0d4b8f}.link-btn{display:inline-flex;align-items:center;justify-content:center}.full-span{grid-column:1 / -1}.users-grid,.clients-layout,.detail-stack,.documents-stack,.notes-layout{display:grid;gap:20px}.clients-layout{grid-template-columns:380px 1fr;align-items:start}.client-form-card{position:sticky;top:24px}.filters-row{display:flex;gap:12px;align-items:center}.filters-row.compact input,.filters-row.compact select{min-width:180px}.status-pill{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:.85rem;font-weight:700;text-transform:capitalize}.status-pill.active{background:#dcfce7;color:#166534}.status-pill.inactive{background:#fee2e2;color:#b91c1c}.badge-row{display:flex;gap:8px;flex-wrap:wrap}.badge-lite{background:#eef4fb;color:#0d4b8f;border-radius:999px;padding:8px 12px;font-weight:600}.tabs-row{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}.tab-btn{border:none;background:#e8f1fb;color:#0d4b8f;padding:10px 16px;border-radius:12px;cursor:pointer;font-weight:700}.tab-btn.active{background:linear-gradient(135deg,#1164bf,#0d4b8f);color:#fff}.overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.overview-grid .full-span{grid-column:1 / -1}.nested-card{padding:20px;box-shadow:none;border:1px solid #e2e8f0;background:#fff}.documents-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.list-stack{display:grid;gap:12px}.file-row,.timeline-item,.empty-card{border:1px solid #e2e8f0;border-radius:16px;padding:14px;background:#fff;display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.timeline-item{display:block}.timeline-meta{color:#64748b;font-size:.9rem;margin-bottom:8px}.timeline-note{white-space:pre-wrap}.dashboard-stats-wide{grid-template-columns:repeat(3,minmax(0,1fr))}@media (max-width: 1100px){.clients-layout,.documents-columns,.notes-layout{grid-template-columns:1fr}.client-form-card{position:static}}@media (max-width: 900px){.dashboard-shell{grid-template-columns:1fr}.sidebar{padding-bottom:12px}.sidebar-nav{flex-direction:row;flex-wrap:wrap}.form-grid,.overview-grid,.dashboard-stats-wide,.stat-grid{grid-template-columns:1fr}}.checkbox-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.checkbox-pill{display:flex;gap:8px;align-items:center;border:1px solid #d7dfeb;border-radius:12px;padding:10px 12px;background:#f8fbff}.task-card{border:1px solid #e2e8f0;border-radius:16px;padding:14px;background:#fff}.active-task-card{border-color:#1164bf;box-shadow:0 0 0 3px #1164bf1f}.split-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.align-end{align-items:end}@media (max-width: 900px){.checkbox-grid,.compact-grid{grid-template-columns:1fr}}.link-card{color:inherit}.link-card:hover{border-color:#bfd4ef;background:#f8fbff}.activity-scroll{max-height:560px;overflow-y:auto;padding-right:6px}.planner-columns{align-items:start}.planner-sections{display:grid;gap:20px}.planner-sections.compact-sections{gap:16px}.section-title{margin:4px 0 12px;font-size:1rem;color:#1e293b}.planner-task-card{width:100%;text-align:left;cursor:pointer}.task-meta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.compact-stat{padding:16px;box-shadow:none}.drop-zone{border:1px dashed #9ebbe3;background:#f8fbff;border-radius:16px;padding:16px;display:grid;gap:10px}.drop-zone input[type=file]{background:#fff}.upload-preview{display:grid;gap:10px}.upload-preview img,.chat-image{max-width:100%;max-height:240px;object-fit:cover;border-radius:12px;border:1px solid #d7dfeb}.chat-item{background:#fbfdff}.status-pill,.badge-lite{text-transform:none}.status-pill.to-do{background:#e0f2fe;color:#075985}.status-pill.in-progress{background:#fff7ed;color:#c2410c}.status-pill.review{background:#f3e8ff;color:#7e22ce}.status-pill.completed{background:#dcfce7;color:#166534}.status-pill.cancelled{background:#fee2e2;color:#b91c1c}.status-pill.draft,.status-pill.prepared{background:#eff6ff;color:#1d4ed8}.status-pill.sent{background:#fef3c7;color:#92400e}.status-pill.follow-up-needed,.status-pill.followed-up,.status-pill.pending,.status-pill.partially-paid{background:#fff7ed;color:#c2410c}.status-pill.approved,.status-pill.paid,.status-pill.active{background:#dcfce7;color:#166534}.status-pill.rejected,.status-pill.overdue,.status-pill.expired,.status-pill.inactive{background:#fee2e2;color:#b91c1c}.priority-pill.low{background:#ecfeff;color:#155e75}.priority-pill.medium{background:#eff6ff;color:#1d4ed8}.priority-pill.high{background:#fff7ed;color:#c2410c}.priority-pill.urgent{background:#fee2e2;color:#b91c1c}.project-top-grid{align-items:stretch}.project-top-grid .nested-card{height:100%}@media (max-width: 900px){.task-meta-grid{grid-template-columns:1fr}}.topbar-actions{display:flex;align-items:center;gap:12px}.bell-btn{position:relative;border:1px solid #dbe6f4;background:#fff;width:48px;height:48px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 10px 28px #0f172a0f}.bell-btn.has-alert{animation:bellPulse 1.8s ease-in-out infinite}.bell-icon{font-size:1.25rem}.notif-count{position:absolute;top:-6px;right:-6px;min-width:22px;height:22px;border-radius:999px;background:#dc2626;color:#fff;font-size:.75rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}.toast-stack{position:fixed;right:24px;bottom:24px;z-index:60;display:flex;flex-direction:column;gap:12px;width:min(360px,calc(100vw - 32px))}.notif-toast{width:100%;text-align:left;border:1px solid #dbe6f4;background:#fffffffa;border-radius:18px;padding:14px 16px;box-shadow:0 20px 45px #0f172a29}.toast-top-row{display:flex;align-items:center;gap:8px;color:#0d4b8f;font-weight:700;margin-bottom:6px}.toast-bell{font-size:1rem}.toast-label{font-size:.85rem}@keyframes bellPulse{0%,to{transform:translateY(0);box-shadow:0 10px 28px #0f172a0f}50%{transform:translateY(-1px);box-shadow:0 18px 38px #dc26262e}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:60;padding:24px}.modal-card{background:#fff;border-radius:24px;box-shadow:0 24px 80px #0f172a3d;width:min(880px,100%);max-height:88vh;overflow:auto;padding:24px}.number-summary{display:grid;gap:12px}.tall-scroll{max-height:560px;overflow-y:auto}.permissions-box{padding:12px;border:1px solid #d7dbe7;border-radius:12px;background:#f8fafc}.permissions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:8px}.permission-chip{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #d7dbe7;border-radius:10px;background:#fff}.permission-chip input{margin:0}.content-area{min-width:0}.menu-toggle-btn,.sidebar-close-btn,.sidebar-overlay{display:none}.topbar-main{display:flex;align-items:center;gap:14px;min-width:0}.topbar-main>div{min-width:0}.topbar-main h1,.topbar-main p{overflow-wrap:anywhere}.sidebar{min-width:0}.sidebar-brand{justify-content:space-between}.sidebar-brand>div{flex:1}.filters-row,.auth-footer-links,.auth-actions-row{flex-wrap:wrap}.page-card,.hero-panel,.stat-card,.nested-card,.empty-card,.file-row,.timeline-item,.task-card,.notif-toast,.auth-card,.page-head,.split-head,.topbar,.topbar-actions,.row-actions,.badge-row,.filters-row{min-width:0}.page-head h2,.hero-panel h2,.stat-card strong,.cell-title,.file-row,.timeline-note,.muted,.page-head p,.cell-subtitle{overflow-wrap:anywhere}.table-wrap{width:100%}.table-wrap table{min-width:700px}@media (max-width: 1280px){.dashboard-shell{grid-template-columns:250px 1fr}.main-area,.page-card,.hero-panel,.modal-card{padding:20px}.users-grid{grid-template-columns:1fr}}@media (max-width: 1080px){.dashboard-shell{display:block}.sidebar-overlay{display:block;position:fixed;top:0;right:0;bottom:0;left:0;border:0;background:#0f172a73;z-index:89}.sidebar{position:fixed;top:0;left:0;bottom:0;width:min(320px,86vw);overflow-y:auto;z-index:90;transform:translate(-100%);transition:transform .25s ease;padding:22px 18px 28px;box-shadow:0 20px 50px #0f172a47}.sidebar.sidebar-open{transform:translate(0)}.sidebar-nav{flex-direction:column;gap:8px}.menu-toggle-btn{display:inline-flex;width:46px;height:46px;border:1px solid #dbe6f4;background:#fff;border-radius:14px;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:0;box-shadow:0 10px 28px #0f172a0f}.menu-toggle-btn span{width:18px;height:2px;background:#0d4b8f;border-radius:999px;display:block}.sidebar-close-btn{display:inline-flex;width:38px;height:38px;border:1px solid rgba(255,255,255,.2);background:#ffffff1a;color:#fff;border-radius:12px;align-items:center;justify-content:center;flex:0 0 auto}.main-area{padding:16px}.topbar{align-items:flex-start}.topbar-actions{width:100%;justify-content:flex-start}.topbar-actions .secondary-btn{width:auto}.clients-layout,.documents-columns,.notes-layout,.overview-grid,.dashboard-stats-wide,.form-grid,.stat-grid,.task-meta-grid,.project-top-grid,.checkbox-grid,.compact-grid{grid-template-columns:1fr}.client-form-card{position:static}}@media (max-width: 768px){.auth-page{grid-template-columns:1fr}.auth-left{min-height:auto;padding:28px 20px}.auth-right{padding:18px}.auth-card{padding:24px 18px;border-radius:20px}.main-area{padding:14px}.topbar{flex-direction:column;align-items:stretch;margin-bottom:18px}.topbar h1{font-size:1.45rem}.page-card,.hero-panel,.modal-card{padding:16px;border-radius:18px}.page-head{flex-direction:column;align-items:flex-start;gap:10px}.split-head,.file-row{flex-direction:column;align-items:flex-start}.row-actions,.badge-row,.filters-row,.tabs-row,.auth-footer-links,.auth-actions-row{width:100%}.row-actions>*,.filters-row>*,.auth-footer-links>*,.auth-actions-row>*{width:100%}.small-btn,.secondary-btn,.link-btn,.primary-btn,.tab-btn{width:100%;justify-content:center}.table-wrap table{min-width:620px}.toast-stack{right:12px;left:12px;width:auto;bottom:12px}.modal-overlay{padding:14px}}@media (max-width: 560px){.sidebar{width:min(300px,88vw)}.sidebar-brand img{width:46px}.topbar-main{align-items:flex-start}.menu-toggle-btn{width:42px;height:42px;border-radius:12px}.hero-panel,.page-card,.auth-card,.modal-card{padding:14px}.auth-card h2,.page-head h2{font-size:1.45rem}input,select,textarea,.notif-toast{padding:12px 14px}}.site-footer{margin-top:24px;padding:16px 20px;border-top:1px solid #dbe7f5;color:#475569;font-size:.9rem;text-align:center}.site-footer p{margin:0}.site-footer.compact{margin-top:0;background:#ffffff8c;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.report-hero-panel{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.9fr);gap:20px;align-items:center}.report-summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.report-summary-chip{background:#ffffffd9;border:1px solid #d8e5f5;border-radius:18px;padding:16px;box-shadow:0 12px 30px #0f172a0d}.report-summary-chip span{display:block;color:#64748b;font-size:.85rem;margin-bottom:6px}.report-summary-chip strong{color:#0f172a;font-size:1rem}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.report-export-card{position:relative;overflow:hidden}.report-export-card:after{content:"";position:absolute;inset:auto -40px -40px auto;width:140px;height:140px;border-radius:999px;background:#1164bf14}.report-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}.report-badge,.report-file-tag{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 12px;font-size:.78rem;font-weight:700}.report-badge{background:#e7f0fb;color:#0d4b8f}.report-file-tag{background:#0e2f57;color:#fff}.report-feature-list{margin:0 0 18px;padding-left:18px;color:#475569}.report-feature-list li+li{margin-top:6px}.report-download-btn{position:relative;z-index:1}.report-export-card.green .report-badge{background:#e8f8ee;color:#166534}.report-export-card.violet .report-badge{background:#f3e8ff;color:#6b21a8}.report-export-card.amber .report-badge{background:#fff7df;color:#a16207}.report-export-card.green:after{background:#22c55e14}.report-export-card.violet:after{background:#a855f717}.report-export-card.amber:after{background:#f59e0b17}@media (max-width: 1080px){.report-hero-panel,.report-grid,.report-summary-strip{grid-template-columns:1fr}}@media (max-width: 900px){.site-footer{padding:14px 16px;font-size:.82rem}}
