*{box-sizing:border-box;margin:0;padding:0}:root{color-scheme:light;--danger-color: #a34938;--text-secondary: #686b60}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f5f4ef;gap:20px;flex-wrap:wrap;padding:24px}.login-card{width:min(390px,100% - 32px);padding:32px;background:#fff;border-radius:18px;display:flex;flex-direction:column;gap:14px;box-shadow:0 24px 80px rgba(41,44,36,.12)}.login-card h1{font-size:28px}.login-card h2{font-size:20px;letter-spacing:-0.4px}.login-card p{color:#686b60;font-size:13px;margin-bottom:8px}.login-card label{display:flex;flex-direction:column;gap:6px;color:#686b60;font-size:12px;font-weight:600}.login-card label input{background:#eeeee7;color:#292c24;border:0;border-radius:8px;padding:11px 12px}.registration-keys-section{margin-top:8px}.registration-keys-section .highlight-label{display:block;color:#292c24;font-weight:600;margin-bottom:8px}.secondary-btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 18px;border:0;border-radius:9px;background:#eeeee7;color:#292c24;font-size:13px;font-weight:600;cursor:pointer}.secondary-btn:hover{background:#e3e5d9}.back-btn{background:rgba(0,0,0,0);color:#686b60;font-size:12px;font-weight:600;cursor:pointer;padding:4px}.back-btn:hover{color:#292c24}.auth-choice{text-align:center}.auth-choice p{margin-bottom:14px}.auth-choice .primary-btn,.auth-choice .secondary-btn{width:100%}.key-actions{display:flex;gap:8px}.key-actions select{background:#eeeee7;color:#292c24;border:0;border-radius:8px;padding:9px 10px;flex:1}.key-actions .action-btn{flex-shrink:0}.new-reg-key{margin-top:10px;padding:12px;background:#e8eddf;color:#515f38;border-radius:8px;font-family:ui-monospace,monospace;font-size:13px;font-weight:600;overflow-wrap:anywhere}.reg-key-list{margin-top:10px;display:flex;flex-direction:column;gap:6px;max-height:220px;overflow-y:auto}.reg-key-row{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#f5f4ef;border-radius:7px;font-size:11px}.reg-key-row .reg-key-value{font-family:ui-monospace,monospace;font-weight:600;overflow-wrap:anywhere}.reg-key-row .reg-key-meta{color:#686b60;margin-left:auto;white-space:nowrap}.reg-key-row .reg-key-revoke{background:rgba(0,0,0,0);color:#a34938;font-size:16px;line-height:1;padding:2px 5px;border-radius:4px}.reg-key-row .reg-key-revoke:hover{background:#a34938;color:#fff}.login-error{min-height:18px;color:#a34938;font-size:12px}.client-view .calendar-add-payment,.client-view .calendar-remove-payment,.client-view .calendar-payment-info,.client-view .hide-product-btn{display:none}.client-view .sidebar,.client-view #selectFolderBtn{display:none}.client-select-group .input-wrapper select{width:100%}body{font-family:"Inter",system-ui,sans-serif;background:#f5f4ef;color:#292c24;min-height:100vh;overflow:hidden;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,input,select,a{-webkit-app-region:no-drag}button{cursor:pointer;border:0}button,input,select{transition:background-color 150ms ease,color 150ms ease,box-shadow 150ms ease}button:focus-visible,input:focus-visible,select:focus-visible{outline:none;box-shadow:0 0 0 4px #e8eddf;background-color:#dde5cf}button:disabled{opacity:.5;cursor:not-allowed}.hidden{display:none !important}.glass-panel{background:#fff}.app-container{display:flex;height:100vh;height:100dvh}.sidebar-header,.top-bar{-webkit-app-region:drag}.sidebar{width:288px;flex-shrink:0;padding:30px 24px;overflow-y:auto}.sidebar-header{margin-bottom:30px}.sidebar-header h2{font-size:26px;font-weight:700;letter-spacing:-1px}.sidebar-header p{color:#686b60;font-size:12px;margin-top:4px}.config-form{display:flex;flex-direction:column}.input-group{margin-bottom:18px}.input-group label{display:block;color:#686b60;font-size:12px;font-weight:600;margin-bottom:8px}.input-group small{display:block;color:#686b60;font-size:12px;margin-top:6px}.input-wrapper{position:relative;display:flex;align-items:center;min-width:0}.input-wrapper input,.input-wrapper select{width:100%;min-width:0;background:#eeeee7;color:#292c24;border:0;border-radius:9px;padding:11px 14px;font-size:14px;font-weight:500}.input-wrapper input::placeholder,.input-wrapper select::placeholder{color:#686b60;font-weight:400}.input-wrapper input:hover,.input-wrapper select:hover{background:#e6e7de}.input-wrapper input[type=number]{padding-right:32px}.input-wrapper .fee-type-select{padding:10px 8px;font-size:12px}.prefix,.suffix{position:absolute;color:#686b60;pointer-events:none;font-size:12px}.prefix{left:14px}.suffix{right:14px}.divider{height:0;margin:10px 0 20px}.action-btn,.primary-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 15px;border-radius:9px;background:#eeeee7;color:#292c24;font-size:12px;font-weight:600;line-height:1.4}.action-btn:hover,.primary-btn:hover{background:#e3e5d9}.primary-btn,#selectFolderBtn,#addPaymentBtn{background:#515f38;color:#fff}.primary-btn:hover,#selectFolderBtn:hover,#addPaymentBtn:hover{background:#414d2d}.main-content{flex:1;min-width:0;display:flex;flex-direction:column}.top-bar{position:relative;min-height:88px;padding:22px 32px;padding-right:150px;background:#f5f4ef;flex-shrink:0}.folder-selection{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.status-indicator{display:flex;flex-direction:column;gap:2px}#folderStatus{font-size:12px;color:#686b60;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{display:inline-block;background:#e8eddf;color:#515f38;padding:3px 8px;border-radius:6px;font-size:10px;font-weight:600}#duplicateCount{background:#f7eae4;color:#a34938;margin-left:4px}.scrollable{overflow-y:auto;min-height:0}.view-switcher{display:flex;gap:4px;padding:0 32px 8px;background:#f5f4ef}.view-tab{padding:8px 14px;border-radius:8px;background:rgba(0,0,0,0);color:#686b60;font-size:12px;font-weight:600}.view-tab:hover{background:#eeeee7;color:#292c24}.view-tab.active{background:#515f38;color:#fff}.dashboard{flex:1;padding:8px 32px 32px}.calendar-view{flex:1;overflow:auto;padding:8px 32px 32px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.calendar-toolbar h3{text-align:center;flex:1}.calendar-toggle{display:inline-flex;align-items:center;gap:7px;color:#686b60;font-size:11px;white-space:nowrap;cursor:pointer}.calendar-toggle input{accent-color:#515f38}.calendar-nav{width:36px;height:36px;border-radius:8px;background:#fff;color:#515f38;font-size:26px;line-height:1}.calendar-nav:hover{background:#e8eddf}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7, minmax(0, 1fr));grid-auto-rows:minmax(112px, auto);gap:6px}.calendar-view.event-only .calendar-grid{grid-template-columns:repeat(7, minmax(0, 1fr));grid-auto-rows:minmax(112px, auto)}.calendar-view.event-only .calendar-weekdays{display:none}.calendar-weekdays{margin-bottom:6px}.calendar-weekdays span{padding:6px 8px;color:#686b60;font-size:11px;font-weight:600;text-align:center}.calendar-day{min-height:112px;padding:8px;background:#fff;border-radius:9px;overflow:hidden}.calendar-day.outside-month{background:rgba(0,0,0,0)}.calendar-day.today{box-shadow:inset 0 0 0 2px #515f38}.calendar-day:has(.calendar-event){min-height:132px;height:auto}.calendar-day-number{display:flex;align-items:center;min-height:22px;color:#292c24;font-size:11px;font-weight:600;line-height:1.3;margin-bottom:10px;padding-right:28px}.calendar-add-payment{position:absolute;top:7px;right:7px;width:22px;height:22px;border-radius:6px;background:#eeeee7;color:#515f38;font-size:16px;line-height:1}.calendar-add-payment:hover{background:#e8eddf}.calendar-day{position:relative}.calendar-event{position:relative;overflow-wrap:anywhere;white-space:normal;padding:5px 28px 5px 6px;margin-bottom:4px;border-radius:5px;font-size:10px;font-weight:600;line-height:1.35}.sale-event{background:#e8eddf;color:#515f38}.refund-event{background:#eeeee7;color:#686b60}.payment-event{background:#f7eae4;color:#a34938}.calendar-remove-payment{position:absolute;top:4px;right:4px;padding:2px 4px;border-radius:4px;background:rgba(0,0,0,0);color:#a34938;font-size:14px;line-height:1}.calendar-remove-payment:hover,.calendar-remove-payment.confirm{background:#a34938;color:#fff}.calendar-remove-payment.confirm{font-size:9px;font-weight:700}.calendar-payment-info{position:absolute;right:5px;bottom:4px;padding:1px 3px;border-radius:4px;background:rgba(0,0,0,0);color:#a34938;font-size:13px;line-height:1}.calendar-payment-info:hover{background:#a34938;color:#fff}.calendar-more{color:#686b60;font-size:10px}.calendar-legend{display:flex;gap:16px;margin-top:12px;color:#686b60;font-size:11px}.calendar-legend .legend-sale::before,.calendar-legend .legend-payment::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.calendar-legend .legend-sale::before{background:#515f38}.calendar-legend .legend-payment::before{background:#a34938}.summary-section{padding:24px;border-radius:16px}h3{font-size:16px;font-weight:600;letter-spacing:-0.3px}.summary-section h3{margin-bottom:20px}.pipeline-grid{display:flex;flex-direction:column;gap:8px}.pipeline-stack{display:flex;flex-direction:column;gap:6px}.pipeline-row{display:flex;align-items:center;justify-content:space-between;min-height:38px;padding:8px 12px;background:#f5f4ef;border-radius:8px}.pipeline-row .stat-value{font-size:17px}.pipeline-row.deduction .stat-value{color:#a34938}.pipeline-row.subtotal{background:#eeeee7;font-weight:600}.pipeline-row.highlight{background:#e8eddf;color:#515f38;font-weight:600}.pipeline-row.payment-row{background:#f7eae4}.pipeline-row.payment-row .stat-value{color:#a34938}.pipeline-row.final-row{background:#515f38;color:#fff;min-height:44px}.pipeline-row.final-row .stat-label,.pipeline-row.final-row .stat-value{color:#fff}.pipeline-row.final-row .stat-value{font-size:20px}.stat-box{display:flex;flex-direction:column;justify-content:center;gap:10px;padding:18px;background:#f5f4ef;border-radius:10px;min-width:0}.stat-box.deduction .stat-value{color:#a34938}.stat-box.neutral .stat-value{color:#515f38}.stat-box.highlight{background:#e8eddf}.stat-box.highlight .stat-value{color:#515f38}.stat-label{font-size:11px;color:#686b60;line-height:1.3}.stat-value{font-size:clamp(20px,2vw,28px);font-weight:600;letter-spacing:-0.8px;line-height:1.1;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.config-badge{font-size:inherit;font-weight:600;color:#292c24}.arrow,.grid-break{display:none}.unpaid-section{margin-top:16px;padding:16px;background:rgba(0,0,0,0);border-radius:16px}.unpaid-row{display:grid;grid-template-columns:minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);align-items:center;gap:10px}.unpaid-card{display:flex;align-items:center;justify-content:center;min-width:0;min-height:100px;padding:18px 14px;background:#fff;border-radius:12px}.unpaid-card.final-card{background:#e8eddf}.unpaid-col{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;width:100%;min-width:0;min-height:64px;text-align:center}.unpaid-col .label{font-size:11px;color:#686b60;line-height:1.3}.unpaid-col .value{font-size:22px;font-weight:600;line-height:1.1;letter-spacing:-0.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.unpaid-col.final-unpaid{text-align:center}.unpaid-col.final-unpaid .label{color:#515f38;font-weight:600}.unpaid-col.final-unpaid .value{color:#515f38;font-size:clamp(26px,3vw,38px);line-height:1;letter-spacing:-1.2px}.operator{display:flex;align-items:center;justify-content:center;width:34px;height:34px;color:#515f38;font-size:28px;font-weight:600;line-height:1}.products-header{margin:30px 0 16px}.products-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(min(290px, 100%), 1fr));gap:16px}.product-card{background:#fff;padding:22px;border-radius:14px;cursor:pointer;transition:background-color 150ms ease}.product-card:hover{background:#fafbf6}.product-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:22px}.product-header>div:first-child{min-width:0;flex:1}.product-title{font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere;margin-bottom:4px}.product-units{color:#686b60;font-size:11px}.product-stats{display:flex;flex-direction:column;gap:8px}.p-row{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#686b60;font-size:12px}.p-row span:last-child{font-variant-numeric:tabular-nums}.p-row.grand{background:#e8eddf;color:#515f38;padding:12px;border-radius:8px;margin-top:8px;font-weight:600}.hide-product-btn,.close-btn,.payment-remove-btn,.remove-fee-btn{background:rgba(0,0,0,0);color:#686b60;padding:5px;border-radius:6px;flex-shrink:0}.hide-product-btn:hover,.close-btn:hover,.payment-remove-btn:hover,.remove-fee-btn:hover{color:#a34938;background:#f7eae4}.close-btn,.payment-remove-btn,.remove-fee-btn{font-size:22px;line-height:1}.modal-overlay{position:fixed;inset:0;background:rgba(41,44,36,.3);display:flex;justify-content:center;align-items:center;z-index:1000;padding:24px}.modal-content{width:100%;max-width:500px;max-height:80vh;display:flex;flex-direction:column;padding:28px;border-radius:18px;box-shadow:0 24px 80px rgba(41,44,36,.12)}.modal-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px}.modal-header h3{overflow-wrap:anywhere}.modal-desc{color:#686b60;font-size:12px;margin-bottom:22px}.hidden-list,.product-sales-list{display:flex;flex-direction:column;gap:8px;flex:1}.hidden-item,.product-sale-item{display:flex;justify-content:space-between;align-items:center;background:#f5f4ef;padding:16px;border-radius:10px;gap:16px}.hidden-item-title{font-size:13px;font-weight:500;overflow-wrap:anywhere}.restore-btn{background:#e8eddf;color:#515f38;padding:8px 12px;border-radius:7px;font-size:11px;font-weight:600;flex-shrink:0}.restore-btn:hover{background:#dde5cf}.hidden-empty-state{text-align:center;padding:24px;color:#686b60;background:#f5f4ef;border-radius:10px;font-size:12px}.payment-modal{max-width:420px}.payment-details-form{display:flex;flex-direction:column;gap:12px}.payment-details-form label{display:flex;flex-direction:column;gap:6px;color:#686b60;font-size:11px;font-weight:600}.payment-details-form label input{background:#eeeee7;color:#292c24;border:0;border-radius:8px;padding:10px 12px}.payment-detail-fees-header,.payment-details-actions{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}.payment-details-actions{grid-template-columns:auto 1fr auto auto;margin-top:18px}.payment-details-actions .action-btn{white-space:nowrap}.danger-action{color:#a34938;background:#f7eae4}.danger-action:hover{background:#f0d8d0}#detailsFeeInputs{display:flex;flex-direction:column;gap:6px}.payment-net-summary{padding:12px;background:#e8eddf;color:#515f38;border-radius:8px;font-size:12px;font-weight:600}.payment-modal-form{display:flex;flex-direction:column;gap:10px}.payment-modal-form .action-btn{width:100%}.payment-modal-form #newFeeInputs{display:flex;flex-direction:column;gap:6px}.product-sales-modal{max-width:620px}.product-sale-date{font-size:13px;font-weight:600;margin-bottom:4px}.product-sale-units{font-size:11px;color:#686b60}.product-sale-amount{color:#515f38;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}.payment-section{margin-bottom:20px}.payment-section .highlight-label{display:block;color:#292c24;font-weight:600;margin-bottom:5px}.payment-section small{color:#686b60;font-size:11px}.payment-add-form{margin:16px 0 12px;display:flex;flex-direction:column;gap:6px}.payment-add-form .action-btn{width:100%}.sidebar-actions{margin-top:auto;padding-top:12px}.sidebar-actions .action-btn{width:100%;margin-bottom:6px}.fee-input-row{display:flex;gap:4px;margin-bottom:6px;align-items:center}.fee-input-row .input-wrapper{flex:1;margin-bottom:0 !important}.fee-input-row .fee-type-wrapper{flex:0 0 68px}.payments-list{display:flex;flex-direction:column;gap:6px;max-height:180px;overflow-y:auto;margin-bottom:10px}.payment-entry{display:flex;justify-content:space-between;align-items:center;padding:12px;border-radius:9px;background:#f5f4ef;gap:8px}.payment-entry-info{display:flex;flex-direction:column;flex:1;min-width:0}.payment-entry-amount{font-size:13px;font-weight:600;color:#515f38}.payment-entry-fee,.payment-entry-meta{color:#686b60;font-size:10px;margin-top:4px;overflow-wrap:anywhere}.payment-total{padding-top:6px;color:#686b60;font-size:11px;text-align:right}.payment-total strong{color:#515f38}.empty-state{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:40px}.empty-state .icon-wrapper{background:#e8eddf;color:#515f38;padding:22px;border-radius:18px;margin-bottom:24px}.empty-state h3{font-size:24px;letter-spacing:-0.7px;margin-bottom:10px}.empty-state p{max-width:360px;font-size:13px;color:#686b60;line-height:1.8}.toast{position:fixed;bottom:24px;right:24px;padding:14px 20px;background:#515f38;color:#fff;border-radius:10px;font-size:13px;font-weight:500;z-index:1100}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:rgba(0,0,0,0)}::-webkit-scrollbar-thumb{background:#d7d9ce;border-radius:6px}::-webkit-scrollbar-thumb:hover{background:#b8bdac}@media(min-width: 1600px){.pipeline-grid{display:flex}}@media(max-width: 1050px){.sidebar{width:252px;padding:24px 18px}.top-bar{padding-left:24px}.dashboard{padding:8px 24px 24px}.folder-selection{gap:12px}.unpaid-row{gap:8px}.unpaid-card{min-height:92px;padding-inline:10px}.operator{width:26px;font-size:24px}}@media(max-width: 760px){body{overflow:auto}.app-container{height:auto;min-height:100dvh;flex-direction:column}.sidebar{width:100%;overflow:visible}.config-form{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:12px}.config-form>.divider{display:none}.payment-section,.config-form>.input-group:last-child{grid-column:1/-1}.top-bar{padding-right:24px}.view-switcher,.dashboard,.calendar-view{padding-left:24px;padding-right:24px}.pipeline-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}.calendar-grid{grid-auto-rows:minmax(88px, auto)}.calendar-day{min-height:88px;height:auto;padding:6px}.calendar-event{font-size:9px;padding:3px}.dashboard{overflow:visible}.empty-state{min-height:360px}}@media(prefers-reduced-motion: reduce){*,*::before,*::after{transition:none !important}}
