*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;font-size:15px;line-height:1.55;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#eef4f8;color:#1f2937}button,input,select,textarea,optgroup,fieldset,legend{font-family:inherit;font-size:inherit;line-height:inherit}button{font:inherit}.app-shell{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh}.dashboard{flex:1;padding:24px;background:linear-gradient(180deg,#f8fbfd,#edf4fa)}.sidebar{background:#0f172a;color:#f8fafc;padding:32px 24px;display:flex;flex-direction:column;gap:32px}.brand{display:flex;align-items:center;gap:16px}.brand-icon{width:52px;height:52px;border-radius:18px;background:#1d4ed8;display:grid;place-items:center;font-size:22px}.brand h2{margin:0 0 4px;font-size:20px}.brand p{margin:0;opacity:.75;font-size:14px}.nav-menu{display:grid;gap:10px}.nav-item{width:100%;text-align:left;background:transparent;color:#cbd5e1;border:none;padding:14px 18px;border-radius:14px;cursor:pointer;transition:background .2s ease,color .2s ease}.nav-item:hover,.nav-item.active{background:#ffffff14;color:#f8fafc}.logout-button{margin-top:auto;border:none;background:#1d4ed8;color:#fff;padding:14px 18px;border-radius:14px;cursor:pointer}.dashboard{padding:28px}.topbar{display:flex;align-items:center}.admin-topbar{min-height:88px;height:88px;width:100%;background:#fff0;border:1px solid #02081317;border-radius:20px;padding:12px 26px;margin-bottom:24px;box-shadow:0 3px 10px #1e293b0a;display:flex;align-items:center;gap:24px}.topbar-left{display:flex;align-items:center;gap:16px;flex:0 0 auto}.topbar-empty-space{width:72px}.topbar-center{display:flex;align-items:center;justify-content:center;flex:1 1 auto}.topbar-label{font-size:12px;font-weight:700;color:#0f172a;letter-spacing:.1em;text-transform:uppercase}.topbar-select-wrap{min-width:220px}.topbar-select{width:100%;border-radius:14px;border:1px solid rgba(148,163,184,.35);background:#fffffffa;color:#0f172a;padding:10px 14px;font-size:13px;font-weight:700;height:40px}.topbar-right{display:flex;align-items:center;gap:10px;justify-content:flex-end;flex:0 0 auto}.topbar-search{min-width:min(500px,50vw);max-width:620px;display:flex;align-items:center;gap:10px;border-radius:14px;border:1px solid rgba(148,163,184,.25);background:#fffffff5;padding:10px 16px;height:46px}.topbar-search .search-icon{color:#475569;font-size:20px;line-height:1}.topbar-search input{border:none;outline:none;background:transparent;flex:1;min-width:220px;font-size:14px}.search-button{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;color:#1e293b;background:#15488b2c}.top-profile-chip{background:#fffffff5;color:#1c3eaf;border:1px solid rgba(231,238,249,.9);border-radius:999px;padding:8px 12px;gap:8px}.top-profile-chip strong{display:block;font-size:13px;color:#0f172a;background:transparent}.top-profile-chip span{display:block;font-size:11px;color:#64748b}.profile-chip{display:inline-flex;align-items:center;gap:12px;background:#fff;border-radius:999px;padding:10px 16px}.profile-avatar{width:38px;height:38px;border-radius:50%;background:#c7d2fe;color:#1e3a8a;display:grid;place-items:center;font-weight:700}.profile-copy{line-height:1.12}.profile-copy strong{display:block;font-size:12px;color:#172554}.profile-copy span{display:block;font-size:11px;color:#64748b}.profile-chevron{font-size:16px;color:#64748b}.overline{margin:0;font-size:14px;letter-spacing:.1em;text-transform:uppercase;color:#2563eb}.topbar h1{margin:8px 0 0;font-size:32px}.profile-chip{display:inline-flex;align-items:center;gap:12px;background:#fff;border-radius:999px;padding:10px 16px;box-shadow:0 16px 50px #0f172a14}.profile-avatar{width:44px;height:44px;border-radius:50%;background:#c7d2fe;color:#1e3a8a;display:grid;place-items:center;font-weight:700}.profile-chip strong,.profile-chip span{display:block}.profile-chip span{font-size:13px;color:#64748b}.stats-grid{display:grid;gap:20px;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:28px}.stat-card{padding:24px;border-radius:28px;box-shadow:0 20px 50px #0f172a14}.stat-card h2,.stat-card p,.stat-header span{color:#fff}.stat-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.stat-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#fff3;color:#fff}.stat-card h2{margin:0 0 8px;font-size:36px}.stat-card p{margin:0}.stat-blue{background:linear-gradient(180deg,#3b82f6,#2563eb)}.stat-orange{background:linear-gradient(180deg,#ebad10,#f59e0b)}.stat-green{background:linear-gradient(180deg,#0ada56,#4ade80)}.stat-purple{background:linear-gradient(180deg,#a78bfa,#8b5cf6)}.dashboard-body{display:grid;gap:24px;grid-template-columns:1.6fr 1fr}.card{background:#fff;border-radius:28px;padding:26px;box-shadow:0 20px 50px #0f172a14;border:1px solid rgba(148,163,184,.16)}.section-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.section-header h2{margin:0;font-size:20px}.user-form{display:grid;gap:20px;padding:24px}.user-form .section-header{margin-bottom:0}.user-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.user-form label{display:flex;flex-direction:column;gap:7px;color:#334155;font-size:14px;font-weight:600}.user-form input,.user-form select{width:100%;min-height:46px;border:1px solid #dbe4f0;border-radius:12px;padding:10px 12px;color:#0f172a;background:#fff;box-shadow:inset 0 1px 2px #0f172a0a}.user-form input:focus,.user-form select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb24}.user-form .auth-error{margin:-4px 0 0}.user-form>.primary-button{justify-self:start}.secondary-button{border:1px solid #cbd5e1;background:transparent;color:#475569;padding:11px 18px;border-radius:14px;cursor:pointer}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:740px}thead th{text-align:left;padding:14px 12px;color:#64748b;font-size:13px;text-transform:uppercase;letter-spacing:.04em}tbody td{padding:16px 12px;border-top:1px solid #e2e8f0;color:#334155;font-size:14px;white-space:nowrap;vertical-align:middle}.status-pill{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;font-size:13px;font-weight:600}.status-received{background:#10b9811f;color:#115e3d}.status-pending{background:#f59e0b1a;color:#78350f}.status-chart{display:grid;gap:24px;align-items:center}.donut-chart{width:220px;height:220px;border-radius:50%;background:conic-gradient(#10b981 0 85%,#f59e0b 0 100%);display:grid;place-items:center;color:#1f2937;font-size:28px;font-weight:700;margin:0 auto;position:relative}.donut-chart:before{content:"";width:118px;height:118px;background:#f8fafc;border-radius:50%;position:absolute}.donut-chart span{position:relative;z-index:1}.status-list{display:grid;gap:16px}.status-item{display:flex;align-items:center;gap:14px}.status-color{width:14px;height:14px;border-radius:999px}.status-color.received{background:green}.status-color.pending{background:red}.status-item strong{display:block;font-size:15px}.status-item p{margin:2px 0 0;color:#64748b;font-size:14px}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(135deg,#eff6ff,#f8fafc)}.auth-card{width:min(100%,480px);background:#fff;border-radius:28px;padding:32px;box-shadow:0 24px 70px #0f172a1f}.auth-header{display:flex;align-items:center;gap:16px;margin-bottom:24px}.auth-brand-icon{width:58px;height:58px;font-size:24px}.auth-header h1{margin:6px 0 8px;font-size:28px}.auth-subtitle{margin:0;color:#64748b;line-height:1.6}.auth-toggle{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.auth-toggle-button{border:1px solid #dbe4f0;background:#f8fafc;color:#475569;padding:12px 14px;border-radius:14px;cursor:pointer}.auth-toggle-button.active{background:#2563eb;color:#fff;border-color:#2563eb}.auth-form{display:grid;gap:16px}.auth-form label{display:flex;flex-direction:column;gap:8px;color:#334155;font-size:14px;font-weight:600}.auth-form input{border:1px solid #dbe4f0;border-radius:12px;padding:12px 14px;font:inherit;color:#0f172a;background:#fff}.password-input-wrapper{position:relative}.password-input-wrapper input{width:100%;padding-right:48px}.password-visibility-button{position:absolute;top:50%;right:8px;display:grid;width:34px;height:34px;padding:0;border:0;border-radius:8px;place-items:center;transform:translateY(-50%);color:#64748b;background:transparent;cursor:pointer}.password-visibility-button:hover,.password-visibility-button:focus-visible{color:#2563eb;background:#eff6ff}.password-visibility-button:focus-visible{outline:2px solid #2563eb;outline-offset:1px}.password-visibility-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.auth-form input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb24}.auth-error{margin:0;color:#dc2626;font-size:14px}.auth-success{margin:0 0 16px;padding:12px 16px;border:1px solid #86efac;border-radius:10px;background:#f0fdf4;color:#166534;font-weight:600}.auth-submit{width:100%;justify-content:center}@media(max-width:1160px){.app-shell{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-body{grid-template-columns:1fr}}@media(max-width:720px){.stats-grid{grid-template-columns:1fr}.topbar{flex-direction:column;align-items:flex-start}.profile-chip{width:100%;justify-content:flex-start}.parties-layout,.form-grid{grid-template-columns:1fr}.auth-card{padding:24px}.auth-header{flex-direction:column;align-items:flex-start}.user-form .form-grid{grid-template-columns:1fr}.user-form>.primary-button{width:100%}}.main-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:4px}.main-header .page-title{margin:8px 0 0;font-size:34px;line-height:1.05;color:var(--text-primary, #172554)}.page-kicker{color:#2563eb;font-weight:700;font-size:13px;letter-spacing:.12em;text-transform:uppercase}.add-button{min-width:176px}.parties-page{display:grid;gap:24px}.page-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:4px}.page-header h1{margin:6px 0 8px;font-size:32px}.page-subtitle,.section-copy{margin:0;color:#64748b}.page-actions,.toolbar-group{display:flex;align-items:center;gap:12px}.primary-button{border:none;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;padding:12px 18px;border-radius:14px;cursor:pointer;box-shadow:0 10px 24px #2563eb2e}.parties-stats{display:grid;gap:20px;grid-template-columns:repeat(4,minmax(0,1fr))}.parties-shell{display:grid;gap:24px;grid-template-columns:320px 1fr}.party-sidebar{display:flex;flex-direction:column;gap:16px;background:linear-gradient(180deg,#fff,#f8fbff)}.sidebar-header{margin-bottom:0}.party-list{display:flex;flex-direction:column;gap:10px}.party-chip{display:flex;align-items:center;gap:12px;border:1px solid #dbe4f0;background:#f8fafc;color:#334155;padding:12px 14px;border-radius:16px;cursor:pointer;text-align:left;transition:all .2s ease}.party-chip:hover{transform:translateY(-1px);border-color:#93c5fd;box-shadow:0 10px 25px #2563eb14}.party-chip.active{background:#eff6ff;color:#1d4ed8;border-color:#93c5fd}.party-avatar{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;display:grid;place-items:center;font-weight:700;flex-shrink:0}.party-chip-content{display:flex;flex-direction:column;gap:4px;flex:1}.party-chip-title{font-weight:700}.party-chip-meta{font-size:13px;color:#64748b}.party-chip.active .party-chip-meta{color:#1d4ed8}.party-status-dot{width:10px;height:10px;border-radius:999px;flex-shrink:0}.party-status-dot.active{background:green}.party-status-dot.inactive{background:red}.search-field{display:inline-flex;align-items:center;gap:8px;border:1px solid #dbe4f0;padding:10px 12px;border-radius:12px;background:#f8fafc;box-shadow:inset 0 1px 2px #0f172a08}.search-field input{border:none;outline:none;background:transparent;min-width:160px}.status-archived{background:#64748b24;color:#475569}.parties-layout{display:grid;gap:24px;grid-template-columns:1.8fr 1fr}.party-row{cursor:pointer;transition:background .2s ease,transform .2s ease}.party-row:hover{background:#f8fafc}.party-row.selected{background:#eff6ff}.party-dashboard-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(880px,1fr);gap:20px;align-items:stretch}.party-list-panel{background:linear-gradient(180deg,#eef7ff,#fff);border-radius:28px;padding:20px;min-height:560px;border:1px solid #bfd8ee}.party-list-panel.card{border-color:#cbd5e1}.panel-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.panel-title{font-size:22px;font-weight:800;color:#172554}.party-search-wrap{margin-bottom:12px}.party-search-field{width:100%;min-height:40px;display:flex;align-items:center;border-radius:14px;border:1px solid #cbd5e1;background:#fff}.party-search-field .search-icon{font-size:22px;line-height:1;color:#64748b;padding-left:10px}.party-search-field input{width:100%;border:none;outline:none;background:transparent;padding:0 12px;font-size:13px}.party-card-list{display:flex;flex-direction:column;gap:12px}.party-card{position:relative;display:flex;align-items:center;gap:12px;width:100%;border-radius:20px;background:linear-gradient(135deg,#fff,#eefaff);border:1px solid #cbd5e1;padding:12px 10px;box-shadow:0 8px 22px #1e40af0f;cursor:pointer;transition:all .18s ease}.party-card:hover{border-color:#60a5fa;transform:translateY(-1px)}.party-card.selected{background:#eaf5ff;border-color:#2563eb;box-shadow:inset 0 0 0 1px #bfdbfe}.party-avatar-badge{width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,#1d4ed8,#2563eb);display:grid;place-items:center;color:#fff;font-size:20px;font-weight:800}.party-card-content{flex:1;display:flex;flex-direction:column;align-items:flex-start}.party-card-name{display:block;font-size:15px;font-weight:700;color:#172554}.party-card-location{display:block;margin-top:4px;color:#475569;font-size:12px}.party-card-meta{margin-top:8px;display:flex;align-items:center;gap:8px;font-size:11px;color:#64748b}.separator-dot{width:4px;height:4px;border-radius:50%;background:#94a3b8;display:inline-block}.party-pending-count{color:#f97316}.active-status-dot{width:11px;height:11px;border-radius:50%;background:green;border:1px solid green;position:absolute;right:14px;top:14px}.party-details-panel{border-radius:28px;background:linear-gradient(180deg,#fff,#f8fbff);padding:28px;border:1px solid #dbeafe;box-shadow:0 14px 34px #1e40af0f}.details-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:20px}.detail-kicker{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#64748b}.detail-title{margin:8px 0 12px;font-size:30px;color:#172554}.detail-subtitle{font-size:13px;color:#64748b;display:flex;align-items:center;gap:10px}.status-active{border-color:#86efac;border:1px solid #86efac;background:#dcfce7;color:#166534}.summary-card-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:14px;margin-top:10px}.summary-card{border-radius:20px;padding:20px;min-height:126px;color:#fff;box-shadow:0 18px 30px #0f172a14}.summary-card.blue{background:linear-gradient(180deg,#3b82f6,#2563eb)}.summary-card.orange{background:linear-gradient(180deg,#d69c09,#f59e0b)}.summary-card.green{background:linear-gradient(180deg,#0ad655,#4ade80)}.summary-card-top{display:flex;align-items:center;gap:12px}.icon-slab{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#fff3;color:#fff;font-size:18px}.summary-title{font-size:13px;font-weight:800;color:#ffffffeb}.summary-value{font-size:34px;font-weight:800;line-height:1.2;margin-top:12px}.summary-detail{margin-top:6px;color:#fff;font-size:12px}.parcel-table-section{margin-top:26px}.table-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.table-topbar .panel-title{font-size:24px;font-weight:800;color:#172554;line-height:1.2}.table-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-start;width:100%;margin-bottom:14px}.select-control{border-radius:12px;border:1px solid #cbd5e1;background:#fff;padding:10px 14px;color:#334155;min-height:40px}.add-parcel-button{padding:10px 16px;font-size:13px;font-weight:700;line-height:1.4;border-radius:14px;min-height:42px;margin-left:auto;color:#fff;text-transform:none;letter-spacing:.01em;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.table-search-field{display:flex;align-items:center;gap:8px;border:1px solid #cbd5e1;background:#f8fafc;border-radius:12px;padding:10px 12px;min-height:40px;min-width:min(420px,34vw)}.table-search-field input{border:none;outline:none;background:transparent;min-width:180px;width:100%}.modern-table-wrap{border:1px solid #dbeafe;border-radius:20px;overflow:hidden;background:#fff}.parcel-table{min-width:100%}.parcel-table thead{background:#eef6ff}.parcel-table thead th{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#475569}.parcel-table tbody tr{transition:background-color .16s ease}.parcel-table tbody tr:hover{background:#f8fbff}.parcel-table td{padding:14px 12px;border-top:1px solid #e2e8f0}.sr-no{color:#2563eb;font-weight:800}.status-pill.status-active{padding-inline:14px}.action-cell{display:flex;align-items:center;gap:6px}.icon-button{width:34px;height:34px;border-radius:10px;border:1px solid #d6eaff;background:#eff6ff;color:#2563eb;display:inline-grid;place-items:center;font-size:14px;cursor:pointer}.icon-button.delete-button{width:40px;height:40px;border-color:#fca5a5;background:#fee2e2;color:#991b1b;font-size:16px;font-weight:700;box-shadow:inset 0 0 0 1px #f9636326}.icon-button.delete-button:hover{background:#fecaca}.status-toggle-button{border:1px solid transparent;border-radius:12px;background:#eff6ff;color:#1d4ed8;padding:10px 14px;font-size:13px;font-weight:700;cursor:pointer;transition:all .18s ease}.status-toggle-button.receive{background:#dcfce7;border-color:#bbf7d0;color:#166534}.status-toggle-button.pending{background:#fee2e2;border-color:#fca5a5;color:#991b1b}.icon-button.receive-button{background:#dcfce7;color:#166534}.empty-row{text-align:center;color:#64748b}@media(max-width:1100px){.party-dashboard-layout{grid-template-columns:1fr}.party-list-panel{min-height:unset}.summary-card-grid{grid-template-columns:1fr}}.party-summary-top{display:flex;justify-content:space-between;align-items:center;gap:16px}.party-status-badges{display:flex;gap:10px;flex-wrap:wrap}.party-summary-grid{display:grid;gap:16px;grid-template-columns:repeat(4,minmax(0,1fr))}.party-form-card{display:grid;gap:18px;background:linear-gradient(135deg,#fff,#f8fbff)}.party-summary-grid>div{padding:16px;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#eef4ff);display:flex;flex-direction:column;gap:6px;border:1px solid rgba(37,99,235,.08)}.status-action{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.small-button{padding:7px 10px;font-size:12px;border-radius:10px}.party-add-form{margin-bottom:18px;padding:16px;border-radius:20px;background:#f8fbff;border:1px solid #dbe4f0;display:grid;gap:10px}.form-row{display:grid;gap:10px}.party-input{width:100%;border-radius:12px;border:1px solid #cbd5e1;padding:10px 12px;font:inherit;color:#0f172a;background:#fff}.form-actions{display:flex;gap:10px;flex-wrap:wrap}.secondary-button{border:1px solid #fca5a5;background:#fee2e2;color:#b91c1c;transition:all .18s ease}.secondary-button:hover{background:#fecaca;border-color:#f87171}.details-actions{display:flex;align-items:center;gap:12px}.details-actions .secondary-button{min-width:150px;padding:12px 22px;font-weight:700;border-radius:999px;border:none;background:#d40808;color:#fff;box-shadow:0 10px 24px #ef444429}.details-actions .secondary-button:hover{transform:scale(1.02)}.detail-label{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b}@media(max-width:860px){.party-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.party-summary-top{flex-direction:column;align-items:flex-start}.party-summary-grid{grid-template-columns:1fr}}.payment-input{width:100%;min-width:110px;border:1px solid #dbe4f0;border-radius:10px;padding:8px 10px;font:inherit;color:#0f172a;background:#f8fafc}.payment-editor{display:flex;align-items:center;gap:8px}.payment-input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1f}.form-card{padding:15px;border:1px solid #e2e8f0}.parcel-form{display:grid;gap:16px}.form-grid{display:grid;gap:12px;grid-template-columns:1fr}.parcel-form label{display:flex;flex-direction:column;gap:6px;color:#334155;font-size:14px;font-weight:600}.field-error{color:#dc2626;font-size:12px;font-weight:600}.parcel-form input,.parcel-form select{border:1px solid #dbe4f0;border-radius:12px;padding:10px 12px;font:inherit;color:#0f172a;background:#fff;box-shadow:inset 0 1px 2px #0f172a0a}.parcel-form input:focus,.parcel-form select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb24}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:6px}.report-card{padding:24px}.settings-list{display:grid;gap:14px}.setting-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}.setting-item h3{margin:0 0 4px;font-size:16px}.setting-item p{margin:0;color:#64748b;font-size:14px}.setting-item p .settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.setting-item p .setting-checkbox{display:flex;align-items:center;gap:10px;color:#334155;font-weight:600}.setting-item p .setting-checkbox input{width:18px;height:18px}
