/* Painel DKA Truck */
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#F4F3EF;color:#15171A;line-height:1.5;font-size:15px}
a{color:#C4110A}
img{max-width:100%}
h1{font-size:26px;margin:0 0 20px}
h2{font-size:18px;margin:0 0 14px}
small{font-weight:400;color:#6B6F76;font-size:13px}
code{background:#EEECE6;padding:2px 6px;border-radius:4px;font-size:13px;word-break:break-all}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;border-radius:6px;border:0;background:#E30613;color:#fff;font:inherit;font-weight:700;cursor:pointer;text-decoration:none}
.btn-sec{background:#fff;color:#15171A;border:1.5px solid #15171A}
.btn-danger{background:#fff;color:#B3261E;border:1.5px solid #B3261E}
.btn-sm{min-height:36px;padding:6px 12px;font-size:13px}
label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px}
input,select,textarea{font:inherit;font-weight:400;font-size:16px;padding:10px 12px;border:1.5px solid #CFCCC4;border-radius:6px;background:#fff;color:#15171A;width:100%;min-height:44px}
input[type=checkbox]{width:20px;height:20px;min-height:0;accent-color:#E30613}
input[type=file]{padding:8px;background:#FAFAF8}
textarea{resize:vertical}
fieldset{border:1px solid #E2E0DA;border-radius:8px;padding:16px;margin:0 0 16px;display:flex;flex-direction:column;gap:12px}
legend{font-weight:700;padding:0 6px}

/* Login e instalador */
.adm-login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:#15171A}
.adm-card{background:#fff;border-radius:12px;padding:32px;width:100%;max-width:400px;display:flex;flex-direction:column;gap:16px}
.adm-card form{display:flex;flex-direction:column;gap:14px}
.adm-install{max-width:560px}
.adm-logo{height:36px;width:auto;align-self:flex-start;background:#15171A;padding:8px 12px;border-radius:6px}
.adm-actions{display:flex;gap:10px;flex-wrap:wrap}
.adm-help{color:#4F535A;font-size:14px;margin:0}
.adm-alert{background:#FDECEA;border:1px solid #F3B8B3;color:#7A1F17;border-radius:8px;padding:12px 14px;margin:0 0 16px}
.adm-alert.warn{background:#FFF8E6;border-color:#F1D58A;color:#5C4300}

/* Estrutura */
.adm-top{background:#15171A;color:#fff;display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;padding:12px clamp(16px,4vw,32px)}
.adm-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:700}
.adm-brand img{height:26px;width:auto}
.adm-nav{display:flex;gap:4px;overflow-x:auto;order:3;width:100%;scrollbar-width:none}
.adm-nav a{color:#C9CCD1;text-decoration:none;padding:8px 12px;border-radius:6px;white-space:nowrap}
.adm-nav a.on{background:#2A2D33;color:#fff}
.adm-user{margin-left:auto;display:flex;gap:16px}
.adm-user a{color:#C9CCD1;text-decoration:none}
@media (min-width:1000px){.adm-nav{order:0;width:auto}}
.adm-main{max-width:1100px;margin:0 auto;padding:24px clamp(16px,4vw,32px) 64px}
.adm-flash{border-radius:8px;padding:12px 14px;margin:0 0 20px;font-weight:600}
.adm-flash.ok{background:#E7F6EC;color:#14632F}.adm-flash.erro{background:#FDECEA;color:#7A1F17}
.adm-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.adm-head h1{margin:0}
.adm-box{background:#fff;border:1px solid #E2E0DA;border-radius:10px;padding:clamp(16px,3vw,24px);margin-bottom:20px;display:flex;flex-direction:column;gap:14px}
.adm-box h2{margin:0}
.adm-form{display:flex;flex-direction:column;gap:14px}
.adm-inline{flex-direction:row;flex-wrap:wrap;align-items:flex-end}
.adm-inline label{flex:1 1 260px}
.adm-grid2,.adm-grid3{display:grid;gap:14px}
@media (min-width:700px){.adm-grid2{grid-template-columns:1fr 1fr}.adm-grid3{grid-template-columns:repeat(3,1fr)}}
.adm-cols{display:grid;gap:20px;align-items:start}
@media (min-width:900px){.adm-cols{grid-template-columns:1fr 1fr}}
.adm-check{flex-direction:row;align-items:center;gap:10px;font-weight:500}
.adm-save{display:flex;gap:10px;flex-wrap:wrap;position:sticky;bottom:0;background:#F4F3EF;padding:12px 0}
.adm-danger{margin-top:8px}
.adm-sub{margin:0;font-weight:600}

/* Painel */
.adm-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin-bottom:24px}
.adm-stats a{background:#fff;border:1px solid #E2E0DA;border-radius:10px;padding:18px;text-decoration:none;color:#15171A;display:flex;flex-direction:column}
.adm-stats b{font-size:34px;line-height:1.1}
.adm-stats span{color:#4F535A;font-size:14px}

/* Listas */
.adm-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.adm-tabs a{padding:8px 14px;border-radius:999px;background:#fff;border:1px solid #D6D3CB;color:#15171A;text-decoration:none;font-weight:600;font-size:14px}
.adm-tabs a.on{background:#15171A;color:#fff;border-color:#15171A}
.adm-list{display:flex;flex-direction:column;gap:8px}
.adm-row{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #E2E0DA;border-radius:10px;padding:10px 14px;text-decoration:none;color:#15171A}
.adm-row:hover{border-color:#15171A}
.adm-row img,.adm-noimg{width:72px;height:48px;object-fit:cover;border-radius:6px;flex-shrink:0;background:#E6E4DE}
.adm-noimg{display:flex;align-items:center;justify-content:center;font-size:11px;color:#6B6F76}
.adm-row-main{display:flex;flex-direction:column;flex-grow:1;min-width:0}
.adm-row-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.adm-row-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-weight:600;white-space:nowrap}
.adm-row-side em{font-style:normal;color:#6B6F76;font-weight:500}
.adm-empty{background:#fff;border:1px dashed #D6D3CB;border-radius:10px;padding:24px;text-align:center;color:#4F535A}
.pill{display:inline-block;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;background:#EEECE6;color:#33363C}
.pill.off{background:#EEECE6}
.st-aguardando{background:#FFF4D6;color:#7A5300}.st-pago{background:#E7F6EC;color:#14632F}.st-frete{background:#E3EEFF;color:#173E8A}
.st-enviado{background:#EDE7FF;color:#4A2A99}.st-cancelado{background:#F1F1F1;color:#6B6F76}
.adm-dl{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:0}
.adm-dl dt{color:#6B6F76;font-size:14px}.adm-dl dd{margin:0}
@media (max-width:560px){.adm-dl{grid-template-columns:1fr}.adm-dl dd{margin-bottom:6px}}

/* Fotos */
.adm-cover{display:flex;flex-direction:column;gap:10px}
.adm-cover img{max-width:360px;border-radius:8px;aspect-ratio:16/9;object-fit:cover}
.adm-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.adm-thumbs label{font-weight:500;font-size:13px}
.adm-thumbs img{aspect-ratio:4/3;object-fit:cover;border-radius:6px}
.adm-thumbs span{display:flex;align-items:center;gap:6px}
.adm-media{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.adm-media .adm-save{grid-column:1/-1}
.adm-media-item{border:1px solid #E2E0DA;border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:8px}
.adm-media-item img{aspect-ratio:16/9;object-fit:cover;border-radius:6px;width:100%}
.adm-media-item.cliente img{object-fit:contain;background:#fff;aspect-ratio:3/2}
.adm-imgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.adm-imgs img{aspect-ratio:16/10;object-fit:cover;border-radius:6px;width:100%}
.adm-users{margin:0;padding-left:18px}
