:root{--sdl-color:#E63946;}
*{box-sizing:border-box;}
.sdl-login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f3f4f6;padding:20px;}
.sdl-login-box{background:#fff;border-radius:16px;padding:40px;width:100%;max-width:400px;box-shadow:0 4px 24px rgba(0,0,0,.12);}
.sdl-login-logo{text-align:center;margin-bottom:28px;}
.sdl-login-logo img{height:64px;margin-bottom:8px;}
.sdl-login-icon{font-size:48px;margin-bottom:8px;}
.sdl-login-logo h2{margin:0;font-size:22px;}
.sdl-login-logo p{margin:4px 0 0;color:#888;font-size:14px;}
.sdl-alert{padding:10px 14px;border-radius:8px;margin-bottom:16px;font-size:14px;}
.sdl-alert-error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca;}
.sdl-field{margin-bottom:14px;}
.sdl-field label{display:block;font-size:13px;font-weight:700;margin-bottom:5px;color:#374151;}
.sdl-field input,.sdl-field select,.sdl-field textarea{width:100%;padding:10px 14px;border:1.5px solid #d1d5db;border-radius:8px;font-size:14px;font-family:inherit;}
.sdl-field input:focus,.sdl-field select:focus,.sdl-field textarea:focus{outline:none;border-color:var(--sdl-color);}
.sdl-btn-primary{width:100%;background:var(--sdl-color);color:#fff;border:none;border-radius:10px;padding:13px;font-size:16px;font-weight:700;cursor:pointer;margin-top:8px;transition:.2s;}
.sdl-btn-primary:hover{filter:brightness(.9);}
/* PAINEL */
.sdl-painel-wrap{display:flex;min-height:100vh;font-family:'Segoe UI',sans-serif;}
.sdl-sidebar{width:240px;background:#111827;color:#fff;display:flex;flex-direction:column;position:fixed;top:0;left:0;height:100vh;z-index:100;}
.sdl-sidebar-logo{padding:20px 16px;border-bottom:1px solid #1f2937;display:flex;align-items:center;gap:10px;}
.sdl-sidebar-logo img{width:40px;height:40px;border-radius:50%;object-fit:cover;}
.sdl-sidebar-icon{width:40px;height:40px;border-radius:50%;background:var(--sdl-color);display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;color:#fff;flex-shrink:0;}
.sdl-sidebar-logo span{font-size:13px;font-weight:700;line-height:1.3;}
.sdl-nav{flex:1;padding:12px 0;}
.sdl-nav-item{display:flex;align-items:center;gap:8px;padding:11px 20px;color:#9ca3af;text-decoration:none;font-size:14px;transition:.15s;position:relative;}
.sdl-nav-item:hover,.sdl-nav-item.active{background:#1f2937;color:#fff;}
.sdl-nav-item.active{border-left:3px solid var(--sdl-color);}
.sdl-badge{background:#ef4444;color:#fff;border-radius:20px;padding:1px 7px;font-size:11px;font-weight:800;margin-left:auto;}
.sdl-sidebar-footer{padding:16px;}
.sdl-btn-outline{display:block;text-align:center;border:1px solid #374151;color:#9ca3af;border-radius:8px;padding:8px;font-size:13px;text-decoration:none;margin-bottom:8px;transition:.15s;}
.sdl-btn-logout{display:block;text-align:center;color:#9ca3af;font-size:13px;text-decoration:none;padding:6px;}
.sdl-main{margin-left:240px;flex:1;padding:28px;background:#f9fafb;min-height:100vh;}
.sdl-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;flex-wrap:wrap;gap:12px;}
.sdl-header h1{margin:0;font-size:22px;}
.sdl-header p{margin:4px 0 0;color:#6b7280;font-size:14px;}
.sdl-store-status{display:flex;align-items:center;gap:8px;font-size:14px;background:#fff;padding:8px 14px;border-radius:10px;box-shadow:0 1px 4px rgba(0,0,0,.08);}
.sdl-status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;}
.sdl-open{background:#22c55e;}
.sdl-closed{background:#ef4444;}
.sdl-cards{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:24px;}
.sdl-card{background:#fff;border-radius:12px;padding:18px;display:flex;align-items:center;gap:14px;box-shadow:0 1px 6px rgba(0,0,0,.07);flex:1;min-width:160px;}
.sdl-card-icon{font-size:32px;}
.sdl-card-num{display:block;font-size:24px;font-weight:800;color:#111;}
.sdl-card-lbl{font-size:12px;color:#888;}
.sdl-filter-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px;}
.sdl-filter-tab{padding:7px 16px;border-radius:20px;border:1.5px solid #d1d5db;background:#fff;color:#374151;text-decoration:none;font-size:13px;font-weight:600;display:flex;align-items:center;gap:5px;}
.sdl-filter-tab.active,.sdl-filter-tab:hover{border-color:var(--sdl-color);background:var(--sdl-color);color:#fff;}
.sdl-orders-list{display:flex;flex-direction:column;gap:12px;}
.sdl-order-card{background:#fff;border-radius:12px;padding:16px;box-shadow:0 1px 6px rgba(0,0,0,.07);border-left:4px solid #e5e7eb;}
.sdl-status-novo{border-left-color:#3b82f6;}
.sdl-status-confirmado{border-left-color:#22c55e;}
.sdl-status-preparo{border-left-color:#f59e0b;}
.sdl-status-entrega{border-left-color:#a855f7;}
.sdl-status-entregue{border-left-color:#10b981;}
.sdl-status-cancelado{border-left-color:#ef4444;opacity:.7;}
.sdl-order-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;}
.sdl-order-id{font-weight:800;font-size:16px;}
.sdl-order-time{color:#9ca3af;font-size:12px;margin-left:8px;}
.sdl-order-total{font-size:18px;font-weight:800;color:var(--sdl-color);}
.sdl-order-customer{font-size:14px;margin-bottom:8px;line-height:1.6;}
.sdl-order-items{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px;}
.sdl-item-pill{background:#f3f4f6;border-radius:20px;padding:3px 10px;font-size:12px;}
.sdl-order-obs{font-size:13px;color:#6b7280;margin-bottom:8px;}
.sdl-order-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;}
.sdl-order-actions{display:flex;gap:6px;}
.sdl-status-select{border:1.5px solid #d1d5db;border-radius:8px;padding:6px 10px;font-size:13px;}
.sdl-btn-sm{padding:6px 12px;border-radius:8px;border:1.5px solid #d1d5db;background:#fff;font-size:12px;cursor:pointer;font-weight:600;}
.sdl-btn-sm:hover{background:#f3f4f6;}
.sdl-btn-wa{background:#25D366!important;color:#fff!important;border-color:#25D366!important;}
.sdl-btn-danger{color:#dc2626!important;border-color:#dc2626!important;}
.sdl-empty{text-align:center;padding:40px;color:#9ca3af;font-size:15px;}
.sdl-table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 6px rgba(0,0,0,.07);}
.sdl-table th{background:#f9fafb;padding:12px 14px;text-align:left;font-size:13px;color:#374151;border-bottom:1px solid #e5e7eb;}
.sdl-table td{padding:12px 14px;border-bottom:1px solid #f3f4f6;font-size:14px;vertical-align:middle;}
.sdl-toggle-btn{border:none;border-radius:20px;padding:4px 12px;font-size:12px;font-weight:700;cursor:pointer;}
.sdl-active{background:#dcfce7;color:#15803d;}
.sdl-paused{background:#fee2e2;color:#dc2626;}
.sdl-modal{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:1000;display:flex;align-items:flex-end;justify-content:center;}
@media(min-width:600px){.sdl-modal{align-items:center;}}
.sdl-modal-box{background:#fff;border-radius:14px 14px 0 0;width:100%;max-width:520px;max-height:90vh;overflow-y:auto;padding:24px;}
@media(min-width:600px){.sdl-modal-box{border-radius:14px;}}
.sdl-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;}
.sdl-modal-head h3{margin:0;}
.sdl-modal-close{background:none;border:none;font-size:24px;cursor:pointer;}
.sdl-modal-foot{display:flex;gap:10px;margin-top:16px;}
.sdl-form-grid2{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-bottom:12px;}
.sdl-check{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer;margin-top:8px;}
.sdl-inline-form{background:#fff;border-radius:12px;padding:20px;box-shadow:0 1px 6px rgba(0,0,0,.08);margin-bottom:20px;}
.sdl-badge-green{background:#dcfce7;color:#15803d;border-radius:20px;padding:3px 10px;font-size:12px;font-weight:700;}
.sdl-badge-red{background:#fee2e2;color:#dc2626;border-radius:20px;padding:3px 10px;font-size:12px;font-weight:700;}
.sdl-form-card-inner{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 6px rgba(0,0,0,.08);}
.sdl-action-btn{cursor:pointer;}
@media(max-width:768px){.sdl-sidebar{width:100%;height:auto;position:relative;flex-direction:row;flex-wrap:wrap;}.sdl-main{margin-left:0;}.sdl-nav{display:flex;flex-direction:row;overflow-x:auto;}.sdl-painel-wrap{flex-direction:column;}}
