:root {
  --navy: #152739;
  --navy2: #1b3548;
  --ink: #1d2c38;
  --sub: #6c7983;
  --line: #e4e9eb;
  --bg: #f5f7f7;
  --paper: #fff;
  --teal: #13786b;
  --tealsoft: #e6f4ef;
  --red: #c85448;
  --redsoft: #fff0ed;
  --amber: #bb792e;
  --ambersoft: #fff4e7;
  --blue: #4072b6;
  --bluesoft: #eef4fd;
  --shadow: 0 8px 28px #162b3a0c;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  font-size: 14px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.12s;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #82c8b9;
  outline-offset: 2px;
}
a {
  color: inherit;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
}
.sidebar {
  background: var(--navy);
  color: #e8f1f3;
  padding: 28px 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 10px 23px;
  border-bottom: 1px solid #ffffff1a;
}
.brand-logo {
  height: 39px;
  width: 39px;
  border-radius: 12px;
  background: #de624e;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  letter-spacing: -1px;
  font-size: 16px;
  box-shadow: 0 5px 15px #0002;
}
.brand-name {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.4px;
  line-height: 1.25;
}
.brand-sub {
  font-size: 10px;
  color: #abc2c9;
  margin-top: 3px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 750;
}
.side-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8da8b4;
  font-weight: 800;
  padding: 7px 12px;
}
.menu {
  display: grid;
  gap: 5px;
}
.nav {
  border: 0;
  text-align: left;
  background: transparent;
  color: #b8ced4;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  min-width: 0;
}
.nav svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}
.nav.active {
  background: #287365;
  color: #fff;
  box-shadow: inset 3px 0 #91d8c1;
}
.nav:hover:not(.active) {
  background: #ffffff12;
  color: white;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid #ffffff1a;
  padding: 19px 10px 0;
  color: #9bb4bd;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.side-bottom strong {
  display: block;
  color: #eff8f7;
  font-size: 12px;
}
.side-dot {
  height: 7px;
  width: 7px;
  background: #54c4a1;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.main {
  min-width: 0;
}
.header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px clamp(20px, 3.2vw, 48px) 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header h1 {
  font-size: 24px;
  letter-spacing: -0.9px;
  margin: 0;
  line-height: 1.2;
}
.header p {
  color: var(--sub);
  margin: 5px 0 0;
  font-size: 12px;
}
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.demo-pill {
  background: #fff4e5;
  color: #9f611d;
  border: 1px solid #f3d8b4;
  border-radius: 40px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.role-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f5f8f8;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 7px 6px 11px;
  font-weight: 800;
  font-size: 11px;
}
.role-wrap select {
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 8px;
  color: var(--ink);
  font-weight: 750;
  font-size: 12px;
}
.body {
  max-width: 1570px;
  padding: 28px clamp(20px, 3.2vw, 48px) 80px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 850;
  color: var(--teal);
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.page-header h2 {
  font-size: 25px;
  line-height: 1.2;
  margin: 7px 0 8px;
  letter-spacing: -0.8px;
}
.page-header p {
  margin: 0;
  color: var(--sub);
  max-width: 780px;
  line-height: 1.55;
}
.page-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  min-height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: white;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 750;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}
.btn:hover {
  border-color: #9dbcb5;
  background: #f8fcfb;
}
.btn.primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn.primary:hover {
  background: #0e6056;
}
.btn.dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn.warning {
  color: #a84b41;
  border-color: #efccc7;
  background: #fffafa;
}
.btn.ghost {
  background: transparent;
}
.btn.small {
  min-height: 29px;
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 7px;
}
.btn.lightgreen {
  background: var(--tealsoft);
  border-color: #a7d7c9;
  color: #0f7565;
}
.btn.amb {
  color: #935f22;
  background: #fffbf4;
  border-color: #e8ceaa;
}
.btn.active {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--tealsoft);
}
.muted {
  color: var(--sub);
}
.tiny {
  font-size: 11px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 17px 0;
}
.stack {
  display: grid;
  gap: 16px;
}
.grid {
  display: grid;
  gap: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 21px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 19px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 750;
  color: var(--sub);
  gap: 5px;
}
.stat-icon {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: var(--tealsoft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.stat-value {
  font-size: 28px;
  letter-spacing: -1.4px;
  line-height: 1.15;
  font-weight: 850;
  margin: 13px 0 6px;
}
.stat-foot {
  font-size: 11px;
  color: var(--sub);
  white-space: normal;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.3;
  white-space: nowrap;
}
.tag.green {
  background: var(--tealsoft);
  color: var(--teal);
}
.tag.red {
  background: var(--redsoft);
  color: var(--red);
}
.tag.amber {
  background: var(--ambersoft);
  color: var(--amber);
}
.tag.blue {
  background: var(--bluesoft);
  color: var(--blue);
}
.tag.gray {
  background: #edf0f1;
  color: #68757a;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card h3 {
  font-size: 15px;
  letter-spacing: -0.3px;
  margin: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.card-head p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.5;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(275px, 1fr);
  gap: 18px;
}
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.campaign-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.campaign-card:hover {
  border-color: #b5d8ce;
}
.campaign-type {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 850;
}
.campaign-emoji {
  height: 33px;
  width: 33px;
  display: grid;
  place-items: center;
  background: #edf7f3;
  border-radius: 10px;
  font-size: 17px;
}
.campaign-stat {
  display: flex;
  justify-content: space-between;
  color: var(--sub);
  font-size: 11px;
}
.campaign-stat strong {
  color: var(--ink);
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 520px;
}
th {
  text-transform: uppercase;
  letter-spacing: 0.65px;
  text-align: left;
  color: #77868b;
  font-size: 10px;
  background: #f8faf9;
  padding: 13px 15px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 12px 15px;
  border-bottom: 1px solid #edf0f1;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tr:hover td {
  background: #fbfdfc;
}
.name-cell {
  font-weight: 800;
  color: var(--ink);
}
.linkbtn {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 850;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.row-flex {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.space-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.segment {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.seg {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--sub);
  font-size: 12px;
  font-weight: 800;
}
.seg.active {
  color: var(--teal);
  background: #e9f6f0;
  border-color: #8bc6b4;
}
.call-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}
.call-list {
  display: grid;
  gap: 12px;
}
.customer-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  padding: 18px;
  box-shadow: var(--shadow);
}
.customer-card:hover {
  border-color: #c0d4cf;
}
.customer-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.customer-name {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.3px;
}
.customer-meta {
  margin-top: 5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 11px;
  color: var(--sub);
}
.offerline {
  font-size: 12px;
  font-weight: 700;
  color: #186f62;
  background: #f0faf6;
  padding: 10px 12px;
  border-radius: 9px;
  margin: 13px 0 11px;
  line-height: 1.5;
}
.offerline strong {
  color: #0c4e46;
}
.customer-rows {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 13px;
}
.info-label {
  font-size: 10px;
  color: #819097;
  line-height: 1.5;
}
.info-val {
  font-size: 11px;
  color: #35434a;
  font-weight: 750;
  line-height: 1.5;
}
.customer-foot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.customer-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.customer-phone {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
}
.side-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 17px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 20px;
}
.side-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
.bar-track {
  height: 9px;
  background: #eaf0ed;
  overflow: hidden;
  border-radius: 20px;
}
.bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 20px;
  transition: width 0.2s;
}
.bar-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 7px;
  font-size: 11px;
  font-weight: 750;
}
.notice {
  border: 1px solid #d7e8e2;
  background: #f2fbf7;
  padding: 13px 15px;
  border-radius: 11px;
  color: #315b51;
  font-size: 12px;
  line-height: 1.65;
}
.notice.amber {
  background: #fffaf0;
  border-color: #efd8ac;
  color: #88612f;
}
.notice.red {
  background: #fff8f7;
  border-color: #efcac4;
  color: #934c43;
}
.input,
.select,
.textarea {
  border: 1px solid #dce4e5;
  border-radius: 9px;
  padding: 10px 12px;
  min-height: 39px;
  background: white;
  color: var(--ink);
  width: 100%;
  font-size: 12px;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: #5bada0;
  outline: 2px solid #e1f3ec;
}
.textarea {
  resize: vertical;
  min-height: 83px;
}
.label {
  display: block;
  color: #66777b;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}
.field {
  min-width: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.filter-row {
  display: flex;
  align-items: end;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.filter-row .field {
  flex: 1;
  min-width: 150px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  padding: 7px 11px;
  border: 1px solid #d3e0df;
  border-radius: 999px;
  background: #fff;
  color: #53696a;
  font-weight: 750;
  font-size: 11px;
}
.chip.on {
  background: #e2f3ec;
  border-color: #73b59e;
  color: #086657;
}
.chip:hover {
  border-color: #75b39f;
}
.group-wrap {
  display: grid;
  gap: 13px;
}
.group-line {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 11px;
  align-items: start;
  border-top: 1px solid #f0f2f2;
  padding-top: 12px;
}
.group-title {
  font-size: 11px;
  font-weight: 850;
  margin-top: 5px;
}
.group-sub {
  font-size: 10px;
  color: var(--sub);
  line-height: 1.6;
  margin: 3px 0 6px;
}
.bar-chart {
  height: 204px;
  display: flex;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 8px 8px 0;
}
.bar-col {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  flex: 1;
  height: 100%;
  min-width: 0;
  gap: 6px;
}
.bar-plot {
  height: 170px;
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
}
.bar {
  background: #9fcfc0;
  border-radius: 6px 6px 0 0;
  width: min(34px, 40%);
  min-height: 2px;
  position: relative;
}
.bar.secondary {
  background: #d4e3e9;
}
.bar-value {
  font-size: 10px;
  font-weight: 800;
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  color: #3c6058;
}
.bar-label {
  font-size: 10px;
  color: var(--sub);
  white-space: nowrap;
}
.chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  font-size: 11px;
  color: var(--sub);
  margin-top: 12px;
}
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #9fcfc0;
  border-radius: 3px;
  margin-right: 5px;
}
.legend-dot.blue {
  background: #d4e3e9;
}
.quicktabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.quicktab {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 14px;
  background: white;
  font-size: 12px;
  font-weight: 800;
  color: var(--sub);
}
.quicktab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.badge-count {
  font-size: 10px;
  display: inline-block;
  margin-left: 7px;
  border-radius: 8px;
  background: #edf1f1;
  padding: 2px 6px;
  color: #53616b;
}
.quicktab.active .badge-count {
  background: #ffffff29;
  color: #e9f8f6;
}
.backlog {
  border: 1px solid #eed6b2;
  background: #fff8ec;
  color: #92682b;
  border-radius: 9px;
  padding: 11px 13px;
  line-height: 1.5;
  font-size: 11px;
  margin-bottom: 14px;
}
.empty {
  text-align: center;
  padding: 45px 15px;
  color: var(--sub);
}
.empty .big {
  font-size: 33px;
  display: block;
  margin-bottom: 12px;
}
.empty strong {
  font-size: 15px;
  color: var(--ink);
}
.empty p {
  font-size: 12px;
}
.mini-stat {
  background: #f7faf9;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 10px;
}
.mini-val {
  font-size: 21px;
  font-weight: 850;
  margin: 5px 0;
}
.filebox {
  border: 1.5px dashed #afccc4;
  border-radius: 12px;
  background: #f8fdfa;
  padding: 18px;
  text-align: center;
}
.filebox input {
  max-width: 100%;
  font-size: 12px;
}
.filebox small {
  display: block;
  color: var(--sub);
  margin-top: 8px;
  line-height: 1.5;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.report-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.report-box .title {
  font-weight: 850;
  font-size: 12px;
}
.report-box p {
  color: var(--sub);
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}
.import-meta {
  font-size: 10px;
  line-height: 1.6;
  color: var(--teal);
}
.modal-shade {
  position: fixed;
  inset: 0;
  background: #0d1e2bb5;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}
.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 26px 100px #06101d55;
  max-height: 94vh;
  overflow-y: auto;
}
.modal-head {
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.modal-head h3 {
  font-size: 19px;
  margin: 0;
}
.modal-head p {
  margin: 5px 0 0;
  color: var(--sub);
  font-size: 12px;
}
.modal-body {
  padding: 19px 22px;
}
.modal-foot {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.outcome-opt {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.outcome-opt:has(input:checked) {
  background: #ecf8f3;
  border-color: #4e9f8c;
  color: #0e6d5c;
}
.outcome-opt input {
  accent-color: var(--teal);
}
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #3a4b53;
  font-weight: 700;
  line-height: 1.5;
}
.checkline input {
  accent-color: var(--teal);
}
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 150;
  padding: 12px 15px;
  border-radius: 11px;
  background: var(--navy);
  color: white;
  box-shadow: 0 12px 35px #0003;
  min-width: 180px;
  max-width: 420px;
  font-size: 12px;
  display: none;
}
.toast.show {
  display: block;
}
.right {
  margin-left: auto;
}
.footer-note {
  color: #8d9ba1;
  font-size: 11px;
  margin-top: 26px;
  line-height: 1.6;
}
.mobile-menu {
  display: none;
}
.hide {
  display: none !important;
}
.subtitle {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.55;
}
.download-note {
  font-size: 11px;
  color: #77878d;
}
.stock-qty {
  font-weight: 850;
}
.stock-qty.low {
  color: #bc5a4a;
}
.stock-qty.ok {
  color: #0e7968;
}
@media (max-width: 1170px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .campaign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .call-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-card {
    position: static;
  }
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 880px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
    height: auto;
    min-height: 0;
    padding: 13px 16px;
    gap: 0;
  }
  .brand {
    border-bottom: 0;
    padding: 0;
  }
  .side-label,
  .sidebar .menu,
  .side-bottom {
    display: none;
  }
  .sidebar.show .menu {
    display: grid;
    margin-top: 16px;
  }
  .header {
    padding: 17px 20px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .body {
    padding: 22px 20px 65px;
  }
  .header h1 {
    font-size: 20px;
  }
  .header-right {
    gap: 6px;
  }
  .role-wrap {
    padding: 4px;
  }
  .role-wrap span {
    display: none;
  }
  .role-wrap select {
    min-width: 125px;
  }
  .page-header h2 {
    font-size: 21px;
  }
}
@media (max-width: 610px) {
  .stats,
  .campaign-grid,
  .report-grid,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .header-right {
    justify-content: space-between;
    width: 100%;
  }
  .card {
    padding: 15px;
  }
  .page-header {
    flex-direction: column;
  }
  .customer-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .group-line {
    grid-template-columns: minmax(0, 1fr);
  }
  .customer-card {
    padding: 14px;
  }
  .customer-foot {
    align-items: flex-start;
  }
  .modal-shade {
    padding: 8px;
  }
  .modal-head,
  .modal-body,
  .modal-foot {
    padding: 14px;
  }
  .outcome-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.review-input-block {
  background: #f7fbfa;
  border: 1px solid #d8e8e2;
  border-radius: 11px;
  padding: 14px;
  margin-top: 18px;
}
.rating-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.rating-choice {
  border: 1px solid #c8d8d5;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.rating-choice:has(input:checked) {
  border-color: #0f7768;
  background: #eaf6f1;
  color: #0c5e54;
}
.rating-choice input {
  accent-color: #107c6e;
  margin: 0;
}
.review-stars {
  letter-spacing: 1px;
  color: #e4a544;
  font-size: 13px;
  white-space: nowrap;
}
.review-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  background: #fffbef;
  border: 1px solid #f0e5be;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 9px;
}
.review-preview .tiny {
  color: #6b6152;
}
.modal {
  max-height: 91vh;
  overflow: auto;
}
.call-timer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #f1f8f5;
  border: 1px solid #bfded2;
  border-radius: 10px;
  margin-top: 12px;
  padding: 11px 13px;
}
.call-timer.running {
  background: #edf9f5;
  border-color: #55b79c;
  box-shadow: 0 0 0 1px #b7e0d2 inset;
}
.timer-label {
  font-size: 11px;
  font-weight: 750;
  color: #577b70;
}
.timer-clock {
  font-weight: 850;
  font-size: 20px;
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
  color: #0f7161;
  line-height: 1.2;
}
.call-timer.running .timer-clock {
  color: #085849;
}
.timer-hint {
  font-size: 10px;
  color: #637b73;
  margin-top: 3px;
}
.timer-stop {
  background: #b54942 !important;
  border-color: #b54942 !important;
  color: #fff !important;
}
.global-timer {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #a6d6c9;
  background: #eaf7f1;
  border-radius: 10px;
  padding: 5px 7px 5px 11px;
  font-size: 11px;
  font-weight: 750;
}
.global-timer .live-timer {
  color: #0b7664;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 850;
}
.time-badge {
  font-size: 11px;
  color: #187263;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 610px) {
  .call-timer {
    align-items: flex-start;
  }
  .timer-clock {
    font-size: 18px;
  }
  .global-timer {
    width: 100%;
    justify-content: space-between;
  }
}

/* Inline SKU availability: quantity and the age of the actual 473 upload */
.inline-stock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 200px;
  max-width: 280px;
  padding: 8px 13px;
  border: 1px solid #a5d5c8;
  border-radius: 11px;
  background: #effaf5;
  gap: 2px;
  line-height: 1.3;
}
.inline-stock .inline-stock-primary {
  font-size: 14px;
  font-weight: 850;
  color: #096d60;
  white-space: nowrap;
}
.inline-stock .inline-stock-item {
  font-size: 10px;
  color: #456a66;
  white-space: normal;
  overflow-wrap: anywhere;
}
.inline-stock .inline-stock-age {
  font-size: 10px;
  color: #3c6c61;
  font-weight: 650;
}
.inline-stock.stock-warning {
  border-color: #edd0a0;
  background: #fff7eb;
}
.inline-stock.stock-warning .inline-stock-primary,
.inline-stock.stock-warning .inline-stock-age {
  color: #96611f;
}
.inline-stock.stock-danger {
  border-color: #e9b0a8;
  background: #fff2ee;
}
.inline-stock.stock-danger .inline-stock-primary,
.inline-stock.stock-danger .inline-stock-age {
  color: #aa4135;
}
.inline-stock.stock-unverified {
  border-color: #d6dfe1;
  background: #f5f7f7;
}
.inline-stock.stock-unverified .inline-stock-primary,
.inline-stock.stock-unverified .inline-stock-age {
  color: #5b6c73;
}
.stock-upload-status {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #f2f8f6;
  border: 1px solid #d6e7e1;
  font-size: 12px;
  color: #35685f;
}
.stock-upload-status.stock-warning {
  background: #fff8ed;
  border-color: #f1dcb9;
  color: #986122;
}
.stock-upload-status.stock-unverified {
  background: #f7f8f8;
  border-color: #e1e5e8;
  color: #65757d;
}
.stock-age-small {
  font-size: 10px;
  color: #63777e;
  white-space: nowrap;
}
.stock-age-small.stock-warning {
  color: #aa6b23;
}
.stock-age-small.stock-danger {
  color: #b74d3e;
}
.stock-age-small.stock-unverified {
  color: #6d7b7d;
}
@media (max-width: 650px) {
  .inline-stock {
    min-width: 160px;
    flex: 1 1 180px;
    max-width: 100%;
  }
  .customer-actions {
    width: 100%;
  }
}

.login {
  max-width: 430px;
  margin: 10vh auto;
}
.field {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.field input,
.field select,
.field textarea {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
}
.error {
  color: #a32b25;
  background: #fff0ed;
  padding: 12px;
  border-radius: 8px;
}
.notice {
  padding: 12px;
  background: #fff4e7;
  border-radius: 8px;
  margin: 12px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.empty {
  padding: 28px;
  text-align: center;
  color: var(--sub);
}
.body table {
  min-width: 650px;
}
.modal-panel {
  max-height: 90vh;
  overflow: auto;
}
code {
  overflow-wrap: anywhere;
}
.status {
  color: var(--teal);
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    min-height: auto;
    padding: 14px;
  }
  .menu {
    display: flex;
    overflow: auto;
  }
  .nav {
    flex-shrink: 0;
  }
  .brand {
    padding-bottom: 10px;
  }
  .side-label,
  .side-bottom {
    display: none;
  }
  .header {
    flex-wrap: wrap;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 880px) {
  .sidebar .menu {
    display: flex;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 6px;
    gap: 5px;
  }
  .sidebar .menu .nav {
    flex: 0 0 auto;
    min-height: 42px;
  }
  .sidebar {
    max-width: 100vw;
  }
  .brand {
    padding: 0;
  }
  .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  }
}
.modal-panel {
  width: min(760px, 100%);
}

/* Import status and errors remain readable at every viewport width. */
#jobs, .history-files {
  display: grid;
  gap: 16px;
}
.import-job, .history-file {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
}
.import-job-head, .import-job-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.import-job-head > div, .history-selection {
  flex: 1 1 300px;
  min-width: 0;
}
.import-job h4, .import-issue h4 {
  margin: 5px 0 12px;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.import-state {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 20px;
  color: #195e51;
  background: #eaf5f0;
  font-size: 13px;
  font-weight: 700;
}
.import-state.is-failed {
  color: #9d2921;
  background: #fff0ed;
}
.import-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 15px 0;
}
.import-counts > div {
  padding: 12px;
  border-radius: 8px;
  background: #f5f8f7;
}
.import-counts span, .import-counts strong {
  display: block;
}
.import-counts span {
  color: var(--sub);
  font-size: 12px;
}
.import-counts strong {
  margin-top: 4px;
  font-size: 22px;
}
.import-result {
  display: block;
  width: 100%;
  margin: 14px 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.import-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.import-actions .btn {
  white-space: normal;
}
.import-notes {
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.import-notes summary, .import-issue summary {
  cursor: pointer;
  font-weight: 650;
}
.history-selection {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-wrap: anywhere;
}
.history-selection input {
  margin-top: 6px;
  flex: 0 0 auto;
}
.history-period {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 230px));
  gap: 14px;
}
.history-period input {
  width: 100%;
  min-width: 0;
}
.import-issue-dialog, .import-filename {
  min-width: 0;
  overflow-wrap: anywhere;
}
.import-issue-dialog {
  font-size: 15px;
  line-height: 1.6;
}
.import-issue {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.source-values {
  display: grid;
  gap: 10px;
}
.billing-values {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.source-values > div {
  padding: 10px;
  background: #f5f8f7;
  border-radius: 7px;
  min-width: 0;
}
.source-values dt {
  font-weight: 650;
  color: var(--sub);
}
.source-values dd {
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .import-job, .history-file {
    padding: 16px;
  }
  .import-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .import-job-head > div, .history-selection {
    flex-basis: 100%;
  }
  .history-period {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .import-issue-dialog .import-actions .btn {
    width: 100%;
  }
}

.segment-picker { margin: 24px 0; border: 1px solid var(--line, #dce5e8); border-radius: 12px; padding: 18px; min-width: 0; }
.segment-picker legend { font-weight: 700; padding: 0 8px; }
.segment-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr)); gap: 12px; margin: 16px 0; }
.segment-option { display: flex; align-items: flex-start; gap: 10px; background: #f3f7f6; padding: 14px; border-radius: 8px; }
.segment-option input { flex-shrink: 0; margin-top: 4px; }
.segment-option small { display: block; color: #526576; margin-top: 6px; line-height: 1.5; }
#campaign-preview { overflow-wrap: anywhere; }

.calling-form { max-width: 1180px; }
.calling-form [hidden] { display: none !important; }
.calling-step { padding: 20px 0; border-bottom: 1px solid var(--line, #dce5e8); }
.calling-step:first-child { padding-top: 0; }
.calling-step:last-child { border-bottom: 0; padding-bottom: 0; }
.calling-step h3 { margin: 0 0 14px; }
.calling-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 18px; align-items: start; }
.calling-fields .field { margin: 0; }
.field-help { color: #526576; font-size: 13px; line-height: 1.6; margin: 10px 0; }
.calling-step .segment-picker { margin: 0; }
.caller-choices { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 0 0 18px; }
.caller-choices label { display: inline-flex; gap: 8px; align-items: center; }
.calling-advanced { margin-top: 16px; padding: 14px; background: #f5f8f7; border-radius: 8px; }
.calling-advanced summary { cursor: pointer; font-weight: 600; }
#campaign-feedback { margin: 12px 0; line-height: 1.7; }
#campaign-preview { margin-top: 18px; }
#campaign-approval { margin-top: 20px; padding: 16px; background: #f1f7f5; border-radius: 8px; }
@media(max-width:760px) { .calling-fields { grid-template-columns: 1fr; } .calling-form { padding: 18px; } }

#age-filter, #stock-filter { align-items: center; }
#age-filter .btn, #stock-filter .btn { align-self: center; }
.stock-readiness { margin-bottom: 16px; }

.agenda-store-list, .agenda-route-stores { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin:16px 0; }
.agenda-store-list label, .agenda-route-stores label { display:flex; gap:8px; align-items:flex-start; line-height:1.5; }
.agenda-route { border:1px solid var(--line,#dce5e8); border-radius:10px; padding:16px; margin:16px 0; min-width:0; }
.agenda-route legend { font-weight:700; padding:0 6px; }
.agenda-route .field { max-width:320px; }

/* Caller conversation workspace: dated products beside one readable review field. */
.last-store-purchase { margin: 18px 0; border-top: 1px solid var(--line); padding-top: 12px; }
.last-store-purchase h4, .workspace-products h4 { margin: 8px 0 12px; }
.purchased-item { margin: 12px 0; }
.workspace-product { padding: 12px; margin: 8px 0; background: #f5f8f8; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.workspace-product p { margin: 7px 0; line-height: 1.5; }
.workspace-product.has-offer { border-color: #82b6a7; background: #edf8f3; }
.regular-price { text-decoration: line-through; color: var(--sub); }
.offer-price, .offer-terms { color: #176b51; }
.danger-stock { color: #9b3b13; font-weight: 700; }
.product-review { color: #8c521b; font-size: 13px; }
.modal-panel.caller-workspace { width: min(1140px, 100%); max-height: 94vh; max-height: 94dvh; padding: 22px; }
.workspace-contact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.workspace-contact [role=alert] { width: 100%; margin: 0; color: #b42318; }
.caller-workspace-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
.workspace-reference, #outcome-form { min-width: 0; }
#outcome-form { position: sticky; top: 0; background: white; padding: 8px; }
#outcome-form .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.review-field { margin: 18px 0; font-weight: 700; }
.review-field textarea { min-height: 200px; width: 100%; font-size: 17px; line-height: 1.6; padding: 14px; resize: vertical; }
#workspace-draft textarea { width: 100%; font-size: 16px; line-height: 1.5; }
.workspace-save { margin-top: 16px; }
.workspace-save button { width: 100%; min-height: 46px; }
@media(max-width:760px) {
  .caller-workspace-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  #outcome-form { position: static; padding: 0; }
  .caller-workspace .customer-actions { width: 100%; gap: 8px; }
  .caller-workspace .customer-actions .btn { min-height: 44px; flex: 1 1 auto; text-align: center; }
  .modal-panel.caller-workspace { padding: 14px; }
  .caller-workspace input, .caller-workspace select, .caller-workspace textarea { font-size: 16px; }
}
#workspace-catalog { max-height: 520px; overflow: auto; padding-right: 5px; }
#workspace-last-purchase { max-height: 420px; overflow: auto; }
@media(max-width:760px) { #workspace-catalog { max-height: 360px; } #workspace-last-purchase { max-height: 320px; } }

.review-field textarea { font-weight: 400; }
#workspace-draft textarea { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.caller-workspace h3 { font-size: 22px; line-height: 1.35; }
.caller-workspace h4 { font-size: 16px; }
.caller-workspace > #close-modal { position: sticky; top: 0; z-index: 5; background: white; }
/* Dense caller queue and compact quote reference. */
.compact-call-list { display: grid; gap: 8px; }
.customer-card.caller-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; margin: 0; border-radius: 9px; }
.caller-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.caller-list-row .btn { flex: 0 0 auto; min-height: 42px; }
.caller-workspace > #close-modal { float: left; margin-left: 0; margin-right: 16px; }
.workspace-identity, .workspace-metrics { color: var(--sub); margin: 6px 0; font-size: 13px; }
.product-heading, .product-quote { display: flex; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; }
.workspace-product { padding: 10px 12px; margin: 6px 0; }
.workspace-product p { margin: 5px 0; }
.purchased-item { margin: 10px 0; }
.product-source { font-size: 11px; color: var(--sub); margin-top: 5px; }
.product-source summary { cursor: pointer; }
.product-review { font-size: 11px; margin: 4px 0; }
.last-price { font-size: 12px; }
.price-drop, .offer-label { color: #16714e; font-weight: 700; }
.price-rise { color: #9a4d14; }
.offer-label { background: #dcf4e7; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.target-score { font-size: 22px; margin: 12px 0; }
.target-score strong { font-size: 36px; }
.target-progress progress { width: 100%; height: 20px; accent-color: #16714e; margin-bottom: 20px; }
#daily-targets input { width: 90px; min-width: 70px; }
#workspace-search { display: flex; align-items: flex-end; gap: 8px; margin: 12px 0; }
#workspace-search .field { flex: 1; min-width: 0; margin: 0; }
#workspace-search button { flex: 0 0 auto; min-height: 42px; padding: 10px 16px; }

/* Daily caller results and supervisor totals. */
.performance-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:18px 0; }
.performance-metric { padding:20px; min-width:0; }
.performance-metric h3 { font-size:15px; line-height:1.4; min-height:42px; }
.metric-value { font-size:28px; font-weight:750; overflow-wrap:anywhere; }
.metric-value small { display:block; font-size:21px; margin-top:8px; }
.performance-metric p { font-size:13px; line-height:1.5; }
.manual-metric { display:grid; gap:12px; margin-top:18px; }
.manual-metric label { display:grid; gap:6px; font-size:14px; }
.manual-metric input { width:100%; min-width:0; font-size:16px; }
.manual-metric .btn { min-height:44px; white-space:normal; }
.manual-metric [role=status] { overflow-wrap:anywhere; }
.results-caller-options { display:flex; flex-wrap:wrap; gap:16px; margin:20px 0; }
#caller-results-filter { margin-bottom:18px; }
#caller-results-filter fieldset { border:0; padding:0; }
.results-breakdown,.target-settings { margin:18px 0; }
.target-settings summary { font-weight:700; cursor:pointer; margin-bottom:16px; }
@media(max-width:1200px) { .performance-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:850px) { .performance-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .performance-metrics { grid-template-columns:minmax(0,1fr); } .performance-metric h3 { min-height:0; } }
#daily-filter { align-items:flex-end; }
#daily-filter .field { margin:0; }
#daily-filter .btn { min-height:44px; }
.manual-metric input,#daily-targets input { min-height:44px; padding:10px; border:1px solid var(--line); border-radius:8px; font-size:16px; }
#daily-targets table { min-width:0; }
#daily-targets th { white-space:normal; }

/* Daily 05:00 IST report checklist. */
.daily-report-checklist { margin:20px 0; }
.report-checklist-heading,.report-checklist-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.report-checklist-heading h3 { margin:0; }
.report-checklist-actions { display:flex; gap:8px; flex-wrap:wrap; }
.report-checklist-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.report-checklist-item { border:1px solid var(--line); border-left:4px solid #ca721b; border-radius:10px; padding:16px; min-width:0; }
.report-checklist-item h4 { font-size:15px; margin:0; }
.report-checklist-item p,.report-checklist-item li { font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.report-checklist-item.is-ready { border-left-color:#16714e; }
.report-checklist-item.is-processing { border-left-color:#377b9d; }
.report-checklist-badge { font-size:12px; padding:5px 8px; background:#fff4e7; border-radius:8px; color:#865114; }
.is-ready .report-checklist-badge,.report-checklist-complete { background:#e8f4ef; color:#16644c; }
.is-processing .report-checklist-badge { background:#eaf3fa; color:#24627f; }
.report-checklist-complete { padding:12px; border-radius:8px; }
.report-missing-periods { padding-left:20px; }
.report-checklist-item summary { cursor:pointer; font-size:13px; color:var(--sub); }
@media(max-width:760px) { .report-checklist-grid { grid-template-columns:minmax(0,1fr); } .report-checklist-actions .btn { min-height:44px; } }

.import-job:has(.import-compact:not([open])) { padding:14px 18px; margin-bottom:8px; }
.import-compact > summary { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 18px; cursor:pointer; list-style:revert; }
.import-compact > summary strong { overflow-wrap:anywhere; font-size:14px; }
.import-compact > summary span { font-size:12px; color:var(--sub); }
.import-compact[open] > summary { margin-bottom:20px; }

.saved-coverage-period { margin:14px 0; padding:16px; border:1px solid var(--line); border-radius:10px; min-width:0; }
.saved-coverage-period p { overflow-wrap:anywhere; }
.coverage-check { display:flex; align-items:flex-start; gap:8px; line-height:1.5; margin:14px 0; }
.coverage-check input { flex-shrink:0; margin-top:4px; }
.saved-coverage-period input { max-width:100%; min-height:44px; font-size:16px; }

.caller-trend { width:160px; height:48px; display:block; }
#range-targets input[type=number] { width:100px; min-height:44px; }

.results-breakdown th { white-space:normal; min-width:78px; padding:12px 8px; }
.results-breakdown td { padding:10px 8px; }

/* Each compact card follows the same source-upload, then confirmation sequence. */
.report-checklist-heading p { margin:6px 0 12px; font-size:13px; color:var(--sub); }
.report-checklist-item { padding:14px; display:flex; flex-direction:column; gap:9px; background:#fff; }
.report-checklist-item p { margin:0; line-height:1.45; }
.report-checklist-row { align-items:center; gap:8px; flex-wrap:nowrap; }
.report-checklist-item h4 span { font-weight:600; }
.report-checklist-badge { white-space:nowrap; font-size:11px; padding:4px 7px; }
.report-card-confirmed { font-size:12px!important; }
.report-card-confirmed > span { color:var(--sub); margin-right:6px; }
.report-card-needed { font-size:12px!important; }
.report-card-file { color:var(--sub); font-size:11px!important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.overview-report-upload { display:grid; gap:8px; margin:0; margin-top:auto; }
.report-file-picker { display:flex; align-items:center; gap:8px; padding:7px 9px; border:1px solid var(--line); border-radius:7px; font-size:12px; }
.report-file-picker > span { white-space:nowrap; }
.report-file-picker input { min-width:0; max-width:100%; padding:0; border:0; border-radius:0; font-size:12px; width:100%; }
.report-file-picker input::file-selector-button { cursor:pointer; border:0; border-radius:4px; padding:5px 7px; background:#edf5f3; color:#16644c; }
.report-card-steps { display:flex; gap:7px; flex-wrap:wrap; }
.report-card-steps .btn { min-height:40px; padding:8px 10px; font-size:11px; line-height:1.3; flex:1 1 auto; display:flex; align-items:center; justify-content:center; gap:5px; }
.report-card-steps .btn span { display:inline-grid; place-items:center; border:1px solid currentColor; border-radius:50%; width:17px; height:17px; flex:none; font-size:10px; }
.report-card-steps .btn:disabled { opacity:.48; cursor:default; }
.report-card-status { font-size:12px!important; color:var(--sub); min-height:18px; overflow-wrap:anywhere; }
.report-checklist-item details { border-top:1px solid var(--line); padding-top:7px; }
.report-checklist-item details p { margin:7px 0; }
.report-checklist-item summary { font-size:12px; }
.report-checklist-basis { margin-top:12px; font-size:12px; color:var(--sub); }
@media(max-width:480px) { .report-file-picker { align-items:flex-start; flex-direction:column; } .report-card-steps { flex-direction:column; } .report-card-steps .btn { width:100%; min-height:44px; font-size:12px; } }

/* Read-only upload review; operational upload/confirmation remains in Overview. */
.review-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.review-heading h3,.review-heading h4 { margin:0; }
.review-heading small,.review-label { color:var(--sub); font-weight:400; }
#review-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }
.review-report { padding:14px; border:1px solid var(--line); border-left:3px solid #ca721b; border-radius:10px; min-width:0; }
.review-report.is-ready { border-left-color:#16714e; }.review-report.is-working { border-left-color:#377b9d; }
.review-badge { font-size:12px; padding:4px 8px; border-radius:6px; background:#fff4e7; color:#865114; }
.is-ready .review-badge { background:#e8f4ef; color:#16644c; }.is-working .review-badge { background:#eaf3fa; color:#24627f; }
.review-columns { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:14px 0; }
.review-columns > div { display:grid; gap:5px; align-content:start; }.review-columns strong { font-size:13px; }.review-columns small,.review-label { font-size:12px; }
.review-report p { font-size:13px; line-height:1.5; }.review-retained { background:#f1f7f6; padding:8px; border-radius:6px; }
.review-next { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; margin:10px 0; }
.review-report details { border-top:1px solid var(--line); padding-top:8px; font-size:12px; }.review-report summary,#review-history > summary,#review-advanced > summary { cursor:pointer; }
.review-filename,.review-detail { overflow-wrap:anywhere; }.review-filename { color:var(--sub); }.review-detail p { font-size:12px; }
.review-filters { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin:16px 0; }.review-filters .field { flex:1 1 170px; min-width:0; }.review-filters input,.review-filters select { max-width:100%; }
.review-history-item { padding:12px 0; border-bottom:1px solid var(--line); }.review-history-item summary { display:flex; align-items:center; gap:12px; flex-wrap:wrap; cursor:pointer; font-size:13px; }.review-history-item summary small { margin-left:auto; color:var(--sub); }
.review-pager { display:flex; gap:12px; align-items:center; justify-content:space-between; margin-top:16px; font-size:13px; }
@media(max-width:760px) { #review-summary { grid-template-columns:minmax(0,1fr); }.review-columns { grid-template-columns:minmax(0,1fr); }.review-history-item summary small { margin-left:0; }.review-heading .btn,.review-next .btn { min-height:44px; }.review-filters .btn { min-height:44px; } }
#review-summary { grid-template-columns:minmax(0,1fr); }
.review-report { display:grid; grid-template-columns:1.05fr 1.25fr 1.1fr 1fr; gap:12px 18px; align-items:start; }
.review-report > .review-heading { flex-direction:column; align-items:flex-start; gap:7px; }
.review-columns { display:contents; }.review-columns > div { min-width:0; }
.review-report > .review-next { margin:0; flex-direction:column; align-items:flex-start; }
.review-report > details,.review-report > p { grid-column:1/-1; margin:0; }
#review-error:empty { display:none; }
@media(max-width:760px) { .review-report { display:block; }.review-report > .review-heading { flex-direction:row; align-items:center; }.review-columns { display:grid; grid-template-columns:1fr 1fr; margin:14px 0; }.review-report > .review-next { margin:10px 0; flex-direction:row; align-items:center; }.review-report > details { margin-top:10px; }.review-report > p { margin:10px 0; } }
@media(max-width:440px) { .review-columns { grid-template-columns:minmax(0,1fr); } }
@media(min-width:761px) { .review-report > .review-heading { grid-column:1; grid-row:1; }.review-columns > div:first-child { grid-column:2; grid-row:1; }.review-columns > div:last-child { grid-column:3; grid-row:1; }.review-report > .review-next { grid-column:4; grid-row:1; } }

/* Compact task workspaces, with daily navigation separate from Settings and Help. */
.menu .nav-secondary { font-size:12px; color:#b9cbd0; }
.menu .nav-secondary[data-nav=admin] { margin-top:22px; border-top:1px solid #354954; padding-top:14px; }
.workspace-tabs { display:flex; gap:8px; flex-wrap:wrap; border-bottom:1px solid var(--line); padding-bottom:12px; margin-bottom:20px; }
.workspace-tabs .btn { min-height:42px; }
.customer-link { border:0; padding:0; background:none; color:#137969; text-align:left; font:inherit; font-weight:600; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.customer-feedback { font-size:15px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; max-width:600px; }
.context-downloads { margin-top:20px; }.context-downloads > summary,.context-downloads details > summary { cursor:pointer; }.context-downloads details { margin-top:15px; }
.context-export-list { display:flex; gap:10px; flex-wrap:wrap; padding-top:12px; }
.help-basics p { line-height:1.7; }.help-basics + details > summary { cursor:pointer; }
@media(max-width:760px) { .workspace-tabs { gap:6px; }.workspace-tabs .btn { flex:1 1 auto; min-height:44px; font-size:12px; }.menu .nav-secondary[data-nav=admin] { margin-top:0; border:0; padding-top:12px; }.customer-link { min-height:36px; }.context-export-list .btn { min-height:44px; } }
/* Calling status uses normal block layout so notices cannot cover the status text. */
.calling-status { display:flex; flex-direction:column; gap:7px; min-width:190px; max-width:300px; white-space:normal; line-height:1.5; overflow-wrap:anywhere; }
.calling-status strong { font-size:13px; }.calling-status small { display:block; padding:7px 9px; border-radius:6px; background:#fff5e9; color:#6e501f; font-size:12px; }
.call-history-filter,.assignment-filter { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:14px; margin-bottom:18px; }
.call-history-filter .field,.assignment-filter .field { margin:0; }.call-history-filter input,.call-history-filter select,.assignment-filter select { min-height:42px; width:100%; }
.call-filter-actions { display:flex; gap:8px; align-items:center; }.call-filter-actions .btn,.assignment-filter>.btn { height:42px; min-height:42px; padding:9px 18px; align-self:end; }
#call-filter > label:not(.field) { align-self:center; font-size:13px; }.call-history-results table { font-size:13px; }.call-history-results td { vertical-align:top; line-height:1.5; }
#history-workbook .toolbar { align-items:end; }#history-workbook .toolbar button { height:42px; min-height:42px; padding:9px 18px; flex:none; align-self:end; }#history-workbook .field { margin:0; }
.danger-outline { border-color:#d8aaa5; color:#a1362b; }.assignment-actions { display:flex; gap:8px; flex-wrap:wrap; }.assignment-actions .btn { min-height:40px; }
.practice-badge { display:inline-block; background:#eee9ff; color:#514184; padding:4px 7px; border-radius:6px; font-size:11px; }.practice-setup { margin:16px 0; border-left:3px solid #7864a6; }.practice-setup > summary { cursor:pointer; font-weight:650; }
.practice-explanation { font-size:13px; line-height:1.6; }.practice-callers { display:flex; gap:12px; flex-wrap:wrap; margin:12px 0; }.practice-create-actions { display:flex; gap:12px; align-items:end; margin-top:12px; }.practice-create-actions .field { margin:0; }.practice-create-actions .btn { height:42px; min-height:42px; }.practice-banner { border-left:4px solid #7864a6; }.practice-list { margin-bottom:16px; }.practice-workspace { border-top:5px solid #7864a6; }
@media(max-width:760px) { .call-history-filter,.assignment-filter { grid-template-columns:minmax(0,1fr); gap:12px; }.call-filter-actions .btn,.assignment-filter>.btn,#history-workbook .toolbar button { height:44px; min-height:44px; }.practice-create-actions { flex-wrap:wrap; }.practice-create-actions .btn { min-height:44px; height:auto; }.calling-status { min-width:170px; max-width:240px; }.assignment-actions .btn { min-height:44px; } }
.assigned-page-actions { display:flex; justify-content:flex-end; margin:0 0 14px; }
.context-export-list .btn { min-height:42px; }
@media(max-width:760px) { .context-export-list .btn { min-height:44px; }.assigned-page-actions .btn { min-height:44px; } }

/* Caller WhatsApp: compact bill entry and retained, readable order history. */
.whatsapp-summary { display:grid; grid-template-columns:2fr 1fr; gap:16px; margin:18px 0; }
.whatsapp-summary .card { margin:0; padding:20px; }.whatsapp-summary h3 { margin:0 0 12px; }
.whatsapp-summary .metric-value { font-size:28px; font-weight:750; line-height:1.5; }
.whatsapp-summary .metric-value>small { display:block; font-size:20px; }
.whatsapp-nob { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.metric-value .verified-inline,.verified-inline { display:inline; font-size:13px; font-weight:500; color:var(--sub); white-space:nowrap; }
.whatsapp-entry-grid { display:grid; grid-template-columns:2fr 1fr; gap:16px; align-items:start; }
.whatsapp-entry-grid .card { margin:0 0 18px; }.whatsapp-entry-grid .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.whatsapp-section-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:14px; }.whatsapp-section-head h3 { margin:0; }
.whatsapp-day { align-items:end; }.whatsapp-day .field { margin:0; }.whatsapp-day .btn,.whatsapp-form-actions .btn,#whatsapp-groups .btn { min-height:42px; align-self:end; }
.whatsapp-bill-details { margin:4px 0 16px; }.whatsapp-bill-details summary { font-size:13px; color:var(--sub); cursor:pointer; margin-bottom:12px; }.whatsapp-bill-details .field-help { margin:0; }
.whatsapp-form-actions { display:flex; gap:10px; flex-wrap:wrap; }.whatsapp-entry-grid input,.whatsapp-entry-grid select { width:100%; min-height:44px; }
.whatsapp-bill { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:18px; align-items:center; padding:14px 0; border-top:1px solid var(--line); font-size:14px; }
.whatsapp-bill small { display:block; color:var(--sub); font-size:12px; margin-top:5px; overflow-wrap:anywhere; line-height:1.5; }.whatsapp-bill-amount { text-align:right; }
.whatsapp-pending { display:block; margin-top:5px; color:#87521d; background:#fff4e7; border-radius:5px; padding:4px 7px; font-size:11px; }.whatsapp-bill .btn { min-height:40px; }
#whatsapp-result:empty { display:none; }#whatsapp-result { font-size:13px; line-height:1.6; }
@media(max-width:760px) { .whatsapp-summary,.whatsapp-entry-grid { grid-template-columns:minmax(0,1fr); gap:12px; }.whatsapp-entry-grid .form-grid { grid-template-columns:minmax(0,1fr); }.whatsapp-day .btn,.whatsapp-form-actions .btn,#whatsapp-groups .btn,.whatsapp-bill .btn { min-height:44px; }.whatsapp-bill { grid-template-columns:minmax(0,1fr) auto; gap:12px; }.whatsapp-bill .assignment-actions { grid-column:1/-1; }.whatsapp-summary .metric-value { font-size:26px; } }
.segment-group { background:#f0f7f5; border-radius:10px; padding:14px; margin-top:14px; }.segment-group h4 { margin:0 0 10px; color:#18796b; font-size:13px; text-transform:uppercase; letter-spacing:.05em; }.segment-group .segment-option { background:white; border:1px solid var(--line); align-items:flex-start; }.segment-group small { display:block; color:var(--sub); font-size:12px; margin-top:5px; line-height:1.5; }.result-verification { display:block; color:var(--sub); font-size:12px; margin-top:5px; }.results-breakdown td { white-space:nowrap; vertical-align:top; }.results-breakdown tbody tr:last-child { background:#e9f6f2; font-weight:650; }.results-breakdown .table-wrap { border-radius:10px; }.draft-options { display:flex; align-items:end; gap:10px; flex-wrap:wrap; margin-bottom:12px; }.draft-options .field { margin:0; }.draft-options .btn { min-height:42px; }.whatsapp-pending.is-verified { color:#176a4d; background:#e4f4ed; }
@media(max-width:760px) { .draft-options { display:block; }.draft-options .field { margin-bottom:10px; }.draft-options .btn { min-height:44px; }.segment-group { padding:10px; } }
.segment-group:last-of-type .segment-options { grid-template-columns:minmax(0,1fr); }
.results-breakdown table { font-size:13px; }.results-breakdown details { margin-top:12px; }.results-breakdown details>summary { cursor:pointer; font-size:13px; color:var(--sub); }
.whatsapp-review-note { grid-column:1/-1; margin:0; color:#87521d; font-size:12px; line-height:1.5; }
/* Additive, display-only store offers; existing stock/catalogue and outcome fields stay intact. */
.workspace-header-offers { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,390px); gap:18px; clear:both; margin-bottom:16px; }.workspace-header-identity { min-width:0; }.workspace-header-identity h3 { margin-top:0; }.running-offers { border:1px solid #9bbbe0; border-radius:9px; background:#f8fbff; overflow:hidden; }.running-offers-title { background:#eaf1fc; padding:9px 12px; display:flex; justify-content:space-between; align-items:start; gap:10px; }.caller-workspace .running-offers h4 { margin:0; font-size:13px; line-height:1.4; }.running-offers-title small { font-size:10px; white-space:nowrap; color:var(--sub); }.running-offers ul { list-style:none; padding:8px 12px; margin:0; max-height:140px; overflow-y:auto; }.running-offers li { display:flex; justify-content:space-between; gap:12px; font-size:12px; padding:4px 0; line-height:1.4; }.running-offers li span { min-width:0; overflow-wrap:anywhere; }.running-offers li strong { white-space:nowrap; }.running-offers-empty { font-size:13px; color:var(--sub); margin:12px; }.store-offer-upload h3 { margin:0 0 10px; }.store-offer-upload .toolbar { align-items:end; }.store-offer-upload .field { margin:0; }.store-offer-upload button { min-height:42px; }.r3-caller-instruction { border-left:3px solid #bb8d2a; padding:10px 12px; background:#fff8e9; font-size:13px; line-height:1.6; }
@media(max-width:760px) { .workspace-header-offers { grid-template-columns:minmax(0,1fr); gap:10px; }.running-offers-title { flex-wrap:wrap; }.store-offer-upload button { min-height:44px; }.running-offers ul { max-height:150px; } }

/* Caller table shares admin results cells, without admin totals or caller controls. */
.caller-results-table tbody tr:last-child { background:transparent; font-weight:400; }
.caller-results-table .table-wrap { overflow-x:auto; }
.caller-results-table table { min-width:1100px; }

/* v0.1.41: presentation-only conversation and call-history refinements. */
.modal-panel.caller-workspace {
  width:min(1240px,100%); padding:18px; color:#182d47;
  background:linear-gradient(145deg,#f5f8ff 0%,#fbfcff 55%,#f0f8f5 100%);
  border:1px solid #dfe7f2; border-radius:20px;
}
.caller-workspace > #close-modal { border-radius:10px; min-height:36px; padding:7px 14px; box-shadow:0 2px 5px #21385308; }
.caller-workspace .workspace-header-offers { grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr); gap:22px; margin:8px 0 16px; }
.caller-workspace .workspace-header-identity { padding:4px 0 0 72px; position:relative; }
.caller-workspace .workspace-header-identity::before {
 content:'☎'; display:grid; place-items:center; width:56px; height:56px; border-radius:50%;
 position:absolute; top:4px; left:0; font-size:32px; color:#009b65; background:#dcf5e9;
}
.caller-workspace .workspace-header-identity h3 { font-size:24px; margin:0 0 8px; letter-spacing:-.025em; }
.caller-workspace .workspace-identity { color:#475c76; line-height:1.5; overflow-wrap:anywhere; }
.caller-workspace .workspace-metrics { display:flex; gap:6px; flex-wrap:wrap; margin:12px 0; }
.caller-workspace .workspace-metrics span { padding:6px 9px; background:#eaf0f9; color:#29435e; border-radius:20px; font-size:11px; line-height:1.4; }
.caller-workspace .workspace-metrics span:first-child { background:#e5f5ee; color:#14624a; }
.caller-workspace .running-offers { background:white; border:1px solid #dbece4; border-radius:13px; box-shadow:0 3px 10px #1d38550a; }
.caller-workspace .running-offers-title { background:#e2f6ed; padding:10px 13px; align-items:center; flex-wrap:wrap; }
.caller-workspace .running-offers h4 { color:#173b38; font-size:12px; }
.caller-workspace .running-offers li { border-bottom:1px solid #edf1f6; padding:5px 0; }
.caller-workspace .running-offers li:last-child { border:0; }
.caller-workspace .workspace-contact { margin:12px 0 18px; gap:10px; padding:12px; border:1px solid #e3e9f3; border-radius:14px; background:white; box-shadow:0 4px 10px #1d385509; }
.caller-workspace .time-badge { color:#07754f; background:#e2f6ec; border:1px solid #cceedd; border-radius:10px; padding:10px 12px; font-variant-numeric:tabular-nums; }
.caller-workspace .customer-actions { gap:8px; flex-wrap:wrap; }
.caller-workspace .btn { border-color:#d5dfed; border-radius:10px; min-height:40px; font-size:12px; padding:9px 13px; text-decoration:none; }
.caller-workspace .btn.primary { color:white; background:#147c68; border-color:#147c68; }
.caller-workspace .workspace-contact [role=alert]:empty { display:none; }
.caller-workspace-grid { gap:14px; }
.caller-workspace #workspace-last-purchase, .caller-workspace #outcome-form {
 background:white; border:1px solid #dfe6f1; border-radius:14px; padding:16px;
 box-shadow:0 3px 8px #23375408;
}
.caller-workspace #workspace-last-purchase { margin-bottom:16px; }
.caller-workspace .last-store-purchase { margin:0; padding:0; border:0; }
.caller-workspace h4 { font-size:16px; margin:0 0 12px; letter-spacing:-.015em; }
.caller-workspace .last-store-purchase h4 { margin:0 0 14px; }
.caller-workspace .workspace-product { background:#f0f8f5; border-color:#d5eee2; padding:10px 12px; }
.caller-workspace #workspace-catalog .workspace-product { background:white; }
.caller-workspace .workspace-product.has-offer { background:#ebf8f1 !important; }
.caller-workspace #outcome-form { position:static; }
.caller-workspace #outcome-form .form-grid { gap:12px; }
.caller-workspace #outcome-form .field { font-size:13px; margin:0; }
.caller-workspace #outcome-form .field:has([name=followup_at]) { grid-column:1/-1; }
.caller-workspace input:not([type=checkbox]),.caller-workspace select { min-height:40px; border-radius:10px; border-color:#d5dfed; width:100%; min-width:0; padding:8px 10px; }
.caller-workspace .review-field { display:block; margin:16px 0 !important; }
.caller-workspace .review-field textarea { min-height:200px; font-size:16px; padding:12px; border-radius:10px; border-color:#d5dfed; }
.caller-workspace .field-help { font-size:12px; line-height:1.6; }
.caller-workspace #workspace-draft { background:white; border:1px solid #dfe6f1; border-radius:14px; padding:16px; margin:12px 0; }
.caller-workspace #workspace-search { gap:8px; align-items:end; }
.caller-workspace #workspace-search .field { flex:1; margin:0; }
/* Shared sidebar; page-content styles below remain scoped to Call History. */
.sidebar { background:linear-gradient(160deg,#0f1e34,#172c44); }
.menu button { border-radius:10px; }
.menu .nav.active { background:linear-gradient(110deg,#087a68,#105749); color:white; box-shadow:inset 3px 0 #6cdbc1; }
body:has(#call-filter) #body > .page-header { border:1px solid #e0e8f1; border-left:4px solid #12b97a; border-radius:13px; padding:18px 22px; background:linear-gradient(120deg,#fff 70%,#e9f5f2); box-shadow:0 3px 10px #243c5b08; margin-bottom:18px; }
body:has(#call-filter) .page-header h2 { font-size:24px; margin:4px 0; }
body:has(#call-filter) .page-header p { margin:4px 0; font-size:13px; }
#call-filter { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 14px; padding:16px 18px; border-color:#e0e8f1; border-radius:13px; box-shadow:0 3px 10px #243c5b08; }
#call-filter .call-filter-heading { grid-column:1/-1; margin:0 0 2px; font-size:14px; color:#20344e; }
#call-filter .field { gap:5px; font-size:12px; }
#call-filter input:not([type=checkbox]), #call-filter select { height:40px; min-height:40px; border-radius:9px; border-color:#d7e2ef; padding:7px 10px; min-width:0; background:#fcfdff; }
#call-filter > .call-filter-actions { grid-row:4; grid-column:2/-1; }
#call-filter > label:not(.field) { grid-row:4; grid-column:1; display:flex; align-items:center; gap:8px; }
#call-filter input[type=checkbox] { min-height:0; width:16px; height:16px; margin:0; flex:none; }
#call-filter .btn { height:38px; min-height:38px; border-radius:9px; font-size:12px; padding:8px 18px; }
#call-table { background:white; border:1px solid #dfe7f2; border-radius:13px; box-shadow:0 3px 10px #243c5b08; overflow:hidden; }
#call-table .table-wrap { border:0; border-radius:0; overflow-x:auto; }
#call-table table { font-size:12px; min-width:900px; }
#call-table th { background:#f0f4fa; color:#53677f; font-size:10px; padding:12px; }
#call-table td { padding:12px; border-color:#e8eef6; }
#call-table tbody tr:hover { background:#f8fbfe; }
#call-table .customer-link { display:inline-block; padding:5px 10px; border:0; border-radius:20px; background:#e0f5eb; color:#116b51; font-weight:650; text-decoration:none; font-size:12px; }
#call-table .history-outcome { display:inline-block; padding:3px 8px; border-radius:15px; background:#edf1f7; color:#435870; font-size:11px; white-space:nowrap; }
#call-table .history-outcome.positive { background:#dff6e9; color:#096b46; }
#call-table details summary { color:#137264; font-size:12px; margin-top:5px; cursor:pointer; }
#call-table > .toolbar { margin:0; padding:12px 16px; border-top:1px solid #e6edf5; gap:12px; }
#call-table > .toolbar .btn { min-height:34px; padding:7px 12px; font-size:12px; border-radius:9px; }
@media(max-width:760px) {
 .modal-panel.caller-workspace { padding:12px; border-radius:14px; }
 .caller-workspace .workspace-header-offers { grid-template-columns:minmax(0,1fr); gap:12px; }
 .caller-workspace .workspace-header-identity { padding-left:52px; }
 .caller-workspace .workspace-header-identity::before { width:42px; height:42px; font-size:25px; }
 .caller-workspace .workspace-header-identity h3 { font-size:21px; }
 .caller-workspace .workspace-contact .customer-actions { width:100%; }
 .caller-workspace .workspace-contact .btn { min-height:44px; }
 .caller-workspace #outcome-form,.caller-workspace #workspace-last-purchase { padding:12px; }
 .caller-workspace #outcome-form .form-grid { grid-template-columns:minmax(0,1fr); }
 .caller-workspace input:not([type=checkbox]),.caller-workspace select { font-size:16px; min-height:44px; }
 #call-filter { grid-template-columns:minmax(0,1fr); padding:14px; }
 #call-filter > .call-filter-actions,#call-filter > label:not(.field) { grid-column:auto; grid-row:auto; }
 #call-filter .btn { min-height:44px; height:auto; flex:1; }
 #call-filter input:not([type=checkbox]),#call-filter select { min-height:44px; font-size:16px; }
 body:has(#call-filter) #body > .page-header { padding:14px; }
 #call-table > .toolbar { flex-wrap:wrap; padding:12px; }
 #call-table > .toolbar .btn { min-height:44px; }
}
/* Decorative icons remain separate from control labels and accessible names. */
.caller-workspace .workspace-header-identity::before { content:''; }
.caller-workspace .workspace-header-identity::after { content:''; position:absolute; left:14px; top:18px; width:28px; height:28px; background:#059e68; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.7 15.7 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.24c1.1.36 2.3.55 3.6.55a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.6 21 3 13.4 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.55 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.caller-workspace #outcome-form input:not([type=checkbox]),.caller-workspace #outcome-form select { background:#fff; }
.menu .nav::before { content:''; display:inline-block; vertical-align:middle; width:17px; height:17px; flex:0 0 17px; margin:0; background:currentColor; opacity:.9; mask:var(--nav-icon,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z'/%3E%3C/svg%3E")) center/contain no-repeat; }
.menu [data-nav=calls] { --nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' d='M3 11a9 9 0 1 1 3 8M3 5v6h6m3-5v6l4 2'/%3E%3C/svg%3E"); }
.menu [data-nav=customers] { --nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M3 21v-3a6 6 0 0 1 12 0v3M16 4a3 3 0 0 1 0 6m2 4a5 5 0 0 1 3 5v2'/%3E%3C/g%3E%3C/svg%3E"); }
@media(max-width:760px) { .caller-workspace .workspace-header-identity::after { width:24px; height:24px; left:9px; top:13px; } }

/* Stable sidebar icon slots on every page; destinations and access unchanged. */
.menu [data-nav=overview] { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M3%2010%2012%203l9%207M5%209v12h5v-7h4v7h5V9%27%2F%3E%3C%2Fsvg%3E"); }
.menu [data-nav=callwork] { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M6%203%203%205c0%209%207%2016%2016%2016l2-3-5-3-2%202c-3-1-6-4-7-7l2-2z%27%2F%3E%3C%2Fsvg%3E"); }
.menu [data-nav=stock] { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27m3%207%209-4%209%204v10l-9%204-9-4zM3%207l9%204%209-4M12%2011v10%27%2F%3E%3C%2Fsvg%3E"); }
.menu [data-nav=uploads] { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M8%2017H6a4%204%200%200%201-1-8%207%207%200%200%201%2014-1%205%205%200%200%201%200%2010h-3M12%2010v12m-4-8%204-4%204%204%27%2F%3E%3C%2Fsvg%3E"); }
.menu [data-nav=admin] { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M12%208a4%204%200%201%200%200%208%204%204%200%200%200%200-8M9%203h6l1%203%203%201%202%205-2%205-3%201-1%203H9l-1-3-3-1-2-5%202-5%203-1z%27%2F%3E%3C%2Fsvg%3E"); }
.menu [data-nav=about] { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M9%209a3%203%200%201%201%205%202c-1%201-2%201-2%203m0%203v.1M12%202a10%2010%200%201%200%200%2020%2010%2010%200%200%200%200-20%27%2F%3E%3C%2Fsvg%3E"); }
.menu [data-nav=queue] { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M6%203%203%205c0%209%207%2016%2016%2016l2-3-5-3-2%202c-3-1-6-4-7-7l2-2z%27%2F%3E%3C%2Fsvg%3E"); }
.menu [data-nav=followups] { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M3%2011a9%209%200%201%201%203%208M3%205v6h6m3-5v6l4%202%27%2F%3E%3C%2Fsvg%3E"); }
.menu [data-nav=done] { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27m6%2012%204%204%208-8M12%202a10%2010%200%201%200%200%2020%2010%2010%200%200%200%200-20%27%2F%3E%3C%2Fsvg%3E"); }
.menu [data-nav=whatsapp] { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M8%207c1%205%203%207%208%208m-9%205-4%201%201-4a10%2010%200%201%201%203%203%27%2F%3E%3C%2Fsvg%3E"); }
.menu [data-nav=results] { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M4%2020V12h4v8m2%200V4h4v16m2%200V8h4v12%27%2F%3E%3C%2Fsvg%3E"); }
.menu [data-nav=reports] { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M5%203h10l4%204v14H5zM15%203v5h4M8%2012h8M8%2016h8%27%2F%3E%3C%2Fsvg%3E"); }

/* Compact daily report cards; detailed source rules remain in the disclosure. */
.report-checklist-item { gap:7px; padding:12px; }
.report-card-next { font-size:12px!important; line-height:1.45; }
.report-card-warning { color:#87521d; font-size:12px!important; }
.report-card-steps { flex-wrap:nowrap; margin-top:7px; }
.report-card-steps .btn { flex:1 1 0; min-width:0; }
.overview-report-upload .report-card-status { margin-top:7px; }
@media(max-width:480px) {
 .report-card-steps { flex-direction:column; }
 .report-card-steps .btn { flex:auto; }
}

/* PDF-requested additions; other pages retain their existing design. */
.missed-billing { margin-bottom:18px; padding:18px 22px; }
.missed-billing h3 { margin:0 0 6px; }
.missed-billing-fields { display:grid; grid-template-columns:1.4fr 1.2fr 1fr 1fr 1fr auto; gap:12px; align-items:end; }
.missed-billing-fields .field { margin:0; }
.followups-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.followups-summary { display:flex; gap:14px; margin:16px 0; }
.followups-summary button { border:0; border-radius:8px; padding:12px 18px; flex:1; display:flex; justify-content:space-between; gap:20px; font:inherit; font-weight:700; cursor:pointer; }
.followup-overdue { background:#ffe6e8; color:#a31d30; }
.followup-today { background:#fff1cc; color:#775114; }
.followup-upcoming { background:#ddf6e5; color:#17633a; }
.followup-status { display:inline-block; border-radius:7px; padding:4px 8px; font-weight:700; white-space:nowrap; }
.followups-window table td { padding:10px 12px; }
#outcome-form label[hidden] { display:none !important; }
.caller-workspace .review-field textarea { min-height:160px; }
@media(max-width:1100px) { .missed-billing-fields { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:650px) { .missed-billing-fields { grid-template-columns:1fr; }.followups-summary { flex-wrap:wrap; }.followups-heading { align-items:start; flex-direction:column; } }

/* Missed Billing: aligned controls and a dedicated action cell; no global redesign. */
.missed-billing { padding:20px 24px; }
.missed-billing > .field-help { margin:6px 0 18px; max-width:72ch; }
.missed-billing-fields { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px 20px; align-items:end; }
.missed-billing-fields .field { min-width:0; margin:0; gap:8px; font-size:14px; font-weight:600; }
.missed-billing-fields input,.missed-billing-fields select { display:block; width:100%; min-width:0; max-width:100%; box-sizing:border-box; height:46px; margin:0; padding:10px 12px; font-size:15px; font-weight:400; background:#fff; }
.missed-billing-fields > .btn { align-self:end; justify-self:stretch; min-width:0; height:46px; margin:0; padding:10px 20px; white-space:nowrap; }
#missed-billing-status:empty { display:none; }
#missed-billing-status { margin:12px 0 0; font-size:14px; }
#whatsapp-order .form-grid > .field { min-width:0; }
#whatsapp-order input,#whatsapp-order select { width:100%; min-width:0; box-sizing:border-box; }
@media(max-width:1150px) { .missed-billing-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .missed-billing { padding:18px 16px; }.missed-billing-fields { grid-template-columns:minmax(0,1fr);gap:14px; } }

.history-customer-phone { display:block; margin-top:6px; color:var(--muted); font-size:13px; white-space:nowrap; font-variant-numeric:tabular-nums; }

/* Scoped call outcome messaging and feedback controls. */
.caller-workspace .outcome-message-confirmation {border:1px solid var(--line,#dce5e8);border-radius:12px;padding:16px;margin:16px 0;min-width:0;}
.caller-workspace .outcome-message-confirmation label {display:flex;align-items:center;gap:10px;margin:12px 0;}
.caller-workspace .outcome-message-confirmation input {width:18px;height:18px;flex:0 0 18px;}
.caller-workspace .workspace-message-actions {display:flex;flex-wrap:wrap;gap:12px;margin-top:12px;}
.caller-workspace .rating-field {margin-top:16px;}

/* Additive Call Analysis only; reuse existing cards, typography, table and controls. */
.call-analysis {max-width:1680px;margin:0 auto;}
.call-analysis .analysis-filters {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 20px;margin-bottom:20px;align-items:start;}
.call-analysis .analysis-filters .field {min-width:0;margin:0;}
.call-analysis .analysis-filters select,.call-analysis .analysis-filters input {max-width:100%;min-width:0;box-sizing:border-box;}
.call-analysis .analysis-filters select[multiple] {height:90px;}
.call-analysis .analysis-filter-actions {display:flex;gap:10px;align-self:end;flex-wrap:wrap;}
.call-analysis .analysis-stamp {font-size:13px;color:var(--muted,#637787);margin:12px 0;}
.call-analysis .analysis-limitation {margin:0 0 20px;padding:18px;border-left:4px solid #cc9a43;}
.call-analysis .analysis-limitation p {margin:8px 0;}
.call-analysis .analysis-limitation span {font-size:13px;}
.call-analysis .analysis-section {margin-bottom:20px;padding:22px;min-width:0;}
.call-analysis .analysis-section-heading h3 {margin:0 0 12px;}
.call-analysis .analysis-kpis,.call-analysis .analysis-freshness {display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;}
.call-analysis .analysis-kpi {padding:18px 16px;border:1px solid #d9e8e3;border-radius:12px;background:#f3faf7;min-width:0;}
.call-analysis .analysis-kpi span {display:block;font-size:13px;font-weight:600;color:#415a60;}
.call-analysis .analysis-kpi strong {display:block;font-size:24px;line-height:1.35;margin-top:10px;overflow-wrap:anywhere;color:#1c353b;}
.call-analysis small {display:block;font-size:12px;font-weight:400;color:#687e87;margin-top:5px;}
.call-analysis .analysis-direct {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border-top:1px solid #dce8e4;margin-top:20px;padding-top:18px;}
.call-analysis .analysis-direct span {display:block;font-size:13px;color:#617780;}
.call-analysis .analysis-direct strong {display:block;font-size:18px;margin-top:7px;}
.call-analysis .analysis-timing {display:grid;grid-template-columns:minmax(0,2fr) minmax(180px,1fr);gap:22px;}
.call-analysis .analysis-bar-item {display:grid;grid-template-columns:150px minmax(40px,1fr) 110px;gap:12px;align-items:center;width:100%;border:0;background:transparent;text-align:left;padding:10px 0;color:inherit;font:inherit;cursor:pointer;}
.call-analysis .analysis-bar-track {display:block;background:#e6f0ed;border-radius:5px;height:16px;overflow:hidden;}
.call-analysis .analysis-bar-track i {display:block;min-width:0;height:100%;background:#138577;border-radius:5px;}
.call-analysis .analysis-bar-item strong {font-size:13px;text-align:right;}
.call-analysis .analysis-timing-summary {display:grid;gap:12px;}
.call-analysis .analysis-no-purchase {padding-top:14px;border-top:1px solid #e0e8e5;}
.call-analysis .analysis-row-link {border:0;background:transparent;color:#11796e;font:inherit;font-weight:600;text-align:left;padding:5px 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;}
.call-analysis .analysis-empty {padding:16px 0;color:#647882;line-height:1.6;}
.call-analysis .analysis-trend {display:grid;gap:10px;}
.call-analysis .analysis-trend button {display:grid;grid-template-columns:110px minmax(40px,1fr) 110px 110px;gap:16px;align-items:center;padding:8px 0;border:0;background:transparent;font:inherit;cursor:pointer;text-align:left;color:inherit;}
.call-analysis .analysis-pager {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;font-size:13px;}
.call-analysis .analysis-method {padding:20px;line-height:1.7;}
.call-analysis .analysis-section details {margin:16px 0;}
@media(max-width:1050px){.call-analysis .analysis-filters{grid-template-columns:repeat(2,minmax(0,1fr));}.call-analysis .analysis-timing{grid-template-columns:1fr;}.call-analysis .analysis-timing-summary{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){.call-analysis .analysis-filters,.call-analysis .analysis-direct{grid-template-columns:1fr;}.call-analysis .analysis-section{padding:16px;}.call-analysis .analysis-kpis,.call-analysis .analysis-freshness{grid-template-columns:repeat(2,minmax(0,1fr));}.call-analysis .analysis-kpi{padding:14px 12px;}.call-analysis .analysis-kpi strong{font-size:20px;}.call-analysis .analysis-bar-item{grid-template-columns:105px minmax(20px,1fr) 80px;gap:8px;font-size:12px;}.call-analysis .analysis-trend button{grid-template-columns:85px minmax(20px,1fr) 75px;gap:8px;font-size:12px;}.call-analysis .analysis-trend small{grid-column:2/4;}.call-analysis .analysis-filter-actions .btn{flex:1;}}

.menu [data-nav=analysis] { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M4%2020V12h4v8m2%200V4h4v16m2%200V8h4v12%27%2F%3E%3C%2Fsvg%3E"); }
.call-analysis .analysis-kpi[role=button] {cursor:pointer;}
.call-analysis .analysis-kpi[role=button]:focus-visible {outline:3px solid #70bba9;outline-offset:3px;}

@media(min-width:1051px){.call-analysis #analysis-overview .analysis-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}}
.call-analysis #analysis-callers table {min-width:1350px;font-size:12px;}
.call-analysis #analysis-callers th:first-child,.call-analysis #analysis-callers td:first-child {min-width:135px;position:sticky;left:0;background:#fff;z-index:1;}
.call-analysis #analysis-callers th:first-child {background:#f5f9fa;}
.call-analysis .analysis-direct [role=button] {cursor:pointer;}
.call-analysis .analysis-direct [role=button]:focus-visible {outline:3px solid #70bba9;outline-offset:3px;}

/* Order-column drilldowns use the same read-only totals and caller scope. */
.performance-order-link { border:0; padding:0; background:none; color:var(--teal); font:inherit; text-align:left; text-decoration:underline; text-underline-offset:3px; cursor:pointer; border-radius:3px; }
.performance-order-link:hover { color:#075b50; }
.performance-order-link:focus-visible { outline:3px solid #68bfae; outline-offset:4px; }
.modal-panel.order-details-modal { position:relative; width:min(1200px,100%); max-height:92vh; max-height:92dvh; padding:28px; }
.order-details-modal h3 { margin:0 48px 6px 0; font-size:25px; }
.order-details-modal .order-details-x { position:absolute; top:16px; right:16px; min-width:40px; min-height:40px; font-size:26px; border:0; background:none; }
.order-details-context { margin:0 0 20px; }
.order-details-summary { display:flex; flex-wrap:wrap; gap:14px 30px; align-items:center; padding:16px 20px; margin:0 0 18px; border-radius:9px; background:#dff3ed; color:#123b34; }
.order-details-summary strong { font-size:21px; }
.order-details-table { max-width:100%; overflow-x:auto; }
.order-details-table table { width:100%; min-width:920px; }
.order-details-table td { vertical-align:top; white-space:normal; }
.order-details-table td small { display:block; margin-top:5px; line-height:1.45; }
.order-details-table th:last-child,.order-details-table td:last-child { min-width:210px; max-width:290px; }
.order-details-table td:nth-last-child(3) { white-space:nowrap; }
.order-detail-status { display:inline-block; padding:4px 9px; border-radius:20px; background:#fff0d9; color:#815019; font-size:12px; font-weight:700; }
.order-detail-verified { background:#e0f3e9; color:#146448; }
.order-detail-review,.order-detail-unavailable { background:#fce8e3; color:#953b2c; }
.order-detail-legacy { background:#edf0f4; color:#4c5c6d; }
.order-detail-reason { max-width:290px; color:#644a2e; }
.order-details-total { display:flex; justify-content:space-between; gap:15px; padding:15px 18px; background:#f0f5f4; border-radius:0 0 8px 8px; }
.order-details-footer { display:flex; justify-content:flex-end; margin-top:18px; }
.order-details-pager { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; margin-top:14px; }
@media(max-width:650px) { .modal-panel.order-details-modal { padding:18px 14px; }.order-details-modal h3 { font-size:21px; }.order-details-summary { padding:14px; gap:9px 20px; }.order-details-summary strong { font-size:18px; }.order-details-total { padding:14px 10px; } }

.order-details-scroll-hint { display:none; color:#526976; font-size:13px; margin:8px 0; }
.performance-order-link { min-height:32px; }
@media(max-width:1000px) { .order-details-scroll-hint { display:block; } }
@media(max-width:650px) { .performance-order-link { min-height:44px; } }

.table-header-note { display:block; margin-top:4px; font-size:0.85em; font-weight:400; line-height:1.3; text-transform:none; letter-spacing:normal; color:#6d7d89; }
.all-sales-value { color:#11685b; }

/* Shared compact help and record disclosures across admin/caller views. */
.info-panel { margin: .6rem 0; font-size: .875rem; color: var(--muted, #526779); }
.info-panel > summary, .record-drilldown > summary { cursor: pointer; width: fit-content; padding: .35rem .2rem; }
.info-panel > summary:focus-visible, .record-drilldown > summary:focus-visible { outline: 2px solid #137b6b; outline-offset: 3px; }
.info-panel-content { margin-top: .35rem; padding: .75rem; border-left: 3px solid #91cfc0; background: #f3faf7; line-height: 1.6; overflow-wrap: anywhere; }
.recovery-coupon-prompt { border-left: 4px solid #128071; background: #e7f7ef; color: #164a3e; }


/* Caller encouragement: one brief, non-blocking popup per My Results visit. */
.results-celebration { position:fixed; top:100px; right:28px; width:min(350px,calc(100vw - 32px)); z-index:1100; pointer-events:none; }
.results-celebration-card { position:relative; padding:24px 36px 22px 24px; border:1px solid #e8bb53; border-radius:18px; background:linear-gradient(135deg,#fffdf2,#fff3ce); box-shadow:0 10px 32px #72530725; color:#59400d; pointer-events:auto; animation:results-cheer-appear .3s ease-out; }
.results-celebration-card h3 { margin:4px 0 8px; color:#684810; font-size:1.4rem; }
.results-celebration-card p { margin:0 0 12px; font-size:1.05rem; font-weight:650; }
.results-celebration-card small { color:#75613d; }
.results-celebration-icon { color:#d99a00; font-size:30px; }
.results-celebration-close { position:absolute; top:8px; right:8px; width:32px; height:32px; border:0; border-radius:50%; background:transparent; color:#745818; font-size:24px; cursor:pointer; }
.results-celebration-close:focus-visible { outline:2px solid #137b6b; outline-offset:2px; }
.results-celebration-stars { position:absolute; inset:0; overflow:visible; pointer-events:none; }
.results-celebration-stars span { position:absolute; left:50%; top:38%; font-size:23px; color:#e5ad21; text-shadow:0 2px 5px #b87f1738; opacity:0; animation:results-golden-star 1.7s ease-out var(--star-delay) 2; }
@keyframes results-golden-star { 0% { opacity:0; transform:translate(0,0) scale(.4) rotate(0); } 20% { opacity:1; } 75% { opacity:1; } 100% { opacity:0; transform:translate(var(--star-x),var(--star-y)) scale(1) rotate(65deg); } }
@keyframes results-cheer-appear { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:700px) { .results-celebration { top:80px; right:16px; } }
@media(prefers-reduced-motion:reduce) { .results-celebration-card { animation:none; } .results-celebration-stars { display:none; } }

/* Compact Emovur Chat/WhatsApp capture, with short optional notes. */
.compact-chat-form .form-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.compact-chat-form .field { gap:5px; }
.compact-chat-form input,.compact-chat-form select { min-height:40px; padding:9px 11px; }
.compact-chat-form textarea { min-height:58px; padding:9px 11px; resize:vertical; }
.compact-chat-form .info-panel { margin:8px 0; }
@media(max-width:1050px) { .compact-chat-form .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .compact-chat-form .form-grid { grid-template-columns:1fr; } }
.whatsapp-history .whatsapp-section-head { flex-wrap:wrap; gap:10px; }
.assignment-mobile { display:block; margin-top:5px; color:var(--muted,#526779); font-size:13px; line-height:1.4; font-variant-numeric:tabular-nums; }

@media(min-width:1280px) { .assignment-filter { grid-template-columns:repeat(4,minmax(0,1fr)); } }

/* Compact, readable prompts and shared searchable selections. */
input::placeholder,textarea::placeholder { font-size:13px; font-weight:400; letter-spacing:normal; color:#667586; opacity:1; }
select.native-select-source { position:absolute!important; width:1px!important; height:1px!important; min-width:0!important; min-height:0!important; margin:-1px!important; padding:0!important; border:0!important; clip:rect(0,0,0,0); clip-path:inset(50%); overflow:hidden; pointer-events:none; opacity:0; }
input.selection-search { min-width:0; width:100%; box-sizing:border-box; }
input.selection-search:disabled { cursor:not-allowed; opacity:.7; }
/* All current and future upload views share stage-aware progress. */
.report-checklist-summary { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; align-items:start; }
.report-checklist-summary h4 { margin:0; min-width:0; }
.report-checklist-state { grid-column:2; grid-row:1 / span 2; display:flex; flex-direction:column; align-items:center; gap:9px; justify-self:end; }
.report-checklist-summary .report-card-next { grid-column:1 / -1; }
.store-offer-heading { display:flex; align-items:start; justify-content:space-between; gap:12px; }
.upload-progress { width:72px; max-width:100%; margin:0; min-width:0; }
.upload-progress-caption { position:relative; text-align:center; font-size:11px; line-height:1.3; color:#526779; }
.upload-progress-caption > span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; }
.upload-progress-caption strong { display:block; margin-top:3px; font-weight:500; font-variant-numeric:tabular-nums; }
.upload-progress-caption small { display:block; margin-top:1px; font-size:10px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.upload-progress progress { display:block; width:100%; height:6px; border:0; border-radius:3px; overflow:hidden; accent-color:#168375; background:#e4ecef; }
.upload-progress progress::-webkit-progress-bar { background:#e4ecef; border-radius:5px; }
.upload-progress progress::-webkit-progress-value { background:#168375; border-radius:5px; }
.upload-progress progress::-moz-progress-bar { background:#168375; }
.upload-progress progress:indeterminate { background:linear-gradient(90deg,#e4ecef 15%,#3c97a2 45%,#e4ecef 75%); background-size:220% 100%; animation:upload-working 1.8s linear infinite; }
.upload-progress.is-failed .upload-progress-caption { color:#a13b25; }
@keyframes upload-working { to { background-position:220% 0; } }
@media(prefers-reduced-motion:reduce) { .upload-progress progress:indeterminate { animation:none; } }

.upload-progress-track { position:relative; height:6px; overflow:hidden; border-radius:3px; }
.upload-progress-motion { position:absolute; inset:0 auto 0 0; width:35%; background:#168375; border-radius:5px; animation:upload-stage-motion 1.6s ease-in-out infinite alternate; pointer-events:none; }
@keyframes upload-stage-motion { from { transform:translateX(0); } to { transform:translateX(185%); } }
@media(prefers-reduced-motion:reduce) { .upload-progress-motion { animation:none; } }

/* Seven-day Push Sales uses the existing MCM shell and compact accessible cards. */
.push-analysis { min-width:0; }
.push-filters { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)) auto; align-items:end; gap:12px; padding:16px; }
.push-filters .field { min-width:0; margin:0; gap:5px; font-size:12px; }
.push-filters input { min-height:40px; padding:8px; }
.push-filters #push-error { grid-column:1/-1; margin:0; }
.push-freshness { display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; padding:11px 14px; margin:12px 0; border-radius:9px; background:#e2f6ec; font-size:12px; }
.push-status { display:inline-block; padding:4px 8px; border-radius:9px; background:#fff1d9; color:#75480d; font-size:11px; line-height:1.3; }
.push-status.is-converted { background:#daf5e7; color:#156445; }
.push-kpis { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:14px 0; }
.push-kpi { display:flex; flex-direction:column; text-align:left; gap:8px; padding:16px; background:white; border:1px solid var(--line); border-radius:12px; cursor:pointer; min-width:0; color:var(--ink,#1d2e3b); }
.push-kpi span { font-size:12px; }.push-kpi strong { font-size:26px; line-height:1.2; overflow-wrap:anywhere; }
.push-kpi:hover,.push-kpi:focus-visible { border-color:#078573; box-shadow:0 0 0 2px #07857322; }
.push-main-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,340px); gap:16px; align-items:start; }
.push-main,.push-detail { min-width:0; }.push-main .card,.push-detail { padding:16px; margin-bottom:14px; }
.push-section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }.push-section-head h3 { margin:0; }
.push-analysis h3 { font-size:17px; }.push-analysis table { width:100%; font-size:12px; }
.push-analysis th { white-space:normal; padding:10px 8px; font-size:11px; letter-spacing:normal; background:#edf6f5; }
.push-analysis td { padding:10px 8px; vertical-align:top; }.push-analysis td small { display:block; margin-top:4px; color:var(--sub); font-size:11px; }
.push-analysis tbody tr:hover { background:#f2faf6; }.push-team-total,.push-analysis tfoot { background:#ddf5e9; font-weight:700; }
.push-link { border:0; background:transparent; color:#0d7869; font:inherit; font-weight:650; padding:0; cursor:pointer; text-align:left; text-decoration:underline; text-underline-offset:3px; }
.push-link:focus-visible { outline:2px solid #078573; outline-offset:3px; }.push-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12px; margin-top:12px; }
.push-detail { position:sticky; top:16px; }.push-detail h4 { margin:10px 0; font-size:17px; }.push-detail dl { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px 12px; font-size:12px; }
.push-detail dt { font-weight:650; }.push-detail dd { margin:0; overflow-wrap:anywhere; }.push-detail .notice,.push-bill-basis { font-size:12px; line-height:1.5; }
.push-detail details p { overflow-wrap:anywhere; font-size:11px; }.push-detail details summary { cursor:pointer; }.push-footnote { font-size:12px; color:var(--sub); }
@media(max-width:1300px) { .push-main-grid { grid-template-columns:1fr; }.push-detail { position:static; }.push-filters { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .push-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }.push-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.push-kpi strong { font-size:23px; }.push-records .toolbar { align-items:stretch; }.push-records .toolbar .field { width:100%; } }
@media(prefers-reduced-motion:reduce) { .push-analysis * { scroll-behavior:auto; } }
.push-filters #push-error:empty { display:none; }
.push-detail table { min-width:0; table-layout:fixed; }
.push-detail th:first-child { width:50%; }
.push-detail th:nth-child(2),.push-detail th:nth-child(3) { width:25%; }
.push-detail td,.push-detail th { padding:9px 6px; overflow-wrap:anywhere; }
.push-detail td:last-child,.push-detail th:last-child { text-align:right; }
.push-kpi-label { display:flex; align-items:center; gap:8px; }
.push-kpi-label svg { width:22px; height:22px; flex:none; color:#13875d; }

/* Compact manual-time entry and current customer visit context. */
.manual-time-field {display:inline-flex;align-items:center;gap:6px;margin:0;font-size:.75rem;white-space:nowrap;}
.caller-workspace .manual-time-field input:not([type=checkbox]) {box-sizing:border-box;width:88px;flex:0 0 88px;min-width:0;height:40px;min-height:40px;padding:8px;font-size:14px;font-variant-numeric:tabular-nums;}
@media(max-width:650px){.caller-workspace .manual-time-field input:not([type=checkbox]) {height:44px;min-height:44px;font-size:16px;}}
.caller-visit-context {font-size:.75rem;color:var(--muted);line-height:1.5;}
.caller-visit-context small {display:inline;}
.push-records small {white-space:normal;}
[hidden].toolbar {display:none;}
@media(max-width:600px){.caller-list-row {flex-wrap:wrap;}.caller-visit-context {flex:1 0 100%;order:3;}}

/* Match the supplied WhatsApp offer layout while keeping draft editing inline. */
#workspace-draft .whatsapp-draft-preview {width:min(100%,440px);padding:8px 12px 12px;border-radius:12px;background:#dcf8d0;}
#workspace-draft .whatsapp-draft-preview img {display:block;width:100%;height:auto;margin-bottom:10px;border-radius:8px;background:#fff;}
#workspace-draft .whatsapp-draft-preview img[hidden] {display:none;}
#workspace-draft .whatsapp-draft-preview textarea {box-sizing:border-box;display:block;width:100%;min-height:130px;margin:0;padding:4px;border:0;border-radius:0;background:transparent;color:#111;font-family:Arial,sans-serif;font-size:17px;line-height:1.45;resize:vertical;box-shadow:none;overflow:hidden;}
#workspace-draft .whatsapp-draft-preview textarea:focus {outline:2px solid #117c69;outline-offset:3px;}
#workspace-draft[data-channel=SMS] .whatsapp-draft-preview {background:#fff;}
#workspace-draft .workspace-message-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
#workspace-draft [hidden] {display:none;}
#workspace-logo-status:empty {display:none;}

/* Keep the automatic eligibility reminder compact; maths stays collapsed. */
.caller-workspace .recovery-coupon-prompt {padding:8px 12px;line-height:1.5;}
.caller-workspace .recovery-coupon-prompt .info-panel {margin:2px 0 0;}
.caller-workspace .recovery-coupon-prompt .info-panel > summary {padding:2px 0;}

/* Admin store classification stays separate from call assignment controls. */
.store-allocation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.store-allocation-bucket{border:1px solid #dbe5e8;border-radius:14px;padding:18px;min-width:0;background:#fff}
.store-allocation-weight{display:block;font-size:26px;color:#117d70;margin-bottom:16px}
.store-allocation-bucket ul{list-style:none;padding:0;margin:16px 0 0}
.store-allocation-bucket li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #edf1f3;overflow-wrap:anywhere}
@media(max-width:900px){.store-allocation-grid{grid-template-columns:1fr}}
