* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html {
  height: 100%;
  /* height: -webkit-fill-available; */
}
body {
  height: 100%;
  font-family: "SF Pro Text", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", inter, sans-serif;
}
ul {
  list-style: none;
}

:root {
  --text-primary: #111111;
  --text-secondary: #323941;
  --text-tertiary: #636f7e;
  --text-tertiary70: #636f7e;
  --bg-secondary: #f4f5f8;
  --bg-secondary40: rgba(244, 245, 248, 0.4);
  --bg-secondary70: rgba(244, 245, 248, 0.7);
  --black5: rgba(0, 0, 0, 0.05);
  --black10: rgba(0, 0, 0, 0.1);
  --theme-green: #27a43c;
  --theme-green7: rgba(39, 164, 60, 0.07);
  --shadow-mainbg: 0px 0px 20px rgba(0, 0, 0, 0.1);
  --shadow-menu: 0px 8px 30px rgba(17, 17, 17, 0.07);
  --shadow-topBar: 0px 0px 20px rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar {
  width: 0px;
  height: 0;
  background: transparent;
}

h1 {
  font-weight: 800;
  font-size: 22px;
  text-align: center;
  color: #27a43c;
}
h3 {
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-tertiary);
}
button.primary {
  background: var(--theme-green);
  color: white;
  padding: 9px 40px;
  border-radius: 33px;
  border: none;
  outline: none;
}
button.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 9px 40px;
  border-radius: 33px;
  border: none;
  outline: none;
}
.outer-container {
  height: 100%;
  background-color: floralwhite;
}
.dept {
  font-weight: normal;
  font-size: 12px;
  text-align: center;
  padding: 5px 0;
  color: var(--text-tertiary);
}
main {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-secondary);
  contain: paint;
}

img {
  background: var(--bg-secondary);
}

/* Boolean segregation 
================================================ */
.mainCard {
  flex: 1 1 auto;
  margin: 0 8px 8px 8px;
  border-radius: 18px;
  filter: drop-shadow(var(--shadow-mainbg));
  position: relative;
  overflow: hidden;
}

.bolShape {
  position: absolute;
  left: 0;
  bottom: 0;
  top: 0;
  right: 0;
  height: 100%;
}
.bolShape .top-bar {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 42px;
  position: sticky;
  top: 0;
}
.bolShape .top {
  grid-column: 1;
  grid-row: 1;
  background-color: var(--bg-secondary);
  border-radius: 18px 0 0 0;
}
.bolShape .bottom {
  background-color: var(--bg-secondary);
  border-radius: 0 0 18px 18px;
  overflow-y: auto;
  height: 100%;
  position: relative;
}
.bolShape .circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  grid-column: 2;
  grid-row: 1;
  align-self: flex-start;
  justify-self: end;
  background-color: var(--bg-secondary);
  display: grid;
  place-items: center;
}
.bolShape .xtr {
  width: 42px;
  height: 42px;
  grid-column: 2;
  grid-row: 1;
}
.bolShape .top-bar .top {
  display: flex;
  align-items: center;
  font-weight: normal;
  color: var(--text-primary);
  padding-left: 22px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-bar .top span {
  text-overflow: ellipsis;
  overflow: hidden;
  margin-right: 16px;
}

.bolShape .top-bar .top span {
  color: var(--text-tertiary);
}
.bottom .chipCnt {
  position: sticky;
  display: flex;
  justify-content: center;
  gap: 10px;
  height: 27px;
  margin-top: 33px;
  top: 5px;
  z-index: 3;
  margin: 0 auto;
  margin-top: 8px;
}
.bolShape .filter-chip {
  padding: 6px 10px 6px 15px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: normal;
  text-align: center;
  background: white;
  border-radius: 21px;
  box-shadow: var(--shadow-menu);
}
/* Footer
================================================ */
.footer {
  padding: 0 10px;
  background-color: white;
  border-radius: 26px 26px 0 0;
  height: 60px;
  margin-top: auto;
  /* position: fixed;
  left: 0;
  right: 0;
  bottom: 0; */
  display: flex;
  align-items: center;
}
.footer ul {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.menu-el .avatar img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
}

/* MainCard
================================================ */

.mainCard h1 {
  position: relative;
}

.filter {
  border-radius: 0 28px 28px 0;
  background-color: white;
  margin-top: 10px;
  margin-bottom: 8px;
  display: flex;
  position: relative;
  align-items: flex-start;
  display: inline-block;
}
.ph-filter {
  display: block;
  padding: 13px 30px;
  font-weight: normal;
  font-size: 14px;
  color: var(--text-secondary);
}
.agent-status,
.active-calls,
.call-history,
.scheduled-calls {
  margin: 8px 8px 0;
  position: relative;
  background-color: white;
  border-radius: 18px;
}
.call-history {
  padding-bottom: 5px;
}
.scheduled-calls {
  padding-bottom: 50px;
  contain: paint;
  display: flex;
  flex-direction: column;
}
.scheduled-calls header {
  margin-bottom: 5px;
}
.agent-status header,
.active-calls header,
.call-history header,
.scheduled-calls header {
  display: flex;
  padding-top: 15px;
  padding-left: 16px;
  flex-wrap: wrap;
}

.agent-status h3,
.active-calls h3,
.call-history h3,
.scheduled-calls h3 {
  padding-left: 11px;
}
.call-history ul {
  padding-bottom: 20px;
}
.call-history footer {
  font-size: 14px;
  text-align: center;
  display: flex;
  justify-content: center;
  color: var(--theme-green);
  border-top: 1px solid var(--black5);
  padding: 14px 10px 12px 0;
}

span.value {
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
}

span.label {
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  color: var(--text-tertiary);
  padding-top: 4px;
  letter-spacing: 0.3px;
}

.agent-status ul,
.active-calls ul,
.call-history ul {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 22px 5px 20px;
}
.agent-status li,
.active-calls li,
.call-history li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tile .detail {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tile .direction {
  align-self: flex-start;
  margin-top: 8px;
}
.tile .name {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: var(--text-primary);
}
.tile .add-detail {
  padding-top: 6px;
  display: flex;
  align-items: baseline;
  font-weight: normal;
  font-size: 12px;
  color: var(--text-tertiary);
}
.tile .agent {
  display: flex;
  background: rgba(163, 166, 182, 0.08);
  align-items: center;
  border-radius: 4px;
  border: 1px solid rgba(163, 166, 182, 0.08);
  margin-top: 8px;
}
.tile .agent .ag-name {
  font-size: 12px;
  color: var(--text-primary);
  padding: 0 8px;
}
.dot-sep {
  background-color: rgba(163, 166, 182, 0.5);
  height: 2px;
  width: 2px;
  border-radius: 50%;
  margin: 0 8px;
}
.tile .time {
  margin-left: auto;
  align-self: baseline;
  font-weight: normal;
  font-size: 12px;
  color: var(--text-tertiary);
}
.tile {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px dotted var(--black10);
}
.tiles {
  padding-top: 12px;
}
.scheduled-calls header {
  position: sticky;
  top: -1px;
  background: white;
  border-radius: 18px 18px 0 0;
  z-index: 6;
  /* padding-bottom: 2px; */
  display: grid;
  grid-template-columns: 18px 1fr;
}

.scheduled-calls h4 {
  font-weight: normal;
  font-size: 12px;
  color: var(--text-tertiary);
  position: relative;
}
.scheduled-calls .selected h4 {
  font-weight: bold;
  font-size: 12px;
  color: var(--theme-green);
}
.scheduled-calls h4::after {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 17px;
  background: var(--theme-green);
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}
.scheduled-calls .selected h4::after {
  display: block;
}
.scheduled-calls .tile .detail {
  padding-left: 0;
}
.scheduled-calls .tile {
  padding-left: 22px;
  /* margin-left: 22px; */
}
.scheduled-calls .view-all {
  font-size: 14px;
  text-align: center;
  color: var(--theme-green);
  padding: 16px 0 16px 0;
  margin-right: 12px;
}
.scheduled-calls .carousel {
  display: flex;
  transition: all 100ms cubic-bezier(0, 0, 0.2, 1);
}

.scheduled-calls ul {
  display: block;
}
.scheduled-calls header svg {
  grid-row: 1;
}
.scheduled-calls header h3 {
  grid-row: 1;
}
.scheduled-calls ul {
  grid-row: 2;
  grid-column: 1/-1;
  display: flex;
  justify-content: space-around;
  padding: 20px 10px 12px 10px;
  border-bottom: 1px solid var(--black5);
  margin-left: -16px;
}
/* List View
================================================ */

.list-view {
  position: fixed;
  overflow-y: auto;
  overflow-x: hidden;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: white;
  display: none;
}
.list-view header {
  height: 74px;
  display: flex;
  position: sticky;
  padding-left: 28px;
  top: 0;
  background: white;
  z-index: 4;
}
.list-view .back {
  padding-top: 32px;
}
.list-view .header-detail {
  padding-left: 24px;
  padding-top: 18px;
}
.list-view header .number {
  font-weight: 500;
  font-size: 12px;
  color: var(--text-tertiary);
  padding-top: 8px;
  letter-spacing: 0.3px;
}

.list-view .title {
  font-weight: bold;
  font-size: 16px;
  color: var(--theme-green);
}
.list-view .gradient {
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
  height: 128px;
  pointer-events: none;
}
.list-view .tiles {
  position: relative;
  z-index: 3;
}
.list-view .tabs {
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  background: white;
  padding: 12px 30px;
  border-bottom: 1px solid var(--black5);
}
.list-view .cnt {
  display: flex;
  align-items: center;
}
.list-view .el.selected {
  font-weight: bold;
  font-size: 12px;
  color: var(--theme-green);
  position: relative;
}

.list-view .el.selected::after {
  content: "";
  width: 26px;
  height: 3px;
  position: absolute;
  top: 25px;
  margin: 0 auto;
  border-radius: 17px;
  background: var(--theme-green);
  left: 50%;
  transform: translateX(-50%);
}

.list-view .el {
  font-weight: normal;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-left: 38px;
}
.list-view .el:first-child {
  margin-left: 0;
}
.list-view .avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.list-view .onlineAgents {
  margin-top: 27px;
  display: flex;
  transition: all 100ms cubic-bezier(0, 0, 0.2, 1);
}

.list-view .onlineAgents .el {
  width: 100%;
  flex-shrink: 0;
}

/* Bottom Sheet
================================================ */

.bottom-sheet {
  background: var(--black10);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform-style: preserve-3d;
  overflow: hidden;
  display: none;
  z-index: 5;
}
.bottom-sheet .body {
  background: white;
  min-height: 100px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 26px 26px 0px 0px;
  padding: 20px;
}
.bottom-sheet .handle {
  background: white;
  position: absolute;
  width: 30px;
  height: 5px;
  border-radius: 13px;
  top: -9px;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.bottom-sheet .drag-area {
  position: absolute;
  height: 40px;
  top: -20px;
  left: 0;
  right: 0;
  background: transparent;
}

/* call Detail
================================================ */

.call-detail header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.call-detail .name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  padding-bottom: 7px;
}
.call-detail .duration,
.call-detail .phno,
.call-detail .time {
  font-size: 12px;
  line-height: 14px;
  color: var(--text-tertiary);
}

.call-detail .sub-detail {
  display: flex;
  align-items: baseline;
}
.call-detail .detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 10px;
}

.call-detail .time {
  margin-left: auto;
  align-self: flex-start;
  margin-top: 5px;
}
.call-detail .icn {
  align-self: center;
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

.call-detail .key {
  font-weight: normal;
  font-size: 14px;
  color: var(--text-tertiary);
}

.call-detail .value {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
}

.call-detail header {
  display: flex;
  align-items: center;
}

.call-detail table {
  margin-top: 30px;
  margin-left: 2px;
  border-collapse: collapse;
}
.call-detail table .key {
  white-space: nowrap;
}
.call-detail tr td:last-child {
  padding-left: 30px;
}
.call-detail tr td {
  padding-bottom: 22px;
}
.call-detail tr:last-child td {
  padding-bottom: 0px;
}
.call-detail .vm td,
.call-detail .agent td {
  margin-top: -2px;
  padding-bottom: 20px;
}

.call-detail .agent .value {
  display: flex;
  align-items: center;
}
.call-detail .agent img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-right: 10px;
}
.call-detail .values {
  margin-left: 30px;
}
.call-detail .vm .value {
  display: flex;
  align-items: center;
}
.call-detail .vm .icn {
  font-size: 24px;
  color: var(--theme-green);
  height: 29px;
  width: 29px;
  margin-left: -1px;
}
.call-detail .vm .duration,
.call-detail .ticket .id {
  font-weight: normal;
  font-size: 12px;
  color: var(--text-tertiary);
}
.call-detail .ticket .id {
  padding-top: 4px;
}

.call-detail .ticket .value {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.call-detail .ticket .key {
  vertical-align: baseline;
}

.call-detail .email .value {
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.call-detail footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  margin: 24px -4px 0 -4px;
  justify-content: space-between;
}
.call-detail footer button {
  width: 100%;
}
.call-detail header,
.call-detail table {
  user-select: none;
  -webkit-user-select: none;
}

/* Number Filter
================================================ */

.number-filter .alias {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
}
.number-filter .number {
  font-weight: normal;
  font-size: 12px;
  color: var(--text-tertiary);
  padding-top: 6px;
}
.number-filter li {
  display: flex;
  align-items: center;
  height: 70px;
  margin: 0 -20px;
  padding: 7px 30px;
}
.number-filter li:last-child {
  padding-bottom: 0;
}
.number-filter li.selected {
  background: var(--theme-green7);
}
.number-filter .detail {
  padding-left: 20px;
}

.number-filter .tick {
  margin-left: auto;
}

.ivr-list .back {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.ivr-list .back span {
  font-weight: 600;
  font-size: 14px;
  color: var(--theme-green);
  padding-left: 10px;
  margin-bottom: 1px;
}
.ivr-list .ivr-tree {
  height: 68px;
  background: var(--bg-secondary70);
  margin: 0 -20px;
  margin-bottom: 10px;
  display: flex;
  gap: 20px;
  align-items: center;
  overflow-x: auto;
  transition: all 100ms cubic-bezier(0, 0, 0.2, 1);
}

.ivr-tree .alias {
  font-weight: normal;
  font-size: 13px;
  white-space: nowrap;
  color: var(--text-secondary);
  font-weight: 500;
}
.ivr-tree .current .alias {
  font-weight: 600;
  color: var(--text-primary);
}
.ivr-tree .l2,
.ivr-tree .l3 {
  display: none;
}

.ivr-list .list {
  display: flex;
  gap: 20px;
  transition: all 100ms cubic-bezier(0, 0, 0.2, 1);
}
.ivr-list .list .lvl {
  width: 100%;
  flex-shrink: 0;
}
.ivr-list .nxt-arrow {
  margin-left: auto;
  margin-right: 10px;
}

.ivr-list .sub-data {
  font-weight: normal;
  font-size: 12px;
  color: var(--text-tertiary);
  padding-top: 4px;
  white-space: nowrap;
}
.ivr-list .tick {
  display: none;
}
.ivr-list .selected .tick {
  display: block;
}

.ivr-list .selected-number {
  background: var(--bg-secondary40);
  border: 1px solid var(--black5);
  border-radius: 8px;
  padding: 10px 14px 9px 14px;
  margin: 10px 0 18px 10px;
}

/* Main Filter
================================================ */

.main-filter header {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-tertiary);
  padding: 10px 0 15px 10px;
  letter-spacing: 0.3px;
}
.main-filter .value {
  font-weight: normal;
  font-size: 14px;
  color: var(--text-secondary);
}
.main-filter,
.main-filter .calls,
.main-filter .time-range {
  display: flex;
  flex-direction: column;
}
.main-filter .ele {
  margin: 0 -20px;
  padding: 0 30px 0 40px;
  display: flex;
  align-items: center;
  height: 60px;
}
.main-filter .ele.selected {
  background: var(--theme-green7);
}
.main-filter .pointer {
  margin-right: 30px;
  border-radius: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid var(--theme-green);
}
.main-filter .selected .pointer {
  background: var(--theme-green);
}
.main-filter .tick {
  margin-left: auto;
  display: none;
}
.main-filter .selected .tick {
  display: block;
}
.main-filter .calls {
  padding-bottom: 20px;
}

/* Handling Desktop
================================================ */
.desktop-only {
  display: none;
}
main {
  max-width: 450px;
}
@media screen and (min-width: 500px) {
  body {
    background-color: white;
  }
  .main {
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
  }
  .outer-container {
    display: grid;
    grid-template-columns: 50vw 50vw;
    align-items: center;
  }

  main {
    grid-column: 2;
    width: 400px;
    height: 700px;
    border: 10px solid white;
    border-radius: 12px;
  }
  .desktop-only {
    width: 100%;
    height: 100%;
    display: block;
    display: flex;
    justify-content: center;
  }

  .desktop-only .cnt {
    margin-top: 10%;
    padding: 30px;
    max-width: 384px;
  }
  .desktop-only h2 {
    font-size: 24px;
    line-height: 32px;
  }
  .desktop-only p {
    padding-top: 10px;
    font-size: 16px;
    color: var(--text-tertiary);
    line-height: 22px;
  }
  .desktop-only section {
    padding-top: 40px;
  }
  .desktop-only section p {
    line-height: 23px;
  }
  .desktop-only .qr {
    padding-top: 20px;
  }
  .desktop-only section span {
    color: #000;
    font-weight: 600;
  }
}
