/* ::-webkit-scrollbar {
    display: none;
} */
html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: auto;
  font-family: 'Lato';
}



.PhoneInputInput {
  border: none;
  outline: none;
  font-size: medium;
}

.custom-phone-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.23);
  background-color: #fff;
}

.custom-phone-input:focus {
  outline: none;
  border-color: #1976d2;
}

.custom-phone-input:disabled {
  background-color: #f5f5f5;
}

/* Block only small phones */
@media (max-width: 599px) {
  #root {
    display: none;
  }

  body::before {
    content: "🚫 This app is only available on laptops, desktops, or iPads. Please use a larger screen.";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-size: 1.2rem;
    font-family: sans-serif;
    text-align: center;
    padding: 20px;
  }
}

/* Hide default A, B, C column headers and row numbers */
/* .Spreadsheet__header, 
.Spreadsheet__row-label {
  display: none !important;
} */


.Spreadsheet__cell {
  border: 1px solid #ccc !important;
  text-align: center;
}


/* ===== DESIGN TOKENS (match app Theme.jsx) ===== */
:root {
  --primary: rgba(74, 102, 241, 1);
  --primary-90: rgba(74, 102, 241, 0.9);
  --primary-50: rgba(74, 102, 241, 0.5);
  --primary-30: rgba(74, 102, 241, 0.3);
  --primary-20: rgba(74, 102, 241, 0.2);
  --primary-16: rgba(74, 102, 241, 0.16);
  --primary-08: rgba(74, 102, 241, 0.08);
  --primary-04: rgba(74, 102, 241, 0.04);
  --secondary: #f50057;

  --bg-default: #F5F5F5;
  --bg-paper: #ffffff;
  --bg-light: #FAFAFA;
  --bg-table-header: #F5F5F5;

  --text-primary: #212121;
  --text-secondary: #616161;
  --text-dark: #1a1a1a;
  --text-medium: #424242;

  --divider: #EBEBEB;
  --border: #E0E0E0;
  --border-light: #EBEBEB;

  --warn-main: #FF9800;
  --warn-bg: #FFF4E5;
  --warn-border: #FFE0B2;
  --warn-text: #5F370E;

  --error: #F44336;
  --error-bg: rgba(244, 67, 54, 0.08);
  --success: #2E7D32;
  --success-bg: #E8F5E9;
  --info: #0288D1;
  --info-bg: #E1F5FE;

  --shadow-1: 0px 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-2: 0px 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-3: 0px 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-4: 0px 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0px 4px 12px rgba(74, 102, 241, 0.3);
  --shadow-primary-hover: 0px 6px 16px rgba(74, 102, 241, 0.4);
}

/* Accessibility & Utility Classes */
.card-id,
.sla,
.rpanel-row .val,
.ticket-card .card-customer,
.shift-block,
.history-item .hid,
.csat-star,
.sla-val,
.metric-kpi-value,
.compliance-pct {
  font-variant-numeric: tabular-nums;
}

.t-h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.01em;
}

.t-h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.t-h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
}

.t-h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.t-body {
  font-size: 14px;
  color: var(--text-primary);
}

.t-body2 {
  font-size: 13px;
  color: var(--text-secondary);
}

.t-caption {
  font-size: 12px;
  color: var(--text-secondary);
}

.t-small {
  font-size: 13px;
  color: var(--text-secondary);
}

.card-pad {
  padding: 20px 24px;
}

/* Help Docs Specific Styles */
.help-docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 200px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 1200px) {
  .help-docs {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .help-docs {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Alert Rules and Utilities */
.paper {
  background: var(--bg-paper);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border-light);
}

.card-pad {
  padding: 20px 24px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mt-3 {
  margin-top: 12px;
}

.alert-rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert-rule {
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alert-rule:hover {
  border-color: rgba(74, 102, 241, 0.3);
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
}

.ar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ar-tier {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 10px;
}

.ar-tier.tier-1 {
  background: rgba(217, 60, 52, 0.10);
  color: var(--error);
}

.ar-tier.tier-2 {
  background: rgba(245, 158, 11, 0.14);
  color: var(--warn-text);
}

.ar-tier.tier-3 {
  background: rgba(74, 102, 241, 0.08);
  color: var(--primary);
}

.ar-tier.tier-4 {
  background: var(--bg-light);
  color: var(--text-secondary);
}

.ar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.ar-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.ar-channels .chip {
  font-size: 11px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ar-channels .chip .material-icons {
  font-size: 12px;
}

.ar-recipients {
  margin-top: 4px;
}

/* Switch control */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border);
  border-radius: 20px;
  transition: 0.15s;
}

.switch .slider:before {
  position: absolute;
  content: '';
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.15s;
}

.switch input:checked+.slider {
  background-color: var(--primary);
}

.switch input:checked+.slider:before {
  transform: translateX(14px);
}

.switch input:focus-visible+.slider {
  box-shadow: 0 0 0 2px var(--primary);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.chip-neutral {
  background: var(--bg-light);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
  border: none;
  text-transform: none;
  transition: all 0.2s ease-in-out;
  font-family: inherit;
  cursor: pointer;
}

.btn-text {
  background: transparent;
  color: var(--primary);
  font-weight: 600;
}

.btn-text:hover {
  background: rgba(74, 102, 241, 0.08);
}