/* Fluxo Player Admin UI - local and independent */
:root{
  --fp-bg:#f4f7fb;--fp-surface:#ffffff;--fp-surface-2:#f8fafc;--fp-text:#0f172a;--fp-muted:#64748b;
  --fp-border:#e2e8f0;--fp-primary:#2563eb;--fp-primary-2:#1d4ed8;--fp-sidebar:#0b1220;--fp-sidebar-2:#111c31;
  --fp-shadow:0 12px 34px rgba(15,23,42,.08);--fp-radius:16px;--fp-header-h:76px;--fp-sidebar-w:260px;
}
[data-bs-theme="dark"]{
  --fp-bg:#07101f;--fp-surface:#0f1a2d;--fp-surface-2:#111f35;--fp-text:#e5edf8;--fp-muted:#94a3b8;
  --fp-border:#22314a;--fp-sidebar:#050b15;--fp-sidebar-2:#0b1527;--fp-shadow:0 12px 34px rgba(0,0,0,.28);
  color-scheme:dark;
}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;background:var(--fp-bg);color:var(--fp-text);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;line-height:1.5}
a{color:inherit;text-decoration:none}a:hover{color:var(--fp-primary)}
.app-root,.app-page{min-height:100vh}.app-page{display:flex!important;flex-direction:column!important}.app-wrapper{display:flex!important;flex:1;min-height:calc(100vh - var(--fp-header-h))}.app-main{min-width:0;flex:1;display:flex!important;flex-direction:column!important}.app-content{padding:28px 30px 18px;flex:1}.app-container{width:100%;max-width:100%}
.app-header{height:var(--fp-header-h);position:sticky;top:0;z-index:1040;background:color-mix(in srgb,var(--fp-surface) 92%,transparent);border-bottom:1px solid var(--fp-border);backdrop-filter:blur(12px);box-shadow:0 3px 14px rgba(15,23,42,.04)}
.app-header>.app-container{height:100%;padding-left:24px;padding-right:24px}.app-navbar{display:flex;align-items:center}.app-navbar-item{position:relative}.cursor-pointer{cursor:pointer}.symbol{position:relative;display:inline-flex;align-items:center;justify-content:center}.symbol img{width:100%;height:100%;object-fit:contain}.symbol-35px{width:35px;height:35px}.symbol-40px{width:40px;height:40px}.symbol-50px{width:50px;height:50px}
.app-sidebar{width:var(--fp-sidebar-w);flex:0 0 var(--fp-sidebar-w);background:linear-gradient(180deg,var(--fp-sidebar),var(--fp-sidebar-2));color:#cbd5e1;min-height:calc(100vh - var(--fp-header-h));position:sticky;top:var(--fp-header-h);height:calc(100vh - var(--fp-header-h));z-index:1030;display:flex;flex-direction:column;overflow:hidden;box-shadow:10px 0 30px rgba(15,23,42,.06)}
#kt_app_sidebar_header{border-bottom:1px solid rgba(148,163,184,.1)}#kt_app_sidebar_header img{max-width:170px;object-fit:contain}.hover-scroll-y{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#334155 transparent}.app-sidebar-navs-default{padding-top:20px}
.menu{display:flex;flex-direction:column;gap:4px}.menu-heading{display:block;color:#64748b;text-transform:uppercase;letter-spacing:.09em;font-size:11px;font-weight:800;padding:8px 12px}.menu-item{position:relative}.menu-link{display:flex;align-items:center;gap:10px;padding:11px 13px;border-radius:10px;color:#cbd5e1;cursor:pointer;transition:.18s ease}.menu-link:hover{background:rgba(59,130,246,.12);color:#fff}.menu-link.active{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:white;box-shadow:0 8px 24px rgba(37,99,235,.28)}.menu-title{font-weight:600;flex:1}.menu-arrow::after{content:'›';font-size:20px;display:block;transition:transform .2s}.menu-item.show>.menu-link .menu-arrow::after,.menu-item.here>.menu-link .menu-arrow::after{transform:rotate(90deg)}.menu-sub-accordion{display:none;padding-left:12px}.menu-item.show>.menu-sub-accordion,.menu-item.here>.menu-sub-accordion{display:flex;flex-direction:column;gap:2px}.menu-sub-accordion .menu-link{padding:9px 12px;font-size:13px}.bullet-dot{display:inline-block;width:6px;height:6px;background:#64748b;border-radius:50%}
.menu-sub-dropdown{display:none;position:absolute;right:0;top:calc(100% + 10px);z-index:1060;background:var(--fp-surface);color:var(--fp-text);border:1px solid var(--fp-border);box-shadow:var(--fp-shadow);border-radius:14px;min-width:210px;padding:8px!important}.menu-sub-dropdown.show{display:flex}.menu-sub-dropdown .menu-link{color:var(--fp-text);padding:10px}.menu-sub-dropdown .menu-link:hover{background:var(--fp-surface-2);color:var(--fp-primary)}
.app-footer{border-top:1px solid var(--fp-border);background:var(--fp-surface);padding:0 20px}.app-footer .app-container{min-height:54px}
.card{border:1px solid var(--fp-border)!important;border-radius:var(--fp-radius)!important;background:var(--fp-surface)!important;color:var(--fp-text)!important;box-shadow:var(--fp-shadow)!important;overflow:hidden}.card-header{background:transparent!important;border-bottom:1px solid var(--fp-border)!important}.card-body{padding:24px}.card-title{font-weight:700}.card-img-top{background:var(--fp-surface-2)}
.form-control,.form-select{background-color:var(--fp-surface)!important;color:var(--fp-text)!important;border:1px solid var(--fp-border)!important;border-radius:10px!important;min-height:42px}.form-control:focus,.form-select:focus{border-color:#60a5fa!important;box-shadow:0 0 0 .2rem rgba(37,99,235,.12)!important}.form-control::placeholder{color:var(--fp-muted);opacity:.75}.form-check-input{cursor:pointer}.input-group-text{background:var(--fp-surface-2);border-color:var(--fp-border);color:var(--fp-text)}
.btn{border-radius:10px;font-weight:650;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease}.btn:hover{transform:translateY(-1px)}.btn-primary{background:#2563eb;border-color:#2563eb}.btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8}.btn-light{background:var(--fp-surface-2);border-color:var(--fp-border);color:var(--fp-text)}.btn-light:hover{background:color-mix(in srgb,var(--fp-surface-2) 82%,#94a3b8)}.btn-info{color:#fff}.btn-icon{display:inline-flex;align-items:center;justify-content:center;padding:0}.w-35px{width:35px!important}.h-35px{height:35px!important}.h-30px{height:30px!important}.h-50px{height:50px!important}.h-8px{height:8px!important}.w-8px{width:8px!important}.w-45px{width:45px!important}.h-25px{height:25px!important}.mw-650px{max-width:650px!important}.w-150px{width:150px!important}.w-275px{width:275px!important}
.fs-7{font-size:.875rem!important}.fs-8{font-size:.75rem!important}.fw-semibold{font-weight:600!important}.text-gray-500,.text-muted{color:var(--fp-muted)!important}.text-gray-800,.text-gray-900{color:var(--fp-text)!important}.text-hover-primary:hover{color:var(--fp-primary)!important}.badge{border-radius:999px;padding:.38rem .62rem;font-weight:700}.badge-light-primary{background:#eff6ff;color:#2563eb}.badge-light-success{background:#ecfdf5;color:#16a34a}.badge-light-warning{background:#fffbeb;color:#d97706}.badge-light-danger{background:#fef2f2;color:#dc2626}
.table{color:var(--fp-text);margin-bottom:0}.table>:not(caption)>*>*{background:transparent!important;color:inherit;border-bottom-color:var(--fp-border);vertical-align:middle}.table thead th{font-size:.76rem;text-transform:uppercase;letter-spacing:.04em;color:var(--fp-muted);font-weight:800;white-space:nowrap}.table-responsive{border-radius:12px}.img-thumbnail{background:var(--fp-surface-2);border-color:var(--fp-border);border-radius:12px;object-fit:cover}
.modal-content{background:var(--fp-surface);color:var(--fp-text);border:1px solid var(--fp-border);border-radius:16px;box-shadow:0 25px 70px rgba(0,0,0,.28)}.modal-header,.modal-footer{border-color:var(--fp-border)}.btn-close{filter:none}[data-bs-theme="dark"] .btn-close{filter:invert(1) grayscale(100%) brightness(180%)}
.alert{border-radius:12px}.separator{height:1px;background:var(--fp-border)}.rounded-circle{border-radius:50%!important}.bg-success{background:#22c55e!important}
.scrolltop{position:fixed;right:24px;bottom:24px;width:42px;height:42px;background:#2563eb;color:#fff;border-radius:12px;display:none;align-items:center;justify-content:center;box-shadow:0 12px 28px rgba(37,99,235,.35);cursor:pointer;z-index:1020}.scrolltop.show{display:flex}.scrolltop svg{width:20px;height:20px}
.theme-dark-show{display:none!important}[data-bs-theme="dark"] .theme-light-show{display:none!important}[data-bs-theme="dark"] .theme-dark-show{display:flex!important}
/* DataTable local */
.fp-dt-wrapper{width:100%;min-width:0}.fp-dt-scroll{width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;overscroll-behavior-x:contain;padding-bottom:4px}.fp-dt-scroll table{width:max-content!important;min-width:100%;margin-bottom:0}.fp-dt-scroll table th,.fp-dt-scroll table td{white-space:nowrap}.fp-dt-scroll::-webkit-scrollbar{height:9px}.fp-dt-scroll::-webkit-scrollbar-track{background:var(--fp-surface-2);border-radius:999px}.fp-dt-scroll::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:999px}.fp-dt-scroll table th:last-child,.fp-dt-scroll table td:last-child{position:sticky;right:0;z-index:2;background:var(--fp-surface)!important;box-shadow:-10px 0 14px -14px rgba(15,23,42,.65)}.fp-dt-scroll table thead th:last-child{z-index:3}.fp-dt-scroll table td:last-child .btn{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:36px;margin:2px}.fp-dt-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 2px 2px;color:var(--fp-muted);font-size:13px}.fp-dt-pagination{display:flex;gap:6px}.fp-dt-pagination button{border:1px solid var(--fp-border);background:var(--fp-surface);color:var(--fp-text);border-radius:8px;padding:6px 10px}.fp-dt-pagination button:disabled{opacity:.4}.fp-dt-pagination button.active{background:#2563eb;color:#fff;border-color:#2563eb}.fp-dt-empty{text-align:center;padding:28px!important;color:var(--fp-muted)!important}
/* Utility compatibility used by legacy pages */
.flex-root{flex:1}.flex-column-fluid{flex:1}.flex-row-fluid{flex:1}.flex-stack{display:flex;align-items:center;justify-content:space-between}.flex-center{display:flex;align-items:center;justify-content:center}.flex-md-stack{justify-content:space-between}.app-default{min-height:100vh}.position-relative{position:relative}.translate-middle{transform:translate(-50%,-50%)}.translate-middle-y{transform:translateY(-50%)}.top-50{top:50%}.start-100{left:100%}.end-0{right:0}.bottom-0{bottom:0}.ms-n1{margin-left:-.25rem}.lh-0{line-height:0}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}
/* Local login */
.fp-login-page{min-height:100vh;background:radial-gradient(circle at top left,#1d4ed8 0,transparent 35%),radial-gradient(circle at bottom right,#0ea5e9 0,transparent 28%),linear-gradient(135deg,#08101e,#111c31);display:flex;align-items:center;justify-content:center;padding:24px;color:#fff}.fp-login-card{width:min(420px,100%);background:rgba(10,20,38,.86);border:1px solid rgba(148,163,184,.18);backdrop-filter:blur(14px);border-radius:24px;padding:38px;box-shadow:0 30px 80px rgba(0,0,0,.38)}.fp-login-card img{width:128px;max-height:80px;object-fit:contain;margin-bottom:22px}.fp-login-card h1{font-size:28px;font-weight:800;margin-bottom:28px}.fp-login-card .form-control{background:rgba(15,31,53,.92)!important;color:white!important;border-color:rgba(148,163,184,.22)!important}.fp-login-card .btn-login{min-height:50px;border-radius:12px;background:linear-gradient(135deg,#2563eb,#1e40af);color:#fff;width:100%}.fp-login-card .indicator-progress{display:none}.fp-login-card.loading .indicator-label{display:none}.fp-login-card.loading .indicator-progress{display:inline-flex;align-items:center}.fp-login-footer{display:block;text-align:center;margin-top:24px;color:#94a3b8}.fp-login-error{display:none;background:#7f1d1d;color:#fecaca;padding:10px 12px;border-radius:10px;margin-bottom:14px}.fp-login-error.show{display:block}.fp-login-error.success{background:#14532d;color:#bbf7d0}
/* Tailwind-like compatibility for addplaylist.php, local only */
.bg-gray-100{background:#f3f4f6}.dark\:bg-gray-900{background:#111827}.min-h-screen{min-height:100vh}.mx-auto{margin-left:auto;margin-right:auto}.px-4{padding-left:1rem;padding-right:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.max-w-3xl{max-width:48rem}.text-3xl{font-size:1.875rem}.font-bold{font-weight:700}.mb-8{margin-bottom:2rem}.text-gray-800{color:#1f2937}.text-center{text-align:center}.flex{display:flex}.flex-col{flex-direction:column}.gap-2{gap:.5rem}.flex-1{flex:1 1 0%}.py-2{padding-top:.5rem;padding-bottom:.5rem}.rounded-lg{border-radius:.5rem}.border{border:1px solid #d1d5db}.border-gray-300{border-color:#d1d5db}.bg-white{background:#fff}.text-gray-900{color:#111827}.bg-blue-600{background:#2563eb}.hover\:bg-blue-700:hover{background:#1d4ed8}.text-white{color:#fff}.font-medium{font-weight:500}.bg-gray-500{background:#6b7280}.hover\:bg-gray-600:hover{background:#4b5563}.items-center{align-items:center}.justify-center{justify-content:center}.bg-gray-800{background:#1f2937}.shadow-lg{box-shadow:0 10px 15px -3px rgb(0 0 0 / .1)}.overflow-hidden{overflow:hidden}.p-4{padding:1rem}.justify-between{justify-content:space-between}.border-b{border-bottom:1px solid #e5e7eb}.text-lg{font-size:1.125rem}.font-semibold{font-weight:600}.bg-green-600{background:#16a34a}.hover\:bg-green-700:hover{background:#15803d}.overflow-x-auto{overflow-x:auto}.w-full{width:100%}.bg-gray-50{background:#f9fafb}.py-3{padding-top:.75rem;padding-bottom:.75rem}.text-left{text-align:left}.text-xs{font-size:.75rem}.text-gray-500{color:#6b7280}.uppercase{text-transform:uppercase}.tracking-wider{letter-spacing:.05em}.text-right{text-align:right}.divide-y> :not([hidden])~ :not([hidden]){border-top:1px solid #e5e7eb}.text-sm{font-size:.875rem}.space-x-2>*+*{margin-left:.5rem}.inline-flex{display:inline-flex}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.bg-yellow-600{background:#ca8a04}.hover\:bg-yellow-700:hover{background:#a16207}.rounded-md{border-radius:.375rem}.bg-red-600{background:#dc2626}.hover\:bg-red-700:hover{background:#b91c1c}.bg-blue-100{background:#dbeafe}.border-l-4{border-left-width:4px}.border-blue-500{border-color:#3b82f6}.text-blue-700{color:#1d4ed8}.fixed{position:fixed}.inset-0{inset:0}.bg-black{background:#000}.bg-opacity-50{background:rgba(0,0,0,.5)}.hidden{display:none!important}.p-6{padding:1.5rem}.mb-6{margin-bottom:1.5rem}.text-xl{font-size:1.25rem}.text-gray-400{color:#9ca3af}.hover\:text-white:hover{color:#fff}.space-y-4>*+*{margin-top:1rem}.block{display:block}.text-gray-300{color:#d1d5db}.mb-1{margin-bottom:.25rem}.border-gray-700{border-color:#374151}.justify-end{justify-content:flex-end}.space-x-3>*+*{margin-left:.75rem}.mt-6{margin-top:1.5rem}.bg-gray-600{background:#4b5563}.hover\:bg-gray-700:hover{background:#374151}.max-w-md{max-width:28rem}.max-h-\[90vh\]{max-height:90vh}.overflow-y-auto{overflow-y:auto}
@media(min-width:640px){.sm\:flex-row{flex-direction:row}.sm\:flex-none{flex:none}.sm\:inline{display:inline}}
@media(max-width:991.98px){
  .app-header{height:64px}.app-wrapper{min-height:calc(100vh - 64px)}.app-sidebar{position:fixed;left:0;top:0;height:100vh;min-height:100vh;transform:translateX(-105%);transition:transform .22s ease;z-index:1100}.sidebar-open .app-sidebar{transform:translateX(0)}.sidebar-open::after{content:'';position:fixed;inset:0;background:rgba(2,6,23,.58);z-index:1090}.app-content{padding:20px 14px}.app-header>.app-container{padding:0 14px}.d-lg-none{display:flex!important}.d-none.d-lg-flex{display:none!important}.menu-sub-dropdown{right:0}.fp-login-card{padding:30px 24px}
}
@media(min-width:992px){.d-lg-none{display:none!important}.d-none.d-lg-flex{display:flex!important}}
@media(max-width:575.98px){.card-body{padding:14px 10px}.app-content{padding:12px 8px}.card-header{padding-left:12px!important;padding-right:12px!important;gap:10px}.card-header .card-title,.card-header .card-toolbar{width:100%}.card-header .w-250px{width:100%!important}.fp-dt-footer{align-items:flex-start;padding-left:4px;padding-right:4px}.fp-dt-scroll{margin-left:-2px;margin-right:-2px;width:calc(100% + 4px)}.fp-dt-scroll table{font-size:.84rem}.fp-dt-scroll table th,.fp-dt-scroll table td{padding:.65rem .6rem!important}.fp-dt-scroll table th:last-child,.fp-dt-scroll table td:last-child{min-width:96px}.modal-dialog{margin:.5rem}.modal-content{max-height:calc(100vh - 1rem);overflow-y:auto}.btn{white-space:normal}}


/* Fluxo Player - Mobile tables v3: horizontal touch scrolling */
.fp-dt-scroll,
.fp-mobile-scroll,
.table-responsive{
  position:relative;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-x:auto!important;
  scrollbar-gutter:stable;
}
.fp-dt-scroll.fp-dragging,
.fp-mobile-scroll.fp-dragging{cursor:grabbing;user-select:none;-webkit-user-select:none}
.fp-scroll-tools{display:none;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;padding:6px 8px;border:1px solid var(--fp-border);background:var(--fp-surface-2);border-radius:10px;color:var(--fp-muted);font-size:12px;font-weight:700}
.fp-scroll-tools button{flex:0 0 auto;width:38px;height:34px;border:1px solid var(--fp-border);border-radius:8px;background:var(--fp-surface);color:var(--fp-text);font-size:20px;line-height:1}
.fp-scroll-tools .fp-scroll-label{flex:1;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:767.98px){
  .card-body{min-width:0!important;max-width:100%!important}
  .fp-dt-wrapper{width:100%!important;max-width:100%!important;min-width:0!important}
  .fp-dt-scroll,
  .fp-mobile-scroll,
  .table-responsive{
    width:100%!important;
    max-width:100%!important;
    overflow-x:scroll!important;
    overflow-y:hidden!important;
    touch-action:pan-y pinch-zoom!important;
    -ms-touch-action:pan-y!important;
    padding-bottom:10px!important;
  }
  .fp-dt-scroll table,
  .fp-mobile-scroll table,
  .table-responsive table{
    width:max-content!important;
    max-width:none!important;
    table-layout:auto!important;
  }
  .fp-dt-scroll table th,
  .fp-dt-scroll table td,
  .fp-mobile-scroll table th,
  .fp-mobile-scroll table td{
    white-space:nowrap!important;
  }
  /* No sticky action column on phones: users can swipe naturally to it. */
  .fp-dt-scroll table th:last-child,
  .fp-dt-scroll table td:last-child{
    position:static!important;
    right:auto!important;
    z-index:auto!important;
    box-shadow:none!important;
    min-width:150px!important;
    width:auto!important;
  }
  .fp-dt-scroll table td:last-child .btn{display:inline-flex!important;min-width:40px!important;min-height:38px!important;margin:2px!important}
  .fp-scroll-tools{display:flex}
}


/* Fluxo Player - visual clássico do painel (v4) */
:root{
  --fp-user-purple:#7239ea;
  --fp-user-purple-hover:#5014d0;
  --fp-user-purple-soft:#f1ebff;
}

/* Tipografia mais compacta, próxima do painel original. */
body{font-size:13px;}
.menu-link{font-size:13px;padding-top:9px;padding-bottom:9px;}
.menu-title{font-size:13px;font-weight:600;}
.menu-heading{font-size:10px;}
.card-header{min-height:64px;}
.card-title{font-size:14px;}
.form-control,.form-select{font-size:13px;}
.btn{font-size:12px;}
.btn-sm{font-size:11.5px;padding:.38rem .58rem;border-radius:7px;}
.table{font-size:13px;}
.table thead th{font-size:10.5px;letter-spacing:.035em;}
.table tbody td{font-size:13px;}
.fp-dt-footer{font-size:12px;}

/* Contador de usuários/playlists no mesmo estilo compacto do painel antigo. */
.fp-user-count{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-width:30px;
  width:30px;
  height:22px;
  margin-left:10px;
  padding:0 5px!important;
  border-radius:6px!important;
  background:#f1ebff!important;
  color:#7239ea!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1!important;
  text-align:center;
}

/* Botão de usuários roxo, sem alterar lápis amarelo e lixeira vermelha. */
.btn-user-purple{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff!important;
  background:#7239ea!important;
  border-color:#7239ea!important;
  box-shadow:none!important;
}
.btn-user-purple:hover,.btn-user-purple:focus{
  color:#fff!important;
  background:#5014d0!important;
  border-color:#5014d0!important;
}
.btn-user-purple .fa-users{font-size:14px;filter:none;}

/* Mantém os botões de ação pequenos e alinhados como no painel anterior. */
.table td .btn-sm{
  min-width:32px;
  min-height:30px;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
}
.table td .btn-sm i{font-size:13px;}

@media(max-width:767.98px){
  body{font-size:12.5px;}
  .app-content{font-size:12.5px;}
  .card-header{min-height:auto;}
  .card-header .btn{font-size:12px;}
  .fp-dt-scroll table{font-size:12px!important;}
  .fp-dt-scroll table thead th{font-size:10px!important;}
  .fp-dt-scroll table tbody td{font-size:12px!important;}
  .fp-dt-scroll table th,.fp-dt-scroll table td{padding:.55rem .52rem!important;}
  .table td .btn-sm{min-width:32px!important;min-height:30px!important;margin:1px!important;padding:.32rem .48rem!important;}
  .fp-user-count{width:28px;min-width:28px;height:21px;font-size:10.5px!important;margin-left:6px;}
}

/* Ajustes finos do visual clássico */
.fp-user-count{
  background:#eef6ff!important;
  color:#3e97ff!important;
}
.btn-user-purple .fa-users::before{
  content:""!important;
  width:15px;
  height:15px;
  display:block;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3ZM8 11c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3Zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5C15 14.17 10.33 13 8 13Zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3ZM8 11c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3Zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5C15 14.17 10.33 13 8 13Zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media(max-width:767.98px){
  .fp-dt-scroll table td:last-child .btn.btn-sm{
    min-width:32px!important;
    min-height:30px!important;
    padding:.32rem .48rem!important;
    margin:1px!important;
  }
}

/* V5 — contador de usuários no padrão visual clássico do painel antigo. */
.badge-light-primary,
.fp-user-count{
  background-color:#E1F0FF!important;
  color:#3699FF!important;
  border:0!important;
  box-shadow:none!important;
}
.fp-user-count{
  display:inline-block!important;
  width:30px!important;
  min-width:30px!important;
  height:auto!important;
  margin-left:10px!important;
  padding:.35em .45em!important;
  border-radius:.42rem!important;
  font-size:11px!important;
  font-weight:600!important;
  line-height:1!important;
  text-align:center!important;
  vertical-align:middle!important;
}
@media(max-width:767.98px){
  .fp-user-count{
    width:30px!important;
    min-width:30px!important;
    margin-left:6px!important;
    font-size:10.5px!important;
  }
}

/* V6 — contador DNS: força o visual clássico mesmo se outras regras do tema sobrescreverem badges. */
td .fp-user-count{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:32px!important;
  width:auto!important;
  height:24px!important;
  padding:0 8px!important;
  margin:0!important;
  border-radius:6px!important;
  background-color:#E1F0FF!important;
  color:#3699FF!important;
  border:1px solid #B9DCFF!important;
  box-shadow:none!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1!important;
  opacity:1!important;
}


/* V7 — contador de playlists/usuários por DNS igual ao badge-light-primary do painel antigo (Metronic). */
#kt_customers_table .badge.badge-light-primary,
#kt_customers_table .fp-dns-user-count,
.badge.badge-light-primary.fp-dns-user-count{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:30px!important;
  width:auto!important;
  height:24px!important;
  padding:0 8px!important;
  margin-left:10px!important;
  border:0!important;
  border-radius:.475rem!important;
  background-color:#f1faff!important;
  color:#009ef7!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:24px!important;
  text-align:center!important;
  opacity:1!important;
  visibility:visible!important;
  box-shadow:none!important;
}
[data-bs-theme="dark"] #kt_customers_table .badge.badge-light-primary,
[data-bs-theme="dark"] #kt_customers_table .fp-dns-user-count{
  background-color:#10283b!important;
  color:#50b8ff!important;
}

/* V7b: indicador DNS sempre visível, inclusive se outro tema alterar badges. */
#kt_customers_table span.fp-user-count{background:#DBEAFE!important;color:#1D4ED8!important;border:1px solid #93C5FD!important;min-width:32px!important;height:24px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-weight:800!important;opacity:1!important;}


/* V8 — contador de usuários por DNS mais escuro e legível no tema escuro. */
#kt_customers_table span.fp-user-count,
#kt_customers_table .fp-user-count{
  background-color:#9FC5F0!important;
  color:#0B4E9E!important;
  border:1px solid #5C93C9!important;
  box-shadow:0 0 0 1px rgba(92,147,201,.15)!important;
  opacity:1!important;
}

/* V9 — refinamento visual baseado no painel antigo (mobile + temas). */
/* Contador de usuários/playlists: remove o azul médio da V8 e reproduz o badge discreto do painel antigo. */
#kt_customers_table span.fp-user-count,
#kt_customers_table .fp-user-count{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:25px!important;
  width:auto!important;
  height:22px!important;
  padding:0 7px!important;
  margin:0!important;
  border:0!important;
  border-radius:6px!important;
  background:#E7F3FF!important;
  color:#009EF7!important;
  box-shadow:none!important;
  font-size:10.5px!important;
  font-weight:700!important;
  line-height:22px!important;
  opacity:1!important;
}
[data-bs-theme="dark"] #kt_customers_table span.fp-user-count,
[data-bs-theme="dark"] #kt_customers_table .fp-user-count{
  background:#172331!important;
  color:#009EF7!important;
  border:0!important;
  box-shadow:none!important;
}

/* Sidebar: aparência e proporções mais próximas do painel antigo. */
.app-sidebar{
  background:#0D0F12!important;
}
.app-sidebar-navs-default{
  padding-top:15px!important;
}
.app-sidebar .menu{
  gap:2px!important;
}
.app-sidebar .menu-heading{
  font-size:10.5px!important;
  padding:7px 12px!important;
  color:#6B7280!important;
}
.app-sidebar .menu-link{
  min-height:42px!important;
  padding:9px 13px!important;
  border-radius:8px!important;
  font-size:14px!important;
  line-height:1.25!important;
}
.app-sidebar .menu-link.active{
  background:#1A1C20!important;
  color:#FFFFFF!important;
  box-shadow:none!important;
}
.app-sidebar .menu-link:hover{
  background:#17191D!important;
  color:#FFFFFF!important;
}
.app-sidebar .menu-sub-accordion{
  padding-left:10px!important;
}
.app-sidebar .menu-sub-accordion .menu-link{
  min-height:36px!important;
  padding:7px 12px!important;
  font-size:13px!important;
}
#kt_app_sidebar > .flex-grow-1{
  min-height:0!important;
  overflow:hidden!important;
}
#kt_app_sidebar_menu_wrapper{
  height:100%!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  padding-bottom:8px!important;
}

/* Rodapé do menu: menor, acima da borda e sem escapar da tela. */
#kt_app_sidebar_footer.fp-sidebar-theme-footer{
  flex:0 0 auto!important;
  width:100%!important;
  min-height:58px!important;
  margin-top:auto!important;
  padding:10px 18px 14px!important;
  gap:12px!important;
  border-top:1px solid rgba(148,163,184,.10)!important;
  background:#0D0F12!important;
}
#kt_app_sidebar_footer .fp-sidebar-theme-label{
  display:flex;
  align-items:center;
  gap:6px!important;
  margin:0!important;
  padding:0!important;
  color:#F3F4F6!important;
  font-size:14px!important;
  font-weight:500!important;
  line-height:1.15!important;
  white-space:nowrap!important;
}
#kt_app_sidebar_footer .fp-sidebar-theme-label i{
  font-size:16px!important;
  color:#9CA3AF!important;
}
#kt_app_sidebar_footer .fp-sidebar-theme-switch{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
}
#kt_app_sidebar_footer .form-check{
  margin:0!important;
  padding-left:0!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
}
#kt_app_sidebar_footer .form-check-input{
  width:42px!important;
  height:22px!important;
  min-width:42px!important;
  margin:0!important;
  float:none!important;
  cursor:pointer!important;
  border-width:1px!important;
  box-shadow:none!important;
}

@media(max-width:991.98px){
  .app-sidebar{
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    padding-bottom:0!important;
  }
  #kt_app_sidebar_footer.fp-sidebar-theme-footer{
    padding:9px 18px calc(18px + env(safe-area-inset-bottom, 0px))!important;
    min-height:62px!important;
  }
  .app-sidebar-navs-default{
    padding-top:13px!important;
    margin-bottom:4px!important;
  }
  .app-sidebar .menu-link{
    min-height:40px!important;
    padding-top:8px!important;
    padding-bottom:8px!important;
  }
}

@media(max-width:575.98px){
  /* Mantém o card respirando como no painel antigo, sem sacrificar a rolagem horizontal. */
  .card{border-radius:14px!important;}
  .card-header{padding-top:14px!important;padding-bottom:10px!important;}
  .card-body{padding-top:8px!important;}
  .fp-scroll-tools{margin-top:0!important;margin-bottom:8px!important;}
}
