*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f3f5f8;color:#1d2733}
header{background:#121a24;color:#fff;padding:16px 24px;display:flex;justify-content:space-between;align-items:center}
header a{color:#fff;text-decoration:none;margin-left:18px}main{max-width:1100px;margin:24px auto;padding:0 16px}
.card{background:#fff;border-radius:14px;padding:20px;margin-bottom:20px;box-shadow:0 6px 22px rgba(0,0,0,.06)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.center{min-height:100vh;display:flex;align-items:center;justify-content:center}
.login-card{width:min(420px,92vw)}h1,h2{margin-top:0}label{display:block;font-weight:bold;margin:12px 0 6px}
input{width:100%;padding:11px;border:1px solid #ccd4dd;border-radius:8px}button,.btn{display:inline-block;background:#1c7ed6;color:#fff;border:0;border-radius:8px;padding:11px 16px;text-decoration:none;cursor:pointer}
button{margin-top:14px}.danger{background:#d9485f}.ok{background:#d9f7e6;padding:12px;border-radius:8px;margin-bottom:16px}.alert{background:#ffe0e0;padding:12px;border-radius:8px;margin-bottom:16px}
.copy{background:#f1f3f5;padding:12px;border-radius:8px;word-break:break-all}.small{font-size:13px;color:#667}.inline{display:flex;gap:10px;align-items:end}.inline input{width:auto;flex:1}
.media-row{display:grid;grid-template-columns:160px 1fr auto;gap:18px;align-items:center;padding:12px 0;border-bottom:1px solid #eee}.media-row img,.media-row video{width:160px;height:90px;object-fit:cover;border-radius:8px;background:#000}
.actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:760px){.grid2{grid-template-columns:1fr}.media-row{grid-template-columns:90px 1fr}.media-row img,.media-row video{width:90px;height:60px}.media-row .actions{grid-column:1/-1}.inline{display:block}.inline input{width:100%;margin-bottom:10px}}

.players{width:100%;border-collapse:collapse}.players th,.players td{padding:10px;border-bottom:1px solid #eee;text-align:left;font-size:14px}.bg-preview img{max-width:220px;max-height:120px;border-radius:8px;display:block;margin:10px 0}.bg-preview input{width:auto}

.admin-layout{display:flex;min-height:100vh;background:#f3f5f8}
.sidebar{position:fixed;left:0;top:0;bottom:0;width:240px;background:#111923;color:#fff;display:flex;flex-direction:column;z-index:50;box-shadow:4px 0 18px rgba(0,0,0,.08)}
.sidebar-brand{padding:24px 20px;border-bottom:1px solid rgba(255,255,255,.08)}
.brand-title{font-size:20px;font-weight:700}.brand-sub{font-size:12px;color:#aeb8c4;margin-top:4px}
.side-nav{padding:14px 10px;display:flex;flex-direction:column;gap:6px}
.side-nav a,.sidebar-footer a{color:#d9e1ea;text-decoration:none;padding:12px 14px;border-radius:9px;display:flex;gap:10px;align-items:center}
.side-nav a:hover,.sidebar-footer a:hover,.side-nav a.active{background:#243244;color:#fff}
.sidebar-footer{margin-top:auto;padding:14px 10px;border-top:1px solid rgba(255,255,255,.08)}
.content-area{margin-left:240px;width:calc(100% - 240px);min-height:100vh}
.topbar{background:#fff;border-bottom:1px solid #e8ecf1;padding:20px 28px}.topbar h1{margin:0;font-size:24px}.topbar p{margin:5px 0 0;color:#697482}
.admin-main{max-width:1180px;margin:0 auto;padding:24px 28px}.narrow-card{max-width:650px}
@media(max-width:760px){.sidebar{width:76px}.sidebar-brand{padding:18px 8px;text-align:center}.brand-title{font-size:14px}.brand-sub,.side-nav span{display:none}.side-nav a,.sidebar-footer a{justify-content:center}.content-area{margin-left:76px;width:calc(100% - 76px)}.admin-main{padding:18px 12px}.topbar{padding:16px}}

.radio-switch-row{display:flex;align-items:center;gap:10px;margin-top:10px;font-weight:600}
.radio-switch-row input[type=checkbox]{width:20px;height:20px;margin:0}


/* Playlist de mídias: imagens e vídeos com a mesma miniatura */
.media-row{
  display:grid;
  grid-template-columns:160px minmax(180px,1fr) auto;
  gap:14px;
  align-items:center;
}

.media-row > img,
.media-row > video{
  width:160px !important;
  height:90px !important;
  max-width:160px !important;
  max-height:90px !important;
  min-width:160px;
  min-height:90px;
  object-fit:cover !important;
  display:block !important;
  border-radius:8px;
  background:#000;
}

.media-row > video{
  position:static !important;
  inset:auto !important;
}

@media(max-width:800px){
  .media-row{
    grid-template-columns:100px 1fr;
  }

  .media-row > img,
  .media-row > video{
    width:100px !important;
    height:62px !important;
    max-width:100px !important;
    max-height:62px !important;
    min-width:100px;
    min-height:62px;
  }
}


/* Formato Horizontal / Vertical */
.transmission-format-box{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(280px,1fr) 150px;
  gap:18px;
  align-items:center;
  padding:16px;
  margin:12px 0 18px;
  border:1px solid #dfe7ed;
  border-radius:12px;
  background:#f8fbfd;
}
.transmission-format-box h3{margin:0 0 6px}
.format-form{display:grid;gap:8px}
.format-form select{width:100%;min-height:42px}
.orientation-preview{
  justify-self:center;
  display:flex;
  align-items:center;
  justify-content:center;
  border:3px solid #243746;
  border-radius:6px;
  background:#0d1d27;
  color:#fff;
  text-align:center;
  font-weight:700;
  font-size:12px;
  line-height:1.35;
}
.orientation-preview.is-horizontal{width:120px;height:68px}
.orientation-preview.is-vertical{width:68px;height:120px}
.media-separator{border:0;border-top:1px solid #e6ecef;margin:18px 0}

@media(max-width:800px){
  .transmission-format-box{
    grid-template-columns:1fr;
  }
  .orientation-preview{justify-self:start}
}


/* Miniaturas da playlist acompanham o formato da transmissão */
.playlist-card.playlist-horizontal .media-row{
  grid-template-columns:160px minmax(180px,1fr) auto;
}
.playlist-card.playlist-horizontal .media-row > img,
.playlist-card.playlist-horizontal .media-row > video{
  width:160px !important;
  height:90px !important;
  max-width:160px !important;
  max-height:90px !important;
  min-width:160px !important;
  min-height:90px !important;
  object-fit:cover !important;
}

.playlist-card.playlist-vertical .media-row{
  grid-template-columns:90px minmax(180px,1fr) auto;
}
.playlist-card.playlist-vertical .media-row > img,
.playlist-card.playlist-vertical .media-row > video{
  width:90px !important;
  height:160px !important;
  max-width:90px !important;
  max-height:160px !important;
  min-width:90px !important;
  min-height:160px !important;
  object-fit:cover !important;
  background:#000;
}

@media(max-width:800px){
  .playlist-card.playlist-horizontal .media-row{
    grid-template-columns:100px 1fr;
  }
  .playlist-card.playlist-horizontal .media-row > img,
  .playlist-card.playlist-horizontal .media-row > video{
    width:100px !important;
    height:62px !important;
    max-width:100px !important;
    max-height:62px !important;
    min-width:100px !important;
    min-height:62px !important;
  }

  .playlist-card.playlist-vertical .media-row{
    grid-template-columns:62px 1fr;
  }
  .playlist-card.playlist-vertical .media-row > img,
  .playlist-card.playlist-vertical .media-row > video{
    width:62px !important;
    height:110px !important;
    max-width:62px !important;
    max-height:110px !important;
    min-width:62px !important;
    min-height:110px !important;
  }
}

.health-heart{display:inline-block;color:#ef3b36;font-size:22px;transform-origin:center;animation:healthBeat 1.15s infinite}@keyframes healthBeat{0%,45%,100%{transform:scale(1)}12%{transform:scale(1.3)}24%{transform:scale(.98)}34%{transform:scale(1.18)}}.health-overall{padding:9px 14px;border-radius:999px;font-weight:700;font-size:13px}.health-overall.ok{background:#e6f7ed;color:#137333}.health-overall.warn{background:#fff4d6;color:#8a5b00}.health-overall.danger{background:#fde8e7;color:#b3261e}.health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.health-card{background:#fff;border-radius:12px;padding:18px;border-left:5px solid #2eaf5d;box-shadow:0 2px 10px rgba(0,0,0,.05)}.health-card.warn{border-left-color:#e3a008}.health-card.danger{border-left-color:#d93025}.health-card h3{margin:0 0 10px;font-size:15px}.health-card strong{font-size:30px}.meter{height:9px;background:#e8eef2;border-radius:99px;overflow:hidden;margin-top:10px}.meter i{display:block;height:100%;background:#2eaf5d}.health-card.warn .meter i{background:#e3a008}.health-card.danger .meter i{background:#d93025}.health-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.health-info>div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid #e8eef2}.health-info span{text-align:right}.status-pill{padding:4px 9px;border-radius:99px;font-weight:700;font-size:12px}.status-pill.ok{background:#e6f7ed;color:#137333}.status-pill.danger{background:#fde8e7;color:#b3261e}.health-refresh{text-align:center;margin:18px 0}@media(max-width:1000px){.health-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.health-grid,.health-info{grid-template-columns:1fr}}

.reseller-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}.reseller-form-grid .full{grid-column:1/-1}
.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse}.table-wrap th,.table-wrap td{padding:11px;border-bottom:1px solid #e5ebef;text-align:left;vertical-align:top}.actions{white-space:nowrap}
.reseller-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}.reseller-summary strong{font-size:28px}.green{color:#16883b}.info-box{background:#eaf5ff;border:1px solid #b8dcf7;border-radius:10px;padding:14px;color:#244b66}.button.secondary{display:inline-block;margin-left:8px;padding:10px 14px;border-radius:7px;background:#6f7d86;color:#fff;text-decoration:none}
@media(max-width:700px){.reseller-form-grid,.reseller-summary{grid-template-columns:1fr}.reseller-form-grid .full{grid-column:auto}}

.quota-card{background:#fff;border-radius:12px;padding:18px;margin-bottom:18px;border-left:5px solid #2eaf5d;box-shadow:0 2px 10px rgba(0,0,0,.05)}.quota-card.quota-full{border-left-color:#d93025}.quota-card h2{margin:0 0 6px}.quota-card strong{font-size:28px}.quota-meter{height:12px;background:#e8eef2;border-radius:99px;overflow:hidden;margin-top:12px}.quota-meter i{display:block;height:100%;background:#2eaf5d}.quota-full .quota-meter i{background:#d93025}.reseller-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.reseller-media-item{border:1px solid #dfe6eb;border-radius:10px;padding:10px;background:#fff}.media-preview{aspect-ratio:16/9;background:#111;border-radius:8px;overflow:hidden}.media-preview img,.media-preview video{width:100%;height:100%;object-fit:contain}.media-meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:9px 0}.inline-duration{display:flex;gap:6px}.inline-duration input{max-width:90px}.media-actions{display:flex;justify-content:space-between;margin-top:8px}.danger-link{color:#c62828}.side-nav a span{vertical-align:middle}
@media(max-width:1100px){.reseller-media-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:800px){.reseller-media-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.reseller-media-grid{grid-template-columns:1fr}}

.copy{background:#eef2f4;padding:10px;border-radius:6px;word-break:break-all;margin:5px 0 12px}.transmission-format-box{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.transmission-format-box>div:first-child{flex:1;min-width:240px}.orientation-preview{display:flex;align-items:center;justify-content:center;background:#17232c;color:#fff;border:3px solid #667782;border-radius:8px;font-weight:bold;text-align:center}.orientation-preview.is-horizontal{width:145px;height:82px}.orientation-preview.is-vertical{width:82px;height:145px}.media-separator{border:0;border-top:1px solid #e3eaee;margin:18px 0}.bg-preview img{max-width:180px;max-height:100px;object-fit:contain;display:block;margin:8px 0}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.players{width:100%;border-collapse:collapse}.players th,.players td{padding:10px;border-bottom:1px solid #e5eaed;text-align:left}@media(max-width:850px){.grid2{grid-template-columns:1fr}}

.apk-flow{display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center}.apk-flow span{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#0a84d8;color:#fff;font-weight:bold}.apk-flow p{margin:0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.apk-status-card{border-left:5px solid #0a84d8}.apk-log{max-height:320px;overflow:auto;background:#101820;color:#d6e2e8;padding:12px;border-radius:8px;font-size:12px;white-space:pre-wrap}.card button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:650px){.form-row{grid-template-columns:1fr}}

/* Foto / logo da revenda */
.reseller-photo-editor{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:10px 0}
.reseller-avatar{width:54px;height:54px;border-radius:50%;object-fit:cover;display:block;border:2px solid #dce5ea;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.reseller-avatar.large{width:92px;height:92px}
.reseller-avatar.placeholder{display:flex;align-items:center;justify-content:center;background:#eef3f6;color:#60717c;font-size:24px}
.reseller-avatar.large.placeholder{font-size:38px}
.reseller-photo-field input[type=file]{max-width:100%}

/* Foto / logo da revenda */
.reseller-photo-editor{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:10px 0}
.reseller-avatar{width:54px;height:54px;border-radius:50%;object-fit:cover;display:block;border:2px solid #dce5ea;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.reseller-avatar.large{width:92px;height:92px}
.reseller-avatar.placeholder{display:flex;align-items:center;justify-content:center;background:#eef3f6;color:#60717c;font-size:24px}
.reseller-avatar.large.placeholder{font-size:38px}
.reseller-photo-field input[type=file]{max-width:100%}

/* V5.9.1 - acabamento visual da listagem de revendas */
.reseller-list-card{padding:0;overflow:visible}
.reseller-list-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px 14px;border-bottom:1px solid #e7edf2}
.reseller-list-head h2{margin:0 0 4px;font-size:21px}
.reseller-list-head p{margin:0}
.reseller-count{display:inline-flex;align-items:center;justify-content:center;min-width:96px;padding:7px 11px;border-radius:999px;background:#eaf4ff;color:#1769aa;font-size:12px;font-weight:700;white-space:nowrap}
.reseller-table-wrap{padding:0 14px 14px;overflow-x:auto}
.reseller-table{width:100%;min-width:900px;border-collapse:separate!important;border-spacing:0}
.reseller-table th{background:#f6f8fa;color:#5b6875;font-size:12px;text-transform:uppercase;letter-spacing:.025em;font-weight:700;padding:12px 10px!important;vertical-align:middle!important}
.reseller-table td{padding:12px 10px!important;vertical-align:middle!important;background:#fff}
.reseller-table tbody tr{transition:background .15s ease,box-shadow .15s ease}
.reseller-table tbody tr:hover td{background:#f9fbfd}
.reseller-table .photo-col,.reseller-table .photo-cell{width:86px;min-width:86px;text-align:center!important}
.reseller-table .photo-cell{padding-left:12px!important;padding-right:12px!important}
.reseller-table .reseller-avatar{width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;max-width:58px!important;max-height:58px!important;margin:0 auto!important;border-radius:50%!important;object-fit:cover!important;object-position:center!important;display:block!important;border:3px solid #fff!important;outline:1px solid #d9e3ea;box-shadow:0 2px 9px rgba(17,25,35,.13);background:#fff;cursor:zoom-in}
.reseller-table .reseller-avatar.placeholder{display:flex!important;align-items:center!important;justify-content:center!important;cursor:default;background:#eef3f6!important;color:#60717c;font-size:24px}
.reseller-name-cell b{display:block;color:#1d2733;font-size:14px;line-height:1.25}
.reseller-name-cell small{display:block;margin-top:4px;color:#74808b;line-height:1.3;max-width:280px}
.media-limit-badge{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:27px;padding:0 8px;border-radius:8px;background:#edf5ff;color:#1769aa;font-weight:700}
.reseller-actions{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important;white-space:nowrap}
.reseller-actions .action-link{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:7px;text-decoration:none;font-size:12px;font-weight:700;border:1px solid #dbe4eb;background:#fff;color:#33566f;transition:transform .12s ease,background .12s ease,border-color .12s ease}
.reseller-actions .action-link:hover{transform:translateY(-1px);background:#f4f8fb;border-color:#bdced9}
.reseller-actions .action-link.edit{color:#1769aa}
.reseller-actions .action-link.toggle{color:#775a00}
.reseller-actions .action-link.delete{color:#b3261e;background:#fff7f6;border-color:#f1cac7}
.reseller-actions .action-link.delete:hover{background:#fde9e7}
.empty-row{text-align:center!important;color:#7a8791;padding:28px!important}
.reseller-photo-hover{position:fixed;left:0;top:0;z-index:99999;width:320px;height:320px;padding:10px;border-radius:16px;background:#fff;box-shadow:0 16px 48px rgba(0,0,0,.28);border:1px solid #dfe7ed;opacity:0;visibility:hidden;pointer-events:none;transform:scale(.96);transition:opacity .12s ease,transform .12s ease,visibility .12s ease}
.reseller-photo-hover.show{opacity:1;visibility:visible;transform:scale(1)}
.reseller-photo-hover img{width:100%;height:100%;display:block;object-fit:contain;object-position:center;border-radius:10px;background:#f3f5f7}
@media(max-width:760px){.reseller-list-head{align-items:flex-start;flex-direction:column}.reseller-count{align-self:flex-start}.reseller-photo-hover{width:240px;height:240px}}

/* ==========================================================
   TV OUTDOOR - TEMA PROFISSIONAL V5.9.2
   Camada exclusivamente visual, compartilhada Admin/Revenda
   ========================================================== */
:root{
  --pro-bg:#f4f7fb;
  --pro-surface:#ffffff;
  --pro-text:#122033;
  --pro-muted:#6d7b8d;
  --pro-line:#e5ebf2;
  --pro-primary:#0d6efd;
  --pro-primary-2:#1597ff;
  --pro-sidebar:#0d1726;
  --pro-sidebar-2:#121f31;
  --pro-success:#16a34a;
  --pro-danger:#ef4444;
  --pro-warning:#f59e0b;
  --pro-radius:14px;
  --pro-shadow:0 10px 30px rgba(15,31,51,.07);
}
html{background:var(--pro-bg)}
body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--pro-bg);color:var(--pro-text);font-size:14px}
.admin-layout{background:var(--pro-bg)}

/* Menu lateral */
.sidebar{width:248px;background:linear-gradient(180deg,var(--pro-sidebar) 0%,#101c2d 58%,#0b1421 100%);box-shadow:8px 0 30px rgba(2,12,27,.10);border-right:1px solid rgba(255,255,255,.04)}
.sidebar-brand{padding:22px 18px 20px;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:12px}
.pro-brand-mark{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,var(--pro-primary),var(--pro-primary-2));box-shadow:0 8px 20px rgba(13,110,253,.30);font-size:21px;flex:0 0 auto}
.pro-brand-copy{min-width:0}
.brand-title{font-size:18px;font-weight:800;letter-spacing:-.25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-sub{font-size:11px;color:#91a2b7;text-transform:uppercase;letter-spacing:.6px;margin-top:3px}
.side-nav{padding:16px 10px;gap:5px}
.side-nav a,.sidebar-footer a{min-height:43px;color:#cbd6e3;padding:10px 12px;border-radius:10px;gap:11px;font-size:13px;font-weight:600;transition:.18s ease;position:relative}
.side-nav a:hover,.sidebar-footer a:hover{background:rgba(255,255,255,.07);color:#fff;transform:translateX(2px)}
.side-nav a.active{background:linear-gradient(90deg,rgba(13,110,253,.98),rgba(21,151,255,.86));color:#fff;box-shadow:0 7px 18px rgba(13,110,253,.22)}
.side-icon{width:22px;text-align:center;font-size:16px;display:inline-flex;justify-content:center;align-items:center;flex:0 0 22px}
.sidebar-footer{padding:12px 10px 16px;border-top:1px solid rgba(255,255,255,.08)}
.sidebar-user{margin:0 10px 10px;padding:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);border-radius:12px;display:flex;align-items:center;gap:10px}
.sidebar-user-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#223249;border:2px solid rgba(255,255,255,.16);display:grid;place-items:center;flex:0 0 auto;overflow:hidden}
.sidebar-user-avatar img{width:100%;height:100%;object-fit:cover}
.sidebar-user-copy{min-width:0}.sidebar-user-copy b{display:block;color:#fff;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user-copy small{display:block;color:#91a2b7;font-size:10px;margin-top:2px}
.health-heart{font-size:17px}

/* Conteúdo e topo */
.content-area{margin-left:248px;width:calc(100% - 248px);background:var(--pro-bg)}
.topbar{min-height:78px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--pro-line);padding:18px 30px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:25;backdrop-filter:blur(8px)}
.topbar h1{font-size:23px;line-height:1.15;letter-spacing:-.35px;color:#101c2c;font-weight:800}.topbar p{color:var(--pro-muted);font-size:12px;margin-top:5px}
.pro-top-status{display:flex;align-items:center;gap:8px;color:#2f6d43;font-size:12px;font-weight:700}.pro-online-dot{width:8px;height:8px;background:#22c55e;border-radius:50%;box-shadow:0 0 0 4px rgba(34,197,94,.12)}
.admin-main{max-width:1240px;padding:24px 30px 40px}

/* Cards */
.card,.quota-card{border:1px solid var(--pro-line);border-radius:var(--pro-radius);box-shadow:var(--pro-shadow);background:var(--pro-surface)}
.card{padding:20px}.card h2{font-size:18px;color:#142238;letter-spacing:-.2px;margin-bottom:16px}.card h3{color:#23324a}
.grid2{gap:18px}.reseller-summary{gap:16px}
.reseller-summary .card{position:relative;overflow:hidden;min-height:155px}.reseller-summary .card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(var(--pro-primary),var(--pro-primary-2))}
.reseller-summary strong{font-size:27px;color:#0f1f34}.reseller-summary p{color:var(--pro-muted)}

/* Formulários */
label{font-size:12px;color:#26364c;margin:12px 0 6px}
input,select,textarea{border:1px solid #d7e0ea!important;border-radius:9px!important;background:#fff;color:#15263a;outline:none;transition:border-color .15s,box-shadow .15s}
input{padding:10px 11px}select{padding:10px 11px;min-height:41px;width:100%}
input:focus,select:focus,textarea:focus{border-color:#7cb8ff!important;box-shadow:0 0 0 3px rgba(13,110,253,.10)}
input[type="color"]{height:39px;padding:4px}
input[type="checkbox"]{accent-color:var(--pro-primary)}
.small{color:#7a8797;font-size:11px;line-height:1.45}

/* Botões */
button,.btn,.button.secondary{border-radius:9px;font-weight:700;font-size:12px;box-shadow:none;transition:.16s ease;text-decoration:none}
button,.btn{background:linear-gradient(135deg,var(--pro-primary),#1689ee);padding:10px 15px}
button:hover,.btn:hover{filter:brightness(.97);transform:translateY(-1px);box-shadow:0 7px 16px rgba(13,110,253,.17)}
.btn.danger,.danger{background:linear-gradient(135deg,#ef4457,#dc2940)}
.button.secondary{background:#6f7d8a!important;color:#fff!important;padding:10px 14px!important;margin-left:0}
.actions{align-items:center}

/* Mensagens */
.ok,.alert,.info-box{border-radius:11px;border:1px solid transparent;box-shadow:none}
.ok{background:#eaf8ef;color:#166534;border-color:#c9efd5}.alert{background:#fff0f0;color:#a61b2b;border-color:#ffd0d5}.info-box{background:#edf6ff;border-color:#c8e2ff;color:#26547a}

/* Tabelas profissionais */
.table-wrap{border:1px solid var(--pro-line);border-radius:11px;background:#fff}
.table-wrap table{border-collapse:separate;border-spacing:0;width:100%}
.table-wrap th{background:#f6f8fb!important;color:#66758a!important;text-transform:uppercase;font-size:10px!important;letter-spacing:.4px;font-weight:800;padding:11px 12px!important;border-bottom:1px solid var(--pro-line)!important;white-space:nowrap}
.table-wrap td{padding:11px 12px!important;border-bottom:1px solid #edf1f5!important;vertical-align:middle!important;color:#26364b;font-size:12px!important}
.table-wrap tbody tr:last-child td{border-bottom:0!important}.table-wrap tbody tr:hover{background:#fafcff}
.status-pill{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800}.status-pill.ok{background:#dcfce7;color:#15803d}.status-pill.danger{background:#fee2e2;color:#c62828}
.media-limit-badge{background:#eaf2ff;color:#1769d2;border-radius:7px;padding:4px 7px;font-weight:800}
.action-link{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:5px 9px;border-radius:7px;text-decoration:none;font-size:10px;font-weight:800;border:1px solid #dce5ef;background:#fff!important;color:#296ab2!important}.action-link:hover{background:#f0f6ff!important}.action-link.toggle{color:#9a6500!important;border-color:#f1dcad}.action-link.delete{color:#d83245!important;border-color:#f5c4cb}

/* Revendas */
.reseller-list-card{padding:0;overflow:visible}.reseller-list-head{padding:18px 20px 14px;border-bottom:1px solid var(--pro-line);display:flex;align-items:center;justify-content:space-between;gap:12px}.reseller-list-head h2{margin:0 0 3px}.reseller-list-head p{margin:0}.reseller-count{background:#e9f2ff;color:#1769d2;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:800}
.reseller-table-wrap{border:0;border-radius:0 0 var(--pro-radius) var(--pro-radius)}
.photo-col,.photo-cell{text-align:center!important;width:76px!important}.reseller-avatar{width:45px;height:45px;border-radius:50%;object-fit:cover;display:inline-flex;align-items:center;justify-content:center;border:3px solid #fff;box-shadow:0 0 0 1px #d8e0e9,0 4px 12px rgba(21,36,55,.08);background:#eef3f7;vertical-align:middle;cursor:zoom-in}.reseller-avatar.placeholder{font-size:18px;cursor:default}.reseller-avatar.large{width:92px;height:92px;cursor:default}.reseller-name-cell b{font-size:12px;color:#15253a}.reseller-name-cell small{color:#8490a0;font-size:10px}.reseller-actions{display:flex;gap:5px;flex-wrap:nowrap}
.reseller-photo-editor{display:flex;gap:16px;align-items:center;background:#f8fafc;border:1px solid var(--pro-line);border-radius:12px;padding:12px}.reseller-photo-hover{position:fixed;z-index:9999;width:310px;height:310px;display:none;padding:8px;background:#fff;border:1px solid #dce5ef;border-radius:15px;box-shadow:0 20px 55px rgba(15,31,51,.25);pointer-events:none}.reseller-photo-hover.show{display:block}.reseller-photo-hover img{width:100%;height:100%;object-fit:contain;border-radius:10px;background:#f6f8fa}

/* Tela Minha Revenda */
.pro-reseller-hero{display:flex;align-items:center;gap:16px;margin-bottom:18px;padding:18px 20px;background:linear-gradient(135deg,#0e6adf 0%,#168cf0 55%,#4ca8ff 100%);color:#fff;border-radius:15px;box-shadow:0 12px 28px rgba(13,110,253,.17)}
.pro-reseller-hero .reseller-avatar{width:74px;height:74px;cursor:default;box-shadow:0 0 0 2px rgba(255,255,255,.45)}
.pro-reseller-hero .placeholder{background:rgba(255,255,255,.16);color:#fff}.pro-reseller-hero h2{margin:0 0 4px;color:#fff;font-size:21px}.pro-reseller-hero p{margin:0;color:#eaf4ff;font-size:12px}
.pro-stat-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#edf5ff;color:#1269d4;font-size:18px;margin-bottom:12px}

/* URLs / cópia */
.copy{background:#f1f5f9;border:1px solid #e1e8f0;color:#425168;border-radius:8px;padding:9px 10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}

/* Uploads / mídia */
.reseller-media-item,.media-preview{border-color:var(--pro-line)}.reseller-media-item{box-shadow:0 5px 18px rgba(15,31,51,.05)}
.transmission-format-box{border-color:var(--pro-line);background:#f8fafc}

/* Responsivo */
@media(max-width:900px){.sidebar{width:78px}.sidebar-brand{justify-content:center;padding:18px 8px}.pro-brand-copy,.side-nav span,.sidebar-user-copy{display:none}.side-nav a,.sidebar-footer a{justify-content:center;padding:10px 8px}.sidebar-user{justify-content:center;padding:8px;margin:0 8px 10px}.content-area{margin-left:78px;width:calc(100% - 78px)}.admin-main{padding:20px 14px 34px}.topbar{padding:16px 18px}.topbar h1{font-size:20px}.reseller-actions{flex-wrap:wrap}.pro-top-status{display:none}}
@media(max-width:650px){.admin-main{padding:15px 10px 28px}.card{padding:16px}.topbar{min-height:68px}.reseller-photo-hover{display:none!important}.pro-reseller-hero{align-items:flex-start}.reseller-list-head{align-items:flex-start;flex-direction:column}}

/* ============================================================
   TV OUTDOOR V5.9.3 - PAINEL PROFISSIONAL COMPLETO
   Camada visual compartilhada: Administrador + Revenda
   ============================================================ */
:root{
  --pro-navy:#0d1728;
  --pro-navy-2:#121e33;
  --pro-blue:#1677ff;
  --pro-blue-2:#3b82f6;
  --pro-indigo:#4f46e5;
  --pro-bg:#f4f7fb;
  --pro-card:#ffffff;
  --pro-text:#172033;
  --pro-muted:#718096;
  --pro-line:#e5ebf3;
  --pro-success:#16a34a;
  --pro-danger:#ef4444;
  --pro-warning:#f59e0b;
  --pro-shadow:0 12px 34px rgba(15,23,42,.07);
}
body.admin-layout{background:var(--pro-bg);color:var(--pro-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.sidebar{width:252px;background:linear-gradient(180deg,#0b1424 0%,#101a30 60%,#0b1424 100%);box-shadow:8px 0 30px rgba(2,8,23,.12);border-right:1px solid rgba(255,255,255,.04)}
.content-area{margin-left:252px;width:calc(100% - 252px)}
.sidebar-brand{display:flex;align-items:center;gap:12px;padding:24px 18px;border-bottom:1px solid rgba(255,255,255,.08)}
.pro-brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;color:#fff;background:linear-gradient(135deg,var(--pro-indigo),var(--pro-blue));box-shadow:0 8px 20px rgba(37,99,235,.3);font-size:15px}
.pro-brand-copy{min-width:0}.brand-title{font-size:17px;font-weight:800;letter-spacing:.1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-sub{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#8fa0b8}
.side-nav{padding:18px 10px;gap:5px}.side-nav a,.sidebar-footer a{min-height:42px;padding:10px 12px;border-radius:10px;font-size:13px;font-weight:650;color:#b9c5d6;transition:.18s ease}.side-nav a:hover,.sidebar-footer a:hover{background:rgba(255,255,255,.07);color:#fff;transform:translateX(2px)}.side-nav a.active{background:linear-gradient(90deg,#4938f2,#2563eb);color:#fff;box-shadow:0 8px 18px rgba(55,65,220,.24)}
.side-icon{width:20px;text-align:center;opacity:.95}.sidebar-user{margin:auto 10px 10px;padding:11px;border:1px solid rgba(255,255,255,.10);border-radius:12px;background:rgba(255,255,255,.035);display:flex;gap:10px;align-items:center}.sidebar-user-avatar{width:36px;height:36px;min-width:36px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#1d2a44;border:1px solid rgba(255,255,255,.12)}.sidebar-user-avatar img{width:100%;height:100%;object-fit:cover}.sidebar-user-copy{display:flex;flex-direction:column;min-width:0}.sidebar-user-copy b{font-size:12px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user-copy small{font-size:9px;color:#8fa0b8;margin-top:2px}
.sidebar-footer{padding:10px;border-top:1px solid rgba(255,255,255,.08)}
.topbar.pro-topbar,.topbar{min-height:92px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--pro-line);padding:18px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;position:sticky;top:0;z-index:35;backdrop-filter:blur(8px)}.topbar h1{font-size:23px;line-height:1.2;margin:2px 0 0;color:#182236;font-weight:800}.topbar p{font-size:12px;color:var(--pro-muted);margin:5px 0 0}.pro-eyebrow{font-size:9px;letter-spacing:.14em;font-weight:800;color:var(--pro-blue);text-transform:uppercase}.pro-topbar-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.pro-server-pill{display:inline-flex;align-items:center;gap:7px;background:#effcf3;color:#15803d;border:1px solid #d3f1dc;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:800}.pro-server-pill i{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12)}.pro-date{font-size:11px;color:#64748b;font-weight:650}
.admin-main{max-width:1380px;padding:24px 30px 42px;margin:0 auto}.card,.pro-section-card{border:1px solid var(--pro-line);border-radius:14px;box-shadow:var(--pro-shadow);background:#fff}.card{padding:20px}.grid2{gap:16px}.pro-section-card{overflow:visible}.pro-card-title{display:flex;gap:11px;align-items:flex-start;margin-bottom:16px}.pro-card-title>span{width:34px;height:34px;min-width:34px;border-radius:9px;display:grid;place-items:center;background:#eef5ff;color:var(--pro-blue);font-weight:900}.pro-card-title h2{font-size:17px;margin:0}.pro-card-title p{font-size:11px;color:var(--pro-muted);margin:3px 0 0}
label{font-size:11px;color:#2c3850;margin:11px 0 5px}input,select,textarea{font-family:inherit;border:1px solid #d5deea!important;background:#fff;border-radius:8px!important;min-height:39px;outline:none;transition:.18s ease}input:focus,select:focus,textarea:focus{border-color:#6aa5ff!important;box-shadow:0 0 0 3px rgba(37,99,235,.10)}input[type=color]{padding:4px}.copy{background:#f3f6fa;border:1px solid #e5eaf1;border-radius:8px;color:#536175;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.small{font-size:10px;color:#7b8798}
button,.btn,.button{border-radius:8px!important;font-weight:750;font-family:inherit;font-size:11px;box-shadow:none;transition:.16s ease}button,.btn{background:linear-gradient(135deg,#4f35f5,#2563eb)}button:hover,.btn:hover{transform:translateY(-1px);filter:brightness(1.03)}.danger{background:linear-gradient(135deg,#f43f5e,#ef4444)!important}.button.secondary{background:#64748b;margin-left:0}.actions{gap:7px}
.pro-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.pro-kpi{background:#fff;border:1px solid var(--pro-line);border-radius:14px;padding:16px;display:flex;align-items:flex-start;gap:12px;box-shadow:0 8px 24px rgba(15,23,42,.045);min-width:0}.pro-kpi-icon{width:42px;height:42px;min-width:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#eef4ff,#e7edff);color:#3568e8;font-weight:900}.pro-kpi>div:last-child{min-width:0;display:flex;flex-direction:column}.pro-kpi span{font-size:10px;color:#738095;font-weight:700}.pro-kpi strong{font-size:22px;line-height:1.15;margin:4px 0;color:#172033}.pro-kpi small{font-size:9px;color:#94a0b0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.transmission-format-box{background:linear-gradient(135deg,#f8fbff,#f4f7fd);border-color:#e1e8f2}.orientation-preview{border-color:#364765;background:#111d32}.players th,.reseller-table th{background:#f8fafc;color:#526078;text-transform:uppercase;letter-spacing:.04em;font-size:9px}.players td,.reseller-table td{font-size:11px}.players tr:hover td,.reseller-table tbody tr:hover td{background:#fbfdff}
.reseller-list-card{padding:0!important;overflow:hidden!important}.reseller-list-head{padding:20px 20px 14px;border-bottom:1px solid var(--pro-line)}.reseller-list-head h2{margin:2px 0 0;font-size:19px}.reseller-count{background:#edf4ff;color:#2563eb;border:1px solid #dce9ff;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:800}.reseller-toolbar{padding:12px 16px;display:grid;grid-template-columns:minmax(260px,1fr) 180px auto;gap:10px;background:#fbfcfe;border-bottom:1px solid var(--pro-line)}.reseller-search{position:relative}.reseller-search span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#64748b;font-size:17px}.reseller-search input{padding-left:36px;width:100%;margin:0}.reseller-toolbar select{width:100%;margin:0;padding:0 10px}.pro-new-reseller{display:flex;align-items:center;justify-content:center;margin:0!important;white-space:nowrap}.reseller-table-wrap{overflow-x:auto;padding:0 12px 12px}.reseller-table{min-width:880px}.reseller-table th,.reseller-table td{padding:11px 9px!important;vertical-align:middle!important}.photo-col,.photo-cell{width:62px;text-align:center!important}.reseller-avatar{border-radius:50%!important;object-fit:cover!important;display:block}.photo-cell .reseller-avatar{margin:0 auto;width:44px!important;height:44px!important;min-width:44px!important;border:3px solid #fff;box-shadow:0 0 0 1px #dfe6ef,0 4px 10px rgba(15,23,42,.10)}.reseller-avatar.placeholder{display:grid!important;place-items:center!important;background:#f2f5f9;color:#607087}.reseller-avatar.large{width:88px!important;height:88px!important;min-width:88px!important}.reseller-photo-hover{border-radius:14px!important;padding:7px!important;background:#fff!important;box-shadow:0 22px 55px rgba(15,23,42,.30)!important;border:1px solid #dfe6ef!important}.reseller-photo-hover img{border-radius:10px!important}.reseller-name-cell b{font-size:12px}.reseller-name-cell small{color:#8a96a8}.media-limit-badge{display:inline-grid;place-items:center;min-width:25px;height:23px;padding:0 6px;background:#edf4ff;color:#2563eb;border-radius:6px;font-weight:800}.status-pill{padding:5px 8px;font-size:9px;letter-spacing:.02em}.action-link{display:inline-flex!important;align-items:center;justify-content:center;min-height:30px;padding:0 9px!important;border-radius:7px!important;font-size:9px!important;font-weight:800!important;text-decoration:none!important}.action-link.edit{background:#edf4ff!important;color:#2563eb!important;border:1px solid #d7e7ff!important}.action-link.toggle{background:#fff8e8!important;color:#a16207!important;border:1px solid #f5e1ad!important}.action-link.delete{background:#fff1f2!important;color:#e11d48!important;border:1px solid #fecdd3!important}.reseller-actions{display:flex;gap:5px;align-items:center}
.pro-reseller-hero{background:linear-gradient(135deg,#0f1d34,#162844);border-radius:16px;padding:22px 24px;display:flex;align-items:center;gap:18px;color:#fff;margin-bottom:16px;box-shadow:0 15px 36px rgba(15,29,52,.16);position:relative;overflow:hidden}.pro-reseller-hero:after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-65px;top:-85px;background:radial-gradient(circle,rgba(47,120,255,.34),transparent 67%)}.pro-reseller-hero .reseller-avatar{width:76px!important;height:76px!important;min-width:76px!important;border:4px solid rgba(255,255,255,.9);box-shadow:0 8px 20px rgba(0,0,0,.22);z-index:1}.pro-reseller-hero h2{font-size:22px;margin:0 0 4px;color:#fff}.pro-reseller-hero p{margin:0;color:#b8c7da;font-size:11px;max-width:680px}.pro-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.pro-quick-actions a{display:flex;align-items:center;gap:10px;text-decoration:none;background:#fff;border:1px solid var(--pro-line);border-radius:13px;padding:13px 14px;color:#1d293d;box-shadow:0 7px 20px rgba(15,23,42,.04);transition:.16s ease}.pro-quick-actions a:hover{transform:translateY(-2px);border-color:#c9dcff;box-shadow:0 10px 24px rgba(37,99,235,.08)}.pro-quick-actions a>span{width:34px;height:34px;min-width:34px;border-radius:9px;display:grid;place-items:center;background:#eef4ff;color:#2563eb;font-weight:900}.pro-quick-actions a>div{min-width:0;display:flex;flex-direction:column}.pro-quick-actions b{font-size:11px}.pro-quick-actions small{font-size:9px;color:#8190a5;margin-top:2px}.pro-quick-actions em{font-style:normal;margin-left:auto;color:#9aa6b5;font-size:18px}.reseller-summary{gap:12px}.reseller-summary .card{position:relative;overflow:hidden;margin:0}.reseller-summary h3{font-size:12px;color:#536177;margin:0 0 9px}.reseller-summary strong{font-size:24px}.pro-stat-icon{position:absolute;right:14px;top:14px;width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#eef4ff;color:#2563eb;font-weight:900}.info-box{border-radius:12px;background:#eef7ff;border-color:#d5e9fb;font-size:11px}
.health-grid{gap:12px}.health-card{border-radius:13px;border-left:0;border-top:3px solid #22c55e;box-shadow:var(--pro-shadow)}.health-card.warn{border-top-color:#f59e0b}.health-card.danger{border-top-color:#ef4444}
.ok,.alert{border-radius:10px;font-size:11px}.ok{background:#eefbf2;border:1px solid #d5f2de}.alert{background:#fff1f2;border:1px solid #fecdd3}
@media(max-width:1180px){.pro-dashboard-grid{grid-template-columns:repeat(2,1fr)}.pro-quick-actions{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.sidebar{width:78px}.content-area{margin-left:78px;width:calc(100% - 78px)}.sidebar-brand{justify-content:center;padding:18px 8px}.pro-brand-copy,.side-nav span,.sidebar-footer span,.sidebar-user-copy{display:none}.side-nav a,.sidebar-footer a{justify-content:center}.sidebar-user{justify-content:center;padding:8px;margin-left:9px;margin-right:9px}.topbar.pro-topbar,.topbar{padding:16px 18px;min-height:78px}.pro-topbar-status{display:none}.admin-main{padding:18px}.reseller-toolbar{grid-template-columns:1fr 160px}.pro-new-reseller{grid-column:1/-1}.grid2{grid-template-columns:1fr}}
@media(max-width:620px){.pro-dashboard-grid,.pro-quick-actions,.reseller-summary{grid-template-columns:1fr}.admin-main{padding:12px}.topbar h1{font-size:19px}.card{padding:15px}.reseller-toolbar{grid-template-columns:1fr}.pro-reseller-hero{padding:17px;align-items:flex-start}.pro-reseller-hero .reseller-avatar{width:58px!important;height:58px!important;min-width:58px!important}}
/* V5.9.4 - interface fiel ao modelo profissional aprovado */
:root{--v594-navy:#0b1727;--v594-navy2:#101f33;--v594-blue:#087df2;--v594-blue2:#116be7;--v594-bg:#f5f8fc;--v594-text:#102038;--v594-line:#e4eaf2}
body.admin-layout{background:var(--v594-bg)!important;color:var(--v594-text)}
.sidebar{width:260px!important;background:linear-gradient(180deg,#0b1727 0%,#101e31 100%)!important;border-right:0!important;box-shadow:8px 0 28px rgba(8,23,42,.08);z-index:60}
.content-area{margin-left:260px!important;width:calc(100% - 260px)!important}
.sidebar-brand{height:76px!important;padding:0 22px!important;background:#091523!important;border-bottom:1px solid rgba(255,255,255,.08)!important;gap:13px!important}
.pro-brand-mark{width:46px!important;height:38px!important;border:3px solid #f5f9ff!important;border-left-color:#168cff!important;border-radius:3px!important;background:transparent!important;color:#168cff!important;box-shadow:none!important;position:relative;font-size:18px!important}
.pro-brand-mark:after{content:"";position:absolute;width:20px;height:3px;background:#168cff;left:10px;bottom:-10px;border-radius:4px}
.brand-title{font-size:24px!important;letter-spacing:-.04em!important;color:#fff!important}.brand-title:first-letter{color:#168cff}.brand-sub{font-size:8px!important;letter-spacing:.11em!important;color:#b7c4d4!important;text-transform:uppercase}
.side-nav{padding:18px 10px!important}.side-nav a{min-height:49px!important;padding:0 15px!important;margin:3px 0!important;border-radius:7px!important;color:#d9e3ef!important;font-size:14px!important;font-weight:600!important;gap:13px!important}.side-nav a:hover{background:#162a43!important;color:#fff!important}.side-nav a.active{background:linear-gradient(90deg,#087df2,#116be7)!important;color:#fff!important;box-shadow:0 8px 18px rgba(8,125,242,.23)!important}.side-icon{width:22px!important;font-size:18px!important;color:#d8e5f3}.side-nav a.active .side-icon{color:#fff}.sidebar-user{margin:14px!important;background:#14243a!important;border:1px solid rgba(255,255,255,.08)!important}.sidebar-footer{border-top:1px solid rgba(255,255,255,.08)!important;padding:12px 10px!important}.sidebar-footer a{font-size:14px!important;min-height:44px!important}
.pro-global-header{height:76px;background:linear-gradient(90deg,#0b1727,#0d1a2a);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:50;box-shadow:0 2px 8px rgba(0,0,0,.12)}.pro-header-left,.pro-header-right{display:flex;align-items:center;gap:24px}.pro-header-left{font-size:20px}.pro-menu-glyph{font-size:25px;color:#dfe9f4}.pro-server-live{color:#48d47a;font-size:13px;padding-right:20px;border-right:1px solid #405064}.pro-header-clock{font-size:13px;color:#fff}.pro-admin-chip{font-size:14px;font-weight:700}.reseller-page-title.topbar{position:static!important;min-height:112px!important;padding:25px 34px!important;background:#fff!important;border-bottom:1px solid var(--v594-line)!important}.pro-title-line{display:flex;align-items:center;gap:15px}.pro-title-icon{width:46px;height:46px;display:grid;place-items:center;color:#087df2;font-size:31px}.reseller-page-title h1{font-size:27px!important;margin:0!important}.reseller-page-title p{font-size:13px!important;margin-top:4px!important}.pro-primary-large{background:linear-gradient(135deg,#1289ff,#0875e8);color:#fff;text-decoration:none;padding:15px 23px;border-radius:8px;font-weight:800;font-size:14px;box-shadow:0 8px 18px rgba(8,125,242,.2)}
.admin-main{max-width:none!important;padding:26px 34px 42px!important}.reseller-list-card{border-radius:10px!important;box-shadow:0 7px 24px rgba(22,42,68,.06)!important}.reseller-list-head{display:none!important}.reseller-toolbar{grid-template-columns:minmax(320px,1.5fr) minmax(180px,.55fr) minmax(180px,.55fr) 160px!important;gap:14px!important;padding:18px!important;background:#fff!important}.reseller-search input,.reseller-toolbar select{height:45px!important;font-size:13px!important;border:1px solid #d5dfeb!important}.reseller-search span{font-size:22px!important}.pro-search-button{height:45px!important;border:0!important;border-radius:7px!important;background:#087df2!important;color:#fff!important;font-size:14px!important;font-weight:800!important;cursor:pointer}.reseller-table-wrap{padding:0 18px 16px!important}.reseller-table{min-width:980px!important}.reseller-table th{background:#f3f6fa!important;color:#16263e!important;font-size:12px!important;text-transform:none!important;letter-spacing:0!important;padding:14px 12px!important}.reseller-table td{font-size:13px!important;padding:12px!important}.photo-col,.photo-cell{width:76px!important}.photo-cell .reseller-avatar{width:48px!important;height:48px!important;min-width:48px!important}.reseller-name-cell b{font-size:14px!important}.reseller-name-cell small{font-size:11px!important}.status-pill{font-size:11px!important;padding:7px 12px!important}.status-pill.ok{background:#dff8e6!important;color:#13823a!important}.status-pill.danger{background:#ffe2e5!important;color:#e12d3f!important}.media-limit-badge{font-size:12px!important}.action-link{width:42px!important;height:38px!important;min-height:38px!important;padding:0!important;font-size:0!important;border:0!important}.action-link.edit:before{content:"✎";font-size:17px}.action-link.toggle:before{content:"◉";font-size:15px}.action-link.delete:before{content:"▣";font-size:15px}.action-link.edit{background:#087df2!important;color:#fff!important}.action-link.toggle{background:#0b86f5!important;color:#fff!important}.action-link.delete{background:#ff3949!important;color:#fff!important}.reseller-photo-hover{width:250px!important;height:250px!important}.reseller-photo-hover img{width:100%!important;height:100%!important;object-fit:contain!important}.pro-section-card#form-revenda{margin-bottom:22px!important;border-radius:10px!important}.pro-card-title>span{background:#eaf4ff!important;color:#087df2!important}
@media(max-width:1050px){.sidebar{width:82px!important}.content-area{margin-left:82px!important;width:calc(100% - 82px)!important}.pro-brand-copy,.side-nav span,.sidebar-user-copy,.sidebar-footer span{display:none!important}.sidebar-brand{padding:0 16px!important}.reseller-toolbar{grid-template-columns:1fr 1fr!important}.pro-global-header{padding:0 18px}.pro-header-clock{display:none}.admin-main{padding:18px!important}}

/* ============================================================
   TV OUTDOOR V5.9.5 - ESTRUTURA VISUAL PROFISSIONAL
   Referência: layout aprovado em 05/09/2026
   Esta camada altera SOMENTE apresentação/estrutura visual.
   ============================================================ */
:root{
  --v595-navy:#0a1627;
  --v595-navy2:#0f2035;
  --v595-blue:#1479f8;
  --v595-blue2:#0a67de;
  --v595-bg:#f4f7fb;
  --v595-line:#dfe7f0;
  --v595-text:#102038;
  --v595-muted:#687990;
}
html,body{min-height:100%;background:var(--v595-bg)}
body.admin-layout{font-family:Arial,Helvetica,sans-serif;color:var(--v595-text);font-size:14px}

/* Sidebar maior e mais próxima do modelo aprovado */
.sidebar{
  width:262px!important;
  background:linear-gradient(180deg,var(--v595-navy) 0%,#0d1b2e 100%)!important;
  box-shadow:3px 0 18px rgba(7,18,34,.12)!important;
}
.sidebar-brand{
  min-height:82px!important;
  padding:14px 20px!important;
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
}
.pro-brand-mark{
  width:50px!important;height:39px!important;border:2px solid #3ba1ff!important;
  border-radius:2px!important;background:transparent!important;color:#2e9cff!important;
  font-size:21px!important;display:grid!important;place-items:center!important;
  box-shadow:none!important;position:relative
}
.pro-brand-mark:after{content:"";position:absolute;left:9px;right:9px;bottom:-7px;height:2px;background:#3ba1ff;border-radius:2px}
.brand-title{font-size:22px!important;color:#fff!important;letter-spacing:-.45px!important;line-height:1!important}
.brand-sub{font-size:9px!important;color:#a5b6c9!important;letter-spacing:1.1px!important;margin-top:6px!important}
.side-nav{padding:17px 12px!important;gap:5px!important}
.side-nav a,.sidebar-footer a{
  min-height:51px!important;padding:12px 14px!important;border-radius:8px!important;
  font-size:15px!important;font-weight:600!important;gap:13px!important;color:#e1e8f1!important
}
.side-nav a.active{background:linear-gradient(90deg,#1878e8,#1479f8)!important;box-shadow:0 7px 18px rgba(20,121,248,.25)!important}
.side-icon{font-size:19px!important;width:23px!important;flex-basis:23px!important}
.sidebar-user{margin:0 12px 12px!important;padding:12px!important;border-radius:10px!important}
.sidebar-user-avatar{width:40px!important;height:40px!important}
.sidebar-footer{padding:12px!important}

/* Área principal e cabeçalho global */
.content-area{margin-left:262px!important;width:calc(100% - 262px)!important;min-height:100vh!important;background:var(--v595-bg)!important}
.pro-global-header{
  height:76px!important;background:var(--v595-navy)!important;color:#fff!important;
  padding:0 31px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  border:0!important;box-shadow:0 2px 8px rgba(5,18,35,.14)!important;position:sticky!important;top:0!important;z-index:35!important
}
.pro-header-left{display:flex!important;align-items:center!important;gap:18px!important;font-size:20px!important}
.pro-menu-glyph{font-size:26px!important;color:#fff!important;line-height:1}
.pro-header-right{display:flex!important;align-items:center!important;gap:20px!important;font-size:13px!important}
.pro-server-live{color:#47df83!important;font-weight:700!important}
.pro-header-clock{padding-left:20px!important;border-left:1px solid rgba(255,255,255,.22)!important;color:#f1f5f9!important}
.pro-admin-chip{padding-left:20px!important;border-left:1px solid rgba(255,255,255,.22)!important;color:#fff!important;font-weight:700!important}

/* Topbar/título abaixo do header */
.topbar.pro-topbar,.reseller-page-title{
  position:static!important;min-height:112px!important;background:#fff!important;padding:24px 34px!important;
  border-bottom:1px solid var(--v595-line)!important;display:flex!important;align-items:center!important;justify-content:space-between!important
}
.topbar.pro-topbar h1,.reseller-page-title h1{font-size:30px!important;line-height:1.12!important;color:#102038!important;margin:0!important;letter-spacing:-.7px!important}
.topbar.pro-topbar p,.reseller-page-title p{font-size:14px!important;color:var(--v595-muted)!important;margin-top:6px!important}
.pro-title-icon{font-size:31px!important;color:var(--v595-blue)!important;margin-right:15px!important}
.pro-primary-large{font-size:15px!important;padding:15px 22px!important;border-radius:8px!important;background:linear-gradient(135deg,#1479f8,#0868df)!important;color:#fff!important;box-shadow:0 8px 18px rgba(20,121,248,.23)!important}

/* Área útil usa quase toda largura como no modelo */
.admin-main{max-width:none!important;width:100%!important;margin:0!important;padding:22px 30px 42px!important}

/* Revendas - tabela e toolbar com proporções maiores */
.reseller-list-card{border-radius:10px!important;box-shadow:0 5px 18px rgba(16,32,56,.055)!important}
.reseller-list-head{padding:22px 24px 17px!important}
.reseller-list-head h2{font-size:24px!important;margin-top:3px!important}
.reseller-list-head .small{font-size:13px!important}
.reseller-toolbar{
  display:grid!important;grid-template-columns:minmax(360px,1.45fr) minmax(190px,.65fr) minmax(190px,.65fr) 150px!important;
  gap:13px!important;padding:17px 16px!important;background:#fff!important;border-bottom:1px solid var(--v595-line)!important
}
.reseller-toolbar input,.reseller-toolbar select{height:46px!important;font-size:14px!important;border-radius:7px!important}
.reseller-search{height:46px!important;border:1px solid #d6dfeb!important;border-radius:7px!important;padding:0 13px!important;display:flex!important;align-items:center!important;gap:9px!important;background:#fff!important}
.reseller-search input{height:42px!important;border:0!important;box-shadow:none!important;padding:0!important;background:transparent!important}
.pro-search-button{height:46px!important;margin:0!important;border-radius:7px!important;font-size:14px!important}
.reseller-table-wrap{overflow-x:auto!important}
.reseller-table{min-width:930px!important}
.reseller-table th{font-size:12px!important;padding:14px 16px!important;color:#17263c!important;background:#f2f5f9!important;text-transform:none!important;letter-spacing:0!important}
.reseller-table td{font-size:13px!important;padding:14px 16px!important;height:66px!important}
.photo-col,.photo-cell{width:84px!important}
.reseller-avatar{width:50px!important;height:50px!important}
.reseller-name-cell b{font-size:14px!important;color:#102038!important}
.reseller-name-cell small{font-size:11px!important;margin-top:4px!important;display:inline-block!important}
.status-pill{font-size:11px!important;padding:7px 11px!important}
.media-limit-badge{font-size:12px!important;padding:5px 8px!important}
.reseller-actions{gap:7px!important}
.action-link{min-width:40px!important;min-height:36px!important;padding:7px 11px!important;font-size:11px!important;border-radius:6px!important}
.action-link.edit{background:#1479f8!important;color:#fff!important;border-color:#1479f8!important}
.action-link.toggle{background:#1479f8!important;color:#fff!important;border-color:#1479f8!important}
.action-link.delete{background:#ff3449!important;color:#fff!important;border-color:#ff3449!important}

/* Dashboard principal no mesmo esqueleto */
.pro-dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;margin-bottom:18px!important}
.pro-kpi{min-height:86px!important;border-radius:10px!important;padding:15px 17px!important;background:#fff!important;border:1px solid var(--v595-line)!important;box-shadow:0 4px 14px rgba(16,32,56,.045)!important}
.pro-kpi-icon{width:42px!important;height:42px!important;border-radius:10px!important;font-size:17px!important}
.pro-kpi span{font-size:11px!important}.pro-kpi strong{font-size:21px!important}.pro-kpi small{font-size:10px!important}
.card.pro-section-card{border-radius:10px!important;padding:22px!important;box-shadow:0 5px 18px rgba(16,32,56,.05)!important}
.pro-card-title h2{font-size:20px!important}.pro-card-title p{font-size:12px!important}
.grid2{gap:18px!important}

/* Em telas menores mantém utilizável sem descaracterizar */
@media(max-width:1150px){
  .sidebar{width:230px!important}.content-area{margin-left:230px!important;width:calc(100% - 230px)!important}
  .brand-title{font-size:19px!important}.side-nav a,.sidebar-footer a{font-size:13px!important}
  .reseller-toolbar{grid-template-columns:1fr 1fr!important}.pro-search-button{width:100%!important}
  .pro-dashboard-grid{grid-template-columns:repeat(2,1fr)!important}
}
@media(max-width:760px){
  .sidebar{width:76px!important}.content-area{margin-left:76px!important;width:calc(100% - 76px)!important}
  .pro-brand-copy,.side-nav span,.sidebar-user-copy{display:none!important}.sidebar-brand{justify-content:center!important;padding:12px 7px!important}.pro-brand-mark{width:43px!important}
  .pro-global-header{padding:0 16px!important}.pro-header-right{display:none!important}.pro-header-left b{font-size:16px!important}
  .topbar.pro-topbar,.reseller-page-title{padding:19px 16px!important;min-height:92px!important}.topbar.pro-topbar h1,.reseller-page-title h1{font-size:23px!important}
  .admin-main{padding:16px 10px 30px!important}.reseller-toolbar{grid-template-columns:1fr!important}.pro-dashboard-grid{grid-template-columns:1fr!important}
}


/* ============================================================
   TV OUTDOOR V5.9.9 - INTERFACE RESPONSIVA MODELO APROVADO
   Sidebar/ícones + grade Revendas fiel ao modelo.
   ============================================================ */
:root{
  --v599-navy:#0c1d30;
  --v599-navy2:#11283f;
  --v599-blue:#1389f5;
  --v599-blue2:#0879df;
  --v599-bg:#f3f7fb;
  --v599-line:#e4ebf2;
  --v599-text:#0f2238;
  --v599-muted:#62748a;
}
.pro-sidebar-v599.sidebar{
  width:260px!important;
  background:linear-gradient(180deg,var(--v599-navy),var(--v599-navy2))!important;
  border-right:0!important;
  box-shadow:none!important;
}
.content-area{margin-left:260px!important;width:calc(100% - 260px)!important}
.pro-brand-v599.sidebar-brand{
  min-height:78px!important;padding:13px 20px!important;gap:12px!important;
  border-bottom:1px solid rgba(255,255,255,.06)!important;
}
.pro-brand-screen{
  width:56px;height:40px;min-width:56px;border:3px solid #f4f8fd;border-radius:2px;
  display:flex;align-items:center;justify-content:center;color:#0e8df5;position:relative;
  box-sizing:border-box;font-size:18px;
}
.pro-brand-screen:after{content:"";position:absolute;width:30px;height:3px;bottom:-8px;left:10px;background:#0e8df5;border-radius:4px}
.pro-brand-screen:before{content:"";position:absolute;width:12px;height:2px;bottom:-6px;left:19px;background:#f4f8fd}
.brand-blue{color:#138bf5}
.pro-brand-v599 .brand-title{font-size:26px!important;letter-spacing:-.7px!important;color:#fff!important;line-height:1!important}
.pro-brand-v599 .brand-sub{font-size:7px!important;letter-spacing:1.2px!important;color:#aab9c9!important;margin-top:7px!important;white-space:nowrap}
.pro-side-nav-v599.side-nav{padding:13px 0!important;gap:0!important}
.pro-side-nav-v599.side-nav a,.sidebar-footer a{
  min-height:54px!important;border-radius:0!important;margin:0!important;padding:0 24px!important;
  gap:15px!important;font-size:15px!important;font-weight:500!important;color:#edf4fb!important;
}
.pro-side-nav-v599.side-nav a.active{
  background:linear-gradient(90deg,#0b83ec,#0a8df7)!important;
  box-shadow:none!important;
}
.pro-side-nav-v599 .side-icon,.sidebar-footer .side-icon{
  width:24px!important;min-width:24px!important;flex-basis:24px!important;height:24px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
.pro-side-nav-v599 .side-icon svg,.sidebar-footer .side-icon svg{
  width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.pro-side-nav-v599 .health-heart svg{fill:#fff;stroke:#fff}
.sidebar-user{margin:14px 16px!important}
.sidebar-footer{padding:10px 0 18px!important}
.sidebar-footer a{min-height:50px!important}
.pro-global-header{
  height:78px!important;background:var(--v599-navy)!important;padding:0 30px!important;
}
.pro-header-left b{font-size:19px!important}.pro-menu-glyph{font-size:26px!important}
.pro-header-right{font-size:12px!important;gap:16px!important}

/* Página Revendas no desenho aprovado */
.reseller-page-title{
  min-height:112px!important;padding:22px 30px!important;background:#fff!important;
  border-bottom:1px solid var(--v599-line)!important;
}
.reseller-page-title .pro-title-icon{font-size:36px!important}
.reseller-page-title h1{font-size:28px!important;letter-spacing:-.5px!important}
.reseller-page-title p{font-size:14px!important}
.pro-primary-large{
  min-width:190px!important;min-height:50px!important;border-radius:7px!important;
  background:linear-gradient(180deg,#168df7,#087be4)!important;font-size:15px!important;
  box-shadow:0 6px 15px rgba(13,133,239,.18)!important;
}
.admin-main{background:var(--v599-bg)!important;padding:18px 28px 32px!important}
.v599-reseller-card{
  padding:0!important;border:1px solid var(--v599-line)!important;border-radius:10px!important;
  box-shadow:0 4px 14px rgba(20,45,70,.04)!important;overflow:visible!important;
}
.v599-toolbar{
  display:grid!important;grid-template-columns:minmax(300px,1.6fr) minmax(180px,.75fr) minmax(180px,.75fr) 170px!important;
  gap:12px!important;padding:18px!important;border-bottom:1px solid var(--v599-line)!important;
}
.v599-toolbar input,.v599-toolbar select,.v599-toolbar button{
  min-height:45px!important;height:45px!important;border-radius:6px!important;font-size:14px!important;
}
.v599-toolbar .pro-search-button{background:var(--v599-blue)!important;color:#fff!important;border:0!important;font-weight:700!important}
.v599-reseller-table{width:100%!important;table-layout:auto!important}
.v599-reseller-table th{
  height:46px!important;background:#f2f5f8!important;color:#14283d!important;font-size:13px!important;
  font-weight:800!important;padding:0 14px!important;white-space:nowrap;
}
.v599-reseller-table td{
  min-height:65px!important;height:65px!important;padding:8px 14px!important;border-bottom:1px solid var(--v599-line)!important;
  font-size:14px!important;color:var(--v599-text)!important;vertical-align:middle!important;
}
.v599-reseller-table tbody tr:last-child td{border-bottom:0!important}
.v599-reseller-table .photo-col{width:74px}.v599-reseller-table .id-col{width:52px}
.v599-reseller-table .photo-cell{text-align:center!important}
.v599-reseller-table .reseller-avatar{width:47px!important;height:47px!important;min-width:47px!important;border-radius:50%!important}
.v599-reseller-table .reseller-name-cell b{font-size:15px!important}
.id-cell,.city-cell,.media-cell{white-space:nowrap}
.plan-pill{
  display:inline-flex;align-items:center;justify-content:center;min-width:92px;padding:7px 11px;border-radius:5px;
  font-size:13px;font-weight:700;color:#fff;background:#2d94ee;
}
.plan-inicial{background:#a8b7c6}.plan-profissional{background:#3695ed}.plan-empresarial{background:#16bd68}.plan-personalizado{background:#7c64df}
.status-pill{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:7px 12px!important;border-radius:6px!important;font-size:13px!important;text-transform:none!important}
.status-pill i{width:8px;height:8px;border-radius:50%;background:currentColor}
.status-pill.ok{background:#c9f5d8!important;color:#0d9d4e!important}.status-pill.danger{background:#ffd8dc!important;color:#ef3340!important}
.reseller-actions{display:flex;gap:7px;align-items:center;white-space:nowrap}
.action-link{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:5px!important;font-size:16px!important}
.action-link.view,.action-link.edit{background:#148cf2!important;color:#fff!important}.action-link.delete{background:#ff3349!important;color:#fff!important}
.v599-table-footer{
  display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 12px 4px;color:#24384e;font-size:13px;
}
.v599-helper{background:#dceeff;color:#24527c;padding:10px 16px;border-radius:6px}
.reseller-photo-hover{z-index:9999!important}

/* Formulário também responsivo */
.reseller-form-grid select{width:100%;min-height:42px;border:1px solid #cfdbe7;border-radius:6px;padding:0 10px;background:#fff}

/* Responsividade */
@media(max-width:1180px){
  .pro-sidebar-v599.sidebar{width:225px!important}
  .content-area{margin-left:225px!important;width:calc(100% - 225px)!important}
  .pro-brand-v599 .brand-title{font-size:21px!important}
  .pro-side-nav-v599.side-nav a,.sidebar-footer a{padding:0 17px!important;font-size:13px!important}
  .v599-toolbar{grid-template-columns:1fr 1fr!important}
  .v599-toolbar .reseller-search{grid-column:1/-1}
  .v599-toolbar .pro-search-button{grid-column:2}
  .reseller-table-wrap{overflow-x:auto!important}
  .v599-reseller-table{min-width:930px!important}
}
@media(max-width:760px){
  .pro-sidebar-v599.sidebar{width:74px!important}
  .content-area{margin-left:74px!important;width:calc(100% - 74px)!important}
  .pro-brand-v599.sidebar-brand{padding:12px 9px!important;justify-content:center!important}
  .pro-brand-screen{width:46px;height:34px;min-width:46px}.pro-brand-copy{display:none!important}
  .pro-side-nav-v599.side-nav a,.sidebar-footer a{justify-content:center!important;padding:0!important}
  .pro-side-nav-v599.side-nav span,.sidebar-footer span,.sidebar-user-copy{display:none!important}
  .pro-global-header{height:66px!important;padding:0 14px!important}
  .pro-header-right .pro-header-clock{display:none!important}
  .reseller-page-title{min-height:96px!important;padding:16px!important;gap:12px!important}
  .reseller-page-title h1{font-size:22px!important}.pro-primary-large{min-width:150px!important}
  .admin-main{padding:12px!important}
  .v599-toolbar{display:flex!important;flex-direction:column!important}
  .v599-toolbar .reseller-search,.v599-toolbar .pro-search-button{grid-column:auto}
  .v599-table-footer{flex-direction:column;align-items:flex-start}
}


/* ============================================================
   TV OUTDOOR V5.9.10 - MODELO VISUAL APROVADO
   Refinamento final: sidebar maior, ícones maiores, cores mais vivas,
   tabela mais espaçosa e ações destacadas.
   ============================================================ */
:root{
  --v5910-navy:#0b1f33;
  --v5910-navy2:#12304d;
  --v5910-blue:#0f8cf4;
  --v5910-blue2:#0879de;
  --v5910-green:#17c66b;
  --v5910-red:#ff3349;
  --v5910-soft:#f4f8fc;
}

.pro-sidebar-v599.sidebar{
  width:282px!important;
  background:linear-gradient(180deg,var(--v5910-navy),var(--v5910-navy2))!important;
}
.content-area{
  margin-left:282px!important;
  width:calc(100% - 282px)!important;
}
.pro-brand-v599.sidebar-brand{
  min-height:86px!important;
  padding:15px 20px!important;
  gap:14px!important;
}
.pro-brand-screen{
  width:62px!important;
  height:44px!important;
  min-width:62px!important;
  border-width:3px!important;
}
.pro-brand-v599 .brand-title{
  font-size:29px!important;
  font-weight:800!important;
}
.pro-brand-v599 .brand-sub{
  font-size:7.5px!important;
  letter-spacing:1.25px!important;
}
.pro-side-nav-v599.side-nav{
  padding-top:14px!important;
}
.pro-side-nav-v599.side-nav a,.sidebar-footer a{
  min-height:58px!important;
  padding:0 26px!important;
  gap:17px!important;
  font-size:16px!important;
  font-weight:600!important;
}
.pro-side-nav-v599 .side-icon,.sidebar-footer .side-icon{
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
}
.pro-side-nav-v599 .side-icon svg,.sidebar-footer .side-icon svg{
  width:25px!important;
  height:25px!important;
  stroke-width:2.2!important;
}
.pro-side-nav-v599.side-nav a.active{
  background:linear-gradient(90deg,#0c89ef,#0b8ef7)!important;
  box-shadow:0 8px 18px rgba(12,137,239,.22)!important;
}
.pro-side-nav-v599.side-nav a:hover{
  background:rgba(255,255,255,.07)!important;
}
.pro-side-nav-v599.side-nav a.active:hover{
  background:linear-gradient(90deg,#0c89ef,#0b8ef7)!important;
}
.sidebar-user{
  margin:16px 18px!important;
  padding:12px!important;
}
.sidebar-footer{
  padding-bottom:22px!important;
}

.pro-global-header{
  height:84px!important;
  padding:0 34px!important;
}
.pro-header-left b{
  font-size:21px!important;
}
.pro-header-left .pro-menu-glyph{
  font-size:30px!important;
}
.pro-header-right{
  font-size:13px!important;
}

.reseller-page-title{
  min-height:120px!important;
  padding:26px 32px!important;
}
.reseller-page-title .pro-title-icon{
  font-size:40px!important;
}
.reseller-page-title h1{
  font-size:31px!important;
}
.reseller-page-title p{
  font-size:15px!important;
}
.pro-primary-large{
  min-width:210px!important;
  min-height:54px!important;
  font-size:16px!important;
  border-radius:8px!important;
  background:linear-gradient(180deg,#1392fb,#087bdc)!important;
}

.admin-main{
  padding:20px 30px 34px!important;
  background:var(--v5910-soft)!important;
}
.v599-reseller-card{
  border-radius:12px!important;
}
.v599-toolbar{
  padding:20px!important;
  gap:14px!important;
  grid-template-columns:minmax(340px,1.7fr) minmax(200px,.8fr) minmax(200px,.8fr) 180px!important;
}
.v599-toolbar input,.v599-toolbar select,.v599-toolbar button{
  min-height:49px!important;
  height:49px!important;
  font-size:15px!important;
  border-radius:7px!important;
}
.v599-toolbar .pro-search-button{
  background:linear-gradient(180deg,#1291fa,#087adf)!important;
  font-size:15px!important;
  box-shadow:0 5px 12px rgba(13,137,239,.18)!important;
}
.v599-reseller-table th{
  height:50px!important;
  font-size:14px!important;
  padding:0 16px!important;
}
.v599-reseller-table td{
  height:72px!important;
  min-height:72px!important;
  padding:10px 16px!important;
  font-size:15px!important;
}
.v599-reseller-table .reseller-avatar{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  border:2px solid #fff!important;
  box-shadow:0 2px 8px rgba(0,0,0,.12)!important;
}
.v599-reseller-table .reseller-name-cell b{
  font-size:16px!important;
}
.plan-pill{
  min-width:102px!important;
  padding:8px 13px!important;
  font-size:14px!important;
  border-radius:6px!important;
  box-shadow:0 3px 8px rgba(0,0,0,.08)!important;
}
.plan-profissional{
  background:linear-gradient(180deg,#2f9df5,#1787e7)!important;
}
.plan-empresarial{
  background:linear-gradient(180deg,#1fd078,#11b85f)!important;
}
.plan-inicial{
  background:linear-gradient(180deg,#b0bdc9,#96a7b8)!important;
}
.status-pill{
  min-width:88px!important;
  justify-content:center!important;
  padding:8px 13px!important;
  font-size:14px!important;
}
.status-pill.ok{
  background:#caf7d9!important;
  color:#0fa654!important;
}
.status-pill.danger{
  background:#ffd6dc!important;
  color:#ee2f42!important;
}
.reseller-actions{
  gap:8px!important;
}
.action-link{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  font-size:18px!important;
  border-radius:6px!important;
  box-shadow:0 3px 7px rgba(0,0,0,.08)!important;
}
.action-link.view{
  background:linear-gradient(180deg,#1595fb,#087dde)!important;
}
.action-link.edit{
  background:linear-gradient(180deg,#188cf2,#0a73d6)!important;
}
.action-link.delete{
  background:linear-gradient(180deg,#ff4055,#f21e37)!important;
}
.action-link:hover{
  transform:translateY(-1px);
  filter:brightness(1.04);
}
.v599-table-footer{
  padding:20px 14px 6px!important;
  font-size:14px!important;
}
.v599-helper{
  padding:11px 18px!important;
  background:linear-gradient(180deg,#d9efff,#cbe8ff)!important;
  border:1px solid #b8ddfb!important;
}

/* hover da foto mais destacado */
.reseller-photo-hover{
  border-radius:10px!important;
  border:5px solid #fff!important;
  box-shadow:0 14px 32px rgba(0,0,0,.28)!important;
}

/* Responsividade mantendo a presença visual do modelo */
@media(max-width:1280px){
  .pro-sidebar-v599.sidebar{width:245px!important}
  .content-area{margin-left:245px!important;width:calc(100% - 245px)!important}
  .pro-brand-v599 .brand-title{font-size:24px!important}
  .pro-side-nav-v599.side-nav a,.sidebar-footer a{font-size:14px!important;padding:0 20px!important}
  .v599-toolbar{grid-template-columns:1fr 1fr!important}
  .v599-toolbar .reseller-search{grid-column:1/-1}
}
@media(max-width:760px){
  .pro-sidebar-v599.sidebar{width:78px!important}
  .content-area{margin-left:78px!important;width:calc(100% - 78px)!important}
  .pro-side-nav-v599.side-nav a,.sidebar-footer a{min-height:56px!important}
  .pro-side-nav-v599 .side-icon svg,.sidebar-footer .side-icon svg{width:24px!important;height:24px!important}
  .pro-global-header{height:68px!important}
  .reseller-page-title{padding:16px!important}
}


/* ============================================================
   TV OUTDOOR V5.9.11 - AÇÕES SVG / PADRÃO DEFINITIVO
   Mantém o modelo visual aprovado e refina apenas os 3 botões de ação.
   ============================================================ */
.reseller-actions{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.action-link{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  min-height:46px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:7px!important;
  border:1px solid rgba(255,255,255,.22)!important;
  box-shadow:0 4px 10px rgba(14,47,78,.14)!important;
  transition:transform .15s ease,filter .15s ease,box-shadow .15s ease!important;
}
.action-link svg{
  width:23px!important;
  height:23px!important;
  fill:none!important;
  stroke:#fff!important;
  stroke-width:2.1!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.action-link.view{
  background:linear-gradient(180deg,#1599ff,#087fe6)!important;
}
.action-link.edit{
  background:linear-gradient(180deg,#1a8ff5,#0b73d7)!important;
}
.action-link.delete{
  background:linear-gradient(180deg,#ff4357,#f22139)!important;
}
.action-link:hover{
  transform:translateY(-2px)!important;
  filter:brightness(1.06)!important;
  box-shadow:0 7px 15px rgba(14,47,78,.20)!important;
}
.action-link:active{
  transform:translateY(0)!important;
}
.v599-reseller-table td:last-child{
  min-width:190px!important;
}
@media(max-width:1180px){
  .action-link{
    width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
  }
  .action-link svg{width:21px!important;height:21px!important}
}
@media(max-width:760px){
  .v599-reseller-table td:last-child{min-width:170px!important}
  .reseller-actions{gap:7px!important}
}


/* ============================================================
   TV OUTDOOR V5.9.12 — AÇÕES PROFISSIONAIS DEFINITIVAS
   Padrão visual aprovado: olho / lápis / lixeira.
   ============================================================ */
.v599-reseller-table .reseller-actions{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  white-space:nowrap!important;
}
.v599-reseller-table .action-link{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  padding:0!important;
  border-radius:8px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgba(255,255,255,.24)!important;
  box-shadow:0 4px 10px rgba(0,48,98,.15)!important;
}
.v599-reseller-table .action-link.view,
.v599-reseller-table .action-link.edit{
  background:linear-gradient(180deg,#128fff 0%,#0577e6 100%)!important;
}
.v599-reseller-table .action-link.delete{
  background:linear-gradient(180deg,#ff3b4f 0%,#f01832 100%)!important;
}
.v599-reseller-table .action-link svg{
  width:25px!important;
  height:25px!important;
  display:block!important;
  fill:none!important;
  stroke:#fff!important;
  stroke-width:2.35!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.v599-reseller-table .action-link.edit svg{
  width:27px!important;
  height:27px!important;
  stroke-width:2.8!important;
}
.v599-reseller-table .action-link.delete svg{
  width:26px!important;
  height:26px!important;
  stroke-width:2.45!important;
}
.v599-reseller-table .action-link:hover{
  transform:translateY(-2px)!important;
  filter:brightness(1.08)!important;
  box-shadow:0 7px 15px rgba(0,48,98,.22)!important;
}
.v599-reseller-table td:last-child{
  min-width:195px!important;
}
@media(max-width:1180px){
  .v599-reseller-table .action-link{
    width:44px!important;height:44px!important;
    min-width:44px!important;min-height:44px!important;
  }
  .v599-reseller-table .action-link svg{width:23px!important;height:23px!important}
  .v599-reseller-table .action-link.edit svg{width:25px!important;height:25px!important}
}


/* ============================================================
   TV INDOOR / TV OUTDOOR V5.10.0 — MÓDULO RTMP ADMIN
   ============================================================ */
.rtmp-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:22px;
  margin-bottom:22px;
}
.rtmp-grid input[type="text"]{
  width:100%;
  min-height:46px;
  margin:8px 0 5px;
}
.rtmp-status{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  border-radius:12px;
  margin:12px 0 20px;
  border:1px solid #d8e3ef;
  background:#f7fafc;
}
.rtmp-status-dot{
  width:17px;height:17px;border-radius:50%;
  background:#8c9bad;box-shadow:0 0 0 6px rgba(140,155,173,.13);
  flex:0 0 auto;
}
.rtmp-status.is-online .rtmp-status-dot{
  background:#20b56b;box-shadow:0 0 0 6px rgba(32,181,107,.13);
}
.rtmp-status div{display:flex;flex-direction:column;gap:2px}
.rtmp-status small{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#7b8b9e}
.rtmp-status strong{font-size:19px;color:#26374a}
.rtmp-status.is-online strong{color:#168955}
.rtmp-status em{font-size:12px;color:#718197;font-style:normal}
.rtmp-url{word-break:break-all;margin-top:8px}
.rtmp-actions{margin-top:18px}
.rtmp-log{
  min-height:180px;
  max-height:360px;
  overflow:auto;
  background:#0e1723;
  color:#dce8f5;
  border-radius:10px;
  padding:16px;
  font-size:12px;
  line-height:1.55;
  white-space:pre-wrap;
  word-break:break-word;
}
@media(max-width:980px){
  .rtmp-grid{grid-template-columns:1fr}
}


/* V5.12.0 - Menu SITE */
.site-side-group{margin:2px 0}
.site-side-group summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:10px;color:inherit;font-weight:700}
.site-side-group summary::-webkit-details-marker{display:none}
.site-side-group summary:hover,.site-side-group summary.active{background:rgba(255,255,255,.08)}
.site-side-group .site-caret{margin-left:auto;font-style:normal;font-size:18px;transition:transform .2s}
.site-side-group[open] .site-caret{transform:rotate(180deg)}
.site-side-submenu{padding:2px 0 5px 46px}
.site-side-submenu a{display:block;padding:9px 12px!important;margin:2px 0;border-radius:8px;font-size:14px}
.site-side-submenu a.active{font-weight:800}
.site-client-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:18px}
.site-client-toolbar .grow{flex:1;min-width:220px}
.site-client-table td,.site-client-table th{vertical-align:middle}
.site-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800}
.site-status-active{background:#e8f7ee;color:#14743c}
.site-status-pending{background:#fff7db;color:#8a6500}
.site-status-suspended{background:#ffe9e7;color:#a22b22}
.site-status-expired{background:#f0edf7;color:#654a85}
.site-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.site-form-grid .full{grid-column:1/-1}
@media(max-width:800px){.site-form-grid{grid-template-columns:1fr}.site-form-grid .full{grid-column:auto}}
