@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Saira:wght@600;700;800&display=swap');
:root{--brand:#ef1717;--ink:#141414;--muted:#6e706f;--bg:#f5f6f4;--line:#e4e6e2;--white:#fff;--green:#16875c;--red:#d92d20;--sidebar:250px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Arial,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}a{text-decoration:none;color:inherit}.sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;background:#101111;color:#fff;padding:26px 18px;display:flex;flex-direction:column;z-index:30}.logo{height:48px;display:flex;align-items:center;gap:12px;padding:0 10px;margin-bottom:32px}.logo>span,.auth-brand span{width:32px;height:32px;border-radius:10px;background:var(--brand);display:grid;place-items:center;font-family:Saira;font-weight:800;color:#fff}.logo img{max-width:40px;max-height:38px}.logo b{font-family:Saira;font-size:17px;letter-spacing:.02em}.sidebar nav{display:flex;flex-direction:column;gap:4px;flex:1}.sidebar nav a{display:flex;align-items:center;gap:13px;padding:12px 13px;border-radius:9px;color:#aaaead;font-weight:500}.sidebar nav a:hover,.sidebar nav a.active{background:#262827;color:#fff}.sidebar nav a.active{box-shadow:inset 3px 0 var(--brand)}.sidebar nav i{font-style:normal;width:18px;text-align:center;font-size:17px}.sidebar-user{display:flex;align-items:center;gap:10px;padding:16px 8px 0;border-top:1px solid #2c2e2d}.sidebar-user>div:nth-child(2){display:flex;flex-direction:column;flex:1;min-width:0}.sidebar-user b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.sidebar-user small{color:#7f8381;font-size:11px;margin-top:3px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:#fff;font-weight:700}.avatar.small{width:32px;height:32px;font-size:12px;flex:0 0 auto}.workspace{margin-left:var(--sidebar);padding:44px clamp(24px,4vw,64px) 80px;min-height:100vh}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:34px}.page-head h1{font:800 clamp(34px,4vw,54px)/1 Saira;margin:8px 0 8px;letter-spacing:-.035em}.page-head p{color:var(--muted);margin:0;font-size:15px}.kicker{font-size:11px;letter-spacing:.14em;color:var(--brand);font-weight:800}.btn{border:0;border-radius:9px;padding:12px 17px;font-weight:700;cursor:pointer;display:inline-flex;justify-content:center;align-items:center}.btn.primary{background:var(--brand);color:#fff;box-shadow:0 8px 24px color-mix(in srgb,var(--brand) 22%,transparent)}.btn.primary:hover{filter:brightness(.92)}.btn.ghost{background:#fff;border:1px solid var(--line)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.metrics article,.panel,.package-card,.company-card{background:#fff;border:1px solid var(--line);border-radius:14px}.metrics article{padding:22px}.metrics article>span{color:var(--muted);font-size:12px}.metrics strong{font:700 30px/1 Saira;display:block;margin:13px 0 10px}.metrics small{color:var(--muted)}.metrics.compact{grid-template-columns:repeat(3,1fr)}.positive{color:var(--green)!important}.negative{color:var(--red)!important}.dashboard-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.panel{padding:24px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.panel-head h2{font:700 22px Saira;margin:5px 0 0}.panel-head>a{color:var(--brand);font-weight:700;font-size:12px}.pipeline{display:grid;gap:18px}.pipeline div>span{display:flex;justify-content:space-between;text-transform:capitalize;margin-bottom:8px}.pipeline progress{width:100%;height:7px;border:0;border-radius:8px;overflow:hidden}.pipeline progress::-webkit-progress-bar{background:#edf0ec}.pipeline progress::-webkit-progress-value{background:var(--brand);border-radius:8px}.mini-list>div{display:flex;align-items:center;gap:11px;padding:12px 0;border-top:1px solid var(--line)}.mini-list p,.identity p{display:flex;flex-direction:column;margin:0;flex:1}.mini-list small,.identity small,td small{color:var(--muted);margin-top:4px;display:block}.badge{padding:5px 8px;border-radius:99px;font-size:10px;text-transform:uppercase;font-style:normal;font-weight:800;background:#eff1ef;color:#6b6f6c}.badge.won,.badge.paid,.badge.active{background:#e7f7ef;color:var(--green)}.badge.lost{background:#fff0ef;color:var(--red)}.badge.contacted,.badge.partial{background:#fff4dc;color:#9b6400}.badge.proposal{background:#eeeafa;color:#6453b8}.table-panel{padding:0;overflow:hidden}.toolbar{padding:16px;display:flex;gap:12px;border-bottom:1px solid var(--line)}.toolbar input,.toolbar select,.month-filter input{border:1px solid var(--line);background:#f8f9f7;border-radius:8px;padding:10px 12px;outline:none}.toolbar input{min-width:260px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th{text-align:left;padding:13px 18px;background:#fafbf9;color:#757875;font-size:11px;text-transform:uppercase;letter-spacing:.06em}td{padding:16px 18px;border-top:1px solid var(--line);white-space:nowrap}td:first-child{white-space:normal}.strong-link{font-weight:800;color:var(--brand)}.link-btn{border:0;background:none;color:var(--brand);font-weight:700;cursor:pointer;padding:4px}.danger-text{color:var(--red)}.identity{display:flex;align-items:center;gap:11px}.identity img{width:34px;height:34px;border-radius:8px;object-fit:contain;border:1px solid var(--line)}.card-grid,.company-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.package-card{padding:24px;min-height:190px}.package-card h2{font:700 24px Saira;margin:24px 0 8px}.package-card strong{font:700 27px Saira}.package-card p{color:var(--muted);line-height:1.6}.company-grid{grid-template-columns:repeat(2,1fr)}.company-card{padding:24px;display:grid;grid-template-columns:6px 1fr auto;gap:20px;align-items:center}.company-card>i{display:block;width:6px;height:100%;min-height:85px;border-radius:9px}.company-card h2{font:700 24px Saira;margin:6px 0}.company-card p{color:var(--muted)}.company-card small{font-weight:700}.form-panel{max-width:850px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid label,.stack label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#4f5350}.form-grid input,.form-grid select,.form-grid textarea,.stack input,.stack select,.stack textarea{border:1px solid #d9dcd7;border-radius:8px;padding:12px;background:#fff;outline:none;color:var(--ink)}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 10%,transparent)}textarea{min-height:90px;resize:vertical}.full{grid-column:1/-1}.stack{display:grid;gap:16px}.modal{position:fixed;inset:0;background:#0009;z-index:100;display:none;place-items:center;padding:20px}.modal.open{display:grid}.modal-card{background:#fff;width:min(680px,100%);max-height:92vh;overflow-y:auto;border-radius:16px;padding:30px;position:relative;box-shadow:0 30px 80px #0004}.small-modal{width:min(540px,100%)}.modal-card h2{font:700 32px Saira;margin:7px 0 24px}.modal-close{position:absolute;right:20px;top:16px;border:0;background:none;font-size:28px;cursor:pointer}.toast{position:fixed;right:25px;top:25px;z-index:200;background:#141414;color:#fff;padding:13px 18px;border-radius:9px;box-shadow:0 10px 30px #0003;animation:fade 4s forwards}.impersonation{margin:-44px -64px 35px;padding:10px 64px;background:#fff1c9;display:flex;justify-content:center;gap:18px;align-items:center;font-size:12px}.impersonation button{border:0;background:none;text-decoration:underline;font-weight:700;cursor:pointer}.month-filter{margin:-5px 0 18px}.invoice-actions{display:flex;justify-content:flex-end;gap:10px;margin-bottom:18px}.invoice-sheet{background:#fff;max-width:900px;margin:auto;padding:60px;border:1px solid var(--line);box-shadow:0 20px 60px #1320160c}.invoice-sheet>header{display:flex;justify-content:space-between}.invoice-sheet>header>div:last-child{text-align:right}.invoice-sheet header img{max-width:150px;max-height:70px}.invoice-brand{font:800 28px Saira;color:var(--brand)}.invoice-sheet header span,.bill-to>span{font-size:10px;letter-spacing:.18em;color:var(--brand);font-weight:800}.invoice-sheet header h1{font:800 32px Saira;margin:5px 0}.invoice-sheet p{color:var(--muted);line-height:1.7}.bill-to{margin:55px 0 35px}.bill-to h2{font:700 25px Saira;margin:7px 0}.invoice-total{width:330px;margin:30px 0 40px auto}.invoice-total p{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:10px 0;margin:0}.invoice-total .grand{font-size:18px;color:var(--ink)}.invoice-sheet footer{border-top:1px solid var(--line);padding-top:24px;display:flex;justify-content:space-between}.backup-panel{text-align:center;max-width:650px;padding:60px;margin:auto}.backup-icon{width:70px;height:70px;background:color-mix(in srgb,var(--brand) 10%,white);color:var(--brand);border-radius:50%;display:grid;place-items:center;font-size:30px;margin:auto}.backup-panel h2{font:700 28px Saira}.backup-panel p{color:var(--muted);line-height:1.7;max-width:470px;margin:0 auto 25px}.empty{text-align:center;color:var(--muted);padding:30px!important}.auth-body{min-height:100vh;display:grid;place-items:center;background:#111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M60 0H0V60' fill='none' stroke='%23222222'/%3E%3C/svg%3E")}.auth-card{width:min(480px,calc(100% - 30px));background:#fff;border-radius:17px;padding:40px;box-shadow:0 30px 100px #0008}.auth-brand{display:flex;align-items:center;gap:10px;font-family:Saira;margin-bottom:30px}.auth-card h1{font:800 38px/1 Saira;margin:0 0 10px}.auth-card>p{color:var(--muted);margin-bottom:26px}.auth-card small{display:block;text-align:center;color:var(--muted);margin-top:18px}.alert{padding:12px;border-radius:8px;margin-bottom:16px}.alert.danger{background:#fff0ef;color:var(--red)}.alert.success{background:#e7f7ef;color:var(--green)}.mobile-bar{display:none}@keyframes fade{0%,80%{opacity:1}100%{opacity:0;pointer-events:none}}
@media(max-width:1050px){.metrics{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.card-grid{grid-template-columns:repeat(2,1fr)}.company-grid{grid-template-columns:1fr}}
@media(max-width:760px){.mobile-bar{display:flex;position:sticky;top:0;height:58px;background:#101111;color:#fff;z-index:25;align-items:center;gap:18px;padding:0 18px}.mobile-bar button{border:0;background:none;color:#fff;font-size:21px}.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0;padding:28px 18px 60px}.page-head{align-items:flex-start;flex-direction:column}.page-head .btn{width:100%}.metrics,.metrics.compact,.card-grid{grid-template-columns:1fr}.company-card{grid-template-columns:6px 1fr}.company-card form{grid-column:2}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.toolbar{flex-direction:column}.toolbar input{min-width:0}.invoice-sheet{padding:25px}.invoice-sheet>header{flex-direction:column}.invoice-sheet>header>div:last-child{text-align:left;margin-top:30px}.invoice-total{width:100%}.invoice-sheet footer{flex-direction:column}.impersonation{margin:-28px -18px 25px;padding:10px 18px}.modal-card{padding:25px 20px}}
.sidebar nav svg{width:18px;height:18px;flex:0 0 18px}.sidebar-user .logout-icon{display:grid;place-items:center;color:#8d9290}.sidebar-user .logout-icon:hover{color:#fff}.sidebar-user .logout-icon svg{width:18px;height:18px}.btn svg{width:16px;height:16px;margin-right:8px}.company-card>.badge{justify-self:end}.mobile-bar button{display:grid;place-items:center}@media print{.sidebar,.mobile-bar,.no-print,.impersonation{display:none!important}.workspace{margin:0;padding:0;background:#fff}.invoice-sheet{border:0;box-shadow:none;max-width:none}.toast{display:none}}
