*,:after,:before{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background-color:#f8faf6;color:#17321f;line-height:1.5;-webkit-font-smoothing:antialiased}.admin-layout{display:flex;min-height:100vh}.sidebar{width:260px;background:linear-gradient(180deg,#075b2a,#054a22);color:#fff;display:flex;flex-direction:column;position:fixed;top:0;left:0;height:100vh;z-index:100;transition:transform .3s ease;box-shadow:4px 0 24px rgba(7,91,42,.15)}.sidebar-header{padding:24px 20px;border-bottom:1px solid hsla(0,0%,100%,.12)}.sidebar-brand{display:flex;align-items:center;gap:10px}.sidebar-brand .logo-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.sidebar-brand .logo-icon img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.sidebar-header h1{font-size:18px;font-weight:700;color:#fff;letter-spacing:-.01em}.sidebar-header .brand-sub{font-size:11px;color:hsla(0,0%,100%,.55);margin-top:1px;text-transform:uppercase;letter-spacing:.08em}.sidebar-nav{flex:1;overflow-y:auto;padding:16px 12px}.sidebar-section-label{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:hsla(0,0%,100%,.4);padding:8px 8px 4px;margin-top:8px;font-weight:600}.nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;color:hsla(0,0%,100%,.75);text-decoration:none;font-size:13.5px;font-weight:500;transition:all .15s;cursor:pointer;border:none;background:none;width:100%;text-align:left;border-radius:8px;margin-bottom:2px}.nav-item:hover{background-color:hsla(0,0%,100%,.1);color:#fff}.nav-item.active{background-color:rgba(243,191,32,.18);color:#f3bf20;font-weight:600}.nav-item .nav-icon,.nav-item svg{width:18px;height:18px;flex-shrink:0;opacity:.85}.nav-item.active .nav-icon,.nav-item.active svg{opacity:1}.sidebar-footer{padding:14px 16px;border-top:1px solid hsla(0,0%,100%,.1)}.sidebar-footer .user-info{display:flex;align-items:center;gap:10px}.sidebar-footer .user-avatar{width:32px;height:32px;border-radius:50%;background:rgba(243,191,32,.25);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:#f3bf20;flex-shrink:0}.sidebar-footer .user-details{overflow:hidden}.sidebar-footer .user-name{font-size:13px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-footer .user-role{font-size:11px;color:hsla(0,0%,100%,.5)}.header{background:#f3bf20;padding:14px 28px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:50;box-shadow:0 1px 8px rgba(7,91,42,.08)}.header-title{font-size:20px;font-weight:700;color:#17321f;letter-spacing:-.01em}.header-subtitle{font-size:13px;color:#17321f;opacity:.65;margin-top:1px}.header-actions{gap:12px}.header-actions,.header-btn{display:flex;align-items:center}.header-btn{background:#fff;border:none;padding:8px 16px;border-radius:8px;font-size:13px;font-weight:500;color:#17321f;cursor:pointer;gap:6px;box-shadow:0 1px 3px rgba(0,0,0,.06);transition:all .15s}.header-btn:hover{box-shadow:0 2px 6px rgba(0,0,0,.1)}.page-content{padding:28px}.page-header{margin-bottom:24px;display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px}.page-header-text h1{font-size:22px;font-weight:700;color:#17321f;letter-spacing:-.01em}.page-header-text p{font-size:13.5px;color:#6b7280;margin-top:2px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;margin-bottom:28px}.stat-card{background:#fff;border-radius:14px;border:1px solid #e5e7eb;padding:20px;display:flex;align-items:center;gap:16px;box-shadow:0 1px 3px rgba(0,0,0,.03);transition:box-shadow .2s,transform .2s}.stat-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.06);transform:translateY(-1px)}.stat-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:22px}.stat-icon.green{background-color:#dcfce7;color:#075b2a}.stat-icon.gold{background-color:#fef3c7;color:#92400e}.stat-icon.blue{background-color:#dbeafe;color:#1e40af}.stat-icon.red{background-color:#fee2e2;color:#991b1b}.stat-icon.cream{background-color:#fffdf4;color:#075b2a;border:1px solid #f3bf20}.stat-info h3{font-size:13px;color:#6b7280;font-weight:500;margin-bottom:2px}.stat-info p{font-size:24px;font-weight:700;color:#17321f;letter-spacing:-.02em}.stat-info .stat-change{font-size:12px;font-weight:500;margin-top:2px}.stat-change.up{color:#075b2a}.stat-change.down{color:#c94b35}.card{background:#fff;border-radius:14px;border:1px solid #e5e7eb;padding:24px;margin-bottom:20px;box-shadow:0 1px 3px rgba(0,0,0,.03)}.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.card-title{font-size:16px;font-weight:700;color:#17321f;letter-spacing:-.01em}.card-subtitle{font-size:13px;color:#6b7280;margin-top:2px}.table-container{overflow-x:auto;border:1px solid #e5e7eb;border-radius:14px}table{width:100%;border-collapse:collapse;font-size:13.5px}thead{background-color:#f8faf6}thead th{text-align:left;padding:12px 16px;font-weight:600;color:#6b7280;font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid #e5e7eb}tbody td{padding:14px 16px;border-bottom:1px solid #f3f4f6;color:#17321f}tbody tr{transition:background-color .1s}tbody tr:hover td{background-color:#fffdf4}tbody tr:last-child td{border-bottom:none}.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;border-radius:10px;font-size:13.5px;font-weight:600;cursor:pointer;border:none;transition:all .15s;text-decoration:none;white-space:nowrap}.btn-primary{background-color:#075b2a;color:#fff;box-shadow:0 1px 3px rgba(7,91,42,.2)}.btn-primary:hover{background-color:#054a22;box-shadow:0 2px 6px rgba(7,91,42,.3)}.btn-secondary{background-color:#f3bf20;color:#17321f}.btn-secondary:hover{background-color:#e5ac15}.btn-outline{background-color:#fff;color:#075b2a;border:1.5px solid #075b2a}.btn-outline:hover{background-color:#075b2a;color:#fff}.btn-sm{padding:6px 14px;font-size:12.5px;border-radius:8px}.btn-danger{background-color:#c94b35;color:#fff}.btn-danger:hover{background-color:#b33e2a}.btn-ghost{background:transparent;color:#6b7280;padding:6px 10px}.btn-ghost:hover{background:#f3f4f6;color:#17321f}.form-group{margin-bottom:20px}.form-label{display:block;font-size:13.5px;font-weight:600;color:#374151;margin-bottom:6px}.form-input{width:100%;padding:10px 14px;border:1.5px solid #e5e7eb;border-radius:10px;font-size:14px;color:#17321f;background:#fff;transition:border-color .15s,box-shadow .15s}.form-input:focus{outline:none;border-color:#075b2a;box-shadow:0 0 0 3px rgba(7,91,42,.08)}.form-input::-moz-placeholder{color:#9ca3af}.form-input::placeholder{color:#9ca3af}select.form-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px}textarea.form-input{resize:vertical;min-height:80px}.badge{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;border-radius:9999px;font-size:12px;font-weight:600;letter-spacing:.01em}.badge-green{background-color:#dcfce7;color:#166534}.badge-yellow{background-color:#fef3c7;color:#92400e}.badge-red{background-color:#fee2e2;color:#991b1b}.badge-blue{background-color:#dbeafe;color:#1e40af}.badge-gray{background-color:#f3f4f6;color:#374151}.badge-gold{background-color:#fffdf4;color:#92400e;border:1px solid #f3bf20}.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);backdrop-filter:blur(4px);z-index:200;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:#fff;border-radius:16px;width:100%;max-width:580px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.15);animation:modalIn .2s ease-out}@keyframes modalIn{0%{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{padding:20px 24px;border-bottom:1px solid #f3f4f6;display:flex;align-items:center;justify-content:space-between}.modal-header h2{font-size:18px;font-weight:700;color:#17321f}.modal-close{background:none;border:none;font-size:22px;color:#9ca3af;cursor:pointer;padding:4px;border-radius:6px;line-height:1;transition:all .15s}.modal-close:hover{background:#f3f4f6;color:#17321f}.modal-body{padding:24px}.modal-footer{padding:16px 24px;border-top:1px solid #f3f4f6;display:flex;justify-content:flex-end;gap:10px}.invoice-print{background:#fff;padding:40px;border-radius:12px;max-width:700px;margin:0 auto}.invoice-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;padding-bottom:16px;border-bottom:2px solid #075b2a}.invoice-company{gap:12px}.invoice-company,.invoice-logo{display:flex;align-items:center}.invoice-logo{width:44px;height:44px;background:#075b2a;border-radius:10px;justify-content:center;color:#f3bf20;font-size:22px;font-weight:700}.invoice-company h2{font-size:20px;font-weight:700;color:#075b2a}.invoice-company p{font-size:12px;color:#6b7280}.invoice-meta{text-align:right}.invoice-meta .inv-number{font-size:16px;font-weight:700;color:#17321f}.invoice-meta .inv-date{font-size:13px;color:#6b7280;margin-top:2px}.invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.invoice-party{padding:14px 16px;background:#f8faf6;border-radius:10px;border-left:3px solid #f3bf20}.invoice-party h4{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;margin-bottom:6px;font-weight:600}.invoice-party p{font-size:14px;color:#17321f;font-weight:600}.invoice-party span{font-size:12px;color:#6b7280;font-weight:400}.invoice-table{width:100%;border-collapse:collapse;margin-bottom:20px}.invoice-table th{background:#075b2a;color:#fff;padding:10px 14px;font-size:12px;text-transform:uppercase;letter-spacing:.04em;font-weight:600;text-align:left}.invoice-table th:last-child{text-align:right}.invoice-table td{padding:12px 14px;border-bottom:1px solid #f3f4f6;font-size:13.5px}.invoice-table td:last-child{text-align:right;font-weight:600}.invoice-table tr:last-child td{border-bottom:none}.invoice-total{display:flex;justify-content:flex-end;margin-top:8px}.invoice-total-box{min-width:220px;background:#fffdf4;border:1px solid #f3bf20;border-radius:10px;padding:14px 18px}.invoice-total-row{display:flex;justify-content:space-between;font-size:13.5px;padding:4px 0}.invoice-total-row.total{font-size:18px;font-weight:700;color:#075b2a;padding-top:8px;margin-top:4px;border-top:1px solid #f3bf20}.invoice-footer{margin-top:24px;padding-top:16px;border-top:1px solid #e5e7eb;text-align:center;font-size:12px;color:#9ca3af}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#075b2a,#0d7a38);padding:20px}.login-card{background:#fff;border-radius:20px;border:1px solid #e5e7eb;padding:44px;width:100%;max-width:420px;box-shadow:0 20px 60px rgba(0,0,0,.15)}.login-header{text-align:center;margin-bottom:32px}.login-header .logo{width:72px;height:72px;display:inline-flex;align-items:center;justify-content:center;margin-bottom:14px}.login-header .logo img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.login-header h2{font-size:24px;font-weight:700;color:#17321f;margin-bottom:4px}.login-header p{font-size:14px;color:#6b7280}.error-message{background-color:#fee2e2;color:#991b1b;border-radius:10px;border:1px solid #fecaca}.error-message,.success-message{padding:10px 14px;font-size:13px;margin-bottom:16px}.success-message{background-color:#dcfce7;color:#166534;border-radius:10px;border:1px solid #bbf7d0}.login-footer{margin-top:24px;padding-top:20px;border-top:1px solid #f3f4f6;text-align:center}.login-footer p{font-size:12px;color:#9ca3af;margin-bottom:4px}.login-footer .demo-label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#075b2a;font-weight:600;margin-bottom:6px}.mobile-header{display:none;background:#075b2a;padding:12px 16px;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:50}.mobile-header h2{color:#f3bf20;font-size:18px;font-weight:700}.menu-toggle{display:none;background:none;border:none;color:#fff;cursor:pointer;padding:4px}.sidebar-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:99}.grid-2{grid-template-columns:repeat(2,1fr)}.grid-2,.grid-3{display:grid;gap:20px}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.flex-wrap{flex-wrap:wrap}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.p-0{padding:0}.text-sm{font-size:14px}.text-xs{font-size:12px}.text-lg{font-size:18px}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.text-gray{color:#6b7280}.text-green{color:#075b2a}.text-gold{color:#92400e}.text-danger{color:#c94b35}.text-white{color:#fff}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty-state{text-align:center;padding:48px 20px;color:#9ca3af}.empty-state svg{width:48px;height:48px;margin-bottom:12px;opacity:.5}.empty-state p{font-size:14px}.loading{display:flex;align-items:center;justify-content:center;padding:48px}.spinner{width:32px;height:32px;border:3px solid #e5e7eb;border-top-color:#075b2a;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.action-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap}.search-input{flex:1;min-width:220px;max-width:360px;padding:9px 14px 9px 36px;border:1.5px solid #e5e7eb;border-radius:10px;font-size:13.5px;color:#17321f;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 12px no-repeat;transition:border-color .15s,box-shadow .15s}.search-input:focus{outline:none;border-color:#075b2a;box-shadow:0 0 0 3px rgba(7,91,42,.08)}.main-content{flex:1;margin-left:260px;min-height:100vh;width:calc(100% - 260px);min-width:0}@media (max-width:1024px){.grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}}@media screen and (max-width:768px){.sidebar{transform:translateX(-100%)}.sidebar.open{transform:translateX(0)}.sidebar-overlay.open{display:block}.mobile-content-wrap{margin-left:0;width:100%}.mobile-header{display:flex}.menu-toggle{display:block}.grid-2,.grid-3,.grid-4,.stats-grid{grid-template-columns:1fr}.page-content{padding:16px}.invoice-parties{grid-template-columns:1fr}}.ledger{display:flex;flex-direction:column;gap:20px}.ledger-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.ledger-tile{gap:14px;background:#fff;border:1px solid #e7eee5;border-radius:14px;padding:18px 20px}.ledger-tile,.ledger-tile-icon{display:flex;align-items:center}.ledger-tile-icon{width:44px;height:44px;border-radius:12px;justify-content:center;flex-shrink:0}.ledger-tile-label{font-size:13px;color:#6b7280;margin:0}.ledger-tile-value{font-size:22px;font-weight:700;margin:2px 0 0;line-height:1.2}.ledger-tile-sub{font-size:12px;color:#9ca3af;margin:2px 0 0}.ledger-card{padding:0!important;overflow:hidden}.ledger-toolbar{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #eef2ec}.ledger-tabs{display:inline-flex;background:#f3f6f1;border-radius:10px;padding:4px;gap:2px}.ledger-tab{border:none;background:transparent;padding:7px 14px;border-radius:8px;font-size:13px;font-weight:500;color:#4b5563;cursor:pointer}.ledger-tab.active{background:#fff;color:#075b2a;box-shadow:0 1px 3px rgba(23,50,31,.12)}.ledger-search{display:flex;align-items:center;gap:8px;border:1px solid #dde6db;border-radius:10px;padding:8px 12px;color:#9ca3af;min-width:260px;flex:0 1 320px;background:#fff}.ledger-search input{border:none;outline:none;font-size:14px;color:#17321f;width:100%;background:transparent}.ledger-empty{padding:48px 20px;text-align:center;color:#9ca3af;font-size:14px}.ledger-table-wrap{overflow-x:auto}.ledger-table{width:100%;border-collapse:collapse;font-size:14px}.ledger-table th{text-align:left;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#6b7280;background:#fafcf9;padding:11px 18px;border-bottom:1px solid #eef2ec;white-space:nowrap}.ledger-table td{padding:12px 18px;border-bottom:1px solid #f1f4ef;color:#374151;vertical-align:middle;white-space:nowrap}.ledger-table tbody tr:hover{background:#fbfdf9}.ledger-table tbody tr:last-child td{border-bottom:none}.ledger-muted{color:#6b7280!important}.ledger-party{gap:10px}.ledger-avatar,.ledger-party{display:flex;align-items:center}.ledger-avatar{width:34px;height:34px;border-radius:50%;background:#e8f5ec;color:#075b2a;font-size:12px;font-weight:700;justify-content:center;flex-shrink:0}.ledger-party-name{margin:0;font-weight:600;color:#17321f}.ledger-party-sub{margin:1px 0 0;font-size:12px;color:#9ca3af}.ledger-pill{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600}.ledger-pill.done{background:#e8f5ec;color:#075b2a}.ledger-pill.pending{background:#fdf3d7;color:#92400e}.ledger-actions{display:flex;justify-content:flex-end;align-items:center;gap:6px}.ledger-btn{display:inline-flex;align-items:center;gap:5px;border-radius:8px;padding:6px 12px;font-size:13px;font-weight:600;cursor:pointer;border:1px solid transparent}.ledger-btn.primary{background:#075b2a;color:#fff}.ledger-btn.primary:hover{background:#0d7a38}.ledger-icon{width:32px;height:32px;border-radius:8px;border:1px solid #dde6db;background:#fff;color:#075b2a;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.ledger-icon:hover{background:#f1f7ef}.ledger-icon.danger{color:#c94b35}.ledger-icon.danger:hover{background:#fdf0ed;border-color:#f2c7bd}.ledger-icon:disabled{opacity:.5;cursor:not-allowed}@media screen and (max-width:768px){.ledger-search{min-width:0;flex:1 1 100%}}