:root{--background:#0f172a;--surface:#1e293b;--text:#f8fafc;--text-muted:#94a3b8;--accent:#00b8d9;--accent-hover:#0891b2;--radius:16px;--shadow:0 12px 32px #00000059}*,:before,:after{box-sizing:border-box}html{font-size:16px}body{background:var(--background);min-height:100vh;color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font-family:Inter,system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:var(--accent);text-decoration:none}img{max-width:100%;display:block}.app{justify-content:center;align-items:center;min-height:100vh;display:flex}.app-header{text-align:center}.app-logo{width:500px;max-width:90vw;margin:0 auto}.app-subtitle{color:var(--text-muted);letter-spacing:.12em;text-transform:uppercase;margin-top:1rem;font-size:.95rem}.admin-page{background:var(--background);width:100%;min-height:100vh}.app-topbar{border-bottom:1px solid #94a3b82e;justify-content:space-between;align-items:center;height:84px;padding:0 2rem;display:flex}.topbar-logo{cursor:pointer;background:0 0;border:none;padding:0}.topbar-logo img{width:auto;height:52px}.admin-main{width:100%;padding:1.5rem 2rem}.admin-panel{background:var(--surface);width:100%;box-shadow:var(--shadow);border:1px solid #94a3b82e;border-radius:24px;overflow:hidden}@media (width<=900px){.app-topbar{padding:0 1.25rem}.admin-main{padding:1.25rem}.admin-panel{border-radius:20px}}@media (width<=600px){.app{align-items:flex-start;padding:1rem}.app-logo{width:min(100%,360px)}.app-topbar{gap:.75rem;height:auto;min-height:68px;padding:.75rem 1rem}.topbar-logo img{height:40px}.admin-main{padding:1rem}.admin-panel{border-radius:16px}}.user-menu{color:var(--text);background:#1e293bbf;border:1px solid #94a3b833;border-radius:999px;grid-template-columns:1fr auto;align-items:center;gap:.1rem .75rem;padding:.65rem .9rem;display:grid}.user-name{text-align:right;font-weight:700}.user-role{color:var(--text-muted);text-align:right;font-size:.8rem}.user-chevron{color:var(--text-muted);grid-row:1/span 2}.user-menu-wrapper{position:relative}.user-dropdown{background:var(--surface);min-width:220px;box-shadow:var(--shadow);border:1px solid #94a3b833;border-radius:16px;padding:.5rem;position:absolute;top:calc(100% + .5rem);right:0}.user-dropdown button{width:100%;color:var(--text);text-align:left;background:0 0;border:none;border-radius:10px;padding:.75rem .9rem}.user-dropdown button:hover{background:#94a3b81f}.admin-section{flex-direction:column;gap:1.5rem;display:flex}.admin-section-header{justify-content:space-between;align-items:center;gap:1rem;display:flex}.admin-section-header h1{margin:0;font-size:1.8rem}.admin-section-header p{color:var(--text-muted);margin:.35rem 0 0}.admin-tabs{border-bottom:1px solid #94a3b82e;gap:0;display:flex}.admin-tab{color:var(--text-muted);background:0 0;border:none;border-bottom:3px solid #0000;padding:1rem 1.4rem;font-weight:700}.admin-tab.active{color:var(--accent);border-bottom-color:var(--accent)}.admin-panel-content{text-align:left;padding:2rem}.admin-panel-content h1{margin:0 0 .5rem}.admin-panel-content p{color:var(--text-muted);margin:0}.admin-table{border:1px solid #94a3b82e;border-radius:16px;overflow:hidden}.admin-table-header,.admin-table-row{grid-template-columns:1.2fr 1.8fr 1.5fr 1.2fr .8fr 1.5fr;align-items:center;gap:1rem;padding:1rem 1.25rem;display:grid}.admin-table-header{color:var(--text-muted);text-transform:uppercase;background:#94a3b814;font-size:.9rem;font-weight:600}.admin-table-row{border-top:1px solid #94a3b81f}.table-actions{gap:.5rem;display:flex}.table-actions button{color:var(--text);cursor:pointer;background:0 0;border:1px solid #94a3b833;border-radius:8px;padding:.45rem .75rem}.table-actions button:hover{background:#94a3b81f}.supplier-table-grid{grid-template-columns:1.6fr 1.2fr 1.2fr .8fr 1.5fr}@media (width<=1000px){.admin-tabs{scrollbar-width:none;-webkit-overflow-scrolling:touch;width:100%;overflow:auto hidden}.admin-tabs::-webkit-scrollbar{display:none}.admin-tab{white-space:nowrap;flex:none;padding:1rem 1.1rem}}@media (width<=600px){.user-menu{column-gap:.5rem;padding:.55rem .7rem}.user-name,.user-role{text-overflow:ellipsis;white-space:nowrap;max-width:10rem;overflow:hidden}.user-dropdown{z-index:1000;min-width:0;position:fixed;top:4.75rem;left:1rem;right:1rem}.admin-tabs{scrollbar-width:none;-webkit-overflow-scrolling:touch;width:100%;overflow:auto hidden}.admin-tabs::-webkit-scrollbar{display:none}.admin-tab{white-space:nowrap;flex:none;padding:.9rem 1.1rem}.admin-panel-content{padding:1.5rem 1rem}.admin-section{gap:1.25rem}.admin-section-header{flex-direction:column;align-items:stretch}.admin-section-header h1{font-size:1.6rem}.admin-section-header>button,.admin-section-header .primary-action{width:100%}.admin-table{scrollbar-width:thin;scrollbar-color:#94a3b873 transparent;overflow:auto hidden}.admin-table-header,.admin-table-row{min-width:900px}.supplier-table-grid{min-width:760px}}.login-shell{text-align:center;width:min(620px,90vw)}.login-form{gap:1rem;margin-top:3rem;display:grid}.form-group{text-align:left;gap:.45rem;width:80%;margin:0 auto;display:grid}.form-group input{width:100%}.login-form label{text-align:left;color:var(--text-muted);gap:.45rem;font-size:.9rem;display:grid}.login-form input{border-radius:var(--radius);background:var(--surface);width:100%;color:var(--text);border:1px solid #ffffff26;outline:none;margin:0 auto;padding:.9rem 1rem}.login-form input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #00b8d926}.login-form button{border-radius:var(--radius);background:var(--accent);color:#fff;border:none;width:50%;margin:.75rem auto 0;padding:.95rem 1rem;font-weight:700}.login-form button:hover{background:var(--accent-hover)}.app-status{color:var(--text-muted);letter-spacing:.08em;text-transform:uppercase;margin-top:3rem}.setup-description{color:var(--text-muted);text-align:center;margin-top:.5rem;font-size:.95rem}.setup-title{color:var(--text);text-align:center;margin-top:3rem;font-size:1.6rem;font-weight:600}.form-error{color:#fca5a5;text-align:center;width:80%;margin:.5rem auto 0;font-size:.9rem}.form-success{color:#22c55e;text-align:center;width:80%;margin:.5rem auto 0;font-size:.9rem}.admin-toolbar{justify-content:space-between;align-items:center;gap:1rem;display:flex}.admin-search{background:var(--background);width:420px;max-width:100%;color:var(--text);border:1px solid #94a3b833;border-radius:12px;padding:.85rem 1rem}.history-search{border-radius:var(--radius);background:#0f172a59;border:1px solid #94a3b82e;margin-top:2rem;padding:1.5rem}.history-search-header{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.history-search-header h2{margin:0}.history-search-header p{color:var(--text-muted);margin:.35rem 0 0}.history-search-fields{grid-template-columns:repeat(2,minmax(220px,320px));gap:1rem;margin-top:1.5rem;display:grid}.history-search-fields label{color:var(--text);flex-direction:column;gap:.5rem;font-weight:600;display:flex}.history-search-fields select,.history-search-fields input{color:#0f172a;background:#fff;border:1px solid #94a3b847;border-radius:8px;padding:.7rem .85rem}.history-search-results{border-top:1px solid #94a3b82e;margin-top:1.5rem;padding-top:1.5rem}.history-search-results-header{margin-bottom:1rem}@media (width<=600px){.history-search-header{flex-direction:column}.history-search-fields{grid-template-columns:1fr}.login-shell{width:min(100%,420px)}.form-group,.form-error,.form-success,.login-form button{width:100%}.setup-title{font-size:1.4rem}.admin-toolbar{flex-direction:column;align-items:stretch}.admin-search{width:100%}}.modal-backdrop{z-index:1000;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#020617b8;place-items:center;display:grid;position:fixed;inset:0}.modal{background:var(--surface);width:min(520px,100vw - 2rem);box-shadow:var(--shadow);border:1px solid #94a3b838;border-radius:24px;padding:1.5rem}.modal-header{justify-content:space-between;gap:1rem;display:flex}.modal-header h2{margin:0}.modal-header p{color:var(--text-muted);margin:.4rem 0 0}.modal-close{color:var(--text-muted);cursor:pointer;background:0 0;border:none;font-size:1.8rem}.modal-form{gap:1rem;margin-top:1.5rem;display:grid}.modal-form-group{width:100%}.modal-actions{justify-content:flex-end;gap:.75rem;margin-top:.75rem;display:flex}.secondary-action{color:var(--text);cursor:pointer;background:0 0;border:1px solid #94a3b838;border-radius:12px;padding:.85rem 1.25rem;font-weight:600}.department-access-list{gap:.5rem;margin-top:1.5rem;display:grid}.department-access-item{width:100%;color:var(--text);cursor:pointer;text-align:left;background:0 0;border:1px solid #94a3b838;border-radius:12px;align-items:center;gap:.75rem;padding:.85rem 1rem;transition:border-color .2s,background .2s;display:flex}.department-access-item:hover{border-color:var(--accent)}.department-access-item.assigned{border-color:var(--accent);background:#0ea5e91f}.department-access-check{color:var(--accent);font-size:1.2rem}.department-access-item{align-items:center;gap:1rem;display:flex}.department-access-name{flex:1}.department-role-select{width:220px}.order-reminder-modal{width:min(900px,100vw - 2rem);max-height:calc(100vh - 2rem);overflow-y:auto}.reminder-departments,.reminder-schedules{border:1px solid #94a3b838;border-radius:16px;gap:1rem;margin:0;padding:1rem;display:grid}.reminder-departments legend,.reminder-schedules legend{color:var(--text);padding:0 .5rem;font-weight:700}.reminder-department-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.reminder-department-option{color:var(--text);cursor:pointer;border:1px solid #94a3b838;border-radius:12px;align-items:center;gap:.75rem;padding:.85rem 1rem;display:flex}.reminder-department-option:has(input:checked){border-color:var(--accent);background:#0ea5e91f}.reminder-department-option input{accent-color:var(--accent)}.reminder-schedule-row{border-bottom:1px solid #94a3b824;grid-template-columns:minmax(0,1fr) minmax(140px,.7fr) minmax(0,1fr) auto;align-items:end;gap:.75rem;padding-bottom:1rem;display:grid}.reminder-remove-schedule{margin-bottom:0}@media (width<=700px){.reminder-department-grid,.reminder-schedule-row{grid-template-columns:1fr}.reminder-remove-schedule{width:100%}}@media (width<=600px){.modal{width:calc(100vw - 1rem);max-height:calc(100vh - 1rem);padding:1.25rem;overflow-y:auto}.modal-header{flex-direction:column;align-items:flex-start}.modal-close{align-self:flex-end}.modal-actions{flex-direction:column-reverse}.modal-actions>*,.department-role-select{width:100%}.department-access-item{flex-direction:column;align-items:flex-start}}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;margin-top:2rem;display:grid}.dashboard-card{background:#0f172a59;border:1px solid #94a3b833;border-radius:16px;min-height:220px;padding:1.5rem}.dashboard-card-finance{grid-column:1/-1}.dashboard-card h2{margin-bottom:1rem}.dashboard-card p{color:var(--text-muted)}@media (width<=900px){.dashboard-grid{grid-template-columns:1fr}}.dashboard-list{color:var(--text-muted);gap:.85rem;margin:0;padding:0;list-style:none;display:grid}.dashboard-list li{justify-content:space-between;align-items:center;gap:1rem;display:flex}.dashboard-list span{color:var(--muted-text)}.dashboard-list strong{color:var(--text)}.dashboard-ok{color:#22c55e!important}.dashboard-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.dashboard-stat{background:#0f172a40;border:1px solid #94a3b829;border-radius:12px;padding:1rem}.dashboard-stat span{color:var(--text-muted);font-size:.85rem;display:block}.dashboard-stat strong{color:var(--text);margin-top:.35rem;font-size:1.6rem;display:block}.dashboard-action-list{gap:.85rem;margin:0;padding:0;list-style:none;display:grid}.dashboard-action-list li{background:#0f172a40;border-radius:12px;padding:.85rem 1rem}.dashboard-action-ok{border-left:4px solid #22c55e}.dashboard-action-warning{border-left:4px solid #f59e0b}.dashboard-activity-list{scrollbar-width:thin;scrollbar-color:#94a3b873 transparent;gap:.85rem;max-height:11rem;margin:0;padding:0 .5rem 0 0;list-style:none;display:grid;overflow-y:auto}.dashboard-activity-list li{border-bottom:1px solid #94a3b824;gap:.25rem;padding-bottom:.85rem;display:grid}.dashboard-activity-list li:last-child{border-bottom:none;padding-bottom:0}.dashboard-activity-time{color:var(--text-muted);font-size:.8rem}.dashboard-activity-list strong{color:var(--text);font-size:.95rem}.dashboard-manager-activity-list{scrollbar-width:thin;scrollbar-color:#94a3b873 transparent;gap:.85rem;max-height:24rem;margin:0;padding:0 .5rem 0 0;list-style:none;display:grid;overflow-y:auto}.dashboard-manager-activity-list li{border-bottom:1px solid #94a3b824;padding-bottom:.85rem;position:relative}.dashboard-manager-activity-list li:last-child{border-bottom:none;padding-bottom:0}.dashboard-manager-activity-button{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;border-radius:8px;gap:.25rem;padding:0 2rem 0 0;display:grid}.dashboard-manager-activity-button:hover{background:#94a3b81a;margin:-.5rem;padding:.5rem}.dashboard-manager-activity-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;margin:-.5rem;padding:.5rem}.dashboard-manager-activity-list strong{color:var(--text);font-size:.95rem}.dashboard-manager-activity-dismiss{width:1.75rem;height:1.75rem;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;padding:0;font-size:1rem;line-height:1;transition:background-color .15s,color .15s;display:flex;position:absolute;top:0;right:0}.dashboard-manager-activity-dismiss:hover{color:#fff;background:#ef44442e}.dashboard-manager-activity-dismiss:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (width<=900px){.dashboard-card-manager-activity{grid-row:auto}.dashboard-card-next-orders{order:1}.dashboard-card-manager-activity{order:2}.dashboard-card-finance{order:3}}.dashboard-deadline-list{scrollbar-width:thin;scrollbar-color:#94a3b873 transparent;gap:.75rem;max-height:20rem;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.dashboard-deadline-list li{background:#0f172a40;border:1px solid #94a3b829;border-radius:12px;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 1rem;display:flex}.dashboard-deadline-list li>div{gap:.25rem;display:grid}.dashboard-deadline-list strong{color:var(--text)}.dashboard-deadline-list span{color:var(--text-muted);font-size:.85rem}.dashboard-deadline-time{text-align:right}.dashboard-department-statuses{flex-wrap:wrap;gap:.4rem;margin-top:.25rem;display:flex}.dashboard-department-status{cursor:pointer;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;min-width:2.75rem;padding:.2rem .5rem;font-family:inherit;font-size:.75rem;font-weight:700;line-height:1;transition:filter .15s,transform .15s;display:inline-flex}.dashboard-department-status--not_started{color:#fecaca;background:#ef444429;border-color:#ef444473}.dashboard-department-status--started{color:#fde68a;background:#f59e0b29;border-color:#f59e0b73}.dashboard-department-status--printed{color:#bbf7d0;background:#22c55e29;border-color:#22c55e73}.dashboard-department-status--not_required{color:#bfdbfe;background:#3b82f624;border-color:#3b82f666}.dashboard-department-status--paused{color:#cbd5e1;background:#64748b29;border-color:#64748b73}.dashboard-department-status:hover{filter:brightness(1.2);transform:translateY(-1px)}.dashboard-department-status:focus-visible{outline-offset:2px;outline:2px solid #22d3ee}@media (width<=600px){.dashboard-deadline-list li{flex-direction:column;align-items:flex-start}.dashboard-deadline-time{text-align:left}.dashboard-grid{gap:1rem;margin-top:1.5rem}.dashboard-card{min-height:auto;padding:1.25rem}.dashboard-card h2{margin-bottom:.75rem;font-size:1.15rem}.dashboard-manager-activity-list,.dashboard-deadline-list{max-height:none}.dashboard-deadline-list li{gap:.75rem;padding:1rem}.dashboard-department-status{min-width:3rem;min-height:2rem;padding:.35rem .65rem;font-size:.8rem}}.dashboard-finance{width:100%;overflow-x:auto}.dashboard-finance-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%}.dashboard-finance-table th,.dashboard-finance-table td{border-bottom:1px solid #94a3b824;padding:1rem 1.25rem}.dashboard-finance-table th:first-child{text-align:left;width:40%}.dashboard-finance-table th:not(:first-child),.dashboard-finance-table td{text-align:right;width:30%}.dashboard-finance-table thead th{color:var(--text-muted);letter-spacing:.04em;text-transform:uppercase;font-size:.8rem;font-weight:600}.dashboard-finance-table tbody tr{transition:background-color .15s}.dashboard-finance-table tbody tr:hover{background:#94a3b80f}.dashboard-finance-table tbody th{color:var(--text);font-weight:600}.dashboard-finance-table tbody td{color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:1rem}.dashboard-finance-department-code{color:#bfdbfe;background:#3b82f624;border:1px solid #3b82f666;border-radius:999px;justify-content:center;align-items:center;min-width:4.5rem;padding:.3rem .65rem;font-size:.75rem;font-weight:700;line-height:1;display:inline-flex}.dashboard-finance-department-name{color:var(--text-muted);margin-top:.4rem;font-size:.85rem;font-weight:400;display:block}.dashboard-finance-table tfoot th,.dashboard-finance-table tfoot td{color:#a5f3fc;font-variant-numeric:tabular-nums;white-space:nowrap;background:#06b6d414;border-top:1px solid #06b6d44d;border-bottom:none;padding-top:1.15rem;padding-bottom:1.15rem;font-size:1.05rem;font-weight:700}.dashboard-finance-table tfoot th{border-radius:12px 0 0 12px}.dashboard-finance-table tfoot td:last-child{border-radius:0 12px 12px 0}@media (width<=600px){.dashboard-finance-table th,.dashboard-finance-table td{padding:.85rem .4rem}.dashboard-finance-table th:first-child{width:36%}.dashboard-finance-table th:not(:first-child),.dashboard-finance-table td{width:32%}.dashboard-finance-table thead th{letter-spacing:0;font-size:.68rem}.dashboard-finance-table tbody td,.dashboard-finance-table tfoot th,.dashboard-finance-table tfoot td{font-size:.82rem}.dashboard-finance-department-code{min-width:auto;padding:.3rem .5rem;font-size:.7rem}.dashboard-finance-department-name{font-size:.72rem}}.workspace-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.5rem;margin-top:2rem;display:grid}.workspace-card{border-radius:var(--radius);min-height:180px;color:var(--text);cursor:pointer;background:#0f172a59;border:1px solid #94a3b82e;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:1.5rem;transition:border-color .2s,transform .2s,box-shadow .2s;display:flex}.workspace-card:hover:not(:disabled){border-color:var(--accent);box-shadow:var(--shadow);transform:translateY(-2px)}.workspace-card:disabled{opacity:.5;cursor:not-allowed}.workspace-card-code{color:var(--accent);letter-spacing:.08em;text-transform:uppercase;font-size:.8rem;font-weight:700}.workspace-card strong{color:var(--text);font-size:1.35rem}.workspace-card span:last-child{color:var(--text-muted);font-size:.95rem}.workspace-actions{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem;margin-top:2rem;display:grid}.workspace-action-card{border-radius:var(--radius);min-height:180px;color:var(--text);cursor:pointer;background:#0f172a59;border:1px solid #94a3b82e;flex-direction:column;justify-content:center;align-items:flex-start;gap:.75rem;padding:2rem;transition:border-color .2s,transform .2s,box-shadow .2s;display:flex}.workspace-action-card:hover{border-color:var(--accent);box-shadow:var(--shadow);transform:translateY(-2px)}.workspace-action-card strong{color:var(--text);font-size:1.35rem}.workspace-action-card span{color:var(--text-muted);font-size:.95rem}.workspace-breadcrumb{color:var(--text-muted);margin:0;font-size:1rem;font-weight:600}.workspace-title{color:var(--text);margin:.35rem 0 .75rem;font-size:2.25rem;font-weight:700}.supplier-assignment-list{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;margin-top:2rem;display:grid}.supplier-assignment-card{min-height:120px;color:var(--text);cursor:pointer;background:#0f172a59;border:1px solid #94a3b82e;border-radius:12px;grid-template-columns:auto 1fr;align-items:start;gap:1rem;padding:1.25rem;display:grid}.supplier-assignment-check{color:var(--accent);font-size:1.35rem;font-weight:700}.supplier-assignment-info{flex-direction:column;gap:.35rem;display:flex}.supplier-assignment-info strong{color:var(--text);margin-bottom:.4rem;font-size:1.15rem;font-weight:700}.supplier-assignment-info small{color:var(--text-muted);font-size:.9rem}.supplier-assignment-status{color:var(--accent);font-weight:700}.supplier-assignment-card.assigned{border-color:var(--accent);background:#00b8d914}.orders-workspace{gap:.5rem;margin-top:2rem;display:flex}.orders-supplier-nav{flex-shrink:0;align-content:start;gap:.5rem;width:200px;display:grid}.orders-supplier-button{width:100%;color:var(--text);text-align:left;cursor:pointer;background:#0f172a59;border:1px solid #94a3b82e;border-radius:12px;padding:1rem}.orders-supplier-button.active{border-color:var(--accent);background:#00b8d926;font-weight:600}.order-form-shell{border-radius:var(--radius);background:#0f172a59;border:1px solid #94a3b82e;flex:1;min-height:420px;padding:2rem}.orders-empty{color:var(--text-muted)}.order-form-header{justify-content:space-between;align-items:center;margin-bottom:2rem;display:flex}.order-product-list{gap:.65rem;max-width:760px;margin-top:1.5rem;display:grid}.order-product-row{background:#0f172a59;border:1px solid #94a3b82e;border-radius:10px;grid-template-columns:minmax(180px,1fr) 150px 100px 60px auto;align-items:center;gap:1rem;padding:.75rem 1rem;display:grid}.order-product-last-price{color:var(--text-muted);white-space:nowrap;font-size:.9rem}.order-price-previous{color:var(--text-muted);font-size:.8rem}.order-quantity-ordered{color:var(--text-muted);margin-top:.25rem;font-size:.9rem;display:block}.order-product-actions{display:contents}.order-quantity-input{color:#0f172a;text-align:right;background:#fff;border:1px solid #94a3b847;border-radius:8px;width:100%;padding:.45rem .6rem;font-weight:700}.order-product-toolbar{justify-content:space-between;align-items:center;max-width:760px;margin:1.5rem 0 1rem;display:flex}.order-product-management{align-items:center;gap:1.5rem;display:flex}.inactive-products-toggle{color:var(--text);align-items:center;gap:.5rem;font-weight:500;display:flex}.order-product-row span:first-child{color:var(--text);font-weight:600}.order-product-unit{color:var(--text-muted);text-align:left}.manual-lines-section{gap:.75rem;margin-top:2rem;display:grid}.manual-lines-section h3{margin:0 0 .25rem}.manual-line-input{color:#0f172a;background:#fff;border:1px solid #94a3b847;border-radius:10px;width:100%;padding:.7rem 1rem}.orders-header-main{justify-content:space-between;align-items:flex-start;gap:2rem;display:flex}.orders-header-right{text-align:right;min-width:220px}.supplier-notes{max-width:650px;margin-top:1rem;line-height:1.5}.orders-header p{margin:.25rem 0}.orders-header strong{color:var(--text)}.print-order-preordered{text-transform:uppercase;margin-top:.15rem;font-size:.7rem;font-weight:700;display:block}.order-preordered-status{flex-direction:column;gap:.2rem;display:flex}.order-preordered-status strong{text-transform:uppercase}.order-preordered-status span{color:var(--text-muted);font-size:.85rem}.order-viewer-summary{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-bottom:2rem;display:grid}.order-viewer-summary div{background:#0f172a59;border:1px solid #94a3b82e;border-radius:10px;flex-direction:column;gap:.35rem;padding:1rem;display:flex}.order-viewer-summary span{color:var(--text-muted);font-size:.85rem}.order-viewer-line{background:#0f172a59;border:1px solid #94a3b82e;border-radius:10px;grid-template-columns:minmax(180px,1fr) 120px 180px 100px;align-items:center;gap:1rem;padding:1rem;display:grid}.order-viewer-line div{flex-direction:column;gap:.25rem;display:flex}.order-viewer-line small,.order-viewer-line span{color:var(--text-muted)}.order-viewer-line>strong:last-child{text-align:right}.order-viewer-total{border-top:1px solid #94a3b82e;justify-content:flex-end;align-items:center;gap:1.5rem;margin-top:2rem;padding-top:1.5rem;display:flex}.order-viewer-total span{color:var(--text-muted)}.order-viewer-total strong{color:var(--accent);font-size:1.5rem}.order-price-field{flex-direction:column;gap:.35rem;display:flex}.order-price-field>span{color:var(--text-muted);font-size:.8rem}.order-price-input-shell{grid-template-columns:minmax(80px,120px) auto;align-items:center;gap:.5rem;display:grid}.order-price-input{color:#0f172a;text-align:right;background:#fff;border:1px solid #94a3b847;border-radius:8px;width:100%;padding:.55rem .65rem;font-weight:700}.order-price-input:focus{border-color:var(--accent);outline:2px solid #00b8d933}.order-price-input:disabled{opacity:.65;cursor:not-allowed}.order-product-info{flex-direction:column;gap:.35rem;display:flex}.order-product-preordered{color:var(--text-muted);white-space:nowrap;align-items:center;gap:.4rem;font-size:.85rem;display:flex}.order-product-preordered input{margin:0}.order-viewer-total{justify-content:space-between;align-items:center;gap:2rem;display:flex}.order-viewer-total>div{align-items:center;gap:1.5rem;display:flex}.primary-action:disabled{opacity:.5;cursor:not-allowed}.success-message{color:var(--accent);margin-top:1rem;font-weight:700}@media (width<=1000px){.orders-supplier-nav{width:170px}.order-form-shell{min-width:0;padding:1.25rem}.order-product-list,.order-product-toolbar{max-width:none}.order-product-row{grid-template-columns:minmax(150px,1fr) 135px 90px 50px auto;gap:.75rem}}@media (width<=600px){.orders-workspace{flex-direction:column}.orders-supplier-nav{scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:.75rem;width:100%;display:flex;overflow:auto hidden}.orders-supplier-nav::-webkit-scrollbar{display:none}.orders-supplier-button{flex:none;min-width:160px}.order-form-shell{min-height:auto;padding:1.25rem}.order-product-list{gap:.85rem;max-width:none}.order-product-row{grid-template-columns:1fr auto;gap:.75rem;padding:1rem}.order-product-last-price{grid-column:1/-1;font-size:.85rem}.order-product-row span:first-child{grid-column:1/-1;font-size:1rem;line-height:1.25}.order-quantity-input{text-align:center;min-height:44px;padding:.7rem .8rem;font-size:1rem}.order-product-row span:last-child{text-align:right;white-space:nowrap;align-self:center}.orders-header-right{display:none}.order-form-header{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:.75rem;margin-bottom:1.5rem;display:grid}.orders-header{grid-column:1/-1}.orders-header-main{display:block}.orders-header-right{text-align:left;min-width:0;margin-top:.75rem}.orders-header-right h3{display:none}.order-form-header>.primary-action{width:100%;min-height:48px;padding:.75rem}.order-viewer-line{grid-template-columns:1fr;gap:.85rem;padding:1rem}.order-viewer-line>span{font-size:.9rem}.order-price-field{width:100%}.order-price-input-shell{grid-template-columns:minmax(0,1fr) auto;width:100%}.order-price-input{min-height:44px;font-size:1rem}.order-viewer-line>strong:last-child{text-align:right;border-top:1px solid #94a3b829;padding-top:.75rem;font-size:1.05rem}.order-viewer-total{flex-direction:column;align-items:stretch;gap:1rem}.order-viewer-total>div{justify-content:space-between;gap:1rem}.order-viewer-total>.primary-action{width:100%;min-height:48px}.order-product-toolbar{flex-direction:column;align-items:stretch;gap:1rem}.order-product-management{flex-direction:column;align-items:stretch;gap:.75rem}.order-product-management>*{width:100%}}.manual-order-form{gap:2rem;display:grid}.manual-order-details{border-radius:var(--radius);background:#0f172a59;border:1px solid #94a3b82e;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem;padding:1.5rem;display:grid}.manual-order-field{flex-direction:column;gap:.5rem;display:flex}.manual-order-field label{color:var(--text);font-weight:600}.manual-order-field select,.manual-order-field input{color:#0f172a;background:#fff;border:1px solid #94a3b847;border-radius:8px;padding:.7rem .85rem;font-size:.95rem}.manual-order-invoice-toggle{border-radius:var(--radius);background:#0f172a59;border:1px solid #94a3b82e;align-items:flex-start;gap:.75rem;padding:1rem 1.25rem;display:flex}.manual-order-invoice-toggle span{flex-direction:column;gap:.25rem;display:flex}.manual-order-invoice-toggle small{color:var(--text-muted)}.manual-order-product-header{color:var(--text-muted);text-transform:uppercase;grid-template-columns:1fr 100px 80px;gap:1rem;padding:0 .75rem;font-size:.85rem;font-weight:700;display:grid}.manual-order-product-header:has(span:nth-child(4)){grid-template-columns:1fr 100px 80px 140px}.manual-order-product-list{gap:.75rem;margin-top:1.5rem;display:grid}.manual-order-product-row{background:#0f172a59;border:1px solid #94a3b82e;border-radius:10px;grid-template-columns:1fr 100px 80px;align-items:center;gap:1rem;padding:.85rem 1rem;display:grid}.manual-order-product-row.with-price{grid-template-columns:1fr 100px 80px 140px}.manual-order-product-row input{color:#0f172a;text-align:right;background:#fff;border:1px solid #94a3b847;border-radius:8px;width:100%;padding:.55rem .65rem}.manual-order-price-shell{grid-template-columns:1fr auto;align-items:center;gap:.5rem;display:grid}.manual-order-manual-row{grid-template-columns:1fr;gap:1rem;display:grid}.manual-order-manual-row.with-price{grid-template-columns:1fr 180px}.manual-order-manual-row input{color:#0f172a;background:#fff;border:1px solid #94a3b847;border-radius:8px;padding:.7rem .85rem}.manual-order-actions{justify-content:flex-end;gap:1rem;display:flex}.order-product-row:focus-within{border-color:var(--accent);box-shadow:var(--shadow)}@media (width<=600px){.manual-order-details{grid-template-columns:1fr}.manual-order-product-header{display:none}.manual-order-product-row,.manual-order-product-row.with-price,.manual-order-manual-row,.manual-order-manual-row.with-price{grid-template-columns:1fr}.manual-order-actions{flex-direction:column}.manual-order-actions button{width:100%}}.print-order-layout{display:none}@page{size:A4 portrait;margin:10mm}@media print{html,body,#root{color:#000!important;background:#fff!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important}body{font-family:Arial,Helvetica,sans-serif!important;font-size:10pt!important}body *{visibility:hidden!important}.print-order-layout,.print-order-layout *{visibility:visible!important}.print-order-layout{color:#000!important;width:100%!important;height:auto!important;min-height:0!important;display:block!important;position:absolute!important;top:0!important;left:0!important;overflow:visible!important}.admin-page,.admin-shell,.admin-section,.orders-workspace,.order-form-shell,.order-viewer{width:100%!important;height:auto!important;min-height:0!important;display:block!important;overflow:visible!important}.admin-section-header,.orders-supplier-nav,.order-form-header,.order-product-list,.manual-lines-section,.orders-header-main,.order-viewer-summary,.order-viewer-total{display:none!important}.print-order-header{break-inside:avoid!important;page-break-inside:avoid!important;border-bottom:2px solid #000!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:10mm!important;margin-bottom:5mm!important;padding-bottom:5mm!important;display:grid!important}.print-order-heading{min-width:0!important}.print-order-document-label{letter-spacing:.08em!important;text-transform:uppercase!important;margin-bottom:2mm!important;font-size:11pt!important;font-weight:700!important;display:block!important}.print-order-heading h1{overflow-wrap:anywhere!important;margin:0!important;font-size:23pt!important;font-weight:800!important;line-height:1.05!important}.print-order-department{text-align:center!important;break-inside:avoid!important;page-break-inside:avoid!important;border:1.5px solid #000!important;min-width:45mm!important;padding:3mm 4mm!important}.print-order-department span{letter-spacing:.05em!important;text-transform:uppercase!important;margin-bottom:1mm!important;font-size:8pt!important;font-weight:700!important;display:block!important}.print-order-department strong{font-size:14pt!important;line-height:1.15!important;display:block!important}.print-order-meta{break-inside:avoid!important;page-break-inside:avoid!important;grid-template-columns:1fr 1fr 1.25fr 1fr!important;align-items:start!important;gap:0 8mm!important;margin-bottom:5mm!important;display:grid!important}.print-order-meta p{flex-direction:column;gap:3px;margin:0;display:flex;margin:0!important}.print-label{letter-spacing:.04em!important;text-transform:uppercase!important;margin-bottom:.8mm!important;font-size:7.5pt!important;font-weight:700!important;display:block!important}.print-order-meta strong{font-size:10.5pt!important;line-height:1.2!important;display:block!important}.print-order-notes{break-inside:avoid!important;page-break-inside:avoid!important;border:1px solid #000!important;margin-bottom:5mm!important;padding:3mm 4mm!important}.print-order-notes p{white-space:pre-wrap!important;margin:1.5mm 0 0!important;font-size:10pt!important;line-height:1.35!important}.print-order-products{width:100%!important;margin-bottom:5mm!important;display:block!important}.print-order-table-header,.print-order-row{grid-template-columns:minmax(0,1fr) 30mm 27mm!important;align-items:center!important;display:grid!important}.print-order-table-header{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;break-inside:avoid!important;page-break-inside:avoid!important;background:#e8e8e8!important;border:1.5px solid #000!important;min-height:9mm!important}.print-order-table-header strong{letter-spacing:.04em!important;text-transform:uppercase!important;padding:2mm 3mm!important;font-size:9pt!important}.print-order-table-header strong:nth-child(2),.print-order-table-header strong:nth-child(3){text-align:center!important;border-left:1px solid #000!important}.print-order-row{break-inside:avoid!important;page-break-inside:avoid!important;border-bottom:1.5px solid #000!important;border-left:1.5px solid #000!important;border-right:1.5px solid #000!important;min-height:11mm!important}.print-order-row span,.print-order-row strong{box-sizing:border-box!important;align-items:center!important;min-height:11mm!important;padding:2mm 3mm!important;display:flex!important}.print-order-product-name{overflow-wrap:anywhere!important;font-size:11pt!important;font-weight:700!important;line-height:1.2!important}.print-order-product-quantity{text-align:center!important;border-left:1px solid #000!important;justify-content:center!important;font-size:14pt!important;font-weight:800!important}.print-order-product-unit{text-align:center!important;border-left:1px solid #000!important;justify-content:center!important;font-size:12pt!important;font-weight:700!important}.print-order-empty{text-align:center!important;border-bottom:1.5px solid #000!important;border-left:1.5px solid #000!important;border-right:1.5px solid #000!important;margin:0!important;padding:5mm!important;font-size:10pt!important}.print-manual-lines{break-inside:avoid!important;page-break-inside:avoid!important;margin-top:5mm!important;display:block!important}.print-manual-lines h2{margin:0 0 2mm!important;font-size:12pt!important;line-height:1.2!important}.print-manual-line{box-sizing:border-box!important;break-inside:avoid!important;page-break-inside:avoid!important;border:1px solid #000!important;border-radius:0!important;min-height:9mm!important;margin-bottom:-1px!important;padding:2.5mm 3mm!important;font-size:10.5pt!important;font-weight:700!important;line-height:1.25!important}.print-order-footer{break-inside:avoid!important;page-break-inside:avoid!important;justify-content:flex-end!important;margin-top:10mm!important;display:flex!important}.print-order-footer div{border-top:1px solid #000!important;width:65mm!important;min-height:16mm!important;padding-top:2mm!important}.print-order-footer span{letter-spacing:.04em!important;text-transform:uppercase!important;font-size:8pt!important;font-weight:700!important}.print-order-history-table-header,.print-order-history-row{grid-template-columns:minmax(180px,1fr) 110px 120px 140px 90px;align-items:center;display:grid}.print-order-history-table-header{text-transform:uppercase;font-size:.75rem}.print-order-history-row{border-top:1px solid #000}.print-order-history-row>*{padding:.5rem}.print-order-history-row>strong:last-child{text-align:right}}.settings-section{margin-top:2rem}.settings-section-header{margin-bottom:1.5rem}.settings-section-header h2{margin:0}.settings-section-header p{color:var(--text-muted);margin:.4rem 0 0}.settings-empty{text-align:center;border:1px dashed #94a3b84d;border-radius:16px;padding:2rem}.settings-empty strong{color:var(--text);font-size:1.05rem}.settings-empty p{color:var(--text-muted);margin:.5rem 0 0}.settings-app{min-height:0}.settings-app>.admin-section-header{margin-bottom:1.5rem}.settings-app-layout{background:#0f172a38;border:1px solid #94a3b82e;border-radius:16px;grid-template-columns:240px minmax(0,1fr);min-height:640px;display:grid;overflow:hidden}.settings-app-sidebar{background:#0f172a4d;border-right:1px solid #94a3b82e;padding:1.5rem 1rem}.settings-provider-group+.settings-provider-group{margin-top:2rem}.settings-provider-group h2{color:var(--text-muted);letter-spacing:.08em;text-transform:uppercase;margin:0 0 .75rem;padding:0 .5rem;font-size:.8rem;font-weight:700}.settings-provider-button{width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;flex-direction:column;align-items:flex-start;gap:.2rem;padding:.85rem .9rem;transition:background .15s,border-color .15s;display:flex}.settings-provider-button:hover{background:#22d3ee0f;border-color:#22d3ee2e}.settings-provider-button.active{background:#22d3ee1f;border-color:#22d3ee59}.settings-provider-label{color:var(--text);font-weight:700}.settings-provider-description{color:var(--text-muted);font-size:.8rem}.settings-provider-empty{color:var(--text-muted);margin:0;padding:.75rem .5rem;font-size:.85rem}.settings-app-content{min-width:0;padding:1.75rem}.settings-provider-panel{min-width:0}.settings-provider-header{border-bottom:1px solid #94a3b829;padding-bottom:1.25rem}.settings-provider-header h2{color:var(--text);margin:.5rem 0 0;font-size:1.5rem}.settings-provider-header p{color:var(--text-muted);margin:.5rem 0 0}.settings-reminder-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;display:grid}.settings-reminder-card{background:#0f172a59;border:1px solid #94a3b833;border-radius:16px;padding:1.5rem}.settings-reminder-card h3{color:var(--text);margin:.5rem 0 0;font-size:1.25rem}.settings-reminder-departments{color:var(--text-muted);margin:1rem 0}.settings-reminder-schedules{gap:.75rem;margin:0;padding:0;list-style:none;display:grid}.settings-reminder-schedules li{background:#0f172a40;border:1px solid #94a3b829;border-radius:12px;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 1rem;display:flex}.settings-reminder-schedules strong{color:var(--text)}.settings-reminder-schedules span{color:var(--text-muted);text-align:right}.settings-reminder-card-header{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.permission-matrix-footer{z-index:20;background:#182438;border-top:1px solid #94a3b840;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.5rem;padding:1rem 1.25rem;display:flex;position:sticky;bottom:0;box-shadow:0 -10px 24px #00000047}.permission-matrix-footer>span{font-weight:700}.permission-matrix-scroll{background:#0f172a3d;border:1px solid #94a3b82e;border-radius:14px;width:100%;overflow-x:auto}.permission-matrix{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:860px}.permission-matrix thead th{z-index:10;color:var(--text);text-align:center;background:#1b273b;border-bottom:1px solid #94a3b840;padding:1rem;font-size:.85rem;font-weight:700;position:sticky;top:0}.permission-matrix thead th:first-child{text-align:left;width:auto;min-width:460px}.permission-matrix thead th:not(:first-child){width:140px}.permission-matrix tbody th,.permission-matrix tbody td{vertical-align:middle;border-bottom:1px solid #94a3b81a;padding:.85rem 1rem}.permission-matrix tbody th{text-align:left}.permission-matrix tbody td{text-align:center}.permission-matrix tbody tr:not(.permission-matrix-category):hover{background:#22d3ee09}.permission-matrix tbody tr:last-child th,.permission-matrix tbody tr:last-child td{border-bottom:0}.permission-info{flex-direction:column;gap:.3rem;min-width:0;display:flex}.permission-info strong{color:var(--text);font-size:.95rem;font-weight:700;line-height:1.3}.permission-info span{color:var(--text-muted);font-size:.82rem;font-weight:400;line-height:1.4}.permission-info small{color:#67e8f9;background:#22d3ee14;border:1px solid #22d3ee33;border-radius:999px;width:fit-content;margin-top:.2rem;padding:.2rem .45rem;font-size:.7rem;font-weight:700}.permission-matrix-category th{color:#67e8f9;letter-spacing:.08em;text-transform:uppercase;background:#22d3ee12;border-top:1px solid #22d3ee2e;border-bottom:1px solid #22d3ee1f;padding:1rem;font-size:.78rem;font-weight:800}.permission-matrix-category:first-child th{border-top:0}.permission-matrix input[type=checkbox]{cursor:pointer;width:1.05rem;height:1.05rem;margin:0}.permission-matrix input[type=checkbox]:disabled{cursor:not-allowed;opacity:.7}.permission-matrix-admin-column{background:#94a3b814}.permission-matrix td:has(input:disabled){background:#94a3b809}.permission-matrix-footer{z-index:20;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#182438fa;border:1px solid #22d3ee38;border-radius:12px;justify-content:space-between;align-items:center;gap:1rem;margin-top:1rem;padding:1rem 1.25rem;display:flex;position:sticky;bottom:0;box-shadow:0 -10px 24px #00000047}.permission-matrix-footer>span{color:var(--text);font-weight:700}.permission-matrix-footer-actions{align-items:center;gap:.75rem;display:flex}.module-settings-list{gap:1.25rem;margin-top:1.5rem;display:grid}.module-settings-card{background:#0f172a42;border:1px solid #94a3b82e;border-radius:14px;padding:1.25rem}.module-settings-header{border-bottom:1px solid #94a3b824;justify-content:space-between;align-items:flex-start;gap:1rem;padding-bottom:1rem;display:flex}.module-settings-header h3{color:var(--text);margin:0;font-size:1.15rem}.module-settings-header p{color:var(--text-muted);margin:.3rem 0 0;font-size:.85rem}.module-installed-badge{color:#67e8f9;background:#22d3ee14;border:1px solid #22d3ee38;border-radius:999px;padding:.3rem .6rem;font-size:.72rem;font-weight:700}.module-activation-section{margin-top:1rem}.module-activation-section h4{color:var(--text);margin:0 0 .75rem;font-size:.95rem}.module-department-list{gap:.5rem;display:grid}.module-department-row{background:#0f172a38;border:1px solid #94a3b81f;border-radius:10px;justify-content:space-between;align-items:center;gap:1rem;min-height:52px;padding:.65rem .85rem;display:flex}.module-department-name{color:var(--text);font-weight:600}.module-toggle{width:74px;height:34px;color:var(--text-muted);cursor:pointer;background:#94a3b84d;border:1px solid #94a3b847;border-radius:999px;padding:0;transition:background .15s,border-color .15s,opacity .15s;position:relative}.module-toggle.active{color:#08111f;background:#22d3eebf;border-color:#22d3ee8c}.module-toggle:disabled{cursor:wait;opacity:.55}.module-toggle-label{font-size:.72rem;font-weight:800;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.module-toggle.active .module-toggle-label{left:10px;right:auto}.module-toggle-knob{background:var(--text);border-radius:50%;width:26px;height:26px;transition:transform .18s;position:absolute;top:3px;left:3px;box-shadow:0 2px 6px #00000047}.module-toggle.active .module-toggle-knob{transform:translate(40px)}@media (width<=900px){.settings-reminder-grid{grid-template-columns:1fr}}@media (width<=600px){.settings-reminder-schedules li{flex-direction:column;align-items:flex-start}.settings-reminder-schedules span{text-align:left}}@media (width<=900px){.settings-app-layout{grid-template-columns:200px minmax(0,1fr)}.settings-app-content{padding:1.25rem}.settings-reminder-grid{grid-template-columns:1fr}}@media (width<=700px){.settings-app-layout{min-height:0;display:block}.settings-app-sidebar{border-bottom:1px solid #94a3b82e;border-right:0}.settings-provider-group+.settings-provider-group{margin-top:1.25rem}.permission-matrix-footer{flex-direction:column;align-items:stretch}.permission-matrix-footer-actions{justify-content:flex-end}}@media (width<=600px){.settings-app-content{padding:1rem}.settings-reminder-schedules li{flex-direction:column;align-items:flex-start}.settings-reminder-schedules span{text-align:left}}body{margin:0;font-family:Arial,sans-serif}main{padding:2rem}h1{margin-top:0}.primary-action{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:12px;padding:.85rem 1.25rem;font-weight:600}.primary-action:hover{background:var(--accent-hover)}.status-badge{border-radius:999px;padding:.25rem .65rem;font-size:.85rem;font-weight:600;display:inline-block}.status-badge.active{color:#22c55e;background:#22c55e2e}.status-badge.inactive{color:#ef4444;background:#ef44442e}.secondary-action:hover{background:#94a3b81f}
