*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:#f6f4f0;color:#202020;display:flex}aside{width:235px;background:#171717;color:#fff;min-height:100vh;padding:24px 16px;position:sticky;top:0;height:100vh}.logo{font-size:22px;padding:6px 10px 28px}.logo small{display:block;font-size:9px;letter-spacing:2px;color:#ff6b32;margin:6px 0 0 32px}.nav{width:100%;text-align:left;border:0;background:transparent;color:#aaa;padding:13px 14px;border-radius:10px;margin:3px 0;font-size:14px;cursor:pointer}.nav.active,.nav:hover{background:#ff5a1f;color:#fff}main{flex:1;padding:34px 4%;min-width:0}header{display:flex;justify-content:space-between;align-items:start;margin-bottom:25px}header h1{font:700 34px Georgia;margin:7px 0 4px}.sub,.muted{font-size:12px;color:#888;margin:0}.adminBadge{background:#fff;border:1px solid #e7e2dc;border-radius:10px;padding:10px 14px;font-size:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.stats>div,.panel{background:#fff;border:1px solid #eee7df;border-radius:15px;padding:20px;box-shadow:0 4px 15px #00000007}.stats small,header small{color:#ff5a1f;font-size:10px;font-weight:bold;letter-spacing:1.5px}.stats b{display:block;font-size:27px;margin:9px 0 5px}.stats span{font-size:11px;color:#888}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:15px}.panel{margin-top:15px}.grid2 .panel{margin-top:0}.panelhead{display:flex;align-items:center;justify-content:space-between;gap:15px}.panel h2{font:700 21px Georgia;margin:0 0 7px}.linkBtn{border:0;background:none;color:#ff5a1f;font-size:12px;cursor:pointer}.statusLine{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #eee}.statusLine:last-child{border:0}.statusDot{width:9px;height:9px;border-radius:50%;background:#bbb}.statusDot.pending{background:#f0a400}.statusDot.preparing{background:#ff6b32}.statusDot.out{background:#4c8ed9}.statusDot.delivered{background:#2c9b62}.statusLine b{margin-left:auto}.foodRank{display:grid;grid-template-columns:32px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #eee}.foodRank img{width:32px;height:32px;border-radius:7px;object-fit:cover}.foodRank b{font-size:13px}.foodRank span{font-size:11px;color:#888}.tableWrap{overflow:auto}table{width:100%;border-collapse:collapse;margin-top:12px;min-width:850px}th,td{text-align:left;padding:13px;border-bottom:1px solid #eee;font-size:12px;vertical-align:top}th{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#888}.orderId{font-weight:bold}.itemLine{display:block;margin-bottom:3px}.statusSelect{border:1px solid #ddd;border-radius:8px;padding:7px 8px;background:#fff;font-size:11px}.statusPill{display:inline-block;padding:6px 9px;border-radius:20px;font-size:10px;font-weight:bold}.statusPill.Pending{background:#fff1d7;color:#9b6700}.statusPill.Preparing{background:#fff0e8;color:#c64d18}.statusPill.Out{background:#e7f0ff;color:#3a6da7}.statusPill.Delivered{background:#e4f7ed;color:#287b50}.statusPill.Cancelled{background:#f2e8e8;color:#9a4444}input{padding:10px 12px;border:1px solid #ddd;border-radius:9px;outline:0;background:#fff}.hidden{display:none}.foodTable{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:15px}.foodCard{display:flex;gap:12px;align-items:center;border:1px solid #eee7df;border-radius:12px;padding:10px}.foodCard img{width:68px;height:68px;border-radius:10px;object-fit:cover}.foodCard h3{margin:0 0 5px;font-size:14px}.foodCard p{margin:0;color:#888;font-size:11px}.foodCard strong{display:block;margin-top:6px;font-size:12px}.reportRow{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #eee;font-size:13px}.reportRow b{font-size:14px}code{background:#f1eee9;padding:2px 5px;border-radius:4px}@media(max-width:900px){aside{width:190px}.stats{grid-template-columns:1fr 1fr}.grid2,.foodTable{grid-template-columns:1fr}}@media(max-width:650px){aside{display:none}main{padding:22px 4%}.stats{grid-template-columns:1fr 1fr}header h1{font-size:28px}}
/* ================= FORCE EXACT 2-COLUMN MOBILE VIEW ================= */
@media (max-width: 768px) {
    /* பிரதான பக்கத்தின் அகலத்தை மொபைலுக்குக் கட்டுப்படுத்துதல் */
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    main, .container, #productsGrid {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* 2 காலம்களாகப் பிரிக்கும் Grid */
    #productsGrid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    /* கார்டின் சரியான அளவு */
    .product-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 6px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        background: #fff !important;
        border-radius: 8px !important;
        border: 1px solid #eee !important;
    }

    /* படத்தின் உயரம் */
    .card-img-wrapper,
    .card-img-wrapper img,
    .product-card img {
        width: 100% !important;
        height: 110px !important;
        object-fit: cover !important;
        border-radius: 6px !important;
    }

    /* எழுத்துக்கள் */
    .product-tag {
        font-size: 9px !important;
        padding: 2px 4px !important;
    }

    .product-title {
        font-size: 12px !important;
        line-height: 1.2 !important;
        margin: 4px 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .weight-selection-box {
        margin: 2px 0 !important;
    }

    .weight-title-lbl {
        font-size: 10px !important;
    }

    .weight-btns {
        display: flex !important;
        gap: 3px !important;
    }

    .w-btn {
        flex: 1 !important;
        padding: 3px 2px !important;
        font-size: 10px !important;
    }

    /* விலை மற்றும் குவாண்டிட்டி */
    .card-bottom-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin: 4px 0 !important;
    }

    .qty-btn-sm {
        width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
        padding: 0 !important;
    }

    .qty-num {
        font-size: 11px !important;
        padding: 0 4px !important;
    }

    .card-price {
        font-size: 12px !important;
        font-weight: bold !important;
    }

    /* Buy Now பட்டன் */
    .btn-buy-card {
        padding: 6px 2px !important;
        font-size: 11px !important;
        width: 100% !important;
        border-radius: 4px !important;
    }
}