.loader-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:9999;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.loader-container{display:flex;flex-direction:column;align-items:center;gap:1rem}.spinner{width:50px;height:50px;border:4px solid rgba(255,255,255,.3);border-top-color:#c41e3a;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loader-text{color:#fff;font-size:1rem;font-weight:500;margin:0;text-shadow:0 2px 4px rgba(0,0,0,.3)}.layout{min-height:100vh;display:flex;flex-direction:column}.navbar{background:#c40923;color:#fff;padding:1rem .6rem;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 8px #c409234d;position:sticky;top:0;z-index:100}.navbar-brand{display:flex;align-items:center;gap:1rem}.navbar-logo{height:45px;width:auto;object-fit:contain}.navbar-user{display:flex;align-items:center;gap:1rem}.user-email{font-size:.9rem;opacity:.95}.btn-logout{background-color:#0003;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.5rem 1rem;border-radius:4px;font-size:.9rem;cursor:pointer;transition:all .2s}.btn-logout:hover{background-color:#0000004d;border-color:#ffffff80}.layout-body{display:flex;flex:1;height:calc(100vh - 77px)}.sidebar{background:#c40923;color:#fff;width:250px;transition:width .3s ease;box-shadow:2px 0 8px #c409234d;position:relative;overflow:hidden}.sidebar.collapsed{width:70px}.sidebar-toggle{position:absolute;top:1rem;right:1rem;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#fff;width:40px;height:40px;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;z-index:10;padding:8px}.sidebar-toggle:hover{background:#fff3;border-color:#ffffff4d}.hamburger-icon{display:flex;flex-direction:column;gap:4px;width:20px}.hamburger-icon .line{width:100%;height:2px;background-color:#fff;border-radius:2px;transition:all .3s}.sidebar-nav{margin-top:4rem;display:flex;flex-direction:column;gap:0;padding:0}.sidebar-link{display:flex;align-items:center;gap:1rem;padding:1rem;margin:0;color:#ffffffb3;text-decoration:none;border-radius:0;transition:all .2s;position:relative;white-space:nowrap;border-left:4px solid transparent}.sidebar-link:hover{color:#fff;background:#ffffff0d}.sidebar-link.active{color:#fff;background:#ffffff26;border-left:4px solid white;font-weight:600}.sidebar-icon{font-size:1.5rem;min-width:24px;display:flex;align-items:center;justify-content:center}.sidebar-text{font-size:1rem;font-weight:500;transition:opacity .3s ease}.sidebar.collapsed .sidebar-text{opacity:0;width:0;overflow:hidden}.sidebar.collapsed .sidebar-link{justify-content:center;padding:1rem .5rem;margin:0;position:relative}.sidebar.collapsed .sidebar-link:after{content:attr(title);position:absolute;left:100%;margin-left:15px;padding:.5rem 1rem;background:#2c3e50;color:#fff;border-radius:4px;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s;pointer-events:none;box-shadow:0 4px 12px #0000004d;z-index:1000}.sidebar.collapsed .sidebar-link:before{content:"";position:absolute;left:100%;margin-left:7px;border:8px solid transparent;border-right-color:#2c3e50;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s;pointer-events:none;z-index:1000}.sidebar.collapsed .sidebar-link:hover:after,.sidebar.collapsed .sidebar-link:hover:before{opacity:1;visibility:visible}.main-content{flex:1;padding:1rem;overflow-y:auto;background:#f5f5f5}@media (max-width: 768px){.sidebar{position:fixed;left:0;top:77px;height:calc(100vh - 77px);z-index:90;transform:translate(0)}.sidebar.collapsed{transform:translate(-180px);width:250px}.main-content{margin-left:0}}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#c40923,#a00720,#8a0619)}.login-card{background:linear-gradient(135deg,#fff,#f8f9fa);padding:3rem;border-radius:16px;box-shadow:0 20px 60px #0000004d;width:100%;max-width:400px;border:1px solid rgba(255,255,255,.3)}.login-logo-container{display:flex;align-items:center;justify-content:center;margin-bottom:2.5rem}.login-logo{height:100px;width:auto;object-fit:contain}.form-group input{width:100%;padding:.75rem;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;background:linear-gradient(135deg,#fff,#f8f9fa);transition:all .3s}.form-group input:focus{outline:none;border:2px solid transparent;background:#fff;box-shadow:0 0 0 3px #c4092333}.password-input-wrapper{position:relative;width:100%}.password-input-wrapper input{padding-right:3rem}.password-toggle{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);background:transparent;border:none;cursor:pointer;font-size:1.2rem;padding:.5rem;display:flex;align-items:center;justify-content:center;transition:opacity .2s;opacity:.6}.password-toggle:hover{opacity:1}.password-toggle:focus{outline:none;opacity:1}.btn-login{width:100%;padding:.875rem;background:#c40923;color:#fff;border:none;border-radius:6px;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.btn-login:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #c4092366}.btn-login:disabled{opacity:.7;cursor:not-allowed}.error-message{background-color:#fee;color:#c33;padding:.75rem;border-radius:6px;margin-bottom:1rem;border:1px solid #fcc}.dashboard-container{padding:1rem;background-color:#f4f7f6;min-height:calc(100vh - 60px)}.dashboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;flex-wrap:wrap;gap:.75rem}.dashboard-header h1{color:#2c3e50;font-size:1.5rem;margin:0;font-weight:600}.date-filter{display:flex;gap:.5rem;align-items:center}.date-filter select{padding:.5rem;border:2px solid #e0e0e0;border-radius:4px;font-size:.9rem;background:#fff;cursor:pointer}.date-filter select:focus{outline:none;border-color:#c40923}.stats-container{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.5rem}@media (max-width: 1200px){.stats-container{grid-template-columns:repeat(3,1fr)}}@media (max-width: 968px){.stats-container{grid-template-columns:1fr}}.stats-section{background:#fff;border-radius:8px;padding:1rem;box-shadow:0 2px 6px #00000014;transition:box-shadow .2s}.stats-section:hover{box-shadow:0 4px 12px #0000001f}.stats-section-title{font-size:.95rem;font-weight:600;color:#2c3e50;margin:0 0 .75rem;padding-bottom:.5rem;border-bottom:2px solid #e0e0e0;display:flex;align-items:center;gap:.5rem}.stats-grid{display:grid;gap:.75rem}.stats-container .stats-section .stats-grid{grid-template-columns:1fr}@media (max-width: 968px){.stats-container .stats-section:nth-child(1) .stats-grid{grid-template-columns:repeat(3,1fr)}.stats-container .stats-section:nth-child(2) .stats-grid,.stats-container .stats-section:nth-child(3) .stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.stats-container .stats-section:nth-child(1) .stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.stats-container .stats-section .stats-grid{grid-template-columns:1fr}}.stat-card{background:linear-gradient(135deg,#f8f9fa,#fff);border-radius:6px;padding:.75rem 1rem;display:flex;align-items:center;gap:.75rem;border:1px solid #e0e0e0;transition:transform .2s,box-shadow .2s,border-color .2s;border-left:4px solid #c40923;min-height:75px;height:75px}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a;border-color:#c4092340}.stat-icon{font-size:2rem;opacity:.9;flex-shrink:0}.stat-content{flex:1;min-width:0}.stat-value{font-size:1.25rem;font-weight:700;color:#2c3e50;margin-bottom:.15rem;word-break:break-word;line-height:1.2}.stat-label{font-size:.75rem;color:#7f8c8d;font-weight:500;line-height:1.2}.chart-card-full{background:#fff;border-radius:6px;padding:1rem;box-shadow:0 2px 6px #00000014;margin-bottom:1rem}.chart-card-full h2{color:#2c3e50;font-size:1.1rem;font-weight:600;margin:0 0 1rem;padding-bottom:.5rem;border-bottom:2px solid #e0e0e0}.line-chart-container{width:100%;position:relative}.line-chart-container>div:first-child{display:flex;gap:.5rem}.chart-y-labels{display:flex;flex-direction:column;justify-content:space-between;padding:.5rem 0;font-size:.7rem;color:#7f8c8d;font-weight:500;min-width:55px;text-align:right}.chart-with-labels{flex:1;position:relative}.recharts-tooltip{background:#2c3e50!important;border:none!important;border-radius:6px!important;padding:10px 14px!important;box-shadow:0 4px 12px #00000026!important}.tooltip-label{color:#fff;font-weight:600;font-size:13px;margin:0 0 4px}.tooltip-value{margin:0;font-size:14px;font-weight:700}.chart-tooltip{position:absolute;background:#2c3e50;color:#fff;padding:.5rem .75rem;border-radius:4px;font-size:.8rem;white-space:nowrap;pointer-events:none;transform:translate(-50%,-120%);z-index:1000;box-shadow:0 4px 12px #0000004d}.chart-tooltip:after{content:"";position:absolute;bottom:-6px;left:50%;transform:translate(-50%);border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #2c3e50}.chart-x-labels{display:flex;justify-content:space-between;margin-top:.4rem;margin-left:60px;font-size:.7rem;color:#7f8c8d}.chart-x-labels span{padding:.2rem;flex-shrink:0}.bar-chart-vertical-container{overflow-x:auto;padding:1rem 0}.bar-chart-vertical{display:flex;align-items:flex-end;gap:.5rem;min-height:300px;padding:1rem;background:linear-gradient(to bottom,#f8f9fa,#fff);border:1px solid #e0e0e0;border-radius:4px;min-width:max-content}.vertical-bar-wrapper{display:flex;flex-direction:column;align-items:center;min-width:50px;max-width:80px;flex:1}.vertical-bar-track{width:100%;height:250px;display:flex;align-items:flex-end;position:relative}.vertical-bar-fill{width:100%;background:#c40923;border-radius:4px 4px 0 0;transition:all .3s ease;position:relative;cursor:pointer;display:flex;align-items:flex-start;justify-content:center;padding-top:.5rem;min-height:30px}.vertical-bar-fill:hover{background:#a00720;transform:scaleX(1.1);box-shadow:0 4px 12px #c4092366}.vertical-bar-value{color:#fff;font-size:.7rem;font-weight:600;writing-mode:horizontal-tb;text-align:center;opacity:0;transition:opacity .2s}.vertical-bar-fill:hover .vertical-bar-value{opacity:1}.vertical-bar-label{margin-top:.5rem;font-size:.7rem;color:#2c3e50;text-align:center;word-wrap:break-word;max-width:100%;line-height:1.2;font-weight:500;transform:rotate(-45deg);transform-origin:center;white-space:nowrap;margin-top:2rem}.empty-message{padding:2rem;text-align:center;color:#7f8c8d;font-style:italic;background:#f8f9fa;border-radius:4px}.loading{text-align:center;padding:3rem;font-size:1.1rem;color:#7f8c8d}.error-message{background-color:#fee;color:#c33;padding:1rem;border-radius:6px;margin:1rem 0;border:1px solid #fcc}@media (max-width: 768px){.stats-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem}.stat-card{padding:1rem}.stat-icon{font-size:2rem}.stat-value{font-size:1.5rem}.chart-card-full{padding:1rem}.bar-label-left{min-width:100px;font-size:.8rem}.date-filter{width:100%;flex-wrap:wrap}.date-filter select{flex:1;min-width:100px}}.searchable-select{position:relative;width:100%}.searchable-select-input{padding:.6rem 1rem;border:2px solid #e0e0e0;border-radius:6px;font-size:.95rem;background:#f8f9fa;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:all .3s;min-height:42px;box-sizing:border-box;outline:none}.searchable-select-input:hover{border-color:#c40923;box-shadow:0 2px 8px #c4092326}.searchable-select-input:focus{border-color:#c40923;box-shadow:0 0 0 3px #c409231a}.searchable-select-input .arrow{color:#7f8c8d;font-size:.8rem}.searchable-select-dropdown{position:absolute;top:100%;left:0;right:0;margin-top:.25rem;background:linear-gradient(135deg,#fff,#fafafa);border:2px solid #e0e0e0;border-radius:8px;box-shadow:0 8px 24px #00000026;z-index:9999;max-height:500px;display:flex;flex-direction:column}.searchable-select-search{padding:.75rem;border:none;border-bottom:1px solid #e0e0e0;font-size:1rem;outline:none}.searchable-select-options{overflow-y:auto;max-height:450px}.searchable-select-option{padding:.75rem;cursor:pointer;transition:background-color .2s}.searchable-select-option:hover{background-color:#f8f9fa}.searchable-select-option.highlighted{background-color:#e3f2fd;border-left:3px solid #c40923}.searchable-select-option.selected{background:#c40923;color:#fff}.searchable-select-option.selected.highlighted{background:#a00719;color:#fff}.searchable-select-empty{padding:1rem;text-align:center;color:#7f8c8d;font-style:italic}.filter-bar{display:flex;gap:1rem;margin-bottom:1rem}.filter-bar .search-input{flex:1;max-width:none}.filter-select-wrapper{min-width:250px}.filter-select{padding:.5rem;border:2px solid #e0e0e0;border-radius:6px;font-size:.9rem;min-width:200px;background-color:#fff}.filter-select:focus{outline:none;border-color:#c40923}.keyboard-hint{font-size:.75rem;color:#666;font-weight:400;font-style:italic;margin-left:.5rem}kbd{background:#f4f4f4;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px #0003,0 0 0 2px #fff inset;color:#333;display:inline-block;font-family:monospace;font-size:.85em;line-height:1.4;margin:0 .1em;padding:.1em .6em;text-shadow:0 1px 0 #fff}.row-number{color:#999;font-weight:700;margin-right:.5rem}.insert-after-highlight{background-color:#fff3cd!important;border-bottom:3px solid #c40923!important}.order-items-table td button{margin-right:.25rem}.order-items-table td button:last-child{margin-right:0}.quotation-checkbox{display:flex;align-items:center}.quotation-checkbox label{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-size:1rem;color:#2c3e50;font-weight:600}.quotation-checkbox input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#c40923}.quotation-checkbox span{-webkit-user-select:none;user-select:none}.header-actions{display:flex;gap:1rem}.order-search-section{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.25rem;padding:1rem;background:#fff;border-radius:8px;border:1px solid #e0e0e0;box-shadow:0 2px 8px #0000000d}.search-order-group{display:flex;gap:.75rem;flex:1;align-items:center}.order-search-input{flex:1;max-width:350px;padding:.6rem 1rem;border:2px solid #e0e0e0;border-radius:6px;font-size:.95rem;background:#f8f9fa}.order-search-input:focus{outline:none;border-color:#c40923;box-shadow:0 0 0 3px #c4092326}.last-order-number{display:flex;align-items:center;gap:.75rem;padding:.6rem 1rem;background:linear-gradient(135deg,#c40923,#a00720);color:#fff;border-radius:6px;font-weight:600;font-size:.95rem;box-shadow:0 2px 6px #c4092340}.btn-copy,.btn-print{padding:.4rem .8rem;background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.4);border-radius:4px;cursor:pointer;transition:all .2s;font-weight:500;font-size:.9rem}.btn-copy:hover,.btn-print:hover:not(:disabled){background:#ffffff4d}.btn-print:disabled{opacity:.5;cursor:not-allowed}.product-selection{margin-bottom:1.25rem;padding:1rem;background:#fff;border-radius:8px;border:1px solid #e0e0e0;box-shadow:0 2px 8px #0000000d}.product-selection label{display:block;margin-bottom:.75rem;font-weight:600;color:#2c3e50;font-size:1rem;letter-spacing:.3px}.product-add-group{display:flex;gap:.75rem;align-items:center}.product-add-group>div{flex:1;max-width:500px}.order-items-section{margin-bottom:1rem;padding:1rem;background:#fff;border-radius:8px;border:1px solid #e0e0e0;box-shadow:0 2px 8px #0000000d}.order-items-section h3{margin-bottom:1rem;color:#2c3e50;font-size:1.1rem;font-weight:700;padding-bottom:.75rem;border-bottom:2px solid #f0f0f0}.empty-message{padding:3rem 2rem;text-align:center;color:#95a5a6;font-style:italic;background:#f8f9fa;border-radius:8px;border:2px dashed #dee2e6;font-size:1rem}.scrollable-table{max-height:400px;overflow-y:auto;border:1px solid #e0e0e0;border-radius:8px;scroll-behavior:smooth}.order-items-table{width:100%;border-collapse:collapse;background:#fff}.order-items-table thead{background:#c40923;color:#fff;position:sticky;top:0;z-index:10}.order-items-table th{padding:.6rem;text-align:left;font-weight:600;font-size:.9rem}.order-items-table td{padding:.6rem;border-bottom:1px solid #e0e0e0;vertical-align:middle;font-size:.9rem}.order-items-table tbody tr:hover{background:#c409230d}.item-input{width:80px;padding:.5rem;border:2px solid #e0e0e0;border-radius:4px;font-size:1rem;text-align:center}.item-input:focus{outline:none;border-color:#c40923}.amount-cell{font-weight:600;color:#2c3e50;font-size:1.05rem}.order-summary{margin-top:1rem;padding:1.25rem;background:#fff;border-radius:8px;border:1px solid #e0e0e0;box-shadow:0 2px 8px #0000000d;max-width:500px;margin-left:auto}.summary-row{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0;border-bottom:1px solid #f0f0f0}.summary-row:last-child{border-bottom:none}.summary-row.net-amount{margin-top:1rem;padding-top:1rem;border-top:2px solid #c40923;font-size:1.2rem;font-weight:700;background:linear-gradient(135deg,#fff5f5,#fff);margin-left:-1.25rem;margin-right:-1.25rem;padding:1rem 1.25rem;border-bottom:none}.summary-row label{font-weight:600;color:#2c3e50;font-size:1rem}.summary-row .amount{font-size:1.1rem;font-weight:700;color:#c40923}.net-amount .amount{font-size:1.4rem}.shortcut-hint{font-size:.75rem;opacity:.8;font-weight:400;margin-left:.25rem}.discount-input{width:120px;padding:.5rem;border:2px solid #e0e0e0;border-radius:4px;font-size:1rem;text-align:right;background:#f8f9fa}.discount-input:focus{outline:none;border-color:#c40923}.quotation-checkbox-input{width:20px;height:20px;cursor:pointer;accent-color:#c40923}.summary-actions{display:flex;gap:.75rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid #f0f0f0;justify-content:flex-end}.summary-actions .btn{flex:1;max-width:150px;padding:.6rem 1rem;font-size:.95rem}.success-message{background-color:#d4edda;color:#155724;padding:1rem;border-radius:6px;margin-bottom:1rem;border:1px solid #c3e6cb;font-weight:500}@media (max-width: 768px){.order-search-section{flex-direction:column;gap:1rem}.search-order-group{flex-direction:column;width:100%}.order-search-input{max-width:none}.product-add-group{flex-direction:column}.product-add-group>div{max-width:none;width:100%}.order-summary{max-width:none}.header-actions{flex-direction:column}.header-actions .btn{width:100%}}.refunds-page{padding:2rem;min-height:100vh}.refunds-container{max-width:900px;margin:0 auto}.refunds-header{margin-bottom:1.5rem}.refunds-header h1{color:#2c3e50;font-size:1.8rem;margin:0;font-weight:600}.refund-form{background:#fff;padding:2rem;border-radius:8px;border:1px solid #e0e0e0;box-shadow:0 2px 8px #0000000d}.form-group{margin-bottom:1.5rem}.form-group label{display:block;color:#2c3e50;font-weight:600;margin-bottom:.5rem;font-size:1rem}.form-group .searchable-select{max-width:500px}.refund-items-section{margin-bottom:1.5rem}.refund-items-section h3{color:#2c3e50;font-size:1.2rem;margin-bottom:1rem;font-weight:600}.refund-items-table{width:100%;border-collapse:collapse;border:1px solid #e0e0e0;border-radius:6px;overflow:hidden}.refund-items-table thead{background:#f8f9fa}.refund-items-table th,.refund-items-table td{padding:.75rem;text-align:left;border-bottom:1px solid #e0e0e0}.refund-items-table th{font-weight:600;color:#2c3e50;font-size:.9rem}.refund-items-table td{color:#2c3e50}.refund-items-table tbody tr:last-child td{border-bottom:none}.qty-input{width:70px;padding:.5rem;border:2px solid #e0e0e0;border-radius:6px;text-align:center;background:#fff;color:#2c3e50;font-size:1rem}.qty-input:focus{outline:none;border-color:#c40923;box-shadow:0 0 0 3px #c409231a}.remove-btn{padding:.5rem 1rem;background:#dc3545;border:none;color:#fff;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:600;transition:all .3s ease}.remove-btn:hover{background:#c82333;transform:translateY(-1px);box-shadow:0 4px 12px #dc35454d}.reason-textarea{width:100%;padding:.75rem;border:2px solid #e0e0e0;border-radius:6px;font-size:1rem;font-family:inherit;background:#fff;color:#2c3e50;resize:vertical;min-height:80px}.reason-textarea:focus{outline:none;border-color:#c40923;box-shadow:0 0 0 3px #c409231a}.refund-totals{background:#f8f9fa;padding:1.5rem;border-radius:6px;margin-bottom:1.5rem;border:1px solid #e0e0e0}.total-row{display:flex;justify-content:space-between;padding:.5rem 0;font-size:1.1rem;color:#2c3e50}.total-row.net-amount{border-top:2px solid #e0e0e0;margin-top:.75rem;padding-top:.75rem;font-size:1.5rem;font-weight:700;color:#c40923}.total-value{font-weight:600}.form-actions{display:flex;gap:1rem;margin-bottom:1.5rem}.create-refund-btn{flex:1;padding:1rem;background:#c40923;color:#fff;border:none;border-radius:6px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s ease}.create-refund-btn:hover{background:#a00719;transform:translateY(-1px);box-shadow:0 4px 12px #c409234d}.create-refund-btn:active{transform:translateY(0)}.clear-btn{padding:1rem 2rem;background:#6c757d;color:#fff;border:none;border-radius:6px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s ease}.clear-btn:hover{background:#5a6268;transform:translateY(-1px)}.last-refund-section{display:inline-flex;align-items:center;gap:.75rem;padding:.6rem 1rem;background:linear-gradient(135deg,#c40923,#a00720);color:#fff;border-radius:6px;font-weight:600;font-size:.95rem;box-shadow:0 2px 6px #c4092340;margin-left:auto;width:fit-content}@media (max-width: 768px){.refunds-page{padding:1rem}.refund-form{padding:1.5rem}.refunds-header h1{font-size:1.5rem}.form-actions{flex-direction:column}.create-refund-btn,.clear-btn{width:100%}.refund-items-table{font-size:.85rem}.refund-items-table th,.refund-items-table td{padding:.5rem .25rem}.qty-input{width:50px;padding:.3rem}.remove-btn{padding:.4rem .6rem;font-size:.8rem}}.page-container{background:linear-gradient(135deg,#fff,#f8f9fa);border-radius:8px;padding:.75rem;box-shadow:0 4px 20px #00000014}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;padding-bottom:.5rem;border-bottom:2px solid transparent;border-image:linear-gradient(90deg,#c40923,#d91a3f,#e02b50) 1}.page-header h1{font-size:1.25rem;color:#2c3e50;font-weight:700}.search-bar{margin-bottom:1rem}.search-input{width:100%;max-width:400px;padding:.5rem;border:2px solid #e0e0e0;border-radius:6px;font-size:.9rem;background:linear-gradient(135deg,#fff,#f8f9fa);transition:all .3s}.search-input:focus{outline:none;border:2px solid transparent;background:#fff;box-shadow:0 0 0 3px #c4092326}.btn{padding:.6rem 1rem;border:2px solid transparent;border-radius:6px;font-size:.95rem;font-weight:500;transition:all .2s;min-height:42px;box-sizing:border-box;cursor:pointer}.btn-primary{background:#c40923;color:#fff;box-shadow:0 2px 4px #c4092340}.btn-primary:hover{background:#a00720;box-shadow:0 4px 8px #c4092359}.btn-secondary{background:#c40923;color:#fff;box-shadow:0 2px 4px #c4092340}.btn-secondary:hover{background:#a00720;box-shadow:0 4px 8px #c4092359}.btn-danger{background:#6c757d;color:#fff;box-shadow:0 2px 4px #6c757d33}.btn-danger:hover{background:#5a6268;box-shadow:0 4px 8px #6c757d4d}.btn-gray{background:#6c757d;color:#fff;box-shadow:0 2px 4px #6c757d33}.btn-gray:hover{background:#5a6268;box-shadow:0 4px 8px #6c757d4d}.btn-sm{padding:.35rem .7rem;font-size:.85rem;margin-right:.5rem}.loading{text-align:center;padding:2rem;color:#7f8c8d;font-size:1.1rem}.error-message{background-color:#fee;color:#c33;padding:1rem;border-radius:6px;margin-bottom:1rem;border:1px solid #fcc}.table-container{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;margin-top:1rem}.data-table th{background:#c40923;padding:.6rem;text-align:left;font-weight:600;color:#fff;border-bottom:2px solid #a00720;font-size:.9rem}.data-table td{padding:.6rem;border-bottom:1px solid #e0e0e0;font-size:.9rem}.data-table tbody tr:hover{background:#c409230d}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;overflow:visible}.modal{background:linear-gradient(135deg,#fff,#fafafa);border-radius:12px;width:90%;max-width:500px;max-height:90vh;box-shadow:0 10px 40px #c4092333;display:flex;flex-direction:column;position:relative}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;background:#c40923;border-radius:12px 12px 0 0}.modal-header h2{margin:0;color:#fff}.modal-close{background:#fff3;border:none;font-size:1.5rem;color:#fff;line-height:1;padding:0;width:2rem;height:2rem;border-radius:4px;transition:background .2s}.modal-close:hover{background:#ffffff4d}.modal form{padding:1.5rem;overflow:visible}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.5rem;color:#2c3e50;font-weight:500}.form-group input,.form-group textarea,.form-group select{width:100%;padding:.75rem;border:2px solid #e0e0e0;border-radius:6px;font-size:1rem}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#c40923;box-shadow:0 0 0 3px #c409231a}.modal-footer{display:flex;justify-content:flex-end;gap:1rem;padding:1.5rem;border-top:1px solid #e0e0e0}.filters-section{display:flex;gap:2rem;margin-bottom:1rem;padding:1.5rem;background:linear-gradient(135deg,#fff,#f8f9fa);border-radius:6px;border:2px solid #e0e0e0;flex-wrap:wrap}.filter-group{display:flex;flex-direction:column;gap:.75rem}.filter-group label{font-weight:600;color:#2c3e50;font-size:.9rem}.date-range-wrapper{display:flex;gap:1rem;align-items:center;margin-bottom:.5rem}.date-separator{color:#7f8c8d;font-weight:500;padding:0 .25rem}.date-input{padding:.5rem;border:2px solid #e0e0e0;border-radius:6px;font-size:.9rem;background:#fff;cursor:pointer}.date-input:focus{outline:none;border-color:#c40923;box-shadow:0 0 0 3px #c409231a}.date-presets{display:flex;gap:.75rem;flex-wrap:wrap}.preset-btn{padding:.4rem .8rem;background:#fff;color:#2c3e50;border:2px solid #e0e0e0;border-radius:6px;cursor:pointer;font-size:.85rem;font-weight:500;transition:all .2s}.preset-btn:hover{background:#c40923;color:#fff;border-color:#c40923;transform:translateY(-1px);box-shadow:0 2px 6px #c409234d}.order-number-input{padding:.5rem;border:2px solid #e0e0e0;border-radius:6px;font-size:.9rem;background:#fff;min-width:200px}.order-number-input:focus{outline:none;border-color:#c40923;box-shadow:0 0 0 3px #c409231a}.order-number-input::placeholder{color:#95a5a6}.status-buttons{display:flex;gap:.75rem}.status-btn{padding:.5rem 1rem;background:#fff;border:2px solid #e0e0e0;border-radius:6px;cursor:pointer;font-weight:500;font-size:.9rem;transition:all .2s}.status-btn:hover{border-color:#c40923;background:#ffebee}.status-btn.active{background:#c40923;color:#fff;border-color:#c40923}.order-number{font-weight:600;color:#c40923;font-size:1.05rem}.amount{font-weight:600;color:#2c3e50}.net-amount{font-weight:700;color:#c40923;font-size:1.1rem}.status-badge{padding:.4rem .8rem;border-radius:12px;font-size:.85rem;font-weight:600;display:inline-block}.status-badge.active{background:linear-gradient(135deg,#66bb6a,#4caf50);color:#fff}.status-badge.draft{background:linear-gradient(135deg,#ffa726,#ff9800);color:#fff}.status-badge.quotation{background:linear-gradient(135deg,#9c27b0,#7b1fa2);color:#fff}.action-buttons{display:flex;gap:.5rem;justify-content:center;align-items:center}.btn-print-red{background:linear-gradient(135deg,#c40923,#a00720);color:#fff;border:none;font-weight:600;padding:.4rem .8rem;border-radius:4px;cursor:pointer;transition:all .2s;font-size:.875rem}.btn-print-red:hover:not(:disabled){background:linear-gradient(135deg,#a00720,#800618);transform:translateY(-1px);box-shadow:0 4px 12px #c409234d}.btn-print-red:disabled{opacity:.5;cursor:not-allowed}.btn-pdf{background:linear-gradient(135deg,#6c757d,#5a6268);color:#fff;border:none;font-weight:600;padding:.4rem .8rem;border-radius:4px;cursor:pointer;transition:all .2s;font-size:.875rem}.btn-pdf:hover:not(:disabled){background:linear-gradient(135deg,#5a6268,#4e555b);transform:translateY(-1px);box-shadow:0 4px 12px #6c757d4d}.btn-pdf:disabled{opacity:.5;cursor:not-allowed}.btn-placeholder{width:85px;height:32px;display:inline-block;visibility:hidden}.modal-large{max-width:800px;max-height:90vh;overflow-y:auto}.modal-body{padding:2rem}.order-info{background:linear-gradient(135deg,#f8f9fa,#fff);padding:1.5rem;border-radius:8px;margin-bottom:2rem;border:2px solid #e0e0e0}.info-row{display:flex;justify-content:space-between;padding:.75rem 0;border-bottom:1px solid #e0e0e0}.info-row:last-child{border-bottom:none}.info-row .label{font-weight:600;color:#2c3e50}.info-row .value{color:#555}.order-number-with-copy{display:inline-flex;align-items:center;gap:.5rem}.copy-icon-btn{background:transparent;border:none;cursor:pointer;padding:.25rem .5rem;font-size:1.1rem;display:inline-flex;align-items:center;justify-content:center;opacity:.5;transition:all .3s;border-radius:4px;vertical-align:middle;color:#2c3e50;font-weight:600;min-width:28px}.copy-icon-btn:hover{opacity:1;background:#c409231a;transform:scale(1.15);color:#c40923}.copy-icon-btn:active{transform:scale(.9)}.copy-icon-btn.copied{opacity:1;background:#28a74526;color:#28a745;animation:pulse .3s ease}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.2)}}.modal-body h3{margin:2rem 0 1rem;color:#2c3e50;font-size:1.3rem}.detail-table{width:100%;border-collapse:collapse;margin-bottom:2rem}.detail-table thead{background:#c40923;color:#fff}.detail-table th{padding:1rem;text-align:left;font-weight:600}.detail-table td{padding:1rem;border-bottom:1px solid #e0e0e0}.detail-table tbody tr:hover{background:#c409230d}.order-summary-modal{background:linear-gradient(135deg,#fff,#f8f9fa);padding:1.5rem;border-radius:8px;border:2px solid #e0e0e0}.order-summary-modal .summary-row{display:flex;justify-content:space-between;padding:.75rem 0;border-bottom:1px solid #e0e0e0}.order-summary-modal .summary-row:last-child{border-bottom:none}.order-summary-modal .summary-row .label{font-weight:600;color:#2c3e50}.order-summary-modal .summary-row .value{font-weight:600;color:#555}.order-summary-modal .summary-row.total{margin-top:1rem;padding-top:1rem;border-top:3px solid #c40923;font-size:1.3rem}.order-summary-modal .summary-row.total .value{color:#c40923;font-size:1.5rem}.data-table th{background:#c40923!important;border-bottom:2px solid #a00720!important}.pagination{display:flex;justify-content:center;align-items:center;gap:.5rem;margin-top:1rem;padding:.75rem}.pagination-btn{padding:.5rem 1rem;background:#c40923;color:#fff;border:none;border-radius:4px;cursor:pointer;font-weight:500;transition:all .2s}.pagination-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 8px #c409234d}.pagination-btn:disabled{background:#ccc;cursor:not-allowed;transform:none}.pagination-numbers{display:flex;gap:.5rem;align-items:center}.pagination-number{padding:.5rem .75rem;background:#fff;color:#2c3e50;border:2px solid #e0e0e0;border-radius:4px;cursor:pointer;font-weight:500;transition:all .2s;min-width:40px}.pagination-number:hover{border-color:#c40923;background:#ffebee}.pagination-number.active{background:#c40923;color:#fff;border-color:#c40923}.pagination-ellipsis{color:#7f8c8d;font-weight:700;padding:0 .5rem}@media (max-width: 768px){.filters-section{flex-direction:column}.date-range-wrapper{flex-direction:column;align-items:stretch}.date-separator{text-align:center}.date-input{width:100%}.date-presets{justify-content:stretch}.preset-btn{flex:1;min-width:70px}.status-buttons{flex-direction:column}.order-number-input{width:100%;min-width:auto}.modal-large{width:95%}.pagination{flex-wrap:wrap}.pagination-btn{font-size:.9rem;padding:.4rem .8rem}.pagination-number{min-width:35px;padding:.4rem .6rem}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f5f5f5;min-height:100vh}button{cursor:pointer;font-family:inherit}input,select,textarea{font-family:inherit}
