:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh;color:#213547;background-color:#fff}#root{min-height:100vh}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.login-card{background:#fff;border-radius:12px;box-shadow:0 20px 60px #0000004d;width:100%;max-width:420px;overflow:hidden}.login-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:32px 32px 28px;text-align:center}.login-header h1{margin:0 0 8px;font-size:28px;font-weight:600}.login-header p{margin:0;opacity:.9;font-size:14px}.login-form{padding:32px}.form-group label{display:block;margin-bottom:8px;color:#333;font-weight:500;font-size:14px}.form-group input[type=text],.form-group input[type=password]{width:100%;padding:12px 16px;border:2px solid #e0e0e0;border-radius:8px;font-size:14px;transition:all .3s ease;box-sizing:border-box}.form-group input[type=text]:focus,.form-group input[type=password]:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.checkbox-group{margin-bottom:24px}.checkbox-label{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:400}.checkbox-label input[type=checkbox]{width:18px;height:18px;margin-right:8px;cursor:pointer;accent-color:#667eea}.checkbox-label span{color:#555;font-size:14px}.login-button{width:100%;padding:14px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.login-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #667eea66}.login-button:active:not(:disabled){transform:translateY(0)}.login-button:disabled{opacity:.6;cursor:not-allowed}.error-message{background:#fee;border:1px solid #fcc;color:#c33;padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:14px}.login-footer{padding:0 32px 32px;text-align:center}.demo-info{background:#f5f5f5;padding:12px;border-radius:8px;margin:0;font-size:13px;color:#666}.demo-info strong{color:#333}@media(max-width:480px){.login-card{margin:0}.login-header,.login-form,.login-footer{padding:24px 20px}.login-header h1{font-size:24px}}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}.status-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:8px;font-size:13px;font-weight:500;transition:all .3s ease;cursor:default}.status-icons{display:flex;align-items:center;gap:8px}.status-panel.idle{background:#ffffff14;color:#ffffffb3}.status-panel.loading{background:#667eea33;color:#fff;animation:pulse 2s ease-in-out infinite;border:1px solid rgba(102,126,234,.3)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.8}}.status-message{flex:1;word-wrap:break-word;overflow-wrap:break-word;line-height:1.4}.sidebar{width:280px;height:100vh;background:linear-gradient(180deg,#1a1f2e,#2d3748);color:#fff;display:flex;flex-direction:column;position:fixed;left:0;top:0;overflow:visible;box-shadow:2px 0 8px #00000026;z-index:1000}.sidebar-header{padding:20px;border-bottom:1px solid rgba(255,255,255,.1)}.logo{display:flex;align-items:center;gap:12px}.logo-icon{width:48px;height:48px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px;box-shadow:0 4px 12px #667eea66}.logo-text{font-size:20px;font-weight:700;letter-spacing:.5px}.sidebar-nav{flex:1;padding:20px 0;overflow:visible;display:flex;flex-direction:column}.menu-item-wrapper{margin-bottom:4px;position:relative;overflow:visible}.menu-item-wrapper-bottom{margin-top:auto}.menu-item-wrapper-bottom .menu-item{border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08);background:#ffffff08}.menu-item-wrapper-bottom .menu-item:hover,.menu-item-wrapper-bottom .menu-item.expanded{background:#ffffff12}.menu-item-wrapper-bottom .menu-item:before{background:linear-gradient(90deg,#ff6a88,#ff8e53)}.menu-item-wrapper:after{content:"";position:absolute;left:100%;top:0;bottom:0;width:10px;pointer-events:auto}.menu-item{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;cursor:pointer;transition:all .2s ease;position:relative}.menu-item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:0;background:linear-gradient(90deg,#667eea,#764ba2);transition:width .3s ease}.menu-item:hover{background:#ffffff0d}.menu-item:hover:before{width:4px}.menu-item.expanded{background:#ffffff14}.menu-item.expanded:before{width:4px}.menu-item-content{display:flex;align-items:center;gap:12px;flex:1;position:relative}.alert-icon{color:#ff4d4f;font-size:16px;margin-left:auto;animation:pulse-alert 2s ease-in-out infinite}@keyframes pulse-alert{0%,to{opacity:1}50%{opacity:.6}}.menu-icon{font-size:20px;width:24px;display:flex;align-items:center;justify-content:center;opacity:.9}.menu-label{font-size:15px;font-weight:500;letter-spacing:.3px}.menu-subtitle{font-size:12px;font-weight:400;opacity:.7;margin-left:8px}.menu-arrow{font-size:12px;opacity:.7;transition:transform .3s ease}.submenu{position:absolute;left:calc(100% + 4px);top:0;min-width:200px;background:linear-gradient(180deg,#2d3748,#1a1f2e);border-radius:8px;box-shadow:4px 0 16px #00000080;animation:slideRight .2s ease;overflow:visible;border:1px solid rgba(102,126,234,.3);z-index:10000;pointer-events:auto;display:block!important}@keyframes slideRight{0%{opacity:0;transform:translate(-10px)}to{opacity:1;transform:translate(0)}}.submenu-item{padding:14px 24px;cursor:pointer;transition:all .2s ease;font-size:14px;color:#ffffffd9;position:relative;white-space:nowrap;border-bottom:1px solid rgba(255,255,255,.05);display:flex;align-items:center;justify-content:space-between;gap:12px}.submenu-item:last-child{border-bottom:none}.submenu-item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:0;background:linear-gradient(90deg,#667eea,#764ba2);transition:width .2s ease}.submenu-item:hover{background:#667eea26;color:#fff;padding-left:28px}.submenu-item:hover:before{width:4px}.sidebar-footer{padding:16px 20px;border-top:1px solid rgba(255,255,255,.1);margin-top:auto}.sidebar::-webkit-scrollbar{width:6px}.sidebar::-webkit-scrollbar-track{background:#0000001a}.sidebar::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}.sidebar::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.date-range-panel{padding:8px 0}.form-group{margin-bottom:20px}.form-label{display:block;font-size:14px;font-weight:600;color:#333;margin-bottom:8px}.full-width{width:100%}.date-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}.error-message{color:#ff4d4f;font-size:14px;margin-top:-12px;margin-bottom:16px;padding:8px 12px;background:#fff2f0;border:1px solid #ffccc7;border-radius:6px;display:flex;align-items:center}.error-message:before{content:"⚠️";margin-right:8px}.button-group{display:flex;justify-content:flex-end;gap:12px;padding-top:16px;border-top:1px solid #f0f0f0}.button-group button{min-width:100px}.date-range-panel .ant-select-selector,.date-range-panel .ant-picker{border-radius:6px}@media(max-width:768px){.date-row{grid-template-columns:1fr}}.invoice-detail-container{background:#f5f9ff;border-radius:12px;box-shadow:0 8px 24px #0f172a26;padding:24px;margin:24px;min-height:calc(100vh - 160px);display:flex;flex-direction:column}.invoice-detail-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;gap:16px}.invoice-detail-header-left h2{margin:0 0 12px;font-size:24px;font-weight:700;color:#1f2937}.invoice-detail-title-row{display:flex;align-items:baseline;gap:16px}.invoice-detail-date{font-size:16px;font-weight:600;color:#2563eb;background:#2563eb1a;padding:4px 12px;border-radius:999px}.invoice-detail-code{color:#2563eb}.invoice-detail-meta{display:flex;flex-wrap:wrap;gap:12px 24px;color:#4b5563;font-size:14px}.invoice-detail-meta strong{color:#1f2937;font-weight:600}.invoice-detail-note{margin-top:12px;padding:12px 16px;background:#2563eb14;border-radius:8px;color:#1f2937;line-height:1.5;font-size:14px}.invoice-detail-note strong{margin-right:8px}.invoice-detail-close{background:#fff;border:1px solid #cbd5f5;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#1f2937;transition:all .2s ease}.invoice-detail-close:hover{background:#2563eb;color:#fff;border-color:#2563eb}.invoice-detail-content{flex:1;background:#fff;border-radius:12px;padding:16px;box-shadow:inset 0 1px 3px #0f172a0d;display:flex;flex-direction:column}.invoice-detail-loading{flex:1;display:flex;align-items:center;justify-content:center}.invoice-detail-error{flex:1;display:flex;align-items:center;justify-content:center;color:#b91c1c;font-weight:500}.invoice-detail-table .ant-table{background:transparent}.invoice-detail-table .ant-table-thead>tr>th{background:#d9ecff!important;font-weight:600;text-transform:uppercase;font-size:12px;line-height:1.3}.invoice-detail-table .ant-table-tbody>tr>td{background:#fff;padding-top:1px!important;padding-bottom:1px!important;min-height:44px}.invoice-detail-cell{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-word;min-height:40px;width:100%}# single-line span for centered columns .invoice-detail-cell-single{display:inline-flex;align-items:center;justify-content:center;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invoice-detail-cell-center{text-align:center}.invoice-detail-table .ant-table-tbody>tr>td.ant-table-cell-center .invoice-detail-cell{text-align:center}.invoice-detail-summary-row .ant-table-cell{font-weight:700;background:#f0f4ff}.invoice-table-container{background:#fff;padding:24px;width:100%;overflow-x:auto;max-width:100%;box-sizing:border-box;min-height:calc(100vh - 72px)}.invoice-table-container .ant-table{font-size:14px}.invoice-table-container .ant-table-thead>tr>th{background:#aae1e6!important;font-weight:600;border-top:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;border-left:1px solid #ededed;border-right:1px solid #ededed;padding:8px!important}.invoice-table-container .ant-table-thead>tr>th .ant-input-affix-wrapper,.invoice-table-container .ant-table-thead>tr>th .ant-input{background:#fff;font-size:13px}.table-header-multiline{display:inline-block;line-height:1.2;text-align:center}.invoice-table-container .ant-table-thead>tr>th:before{display:none!important}.invoice-table-container .ant-table-tbody>tr>td{border-top:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0;border-left:1px solid #ededed;border-right:1px solid #ededed;padding-top:1px!important;padding-bottom:1px!important;padding-left:8px;padding-right:8px}.invoice-table-container .ant-table-tbody>tr>td.ant-table-cell-center .table-cell-clamp{justify-content:center}.invoice-table-container .ant-table-tbody>tr:hover>td{background:#f5f5f5}.table-cell-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-word;min-height:40px;width:100%}.table-cell-single{display:inline-flex;align-items:center;justify-content:center;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invoice-table-container .ant-table-container table>thead>tr:first-child th:first-child{border-top-left-radius:0}.invoice-table-container .ant-table-container table>thead>tr:first-child th:last-child{border-top-right-radius:0}.resizable-header-cell{position:relative}.resize-handle{position:absolute;top:0;right:-2px;width:6px;height:100%;cursor:col-resize;touch-action:none;background:transparent;z-index:1}.resize-handle:after{content:"";position:absolute;top:20%;bottom:20%;right:1px;width:1px;background:transparent;transition:background .15s ease}.resize-handle:hover:after,.resize-handle:active:after{background:#1890ffd9}.invoice-link{color:#2f7efc;text-decoration:underline;background:none;border:none;padding:0;margin:0;cursor:pointer;font-size:inherit;font-weight:600;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.invoice-link:hover{color:#1b5ed8}.invoice-secondary-row td{background:#f9f9f9;padding-top:4px!important;padding-bottom:4px!important;border-top:none;border-bottom:1px solid #f0f0f0}.invoice-secondary-row td:first-child{border-left:1px solid #ededed}.invoice-secondary-row td:last-child{border-right:1px solid #ededed}.invoice-secondary-cell{min-height:20px}.invoice-secondary-row:hover td{background:#f9f9f9}.invoice-secondary-row td{border-bottom:1px solid #8c8c8c;position:relative}.invoice-secondary-row td:after{content:"";position:absolute;left:-1px;right:-1px;bottom:-1px;border-bottom:1px solid #8c8c8c;pointer-events:none}.invoice-secondary-label{font-weight:600;color:#595959;display:inline-flex;align-items:center}.invoice-secondary-name{font-weight:500;color:#333;display:inline-flex;align-items:center}.home-layout{display:flex;min-height:100vh}.home-container{flex:1;margin-left:280px;min-height:100vh;background:#f5f5f5;overflow-x:hidden}.home-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:24px 32px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 8px #0000001a}.home-header h1{margin:0;font-size:24px;font-weight:600}.header-left{display:flex;align-items:center;gap:12px}.bulk-action-button{background:#fff;border:1px solid rgba(0,151,167,.6);color:#006064;font-weight:500;border-radius:6px;display:flex;align-items:center;gap:6px}.bulk-action-button:hover,.bulk-action-button:focus{border-color:#0097a7;color:#004d40}.selection-count{color:#fff;font-size:14px;font-weight:500}.header-right{display:flex;align-items:center;gap:16px}.header-search-input{width:280px}.header-search-input .ant-input-affix-wrapper{border-radius:24px;border:2px solid #0097a7;background-color:#fffffff2;padding:6px 12px;transition:border-color .2s ease,box-shadow .2s ease}.header-search-input .ant-input{background:transparent;font-size:14px}.header-search-input .anticon{color:#9e9e9e}.header-search-input .ant-input::placeholder{font-style:italic;color:#b0b0b0}.header-search-input .ant-input-affix-wrapper-focused,.header-search-input .ant-input-affix-wrapper:focus-within{border-color:#06b4c4;box-shadow:0 0 0 2px #0097a71a}.logout-button{padding:10px 24px;background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .3s ease}.logout-button:hover{background:#ffffff4d;border-color:#ffffff80}.home-content{padding:32px;max-width:1600px;margin:0 auto;width:100%;box-sizing:border-box}.home-content.full-width{padding:0;max-width:none}.home-content>.invoice-table-container{max-width:100%;width:100%}.welcome-card{background:#fff;border-radius:12px;padding:32px;box-shadow:0 2px 8px #0000001a}.welcome-card h2{color:#333;margin-top:0;margin-bottom:16px;font-size:28px}.welcome-card>p{color:#666;font-size:16px;line-height:1.6;margin-bottom:24px}.user-info{background:#f9f9f9;border-left:4px solid #667eea;padding:20px;border-radius:4px;margin-top:24px}.user-info h3{margin-top:0;margin-bottom:12px;color:#333;font-size:18px}.user-info ul{list-style:none;padding:0;margin:0}.user-info li{padding:8px 0;color:#555;font-size:15px}.user-info strong{color:#333;margin-right:8px}.python-section{background:#f0f4ff;border-left:4px solid #667eea;padding:20px;border-radius:4px;margin-top:24px}.python-section h3{margin-top:0;margin-bottom:16px;color:#333;font-size:18px}.python-button{padding:12px 32px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.python-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #667eea66}.python-button:active:not(:disabled){transform:translateY(0)}.python-button:disabled{opacity:.6;cursor:not-allowed}.progress-container{margin-top:24px;display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px;background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000d}.progress-container .ant-progress-inner svg{animation:rotate 2s linear infinite}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.progress-message{font-size:16px;color:#667eea;font-weight:500;text-align:center;min-height:24px}.python-output{margin-top:16px;background:#e8f5e9;border:1px solid #4caf50;padding:16px;border-radius:8px}.python-output h4{margin:0 0 8px;color:#2e7d32;font-size:16px}.python-output pre{margin:0;color:#1b5e20;font-family:Courier New,monospace;white-space:pre-wrap;word-wrap:break-word}.python-error{margin-top:16px;background:#ffebee;border:1px solid #f44336;padding:16px;border-radius:8px}.python-error h4{margin:0 0 8px;color:#c62828;font-size:16px}.python-error p{margin:0;color:#b71c1c}@media(max-width:768px){.home-header{flex-direction:column;gap:16px;text-align:center}.header-left{justify-content:center;flex-direction:column}.header-right{flex-direction:column;width:100%}.header-search-input{width:100%}.home-header h1{font-size:20px}.home-content{padding:20px}.welcome-card{padding:24px}.welcome-card h2{font-size:24px}}.app{min-height:100vh}*{margin:0;padding:0;box-sizing:border-box}
