:root{font-family:Inter,system-ui,-apple-system,sans-serif;color:#0f172a;background:#f8fafc}*{box-sizing:border-box}body{margin:0;background:#f1f5f9}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 20% 20%,#e0f2fe,transparent 30%),radial-gradient(circle at 80% 10%,#f1f5f9,transparent 40%),#f8fbff}.login-card{width:420px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:28px;box-shadow:0 25px 60px #0f172a14}.brand{display:flex;gap:12px;align-items:center;margin-bottom:16px}.brand-title{margin:0;font-weight:700;font-size:16px}.brand-sub{margin:0;color:#64748b;font-size:13px}.logo-circle{width:48px;height:48px;border-radius:50%;background:linear-gradient(120deg,#0284c7,#4f46e5);color:#fff;display:grid;place-items:center;font-weight:700}.logo-circle.small{width:40px;height:40px;font-size:18px}.form-grid{display:grid;gap:14px}.field{display:grid;gap:6px;color:#0f172a;font-size:14px;font-weight:500}input,select,textarea{width:100%;padding:10px 12px;border-radius:10px;border:2px solid #e2e8f0;background:#fff;font-size:14px;font-family:inherit;color:#0f172a}input::placeholder,textarea::placeholder{color:#94a3b8}input:focus,select:focus,textarea:focus{outline:none;border-color:#0ea5e9;box-shadow:0 0 0 3px #0ea5e91a}.primary-btn,.secondary-btn,.ghost-btn{border:none;border-radius:10px;padding:10px 16px;font-weight:600;font-size:14px;cursor:pointer;transition:all .15s ease}.primary-btn{background:linear-gradient(120deg,#0ea5e9,#2563eb);color:#fff;box-shadow:0 8px 24px #2563eb40}.primary-btn:hover{transform:translateY(-1px);box-shadow:0 12px 32px #2563eb4d}.secondary-btn{background:#e0f2fe;color:#0f172a}.secondary-btn:hover{background:#bae6fd}.ghost-btn{background:#fff;color:#0f172a;border:2px solid #e2e8f0}.ghost-btn:hover{border-color:#cbd5e1;background:#f8fafc}.hint{text-align:center;color:#64748b;font-size:13px;margin-top:12px}.error-text{color:#dc2626;margin:0;font-size:14px}.info-text{color:#0f172a;margin:0;font-size:14px}.dashboard-layout{min-height:100vh;display:flex;flex-direction:column}.dash-header{background:#fff;border-bottom:1px solid #e2e8f0;padding:16px 32px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 8px #0f172a0a}.brand-inline,.header-actions{display:flex;gap:12px;align-items:center}.user-chip-inline{display:flex;gap:8px;align-items:center}.avatar-sm{width:32px;height:32px;border-radius:8px;background:#0ea5e9;color:#fff;display:grid;place-items:center;font-weight:700;font-size:14px}.user-name-sm{font-weight:600;font-size:14px;color:#0f172a}.notifications-wrapper{position:relative}.notification-btn{background:#f1f5f9;border:none;border-radius:10px;padding:8px 12px;font-size:18px;cursor:pointer;position:relative;transition:all .2s}.notification-btn:hover{background:#e2e8f0}.notification-badge{position:absolute;top:-4px;right:-4px;background:#dc2626;color:#fff;font-size:11px;font-weight:700;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 4px}.notifications-dropdown{position:absolute;top:100%;right:0;margin-top:8px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 8px 24px #0f172a1f;width:360px;max-height:400px;overflow:hidden;z-index:1000}.notifications-header{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid #e2e8f0;font-weight:700;color:#0f172a}.close-btn-sm{background:none;border:none;font-size:16px;color:#64748b;cursor:pointer;padding:4px 8px;border-radius:6px}.close-btn-sm:hover{background:#f1f5f9;color:#0f172a}.notifications-empty{padding:32px;text-align:center;color:#64748b}.notifications-list{max-height:320px;overflow-y:auto}.notification-item{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid #f1f5f9;font-size:13px}.notification-item:last-child{border-bottom:none}.notification-item.danger{background:#fef2f2;border-left:3px solid #dc2626}.notification-item.warning{background:#fffbeb;border-left:3px solid #f59e0b}.notification-item.info{background:#fefce8;border-left:3px solid #eab308}.notification-text{color:#0f172a;font-weight:500}.notification-amount{font-weight:700;color:#0f172a}.dash-content{padding:32px;max-width:1600px;margin:0 auto;width:100%}.alerts-section{display:flex;flex-direction:column;gap:8px;margin-bottom:24px;position:relative}.alerts-close-btn{position:absolute;top:8px;right:8px;background:#ffffffe6;border:1px solid #e2e8f0;border-radius:6px;padding:4px 10px;font-size:14px;cursor:pointer;color:#64748b;z-index:10;transition:all .2s}.alerts-close-btn:hover{background:#fff;color:#0f172a;box-shadow:0 2px 8px #0000001a}.alert-chip{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 20px;border-radius:12px;font-size:14px;font-weight:600;animation:pulse 2s ease-in-out infinite}.alert-chip.danger{background:linear-gradient(135deg,#fef2f2,#fee2e2);border-left:4px solid #dc2626;color:#b91c1c}.alert-chip.warning{background:linear-gradient(135deg,#fffbeb,#fef3c7);border-left:4px solid #f59e0b;color:#b45309}.alert-chip.info{background:linear-gradient(135deg,#fefce8,#fef9c3);border-left:4px solid #eab308;color:#a16207}.alert-amount{font-weight:700;font-size:15px}@keyframes pulse{0%,to{opacity:1}50%{opacity:.9}}.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-bottom:32px}.metric{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:20px;box-shadow:0 4px 16px #0f172a0a}.metric-title{margin:0 0 8px;color:#64748b;font-size:14px;font-weight:500}.metric-value{margin:0;font-size:28px;font-weight:800;color:#0f172a}.metric-detail{margin:4px 0 0;color:#94a3b8;font-size:13px}.section-full{margin-bottom:24px}.section-split{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}@media(max-width:900px){.section-split{grid-template-columns:1fr}}.card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:20px;box-shadow:0 4px 16px #0f172a0a}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.card-title{margin:0;font-weight:700;font-size:16px;color:#0f172a}.add-btn{background:linear-gradient(120deg,#0ea5e9,#2563eb);color:#fff;border:none;border-radius:8px;padding:6px 12px;font-weight:600;font-size:13px;cursor:pointer}.add-btn:hover{opacity:.9}.table{width:100%;border-collapse:collapse;font-size:14px}.table th{text-align:left;padding:8px 12px;border-bottom:2px solid #e2e8f0;color:#64748b;font-weight:600;font-size:13px}.table td{padding:10px 12px;border-bottom:1px solid #f1f5f9;color:#0f172a}.pill{padding:4px 10px;border-radius:999px;font-weight:700;text-transform:capitalize;font-size:11px;display:inline-block}.pill.pending{background:#fff7ed;color:#d97706}.pill.paid,.pill.received{background:#dcfce7;color:#15803d}.pill.late{background:#fee2e2;color:#b91c1c}.summary-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:4px}.summary-box.overdue{background:#fef2f2;border-color:#fecaca}.summary-box.paid{background:#f0fdf4;border-color:#bbf7d0}.summary-label{font-size:12px;color:#64748b;font-weight:500}.summary-count{font-size:24px;font-weight:800;color:#0f172a}.summary-amount{font-size:13px;color:#475569;font-weight:600}.receivables-list{display:grid;gap:12px}.receivable-item{display:flex;align-items:center;justify-content:space-between;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.receivable-item.overdue{background:#fef2f2;border-color:#fecaca}.receivable-origin{font-weight:600;font-size:14px;color:#0f172a}.receivable-amount{font-weight:700;font-size:14px;color:#0f172a}.action-btn-sm{background:#0ea5e9;color:#fff;border:none;border-radius:6px;padding:6px 12px;font-weight:600;font-size:12px;cursor:pointer}.action-btn-sm:hover{background:#0284c7}.action-btn-xs{background:#10b981;color:#fff;border:none;border-radius:6px;padding:4px 8px;font-weight:600;font-size:12px;cursor:pointer}.action-btn-xs:hover{background:#059669}.sales-list,.purchases-list,.clients-list{display:grid;gap:8px}.sale-item{border:1px solid #e2e8f0;border-radius:10px;overflow:hidden}.sale-header{display:flex;align-items:center;justify-content:space-between;padding:12px;cursor:pointer;background:#fff;transition:background .15s ease}.sale-header:hover{background:#f8fafc}.sale-info{display:flex;flex-direction:column;gap:4px}.sale-client{font-weight:600;font-size:14px;color:#0f172a}.sale-meta{font-size:12px;color:#64748b}.sale-summary{display:flex;align-items:center;gap:12px}.sale-total{font-weight:700;font-size:14px;color:#0f172a}.sale-installments{background:#f8fafc;border-top:1px solid #e2e8f0;padding:8px 12px;display:grid;gap:6px}.installment-row{display:grid;grid-template-columns:1fr 100px 100px 80px 32px;align-items:center;gap:12px;font-size:13px;padding:6px}.installment-number{font-weight:600;color:#475569}.installment-due{color:#64748b}.installment-amount{font-weight:700;color:#0f172a}.purchase-item{display:flex;flex-direction:column;border:1px solid #e2e8f0;border-radius:12px;margin-bottom:12px;overflow:hidden}.client-item{display:flex;align-items:center;justify-content:space-between;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.purchase-info,.client-info{display:flex;flex-direction:column;gap:4px}.purchase-supplier,.client-name{font-weight:600;font-size:14px;color:#0f172a}.purchase-meta,.client-meta{font-size:12px;color:#64748b}.purchase-actions{display:flex;align-items:center;gap:12px}.settings-summary{display:grid;gap:10px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0f172a80;display:flex;align-items:flex-start;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);overflow-y:auto;padding:20px}.modal-content{background:#fff;border-radius:16px;padding:28px;max-width:600px;width:100%;margin:auto;box-shadow:0 25px 60px #0f172a33}.modal-title{margin:0 0 20px;font-size:20px;font-weight:800;color:#0f172a}.modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.client-suggestions{position:absolute;top:100%;left:0;right:0;background:#fff;border:2px solid #0ea5e9;border-radius:10px;margin-top:4px;max-height:200px;overflow-y:auto;z-index:100;box-shadow:0 8px 24px #0f172a26}.suggestion-item{padding:10px 12px;cursor:pointer;display:flex;flex-direction:column;gap:2px;border-bottom:1px solid #f1f5f9}.suggestion-item:last-child{border-bottom:none}.suggestion-item:hover{background:#f8fafc}.suggestion-name{font-weight:600;font-size:14px;color:#0f172a}.suggestion-email{font-size:12px;color:#64748b}.checkbox-field{flex-direction:row!important;align-items:center;gap:10px!important}.checkbox-field input[type=checkbox]{width:auto;margin:0}.sale-item.overdue,.purchase-item.alert{background:#fef2f2;border-color:#fca5a5}.installment-row.overdue{background:#fef2f2}.divider-section{border-top:2px solid #e2e8f0;padding-top:20px;margin-top:20px}.section-title{margin:0 0 16px;font-size:16px;font-weight:700;color:#0f172a}.product-inputs{display:grid;grid-template-columns:2fr 70px 100px auto;gap:10px;margin-bottom:16px;align-items:center}.product-inputs input,.product-inputs select{margin:0}.discount-input-wrapper{display:flex;align-items:center;background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;overflow:hidden}.discount-input-wrapper:focus-within{border-color:#0ea5e9}.discount-prefix{padding:8px 6px 8px 10px;color:#16a34a;font-weight:600;font-size:.875rem;background:#f0fdf4}.discount-input-wrapper input{border:none!important;width:50px;padding:8px 8px 8px 4px!important;background:transparent}.add-product-btn{background:#10b981;color:#fff;border:none;border-radius:8px;padding:10px 16px;font-weight:600;font-size:13px;cursor:pointer;white-space:nowrap}.add-product-btn:hover{background:#059669}.products-list{border:2px solid #e2e8f0;border-radius:12px;padding:12px;background:#f8fafc}.product-item{display:grid;grid-template-columns:2fr 1fr auto;gap:12px;align-items:center;padding:10px;background:#fff;border-radius:8px;margin-bottom:8px}.product-item:last-of-type{margin-bottom:12px}.product-name{font-weight:600;color:#0f172a;font-size:14px}.product-qty,.product-amount{font-size:14px;color:#475569}.remove-btn{background:#ef4444;color:#fff;border:none;border-radius:6px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px;font-weight:700}.remove-btn:hover{background:#dc2626}.products-total{display:flex;justify-content:space-between;padding-top:12px;border-top:2px solid #e2e8f0;font-weight:700;font-size:16px;color:#0f172a}.total-amount{color:#0ea5e9}.price-preview{background:#f0f9ff;border:2px solid #0ea5e9;border-radius:8px;padding:12px;margin:8px 0}.price-preview strong{color:#0f172a;font-size:16px}.price-note{display:block;margin-top:4px;font-size:13px;color:#64748b}.payment-types{display:flex;flex-direction:column;gap:12px}.radio-option{display:flex;align-items:center;gap:8px;padding:10px;background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s ease}.radio-option:hover{background:#f0f9ff;border-color:#0ea5e9}.radio-option input[type=radio]{width:18px;height:18px;cursor:pointer}.radio-option span{font-weight:500;color:#0f172a}.field-note{display:block;margin-top:6px;font-size:12px;color:#64748b;font-style:italic}.receivables-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.summary-box{background:#f8fafc;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:8px;border:2px solid #e2e8f0}.summary-box.overdue{background:#fef2f2;border-color:#fca5a5}.summary-box.paid{background:#f0fdf4;border-color:#86efac}.summary-label{font-size:13px;color:#64748b;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.summary-count{font-size:32px;font-weight:700;color:#0f172a}.summary-amount{font-size:16px;font-weight:600;color:#0ea5e9}.receivables-list{display:flex;flex-direction:column;gap:8px}.receivable-item{display:flex;justify-content:space-between;align-items:center;padding:12px;background:#f8fafc;border-radius:8px;border:2px solid #e2e8f0}.receivable-item.overdue{background:#fef2f2;border-color:#fca5a5}.receivable-info{display:flex;flex-direction:column;gap:4px}.receivable-origin{font-weight:600;color:#0f172a;font-size:14px}.receivable-meta{font-size:12px;color:#64748b}.receivable-actions{display:flex;align-items:center;gap:12px}.receivable-amount{font-size:16px;font-weight:700;color:#0f172a}.action-btn-sm{background:#10b981;color:#fff;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}.action-btn-sm:hover{background:#059669}.settings-summary{display:flex;flex-direction:column;gap:12px}.settings-summary p{margin:0;font-size:14px;color:#475569}@media(max-width:1200px){.cards-grid{grid-template-columns:1fr}}@media(max-width:768px){.dash-header{flex-direction:column;gap:12px;align-items:flex-start}.dash-content{padding:20px}.metrics-grid{grid-template-columns:repeat(2,1fr)}.receivables-summary{grid-template-columns:1fr}.installment-row{grid-template-columns:1fr 80px 80px 60px;font-size:12px}}.topbar-btn{background:#fff;color:#0f172a;border:2px solid #e2e8f0;border-radius:8px;padding:8px 16px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;white-space:nowrap}.topbar-btn:hover{background:#f8fafc;border-color:#0ea5e9}.user-menu-wrapper{position:relative}.user-chip-inline{cursor:pointer}.dropdown-arrow{margin-left:6px;font-size:10px;color:#64748b}.user-dropdown{position:absolute;top:calc(100% + 8px);right:0;background:#fff;border:2px solid #e2e8f0;border-radius:12px;box-shadow:0 10px 40px #0000001a;min-width:180px;z-index:100;overflow:hidden}.user-dropdown button{width:100%;padding:12px 16px;background:#fff;border:none;text-align:left;font-size:14px;font-weight:500;color:#0f172a;cursor:pointer;transition:background .2s ease;border-bottom:1px solid #f1f5f9}.user-dropdown button:last-child{border-bottom:none}.user-dropdown button:hover{background:#f8fafc}.modal-split{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:20px}.modal-list h3,.modal-form-side h3{margin:0 0 16px;font-size:16px;font-weight:700;color:#0f172a}.list-scroll{max-height:400px;overflow-y:auto;border:2px solid #e2e8f0;border-radius:12px;padding:8px;background:#f8fafc}.list-item{display:flex;justify-content:space-between;align-items:center;padding:12px;background:#fff;border-radius:8px;margin-bottom:8px;transition:all .2s ease}.list-item:hover{box-shadow:0 2px 8px #0000001a}.list-item-info{display:flex;flex-direction:column;gap:4px;flex:1}.list-item-name{font-weight:600;color:#0f172a;font-size:14px}.list-item-meta{font-size:12px;color:#64748b}.list-item-actions{display:flex;gap:8px}.edit-btn,.delete-btn{background:none;border:none;cursor:pointer;font-size:18px;padding:6px;border-radius:6px;transition:background .2s ease}.edit-btn:hover{background:#f0f9ff}.delete-btn:hover{background:#fef2f2}.form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:16px}.card-scroll{max-height:350px;overflow-y:auto;margin-top:12px}.card-scroll::-webkit-scrollbar{width:8px}.card-scroll::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.card-scroll::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.card-scroll::-webkit-scrollbar-thumb:hover{background:#94a3b8}.card-full-width{grid-column:1 / -1}.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}@media(max-width:1200px){.cards-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:768px){.cards-grid{grid-template-columns:1fr}.card-full-width{grid-column:1}}.receivable-item.alert,.sale-item.alert,.purchase-item.alert,.installment-row.alert{background:#fef3c7;border-color:#fbbf24}.receivable-item.warning,.sale-item.warning,.purchase-item.warning,.installment-row.warning{background:#fef9c3;border-color:#facc15}.summary-box.alert{background:#fef3c7;border-color:#fbbf24}.summary-box.warning{background:#fef9c3;border-color:#facc15}.receivables-summary-3,.receivables-alerts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}.alert-box{background:#f8fafc;border-radius:8px;padding:12px;border:2px solid #e2e8f0;display:flex;flex-direction:column;gap:6px}.alert-box.overdue{background:#fef2f2;border-color:#fca5a5}.alert-box.alert{background:#fef3c7;border-color:#fbbf24}.alert-box.warning{background:#fef9c3;border-color:#facc15}.alert-label{font-size:14px;font-weight:600;color:#0f172a}.alert-count{font-size:12px;color:#64748b}.installment-dates-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}@media(max-width:900px){.installment-dates-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.installment-dates-grid{grid-template-columns:1fr}}.purchase-header{cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:16px}.purchase-info{display:flex;flex-direction:column;gap:4px}.purchase-supplier{font-weight:700;color:#0f172a;font-size:15px}.purchase-meta{color:#64748b;font-size:13px}.purchase-summary{display:flex;gap:8px;align-items:center}.purchase-date{color:#64748b;font-size:13px}.purchase-total{font-weight:700;color:#0f172a;font-size:16px;margin-right:12px}.purchase-details{padding:16px;border-top:1px solid #e2e8f0;background:#fafbfc;display:flex;flex-direction:column;gap:12px}.purchase-products-section{background:#fff;padding:16px;border-radius:12px;border:1px solid #e2e8f0}.section-subtitle{margin:0 0 12px;font-size:13px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.5px}.product-detail-row{display:flex;justify-content:space-between;align-items:center;padding:12px;background:#f8fafc;border-radius:8px;margin-bottom:8px}.product-detail-row:last-child{margin-bottom:0}.product-detail-name{font-weight:600;color:#0f172a;font-size:14px;flex:2}.product-detail-qty{color:#64748b;font-size:13px;text-align:center;flex:1}.product-detail-price{color:#0f172a;font-weight:700;font-size:14px;text-align:right;flex:1}.purchase-status-section{background:#fff;padding:16px;border-radius:12px;border:1px solid #e2e8f0}.status-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0}.status-row:not(:last-child){border-bottom:1px solid #f1f5f9}.status-label{font-weight:600;color:#64748b;font-size:13px}.status-value{color:#0f172a;font-size:14px;font-weight:500}.status-actions{display:flex;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}.overdue-text{color:#dc2626!important;font-weight:700!important}.alert-text{color:#f59e0b!important;font-weight:700!important}.warning-text{color:#eab308!important;font-weight:600!important}.purchase-actions-footer{display:flex;gap:12px;justify-content:flex-end}.sale-details{padding:16px;border-top:1px solid #e2e8f0;background:#fafbfc;display:flex;flex-direction:column;gap:12px}.sale-products-section{background:#fff;padding:16px;border-radius:12px;border:1px solid #e2e8f0}.sale-notes-section{background:#fffbeb;padding:12px 16px;border-radius:12px;border:1px solid #fcd34d}.sale-notes{margin:0;color:#78350f;font-size:.875rem;line-height:1.4}.sale-payments-section{background:#fff;padding:16px;border-radius:12px;border:1px solid #e2e8f0}.sale-actions-footer{padding-top:12px;border-top:1px solid #e2e8f0;margin-top:8px}.action-btn-sm.full-width{width:100%}.sale-edit-actions,.purchase-edit-actions{display:flex;gap:8px;padding-top:12px;border-top:1px solid #e2e8f0;margin-top:12px}.action-btn-sm.danger{background:#fef2f2;color:#dc2626;border-color:#fca5a5}.action-btn-sm.danger:hover{background:#fee2e2;border-color:#f87171}.product-discount{color:#16a34a;font-size:.75rem;font-weight:600}.list-item-notes{display:block;font-size:.75rem;color:#64748b;margin-top:4px;font-style:italic;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.installment-row.paid{background:#dcfce7;border-color:#86efac}.reports-filters{display:grid;grid-template-columns:1fr 1fr auto;gap:16px;margin-bottom:24px;padding:16px;background:#f8fafc;border-radius:12px}.reports-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:24px}@media(max-width:768px){.reports-filters,.reports-grid{grid-template-columns:1fr}}.report-card{background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:12px;transition:all .2s ease}.report-card:hover{border-color:#0ea5e9;box-shadow:0 4px 12px #0ea5e91a}.report-card.success{background:#f0fdf4;border-color:#86efac}.report-card.danger{background:#fef2f2;border-color:#fca5a5}.warning-value{color:#f59e0b!important}.danger-value{color:#dc2626!important}.report-detail{font-size:12px;color:#64748b;margin-top:4px}.report-label{font-size:13px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.5px}.report-value{font-size:28px;font-weight:700;color:#0f172a}@media(max-width:600px){.dash-header{padding:12px 16px;flex-wrap:wrap;gap:12px}.header-actions{flex-wrap:wrap;gap:8px;width:100%;justify-content:flex-end}.topbar-btn{padding:6px 10px;font-size:12px}.brand-inline{gap:8px}.logo-icon{width:32px;height:32px;font-size:14px}.brand-name{font-size:16px}.dash-content{padding:16px}.card{padding:16px;border-radius:12px}.card-head{flex-direction:column;align-items:flex-start;gap:12px}.receivables-summary-3{flex-direction:column;gap:8px}.summary-box{padding:12px}.summary-count{font-size:24px}.purchase-header,.sale-header{flex-direction:column;align-items:flex-start;gap:8px;padding:12px}.purchase-summary,.sale-summary{flex-wrap:wrap;gap:6px}.purchase-total,.sale-total{font-size:14px}.pill{font-size:10px;padding:3px 8px}.purchase-details,.purchase-status-section,.purchase-products-section{padding:12px}.status-row{flex-direction:column;align-items:flex-start;gap:4px}.status-actions{flex-direction:column;width:100%}.status-actions .action-btn-sm{width:100%;text-align:center}.product-detail-row{flex-direction:column;align-items:flex-start;gap:4px}.product-detail-qty,.product-detail-price{text-align:left}.sale-installments{padding:12px}.installment-row{flex-direction:column;align-items:flex-start;gap:6px;padding:10px}.installment-amount{font-size:14px}.table{font-size:13px}.table th,.table td{padding:8px 6px}.notifications-dropdown{position:fixed;top:70px;left:16px;right:16px;width:auto;max-width:none;max-height:60vh;overflow-y:auto}.modal-split{grid-template-columns:1fr;gap:16px}.modal-split>.modal-form-side{order:-1}.modal-list,.modal-form-side{max-height:none}.list-scroll{max-height:200px}.user-menu-wrapper .user-dropdown{position:fixed;top:70px;right:16px;left:auto;width:auto;min-width:150px}.modal-overlay{padding:12px;align-items:flex-start}.modal-content{padding:16px;border-radius:12px;margin:0}.modal-title{font-size:18px}.form-grid{gap:12px}.field input,.field select,.field textarea{padding:10px 12px;font-size:16px}.form-actions{flex-direction:column;margin-top:16px}.form-actions button{width:100%}.reports-grid{grid-template-columns:1fr}.report-card{padding:16px}.report-value{font-size:22px}}
