/* Admin workspace. Workflow and data handlers are unchanged. */
body{background:var(--bg)}.admin-head-nav{align-items:center}.admin-head-nav .btn{font-size:12px;padding:9px 15px;min-height:38px}.admin-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100dvh - 88px)}.admin-sidebar{background:#153d29;color:#fff8e8;position:sticky;top:88px;align-self:start;min-height:calc(100dvh - 88px);display:flex;flex-direction:column;padding:30px 17px 23px}.sidebar-label{font-size:9px;font-weight:650;letter-spacing:2px;color:#a3b79b;padding:0 14px;margin-bottom:18px}.admin-tabs{display:flex;flex-direction:column;gap:7px}.admin-tabs .btn{width:100%;justify-content:flex-start;gap:13px;min-height:47px;font-size:13px;padding:13px 15px;border:1px solid transparent;box-shadow:none;border-radius:11px;font-weight:500}.admin-tabs .btn svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.admin-tabs .btn-outline{background:none;color:#d3dfc9}.admin-tabs .btn-outline:hover{background:#234e36;border-color:#42604a;color:#fff}.admin-tabs .btn-primary{background:#f5f1df;color:#153d29;font-weight:700;box-shadow:0 2px 5px #0a25191a}.sidebar-bottom{font-size:11px;color:#9db293;display:flex;gap:8px;align-items:center;margin-top:auto;padding:45px 14px 0}.sidebar-dot{height:6px;width:6px;border-radius:50%;background:#b99c52}.admin-content{width:100%;max-width:1440px;min-width:0;margin:0 auto;padding:29px 31px 40px}.admin-heading{margin-bottom:25px}.admin-heading h2{font-size:31px;letter-spacing:-1px;line-height:1.25}.admin-heading p{font-size:12px;color:var(--text2);margin-top:7px}
#stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}#stats .stat{display:flex;flex-direction:column;align-items:flex-start;border:1px solid #e2e4d6;border-radius:17px;padding:21px 22px;text-align:left;position:relative;min-width:0;box-shadow:0 2px 9px #314a1f04}#stats .label{order:-1;font-size:11px;font-weight:550;color:#7c806f;margin:0 0 8px;padding-left:13px}#stats .label:before{position:absolute;left:22px;top:27px;content:'';width:5px;height:5px;background:#62815a;border-radius:50%}#stats .value{font-size:32px;font-weight:750;line-height:1.2;letter-spacing:-.7px;overflow-wrap:anywhere}#stats .stat:nth-child(2) .value{color:#b38431}#stats .stat:nth-child(2) .label:before{background:#bc974c}#stats .stat:nth-child(3) .value{color:#967942}#stats .stat:nth-child(3) .label:before{background:#a2906a}
.admin-content .card{border:1px solid #e1e4d6;border-radius:18px;padding:23px;box-shadow:0 2px 9px #314a1f04}.admin-content h2{font-size:20px;letter-spacing:-.4px}.admin-heading h2{font-size:31px}.admin-content h3{font-size:16px;letter-spacing:-.2px}.admin-content .card>.flex:first-child{margin-bottom:19px}.admin-content .btn-primary{background:#174b31}.admin-content .btn-green{background:#174b31}.admin-content .btn-red{background:#fbefea;border:1px solid #edd9d0;color:#a75a4b}.admin-content .btn-red:hover{background:#f7e1da}.admin-content .btn-sm{font-size:11px;min-height:32px;padding:6px 12px;border-radius:8px}.admin-content .data-table .btn-sm{font-size:10px;min-height:29px;padding:5px 9px;border-radius:7px}.admin-content .badge{font-size:9px;letter-spacing:.4px;font-weight:650;padding:4px 9px}.badge-ready{background:#e8efdf;color:#4f7344}.badge-pending{background:#f8edcf;color:#95722f}.badge-completed{background:#eeeFE8;color:#7b8272}.badge-preparing{background:#e4eeeb;color:#4c7778}
.table-scroll{max-width:100%;overflow-x:auto;border:1px solid #e6e8dc;border-radius:11px;scrollbar-width:thin;scrollbar-color:#c4cfb5 transparent}.data-table{font-size:12px;white-space:nowrap}.data-table th{background:#f4f5ec;color:#7c8370;font-size:9px;letter-spacing:1px;font-weight:650;padding:12px 15px;border-color:#e5e8d8}.data-table td{padding:14px 15px;border-color:#eceee3;color:#536249}.data-table td.bold{font-size:12px;font-weight:650;color:#233e28}.data-table tr:last-child td{border-bottom:0}.data-table tr:hover td{background:#f8f9f2}.data-table .text-right{white-space:nowrap;text-align:right}.data-table .text-right .btn+.btn{margin-left:3px}.data-table tbody:empty:after{content:'No records yet';display:table-cell;padding:25px;color:#8d9681;font-size:12px}
#demoBanner{background:#f8f1df!important;border:1px solid #e9dfc1!important;border-radius:12px!important;padding:11px 15px!important;margin-bottom:22px!important}#demoBanner>span{font-size:11px!important;color:#9a7b3b!important}#demoBanner>.btn{background:transparent!important;border:1px solid #d8c59c!important;color:#92743c!important;font-size:10px!important;min-height:31px;flex-shrink:0}#secOrders>div:first-child,#secFiles>div:first-child,#secAnalytics>div:first-child{gap:13px;flex-wrap:wrap}#secOrders .order-card{border:1px solid #e1e4d6;border-left-width:4px;border-radius:15px;padding:17px 20px;box-shadow:none}#secOrders .order-card.pending{border-left-color:#c8a14b}#secOrders .order-card.preparing{border-left-color:#6b9996}#secOrders .order-card.ready{border-left-color:#729664}#orderSummaryCards .card{border-radius:13px}.flex-wrap{flex-wrap:wrap}.mb-12{margin-bottom:12px}.mt-4{margin-top:4px}.mb-4{margin-bottom:4px}.ml-8{margin-left:8px}#statCards{flex-wrap:wrap}#statCards .card{padding:18px!important;min-width:130px!important;text-align:left!important}#statCards .card>div:first-child{font-size:10px}#statCards .card>div:nth-child(2){font-size:23px!important;letter-spacing:-.5px}#secAnalytics .data-table td{font-size:12px}#secFiles{min-width:0}#secFiles>div:first-child>.flex{flex-wrap:wrap}#fileSelect{min-width:140px;max-width:230px}#fileContent{background:#fdfcf7!important;border:1px solid #dfe4d2!important;border-radius:12px!important;padding:18px!important;color:#45613a;line-height:1.7}#secFiles>p{font-size:11px;line-height:1.8;margin-bottom:13px}#fileStatus{font-size:12px!important}
.modal input,.modal select,.modal textarea{font-size:13px;min-height:43px;background:#fbfcf5;border-radius:10px;border:1px solid #dfe4d3}.modal label{font-size:11px;font-weight:600;margin-bottom:6px}.modal h2{margin-bottom:19px;font-size:23px}.modal h3{font-size:15px}.modal p{line-height:1.7}.modal .small{font-size:11px}.modal hr{border-color:#e0e5d5!important}.modal .btn-red{background:#fbefea;color:#a75a4b;border:1px solid #ead5cb}.modal .card{box-shadow:none;border-radius:11px}.modal .btn{white-space:normal}#settingsModal .modal{max-width:500px}#setQR{font-size:11px}#settingsModal code{font-size:10px}.pin-box h1{font-size:25px}
@media(max-width:1100px){.admin-shell{grid-template-columns:185px minmax(0,1fr)}.admin-content{padding:25px 22px}.admin-sidebar{padding-left:12px;padding-right:12px}.admin-head-nav{gap:6px}.admin-head-nav .btn{padding:8px 11px;font-size:11px}.admin-content .card{padding:19px}#stats{gap:12px}#stats .stat{padding:18px}#stats .label:before{left:18px;top:24px}#stats .value{font-size:27px}}
@media(max-width:800px){.header{height:auto;min-height:84px;gap:13px;flex-wrap:wrap;position:relative}.admin-shell{grid-template-columns:minmax(0,1fr);min-height:auto}.admin-sidebar{position:sticky;top:0;min-height:0;z-index:95;padding:10px 16px;background:#153d29}.sidebar-label,.sidebar-bottom{display:none}.admin-tabs{flex-direction:row;overflow-x:auto;gap:6px;scrollbar-width:none}.admin-tabs .btn{width:auto;flex-shrink:0;min-height:39px;font-size:11px;padding:9px 13px;gap:8px;border-radius:9px}.admin-tabs .btn svg{width:14px;height:14px}.admin-content{padding:23px 18px}.admin-heading{margin-bottom:20px}.admin-heading h2{font-size:28px}.admin-heading p{font-size:11px}.admin-head-nav{flex-wrap:wrap}.admin-head-nav .btn{padding:7px 11px;min-height:32px}#stats .stat{padding:16px 14px}#stats .label{font-size:9px;padding-left:9px}#stats .label:before{left:14px;top:22px;width:4px;height:4px}#stats .value{font-size:23px}.admin-content .card{padding:17px}.admin-content h2{font-size:18px}.admin-heading h2{font-size:28px}#demoBanner{align-items:flex-start!important;flex-wrap:wrap;gap:8px!important}}
@media(max-width:440px){.header{padding:13px 14px;gap:12px}.admin-head-nav{width:100%;gap:5px}.admin-head-nav .btn{flex:1;padding:7px 8px;font-size:10px}.admin-content{padding:20px 12px}.admin-sidebar{padding:9px 12px}.admin-tabs .btn{font-size:11px;padding:9px 11px}.admin-tabs .btn svg{display:none}#stats{gap:7px}#stats .stat{padding:15px 10px;border-radius:12px}#stats .label{font-size:8px;letter-spacing:0;padding-left:7px}#stats .label:before{left:10px;top:20px;width:3px;height:3px}#stats .value{font-size:20px;letter-spacing:-.7px}.admin-content .card{padding:14px;border-radius:14px}.data-table th,.data-table td{padding:12px}.modal{padding:20px}.admin-heading p{line-height:1.7}#secOrders .order-card{padding:14px}.order-card>.flex:first-child{flex-wrap:wrap;gap:10px}.order-card>.flex:first-child>.flex{flex-wrap:wrap}#fileSelect{min-width:110px}}
@media print{.admin-shell{display:block}.admin-content{max-width:none;padding:0}.admin-sidebar,.admin-heading,#demoBanner{display:none!important}.table-scroll{overflow:visible;border:0}.card{box-shadow:none!important}.data-table{white-space:normal}}
