:root{color:#26364d;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f8f5ef;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth;min-width:320px}body{color:#26364d;background:#f8f5ef;min-width:320px;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:all .2s}button:disabled{cursor:not-allowed;opacity:.6}input,select,textarea{outline:none}#root{background:#f8f5ef;min-height:100vh}::selection{color:#26364d;background:#d8cbb8}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f0e9de}::-webkit-scrollbar-thumb{background:#c9bdae;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#a99a87}:root{--cream-bg:#f8f5ef;--cream-sidebar:#efe8dc;--cream-card:#fffefb;--cream-border:#e5dccf;--dark-blue:#26364d;--dark-blue-hover:#3b506d;--soft-brown:#8b8173;--muted-text:#756f66}.dashboard{background:var(--cream-bg);width:100%;min-height:100vh;color:var(--dark-blue);display:flex}.sidebar{background:var(--cream-sidebar);width:260px;min-width:260px;min-height:100vh;color:var(--dark-blue);border-right:1px solid var(--cream-border);padding:28px 18px}.sidebar h2{letter-spacing:.5px;margin-bottom:5px;font-size:23px;font-weight:800}.sidebar-subtitle{color:var(--soft-brown);margin-bottom:25px;font-size:12px;font-weight:600}.sidebar nav{flex-direction:column;gap:7px;display:flex}.sidebar nav a{color:var(--dark-blue);cursor:pointer;border-radius:8px;padding:12px 14px;font-size:14px;font-weight:500;text-decoration:none;transition:background .2s,color .2s;display:block}.sidebar nav a:hover{background:#e5dccf}.sidebar nav a.active{background:var(--dark-blue);color:#fffefb;font-weight:600}.sidebar nav hr{border:none;border-top:1px solid #d8cebf;width:100%;margin:15px 0}.sidebar nav .sidebar-subtitle{margin:8px 10px}.content{flex:1;min-width:0;padding:30px;overflow-x:hidden}.topbar{background:var(--cream-card);border:1px solid var(--cream-border);border-radius:12px;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px;padding:20px 24px;display:flex;box-shadow:0 3px 12px #26364d0a}.topbar h1{color:var(--dark-blue);margin-bottom:6px;font-size:25px;font-weight:750}.topbar p{color:var(--muted-text);font-size:13px}.user-profile{align-items:center;gap:16px;display:flex}.user-profile span{color:var(--dark-blue);overflow-wrap:anywhere;font-size:13px;font-weight:600}.user-profile p{color:var(--soft-brown);margin-top:4px;font-size:12px}.user-profile button{background:var(--dark-blue);color:#fff;cursor:pointer;border:none;border-radius:7px;padding:10px 18px;font-weight:600}.user-profile button:hover{background:var(--dark-blue-hover)}.summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:30px;display:grid}.summary-card{background:var(--cream-card);border:1px solid var(--cream-border);border-radius:12px;min-width:0;padding:22px;box-shadow:0 3px 12px #26364d0a}.summary-card p{color:var(--soft-brown);margin-bottom:12px;font-size:14px;font-weight:500}.summary-card h2{color:var(--dark-blue);font-size:25px;font-weight:750}.department-section{background:var(--cream-card);border:1px solid var(--cream-border);border-radius:12px;width:100%;margin-bottom:25px;padding:25px;box-shadow:0 3px 12px #26364d0a}.department-section>h2{color:var(--dark-blue);margin-bottom:18px;font-size:21px}.department-section>h3{color:var(--dark-blue);margin-bottom:15px;font-size:18px}.department-section>p{color:var(--muted-text);margin-bottom:12px;font-size:14px}.department-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px;display:grid}.department-card{background:var(--cream-bg);border:1px solid var(--cream-border);cursor:pointer;border-radius:11px;min-width:0;padding:23px;transition:transform .2s,box-shadow .2s}.department-card:hover{transform:translateY(-3px);box-shadow:0 7px 18px #26364d17}.department-card h3{color:var(--dark-blue);margin-bottom:12px;font-size:18px}.department-card p{color:var(--muted-text);margin-bottom:10px;font-size:13px;line-height:1.6}.department-card p:last-child{color:var(--dark-blue);margin-top:15px;font-weight:600}button{transition:background .2s,transform .2s}.department-section>button,.content>button{background:var(--dark-blue);color:#fff;cursor:pointer;border:none;border-radius:7px;margin-bottom:18px;padding:10px 18px;font-weight:600}.department-section>button:hover,.content>button:hover{background:var(--dark-blue-hover)}.products-container,.products-page,.stock-container{width:100%}.products-form,.product-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0;display:grid}.products-form label,.product-form label{color:var(--dark-blue);flex-direction:column;gap:7px;font-size:13px;font-weight:600;display:flex}.products-form input,.products-form select,.products-form textarea,.product-form input,.product-form select,.product-form textarea{border:1px solid var(--cream-border);background:var(--cream-card);width:100%;color:var(--dark-blue);border-radius:7px;padding:11px 13px}.products-form button,.product-form button{background:var(--dark-blue);color:#fff;cursor:pointer;border:none;border-radius:7px;width:fit-content;padding:11px 20px;font-weight:600}.products-form button:hover,.product-form button:hover{background:var(--dark-blue-hover)}.products-table,.product-table,.stock-table{border-collapse:collapse;background:var(--cream-card);width:100%;margin-top:20px}.products-table th,.products-table td,.product-table th,.product-table td,.stock-table th,.stock-table td{border-bottom:1px solid var(--cream-border);text-align:left;padding:13px;font-size:13px}.products-table th,.product-table th,.stock-table th{background:var(--cream-sidebar);color:var(--dark-blue);font-weight:700}.products-table tr:hover,.product-table tr:hover,.stock-table tr:hover{background:var(--cream-bg)}.sales-container,.sales-page{width:100%}.sales-layout{grid-template-columns:minmax(0,1fr) minmax(280px,350px);align-items:start;gap:22px;display:grid}.sales-form{background:var(--cream-card);border:1px solid var(--cream-border);border-radius:10px;flex-direction:column;gap:15px;padding:22px;display:flex}.sales-form label{color:var(--dark-blue);flex-direction:column;gap:7px;font-size:13px;font-weight:600;display:flex}.sales-form input,.sales-form select{border:1px solid var(--cream-border);background:var(--cream-card);width:100%;color:var(--dark-blue);border-radius:7px;padding:11px 13px}.sales-form button{background:var(--dark-blue);color:#fff;cursor:pointer;border:none;border-radius:7px;padding:12px 18px;font-weight:600}.sales-form button:hover{background:var(--dark-blue-hover)}.sales-total,.sales-summary{background:var(--cream-sidebar);border:1px solid var(--cream-border);border-radius:10px;padding:22px}.sales-total h2,.sales-summary h2{color:var(--dark-blue);margin-top:12px}.history-table,.reports-table,.purchase-table{border-collapse:collapse;background:var(--cream-card);width:100%}.history-table th,.history-table td,.reports-table th,.reports-table td,.purchase-table th,.purchase-table td{border-bottom:1px solid var(--cream-border);text-align:left;padding:13px;font-size:13px}.history-table th,.reports-table th,.purchase-table th{background:var(--cream-sidebar);color:var(--dark-blue)}input,select,textarea{font-family:inherit}input:focus,select:focus,textarea:focus{border-color:var(--soft-brown);outline:2px solid #e5dccf}form button:disabled{opacity:.6;cursor:not-allowed}.receipt{color:#222;background:#fff;border:1px solid #ddd;width:100%;max-width:380px;margin:20px auto;padding:22px}.receipt h2,.receipt h3,.receipt p{margin-bottom:8px}@media print{body *{visibility:hidden}.receipt,.receipt *{visibility:visible}.receipt{width:100%;max-width:100%;box-shadow:none;border:none;position:absolute;top:0;left:0}}.employees-page{flex-direction:column;gap:22px;width:100%;display:flex}.employee-form{flex-direction:column;gap:22px;margin-top:22px;display:flex}.employee-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.employee-form-grid label{color:var(--dark-blue);flex-direction:column;gap:8px;font-size:14px;font-weight:600;display:flex}.employee-form-grid input,.employee-form-grid select{border:1px solid var(--cream-border);background:var(--cream-card);width:100%;color:var(--dark-blue);border-radius:8px;padding:12px 14px;font-size:14px}.employee-form-grid input:focus,.employee-form-grid select:focus{border-color:var(--soft-brown);outline:2px solid var(--cream-border)}.employee-form button,.employee-list-heading button{background:var(--dark-blue);width:fit-content;color:var(--cream-card);cursor:pointer;border:none;border-radius:8px;padding:11px 20px;font-weight:600}.employee-form button:hover,.employee-list-heading button:hover{background:var(--dark-blue-hover)}.employee-form button:disabled{opacity:.6;cursor:not-allowed}.employee-message{border-radius:8px;padding:14px 16px;font-size:14px}.employee-success{color:#315b38;background:#e8f1e8;border:1px solid #b8d1b8}.employee-error{color:#963d32;background:#f9e9e6;border:1px solid #e7c2ba}.employee-list-heading{justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;display:flex}.employee-table-wrapper{width:100%;overflow-x:auto}.employee-table{border-collapse:collapse;background:var(--cream-card);width:100%;min-width:750px}.employee-table th,.employee-table td{border-bottom:1px solid var(--cream-border);text-align:left;padding:14px 12px;font-size:13px}.employee-table th{background:var(--cream-sidebar);color:var(--dark-blue);font-weight:700}.employee-table tbody tr:hover{background:var(--cream-bg)}@media (width<=1100px){.summary,.department-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-layout{grid-template-columns:1fr}}@media (width<=900px){.dashboard{flex-direction:column}.sidebar{width:100%;min-width:0;min-height:auto;padding:18px}.sidebar nav{flex-flow:wrap}.sidebar nav a{width:auto}.sidebar nav hr{display:none}.content{padding:20px}}@media (width<=650px){.content{padding:14px}.topbar{flex-direction:column;align-items:flex-start;padding:17px}.topbar h1{font-size:21px}.user-profile{flex-wrap:wrap;justify-content:space-between;width:100%}.summary{grid-template-columns:1fr;gap:12px}.department-grid{grid-template-columns:1fr}.department-section{padding:17px}.products-form,.product-form,.employee-form-grid{grid-template-columns:1fr}.employee-list-heading{flex-direction:column;align-items:flex-start}.employee-form button,.employee-list-heading button{width:100%}}.dashboard button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#26364d,#354d6b);border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:36px;margin:5px 5px 5px 0;padding:8px 15px;font-size:12px;font-weight:600;transition:all .2s;display:inline-flex;box-shadow:0 2px 7px #26364d1f}.dashboard button:hover:not(:disabled){background:#354d6b;transform:translateY(-1px);box-shadow:0 4px 10px #26364d2e}.dashboard button:active:not(:disabled){transform:scale(.98)}.dashboard button:disabled{opacity:.55;cursor:not-allowed}.dashboard .sidebar nav a{color:#35445a;cursor:pointer;border-radius:8px;align-items:center;margin:4px 0;padding:10px 12px;font-size:12px;font-weight:600;text-decoration:none;transition:all .2s;display:flex}.dashboard .sidebar nav a:hover{color:#26364d;background:#26364d17;padding-left:16px}.dashboard .sidebar nav a.active{color:#fff;background:#26364d;box-shadow:0 3px 8px #26364d24}.dashboard .department-card{background:#fffefb;border:1px solid #e5dccf;border-radius:12px;padding:18px;transition:all .2s;box-shadow:0 3px 9px #26364d0d}.dashboard .department-card:hover{border-color:#c8b99f;transform:translateY(-3px);box-shadow:0 7px 16px #26364d1a}.dashboard .summary-card{background:#fffefb;border:1px solid #e5dccf;border-radius:12px;transition:all .2s;box-shadow:0 3px 9px #26364d0d}.dashboard .summary-card:hover{transform:translateY(-2px);box-shadow:0 6px 14px #26364d14}.dashboard .user-profile button{background:#a9473f;box-shadow:0 2px 7px #a9473f21}.dashboard .user-profile button:hover:not(:disabled){background:#87372f}.dashboard button:focus-visible,.dashboard a:focus-visible{outline-offset:2px;outline:2px solid #8b9cb4}@media (width<=768px){.dashboard button{min-height:36px;margin:4px 4px 4px 0;padding:8px 12px;font-size:12px}.dashboard .department-card{padding:15px}}.sales-history-modern-page .sales-history-search{width:100%;max-width:560px;margin:0 0 22px}.sales-history-modern-page .sales-history-search>label{color:#26364d;margin-bottom:9px;font-size:13px;font-weight:700;display:block}.sales-history-modern-page .sales-history-search-box{box-sizing:border-box;background:#fffefb;border:1px solid #ded5c8;border-radius:10px;align-items:center;gap:10px;width:100%;min-height:46px;padding:0 13px;transition:border-color .2s,box-shadow .2s;display:flex;box-shadow:0 2px 7px #26364d0a}.sales-history-modern-page .sales-history-search-box:focus-within{border-color:#526b8b;box-shadow:0 0 0 3px #26364d17}.sales-history-modern-page .sales-history-search-icon{color:#65758a;flex-shrink:0;font-size:25px;line-height:1}.sales-history-modern-page .sales-history-search-box input{color:#26364d;width:100%;min-width:0;box-shadow:none;background:0 0;border:none;outline:none;flex:1;padding:11px 0;font-family:inherit;font-size:13px}.sales-history-modern-page .sales-history-search-box input::placeholder{color:#a49b8f;opacity:1}.sales-history-modern-page .sales-history-clear-search{color:#26364d;cursor:pointer;background:#efe8dc;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:27px;height:27px;font-size:19px;display:inline-flex}.sales-history-modern-page .sales-history-clear-search:hover{background:#e3d8c8}.sales-history-modern-page .sales-history-search>small{color:#8b8174;margin-top:7px;font-size:11px;line-height:1.5;display:block}@media (width<=600px){.sales-history-modern-page .sales-history-search{max-width:100%}}
