:root{
  color-scheme:dark;

  --bg:#090611;
  --sidebar:#0e0918;
  --surface:#151020;
  --surface2:#1a1328;
  --surface3:#211731;

  --line:#2b213b;
  --line-soft:rgba(255,255,255,.055);

  --text:#f5f1fa;
  --muted:#91879c;

  --purple:#8b5cf6;
  --purple2:#a855f7;

  --green:#35d07f;
  --red:#f25368;
  --orange:#ff9a3d;
  --blue:#4da3ff;
  --cyan:#43d5d5;
  --yellow:#f5c451;
  --gray:#8d8797;

  --shadow:0 18px 50px rgba(0,0,0,.17);
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,input,select{font:inherit}

button{color:inherit}

.app{
  min-height:100vh;
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
}

.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:220px;
  display:flex;
  flex-direction:column;
  padding:20px 12px;
  background:
    radial-gradient(circle at 0 0,rgba(139,92,246,.10),transparent 280px),
    var(--sidebar);
  border-right:1px solid var(--line);
  z-index:30;
}

.brand{
  display:flex;
  align-items:center;
  gap:11px;
  padding:4px 10px 25px;
}

.brand-mark{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  color:white;
  font-style:italic;
  font-size:20px;
  font-weight:1000;
  background:linear-gradient(135deg,#7c3aed,#b946ef);
  box-shadow:0 8px 25px rgba(139,92,246,.25);
}

.brand strong{
  display:block;
  font-size:17px;
}

.brand strong span{
  color:#b56cff;
}

.brand small{
  display:block;
  margin-top:2px;
  color:#8c75a4;
  font-size:8px;
  letter-spacing:.19em;
}

nav{
  display:grid;
  gap:4px;
}

.nav{
  width:100%;
  height:45px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#958a9f;
  cursor:pointer;
  text-align:left;
  transition:.16s ease;
}

.nav i{
  width:23px;
  color:#786a86;
  font-style:normal;
  font-size:15px;
  text-align:center;
}

.nav:hover{
  color:#ddd4e6;
  background:rgba(255,255,255,.035);
}

.nav.active{
  color:#eadcff;
  background:linear-gradient(90deg,rgba(139,92,246,.25),rgba(139,92,246,.07));
  box-shadow:inset 3px 0 #9b6cff;
}

.nav.active i{color:#bd8cff}

.nav-separator{
  height:1px;
  margin:12px 10px;
  background:var(--line);
}

.sidebar-bottom{
  margin-top:auto;
}

.environment{
  display:flex;
  align-items:center;
  gap:9px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(255,255,255,.02);
}

.environment>i{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 11px var(--green);
}

.environment b,
.environment span{
  display:block;
}

.environment b{font-size:10px}
.environment span{
  margin-top:2px;
  color:var(--muted);
  font-size:9px;
}

.main{
  min-width:0;
  grid-column:2;
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  min-height:75px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:13px 24px;
  background:rgba(14,9,24,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.topbar h1{
  margin:0;
  font-size:19px;
}

.topbar p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:10px;
}

.top-actions{
  display:flex;
  align-items:center;
  gap:20px;
}

.live-status{
  display:flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--yellow);
  font-size:9px;
  font-weight:800;
}

.live-status i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
}

.live-status.connected{
  color:var(--green);
  border-color:rgba(53,208,127,.28);
  background:rgba(53,208,127,.07);
}

.live-status.connected i{
  box-shadow:0 0 10px currentColor;
}

.updated span,
.updated b{
  display:block;
}

.updated span{
  color:var(--muted);
  font-size:8px;
}

.updated b{
  margin-top:2px;
  font-size:10px;
}

.supervisor-user{
  display:flex;
  align-items:center;
  gap:8px;
  padding-left:18px;
  border-left:1px solid var(--line);
}

.avatar{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(135deg,#7c3aed,#b946ef);
  font-size:10px;
  font-weight:900;
}

.supervisor-user b,
.supervisor-user span{
  display:block;
}

.supervisor-user b{font-size:10px}
.supervisor-user span{
  margin-top:2px;
  color:var(--muted);
  font-size:8px;
}

.content{
  min-height:calc(100vh - 75px);
  padding:20px;
  background:
    radial-gradient(circle at 96% 0,rgba(139,92,246,.07),transparent 430px),
    var(--bg);
}

.view{display:none}
.view.active{display:grid;gap:16px}

.card{
  border:1px solid var(--line);
  border-radius:14px;
  background:
    linear-gradient(145deg,rgba(25,17,40,.98),rgba(17,12,29,.98));
  box-shadow:var(--shadow);
}

.filters{
  display:grid;
  grid-template-columns:auto repeat(2,minmax(125px,.65fr)) minmax(150px,.7fr) 90px auto;
  align-items:end;
  gap:10px;
  padding:13px;
}

.period-shortcuts{
  display:flex;
  gap:4px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#0d0916;
}

.period-shortcuts button{
  height:32px;
  padding:0 9px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  font-size:9px;
  cursor:pointer;
}

.period-shortcuts button.active{
  color:#e6d8ff;
  background:rgba(139,92,246,.20);
}

.filter-field{
  display:grid;
  gap:5px;
}

.filter-field label{
  color:var(--muted);
  font-size:8px;
  font-weight:800;
}

.filter-field input,
.filter-field select{
  height:38px;
  min-width:0;
  padding:0 9px;
  border:1px solid var(--line);
  border-radius:8px;
  outline:0;
  background:#0f0a19;
  color:var(--text);
  font-size:10px;
}

.filter-field input:focus,
.filter-field select:focus{
  border-color:var(--purple);
  box-shadow:0 0 0 3px rgba(139,92,246,.10);
}

.primary{
  height:38px;
  padding:0 15px;
  border:0;
  border-radius:8px;
  background:linear-gradient(90deg,#7c3aed,#a855f7);
  color:white;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}

.kpi-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:11px;
}

.kpi{
  min-height:118px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px;
}

.kpi-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  font-size:16px;
}

.kpi-icon.purple{color:#c490ff;background:rgba(139,92,246,.12)}
.kpi-icon.green{color:var(--green);background:rgba(53,208,127,.10)}
.kpi-icon.red{color:var(--red);background:rgba(242,83,104,.10)}
.kpi-icon.blue{color:var(--blue);background:rgba(77,163,255,.10)}
.kpi-icon.orange{color:var(--orange);background:rgba(255,154,61,.10)}
.kpi-icon.cyan{color:var(--cyan);background:rgba(67,213,213,.10)}

.kpi span{
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

.kpi strong{
  display:block;
  margin:5px 0 4px;
  font-size:24px;
  line-height:1;
}

.kpi small{
  color:#7f738a;
  font-size:8px;
}

.dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(260px,.62fr);
  gap:14px;
}

.chart-card,
.metrics-card,
.realtime-grid>.card,
.calls-card{
  padding:17px;
}

.card-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
}

.card-title>div>span{
  color:#9d73da;
  font-size:8px;
  font-weight:900;
  letter-spacing:.14em;
}

.card-title h2{
  margin:3px 0 0;
  font-size:13px;
}

.legend{
  display:flex;
  gap:13px;
  color:var(--muted);
  font-size:8px;
}

.legend span{
  display:flex;
  align-items:center;
  gap:5px;
}

.legend i{
  width:7px;
  height:7px;
  border-radius:2px;
}

.legend-green{background:var(--green)}
.legend-red{background:var(--red)}

.chart{
  min-height:255px;
  display:flex;
  align-items:flex-end;
  gap:5px;
  padding-top:16px;
  overflow-x:auto;
  border-top:1px solid var(--line-soft);
}

.chart-group{
  min-width:34px;
  height:225px;
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:center;
}

.chart-bars{
  height:194px;
  display:flex;
  align-items:flex-end;
  gap:3px;
}

.chart-bar{
  width:9px;
  min-height:0;
  border-radius:5px 5px 2px 2px;
  transition:height .25s ease;
}

.chart-bar.answered{
  background:linear-gradient(#63e59c,#18864f);
}

.chart-bar.abandoned{
  background:linear-gradient(#ff8294,#a92942);
}

.chart-group small{
  display:block;
  margin-top:7px;
  color:#756a7e;
  font-size:7px;
  white-space:nowrap;
}

.metric-list{
  display:grid;
}

.metric-list>div{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--line-soft);
}

.metric-list>div:first-child{border-top:0}

.metric-list span{
  color:var(--muted);
  font-size:9px;
}

.metric-list b{
  font-size:10px;
}

.realtime-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.pulse-label{
  display:flex;
  align-items:center;
  gap:5px;
  color:var(--green);
  font-size:8px;
  font-weight:900;
}

.pulse-label i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 9px var(--green);
}

.badge{
  padding:5px 8px;
  border-radius:999px;
  color:#b9a8c9;
  background:rgba(255,255,255,.04);
  font-size:8px;
}

.queue-list,
.agent-list{
  display:grid;
  gap:7px;
}

.queue-row{
  display:grid;
  grid-template-columns:minmax(100px,1.3fr) repeat(3,.7fr);
  gap:8px;
  align-items:center;
  min-height:58px;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#110c1c;
}

.queue-row div{
  display:grid;
  gap:3px;
}

.queue-row span{
  color:var(--muted);
  font-size:7px;
  text-transform:uppercase;
}

.queue-row b{
  font-size:10px;
}

.agent-row{
  min-height:56px;
  display:grid;
  grid-template-columns:minmax(120px,1fr) auto auto;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#110c1c;
}

.agent-ident{
  display:flex;
  align-items:center;
  gap:9px;
}

.agent-ident .avatar{
  width:31px;
  height:31px;
  font-size:8px;
}

.agent-ident b,
.agent-ident span{
  display:block;
}

.agent-ident b{font-size:10px}

.agent-ident span{
  margin-top:2px;
  color:var(--muted);
  font-size:8px;
}

.status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:8px;
  font-weight:900;
}

.status::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
}

.status.available{color:var(--green)}
.status.offline{color:var(--gray)}
.status.incall{color:#c084fc}
.status.pause{color:var(--yellow)}
.status.lunch{color:var(--orange)}
.status.training{color:var(--blue)}
.status.error{color:var(--red)}

.agent-extra{
  color:var(--muted);
  font-size:8px;
  text-align:right;
}

.table-scroll{
  overflow:auto;
}

table{
  width:100%;
  min-width:960px;
  border-collapse:collapse;
}

th{
  height:34px;
  padding:0 9px;
  color:#786d83;
  border-bottom:1px solid var(--line);
  font-size:7px;
  text-align:left;
  text-transform:uppercase;
  letter-spacing:.05em;
}

td{
  height:43px;
  padding:0 9px;
  border-bottom:1px solid var(--line-soft);
  font-size:9px;
}

tbody tr:hover{
  background:rgba(139,92,246,.035);
}

.disposition{
  display:inline-flex;
  padding:4px 7px;
  border-radius:999px;
  font-size:7px;
  font-weight:900;
}

.disposition.answered{
  color:var(--green);
  background:rgba(53,208,127,.09);
}

.disposition.abandoned{
  color:var(--red);
  background:rgba(242,83,104,.09);
}

.recording{
  color:#bd82ff;
  font-size:8px;
  font-weight:800;
}

.muted{
  color:var(--muted);
  font-size:8px;
}

.empty,
.empty-cell{
  color:var(--muted);
  font-size:9px;
  text-align:center;
}

.empty{
  min-height:85px;
  display:grid;
  place-items:center;
}

.api-error{
  margin-bottom:14px;
  padding:11px 13px;
  border:1px solid rgba(242,83,104,.3);
  border-radius:9px;
  background:rgba(242,83,104,.08);
  color:#ff8fa0;
  font-size:9px;
}

.hidden{display:none!important}

.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:2px;
}

.section-heading h2{
  margin:0;
  font-size:18px;
}

.section-heading p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:9px;
}

.kpi-grid.compact{
  grid-template-columns:repeat(5,1fr);
}

.mini-kpi{
  padding:16px;
}

.mini-kpi span{
  color:var(--muted);
  font-size:8px;
}

.mini-kpi strong{
  display:block;
  margin-top:6px;
  font-size:21px;
}

.queue-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.queue-card{
  padding:18px;
}

.queue-card h3{
  margin:0 0 15px;
  font-size:15px;
}

.queue-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}

.queue-stats>div{
  padding:10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#100a1a;
}

.queue-stats span,
.queue-stats b{
  display:block;
}

.queue-stats span{
  color:var(--muted);
  font-size:7px;
}

.queue-stats b{
  margin-top:5px;
  font-size:14px;
}

.recordings-list{
  display:grid;
  gap:9px;
}

.record-item{
  display:grid;
  grid-template-columns:1fr auto auto;
  align-items:center;
  gap:15px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
}

.record-item b,
.record-item span{
  display:block;
}

.record-item b{
  font-size:10px;
}

.record-item span{
  margin-top:3px;
  color:var(--muted);
  font-size:8px;
}

.record-pill{
  color:#c084fc!important;
  font-weight:800;
}

.player-pending{
  padding:7px 9px;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--muted);
  font-size:8px;
}

.placeholder-module{
  min-height:420px;
  display:grid;
  place-content:center;
  text-align:center;
  padding:40px;
}

.placeholder-module>div{
  color:#a976ea;
  font-size:35px;
}

.placeholder-module h2{
  margin:12px 0 5px;
}

.placeholder-module p{
  max-width:470px;
  margin:0;
  color:var(--muted);
  font-size:10px;
}


@media(max-width:1450px){
  .kpi-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .filters{
    grid-template-columns:repeat(3,1fr);
  }

  .period-shortcuts{
    grid-column:1/-1;
    width:max-content;
  }
}

@media(max-width:1050px){
  .app{
    grid-template-columns:72px minmax(0,1fr);
  }

  .sidebar{width:72px}

  .brand>div:not(.brand-mark),
  .nav span,
  .environment div{
    display:none;
  }

  .nav{
    justify-content:center;
  }

  .main{grid-column:2}

  .dashboard-grid,
  .realtime-grid{
    grid-template-columns:1fr;
  }

  .queue-cards{
    grid-template-columns:1fr;
  }
}

@media(max-width:720px){
  .top-actions .updated,
  .supervisor-user>div:not(.avatar){
    display:none;
  }

  .content{padding:12px}

  .kpi-grid,
  .kpi-grid.compact{
    grid-template-columns:1fr 1fr;
  }

  .filters{
    grid-template-columns:1fr 1fr;
  }
}


@media(prefers-color-scheme:light){

  :root{
    color-scheme:light;

    --bg:#f5f2f7;
    --sidebar:#ffffff;
    --surface:#ffffff;
    --surface2:#faf8fc;
    --surface3:#f4eff8;

    --line:#e5ddea;
    --line-soft:rgba(50,30,60,.07);

    --text:#211829;
    --muted:#756a7d;

    --shadow:0 14px 35px rgba(50,20,60,.07);
  }

  .sidebar{
    background:
      radial-gradient(circle at 0 0,rgba(139,92,246,.07),transparent 280px),
      #fff;
  }

  .topbar{
    background:rgba(255,255,255,.93);
  }

  .card{
    background:#fff;
  }

  .period-shortcuts,
  .filter-field input,
  .filter-field select,
  .queue-row,
  .agent-row,
  .queue-stats>div{
    background:#faf8fc;
  }
}


/* =========================================================
   MakeVoice Supervisor - Authentication
   ========================================================= */

.auth-screen{
  position:fixed;
  inset:0;
  z-index:1000;

  display:grid;
  place-items:center;

  min-height:100vh;
  padding:24px;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(139,92,246,.22),
      transparent 480px
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(168,85,247,.08),
      transparent 500px
    ),
    #090611;
}

.auth-shell{
  width:min(100%,420px);
}

.auth-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;

  margin-bottom:22px;
}

.auth-logo{
  width:46px;
  height:46px;

  display:grid;
  place-items:center;

  border-radius:13px;

  color:white;

  font-size:24px;
  font-style:italic;
  font-weight:1000;

  background:
    linear-gradient(
      135deg,
      #7c3aed,
      #b946ef
    );

  box-shadow:
    0 10px 32px
    rgba(139,92,246,.30);
}

.auth-brand strong{
  display:block;

  color:#f7f2fb;

  font-size:21px;
}

.auth-brand strong span{
  color:#b56cff;
}

.auth-brand small{
  display:block;

  margin-top:2px;

  color:#8e76a4;

  font-size:9px;
  letter-spacing:.22em;
}

.auth-card{
  padding:30px;

  border:
    1px solid
    rgba(183,145,230,.16);

  border-radius:18px;

  background:
    linear-gradient(
      145deg,
      rgba(25,17,40,.97),
      rgba(14,9,24,.99)
    );

  box-shadow:
    0 30px 90px
    rgba(0,0,0,.36);
}

.auth-heading{
  margin-bottom:25px;
}

.auth-heading>span{
  color:#a878e6;

  font-size:8px;
  font-weight:900;
  letter-spacing:.17em;
}

.auth-heading h1{
  margin:7px 0 6px;

  color:#f7f3fa;

  font-size:24px;
  line-height:1.15;
}

.auth-heading p{
  margin:0;

  color:#91869b;

  font-size:11px;
  line-height:1.6;
}

.auth-field{
  display:grid;
  gap:7px;

  margin-bottom:16px;
}

.auth-field>span{
  color:#ada2b7;

  font-size:9px;
  font-weight:800;
}

.auth-field input{
  width:100%;
  height:46px;

  padding:0 13px;

  border:
    1px solid
    #30243f;

  border-radius:10px;

  outline:none;

  background:#0d0915;
  color:#f7f2fb;

  font-size:11px;

  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}

.auth-field input:focus{
  border-color:#8b5cf6;

  box-shadow:
    0 0 0 3px
    rgba(139,92,246,.12);
}

.auth-field input::placeholder{
  color:#62576c;
}

.auth-field small{
  color:#756a7f;
  font-size:8px;
}

.auth-primary{
  width:100%;
  height:46px;

  margin-top:5px;

  border:0;
  border-radius:10px;

  cursor:pointer;

  color:white;

  font-size:11px;
  font-weight:900;

  background:
    linear-gradient(
      90deg,
      #7c3aed,
      #a855f7
    );

  box-shadow:
    0 10px 28px
    rgba(139,92,246,.22);

  transition:
    transform .15s ease,
    filter .15s ease;
}

.auth-primary:hover{
  filter:brightness(1.08);
}

.auth-primary:active{
  transform:translateY(1px);
}

.auth-primary:disabled{
  cursor:not-allowed;
  opacity:.58;
}

.auth-security{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;

  margin-top:20px;

  color:#716679;

  font-size:8px;
}

.auth-security i{
  width:7px;
  height:7px;

  border-radius:50%;

  background:#35d07f;

  box-shadow:
    0 0 10px
    rgba(53,208,127,.7);
}

.auth-footer{
  margin-top:17px;

  color:#62576d;

  font-size:8px;
  text-align:center;

  letter-spacing:.05em;
}

.auth-message{
  margin-bottom:17px;
  padding:10px 12px;

  border-radius:9px;

  font-size:9px;
  line-height:1.45;
}

.auth-message.error{
  border:
    1px solid
    rgba(242,83,104,.28);

  background:
    rgba(242,83,104,.08);

  color:#ff91a1;
}

.auth-message.success{
  border:
    1px solid
    rgba(53,208,127,.28);

  background:
    rgba(53,208,127,.08);

  color:#70e7a4;
}

.logout-button{
  height:28px;

  margin-left:5px;
  padding:0 9px;

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

  border-radius:7px;

  background:
    rgba(255,255,255,.025);

  color:var(--muted);

  font-size:8px;

  cursor:pointer;
}

.logout-button:hover{
  color:#f5b4bd;

  border-color:
    rgba(242,83,104,.30);

  background:
    rgba(242,83,104,.07);
}


@media(prefers-color-scheme:light){

  .auth-screen{
    background:
      radial-gradient(
        circle at 50% -10%,
        rgba(139,92,246,.16),
        transparent 480px
      ),
      #f6f2f8;
  }

  .auth-card{
    border-color:#e5dbea;

    background:#fff;

    box-shadow:
      0 30px 80px
      rgba(50,20,60,.12);
  }

  .auth-brand strong,
  .auth-heading h1{
    color:#211829;
  }

  .auth-field input{
    border-color:#e2d9e7;

    background:#faf8fc;
    color:#211829;
  }

  .auth-field input::placeholder{
    color:#aaa0b0;
  }
}


/* =========================================================
   MakeVoice Supervisor - Authentication
   ========================================================= */

.auth-screen{
  position:fixed;
  inset:0;
  z-index:1000;

  display:grid;
  place-items:center;

  min-height:100vh;
  padding:24px;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(139,92,246,.22),
      transparent 480px
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(168,85,247,.08),
      transparent 500px
    ),
    #090611;
}

.auth-shell{
  width:min(100%,420px);
}

.auth-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;

  margin-bottom:22px;
}

.auth-logo{
  width:46px;
  height:46px;

  display:grid;
  place-items:center;

  border-radius:13px;

  color:white;

  font-size:24px;
  font-style:italic;
  font-weight:1000;

  background:
    linear-gradient(
      135deg,
      #7c3aed,
      #b946ef
    );

  box-shadow:
    0 10px 32px
    rgba(139,92,246,.30);
}

.auth-brand strong{
  display:block;

  color:#f7f2fb;

  font-size:21px;
}

.auth-brand strong span{
  color:#b56cff;
}

.auth-brand small{
  display:block;

  margin-top:2px;

  color:#8e76a4;

  font-size:9px;
  letter-spacing:.22em;
}

.auth-card{
  padding:30px;

  border:
    1px solid
    rgba(183,145,230,.16);

  border-radius:18px;

  background:
    linear-gradient(
      145deg,
      rgba(25,17,40,.97),
      rgba(14,9,24,.99)
    );

  box-shadow:
    0 30px 90px
    rgba(0,0,0,.36);
}

.auth-heading{
  margin-bottom:25px;
}

.auth-heading>span{
  color:#a878e6;

  font-size:8px;
  font-weight:900;
  letter-spacing:.17em;
}

.auth-heading h1{
  margin:7px 0 6px;

  color:#f7f3fa;

  font-size:24px;
  line-height:1.15;
}

.auth-heading p{
  margin:0;

  color:#91869b;

  font-size:11px;
  line-height:1.6;
}

.auth-field{
  display:grid;
  gap:7px;

  margin-bottom:16px;
}

.auth-field>span{
  color:#ada2b7;

  font-size:9px;
  font-weight:800;
}

.auth-field input{
  width:100%;
  height:46px;

  padding:0 13px;

  border:
    1px solid
    #30243f;

  border-radius:10px;

  outline:none;

  background:#0d0915;
  color:#f7f2fb;

  font-size:11px;

  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}

.auth-field input:focus{
  border-color:#8b5cf6;

  box-shadow:
    0 0 0 3px
    rgba(139,92,246,.12);
}

.auth-field input::placeholder{
  color:#62576c;
}

.auth-field small{
  color:#756a7f;
  font-size:8px;
}

.auth-primary{
  width:100%;
  height:46px;

  margin-top:5px;

  border:0;
  border-radius:10px;

  cursor:pointer;

  color:white;

  font-size:11px;
  font-weight:900;

  background:
    linear-gradient(
      90deg,
      #7c3aed,
      #a855f7
    );

  box-shadow:
    0 10px 28px
    rgba(139,92,246,.22);

  transition:
    transform .15s ease,
    filter .15s ease;
}

.auth-primary:hover{
  filter:brightness(1.08);
}

.auth-primary:active{
  transform:translateY(1px);
}

.auth-primary:disabled{
  cursor:not-allowed;
  opacity:.58;
}

.auth-security{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;

  margin-top:20px;

  color:#716679;

  font-size:8px;
}

.auth-security i{
  width:7px;
  height:7px;

  border-radius:50%;

  background:#35d07f;

  box-shadow:
    0 0 10px
    rgba(53,208,127,.7);
}

.auth-footer{
  margin-top:17px;

  color:#62576d;

  font-size:8px;
  text-align:center;

  letter-spacing:.05em;
}

.auth-message{
  margin-bottom:17px;
  padding:10px 12px;

  border-radius:9px;

  font-size:9px;
  line-height:1.45;
}

.auth-message.error{
  border:
    1px solid
    rgba(242,83,104,.28);

  background:
    rgba(242,83,104,.08);

  color:#ff91a1;
}

.auth-message.success{
  border:
    1px solid
    rgba(53,208,127,.28);

  background:
    rgba(53,208,127,.08);

  color:#70e7a4;
}

.logout-button{
  height:28px;

  margin-left:5px;
  padding:0 9px;

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

  border-radius:7px;

  background:
    rgba(255,255,255,.025);

  color:var(--muted);

  font-size:8px;

  cursor:pointer;
}

.logout-button:hover{
  color:#f5b4bd;

  border-color:
    rgba(242,83,104,.30);

  background:
    rgba(242,83,104,.07);
}


@media(prefers-color-scheme:light){

  .auth-screen{
    background:
      radial-gradient(
        circle at 50% -10%,
        rgba(139,92,246,.16),
        transparent 480px
      ),
      #f6f2f8;
  }

  .auth-card{
    border-color:#e5dbea;

    background:#fff;

    box-shadow:
      0 30px 80px
      rgba(50,20,60,.12);
  }

  .auth-brand strong,
  .auth-heading h1{
    color:#211829;
  }

  .auth-field input{
    border-color:#e2d9e7;

    background:#faf8fc;
    color:#211829;
  }

  .auth-field input::placeholder{
    color:#aaa0b0;
  }
}


/* =========================================================
   MakeVoice Supervisor - User Administration
   ========================================================= */

.users-admin{
  padding:18px;
}

.users-title{
  align-items:center;
}

.users-title .primary{
  min-width:120px;
}

.users-table{
  min-width:1050px;
}

.role-pill,
.active-pill,
.password-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;

  padding:5px 8px;

  border-radius:999px;

  font-size:7px;
  font-weight:900;
}

.role-pill.admin{
  color:#c691ff;
  background:rgba(139,92,246,.12);
}

.role-pill.supervisor{
  color:#62b2ff;
  background:rgba(77,163,255,.10);
}

.role-pill.monitor{
  color:#9d95a5;
  background:rgba(141,135,151,.10);
}

.active-pill.active{
  color:var(--green);
  background:rgba(53,208,127,.09);
}

.active-pill.inactive{
  color:var(--red);
  background:rgba(242,83,104,.09);
}

.password-pill.required{
  color:var(--orange);
  background:rgba(255,154,61,.10);
}

.password-pill.ok{
  color:var(--green);
  background:rgba(53,208,127,.08);
}

.user-actions{
  display:flex;
  gap:5px;
}

.table-action{
  height:28px;
  padding:0 8px;

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

  background:rgba(255,255,255,.025);
  color:var(--muted);

  cursor:pointer;
  font-size:7px;
}

.table-action:hover{
  color:var(--text);
  border-color:#554169;
}

.table-action.danger:hover{
  color:#ff91a1;
  border-color:rgba(242,83,104,.30);
  background:rgba(242,83,104,.06);
}

.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:2000;

  display:grid;
  place-items:center;

  padding:20px;

  background:rgba(4,2,8,.72);
  backdrop-filter:blur(8px);
}

.modal-card{
  width:min(100%,440px);

  padding:23px;

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

  background:
    linear-gradient(
      145deg,
      #191128,
      #0f0a19
    );

  box-shadow:
    0 35px 100px
    rgba(0,0,0,.55);
}

.modal-header{
  display:flex;
  justify-content:space-between;
  gap:20px;

  margin-bottom:22px;
}

.modal-header span{
  color:#a878e6;

  font-size:8px;
  font-weight:900;
  letter-spacing:.15em;
}

.modal-header h2{
  margin:5px 0 0;
  font-size:18px;
}

.modal-close{
  width:31px;
  height:31px;

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

  background:transparent;
  color:var(--muted);

  cursor:pointer;
  font-size:18px;
}

.modal-close:hover{
  color:var(--text);
}

.modal-card .auth-field select{
  width:100%;
  height:46px;

  padding:0 12px;

  border:1px solid #30243f;
  border-radius:10px;

  outline:none;

  background:#0d0915;
  color:#f7f2fb;

  font-size:11px;
}

.toggle-field{
  display:flex;
  align-items:center;
  gap:9px;

  margin:5px 0 16px;

  color:var(--muted);
  font-size:9px;
}

.toggle-field input{
  width:16px;
  height:16px;
}

.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;

  margin-top:22px;
}

.modal-save{
  width:auto;
  min-width:110px;
  margin:0;
  padding:0 18px;
}

.secondary-button{
  height:46px;
  padding:0 16px;

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

  background:transparent;
  color:var(--muted);

  cursor:pointer;

  font-size:9px;
}

.secondary-button:hover{
  color:var(--text);
}

.password-result p{
  margin:0 0 17px;

  color:var(--muted);

  font-size:10px;
  line-height:1.6;
}

.password-result>small{
  display:block;

  margin-top:13px;

  color:#7d7186;

  font-size:8px;
  line-height:1.5;
}

.temporary-password-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;

  padding:9px;

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

  background:#0b0712;
}

.temporary-password-box code{
  display:flex;
  align-items:center;

  min-width:0;
  padding:0 6px;

  overflow:auto;

  color:#d5b8ff;

  font-size:11px;
  white-space:nowrap;
}

.temporary-password-box button{
  height:35px;
  padding:0 12px;

  border:1px solid rgba(139,92,246,.28);
  border-radius:8px;

  background:rgba(139,92,246,.10);
  color:#c99aff;

  cursor:pointer;

  font-size:8px;
  font-weight:800;
}


@media(prefers-color-scheme:light){

  .modal-backdrop{
    background:rgba(40,25,48,.32);
  }

  .modal-card{
    background:#fff;
  }

  .modal-card .auth-field select,
  .temporary-password-box{
    background:#faf8fc;
    color:#211829;
  }
}


/* MakeVoice Supervisor - Recordings Player V2 */

#view-recordings .section-heading {
  margin-bottom: 16px;
}


/* =========================================================
   FILTROS
   ========================================================= */

.recording-filters {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(140px, 1fr))
    auto;

  gap: 12px;
  align-items: end;

  padding: 16px;
  margin-bottom: 16px;
}


.recording-period-shortcuts {
  grid-column: 1 / -1;

  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 2px;
}


.recording-period-shortcuts button {
  border:
    1px solid rgba(
      196,
      181,
      253,
      .18
    );

  background:
    rgba(
      167,
      139,
      250,
      .07
    );

  color: #ddd6fe;

  border-radius: 999px;

  padding: 7px 14px;

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background .15s ease,
    border-color .15s ease,
    transform .15s ease;
}


.recording-period-shortcuts button:hover {
  background:
    rgba(
      196,
      181,
      253,
      .13
    );

  border-color:
    rgba(
      196,
      181,
      253,
      .32
    );
}


.recording-period-shortcuts button.active {
  background:
    linear-gradient(
      135deg,
      rgba(167,139,250,.26),
      rgba(192,132,252,.18)
    );

  border-color:
    rgba(
      196,
      181,
      253,
      .5
    );

  color: #f5f3ff;
}


.recording-filters .filter-field {
  min-width: 0;
}


.recording-filters .filter-field label {
  display: block;

  margin-bottom: 6px;

  color:
    rgba(
      221,
      214,
      254,
      .72
    );

  font-size: 11px;
  font-weight: 700;
}


.recording-filters input,
.recording-filters select {
  width: 100%;
  min-height: 40px;

  box-sizing: border-box;

  border:
    1px solid rgba(
      196,
      181,
      253,
      .15
    );

  border-radius: 9px;

  background:
    rgba(
      10,
      5,
      22,
      .52
    );

  color: #ede9fe;

  padding:
    0 11px;

  outline: none;
}


.recording-filters input:focus,
.recording-filters select:focus {
  border-color:
    rgba(
      196,
      181,
      253,
      .5
    );

  box-shadow:
    0 0 0 3px
    rgba(
      167,
      139,
      250,
      .08
    );
}


.recording-filter-button {
  min-height: 40px;

  padding:
    0 18px;

  border-radius: 9px;

  white-space: nowrap;
}


/* =========================================================
   LISTA
   ========================================================= */

#view-recordings .recordings-list {
  display: grid;
  gap: 14px;
}


#view-recordings .record-item {
  display: block;

  padding: 18px;

  border:
    1px solid rgba(
      196,
      181,
      253,
      .14
    );

  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      rgba(167,139,250,.045),
      rgba(76,29,149,.015)
    );
}


.recording-title-row {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;
}


.recording-title {
  display: block;

  color: #f5f3ff;

  font-size: 14px;
  font-weight: 750;
}


.recording-title > span {
  padding:
    0 4px;

  color: #c4b5fd;
}


.recording-meta {
  display: block;

  margin-top: 6px;

  color:
    rgba(
      221,
      214,
      254,
      .57
    );

  font-size: 11px;
}


.record-pill {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  flex: 0 0 auto;

  padding:
    5px 9px;

  border:
    1px solid rgba(
      196,
      181,
      253,
      .22
    );

  border-radius: 999px;

  background:
    rgba(
      196,
      181,
      253,
      .07
    );

  color: #ddd6fe;

  font-size: 10px;
  font-weight: 800;
}


.record-pill i {
  display: block;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #c4b5fd;

  box-shadow:
    0 0 8px
    rgba(
      196,
      181,
      253,
      .75
    );
}


/* =========================================================
   PLAYER
   ========================================================= */

.recording-player-shell {
  display: grid;

  grid-template-columns:
    38px
    40px
    minmax(160px, 1fr)
    40px
    auto;

  align-items: center;

  gap: 11px;

  margin-top: 15px;

  padding:
    10px 12px;

  border:
    1px solid rgba(
      196,
      181,
      253,
      .2
    );

  border-radius: 13px;

  /*
   * Roxinho bem clarinho,
   * sem virar carnaval.
   */
  background:
    linear-gradient(
      135deg,
      rgba(216,180,254,.115),
      rgba(196,181,253,.065)
    );

  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}


.recording-player-shell.playing {
  border-color:
    rgba(
      196,
      181,
      253,
      .42
    );

  background:
    linear-gradient(
      135deg,
      rgba(216,180,254,.16),
      rgba(196,181,253,.085)
    );

  box-shadow:
    0 8px 26px
    rgba(
      76,
      29,
      149,
      .08
    );
}


.recording-audio {
  display: none;
}


.recording-play-button {
  width: 36px;
  height: 36px;

  display: inline-flex;

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

  padding: 0;

  border:
    1px solid rgba(
      255,
      255,
      255,
      .22
    );

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      #ddd6fe,
      #c4b5fd
    );

  color: #2e1065;

  font-size: 13px;
  font-weight: 900;

  cursor: pointer;

  box-shadow:
    0 5px 18px
    rgba(
      167,
      139,
      250,
      .22
    );

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}


.recording-play-button:hover {
  transform:
    translateY(-1px)
    scale(1.025);

  background:
    linear-gradient(
      135deg,
      #ede9fe,
      #ddd6fe
    );

  box-shadow:
    0 7px 22px
    rgba(
      167,
      139,
      250,
      .32
    );
}


.recording-time {
  min-width: 38px;

  color: #ede9fe;

  font-size: 11px;
  font-weight: 700;

  font-variant-numeric:
    tabular-nums;

  text-align: center;
}


.recording-duration {
  color:
    rgba(
      237,
      233,
      254,
      .58
    );
}


/* barra */

.recording-progress {
  width: 100%;
  height: 5px;

  margin: 0;

  cursor: pointer;

  accent-color: #c4b5fd;
}


.recording-progress::-webkit-slider-runnable-track {
  height: 4px;

  border-radius: 999px;

  background:
    rgba(
      237,
      233,
      254,
      .2
    );
}


.recording-progress::-webkit-slider-thumb {
  margin-top: -5px;

  width: 14px;
  height: 14px;

  border: 0;

  border-radius: 50%;

  background: #ddd6fe;

  cursor: grab;

  -webkit-appearance: none;

  box-shadow:
    0 0 0 3px
    rgba(
      196,
      181,
      253,
      .12
    );
}


.recording-progress {
  -webkit-appearance: none;
}


/* =========================================================
   DOWNLOAD
   ========================================================= */

.record-download-button {
  display: inline-flex;

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

  gap: 7px;

  min-height: 36px;

  padding:
    0 13px;

  border:
    1px solid rgba(
      196,
      181,
      253,
      .24
    );

  border-radius: 9px;

  background:
    rgba(
      196,
      181,
      253,
      .075
    );

  color: #ede9fe;

  font-size: 11px;
  font-weight: 750;

  text-decoration: none;

  white-space: nowrap;

  transition:
    background .15s ease,
    border-color .15s ease,
    transform .15s ease;
}


.record-download-button:hover {
  background:
    rgba(
      196,
      181,
      253,
      .15
    );

  border-color:
    rgba(
      196,
      181,
      253,
      .42
    );

  transform:
    translateY(-1px);
}


.record-download-icon {
  display: inline-flex;

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

  width: 19px;
  height: 19px;

  border-radius: 6px;

  background:
    rgba(
      196,
      181,
      253,
      .1
    );

  color: #c4b5fd;

  font-size: 14px;
  line-height: 1;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1150px) {

  .recording-filters {
    grid-template-columns:
      repeat(
        3,
        minmax(140px,1fr)
      );
  }

}


@media (max-width: 760px) {

  .recording-filters {
    grid-template-columns:
      1fr 1fr;
  }


  .recording-title-row {
    flex-direction: column;
    gap: 10px;
  }


  .recording-player-shell {
    grid-template-columns:
      38px
      38px
      1fr
      38px;
  }


  .record-download-button {
    grid-column: 1 / -1;

    width: 100%;
  }

}


@media (max-width: 520px) {

  .recording-filters {
    grid-template-columns:
      1fr;
  }

}


/* =========================================================
   MakeVoice Recordings - final polish
   ========================================================= */


/* ---------- selo Gravada ---------- */

#view-recordings .record-pill {
  display: inline-flex !important;
  flex-direction: row !important;

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

  gap: 6px !important;

  width: auto !important;

  padding: 6px 10px !important;

  border:
    1px solid rgba(
      167,
      139,
      250,
      .42
    ) !important;

  border-radius: 999px !important;

  background:
    rgba(
      124,
      58,
      237,
      .13
    ) !important;

  color: #d8b4fe !important;

  font-size: 10px !important;
  font-weight: 800 !important;

  line-height: 1 !important;

  white-space: nowrap !important;
}


#view-recordings .record-pill i {
  display: inline-block !important;

  flex:
    0 0 6px !important;

  width: 6px !important;
  height: 6px !important;

  margin: 0 !important;

  border-radius: 50% !important;

  background: #a78bfa !important;

  box-shadow:
    0 0 7px
    rgba(
      167,
      139,
      250,
      .8
    ) !important;
}



/* ---------- botão Baixar ---------- */

#view-recordings .record-download-button {
  display: inline-flex !important;

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

  gap: 8px !important;

  width: auto !important;
  min-width: 142px !important;
  height: 38px !important;

  box-sizing: border-box !important;

  padding:
    0 14px !important;

  border:
    1px solid rgba(
      167,
      139,
      250,
      .52
    ) !important;

  border-radius: 10px !important;

  background:
    linear-gradient(
      135deg,
      rgba(124,58,237,.28),
      rgba(147,51,234,.20)
    ) !important;

  color: #f5f3ff !important;

  font-size: 11px !important;
  font-weight: 800 !important;

  line-height: 1 !important;

  text-decoration: none !important;
  white-space: nowrap !important;

  cursor: pointer !important;

  box-shadow:
    0 4px 14px
    rgba(
      76,
      29,
      149,
      .15
    ) !important;

  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease,
    box-shadow .15s ease !important;
}


#view-recordings .record-download-button:hover {
  transform:
    translateY(-1px) !important;

  border-color:
    rgba(
      196,
      181,
      253,
      .72
    ) !important;

  background:
    linear-gradient(
      135deg,
      rgba(139,92,246,.38),
      rgba(168,85,247,.28)
    ) !important;

  box-shadow:
    0 6px 18px
    rgba(
      109,
      40,
      217,
      .20
    ) !important;

  color: #ffffff !important;
}


#view-recordings .record-download-button:active {
  transform:
    translateY(0) !important;
}



/* ---------- ícone do botão ---------- */

#view-recordings .record-download-icon {
  display: inline-flex !important;

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

  width: 22px !important;
  height: 22px !important;

  flex:
    0 0 22px !important;

  margin: 0 !important;

  border-radius: 7px !important;

  background:
    rgba(
      196,
      181,
      253,
      .17
    ) !important;

  color: #ddd6fe !important;

  font-size: 15px !important;
  font-weight: 900 !important;

  line-height: 1 !important;
}


/* mobile */

@media (max-width: 760px) {

  #view-recordings .record-download-button {
    width: 100% !important;
  }

}


/* =========================================================
   MakeVoice Recordings - LIGHT THEME
   ========================================================= */

/*
 * Cobrimos as formas mais comuns usadas pelo MakeVoice
 * para identificar o tema claro.
 */
body.light,
body.light-theme,
body.theme-light,
body[data-theme="light"],
html.light,
html.light-theme,
html.theme-light,
html[data-theme="light"] {

  /* Apenas escopo de identificação do tema. */
}


/* ---------------------------------------------------------
   Cards / lista
   --------------------------------------------------------- */

body.light #view-recordings .record-item,
body.light-theme #view-recordings .record-item,
body.theme-light #view-recordings .record-item,
body[data-theme="light"] #view-recordings .record-item,
html.light #view-recordings .record-item,
html.light-theme #view-recordings .record-item,
html.theme-light #view-recordings .record-item,
html[data-theme="light"] #view-recordings .record-item {

  border-color:
    rgba(109,40,217,.13) !important;

  background:
    linear-gradient(
      135deg,
      rgba(139,92,246,.045),
      rgba(168,85,247,.018)
    ) !important;
}


/* ---------------------------------------------------------
   Título da chamada
   --------------------------------------------------------- */

body.light #view-recordings .recording-title,
body.light-theme #view-recordings .recording-title,
body.theme-light #view-recordings .recording-title,
body[data-theme="light"] #view-recordings .recording-title,
html.light #view-recordings .recording-title,
html.light-theme #view-recordings .recording-title,
html.theme-light #view-recordings .recording-title,
html[data-theme="light"] #view-recordings .recording-title {

  color: #24133f !important;
}


body.light #view-recordings .recording-title > span,
body.light-theme #view-recordings .recording-title > span,
body.theme-light #view-recordings .recording-title > span,
body[data-theme="light"] #view-recordings .recording-title > span,
html.light #view-recordings .recording-title > span,
html.light-theme #view-recordings .recording-title > span,
html.theme-light #view-recordings .recording-title > span,
html[data-theme="light"] #view-recordings .recording-title > span {

  color: #7c3aed !important;
}


/* ---------------------------------------------------------
   Metadados
   --------------------------------------------------------- */

body.light #view-recordings .recording-meta,
body.light-theme #view-recordings .recording-meta,
body.theme-light #view-recordings .recording-meta,
body[data-theme="light"] #view-recordings .recording-meta,
html.light #view-recordings .recording-meta,
html.light-theme #view-recordings .recording-meta,
html.theme-light #view-recordings .recording-meta,
html[data-theme="light"] #view-recordings .recording-meta {

  color:
    rgba(45,27,78,.68) !important;
}


/* ---------------------------------------------------------
   Badge Gravada
   --------------------------------------------------------- */

body.light #view-recordings .record-pill,
body.light-theme #view-recordings .record-pill,
body.theme-light #view-recordings .record-pill,
body[data-theme="light"] #view-recordings .record-pill,
html.light #view-recordings .record-pill,
html.light-theme #view-recordings .record-pill,
html.theme-light #view-recordings .record-pill,
html[data-theme="light"] #view-recordings .record-pill {

  color: #6d28d9 !important;

  background:
    rgba(124,58,237,.08) !important;

  border-color:
    rgba(124,58,237,.22) !important;
}


body.light #view-recordings .record-pill i,
body.light-theme #view-recordings .record-pill i,
body.theme-light #view-recordings .record-pill i,
body[data-theme="light"] #view-recordings .record-pill i,
html.light #view-recordings .record-pill i,
html.light-theme #view-recordings .record-pill i,
html.theme-light #view-recordings .record-pill i,
html[data-theme="light"] #view-recordings .record-pill i {

  background: #8b5cf6 !important;

  box-shadow:
    0 0 7px
    rgba(124,58,237,.42) !important;
}


/* ---------------------------------------------------------
   Player
   --------------------------------------------------------- */

body.light #view-recordings .recording-player-shell,
body.light-theme #view-recordings .recording-player-shell,
body.theme-light #view-recordings .recording-player-shell,
body[data-theme="light"] #view-recordings .recording-player-shell,
html.light #view-recordings .recording-player-shell,
html.light-theme #view-recordings .recording-player-shell,
html.theme-light #view-recordings .recording-player-shell,
html[data-theme="light"] #view-recordings .recording-player-shell {

  border-color:
    rgba(124,58,237,.20) !important;

  background:
    linear-gradient(
      135deg,
      rgba(167,139,250,.16),
      rgba(221,214,254,.38)
    ) !important;

  box-shadow:
    0 4px 16px
    rgba(76,29,149,.04) !important;
}


body.light #view-recordings .recording-player-shell.playing,
body.light-theme #view-recordings .recording-player-shell.playing,
body.theme-light #view-recordings .recording-player-shell.playing,
body[data-theme="light"] #view-recordings .recording-player-shell.playing,
html.light #view-recordings .recording-player-shell.playing,
html.light-theme #view-recordings .recording-player-shell.playing,
html.theme-light #view-recordings .recording-player-shell.playing,
html[data-theme="light"] #view-recordings .recording-player-shell.playing {

  border-color:
    rgba(124,58,237,.40) !important;

  background:
    linear-gradient(
      135deg,
      rgba(167,139,250,.22),
      rgba(221,214,254,.48)
    ) !important;
}


/* ---------------------------------------------------------
   Botão play
   --------------------------------------------------------- */

body.light #view-recordings .recording-play-button,
body.light-theme #view-recordings .recording-play-button,
body.theme-light #view-recordings .recording-play-button,
body[data-theme="light"] #view-recordings .recording-play-button,
html.light #view-recordings .recording-play-button,
html.light-theme #view-recordings .recording-play-button,
html.theme-light #view-recordings .recording-play-button,
html[data-theme="light"] #view-recordings .recording-play-button {

  background:
    linear-gradient(
      135deg,
      #8b5cf6,
      #a855f7
    ) !important;

  color: #ffffff !important;

  border-color:
    rgba(109,40,217,.20) !important;

  box-shadow:
    0 5px 16px
    rgba(124,58,237,.20) !important;
}


body.light #view-recordings .recording-play-button:hover,
body.light-theme #view-recordings .recording-play-button:hover,
body.theme-light #view-recordings .recording-play-button:hover,
body[data-theme="light"] #view-recordings .recording-play-button:hover,
html.light #view-recordings .recording-play-button:hover,
html.light-theme #view-recordings .recording-play-button:hover,
html.theme-light #view-recordings .recording-play-button:hover,
html[data-theme="light"] #view-recordings .recording-play-button:hover {

  background:
    linear-gradient(
      135deg,
      #7c3aed,
      #9333ea
    ) !important;
}


/* ---------------------------------------------------------
   Relógio do player
   --------------------------------------------------------- */

body.light #view-recordings .recording-time,
body.light-theme #view-recordings .recording-time,
body.theme-light #view-recordings .recording-time,
body[data-theme="light"] #view-recordings .recording-time,
html.light #view-recordings .recording-time,
html.light-theme #view-recordings .recording-time,
html.theme-light #view-recordings .recording-time,
html[data-theme="light"] #view-recordings .recording-time {

  color: #4c1d95 !important;
}


body.light #view-recordings .recording-duration,
body.light-theme #view-recordings .recording-duration,
body.theme-light #view-recordings .recording-duration,
body[data-theme="light"] #view-recordings .recording-duration,
html.light #view-recordings .recording-duration,
html.light-theme #view-recordings .recording-duration,
html.theme-light #view-recordings .recording-duration,
html[data-theme="light"] #view-recordings .recording-duration {

  color:
    rgba(76,29,149,.62) !important;

  opacity: 1 !important;
}


/* ---------------------------------------------------------
   Slider
   --------------------------------------------------------- */

body.light #view-recordings .recording-progress,
body.light-theme #view-recordings .recording-progress,
body.theme-light #view-recordings .recording-progress,
body[data-theme="light"] #view-recordings .recording-progress,
html.light #view-recordings .recording-progress,
html.light-theme #view-recordings .recording-progress,
html.theme-light #view-recordings .recording-progress,
html[data-theme="light"] #view-recordings .recording-progress {

  accent-color: #8b5cf6 !important;
}


body.light #view-recordings .recording-progress::-webkit-slider-runnable-track,
body.light-theme #view-recordings .recording-progress::-webkit-slider-runnable-track,
body.theme-light #view-recordings .recording-progress::-webkit-slider-runnable-track,
body[data-theme="light"] #view-recordings .recording-progress::-webkit-slider-runnable-track,
html.light #view-recordings .recording-progress::-webkit-slider-runnable-track,
html.light-theme #view-recordings .recording-progress::-webkit-slider-runnable-track,
html.theme-light #view-recordings .recording-progress::-webkit-slider-runnable-track,
html[data-theme="light"] #view-recordings .recording-progress::-webkit-slider-runnable-track {

  background:
    rgba(76,29,149,.16) !important;
}


body.light #view-recordings .recording-progress::-webkit-slider-thumb,
body.light-theme #view-recordings .recording-progress::-webkit-slider-thumb,
body.theme-light #view-recordings .recording-progress::-webkit-slider-thumb,
body[data-theme="light"] #view-recordings .recording-progress::-webkit-slider-thumb,
html.light #view-recordings .recording-progress::-webkit-slider-thumb,
html.light-theme #view-recordings .recording-progress::-webkit-slider-thumb,
html.theme-light #view-recordings .recording-progress::-webkit-slider-thumb,
html[data-theme="light"] #view-recordings .recording-progress::-webkit-slider-thumb {

  background: #8b5cf6 !important;

  box-shadow:
    0 0 0 3px
    rgba(139,92,246,.14) !important;
}


/* ---------------------------------------------------------
   Download
   --------------------------------------------------------- */

body.light #view-recordings .record-download-button,
body.light-theme #view-recordings .record-download-button,
body.theme-light #view-recordings .record-download-button,
body[data-theme="light"] #view-recordings .record-download-button,
html.light #view-recordings .record-download-button,
html.light-theme #view-recordings .record-download-button,
html.theme-light #view-recordings .record-download-button,
html[data-theme="light"] #view-recordings .record-download-button {

  border-color:
    rgba(124,58,237,.34) !important;

  background:
    linear-gradient(
      135deg,
      rgba(139,92,246,.15),
      rgba(168,85,247,.11)
    ) !important;

  color: #5b21b6 !important;

  box-shadow:
    0 4px 12px
    rgba(76,29,149,.07) !important;
}


body.light #view-recordings .record-download-button:hover,
body.light-theme #view-recordings .record-download-button:hover,
body.theme-light #view-recordings .record-download-button:hover,
body[data-theme="light"] #view-recordings .record-download-button:hover,
html.light #view-recordings .record-download-button:hover,
html.light-theme #view-recordings .record-download-button:hover,
html.theme-light #view-recordings .record-download-button:hover,
html[data-theme="light"] #view-recordings .record-download-button:hover {

  border-color:
    rgba(109,40,217,.52) !important;

  background:
    linear-gradient(
      135deg,
      rgba(139,92,246,.23),
      rgba(168,85,247,.17)
    ) !important;

  color: #4c1d95 !important;
}


body.light #view-recordings .record-download-icon,
body.light-theme #view-recordings .record-download-icon,
body.theme-light #view-recordings .record-download-icon,
body[data-theme="light"] #view-recordings .record-download-icon,
html.light #view-recordings .record-download-icon,
html.light-theme #view-recordings .record-download-icon,
html.theme-light #view-recordings .record-download-icon,
html[data-theme="light"] #view-recordings .record-download-icon {

  background:
    rgba(124,58,237,.10) !important;

  color: #7c3aed !important;
}


/* ---------------------------------------------------------
   Filtros
   --------------------------------------------------------- */

body.light #view-recordings .recording-filters,
body.light-theme #view-recordings .recording-filters,
body.theme-light #view-recordings .recording-filters,
body[data-theme="light"] #view-recordings .recording-filters,
html.light #view-recordings .recording-filters,
html.light-theme #view-recordings .recording-filters,
html.theme-light #view-recordings .recording-filters,
html[data-theme="light"] #view-recordings .recording-filters {

  background: #ffffff !important;

  border-color:
    rgba(76,29,149,.10) !important;
}


body.light #view-recordings .recording-filters .filter-field label,
body.light-theme #view-recordings .recording-filters .filter-field label,
body.theme-light #view-recordings .recording-filters .filter-field label,
body[data-theme="light"] #view-recordings .recording-filters .filter-field label,
html.light #view-recordings .recording-filters .filter-field label,
html.light-theme #view-recordings .recording-filters .filter-field label,
html.theme-light #view-recordings .recording-filters .filter-field label,
html[data-theme="light"] #view-recordings .recording-filters .filter-field label {

  color: #5b447c !important;
}


body.light #view-recordings .recording-filters input,
body.light #view-recordings .recording-filters select,
body.light-theme #view-recordings .recording-filters input,
body.light-theme #view-recordings .recording-filters select,
body.theme-light #view-recordings .recording-filters input,
body.theme-light #view-recordings .recording-filters select,
body[data-theme="light"] #view-recordings .recording-filters input,
body[data-theme="light"] #view-recordings .recording-filters select,
html.light #view-recordings .recording-filters input,
html.light #view-recordings .recording-filters select,
html.light-theme #view-recordings .recording-filters input,
html.light-theme #view-recordings .recording-filters select,
html.theme-light #view-recordings .recording-filters input,
html.theme-light #view-recordings .recording-filters select,
html[data-theme="light"] #view-recordings .recording-filters input,
html[data-theme="light"] #view-recordings .recording-filters select {

  background: #fbfaff !important;

  border-color:
    rgba(76,29,149,.14) !important;

  color: #24133f !important;
}


/* atalhos de período */

body.light #view-recordings .recording-period-shortcuts button,
body.light-theme #view-recordings .recording-period-shortcuts button,
body.theme-light #view-recordings .recording-period-shortcuts button,
body[data-theme="light"] #view-recordings .recording-period-shortcuts button,
html.light #view-recordings .recording-period-shortcuts button,
html.light-theme #view-recordings .recording-period-shortcuts button,
html.theme-light #view-recordings .recording-period-shortcuts button,
html[data-theme="light"] #view-recordings .recording-period-shortcuts button {

  color: #6d28d9 !important;

  background:
    rgba(139,92,246,.055) !important;

  border-color:
    rgba(124,58,237,.15) !important;
}


body.light #view-recordings .recording-period-shortcuts button.active,
body.light-theme #view-recordings .recording-period-shortcuts button.active,
body.theme-light #view-recordings .recording-period-shortcuts button.active,
body[data-theme="light"] #view-recordings .recording-period-shortcuts button.active,
html.light #view-recordings .recording-period-shortcuts button.active,
html.light-theme #view-recordings .recording-period-shortcuts button.active,
html.theme-light #view-recordings .recording-period-shortcuts button.active,
html[data-theme="light"] #view-recordings .recording-period-shortcuts button.active {

  color: #5b21b6 !important;

  background:
    rgba(139,92,246,.13) !important;

  border-color:
    rgba(124,58,237,.28) !important;
}



/* =========================================================
   MakeVoice Recordings - LIGHT THEME REAL
   O Supervisor usa prefers-color-scheme
   ========================================================= */

@media (prefers-color-scheme: light) {

  /* ---------- cards ---------- */

  #view-recordings .record-item {
    background:
      linear-gradient(
        135deg,
        #ffffff,
        #fbf9ff
      ) !important;

    border-color:
      rgba(91,33,182,.13) !important;
  }


  /* ---------- títulos ---------- */

  #view-recordings .recording-title {
    color: #241434 !important;
  }

  #view-recordings .recording-title > span {
    color: #7c3aed !important;
  }

  #view-recordings .recording-meta {
    color: #685978 !important;
  }


  /* ---------- badge gravada ---------- */

  #view-recordings .record-pill {
    color: #6d28d9 !important;

    background:
      rgba(124,58,237,.08) !important;

    border-color:
      rgba(124,58,237,.24) !important;
  }

  #view-recordings .record-pill i {
    background: #8b5cf6 !important;

    box-shadow:
      0 0 7px
      rgba(124,58,237,.38) !important;
  }


  /* ---------- player ---------- */

  #view-recordings .recording-player-shell {
    background:
      linear-gradient(
        135deg,
        rgba(237,233,254,.92),
        rgba(245,243,255,.96)
      ) !important;

    border-color:
      rgba(124,58,237,.18) !important;

    box-shadow:
      0 5px 18px
      rgba(76,29,149,.045) !important;
  }

  #view-recordings .recording-player-shell.playing {
    background:
      linear-gradient(
        135deg,
        rgba(221,214,254,.96),
        rgba(245,243,255,.98)
      ) !important;

    border-color:
      rgba(124,58,237,.34) !important;
  }


  /* ---------- play ---------- */

  #view-recordings .recording-play-button {
    background:
      linear-gradient(
        135deg,
        #8b5cf6,
        #a855f7
      ) !important;

    color: #ffffff !important;

    border-color:
      rgba(91,33,182,.18) !important;

    box-shadow:
      0 5px 16px
      rgba(124,58,237,.18) !important;
  }

  #view-recordings .recording-play-button:hover {
    background:
      linear-gradient(
        135deg,
        #7c3aed,
        #9333ea
      ) !important;
  }


  /* ---------- tempos ---------- */

  #view-recordings .recording-time {
    color: #4c1d95 !important;
  }

  #view-recordings .recording-duration {
    color: #665177 !important;
    opacity: 1 !important;
  }


  /* ---------- progress ---------- */

  #view-recordings .recording-progress {
    accent-color: #8b5cf6 !important;
  }

  #view-recordings
  .recording-progress::-webkit-slider-runnable-track {
    background:
      rgba(76,29,149,.18) !important;
  }

  #view-recordings
  .recording-progress::-webkit-slider-thumb {
    background: #8b5cf6 !important;

    box-shadow:
      0 0 0 3px
      rgba(139,92,246,.13) !important;
  }


  /* ---------- download ---------- */

  #view-recordings .record-download-button {
    background:
      linear-gradient(
        135deg,
        #8b5cf6,
        #9333ea
      ) !important;

    border-color:
      rgba(91,33,182,.22) !important;

    color: #ffffff !important;

    box-shadow:
      0 5px 14px
      rgba(124,58,237,.18) !important;
  }

  #view-recordings .record-download-button:hover {
    background:
      linear-gradient(
        135deg,
        #7c3aed,
        #8b5cf6
      ) !important;

    color: #ffffff !important;

    box-shadow:
      0 7px 18px
      rgba(124,58,237,.24) !important;
  }

  #view-recordings .record-download-icon {
    background:
      rgba(255,255,255,.15) !important;

    color: #ffffff !important;
  }


  /* =======================================================
     FILTROS
     ======================================================= */

  #view-recordings .recording-filters {
    background: #ffffff !important;

    border-color:
      rgba(76,29,149,.11) !important;

    box-shadow:
      0 5px 20px
      rgba(38,20,55,.025) !important;
  }

  #view-recordings
  .recording-filters
  .filter-field
  label {
    color: #594469 !important;
  }

  #view-recordings .recording-filters input,
  #view-recordings .recording-filters select {
    background: #fbfaff !important;

    border-color:
      #ddd6e8 !important;

    color: #291936 !important;
  }

  #view-recordings
  .recording-filters
  input::placeholder {
    color: #978aa4 !important;
  }

  #view-recordings .recording-filters input:focus,
  #view-recordings .recording-filters select:focus {
    background: #ffffff !important;

    border-color:
      #a78bfa !important;

    box-shadow:
      0 0 0 3px
      rgba(139,92,246,.09) !important;
  }


  /* ---------- atalhos ---------- */

  #view-recordings
  .recording-period-shortcuts
  button {
    color: #6d28d9 !important;

    background:
      #f8f5ff !important;

    border-color:
      #e2d8f5 !important;
  }

  #view-recordings
  .recording-period-shortcuts
  button:hover {
    background:
      #f1ebff !important;

    border-color:
      #c4b5fd !important;
  }

  #view-recordings
  .recording-period-shortcuts
  button.active {
    color: #5b21b6 !important;

    background:
      #ede9fe !important;

    border-color:
      #c4b5fd !important;
  }


  /* ---------- contador ---------- */

  #view-recordings #recordingsCount,
  #recordingsCount {
    color: #6f617b !important;
  }

}

/* MakeVoice Recordings - download text light fix */
@media (prefers-color-scheme: light) {

  #view-recordings .record-download-button,
  #view-recordings .record-download-button span {
    color: #ffffff !important;
  }

  #view-recordings .record-download-button:hover,
  #view-recordings .record-download-button:hover span {
    color: #ffffff !important;
  }

  #view-recordings .record-download-icon {
    color: #ffffff !important;
  }

}


/* =========================================================
   MakeVoice Supervisor - Reports V1
   ========================================================= */

#view-reports {
  --report-text: #f5f3ff;
  --report-muted: rgba(221,214,254,.58);
  --report-border: rgba(196,181,253,.14);
  --report-card: rgba(167,139,250,.045);
  --report-panel: rgba(15,8,29,.46);
  --report-accent: #a78bfa;
  --report-accent-soft: rgba(167,139,250,.13);
  --report-good: #34d399;
  --report-bad: #fb7185;
}


.report-filters {
  display: grid;

  grid-template-columns:
    repeat(5,minmax(130px,1fr))
    auto;

  gap: 12px;

  align-items: end;

  padding: 16px;

  margin-bottom: 16px;
}


.report-period-shortcuts {
  grid-column: 1 / -1;

  display: flex;
  flex-wrap: wrap;

  gap: 8px;
}


.report-period-shortcuts button {
  padding: 7px 14px;

  border:
    1px solid var(--report-border);

  border-radius: 999px;

  background:
    var(--report-accent-soft);

  color: var(--report-text);

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;
}


.report-period-shortcuts button.active {
  border-color:
    rgba(167,139,250,.48);

  background:
    rgba(139,92,246,.22);
}


.report-filters label {
  color: var(--report-muted);
}


.report-filters input,
.report-filters select {
  width: 100%;

  min-height: 40px;

  box-sizing: border-box;

  border:
    1px solid var(--report-border);

  border-radius: 9px;

  background:
    rgba(10,5,22,.5);

  color: var(--report-text);

  padding: 0 11px;

  outline: none;
}


.report-export-button {
  display: inline-flex;

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

  min-height: 38px;

  padding: 0 14px;

  border:
    1px solid rgba(167,139,250,.34);

  border-radius: 9px;

  background:
    linear-gradient(
      135deg,
      rgba(124,58,237,.28),
      rgba(147,51,234,.20)
    );

  color: #f5f3ff;

  font-size: 11px;
  font-weight: 800;

  text-decoration: none;
}


.report-kpi-grid {
  display: grid;

  grid-template-columns:
    repeat(6,minmax(130px,1fr));

  gap: 12px;

  margin-bottom: 16px;
}


.report-kpi {
  padding: 16px;

  border:
    1px solid var(--report-border);

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      var(--report-card),
      rgba(76,29,149,.015)
    );
}


.report-kpi span {
  display: block;

  color: var(--report-muted);

  font-size: 11px;
  font-weight: 700;
}


.report-kpi strong {
  display: block;

  margin-top: 6px;

  color: var(--report-text);

  font-size: 25px;
}


.report-kpi small {
  display: block;

  margin-top: 4px;

  color: var(--report-muted);
}


.report-top-grid {
  display: grid;

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

  gap: 16px;

  margin-bottom: 16px;
}


.report-panel,
.report-table-card {
  padding: 18px;
}


.report-table-card {
  margin-bottom: 16px;
}


.report-panel-title {
  display: flex;

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

  gap: 12px;

  margin-bottom: 16px;
}


.report-panel-title > div > span {
  color: var(--report-accent);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .12em;
}


.report-panel-title h3 {
  margin: 4px 0 0;

  color: var(--report-text);

  font-size: 15px;
}


.report-legend {
  display: flex;

  gap: 12px;

  color: var(--report-muted);

  font-size: 10px;
}


.report-legend span {
  display: inline-flex;

  align-items: center;

  gap: 5px;
}


.report-legend i {
  width: 7px;
  height: 7px;

  border-radius: 50%;
}


.report-legend .answered i {
  background: var(--report-good);
}


.report-legend .abandoned i {
  background: var(--report-bad);
}


#reportDailyChart {
  display: grid;

  gap: 10px;
}


.report-volume-row {
  display: grid;

  grid-template-columns:
    48px
    minmax(120px,1fr)
    42px;

  align-items: center;

  gap: 10px;
}


.report-volume-date {
  color: var(--report-muted);

  font-size: 11px;
}


.report-volume-row > b {
  color: var(--report-text);

  text-align: right;

  font-size: 11px;
}


.report-volume-bars {
  display: grid;

  gap: 4px;
}


.report-volume-track {
  height: 5px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(196,181,253,.09);
}


.report-volume-track i {
  display: block;

  height: 100%;

  border-radius: inherit;
}


.report-volume-track i.answered {
  background: var(--report-good);
}


.report-volume-track i.abandoned {
  background: var(--report-bad);
}


.report-abandon-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 12px;
}


.report-abandon-grid > div {
  padding: 14px;

  border:
    1px solid var(--report-border);

  border-radius: 11px;

  background:
    var(--report-card);
}


.report-abandon-grid span {
  display: block;

  color: var(--report-muted);

  font-size: 10px;
}


.report-abandon-grid strong {
  display: block;

  margin-top: 5px;

  color: var(--report-text);

  font-size: 20px;
}


#view-reports table th {
  white-space: nowrap;
}


@media (max-width: 1200px) {

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

  .report-filters {
    grid-template-columns:
      repeat(3,minmax(140px,1fr));
  }

}


@media (max-width: 800px) {

  .report-top-grid {
    grid-template-columns: 1fr;
  }

  .report-kpi-grid {
    grid-template-columns:
      repeat(2,1fr);
  }

  .report-filters {
    grid-template-columns:
      1fr 1fr;
  }

}


@media (prefers-color-scheme: light) {

  #view-reports {
    --report-text: #241434;
    --report-muted: #685978;
    --report-border: rgba(91,33,182,.12);
    --report-card: rgba(139,92,246,.045);
    --report-panel: #ffffff;
    --report-accent: #7c3aed;
    --report-accent-soft: rgba(139,92,246,.07);
    --report-good: #059669;
    --report-bad: #e11d48;
  }


  #view-reports .report-filters {
    background: #ffffff;
  }


  #view-reports .report-filters input,
  #view-reports .report-filters select {
    background: #fbfaff;

    border-color: #ddd6e8;

    color: #241434;
  }


  #view-reports .report-period-shortcuts button {
    background: #f8f5ff;

    color: #6d28d9;
  }


  #view-reports .report-period-shortcuts button.active {
    background: #ede9fe;

    border-color: #c4b5fd;

    color: #5b21b6;
  }


  #view-reports .report-export-button {
    background:
      linear-gradient(
        135deg,
        #8b5cf6,
        #9333ea
      );

    color: #ffffff;
  }


  #view-reports .report-kpi,
  #view-reports .report-panel,
  #view-reports .report-table-card {
    background:
      linear-gradient(
        135deg,
        #ffffff,
        #fbf9ff
      );
  }


  #view-reports .report-volume-track {
    background:
      rgba(76,29,149,.10);
  }

}


/* =========================================================
   MakeVoice Supervisor - Reports V1
   ========================================================= */

#view-reports {
  --report-text: #f5f3ff;
  --report-muted: rgba(221,214,254,.58);
  --report-border: rgba(196,181,253,.14);
  --report-card: rgba(167,139,250,.045);
  --report-panel: rgba(15,8,29,.46);
  --report-accent: #a78bfa;
  --report-accent-soft: rgba(167,139,250,.13);
  --report-good: #34d399;
  --report-bad: #fb7185;
}


.report-filters {
  display: grid;

  grid-template-columns:
    repeat(5,minmax(130px,1fr))
    auto;

  gap: 12px;

  align-items: end;

  padding: 16px;

  margin-bottom: 16px;
}


.report-period-shortcuts {
  grid-column: 1 / -1;

  display: flex;
  flex-wrap: wrap;

  gap: 8px;
}


.report-period-shortcuts button {
  padding: 7px 14px;

  border:
    1px solid var(--report-border);

  border-radius: 999px;

  background:
    var(--report-accent-soft);

  color: var(--report-text);

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;
}


.report-period-shortcuts button.active {
  border-color:
    rgba(167,139,250,.48);

  background:
    rgba(139,92,246,.22);
}


.report-filters label {
  color: var(--report-muted);
}


.report-filters input,
.report-filters select {
  width: 100%;

  min-height: 40px;

  box-sizing: border-box;

  border:
    1px solid var(--report-border);

  border-radius: 9px;

  background:
    rgba(10,5,22,.5);

  color: var(--report-text);

  padding: 0 11px;

  outline: none;
}


.report-export-button {
  display: inline-flex;

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

  min-height: 38px;

  padding: 0 14px;

  border:
    1px solid rgba(167,139,250,.34);

  border-radius: 9px;

  background:
    linear-gradient(
      135deg,
      rgba(124,58,237,.28),
      rgba(147,51,234,.20)
    );

  color: #f5f3ff;

  font-size: 11px;
  font-weight: 800;

  text-decoration: none;
}


.report-kpi-grid {
  display: grid;

  grid-template-columns:
    repeat(6,minmax(130px,1fr));

  gap: 12px;

  margin-bottom: 16px;
}


.report-kpi {
  padding: 16px;

  border:
    1px solid var(--report-border);

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      var(--report-card),
      rgba(76,29,149,.015)
    );
}


.report-kpi span {
  display: block;

  color: var(--report-muted);

  font-size: 11px;
  font-weight: 700;
}


.report-kpi strong {
  display: block;

  margin-top: 6px;

  color: var(--report-text);

  font-size: 25px;
}


.report-kpi small {
  display: block;

  margin-top: 4px;

  color: var(--report-muted);
}


.report-top-grid {
  display: grid;

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

  gap: 16px;

  margin-bottom: 16px;
}


.report-panel,
.report-table-card {
  padding: 18px;
}


.report-table-card {
  margin-bottom: 16px;
}


.report-panel-title {
  display: flex;

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

  gap: 12px;

  margin-bottom: 16px;
}


.report-panel-title > div > span {
  color: var(--report-accent);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .12em;
}


.report-panel-title h3 {
  margin: 4px 0 0;

  color: var(--report-text);

  font-size: 15px;
}


.report-legend {
  display: flex;

  gap: 12px;

  color: var(--report-muted);

  font-size: 10px;
}


.report-legend span {
  display: inline-flex;

  align-items: center;

  gap: 5px;
}


.report-legend i {
  width: 7px;
  height: 7px;

  border-radius: 50%;
}


.report-legend .answered i {
  background: var(--report-good);
}


.report-legend .abandoned i {
  background: var(--report-bad);
}


#reportDailyChart {
  display: grid;

  gap: 10px;
}


.report-volume-row {
  display: grid;

  grid-template-columns:
    48px
    minmax(120px,1fr)
    42px;

  align-items: center;

  gap: 10px;
}


.report-volume-date {
  color: var(--report-muted);

  font-size: 11px;
}


.report-volume-row > b {
  color: var(--report-text);

  text-align: right;

  font-size: 11px;
}


.report-volume-bars {
  display: grid;

  gap: 4px;
}


.report-volume-track {
  height: 5px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(196,181,253,.09);
}


.report-volume-track i {
  display: block;

  height: 100%;

  border-radius: inherit;
}


.report-volume-track i.answered {
  background: var(--report-good);
}


.report-volume-track i.abandoned {
  background: var(--report-bad);
}


.report-abandon-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 12px;
}


.report-abandon-grid > div {
  padding: 14px;

  border:
    1px solid var(--report-border);

  border-radius: 11px;

  background:
    var(--report-card);
}


.report-abandon-grid span {
  display: block;

  color: var(--report-muted);

  font-size: 10px;
}


.report-abandon-grid strong {
  display: block;

  margin-top: 5px;

  color: var(--report-text);

  font-size: 20px;
}


#view-reports table th {
  white-space: nowrap;
}


@media (max-width: 1200px) {

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

  .report-filters {
    grid-template-columns:
      repeat(3,minmax(140px,1fr));
  }

}


@media (max-width: 800px) {

  .report-top-grid {
    grid-template-columns: 1fr;
  }

  .report-kpi-grid {
    grid-template-columns:
      repeat(2,1fr);
  }

  .report-filters {
    grid-template-columns:
      1fr 1fr;
  }

}


@media (prefers-color-scheme: light) {

  #view-reports {
    --report-text: #241434;
    --report-muted: #685978;
    --report-border: rgba(91,33,182,.12);
    --report-card: rgba(139,92,246,.045);
    --report-panel: #ffffff;
    --report-accent: #7c3aed;
    --report-accent-soft: rgba(139,92,246,.07);
    --report-good: #059669;
    --report-bad: #e11d48;
  }


  #view-reports .report-filters {
    background: #ffffff;
  }


  #view-reports .report-filters input,
  #view-reports .report-filters select {
    background: #fbfaff;

    border-color: #ddd6e8;

    color: #241434;
  }


  #view-reports .report-period-shortcuts button {
    background: #f8f5ff;

    color: #6d28d9;
  }


  #view-reports .report-period-shortcuts button.active {
    background: #ede9fe;

    border-color: #c4b5fd;

    color: #5b21b6;
  }


  #view-reports .report-export-button {
    background:
      linear-gradient(
        135deg,
        #8b5cf6,
        #9333ea
      );

    color: #ffffff;
  }


  #view-reports .report-kpi,
  #view-reports .report-panel,
  #view-reports .report-table-card {
    background:
      linear-gradient(
        135deg,
        #ffffff,
        #fbf9ff
      );
  }


  #view-reports .report-volume-track {
    background:
      rgba(76,29,149,.10);
  }

}


/* =========================================================
   MakeVoice Supervisor - Agent Journey V1
   ========================================================= */

.report-mode-tabs {
  display: inline-flex;

  gap: 5px;

  margin-bottom: 18px;

  padding: 4px;

  border:
    1px solid rgba(
      196,
      181,
      253,
      .12
    );

  border-radius: 11px;

  background:
    rgba(
      167,
      139,
      250,
      .055
    );
}


.report-mode-tabs button {
  padding:
    8px 15px;

  border: 0;

  border-radius: 8px;

  background:
    transparent;

  color:
    rgba(
      221,
      214,
      254,
      .62
    );

  font-size: 11px;
  font-weight: 800;

  cursor: pointer;
}


.report-mode-tabs button.active {
  background:
    linear-gradient(
      135deg,
      rgba(124,58,237,.34),
      rgba(147,51,234,.24)
    );

  color: #ffffff;
}


.journey-filters {
  display: grid;

  grid-template-columns:
    minmax(150px,1fr)
    minmax(150px,1fr)
    minmax(200px,1.3fr)
    auto;

  gap: 12px;

  align-items: end;

  padding: 16px;

  margin-bottom: 16px;
}


.journey-filters input,
.journey-filters select {
  width: 100%;

  min-height: 40px;

  box-sizing: border-box;

  padding:
    0 11px;

  border:
    1px solid
    rgba(
      196,
      181,
      253,
      .14
    );

  border-radius: 9px;

  background:
    rgba(
      10,
      5,
      22,
      .5
    );

  color: #f5f3ff;
}


.journey-kpi-grid {
  display: grid;

  grid-template-columns:
    repeat(
      6,
      minmax(
        130px,
        1fr
      )
    );

  gap: 12px;

  margin-bottom: 16px;
}


.journey-timeline-card {
  padding: 18px;

  margin-bottom: 16px;
}


.journey-legend {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-bottom: 18px;

  color:
    rgba(
      221,
      214,
      254,
      .65
    );

  font-size: 10px;
}


.journey-legend span {
  display: inline-flex;

  align-items: center;

  gap: 5px;
}


.journey-legend i {
  width: 7px;
  height: 7px;

  border-radius: 50%;
}


.journey-legend .available i,
.status-available {
  background: #22c55e;
}


.journey-legend .in-call i,
.status-in_call {
  background: #8b5cf6;
}


.journey-legend .pause i,
.status-pause {
  background: #f59e0b;
}


.journey-legend .lunch i,
.status-lunch {
  background: #f97316;
}


.journey-legend .training i,
.status-training {
  background: #3b82f6;
}


.journey-legend .offline i,
.status-offline {
  background: #6b7280;
}


.status-untracked {
  background:
    rgba(
      148,
      163,
      184,
      .30
    );
}


.journey-day {
  margin-bottom: 20px;
}


.journey-day:last-child {
  margin-bottom: 0;
}


.journey-day-label {
  margin-bottom: 7px;

  color: #f5f3ff;

  font-size: 11px;
  font-weight: 800;
}


.journey-hours {
  display: grid;

  grid-template-columns:
    repeat(
      5,
      1fr
    );

  margin-bottom: 5px;

  color:
    rgba(
      221,
      214,
      254,
      .42
    );

  font-size: 9px;
}


.journey-hours span:nth-child(2),
.journey-hours span:nth-child(3),
.journey-hours span:nth-child(4) {
  text-align: center;
}


.journey-hours span:last-child {
  text-align: right;
}


.journey-track {
  position: relative;

  height: 27px;

  overflow: hidden;

  border:
    1px solid
    rgba(
      196,
      181,
      253,
      .10
    );

  border-radius: 8px;

  background:
    repeating-linear-gradient(
      90deg,
      rgba(196,181,253,.025)
        0,
      rgba(196,181,253,.025)
        calc(25% - 1px),
      rgba(196,181,253,.10)
        25%
    );
}


.journey-segment {
  position: absolute;

  top: 3px;
  bottom: 3px;

  min-width: 2px;

  border-radius: 4px;

  cursor: help;

  opacity: .92;
}


.journey-segment:hover {
  opacity: 1;

  filter:
    brightness(1.15);
}


@media(max-width:1200px){

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

}


@media(max-width:800px){

  .journey-filters {
    grid-template-columns:
      1fr 1fr;
  }


  .journey-kpi-grid {
    grid-template-columns:
      repeat(
        2,
        1fr
      );
  }

}


/* =========================================================
   Agent Journey - Light
   ========================================================= */

@media(prefers-color-scheme:light){

  .report-mode-tabs {
    background: #f8f5ff;

    border-color:
      #e3daf0;
  }


  .report-mode-tabs button {
    color: #6c587d;
  }


  .report-mode-tabs button.active {
    background:
      linear-gradient(
        135deg,
        #8b5cf6,
        #9333ea
      );

    color: #ffffff;
  }


  .journey-filters {
    background: #ffffff;
  }


  .journey-filters input,
  .journey-filters select {
    background: #fbfaff;

    border-color:
      #ddd6e8;

    color: #241434;
  }


  .journey-legend {
    color: #685978;
  }


  .journey-day-label {
    color: #241434;
  }


  .journey-hours {
    color: #85758f;
  }


  .journey-track {
    border-color:
      rgba(
        91,
        33,
        182,
        .10
      );

    background:
      repeating-linear-gradient(
        90deg,
        rgba(124,58,237,.025)
          0,
        rgba(124,58,237,.025)
          calc(25% - 1px),
        rgba(124,58,237,.10)
          25%
      );
  }

}
