:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#111827;background:#f3f4f6}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#f3f4f6}.login-body{min-height:100vh;background:radial-gradient(circle at top left,#dbeafe,transparent 30%),linear-gradient(135deg,#f9fafb,#e5e7eb)}.login-main{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.login-card{width:100%;max-width:430px;background:#ffffffeb;border:1px solid rgba(229,231,235,.9);border-radius:24px;padding:32px;box-shadow:0 24px 80px #0f172a1f,0 4px 16px #0f172a0f;backdrop-filter:blur(12px)}.logo{width:48px;height:48px;border-radius:14px;background:#111827;color:#fff;display:grid;place-items:center;font-weight:800;margin-bottom:24px}.login-card h1{margin:0;font-size:28px;line-height:1.2;letter-spacing:-.03em}.description{margin:12px 0 28px;color:#6b7280;line-height:1.5;font-size:15px}label{display:block;margin-bottom:8px;font-size:14px;font-weight:600;color:#374151}input{width:100%;height:46px;border-radius:12px;border:1px solid #d1d5db;padding:0 14px;font-size:15px;outline:none;background:#fff}input:focus{border-color:#111827;box-shadow:0 0 0 4px #11182714}.field{margin-bottom:18px}button{width:100%;height:48px;border:0;border-radius:12px;background:#111827;color:#fff;font-size:15px;font-weight:700;cursor:pointer;transition:transform .15s ease,opacity .15s ease}button:hover{transform:translateY(-1px)}button:disabled{opacity:.65;cursor:not-allowed;transform:none}.message{display:none;margin-top:18px;padding:12px 14px;border-radius:12px;font-size:14px;line-height:1.4}.message.info{display:block;color:#1e40af;background:#dbeafe;border:1px solid #bfdbfe}.message.error{display:block;color:#991b1b;background:#fee2e2;border:1px solid #fecaca}.message.success{display:block;color:#166534;background:#dcfce7;border:1px solid #bbf7d0}.hidden{display:none}.secondary-button{margin-top:12px;background:transparent;color:#111827;border:1px solid #d1d5db}.small-text{margin-top:18px;color:#6b7280;font-size:13px;line-height:1.5;text-align:center}.otp-input{text-align:center;letter-spacing:.35em;font-size:20px;font-weight:700}.app{min-height:100vh;display:grid;grid-template-columns:260px 1fr}.sidebar{background:#111827;color:#fff;padding:24px}.sidebar .logo{background:#fff;color:#111827;margin-bottom:28px}.sidebar h2{margin:0 0 8px;font-size:18px}.sidebar p{margin:0 0 32px;color:#d1d5db;font-size:14px;line-height:1.5}.nav{display:grid;gap:8px}.nav a{color:#e5e7eb;text-decoration:none;padding:12px 14px;border-radius:12px;font-size:14px}.nav a.active,.nav a:hover{background:#ffffff1f;color:#fff}.main{padding:32px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:32px}.topbar h1{margin:0;font-size:28px;letter-spacing:-.03em}.topbar p{margin:8px 0 0;color:#6b7280}.logout-button{border:0;border-radius:12px;background:#111827;color:#fff;padding:12px 16px;font-weight:700;cursor:pointer;width:auto}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:22px;box-shadow:0 8px 30px #0f172a0d}.card span{display:block;color:#6b7280;font-size:14px;margin-bottom:8px}.card strong{display:block;font-size:24px}.panel{margin-top:18px;background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:24px;box-shadow:0 8px 30px #0f172a0d}.panel h2{margin:0 0 12px;font-size:20px}.panel p{margin:0;color:#6b7280;line-height:1.6}.user-box{margin-top:24px;padding:16px;border-radius:16px;background:#f9fafb;border:1px solid #e5e7eb}.user-box p{margin:6px 0;color:#374151;font-size:14px}.user-box strong{color:#111827}@media(max-width:860px){.app{grid-template-columns:1fr}.sidebar{display:none}.main{padding:24px}.topbar{align-items:flex-start;flex-direction:column}.grid{grid-template-columns:1fr}}@media(max-width:480px){.login-card{padding:24px;border-radius:20px}.login-card h1{font-size:24px}}.table-wrapper{width:100%;overflow-x:auto;border:1px solid #e5e7eb;border-radius:16px;background:#fff}table{width:100%;border-collapse:collapse;min-width:720px}thead{background:#f9fafb}th{text-align:left;font-size:13px;color:#6b7280;font-weight:800;padding:14px 18px;border-bottom:1px solid #e5e7eb;text-transform:uppercase;letter-spacing:.04em}td{padding:16px 18px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:middle}tbody tr{transition:background .15s ease}tbody tr:hover{background:#f9fafb}tbody tr:last-child td{border-bottom:0}.client-link{color:#111827;font-weight:800;text-decoration:none}.client-link:hover{text-decoration:underline}.status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:86px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800}.status-badge.active{color:#166534;background:#dcfce7}.status-badge.inactive{color:#991b1b;background:#fee2e2}.eyebrow{margin:0 0 6px;color:#6b7280;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.detail-toolbar{display:flex;align-items:end;gap:14px;margin-bottom:20px;flex-wrap:wrap}.compact-field{min-width:180px;margin-bottom:0}.small-button{width:auto;min-width:120px;height:46px;padding:0 18px}.invoice-card{border:1px solid #e5e7eb;border-radius:18px;overflow:hidden;background:#fff}.invoice-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border-bottom:1px solid #e5e7eb;background:#f9fafb}.invoice-header span{display:block;color:#6b7280;font-size:13px;margin-bottom:4px}.invoice-header strong{font-size:18px;color:#111827}.pdf-button{width:auto;min-width:130px;height:42px;padding:0 14px;background:#991b1b}@media(max-width:760px){.detail-toolbar{align-items:stretch;flex-direction:column}.compact-field,.small-button,.pdf-button{width:100%}.invoice-header{align-items:stretch;flex-direction:column}}.detail-topbar{align-items:center}.seller-card{display:flex;align-items:center;gap:14px;margin-left:auto;padding:12px 18px;border:1px solid #e5e7eb;border-radius:20px;background:#fff;box-shadow:0 8px 24px #0f172a0d;min-width:280px}.seller-card span{display:block;color:#6b7280;font-size:12px;font-weight:800;text-transform:uppercase;margin-bottom:4px}.seller-card strong{display:block;color:#111827;font-size:16px;line-height:1.2}.seller-logo{width:120px;height:54px;object-fit:contain;border-radius:12px;background:#111827;border:1px solid #e5e7eb;padding:8px}.pdf-modal{position:fixed;inset:0;z-index:100;background:#0f172ab8;display:flex;align-items:center;justify-content:center;padding:24px}.pdf-modal.hidden{display:none}.pdf-modal-content{width:min(1100px,100%);height:min(840px,95vh);background:#fff;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 30px 100px #00000059}.pdf-modal-header{min-height:64px;padding:14px 18px;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;gap:16px}.pdf-modal-header span{display:block;color:#6b7280;font-size:12px;font-weight:800;text-transform:uppercase}.pdf-modal-header strong{color:#111827;font-size:16px}.modal-close-button{width:auto;height:40px;padding:0 14px;border-radius:10px}.pdf-frame{width:100%;height:100%;border:0;background:#f3f4f6}@media(max-width:900px){.detail-topbar{align-items:stretch}.seller-card{margin-left:0;width:100%}.pdf-modal{padding:12px}}
