/* ATC Shop Portal — responsive shared styles; no external assets required. */
:root{--ink:#172b45;--muted:#5e6b7b;--paper:#fff;--canvas:#f4f6f9;--line:#dce3eb;--navy:#142c47;--navy-deep:#102236;--accent:#b84c12;--accent-dark:#91390b;--accent-pale:#fff0e5;--focus:#1765b4;--danger:#a82a32;--radius:16px;--shadow:0 6px 22px rgba(20,44,71,.045)}
*{box-sizing:border-box}
html{font-size:16px;scroll-behavior:smooth}
body{margin:0;background:var(--canvas);color:var(--ink);font-family:"Noto Sans Thai","Leelawadee UI",Tahoma,Arial,sans-serif;line-height:1.65;-webkit-text-size-adjust:100%;overflow-wrap:anywhere}
a{color:#175e9b;text-underline-offset:3px}
a:hover{color:#104574}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{touch-action:manipulation}
button{cursor:pointer}
button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.65}
img{max-width:100%;height:auto}
svg{vertical-align:middle}
h1,h2,h3,h4,p{margin-top:0}
h1{font-size:clamp(1.55rem,2.7vw,2rem);line-height:1.4;letter-spacing:-.035em;margin-bottom:.45rem}
h2{font-size:1.2rem;line-height:1.5;letter-spacing:-.015em}
h3{font-size:1.05rem;line-height:1.5}
p{margin-bottom:1rem}
small{font-size:.85rem}
hr{border:0;border-top:1px solid var(--line);margin:1.5rem 0}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.app-shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}
.sidebar{background:var(--navy);color:#fff;padding:28px 18px;position:sticky;top:0;height:100vh;overflow-y:auto;display:flex;flex-direction:column;gap:28px}
.brand{display:flex;align-items:center;gap:12px;font-weight:700;line-height:1.35;color:#fff;text-decoration:none;font-size:1.05rem}
.brand:hover{color:#fff}
.brand small{display:block;color:#c1d0df;font-size:.74rem;font-weight:400;margin-top:5px;letter-spacing:.04em}
.brand-mark{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:44px;padding:0 8px;border-radius:10px;background:#ef762f;color:var(--navy-deep);font-size:1.05rem;font-weight:900;letter-spacing:-.05em}
.nav{display:flex;flex-direction:column;gap:7px}
.nav a{display:flex;align-items:center;gap:10px;min-height:46px;padding:11px 14px;border-radius:10px;color:#e0e8f1;font-size:.95rem;text-decoration:none;font-weight:500;border-left:3px solid transparent}
.nav a:hover{background:#233f5f;color:#fff}
.nav a.active{background:#fff;color:var(--navy);border-left-color:#eb7836;font-weight:700}
.sidebar .muted{color:#bbcad9}
.sidebar .footer{margin-top:auto;color:#bbcad9;border-color:#385069;font-size:.8rem;padding-top:20px}
.workspace{min-width:0;padding:0 36px 28px;max-width:1440px;width:100%;margin:0 auto}
.topbar{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);margin-bottom:32px;padding:16px 0}
.topbar>div{min-width:0}
.account{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;font-size:.9rem}
.account form{margin:0}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 24px}
.page-head p{margin:5px 0 0;color:var(--muted);max-width:760px}
.eyebrow{display:block;color:var(--accent);font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.11em;margin-bottom:8px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:26px;margin-bottom:22px;box-shadow:var(--shadow);min-width:0}
.card>:last-child{margin-bottom:0}
.card-title{font-size:1.15rem;font-weight:700;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.grid{display:grid;gap:20px;min-width:0}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid>.card{margin-bottom:0}
.grid+.card,.grid+.grid{margin-top:22px}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.field label,.field>span:first-child{font-weight:600;color:var(--ink);font-size:.92rem}
.field small,.field .muted{font-size:.83rem;line-height:1.55}
.full{grid-column:1/-1}
label{cursor:pointer}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]),select,textarea{width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #b9c5d3;border-radius:9px;background:#fff;color:var(--ink);box-shadow:none}
input::placeholder,textarea::placeholder{color:#788391;opacity:1}
input[readonly],textarea[readonly]{background:#f1f4f7}
input[type=file]{font-size:.85rem;line-height:1.9;padding:7px!important}
input[type=file]::file-selector-button{font:inherit;background:#eef2f6;border:0;border-radius:6px;padding:5px 10px;margin-right:12px;color:var(--ink);cursor:pointer}
input[type=checkbox],input[type=radio]{width:19px;height:19px;min-width:19px;accent-color:var(--accent);margin:3px 0;vertical-align:middle}
textarea{min-height:130px;resize:vertical;line-height:1.65}
input:focus,select:focus,textarea:focus{border-color:var(--focus)}
.form-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 17px;background:#fff;border:1px solid #b9c5d3;border-radius:9px;color:var(--ink);font-weight:600;font-size:.92rem;line-height:1.5;text-decoration:none;text-align:center;transition:background .15s,border-color .15s}
.btn:hover{background:#f0f4f8;border-color:#899bad;color:var(--ink)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.primary:hover{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}
.btn.secondary{background:#eef3f8;border-color:#d0dce8;color:var(--navy)}
.btn.secondary:hover{background:#e2ebf4;border-color:#a7bdd3}
.btn.danger{background:#fff;border-color:#e5b5b9;color:var(--danger)}
.btn.danger:hover{background:#fff0f1;border-color:var(--danger)}
.badge{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:3px 9px;border:1px solid #cbd6e1;background:#eef3f7;color:#374f68;font-weight:600;font-size:.75rem;line-height:1.5;white-space:normal}
.badge.official{background:#fff2e6;border-color:#e8bf9b;color:#85400f}
.badge.admin{background:#eaf1fa;border-color:#bdd0e7;color:#224c7d}
.muted{color:var(--muted);font-size:.92rem}
.notice{padding:14px 17px;border:1px solid #cbd6e2;border-left-width:4px;border-radius:10px;background:#fff;margin-bottom:20px;font-size:.92rem;line-height:1.7}
.notice p:last-child,.notice ul:last-child{margin-bottom:0}
.notice.error{color:#84212b;background:#fff1f2;border-color:#d98891}
.notice.success{color:#235a3d;background:#eef8f1;border-color:#7eb394}
.notice.info{color:#244f7b;background:#eff5fc;border-color:#9fbbdb}
.table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:10px;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;font-size:.9rem}
th,td{text-align:left;padding:13px 15px;border-bottom:1px solid var(--line);vertical-align:top}
th{background:#f1f5f9;font-size:.83rem;font-weight:700;color:#415670}
tr:last-child td{border-bottom:0}
.stat{padding:22px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);min-width:0}
.stat-value{display:block;font-size:1.8rem;font-weight:700;color:var(--navy);line-height:1.4;margin:8px 0}
.stat .muted{font-size:.83rem}
.check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.check-item{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);padding:12px;border-radius:9px;line-height:1.6;font-size:.9rem;min-width:0}
.check-item:hover{background:#f8fafc;border-color:#aebfce}
.check-item input{flex-shrink:0}
.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px 20px;background:linear-gradient(145deg,#eef3f8 0,#f7f8fb 62%,#fff0e5 100%)}
.auth-card{width:100%;max-width:480px;padding:36px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 18px 55px rgba(20,44,71,.09)}
.auth-brand{display:flex;align-items:center;gap:12px;font-weight:700;margin-bottom:30px;color:var(--navy);text-decoration:none;font-size:1.1rem}
.auth-brand small{display:block;font-size:.75rem;color:var(--muted);font-weight:400}
.auth-card .field{margin-bottom:18px}
.auth-card .btn.primary{width:100%}
.auth-links{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:.87rem;margin-top:20px}
.empty{text-align:center;padding:36px 20px;background:#f7f9fc;border:1px dashed #c2cedb;border-radius:12px;color:var(--muted)}
.empty h2,.empty h3{color:var(--ink)}
.empty p:last-child{margin-bottom:0}
.shop-card{display:flex;flex-direction:column;gap:14px;padding:22px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);min-width:0}
.shop-card h2,.shop-card h3,.shop-card p{margin-bottom:0}
.shop-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:auto}
.media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.media-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;min-width:0}
.media-card img{display:block;width:100%;height:190px;object-fit:cover;background:#eef2f6}
.media-card>div,.media-card>form{padding:15px}
.media-card h3{margin:0 0 8px;font-size:1rem}
.media-card p{font-size:.87rem;margin:0 0 10px}
.media-card .btn{min-height:40px;font-size:.83rem}
.image-preview{display:block;width:160px;height:120px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:#f4f6f9;margin:10px 0}
.profile-cover{width:100%;height:300px;display:block;object-fit:cover;background:#e5edf5;border-radius:var(--radius) var(--radius) 0 0}
.profile-logo{width:100px;height:100px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:16px;padding:7px;flex-shrink:0}
.profile-hero{display:flex;align-items:flex-start;gap:22px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;margin-bottom:22px}
.profile-cover+.profile-hero{border-top-left-radius:0;border-top-right-radius:0;border-top:0}
.profile-hero>div{min-width:0}
.profile-name{font-size:clamp(1.4rem,2.6vw,1.85rem);margin-bottom:6px;line-height:1.4}
.chips{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}
.chip{display:inline-flex;align-items:center;padding:5px 11px;border:1px solid #d4dfe9;border-radius:7px;background:#f2f6fa;color:#314f6a;font-size:.85rem}
.hours-grid{display:grid;grid-template-columns:minmax(95px,1fr) repeat(2,minmax(95px,1fr)) minmax(75px,.6fr);align-items:center;gap:12px}
.hours-grid input{min-width:0}
.inline-form{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0}
.inline-form select,.inline-form input:not([type=hidden]){width:auto;max-width:100%}
.logo-placeholder{display:flex;align-items:center;justify-content:center;width:100px;height:100px;flex-shrink:0;background:#edf2f7;color:var(--navy);border:1px solid var(--line);border-radius:16px;font-weight:800;font-size:1.5rem}
.footer{border-top:1px solid var(--line);padding-top:20px;margin-top:30px;color:var(--muted);font-size:.82rem}
.text-link{font-weight:600;font-size:.9rem;text-decoration:underline}
.preview-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:13px 18px;border:1px solid #e8bf9b;background:#fff2e6;border-radius:10px;color:#7c3d0f;margin-bottom:20px;font-size:.9rem}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* =========================================================
   SIDEBAR HIERARCHY
   ========================================================= */

.nav-group{
    display:flex;
    flex-direction:column;
    gap:6px;
    min-width:0;
}

.nav-group>.nav-parent{
    width:100%;
}
/* Parent ของร้าน เมื่อกำลังอยู่ในเมนูลูก */
.nav-group>.nav-parent.expanded{
    background:rgba(255,255,255,.06);
    color:#fff;
    border-left-color:#ef762f;
    font-weight:700;
}

.nav-group>.nav-parent.expanded:hover{
    background:rgba(255,255,255,.10);
    color:#fff;
}

/* selected shop context */

.nav-shop-context{
    display:flex;
    flex-direction:column;
    gap:2px;

    margin:2px 4px 4px 14px;
    padding:9px 12px;

    border-left:2px solid #ef762f;
    background:rgba(255,255,255,.07);
    border-radius:0 8px 8px 0;

    min-width:0;
}

.nav-shop-context small{
    display:block;
    color:#9fb2c7;
    font-size:.68rem;
    font-weight:500;
    line-height:1.35;
}

.nav-shop-context strong{
    display:block;
    color:#fff;
    font-size:.88rem;
    line-height:1.4;
    overflow-wrap:anywhere;
}

.nav-shop-context span{
    display:block;
    color:#c1d0df;
    font-size:.76rem;
    line-height:1.4;
    overflow-wrap:anywhere;
}

/* second-level navigation */

.nav-sub{
    display:flex;
    flex-direction:column;
    gap:3px;
    margin:0 0 5px 13px;
    padding-left:10px;
    border-left:1px solid #385069;
}

.nav-sub a{
    min-height:38px;
    padding:8px 10px;
    border-radius:7px;
    border-left:2px solid transparent;
    color:#cbd8e5;
    font-size:.84rem;
    font-weight:400;
}

.nav-sub a:hover{
    background:#233f5f;
    color:#fff;
}

.nav-sub a.active{
    background:#294765;
    color:#fff;
    border-left-color:#ef762f;
    font-weight:600;
}


/* do not make child active look like top-level white button */

.nav .nav-sub a.active{
    background:#294765;
    color:#fff;
}


/* helper text */

.sidebar-help{
    margin:0;
    font-size:.78rem;
    line-height:1.65;
}
@media(min-width:1440px){.workspace{padding-left:46px;padding-right:46px}}
@media(max-width:1100px){.app-shell{grid-template-columns:214px minmax(0,1fr)}.workspace{padding-left:24px;padding-right:24px}.sidebar{padding:24px 14px}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:22px}}
@media(max-width:800px){.app-shell{display:block}.sidebar{position:static;height:auto;overflow:visible;padding:18px 20px;gap:18px}.brand{font-size:1rem}.brand-mark{min-width:44px;height:40px}.nav{flex-direction:row;flex-wrap:wrap;gap:7px}.nav a{min-height:42px;padding:9px 12px;font-size:.86rem}.sidebar .footer{display:none}.workspace{padding:0 20px 25px}.topbar{min-height:74px;margin-bottom:24px;padding:15px 0}.page-head{gap:14px}.card{padding:20px;border-radius:13px}.profile-cover{height:240px}.profile-hero{padding:22px;gap:18px}.hours-grid{gap:8px}}
@media(max-width:560px){.sidebar{padding:16px 14px}.nav a{font-size:.82rem;gap:6px;padding:9px 10px}.workspace{padding:0 14px 22px}.topbar{align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:20px}.account{justify-content:flex-start;font-size:.82rem;gap:8px}.topbar .btn{min-height:40px;padding:8px 12px;font-size:.82rem}.page-head{display:block;margin-bottom:20px}.page-head>.btn,.page-head>.shop-actions{margin-top:14px}.page-head p{font-size:.92rem}.card{padding:18px 16px;margin-bottom:16px}.card-title{align-items:flex-start;font-size:1.07rem;flex-wrap:wrap;gap:8px}.grid,.grid.two,.grid.three{grid-template-columns:minmax(0,1fr);gap:16px}.check-grid{grid-template-columns:minmax(0,1fr)}.form-actions{justify-content:stretch;gap:10px;padding-top:18px;margin-top:20px}.form-actions>.btn,.form-actions>button{flex:1 1 140px}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.media-card img{height:130px}.media-card>div,.media-card>form{padding:10px}.media-card h3{font-size:.9rem}.media-card .btn{width:100%;padding:8px}.profile-cover{height:180px}.profile-hero{padding:20px 16px;gap:14px;flex-wrap:wrap;margin-bottom:16px}.profile-logo,.logo-placeholder{width:76px;height:76px;border-radius:12px}.profile-name{font-size:1.4rem}.profile-hero .shop-actions{width:100%}.shop-actions>.btn{flex:1 1 115px}.hours-grid{grid-template-columns:minmax(55px,.7fr) repeat(2,minmax(0,1fr)) minmax(45px,.55fr);gap:6px;font-size:.82rem}.hours-grid input:not([type=checkbox]){padding:8px 5px;font-size:.82rem}.hours-grid label{font-size:.82rem}.auth-shell{padding:22px 14px;align-items:flex-start}.auth-card{padding:28px 22px;margin-top:20px;border-radius:16px}.auth-brand{margin-bottom:25px}.auth-links{align-items:flex-start;flex-direction:column}.inline-form{width:100%}.inline-form select{flex:1 1 150px}.preview-bar{padding:12px 14px}.stat{padding:18px}.empty{padding:28px 16px}th,td{padding:11px 12px}.footer{font-size:.78rem;margin-top:24px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media print{.sidebar,.topbar,.form-actions,.preview-bar,.auth-links{display:none!important}.app-shell{display:block}.workspace{max-width:none;padding:0}.card,.profile-hero{box-shadow:none;break-inside:avoid}body{background:#fff;font-size:11pt}a{color:inherit}.profile-cover{height:180px}}
/* =========================================================
   ATC ADMIN DASHBOARD
   ========================================================= */

.admin-dashboard-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    margin-bottom:24px;
}

.admin-dashboard-head h2{
    margin:0 0 6px;
    font-size:1.55rem;
    color:var(--navy);
}

.admin-dashboard-head p{
    margin-bottom:0;
}


.admin-kpi-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    margin-bottom:24px;
}

.admin-kpi{
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    padding:20px;
    min-width:0;
    box-shadow:var(--shadow);
}

.admin-kpi span{
    display:block;
    color:var(--muted);
    font-size:.86rem;
    font-weight:600;
}

.admin-kpi strong{
    display:block;
    margin-top:7px;
    color:var(--navy);
    font-size:1.8rem;
    line-height:1.3;
}

.admin-kpi small{
    display:block;
    margin-top:4px;
    color:var(--muted);
}


.admin-section-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:18px;
}

.admin-section-head .card-title{
    margin-bottom:2px;
}

.admin-section-head p{
    margin:0;
}


.admin-filter{
    display:grid;
    grid-template-columns:minmax(260px,2fr) minmax(160px,.8fr) minmax(190px,1fr) auto;
    align-items:end;
    gap:14px;
    padding:16px;
    margin-bottom:20px;
    background:#f7f9fc;
    border:1px solid var(--line);
    border-radius:12px;
}

.admin-filter-actions{
    display:flex;
    align-items:center;
    gap:8px;
}

.admin-filter-actions .btn{
    min-height:46px;
}


.admin-shop-table td{
    vertical-align:middle;
}

.admin-shop-table strong{
    color:var(--navy);
}

.admin-shop-table .muted{
    font-size:.82rem;
}

.admin-row-actions{
    display:flex;
    align-items:center;
    gap:7px;
    white-space:nowrap;
}

.admin-row-actions .btn{
    min-height:38px;
    padding:7px 11px;
    font-size:.82rem;
}


/* Tablet */

@media(max-width:1100px){

    .admin-kpi-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .admin-filter{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .admin-filter-actions{
        align-self:end;
    }

}


/* Mobile */

@media(max-width:700px){

    .admin-dashboard-head{
        display:block;
    }

    .admin-dashboard-head>.btn{
        margin-top:14px;
        width:100%;
    }

    .admin-kpi-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .admin-kpi{
        padding:16px;
    }

    .admin-kpi strong{
        font-size:1.5rem;
    }

    .admin-filter{
        grid-template-columns:minmax(0,1fr);
        padding:14px;
    }

    .admin-filter-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .admin-filter-actions .btn{
        width:100%;
    }

}


@media(max-width:420px){

    .admin-kpi-grid{
        grid-template-columns:minmax(0,1fr);
    }

}
/* =========================================================
   TIRE MANAGEMENT - PRODUCT DETAIL
   ========================================================= */

.tire-admin-product{
    display:grid;
    grid-template-columns:260px minmax(0,1fr);
    gap:28px;
    align-items:start;
}

.tire-admin-product-media{
    min-width:0;
}

.tire-admin-product-image{
    display:block;
    width:100%;
    height:250px;
    object-fit:contain;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
    padding:14px;
}

.tire-admin-image-empty{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:250px;
    padding:20px;
    border:1px dashed #b9c5d3;
    border-radius:12px;
    background:#f6f8fa;
    color:var(--muted);
    text-align:center;
}

.tire-admin-brand-logo{
    display:block;
    max-width:130px;
    max-height:45px;
    object-fit:contain;
    margin-bottom:16px;
}

.tire-admin-product-name{
    margin-bottom:4px;
    font-size:1.55rem;
}

.tire-admin-product-size{
    margin-bottom:14px;
    color:var(--accent);
    font-size:1.25rem;
    font-weight:700;
}

.tire-admin-kv-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.tire-admin-kv{
    min-width:0;
    padding:15px 16px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#f8fafc;
}

.tire-admin-kv>span{
    display:block;
    margin-bottom:4px;
    color:var(--muted);
    font-size:.8rem;
}

.tire-admin-kv strong{
    display:block;
    color:var(--navy);
    font-size:1rem;
    line-height:1.5;
}

.tire-admin-kv small{
    display:block;
    margin-top:3px;
}

.tire-admin-text-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.tire-admin-text-list article{
    display:grid;
    grid-template-columns:34px minmax(0,1fr);
    gap:12px;
    align-items:start;
    padding:14px 16px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#f8fafc;
}

.tire-admin-text-list article>span{
    display:flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border-radius:50%;
    background:var(--navy);
    color:#fff;
    font-size:.8rem;
    font-weight:700;
}

.tire-admin-text-list p{
    margin:2px 0 0;
}

.tire-admin-tech-image{
    display:block;
    width:100%;
    height:170px;
    object-fit:contain;
    background:#f6f8fa;
    border-radius:9px;
}


@media(max-width:900px){

    .tire-admin-product{
        grid-template-columns:200px minmax(0,1fr);
        gap:20px;
    }

    .tire-admin-product-image,
    .tire-admin-image-empty{
        height:200px;
    }

    .tire-admin-kv-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}


@media(max-width:560px){

    .tire-admin-product{
        grid-template-columns:minmax(0,1fr);
    }

    .tire-admin-product-media{
        max-width:280px;
        margin:0 auto;
    }

    .tire-admin-kv-grid{
        grid-template-columns:minmax(0,1fr);
    }

}
/* =========================================================
   TIRE MANAGEMENT
   ========================================================= */

/* ---------- Tire List ---------- */

.tire-list-table-wrap{
    overflow-x:auto;
}

.tire-list-table{
    min-width:1080px;
    table-layout:auto;
}

.tire-list-table th,
.tire-list-table td{
    vertical-align:middle;
}

.tire-list-table th:nth-child(1),
.tire-list-table td:nth-child(1){
    width:84px;
    min-width:84px;
    white-space:nowrap;
}

.tire-list-table th:nth-child(2),
.tire-list-table td:nth-child(2){
    min-width:190px;
}

.tire-list-table th:nth-child(3),
.tire-list-table td:nth-child(3){
    min-width:130px;
}

.tire-list-table th:nth-child(4),
.tire-list-table td:nth-child(4){
    width:110px;
    min-width:110px;
    white-space:nowrap;
}

.tire-list-table th:nth-child(5),
.tire-list-table td:nth-child(5){
    width:130px;
    min-width:130px;
}

.tire-list-table th:nth-child(6),
.tire-list-table td:nth-child(6){
    width:95px;
    min-width:95px;
    white-space:nowrap;
}

.tire-list-table th:nth-child(7),
.tire-list-table td:nth-child(7){
    width:95px;
    min-width:95px;
    white-space:nowrap;
}

.tire-list-table th:nth-child(8),
.tire-list-table td:nth-child(8){
    width:75px;
    min-width:75px;
    white-space:nowrap;
    text-align:right;
}

.tire-list-table th:nth-child(9),
.tire-list-table td:nth-child(9){
    width:170px;
    min-width:170px;
}

.tire-list-table .badge{
    white-space:nowrap;
}

.tire-list-table .shop-actions{
    flex-wrap:nowrap;
    gap:7px;
}

.tire-list-table .shop-actions .btn{
    min-width:72px;
    padding-left:11px;
    padding-right:11px;
    white-space:nowrap;
}


/* ---------- Search ---------- */

.tire-search-card .overview-search{
    display:grid;
    grid-template-columns:
        minmax(260px,2fr)
        minmax(170px,1fr)
        minmax(130px,.7fr)
        minmax(150px,.8fr)
        auto
        auto;
    align-items:end;
    gap:12px;
    margin-bottom:0;
}

.tire-search-card .overview-search .field,
.tire-search-card .overview-search .overview-status{
    width:auto;
    flex:none;
}

.tire-search-card .overview-search .btn{
    min-height:46px;
    white-space:nowrap;
}


/* ---------- Tire Product ---------- */

.tire-admin-product{
    overflow:hidden;
}

.tire-admin-product > *{
    min-width:0;
}

.tire-admin-product-name,
.tire-admin-product-size,
.tire-admin-kv strong,
.tire-admin-text-list p,
.shop-card p{
    overflow-wrap:anywhere;
    word-break:break-word;
}

.tire-admin-kv{
    overflow:hidden;
}

.tire-admin-kv strong{
    max-width:100%;
}

.tire-admin-text-list article{
    min-width:0;
}

.tire-admin-tech-image{
    max-width:100%;
}

.tire-admin-price-table{
    min-width:760px;
}

.tire-admin-price-table th,
.tire-admin-price-table td{
    vertical-align:middle;
}

.tire-admin-price-table .badge{
    white-space:nowrap;
}


/* ---------- Responsive ---------- */

@media(max-width:1150px){

    .tire-search-card .overview-search{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .tire-search-card .overview-search .btn{
        width:100%;
    }
}

@media(max-width:700px){

    .tire-search-card .overview-search{
        grid-template-columns:minmax(0,1fr);
    }

    .tire-search-card .overview-search .btn{
        width:100%;
    }
}
/* =========================================================
   TIRE CONTENT EDIT
   ========================================================= */

.tire-content-edit-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.tire-content-field{
    min-width:0;
}

.tire-content-field textarea{
    min-height:125px;
}

.tire-content-field small{
    overflow-wrap:anywhere;
}


@media(max-width:800px){

    .tire-content-edit-list{
        grid-template-columns:minmax(0,1fr);
    }

}
/* =========================================================
   TIRE IMAGE MANAGEMENT
   ========================================================= */

.tire-image-manage-action{
    margin-top:10px;
}

.tire-image-editor{
    display:grid;
    grid-template-columns:minmax(240px,360px) minmax(0,1fr);
    gap:28px;
    align-items:start;
}

.tire-image-editor-preview{
    min-width:0;
}

.tire-image-editor-preview img{
    display:block;
    width:100%;
    max-height:360px;
    object-fit:contain;
    padding:14px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#f8fafc;
}

.tire-tech-image-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.tire-tech-image-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
}

.tire-tech-image-preview{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:220px;
    padding:12px;
    background:#f5f8fb;
    border-bottom:1px solid var(--line);
}

.tire-tech-image-preview img{
    display:block;
    width:100%;
    height:210px;
    object-fit:contain;
}

.tire-tech-image-preview .tire-admin-image-empty{
    height:210px;
}

.tire-tech-image-body{
    display:flex;
    flex-direction:column;
    gap:12px;
    padding:18px;
}

.tire-tech-image-body h3,
.tire-tech-image-body p{
    margin-bottom:0;
}

.tire-tech-image-body small{
    overflow-wrap:anywhere;
}

.tire-tech-image-body form{
    margin:0;
}

.tire-tech-image-body .btn{
    margin-top:10px;
}


@media(max-width:900px){

    .tire-image-editor{
        grid-template-columns:minmax(0,1fr);
    }

    .tire-image-editor-preview{
        max-width:400px;
    }

}


@media(max-width:700px){

    .tire-tech-image-grid{
        grid-template-columns:minmax(0,1fr);
    }

}
/* =========================================================
   TIRE PRODUCT MANAGEMENT LAYOUT
   ========================================================= */

.tire-product-summary-grid{
    display:grid;
    grid-template-columns:190px minmax(0,1fr) 210px;
    gap:26px;
    align-items:start;
}

.tire-product-summary-image{
    min-width:0;
}

.tire-product-summary-image img{
    display:block;
    width:100%;
    height:190px;
    object-fit:contain;
    padding:12px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
}

.tire-product-summary-image .tire-admin-image-empty{
    height:190px;
}

.tire-product-summary-info{
    min-width:0;
}

.tire-product-summary-info .tire-admin-brand-logo{
    margin-bottom:14px;
}

.tire-product-summary-info .eyebrow{
    margin-bottom:5px;
}

.tire-product-summary-info .tire-admin-product-name{
    margin-bottom:3px;
}

.tire-product-summary-info .tire-admin-product-size{
    margin-bottom:10px;
}

.tire-product-manage{
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:0;
    padding-left:20px;
    border-left:1px solid var(--line);
}

.tire-product-manage-title{
    margin-bottom:4px;
    color:var(--muted);
    font-size:.78rem;
    font-weight:700;
}

.tire-product-manage .btn{
    width:100%;
    justify-content:flex-start;
    min-height:40px;
    padding:8px 12px;
    font-size:.84rem;
}


/* =========================================================
   PRODUCT SECTION TABS
   ========================================================= */

.tire-product-tabs{
    position:sticky;
    top:10px;
    z-index:20;

    display:flex;
    align-items:center;
    gap:7px;

    width:100%;
    margin:0 0 22px;
    padding:9px;

    overflow-x:auto;
    -webkit-overflow-scrolling:touch;

    background:rgba(244,246,249,.96);
    border:1px solid var(--line);
    border-radius:12px;

    box-shadow:0 5px 16px rgba(20,44,71,.055);
}

.tire-product-tabs a{
    flex:0 0 auto;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-height:39px;
    padding:7px 13px;

    border:1px solid transparent;
    border-radius:8px;

    color:var(--navy);
    text-decoration:none;
    font-size:.84rem;
    font-weight:600;

    white-space:nowrap;
}

.tire-product-tabs a:hover{
    background:#fff;
    border-color:var(--line);
    color:var(--navy);
}


/* Anchor does not hide under sticky tabs */

#overview,
#spec,
#features,
#technology,
#score,
#price,
#system{
    scroll-margin-top:78px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1050px){

    .tire-product-summary-grid{
        grid-template-columns:170px minmax(0,1fr);
    }

    .tire-product-manage{
        grid-column:1/-1;
        display:grid;
        grid-template-columns:repeat(4,minmax(0,1fr));
        padding:18px 0 0;
        border-left:0;
        border-top:1px solid var(--line);
    }

    .tire-product-manage-title{
        grid-column:1/-1;
    }

}


@media(max-width:700px){

    .tire-product-summary-grid{
        grid-template-columns:minmax(0,1fr);
    }

    .tire-product-summary-image{
        max-width:220px;
        margin:0 auto;
    }

    .tire-product-manage{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .tire-product-tabs{
        top:5px;
        border-radius:9px;
    }

}


@media(max-width:420px){

    .tire-product-manage{
        grid-template-columns:minmax(0,1fr);
    }

}
/* =========================================================
   TIRE PRODUCT SUMMARY - COMPACT
   ========================================================= */

.tire-product-summary-grid{
    display:grid;
    grid-template-columns:240px minmax(0,1fr) 220px;
    gap:28px;
    align-items:start;
}


/* Product image box */

.tire-product-summary-image{
    width:240px;
    min-width:240px;
    height:240px;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    padding:14px;

    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
}


/* IMPORTANT:
   control visual size, not physical file size
*/

.tire-product-summary-image img{
    display:block;

    width:100%;
    height:100%;

    max-width:210px;
    max-height:210px;

    object-fit:contain;
}


/* Empty state same size */

.tire-product-summary-image .tire-admin-image-empty{
    width:100%;
    height:100%;
    min-height:0;

    border:0;
    background:#f7f9fc;
}


/* Product detail */

.tire-product-summary-info{
    min-width:0;
}


/* Manage area */

.tire-product-manage{
    display:flex;
    flex-direction:column;
    gap:8px;

    min-width:0;

    padding-left:20px;

    border-left:1px solid var(--line);
}


.tire-product-manage-title{
    margin-bottom:4px;

    color:var(--muted);

    font-size:.78rem;
    font-weight:700;
}


.tire-product-manage .btn{
    width:100%;

    justify-content:flex-start;

    min-height:40px;

    padding:8px 12px;

    white-space:normal;

    font-size:.84rem;
}


/* Tablet */

@media(max-width:1050px){

    .tire-product-summary-grid{
        grid-template-columns:220px minmax(0,1fr);
    }

    .tire-product-summary-image{
        width:220px;
        min-width:220px;
        height:220px;
    }

    .tire-product-summary-image img{
        max-width:190px;
        max-height:190px;
    }

    .tire-product-manage{
        grid-column:1/-1;

        display:grid;
        grid-template-columns:repeat(4,minmax(0,1fr));

        padding:18px 0 0;

        border-left:0;
        border-top:1px solid var(--line);
    }

    .tire-product-manage-title{
        grid-column:1/-1;
    }

}


/* Mobile */

@media(max-width:700px){

    .tire-product-summary-grid{
        grid-template-columns:minmax(0,1fr);
    }

    .tire-product-summary-image{
        width:200px;
        min-width:200px;
        height:200px;

        margin:0 auto;
    }

    .tire-product-summary-image img{
        max-width:175px;
        max-height:175px;
    }

    .tire-product-manage{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}
/* =========================================================
   TIRE AI ASSIST
   ========================================================= */

.tire-ai-assist{
    border-color:#b7c9dc;
    background:#fbfdff;
}

.tire-ai-assist-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
}

.tire-ai-assist-head .card-title{
    margin-bottom:7px;
}

.tire-ai-assist-head p{
    margin-bottom:0;
}

.tire-ai-assist-head>.btn{
    flex:0 0 auto;
    min-height:46px;
}

.tire-ai-result{
    margin-top:20px;
    padding-top:20px;
    border-top:1px solid var(--line);
}

.tire-ai-result .stat{
    padding:16px;
}

.tire-ai-result p{
    margin-top:16px;
}

.tire-ai-sources{
    display:flex;
    flex-direction:column;
    gap:7px;
    margin-top:18px;
    padding:14px;
    background:#f5f8fb;
    border:1px solid var(--line);
    border-radius:10px;
}

.tire-ai-sources a{
    overflow-wrap:anywhere;
    font-size:.85rem;
    text-decoration:underline;
}


@media(max-width:700px){

    .tire-ai-assist-head{
        display:block;
    }

    .tire-ai-assist-head>.btn{
        width:100%;
        margin-top:14px;
    }

}
.tire-ai-pending{
    margin-top:18px;
    margin-bottom:0;
    line-height:1.8;
}

.tire-ai-pending strong{
    color:var(--navy);
}
/* =========================================================
   TIRE LIST PRODUCT IMAGE
   ========================================================= */

.tire-list-image-cell{
    width:90px;
    min-width:90px;
    padding-top:8px !important;
    padding-bottom:8px !important;
    text-align:center;
}

.tire-list-image-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:68px;
    height:68px;

    overflow:hidden;

    background:#fff;
    border:1px solid var(--line);
    border-radius:10px;

    text-decoration:none;
}

.tire-list-image{
    display:block;

    width:58px;
    height:58px;

    object-fit:contain;
}

.tire-list-image-empty{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:68px;
    height:68px;

    padding:5px;

    border:1px dashed var(--line);
    border-radius:10px;

    background:#f7f9fb;

    color:var(--muted);
    font-size:.7rem;
    line-height:1.2;
    text-align:center;
}
/* =========================================================
   TIRE BRAND MANAGEMENT
   ========================================================= */

.tire-brand-table{
    min-width:1050px;
}

.tire-brand-table th,
.tire-brand-table td{
    vertical-align:middle;
}


/* LIST LOGO */

.tire-brand-logo-cell{
    width:145px;
    min-width:145px;
}

.tire-brand-logo-thumb{
    width:120px;
    height:58px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:8px;

    background:#fff;

    border:1px solid var(--line);
    border-radius:10px;
}

.tire-brand-logo-thumb img{
    display:block;

    max-width:100%;
    max-height:100%;

    width:auto;
    height:auto;

    object-fit:contain;
}


/* EMPTY */

.tire-brand-logo-empty{
    width:120px;
    height:58px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:8px;

    border:1px dashed var(--line);
    border-radius:10px;

    background:#f7f9fb;

    color:var(--muted);

    font-size:.75rem;
    text-align:center;
}

.tire-brand-logo-empty--large{
    width:220px;
    height:110px;
}


/* ADD / EDIT UPLOAD */

.tire-brand-logo-upload-layout{
    display:grid;

    grid-template-columns:
        minmax(260px,.8fr)
        minmax(320px,1.2fr);

    gap:24px;

    align-items:center;
}

.tire-brand-logo-guide{
    min-width:0;
}

.tire-brand-logo-guide p{
    margin-bottom:0;
    line-height:1.8;
}


/* PREVIEW */

.tire-brand-logo-preview{
    width:260px;
    height:130px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:18px;

    background:#fff;

    border:1px solid var(--line);
    border-radius:14px;
}

.tire-brand-logo-preview img{
    max-width:100%;
    max-height:100%;

    width:auto;
    height:auto;

    object-fit:contain;
}


/* BRAND SUMMARY */

.tire-brand-summary{
    display:grid;

    grid-template-columns:
        240px
        minmax(0,1fr);

    gap:28px;

    align-items:center;
}

.tire-brand-summary-logo{
    width:220px;
    height:110px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:16px;

    background:#fff;

    border:1px solid var(--line);
    border-radius:14px;
}

.tire-brand-summary-logo img{
    max-width:100%;
    max-height:100%;

    width:auto;
    height:auto;

    object-fit:contain;
}

.tire-brand-summary-info{
    min-width:0;
}

.tire-brand-summary-info h2{
    margin:
        3px
        0
        8px;

    font-size:1.8rem;
}


/* READONLY BOX */

.tire-brand-readonly-box{
    min-height:46px;

    display:flex;
    align-items:center;

    padding:11px 13px;

    border:1px solid var(--line);
    border-radius:9px;

    background:#f5f7fa;

    color:var(--muted);
}


/* MOBILE */

@media(max-width:800px){

    .tire-brand-logo-upload-layout{
        grid-template-columns:minmax(0,1fr);
    }

    .tire-brand-summary{
        grid-template-columns:minmax(0,1fr);
    }

    .tire-brand-summary-logo{
        width:100%;
        max-width:280px;
    }

    .tire-brand-logo-preview{
        width:100%;
        max-width:320px;
    }
}
/* =========================================================
   SHOP LIST SEARCH LAYOUT
   ========================================================= */

.overview-search{
    display:grid;
    align-items:end;
    gap:12px;
    margin:0 0 24px;
}


/* Admin:
   Search + Status + Shop Type + Button + optional Clear
 */
.overview-search--admin{
    grid-template-columns:
        minmax(300px,2fr)
        minmax(180px,.8fr)
        minmax(180px,.8fr)
        auto
        auto;
}


/* Official / General Shop:
   Search + Status + Button + optional Clear
 */
.overview-search--partner{
    grid-template-columns:
        minmax(320px,2fr)
        minmax(220px,1fr)
        auto
        auto;
}


.overview-search .field,
.overview-search .overview-status{
    width:auto;
    min-width:0;
    margin:0;
}


.overview-search .btn{
    width:auto;
    min-width:92px;
    min-height:46px;
    white-space:nowrap;
}


/* Tablet */
@media(max-width:1000px){

    .overview-search--admin,
    .overview-search--partner{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }


    .overview-search .btn{
        width:100%;
    }
}


/* Mobile */
@media(max-width:650px){

    .overview-search--admin,
    .overview-search--partner{
        grid-template-columns:
            minmax(0,1fr);
    }


    .overview-search .btn{
        width:100%;
    }
}
/* =========================================================
   SHOP PROMOTION
   ========================================================= */

.promotion-table td {
    vertical-align: middle;
}

.promotion-table strong {
    color: var(--navy);
}

.promotion-table .muted {
    margin-top: 4px;
    font-size: .8rem;
}


.promotion-image-current {
    display: grid;
    grid-template-columns: minmax(220px, 420px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;

    padding: 16px;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: #f8fafc;
}

.promotion-image-current img {
    display: block;

    width: 100%;
    max-height: 260px;

    object-fit: contain;

    border-radius: 9px;
    background: #fff;
}


.promotion-branches {
    margin-top: 26px;
    padding-top: 22px;

    border-top: 1px solid var(--line);
}

.promotion-branches h3 {
    margin-bottom: 4px;
}

.promotion-branch-box {
    max-height: 380px;

    margin-top: 14px;
    padding: 12px;

    overflow-y: auto;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: #f7f9fc;
}

.promotion-branch-box .check-item {
    background: #fff;
}

.promotion-branch-box .check-item span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.promotion-branch-box .check-item small {
    color: var(--muted);
    font-size: .75rem;
}


@media (max-width: 700px) {

    .promotion-image-current {
        grid-template-columns: 1fr;
    }

    .promotion-branch-box {
        max-height: 320px;
    }

}
/* =========================================================
   SHOP PROMOTION LIST
   ========================================================= */

.promotion-admin-list {
    display: grid;
    gap: 16px;
}


.promotion-admin-card {
    display: grid;

    grid-template-columns:
        180px
        minmax(0, 1fr)
        160px;

    gap: 20px;

    align-items: stretch;

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 14px;

    background: #fff;
}


/* IMAGE */

.promotion-admin-media {
    min-height: 150px;

    background: #f5f7fa;
}

.promotion-admin-media img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 150px;

    object-fit: cover;
}


.promotion-admin-image-empty {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    min-height: 150px;

    color: #7b8794;

    background:
        linear-gradient(
            145deg,
            #f2f5f8,
            #fff
        );
}

.promotion-admin-image-empty span {
    color: var(--navy);

    font-size: 25px;
    font-weight: 800;
    font-style: italic;
}

.promotion-admin-image-empty small {
    margin-top: 4px;

    font-size: .68rem;
    letter-spacing: .12em;
}


/* CONTENT */

.promotion-admin-content {
    min-width: 0;

    padding: 18px 0;
}


.promotion-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 10px;
}


.promotion-admin-status,
.promotion-admin-scope {
    display: inline-flex;
    align-items: center;

    min-height: 26px;

    padding: 3px 8px;

    border-radius: 6px;

    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
}


.promotion-admin-status {
    border: 1px solid #ccd5df;

    background: #f1f4f7;

    color: #45586d;
}


/* ACTIVE */

.promotion-status-active {
    border-color: #a8d2b7;

    background: #eef9f1;

    color: #22613b;
}


/* WAITING */

.promotion-status-waiting {
    border-color: #ead19b;

    background: #fff9e9;

    color: #73530e;
}


/* EXPIRED */

.promotion-status-expired {
    border-color: #d6dde4;

    background: #f4f6f8;

    color: #687482;
}


/* DISABLED */

.promotion-status-disabled {
    border-color: #e0b7bb;

    background: #fff1f2;

    color: #8a2831;
}


/* SCOPE */

.promotion-admin-scope {
    border: 1px solid #e8cf9b;

    background: #fff8e8;

    color: #74520e;
}


.promotion-admin-content h3 {
    margin: 0;

    color: var(--navy);

    font-size: 1.08rem;
    line-height: 1.55;
}


.promotion-admin-summary {
    display: -webkit-box;

    margin: 7px 0 0;

    overflow: hidden;

    color: var(--muted);

    font-size: .87rem;
    line-height: 1.65;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


.promotion-admin-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;

    margin-top: 16px;
}


.promotion-admin-info > div {
    display: flex;
    flex-direction: column;

    min-width: 150px;
}


.promotion-admin-info span {
    color: var(--muted);

    font-size: .72rem;
}


.promotion-admin-info strong {
    margin-top: 2px;

    color: var(--ink);

    font-size: .82rem;
    font-weight: 600;
}


/* ACTIONS */

.promotion-admin-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;

    padding: 18px;

    border-left: 1px solid var(--line);

    background: #fafbfc;
}


.promotion-admin-actions .btn {
    width: 100%;

    min-height: 40px;

    padding: 8px 10px;

    font-size: .8rem;

    white-space: normal;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    .promotion-admin-card {
        grid-template-columns:
            150px
            minmax(0, 1fr);
    }

    .promotion-admin-actions {
        grid-column: 1 / -1;

        flex-direction: row;

        padding: 14px 18px;

        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .promotion-admin-actions .btn {
        width: auto;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .promotion-admin-card {
        display: block;
    }

    .promotion-admin-media {
        min-height: 0;

        aspect-ratio: 16 / 9;
    }

    .promotion-admin-media img {
        min-height: 0;

        aspect-ratio: 16 / 9;
    }

    .promotion-admin-content {
        padding: 16px;
    }

    .promotion-admin-content h3 {
        font-size: 1rem;
    }

    .promotion-admin-info {
        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );

        gap: 12px;
    }

    .promotion-admin-info > div {
        min-width: 0;
    }

    .promotion-admin-actions {
        display: grid;

        grid-template-columns: 1fr 1fr;

        padding: 14px 16px;
    }

    .promotion-admin-actions .btn {
        width: 100%;
    }

}