/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.z-50{z-index:50}.container{width:100%}.mx-auto{margin-inline:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.h-auto{height:auto}.max-h-screen{max-height:100vh}.w-full{width:100%}.min-w-\[4rem\]{min-width:4rem}.flex-1{flex:1}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-b-4{border-bottom-style:var(--tw-border-style);border-bottom-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.break-words{overflow-wrap:break-word}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}body{min-width:320px;min-height:100vh;margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}:root{font-weight:400;line-height:1.5}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}.auth-page-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f5f5f5;position:relative;overflow:hidden;zoom:.9}.auth-content{position:relative;z-index:10;width:100%;max-width:440px;padding:20px}.auth-brand{text-align:center;margin-bottom:32px;display:flex;flex-direction:column;align-items:center;gap:16px}.company-logo-container{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}.company-logo{max-width:200px;max-height:120px;width:auto;height:auto;-o-object-fit:contain;object-fit:contain;display:block}.company-logo-fallback{display:flex;flex-direction:column;align-items:center;gap:16px}.brand-icon{width:48px;height:48px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 4px 16px #667eea4d}.brand-title{font-size:28px;font-weight:700;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin:0;letter-spacing:-.5px}.auth-card{background:#fff;border-radius:20px;padding:36px;box-shadow:0 10px 40px #00000014}.auth-tabs{display:flex;margin-bottom:28px;border-bottom:2px solid #f0f0f0}.auth-tab{display:flex;align-items:center;gap:8px;padding:12px 0;font-size:16px;font-weight:600;color:#667eea;border-bottom:2px solid #667eea;margin-bottom:-2px}.auth-tab svg{width:20px;height:20px}.auth-form{display:flex;flex-direction:column;gap:20px}.alert{padding:12px 16px;border-radius:10px;display:flex;align-items:center;gap:10px;font-size:14px;animation:slideIn .3s ease-out}.alert-error{background:#fee;color:#c33;border:1px solid #fcc}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.input-group{display:flex;flex-direction:column;gap:8px}.input-label{font-size:14px;font-weight:600;color:#333;margin-left:4px}.input-wrapper{position:relative;display:flex;align-items:center}.input-icon{position:absolute;left:14px;color:#999;pointer-events:none}.auth-input{width:100%;padding:12px 14px 12px 44px;border:2px solid #e8e8e8;border-radius:10px;font-size:15px;transition:all .2s ease;background:#fafafa}.auth-input:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a}.password-toggle{position:absolute;right:14px;background:none;border:none;color:#999;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;transition:color .2s ease}.password-toggle:hover{color:#667eea}.auth-submit-btn{width:100%;padding:14px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .3s ease;margin-top:8px}.auth-submit-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #667eea4d}.auth-submit-btn:disabled{opacity:.6;cursor:not-allowed}.loading-spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}.auth-footer{margin-top:24px;padding-top:24px;border-top:1px solid #f0f0f0;text-align:center;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;color:#666}@media (max-width: 480px){.auth-content{max-width:100%;padding:16px}.auth-card{padding:28px 24px}.company-logo{max-width:160px;max-height:100px}.brand-title{font-size:24px}}.welcome-header{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:20px;padding:30px;margin-bottom:30px;box-shadow:0 10px 40px #0000001a;color:#fff;display:flex;align-items:center;justify-content:center;gap:20px}.welcome-icon{width:60px;height:60px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px #0003;flex-shrink:0}.welcome-title{font-size:28px;font-weight:700;margin:0;text-align:center}.summary-card{background:#fff;border-radius:16px;padding:14px 20px;margin-bottom:20px;box-shadow:0 4px 16px #0000000f;display:flex;align-items:center;justify-content:space-between;gap:16px}.summary-item{display:flex;align-items:center;gap:12px;flex:1}.summary-icon{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:18px}.summary-icon.total-invoices{background:#d1fae5}.summary-icon.this-month{background:#dbeafe}.summary-icon.failed-invoices{background:#fee2e2}.summary-icon.success-rate{background:#ede9fe}.summary-label{margin:0;font-size:12px;color:#6b7280;font-weight:500}.summary-value{margin:0;font-size:18px;font-weight:700;color:#1f2937}.summary-divider{width:1px;height:36px;background:#e5e7eb}@media (max-width: 768px){.summary-card{flex-direction:column;align-items:flex-start}.summary-divider{display:none}}/*! ===== UPLOAD BUTTON ===== */.plusButton{width:2.5rem;height:2.5rem;background-color:#667eea;border:1px solid white;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.3s}.plusButton:hover{background-color:#5568d3;transform:scale(1.05)}.plusIcon{stroke:#fff;stroke-width:2}.export-button{background-color:#059669;padding:0 10px;color:#fff;font-size:medium;border:none;border-radius:1px}.export-button:hover{cursor:pointer}.distributor-table-container{max-height:300px;overflow-y:auto;overflow-x:auto;border:1px solid #ddd}.distributor-table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}.distributor-table thead{background-color:#0d385c}.distributor-table th{padding:10px 14px;color:#ecf2f7;font-weight:700;text-align:center}.distributor-table thead th{position:sticky;top:0;background-color:#0d385c;color:#fff;z-index:2}.distributor-table td{padding:10px 14px}.distributor-table tbody tr{border-bottom:1px solid #e0e0e0}.distributor-table tbody tr:nth-child(2n){background-color:#f9f9f9}.distributor-table tbody tr:hover{background-color:#e3f2fd}.distributor-table td{text-align:center}.graph-container{background:#fff;border-radius:20px;padding:30px;box-shadow:0 4px 20px #00000014;margin-top:10px}.graph-header{margin-bottom:30px}.graph-title{font-size:22px;font-weight:700;color:#1f2937;margin:0 0 8px}.graph-subtitle{font-size:14px;color:#6b7280;margin:0}.graph-area{position:relative;height:250px;width:600px}.bars-container{position:absolute;inset:0 0 40px 50px;display:flex;align-items:flex-end;gap:8px;border-left:2px solid #e5e7eb;border-bottom:2px solid #e5e7eb;padding-left:20px;padding-bottom:10px}.bar-column{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;position:relative}.bar{width:100%;max-width:15px;border-radius:8px 8px 0 0;position:relative;transition:all .3s ease;cursor:pointer;box-shadow:0 4px 10px #10b98133;z-index:1}.bar.regular{background:linear-gradient(135deg,#34d399,#10b981)}.bar.current-month{background:linear-gradient(135deg,#10b981,#059669)}.bar:hover{transform:translateY(-5px);box-shadow:0 8px 20px #10b9814d}/*! Y-axis labels */.y-axis-labels{position:absolute;left:0;top:0;bottom:40px;width:40px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding-right:10px}.y-axis-label{font-size:12px;color:#1a3529;font-weight:500}.x-axis-labels{position:absolute;left:50px;right:0;bottom:0;height:40px;display:flex;gap:8px;padding-left:20px}.x-axis-label-container{flex:1;display:flex;justify-content:center;align-items:center}.x-axis-label{font-size:12px;font-weight:600;color:#6b7280}.x-axis-label.current-month{color:#10b981}.grid-lines{position:absolute;inset:0 0 40px 50px;pointer-events:none}.horizontal-grid-line{position:absolute;left:0;right:0;border-bottom:1px solid #658377;opacity:.1}.vertical-grid-line{position:absolute;left:50%;top:0;bottom:0;width:1px;background:#658377;opacity:.1;transform:translate(-50%)}.bar-count{position:absolute;top:-25px;left:50%;transform:translate(-50%);font-size:12px;font-weight:700;color:#1f2937;background:#fff;padding:2px 8px;border-radius:6px;box-shadow:0 2px 8px #0000001a;white-space:nowrap;z-index:2}.loading-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2)}@media (max-width: 1024px){.stats-grid{grid-template-columns:repeat(2,1fr)}.graph-area{height:350px}}@media (max-width: 768px){.welcome-header{padding:20px}.welcome-title{font-size:22px}.stats-grid{grid-template-columns:1fr}.graph-area{height:300px}.graph-container{padding:20px}}@media (max-width: 480px){.stat-card{padding:10px 14px}.stat-value{font-size:18px}.stat-icon{width:32px;height:32px}}.loader-wrapper{position:relative;display:flex;align-items:center;justify-content:center;width:180px;height:180px;font-family:Inter,sans-serif;font-size:1.2em;font-weight:300;color:#fff;border-radius:50%;background-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none}.loader{position:absolute;top:0;left:0;width:100%;aspect-ratio:1 / 1;border-radius:50%;background-color:transparent;animation:loader-rotate 2s linear infinite;z-index:0}@keyframes loader-rotate{0%{transform:rotate(90deg);box-shadow:0 10px 20px #fff inset,0 20px 30px #ad5fff inset,0 60px 60px #471eec inset}50%{transform:rotate(270deg);box-shadow:0 10px 20px #fff inset,0 20px 10px #d60a47 inset,0 40px 60px #311e80 inset}to{transform:rotate(450deg);box-shadow:0 10px 20px #fff inset,0 20px 30px #ad5fff inset,0 60px 60px #471eec inset}}.loader-letter{display:inline-block;opacity:.4;transform:translateY(0);animation:loader-letter-anim 2s infinite;z-index:1;border-radius:50ch;border:none}.loader-letter:nth-child(1){animation-delay:0s}.loader-letter:nth-child(2){animation-delay:.1s}.loader-letter:nth-child(3){animation-delay:.2s}.loader-letter:nth-child(4){animation-delay:.3s}.loader-letter:nth-child(5){animation-delay:.4s}.loader-letter:nth-child(6){animation-delay:.5s}.loader-letter:nth-child(7){animation-delay:.6s}.loader-letter:nth-child(8){animation-delay:.7s}.loader-letter:nth-child(9){animation-delay:.8s}.loader-letter:nth-child(10){animation-delay:.9s}@keyframes loader-letter-anim{0%,to{opacity:.4;transform:translateY(0)}20%{opacity:1;transform:scale(1.15)}40%{opacity:.7;transform:translateY(0)}}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{margin:0;padding:0;width:100%;height:100%;overflow:hidden}body{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}/*! ===== ANIMATIONS ===== */@keyframes slideInRight{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes dropdownSlideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-5px)}75%{transform:translate(5px)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.btn-primary{padding:10px 20px;font-size:14px;font-weight:600;border-radius:8px;cursor:pointer;transition:all .2s;min-width:120px;border:none}/*! ===== LOADING & ERROR STATES ===== */.loading-spinner{text-align:center;padding:60px 20px;font-size:18px;color:#667eea}.error-message{background-color:#fee2e2;border:1px solid #fca5a5;color:#991b1b;padding:12px 16px;border-radius:8px;margin-bottom:20px}.empty-row{text-align:center;padding:40px 20px;color:#94a3b8;font-style:italic;white-space:normal}/*! ===== MAIN WRAPPER WITH GLOBAL ZOOM SETTING (90% Content) ===== */.invoice-form-wrapper{transform:scale(.9);transform-origin:top left;width:calc(100% / .9);height:calc(100% / .9);display:flex;flex-direction:column;overflow:hidden;background-color:#f5f5f5;margin:0;padding:0}/*! ===== USER HEADER - FIXED AT TOP ===== */.user-header-fixed{position:fixed;top:0;left:0;right:0;z-index:1001;display:flex;justify-content:space-between;align-items:center;padding:12px 30px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 4px 12px #0003;height:70px}.header-left{display:flex;align-items:center;gap:15px}.header-logo{width:48px;height:48px;background:#fff3;border-radius:12px;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:2px solid rgba(255,255,255,.3)}.header-title-section{display:flex;flex-direction:column;gap:2px}.header-title{font-size:18px;font-weight:700;margin:0;line-height:1.2;letter-spacing:.3px}.header-subtitle{font-size:12px;font-weight:500;margin:0;opacity:.9;line-height:1.2}.user-info-section{position:relative;display:flex;align-items:center;gap:12px;z-index:1002;margin-right:20px}.user-avatar-circle{width:42px;height:42px;border-radius:50%;background:#ffffff40;display:flex;align-items:center;justify-content:center;border:2px solid rgba(255,255,255,.4);transition:all .3s ease;cursor:pointer;flex-shrink:0}.user-avatar-circle:hover{background:#ffffff59;transform:scale(1.05)}.user-details-text{display:flex;flex-direction:column;gap:2px}.user-name-text{font-weight:600;font-size:14px;line-height:1.2}.user-codes-text{font-size:11px;opacity:.9;font-weight:500;line-height:1.2}.logout-button{display:flex;align-items:center;gap:6px;padding:10px 18px;background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:8px;cursor:pointer;font-weight:600;font-size:13px;transition:all .3s ease;height:38px}.logout-button:hover{background:#ffffff4d;transform:translateY(-1px)}/*! ===== USER DROPDOWN ===== */.user-dropdown-menu{position:fixed;top:76px;right:30px;width:280px;background:#fff;border-radius:12px;box-shadow:0 8px 24px #00000040;overflow:hidden;animation:dropdownSlideIn .2s ease-out;z-index:10000}.dropdown-header{padding:20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;text-align:center}.dropdown-avatar{width:60px;height:60px;border-radius:50%;background:#ffffff40;display:flex;align-items:center;justify-content:center;border:3px solid rgba(255,255,255,.4);margin:0 auto 12px}.dropdown-header h4{margin:0;font-size:18px;font-weight:600}.dropdown-divider{height:1px;background:#e0e0e0;margin:8px 0}.dropdown-item{display:flex;align-items:center;gap:12px;padding:14px 20px;color:#333}.dropdown-item svg{flex-shrink:0;stroke:#667eea}.dropdown-item-content{flex:1;display:flex;flex-direction:column;gap:4px}.dropdown-label{font-size:11px;color:#666;text-transform:uppercase;font-weight:600}.dropdown-value{font-size:14px;color:#333;font-weight:500}/*! ===== SIDEBAR Starts ===== */.left-sidebar{position:fixed;left:0;top:70px;width:180px;height:calc(100% - 70px);background:linear-gradient(180deg,#1a1f2e,#2d3748);padding:20px 12px;display:flex;flex-direction:column;gap:10px;box-shadow:4px 0 20px #0006;z-index:999;overflow-y:auto;overflow-x:visible}.left-sidebar::-webkit-scrollbar{width:0px;display:none}.sidebar-menu-item{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;height:40px;padding:8px 12px;border-radius:10px;cursor:pointer;transition:all .3s ease;text-decoration:none;border:2px solid transparent;background:#ffffff0d}.sidebar-menu-item svg{stroke:#a0aec0;transition:all .3s ease;flex-shrink:0;width:18px;height:18px}.sidebar-label{font-size:13px;font-weight:600;color:#a0aec0;white-space:nowrap;transition:all .3s ease}.sidebar-menu-item:hover{background:linear-gradient(135deg,#667eea,#764ba2);transform:translate(5px);box-shadow:0 4px 12px #667eea66}.sidebar-menu-item:hover svg,.sidebar-menu-item:hover .sidebar-label{stroke:#fff;color:#fff}.sidebar-menu-item.active{background:linear-gradient(135deg,#667eea,#764ba2);border-color:#ffffff4d;box-shadow:0 4px 12px #667eea66}.sidebar-menu-item.active svg,.sidebar-menu-item.active .sidebar-label{stroke:#fff;color:#fff}.sidebar-logout{margin-top:auto;background:#ff3b301a!important}.sidebar-logout:hover{background:#ff3b3033!important}.sidebar-logout:hover svg,.sidebar-logout:hover .sidebar-label{stroke:#ff3b30;color:#ff3b30}/*! ===== SIDEBAR Ends ===== *//*! ===== MAIN CONTAINER STARTS===== */.invoice-form-container{display:flex;position:relative;width:100%;height:100%;padding-top:70px;overflow:hidden}/*! ===== MAIN CONTENT ===== */.main-content{flex:1;margin-left:180px;padding:15px;overflow-y:auto;overflow-x:hidden;width:calc(100% - 180px);box-sizing:border-box}.main-content.with-sidebar{padding-bottom:100px;scrollbar-width:thin;scrollbar-color:#667eea #f1f5f9}.main-content.with-sidebar::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.main-content.with-sidebar::-webkit-scrollbar-thumb{background:#888;border-radius:10px}.main-content.with-sidebar::-webkit-scrollbar-thumb:hover{background:#555}.main-content::-webkit-scrollbar{width:8px}.main-content::-webkit-scrollbar-track{background:transparent}.main-content::-webkit-scrollbar-thumb{background:#bbb;border-radius:4px}@media (max-width: 768px){.left-sidebar{display:none}.main-content,.saved-extractions-page .main-content{margin-left:0;width:100%}}/*! ===== CONTENT HEADER ===== */.content-header{display:flex;justify-content:center;align-items:center;margin-bottom:15px;padding-bottom:12px;border-bottom:2px solid #e0e0e0;position:relative}.content-header h1{margin:0;color:#2c3e50;font-size:22px;font-weight:600;flex:1;text-align:center}.upload-section{position:absolute;right:0}/*! ===== ITEM DETAILS / PRODUCTS TABLE ===== */.item-details-section,.products-section{border:3px solid #000;border-radius:8px;padding:15px;margin-top:10px;margin-bottom:10px;background-color:#d3faff}.table-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.table-header h3,.products-section h3{margin:0;color:#e2094a;font-size:16px;font-weight:700}.table-container{overflow-x:auto;border:2px solid #000;border-radius:6px;background-color:#fff;margin-bottom:30px;padding-bottom:10px}.item-table,.products-table{width:100%;border-collapse:collapse;min-width:1400px}.item-table th,.products-table th{background-color:#34495e;color:#fff;padding:12px 8px;text-align:left;font-weight:600;font-size:12px;border-right:1px solid #10171d;white-space:nowrap}.item-table td,.products-table td{padding:10px 8px;border-right:1px solid #ddd;border-bottom:1px solid #fffbfb;font-size:12px}.item-table tr:nth-child(2n),.products-table tbody tr:nth-child(2n){background-color:#f8f9fa}.item-table tr:hover,.products-table tbody tr:hover{background-color:#e8f4f8}.calculated-field{font-weight:600;color:#2c3e50;font-family:Courier New,monospace;font-size:12px}.total-amount{color:#e74c3c;font-size:14px;font-weight:700}.no-items{text-align:center;color:#7f8c8d;font-style:italic;padding:30px}/*! ===== BADGES ===== */.distributor-badge{color:#1e40af}.role-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600;color:#fff;text-transform:capitalize}.status-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600}.status-badge.active{background-color:#d1fae5;color:#065f46}.status-badge.inactive{background-color:#fee2e2;color:#991b1b}/*! ===== TOTALS FOOTER ===== */.invoice-totals{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-weight:700}.totals-row{font-size:15px}.totals-label{text-align:right;padding:15px 12px!important;font-weight:700;font-size:16px}.totals-value{text-align:right;padding:15px 8px!important;font-weight:600}.grand-total-value{text-align:right;padding:15px 12px!important;font-weight:700;font-size:17px;background:#ffffff1a;border-left:3px solid #fff}.invoice-info-table-wrapper{margin-bottom:20px}.invoice-info-table{width:100%;border-collapse:collapse;background:#fff;border:4px solid #123cfa;border-radius:10px;overflow:hidden}.invoice-info-table td{padding:8px 9px;font-size:12px;border-bottom:1px solid #e2e8f0}.label-cell{font-weight:700;color:#334155;width:1%;background:#f8fafc;white-space:nowrap}.value-cell{font-weight:600;color:#1e293b;width:19%;white-space:nowrap}.invoice-details-section{border:2px solid #667eea;border-radius:8px;padding:10px;margin-bottom:10px;background:#fff;box-shadow:0 2px 8px #00000014}.form-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:5px}.form-row:last-child{margin-bottom:0}.form-group{display:flex;flex-direction:column;gap:6px}.form-group-full{grid-column:1 / -1}.form-group label{font-size:12px;font-weight:600;color:#2c3e50;text-transform:uppercase;letter-spacing:.5px;margin-bottom:2px;display:flex;align-items:center;gap:6px}.form-group label:before{content:"";width:3px;height:10px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:2px;display:inline-block}.form-group input,.form-group textarea{padding:10px 12px;border:2px solid #e0e0e0;border-radius:6px;font-size:14px;font-weight:500;background-color:#fff;transition:all .2s ease}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-group textarea{min-height:70px;line-height:1.5;resize:vertical}.readonly-field{background-color:#f8f9fa!important;color:#26292c!important;cursor:not-allowed!important;border:1px solid #dee2e6!important}textarea.readonly-field{min-height:50px!important;resize:none}.submit-section{margin-top:30px;margin-bottom:40px;padding:20px 0;display:flex;gap:15px;justify-content:flex-end}.submit-section button,.submit-btn,.btn-primary{padding:10px 20px;font-size:14px;font-weight:600;border-radius:8px;cursor:pointer;transition:all .2s;min-width:120px;border:none}.submit-section button:first-child{background:#fff;color:#666;border:2px solid #ddd}.submit-section button:first-child:hover:not(:disabled){background:#f5f5f5;border-color:#999}.submit-section button:last-child,.submit-btn,.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 2px 8px #667eea4d}.submit-section button:last-child:hover:not(:disabled),.submit-btn:hover:not(:disabled),.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.submit-section button:disabled,.submit-btn:disabled,.btn-primary:disabled{opacity:.6;cursor:not-allowed}.toast-notification{position:fixed;top:80px;right:20px;min-width:350px;max-width:500px;background:#fff;border-radius:12px;box-shadow:0 8px 24px #00000040;z-index:10001;animation:slideInRight .3s ease-out;overflow:hidden}.toast-notification.success{border-left:5px solid #10b981}.toast-notification.error{border-left:5px solid #ef4444}.toast-content{display:flex;align-items:center;gap:12px;padding:16px 20px}.toast-icon{font-size:24px;flex-shrink:0}.toast-message{flex:1;margin:0;color:#1f2937;font-weight:600;font-size:14px;line-height:1.5}.toast-close{background:none;border:none;font-size:20px;color:#6b7280;cursor:pointer;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s ease}.toast-close:hover{background:#f3f4f6;color:#374151}.validation-message{border-radius:8px;font-weight:600;text-align:center;margin-top:12px;padding:12px;font-size:14px}.validation-message.success-msg{background:#d4edda;color:#155724;border:2px solid #c3e6cb}.validation-message.warning-msg{background:#fff3cd;color:#856404;border:2px solid #ffeeba}.warning-message{padding:12px 16px;background:#fef3c7;border-left:4px solid #f59e0b;border-radius:6px;color:#78350f;font-weight:500;display:flex;align-items:center;gap:8px}.success-message{background:linear-gradient(135deg,#d4edda,#c3e6cb);border:2px solid #28a745;border-radius:10px;padding:8px 12px;margin-bottom:20px;animation:slideDown .4s ease-out}.success-message p{margin:0;color:#155724;font-weight:600;font-size:14px}.saved-extractions-page{padding:0!important;margin:0!important}.saved-extractions-page .invoice-form-container{margin-top:70px!important;padding:0!important}.saved-extractions-page .main-content{flex:1;margin-left:180px!important;padding:0 15px 80px!important;overflow-y:auto;overflow-x:hidden;height:calc(100vh - 70px);width:calc(100% - 180px)!important;box-sizing:border-box}.saved-invoices-header{position:sticky;top:0;z-index:100;background:#fff;display:flex;align-items:center;justify-content:space-between;margin:0 0 15px!important;padding:8px 15px 10px!important;border-bottom:2px solid #e2e8f0;box-shadow:0 2px 8px #0000000d}.searchbar-wrapper{margin-left:auto}.saved-invoices-header h2{font-size:26px;font-weight:700;color:#1e293b;margin:0!important;padding:0!important;white-space:nowrap;text-align:center}.upload-new-btn{position:absolute;right:15px;display:flex;align-items:center;gap:8px;padding:10px 18px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px #667eea4d}.upload-new-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.upload-new-btn:active{transform:translateY(0)}.upload-new-btn svg{flex-shrink:0}.invoice-table-wrapper{background:#fff;border-radius:16px;box-shadow:0 4px 20px #00000014;overflow-x:auto!important;overflow-y:auto!important;border:1px solid #e2e8f0;margin:0 15px 30px!important;max-height:calc(100vh - 220px);position:relative}.invoice-table{width:100%;min-width:1600px!important;border-collapse:collapse;font-size:14px;white-space:nowrap}.invoice-table thead{position:sticky;top:0;z-index:10;background:linear-gradient(135deg,#1e293b,#334155);box-shadow:0 2px 8px #1e293b4d}.invoice-table thead tr th{padding:8px 12px!important;text-align:center;font-size:13px;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:.7px;border:none;white-space:nowrap;border-right:1px solid rgba(255,255,255,.1);background:inherit}.invoice-table thead tr th:last-child{border-right:none}.invoice-table thead tr th:nth-child(1){min-width:60px}.invoice-table thead tr th:nth-child(2){min-width:180px}.invoice-table thead tr th:nth-child(3){min-width:150px}.invoice-table thead tr th:nth-child(4){min-width:250px}.invoice-table thead tr th:nth-child(5){min-width:150px}.invoice-table thead tr th:nth-child(6){min-width:130px}.invoice-table thead tr th:nth-child(7){min-width:140px}.invoice-table thead tr th:nth-child(8){min-width:220px}.invoice-table tbody{display:table-row-group}.invoice-table tbody tr{border-bottom:1px solid #e2e8f0;transition:background-color .2s ease}.invoice-table tbody tr:last-child{border-bottom:none}.invoice-table tbody tr:hover{background-color:#fceaa1!important;box-shadow:0 0 0 1px #fef3c7 inset}.invoice-table tbody td{padding:8px 20px;color:#1e293b;font-weight:650;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-right:1px solid #e2e8f0}.invoice-table tbody td:last-child{border-right:none}.invoice-table tbody td:first-child{font-weight:700;color:#475569}.invoice-table tbody tr:last-child td{padding-bottom:16px!important}.invoice-table tbody td:nth-child(1){min-width:60px}.invoice-table tbody td:nth-child(2){min-width:180px}.invoice-table tbody td:nth-child(3){min-width:150px}.invoice-table tbody td:nth-child(4){min-width:250px}.invoice-table tbody td:nth-child(5){min-width:150px}.invoice-table tbody td:nth-child(6){min-width:130px}.invoice-table tbody td:nth-child(7){min-width:140px}.invoice-table tbody td:nth-child(8){min-width:220px!important;white-space:nowrap!important;overflow:visible!important;padding-right:20px!important}.file-link{color:#1e293b;text-decoration:none;font-weight:700;transition:color .2s ease;white-space:nowrap;display:inline-block;max-width:200px;overflow:hidden;text-overflow:ellipsis}.file-link:hover{color:#3b82f6;text-decoration:underline}.code-badge{font-weight:bolder;white-space:nowrap}.branch-badge{color:#86198f}.empty-row{text-align:center;padding:40px 20px!important;color:#94a3b8;font-style:italic;white-space:normal}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;min-height:300px}.loading-state p{margin-top:12px;color:#64748b;font-size:14px}.spinner{width:48px;height:48px;border:4px solid #e2e8f0;border-top:4px solid #1e293b;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-state{background:#fef2f2;border:1px solid #fecaca;border-radius:12px;padding:24px;text-align:center;max-width:500px;margin:30px auto}.error-state h3{color:#dc2626;margin:0 0 10px;font-size:18px}.error-state p{color:#991b1b;margin:0 0 16px}.error-state .upload-btn,.retry-btn{background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff;border:none;padding:8px 20px;border-radius:8px;font-weight:500;cursor:pointer;transition:all .3s ease}.error-state .upload-btn:hover,.retry-btn:hover{background:linear-gradient(135deg,#b91c1c,#991b1b);transform:translateY(-1px)}.invoice-table-wrapper::-webkit-scrollbar{width:8px;height:10px!important}.invoice-table-wrapper::-webkit-scrollbar-track{background:linear-gradient(180deg,#e8edf4,#f1f5f9);border-radius:7px;margin:0 6px}.invoice-table-wrapper::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:7px;border:2px solid white;box-shadow:0 2px 4px #667eea4d;-webkit-transition:all .2s ease;transition:all .2s ease}.invoice-table-wrapper::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#5568d3,#6a3f8f);box-shadow:0 3px 8px #667eea80}.sticky-scrollbar{position:fixed;bottom:0;height:16px;overflow-x:auto;overflow-y:hidden;z-index:999;background:#fff;border-top:2px solid #e2e8f0;border-radius:0;box-shadow:0 -2px 8px #00000014}.sticky-scrollbar-inner{height:1px}.sticky-scrollbar::-webkit-scrollbar{height:14px!important;background:transparent}.sticky-scrollbar::-webkit-scrollbar-track{background:linear-gradient(180deg,#e8edf4,#f1f5f9);border-radius:7px;margin:0 6px}.sticky-scrollbar::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:7px;border:2px solid white;box-shadow:0 2px 4px #667eea4d;-webkit-transition:all .2s ease;transition:all .2s ease}.sticky-scrollbar::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#5568d3,#6a3f8f);box-shadow:0 3px 8px #667eea80}.invoice-table-wrapper,.sticky-scrollbar{scrollbar-width:auto!important;scrollbar-color:#667eea #f1f5f9!important}@media (max-width: 1400px){.file-link{max-width:150px}}@media (max-width: 1200px){.invoice-table{font-size:13px}.invoice-table thead tr th,.invoice-table tbody td{padding:8px 12px}.code-badge{padding:3px 8px;font-size:11px}.saved-invoices-header h2{font-size:22px}}@media (max-width: 768px){.saved-extractions-page .main-content{margin-left:0!important;width:100%!important}.saved-invoices-header{margin-bottom:10px;padding:6px 12px!important}.saved-invoices-header h2{font-size:20px}.upload-new-btn{padding:8px 14px;font-size:13px}.invoice-table{min-width:1400px}.sticky-scrollbar{display:none}}#root{margin:0;padding:0;text-align:left;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes slideIn{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.gradient-text{background:linear-gradient(135deg,#1e40af,#3b82f6,#6366f1);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.shadow-professional{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.shadow-professional-lg{box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.shadow-professional-xl{box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}.btn-professional{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;padding:12px 24px;border-radius:12px;font-weight:600;transition:all .3s ease;border:none;cursor:pointer;font-size:14px;box-shadow:0 4px 6px -1px #3b82f64d}.btn-professional:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);transform:translateY(-2px);box-shadow:0 10px 15px -3px #3b82f666}.btn-professional:active{transform:translateY(0)}.card-professional{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:32px;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;border:1px solid rgba(255,255,255,.2);transition:all .3s ease}.card-professional:hover{transform:translateY(-4px);box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}.text-professional{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-weight:400;letter-spacing:-.01em;line-height:1.6}.text-professional-bold{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-weight:700;letter-spacing:-.02em}.hover-lift{transition:transform .3s ease,box-shadow .3s ease}.hover-lift:hover{transform:translateY(-3px);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.input-professional{background:#ffffffe6;border:2px solid #e5e7eb;border-radius:12px;padding:12px 16px;font-size:14px;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.input-professional:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}@media (max-width: 768px){.card-professional{padding:24px;border-radius:12px}.btn-professional{padding:10px 20px;font-size:13px}.shadow-professional-lg{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}}@media (prefers-reduced-motion: reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:2em}.read-the-docs{color:#888}
