:root {
  --sc-primary: #be244b;
  --sc-primary-2: #d63b63;
  --sc-primary-soft: #fde8ee;
  --sc-ink: #0f172a;
  --sc-text: #334155;
  --sc-muted: #64748b;
  --sc-bg: #f8fafc;
  --sc-bg-2: #f1f5f9;
  --sc-card: #ffffff;
  --sc-border: #e2e8f0;
  --sc-success: #059669;
  --sc-danger: #e11d48;
  --sc-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --sc-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --sc-radius: 16px;
  --sc-radius-lg: 24px;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

html,
body.sales-calendar-portal-body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #fff7f9 0%, #ffffff 100%);
  color: var(--sc-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.sales-calendar-standalone-page .site,
.sales-calendar-standalone-page footer,
.sales-calendar-standalone-page .site-footer,
.sales-calendar-standalone-page #footer,
.sales-calendar-standalone-page .footer,
.sales-calendar-standalone-page header,
.sales-calendar-standalone-page .site-header,
.sales-calendar-standalone-page .elementor-location-footer,
.sales-calendar-standalone-page .elementor-location-header {
  display: none !important;
}

.sales-calendar-standalone-page #wpadminbar {
  display: none !important;
}

.sc-standalone-page {
  min-height: 100vh;
  padding: 18px;
  box-sizing: border-box;
}

.sc-app-root {
  max-width: 1640px;
  margin: 0 auto;
  width: 100%;
}

.sc-shell {
  padding: 0;
}

.sc-primary-btn,
.sc-ghost-btn,
.sc-google-btn,
.sc-filter-btn,
.sc-dark-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: #fff !important;
  white-space: nowrap;
}

.sc-primary-btn:hover,
.sc-ghost-btn:hover,
.sc-google-btn:hover,
.sc-filter-btn:hover,
.sc-dark-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.sc-primary-btn:active,
.sc-dark-btn:active {
  transform: translateY(0);
}

.sc-primary-btn{
  background:var(--sc-primary);
  box-shadow:0 10px 15px -3px rgba(190, 36, 75, 0.3), 0 4px 6px -2px rgba(190, 36, 75, 0.1);
  padding:14px 24px;
  font-weight:700;
  letter-spacing:0.01em;
}
.sc-primary-btn:hover{
  background:var(--sc-primary-2);
  transform:translateY(-2px);
  box-shadow:0 20px 25px -5px rgba(190, 36, 75, 0.4), 0 10px 10px -5px rgba(190, 36, 75, 0.2);
}

.sc-dark-btn {
  background: var(--sc-ink);
}

.sc-ghost-btn {
  background: #fff;
  color: var(--sc-ink) !important;
  border: 1px solid var(--sc-border);
}

.sc-google-btn {
  background: #fff;
  color: var(--sc-ink) !important;
  border: 1px solid var(--sc-border);
}

.sc-primary-btn.loading {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.sc-primary-btn.loading:after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sc-spin 0.6s linear infinite;
}

@keyframes sc-spin {
  to {
    transform: rotate(360deg);
  }
}

.sc-full-btn {
  width: 100%;
}

.sc-inline-message {
  font-size: 13px;
  color: var(--sc-muted);
  margin-top: 6px;
}

.compact-login-screen {
  min-height: calc(100vh - 36px);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 15% 18%, rgba(141, 91, 255, .14), transparent 24%), radial-gradient(circle at 80% 75%, rgba(95, 111, 255, .12), transparent 24%), linear-gradient(135deg, #f5f7ff 0%, #eaf0ff 48%, #f7f9ff 100%);
  border-radius: 32px;
  box-shadow: var(--sc-shadow);
  padding: 24px;
}

.compact-login-card,
.sc-card,
.sc-modal-panel {
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(218, 228, 243, .95);
  border-radius: 28px;
  box-shadow: var(--sc-shadow);
}

.compact-login-card {
  width: min(460px, 100%);
  padding: 34px;
}

.sc-login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.sc-login-logo {
  max-width: 210px;
  height: auto;
  display: block;
}

.sc-login-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--sc-primary-soft);
  color: var(--sc-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sc-login-card h2,
.sales-calendar-header h2 {
  font-size: 32px;
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--sc-ink);
  letter-spacing: -.04em;
}

.sc-login-card p {
  color: var(--sc-muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.sc-login-form {
  display: grid;
  gap: 14px;
}

.sc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-field label{font-size:13px;font-weight:700;color:var(--sc-muted);margin-bottom:2px;}
.sc-field input,.sc-field select,.sc-field textarea{width:100%;box-sizing:border-box;padding:12px 16px;border:1.5px solid var(--sc-border);border-radius:12px;background:#fcfdfe;outline:none;font-size:14px;color:var(--sc-ink);transition:all 0.2s ease;}
.sc-field input:focus,.sc-field select:focus,.sc-field textarea:focus{border-color:var(--sc-primary);background:#fff;box-shadow:0 0 0 4px var(--sc-primary-soft);}
.sc-field input::placeholder, .sc-field textarea::placeholder{color:#cbd5e1;}

.sc-password-wrap {
  position: relative;
}

.sc-password-wrap input {
  padding-right: 72px;
}

.sc-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #b61f47;
  background: var(--sc-primary);
  color: #111;
  border-radius: 8px;
  width: 48px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.sc-password-toggle:hover {
  background: #a91d42;
  color: #111;
}

.sc-eye-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 14px / 10px;
}

.sc-eye-icon:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.sc-eye-icon.is-open:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-32deg);
  border-radius: 99px;
}

.sc-or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sc-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 2px 0;
}

.sc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sc-field-full {
  grid-column: 1/-1;
}

.sc-time-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sc-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-radius: var(--sc-radius);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--sc-border);
  box-shadow: var(--sc-shadow);
  margin-bottom: 24px;
}

.sc-topbar-left,
.sc-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sc-topbar-logo {
  width: auto;
  height: 48px !important;
  display: block;
  object-fit: contain;
}

.sc-topbar-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sc-primary);
  margin-bottom: 2px;
}

.sc-topbar h1 {
  margin: 0;
  font-size: 22px;
  color: var(--sc-ink);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.sc-user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--sc-border);
}

.sc-user-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sc-primary), var(--sc-primary-2));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.sc-user-chip strong {
  display: block;
  color: var(--sc-ink);
  font-size: 14px;
}

.sc-user-chip span:last-child {
  display: block;
  color: var(--sc-muted);
  font-size: 12px;
}

.sc-user-chip small {
  display: none;
}

.sales-calendar-wrap {
  margin-top: 0;
}

.sales-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 4px 2px;
}

.sales-calendar-header.compact-header h2 {
  font-size: 20px;
  margin-bottom: 2px;
  color: var(--sc-ink);
  font-weight: 800;
}

.sales-calendar-header p {
  margin: 0;
  color: #7483a3;
  font-size: 14px;
}

.sc-head-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.sales-calendar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  background: #ffffff;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid var(--sc-border);
  width: 100%;
  box-shadow: var(--sc-shadow);
}

.sc-filter-btn {
  background: var(--sc-primary);
  color: #fff !important;
  border: 1px solid var(--sc-primary);
  padding: 12px 22px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.sc-filter-btn.active {
  background: var(--sc-ink);
  color: #fff !important;
  border-color: var(--sc-ink);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.sc-filter-btn:hover:not(.active) {
  background: var(--sc-primary-2);
  border-color: var(--sc-primary-2);
  transform: translateY(-2px);
}

.sc-filter-btn span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
}

.sales-calendar-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.sc-sidebar-col {
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--sc-radius);
  border: 1px solid var(--sc-border);
  padding: 10px;
  height: 100%;
}

.sales-calendar-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(185vh - 48px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.sales-calendar-sidebar::-webkit-scrollbar {
  width: 6px;
}

.sales-calendar-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.sales-calendar-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sc-card {
  padding: 24px;
  background: #fff;
  border-radius: var(--sc-radius);
  border: 1px solid var(--sc-border);
  box-shadow: var(--sc-shadow);
}

.sc-card h3 {
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--sc-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sc-calendar-card {
  padding: 16px;
  background: #fff;
}

#sales-calendar {
  min-height: 800px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.sc-day-person {
  padding: 15px;
  border: 1px solid var(--sc-border);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  margin-bottom: 12px;
}

.sc-day-person-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.sc-day-person-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--sc-ink);
}

.sc-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sc-status-free {
  background: rgba(20, 153, 104, .12);
  color: var(--sc-success);
}

.sc-status-busy {
  background: rgba(225, 84, 63, .12);
  color: var(--sc-danger);
}

.sc-meeting-mini {
  padding: 14px 15px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--sc-border);
  margin-top: 10px;
}

.sc-meeting-mini strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--sc-ink);
}

.sc-meeting-mini span {
  display: block;
  font-size: 13px;
  color: var(--sc-muted);
}

.sc-meeting-mini em {
  display: block;
  font-size: 12px;
  color: #93a1bc;
  font-style: normal;
  margin-top: 6px;
}

#sc-today-metrics {
  display: grid;
  gap: 12px;
}

.sc-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--sc-border);
  border-radius: 18px;
  background: #fff;
}

.sc-metric span {
  color: var(--sc-muted);
  font-size: 13px;
  font-weight: 700;
}

.sc-metric strong {
  font-size: 24px;
  color: var(--sc-ink);
}

.sc-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.sc-modal.open {
  display: block;
}

.sc-modal-backdrop{position:absolute;inset:0;background:rgba(15, 23, 42, 0.6);backdrop-filter:blur(12px);}

.sc-modal-panel{position:relative;z-index:1;width:min(680px,calc(100vw - 32px));margin:5vh auto;padding:0;border-radius:var(--sc-radius-lg);display:flex;flex-direction:column;overflow:hidden;}
.sc-modal-header{padding:24px 32px;border-bottom:1px solid var(--sc-border);display:flex;justify-content:space-between;align-items:center;background:#fff;z-index:2;}
.sc-modal-panel h3{margin:0 !important;color:var(--sc-ink);font-size:24px !important;letter-spacing:-0.03em;font-weight:800;}
.sc-modal-body{padding:32px;overflow-y:auto;max-height:calc(85vh - 150px);scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;}
.sc-modal-body::-webkit-scrollbar{width:6px;}
.sc-modal-body::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px;}
.sc-modal-footer{padding:24px 32px;border-top:1px solid var(--sc-border);background:#f8fafc;z-index:2;}
.sc-modal-close{position:relative;right:0;top:0;width:40px;height:40px;border:none;border-radius:12px;background:#f1f5f9;cursor:pointer;border:1px solid var(--sc-border);transition:all 0.2s;}
.sc-modal-close:hover{background:#e2e8f0;transform:scale(1.05);}
.sc-modal-close span{position:absolute;left:50%;top:50%;width:16px;height:2px;background:#334155;border-radius:2px;}

.sc-modal-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sc-modal-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sc-form-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.sc-message-holder {
  margin-top: 10px;
}

.sc-event-popup {
  font-size: 15px;
  line-height: 1.85;
  max-width: 680px;
}

.sc-event-popup strong {
  display: block;
  font-size: 30px;
  margin-bottom: 12px;
  color: var(--sc-ink);
  letter-spacing: -.03em;
}

.sc-event-popup .meta {
  margin-bottom: 8px;
  color: #485570;
}

.sc-event-popup .actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.fc {
  --fc-border-color: #e4ebf7;
  --fc-page-bg-color: #fff;
  --fc-now-indicator-color: #fd4458;
}

.fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: 8px;
  padding: 6px 6px 12px;
  gap: 16px;
  align-items: center;
}

.fc .fc-toolbar-title {
  font-size: 28px;
  color: var(--sc-ink);
  font-weight: 800;
  letter-spacing: -.04em;
}

.fc .fc-toolbar-chunk {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.fc .fc-button {
  background: #111 !important;
  border: 1px solid #111 !important;
  color: #fff !important;
  border-radius: 16px !important;
  padding: 1em 1.2em !important;
  box-shadow: 0 10px 22px rgba(24, 39, 78, .05) !important;
  text-transform: capitalize !important;
  font-weight: 800 !important;
  margin-right: 10px !important;
}

.fc .fc-button-active {
  background: linear-gradient(135deg, var(--sc-primary), var(--sc-primary-2)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 16px 26px rgba(190, 36, 75, .24) !important;
}

.fc .fc-button:hover {
  filter: none !important;
  color: #fff !important;
}

.fc .fc-button .fc-icon {
  font-size: 1.2em !important;
}

.fc .fc-scrollgrid,
.fc-theme-standard td,
.fc-theme-standard th {
  border-color: #e4ebf7 !important;
}

.fc .fc-col-header-cell {
  background: #f8fbff;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number,
.fc .fc-timegrid-slot-label-cushion,
.fc .fc-timegrid-axis-cushion {
  text-decoration: none;
  color: var(--sc-ink);
  font-weight: 800;
}

.fc .fc-daygrid-day {
  height: 190px;
}

.fc .fc-daygrid-day-frame {
  min-height: 190px;
  padding: 8px;
}

.fc .fc-day-today {
  background: linear-gradient(180deg, rgba(106, 92, 255, .10), rgba(106, 92, 255, .03)) !important;
}

.fc .fc-daygrid-event-harness,
.fc .fc-daygrid-block-event {
  width: 100%;
}

.fc .fc-daygrid-event,
.fc .fc-timegrid-event {
  display: block;
  width: 100%;
  border: none !important;
  background: linear-gradient(135deg, #665cff, #8a63ff) !important;
  border-radius: 20px !important;
  padding: 0 !important;
  box-shadow: 0 14px 30px rgba(106, 92, 255, .20);
  overflow: hidden;
}

.fc .fc-event-main {
  padding: 0 !important;
}

.fc .fc-event-title,
.fc .fc-event-time {
  font-weight: 800 !important;
  white-space: normal !important;
}

.sc-event-card-inner {
  padding: 12px 13px;
  color: #fff;
  display: grid;
  gap: 5px;
  min-height: 108px;
  align-content: start;
}

.sc-event-time {
  font-size: 13px;
  opacity: .96;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sc-event-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.32;
}

.sc-event-client,
.sc-event-attendees {
  font-size: 12px;
  line-height: 1.35;
  opacity: .98;
  overflow-wrap: anywhere;
}

.fc .fc-daygrid-event .sc-event-card-inner {
  min-height: 108px;
}

.fc .fc-timegrid-slot {
  height: 3.1rem;
}

.fc .fc-timegrid-event {
  min-height: 88px;
}

.fc .fc-timegrid-event .sc-event-card-inner {
  min-height: 88px;
}

.fc .fc-timegrid-event-harness {
  margin: 0 10px;
}

.fc .fc-timegrid-event-harness-inset .fc-timegrid-event,
.fc .fc-timegrid-event.fc-event-mirror,
.fc .fc-timegrid-more-link {
  box-shadow: 0 14px 28px rgba(106, 92, 255, .20) !important;
}

.fc .fc-timegrid-col-events {
  margin: 0 6px 0 2px;
}

.fc .fc-timegrid-slot-minor {
  border-top-style: dotted;
}

.fc .fc-more-link {
  font-weight: 800;
  color: var(--sc-primary);
}

@media (max-width:1100px) {
  .sales-calendar-layout {
    grid-template-columns: 1fr;
  }

  .sales-calendar-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:900px) {

  .sc-topbar,
  .sales-calendar-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sc-topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .sales-calendar-sidebar {
    grid-template-columns: 1fr;
  }

  #sales-calendar {
    min-height: 760px;
  }

  .fc .fc-daygrid-day {
    height: 170px;
  }

  .fc .fc-daygrid-day-frame {
    min-height: 170px;
  }
}

@media (max-width:768px) {
  .sc-standalone-page {
    padding: 12px;
  }

  .compact-login-screen {
    padding: 18px;
    border-radius: 26px;
    min-height: calc(100vh - 24px);
  }

  .compact-login-card,
  .sc-card,
  .sc-modal-panel {
    border-radius: 22px;
  }

  .sc-topbar {
    padding: 14px;
    border-radius: 22px;
  }

  .sc-topbar-left,
  .sc-topbar-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .sc-user-chip {
    min-width: 0;
    width: 100%;
  }

  .sales-calendar-header.compact-header h2 {
    font-size: 24px;
  }

  .sales-calendar-filters {
    overflow: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .sc-grid,
  .sc-time-fields {
    grid-template-columns: 1fr;
  }

  .sc-modal-panel {
    margin: 3vh auto;
    padding: 22px 18px;
  }

  .sc-modal-panel h3 {
    font-size: 28px;
  }

  .sc-modal-close {
    width: 44px;
    height: 44px;
    right: 14px;
    top: 14px;
  }

  #sales-calendar {
    min-height: 640px;
  }

  .fc .fc-toolbar.fc-header-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .fc .fc-toolbar-title {
    font-size: 24px;
  }

  .fc .fc-daygrid-day {
    height: 142px;
  }

  .fc .fc-daygrid-day-frame {
    min-height: 142px;
  }

  .fc .fc-daygrid-event .sc-event-card-inner {
    min-height: 92px;
  }

  .fc .fc-button {
    padding: .84em 1em !important;
    margin-right: 8px !important;
  }

  .sc-head-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .sc-head-actions .sc-primary-btn,
  .sc-head-actions .sc-google-btn {
    width: 100%;
  }
}

.sc-topbar .sc-ghost-btn {
  padding: 12px 16px;
  border-radius: 14px;
}

.sc-head-actions .sc-primary-btn {
  min-width: 160px;
}

.sc-login-card h2 {
  color: var(--sc-ink);
  font-weight: 800;
}

.fc .fc-view {
  background: #fff;
  border-radius: 12px;
}

.fc .fc-daygrid-day-frame {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 180px;
}

.fc .fc-daygrid-day-events {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 4px !important;
  scrollbar-width: thin;
}

.fc .fc-daygrid-day-events::-webkit-scrollbar {
  width: 4px;
}

.fc .fc-daygrid-day-events::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.fc .fc-daygrid-more-link {
  display: none !important;
}

.fc .fc-daygrid-day-top {
  justify-content: flex-end;
  padding: 4px 8px;
}

.fc .fc-daygrid-day-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--sc-muted);
}

.fc .fc-timegrid-axis-cushion,
.fc .fc-timegrid-slot-label-cushion {
  font-size: 14px;
}

.sc-head-actions,
.sc-form-actions,
.sc-event-popup .actions {
  gap: 14px;
  flex-wrap: wrap;
}

.sc-filter-btn {
  margin-right: 8px;
  margin-bottom: 8px;
}

.sc-or-divider {
  position: relative;
  text-align: center;
  margin: 4px 0 2px;
}

.sc-or-divider:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--sc-border);
}

.sc-or-divider span {
  position: relative;
  background: #fff;
  padding: 0 10px;
  color: var(--sc-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.sc-help-text {
  font-size: 12px;
  color: var(--sc-muted);
  line-height: 1.5;
}

.sc-multi-select {
  min-height: 140px;
}

.sc-alert-popup {
  padding: 6px 0 0;
}

.sc-alert-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--sc-ink);
  margin-bottom: 10px;
}

.sc-alert-text {
  font-size: 15px;
  color: var(--sc-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.sc-topbar,
.sc-card,
.sc-calendar-card {
  background: #fff;
}

.fc .fc-button-active {
  background: var(--sc-primary) !important;
  box-shadow: 0 16px 26px rgba(190, 36, 75, .18) !important;
}

.fc .fc-daygrid-event,
.fc .fc-timegrid-event {
  background: linear-gradient(135deg, #be244b, #d63b63) !important;
}


/* v3.4.1 UI fixes */
.sc-primary-btn,
.sc-primary-btn:visited,
.sc-primary-btn:hover,
.sc-primary-btn:focus,
.sc-ghost-btn,
.sc-ghost-btn:visited,
.sc-ghost-btn:hover,
.sc-ghost-btn:focus,
.sc-google-btn,
.sc-google-btn:visited,
.sc-google-btn:hover,
.sc-google-btn:focus,
.sc-dark-btn,
.sc-dark-btn:visited,
.sc-dark-btn:hover,
.sc-dark-btn:focus,
.sc-filter-btn.active,
.sc-filter-btn.active:visited,
.sc-filter-btn.active:hover,
.sc-filter-btn.active:focus {
  color: #fff !important;
}

.sc-primary-btn *,
.sc-ghost-btn *,
.sc-google-btn *,
.sc-dark-btn *,
.sc-filter-btn.active * {
  color: inherit !important;
}

.sc-head-actions,
.sc-form-actions,
.sc-event-popup .actions,
.sc-alert-popup .actions {
  flex-wrap: wrap;
}

/* Multi-select Dropdown Styling */
.sc-multi-select-wrap {
  position: relative;
  width: 100%;
}

.sc-multi-select-display {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 48px;
  padding: 8px 40px 8px 12px;
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.sc-multi-select-display:after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat center;
}

.sc-multi-select-display.open {
  border-color: var(--sc-primary);
  box-shadow: 0 0 0 3px var(--sc-primary-soft);
}

.sc-multi-select-display .placeholder {
  color: var(--sc-muted);
  line-height: 32px;
}

.sc-multi-select-tag {
  background: var(--sc-primary-soft);
  color: var(--sc-primary);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-multi-select-tag-remove {
  cursor: pointer;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  background: rgba(190, 36, 75, 0.1);
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}

.sc-multi-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: 12px;
  box-shadow: var(--sc-shadow-lg);
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.sc-multi-select-dropdown.open {
  display: block;
}

.sc-multi-select-option {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}

.sc-multi-select-option:hover {
  background: var(--sc-bg);
}

.sc-multi-select-option.selected {
  background: var(--sc-primary-soft);
  color: var(--sc-primary);
}

.sc-multi-select-option input {
  display: none;
}

.sc-multi-select-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--sc-border);
  border-radius: 4px;
  position: relative;
}

.sc-multi-select-option.selected .sc-multi-select-checkbox {
  background: var(--sc-primary);
  border-color: var(--sc-primary);
}

.sc-multi-select-option.selected .sc-multi-select-checkbox:after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.sc-help-text {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--sc-muted);
  margin-top: 8px;
}

.sc-modal-panel {
  max-height: min(90vh, 920px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sc-modal-panel::-webkit-scrollbar {
  width: 10px;
}

.sc-modal-panel::-webkit-scrollbar-thumb {
  background: #d7deef;
  border-radius: 999px;
}

@media (max-width: 1024px) {
  .sales-calendar-layout {
    grid-template-columns: 1fr;
  }

  .sales-calendar-sidebar {
    position: static;
    order: 2;
  }

  .sales-calendar-main {
    order: 1;
  }
}

@media (max-width: 767px) {
  .sc-standalone-page {
    padding: 10px;
  }

  .sc-topbar {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .sc-topbar-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sc-topbar-right {
    flex-direction: column;
    align-items: stretch;
  }

  .sc-user-chip {
    width: 100%;
    justify-content: center;
  }

  .sc-topbar h1 {
    font-size: 18px;
  }

  .sales-calendar-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: center;
  }

  .sc-head-actions {
    flex-direction: column;
    width: 100%;
  }

  .sc-head-actions button {
    width: 100%;
  }

  .sc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sc-modal-panel {
    padding: 24px 16px;
    width: calc(100% - 20px);
    margin: 2vh 10px;
  }

  .sc-modal-panel h3 {
    font-size: 22px;
  }

  /* FullCalendar Mobile Tweaks */
  .fc .fc-toolbar {
    flex-direction: column;
    gap: 12px !important;
  }

  .fc .fc-toolbar-title {
    font-size: 18px !important;
  }

  .fc .fc-button {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  .fc .fc-button-group {
    gap: 6px !important;
  }
}

@media (max-width: 900px) {
  .sc-topbar {
    padding: 12px 14px;
  }

  .sc-topbar-right {
    gap: 10px;
  }

  .sc-user-chip {
    min-width: 0;
  }

  .sales-calendar-layout {
    grid-template-columns: 1fr;
  }

  .sales-calendar-sidebar {
    position: static;
  }

  .sc-calendar-card {
    padding: 8px;
  }
}

@media (max-width: 640px) {
  .sc-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .sc-topbar-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .sc-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .sc-modal-panel {
    width: min(100vw - 16px, 760px);
    max-height: 88vh;
    overflow: auto;
    margin: 3vh auto;
    padding: 20px;
  }

  .sc-form-actions {
    flex-wrap: wrap;
  }

  .sc-login-card h2,
  .sales-calendar-header h2 {
    font-size: 28px;
  }

  .compact-login-card {
    padding: 24px;
  }
}


/* v3.4.3 fixes */
#sc-today-summary:empty:before {
  content: "Loading today\2019s availability...";
  color: var(--sc-muted);
  font-size: 14px;
}

.sc-day-person .sc-meeting-mini+.sc-meeting-mini {
  margin-top: 10px;
}

.fc .fc-toolbar-chunk .fc-button:last-child {
  margin-right: 0 !important;
}

.fc .fc-prev-button,
.fc .fc-next-button,
.fc .fc-today-button,
.fc .fc-dayGridMonth-button,
.fc .fc-timeGridWeek-button,
.fc .fc-timeGridDay-button {
  min-width: 74px;
}

.sc-hover-tooltip {
  position: absolute;
  z-index: 100000;
  pointer-events: none;
  background: #111;
  color: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 42px rgba(17, 17, 17, .28);
  max-width: 340px;
  border: 1px solid rgba(255, 255, 255, .08);
}

.sc-event-hover-card {
  display: grid;
  gap: 8px;
}

.sc-hover-time {
  font-size: 12px;
  font-weight: 700;
  color: #f6b9c9;
  letter-spacing: .02em;
}

.sc-hover-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.sc-hover-row {
  font-size: 13px;
  line-height: 1.5;
  color: #f5f5f5;
}

.sc-hover-row b {
  color: #fff;
}

.sc-primary-btn,
.sc-ghost-btn,
.sc-google-btn,
.sc-dark-btn,
.fc .fc-button,
.sc-filter-btn {
  color: #fff !important;
}

.sc-primary-btn span,
.sc-ghost-btn span,
.sc-google-btn span,
.sc-dark-btn span,
.sc-filter-btn span {
  color: #fff !important;
}

/* v3.4.6 fixes */
.sc-modal-panel{overflow:hidden;}
.sc-modal-panel form{max-height:none;overflow:visible;}
.sc-modal-close{z-index:10;display:grid;place-items:center;}
.sc-modal-close span{background:#334155 !important;}

.sc-password-wrap {
  position: relative;
}

.sc-password-toggle {
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff !important;
  color: #111 !important;
  border: 1px solid #fff !important;
}

.sc-password-toggle:hover {
  background: #f7f8fc !important;
  color: #111 !important;
}

.sc-eye-icon {
  width: 22px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 14px/10px;
}

.sc-eye-icon:before {
  width: 6px;
  height: 6px;
}

.sc-eye-icon.is-open:after {
  background: currentColor;
}

.fc .fc-toolbar.fc-header-toolbar {
  gap: 14px !important;
}

.fc .fc-toolbar-chunk {
  gap: 12px !important;
}

.fc .fc-button {
  color: #fff !important;
}

.fc .fc-button-group {
  gap: 10px;
  display: inline-flex;
}

.fc .fc-button-group>.fc-button {
  margin: 0 !important;
  border-radius: 16px !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: var(--sc-primary) !important;
  color: #fff !important;
}

.fc .fc-today-button,
.fc .fc-prev-button,
.fc .fc-next-button,
.fc .fc-dayGridMonth-button,
.fc .fc-timeGridWeek-button,
.fc .fc-timeGridDay-button {
  color: #fff !important;
}

.fc .fc-button:not(.fc-button-active) {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

.fc .fc-button:hover:not(.fc-button-active) {
  background: #222 !important;
  border-color: #222 !important;
  color: #fff !important;
}

.fc .fc-timegrid-event-harness {
  margin: 0 6px !important;
}

.fc .fc-timegrid-event {
  border-radius: 18px !important;
  overflow: hidden !important;
  min-height: 96px !important;
}

.sc-hover-tooltip {
  background: #ffffff !important;
  color: #111 !important;
  border: 1px solid #ead7de !important;
  box-shadow: 0 20px 48px rgba(17, 17, 17, .12) !important;
  max-width: 360px;
  pointer-events: none;
}

.sc-hover-time {
  color: #be244b !important;
}

.sc-hover-title {
  color: #111 !important;
}

.sc-hover-row {
  color: #4b5563 !important;
}

.sc-hover-row b {
  color: #111 !important;
}


/* v3.4.9 week/day exact card look */
.fc .fc-timegrid-slot {
  height: 3.8rem;
}

.fc .fc-timegrid-event {
  min-height: 118px !important;
  border-radius: 26px !important;
  background: linear-gradient(135deg, #be244b, #d63b63) !important;
  box-shadow: 0 18px 34px rgba(190, 36, 75, .18) !important;
}

.fc .fc-timegrid-event .sc-event-card-inner {
  min-height: 118px;
  padding: 14px 16px;
  gap: 7px;
  align-content: start;
}

.fc .fc-timegrid-event .sc-event-time {
  font-size: 13px;
  letter-spacing: .04em;
  opacity: 1;
}

.fc .fc-timegrid-event .sc-event-title {
  font-size: 16px;
  line-height: 1.28;
}

.fc .fc-timegrid-event .sc-event-client,
.fc .fc-timegrid-event .sc-event-attendees {
  font-size: 12.5px;
  line-height: 1.45;
  opacity: .98;
}

.fc .fc-timegrid-event-harness {
  margin: 0 10px !important;
}

.fc .fc-timegrid-event .sc-event-card-inner.is-timegrid {
  border-radius: 26px;
}

.sc-event-external {
  background: linear-gradient(135deg, #6366f1, #818cf8) !important;
  border-left: 4px solid #4f46e5 !important;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2) !important;
}
.sc-event-external:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.3) !important;
}
.sc-event-external .sc-event-title::before {
  content: '📅 ';
  font-size: 0.9em;
}

.sc-event-past {
  opacity: 0.6 !important;
  filter: grayscale(0.3);
  transition: all 0.3s ease;
}
.sc-event-past:hover {
  opacity: 1 !important;
  filter: grayscale(0);
}

.sc-notes-area {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  color: var(--sc-muted);
}
.sc-notes-area a {
  color: var(--sc-primary);
  text-decoration: underline;
  font-weight: 600;
}

.sc-view-stats-bar {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--sc-radius-lg);
  padding: 18px 24px;
  box-shadow: var(--sc-shadow-soft);
  border: 1px solid var(--sc-border);
}
.sc-stats-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.sc-stat-label {
  display: flex;
  flex-direction: column;
}
.sc-stat-label span {
  font-size: 11px;
  font-weight: 800;
  color: var(--sc-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.sc-stat-label strong {
  font-size: 22px;
  color: var(--sc-ink);
  letter-spacing: -0.02em;
}
.sc-stat-group {
  display: flex;
  gap: 40px;
}
.sc-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.sc-stat-item span {
  font-size: 11px;
  font-weight: 700;
  color: var(--sc-muted);
  margin-bottom: 2px;
}
.sc-stat-item strong {
  font-size: 20px;
  color: var(--sc-ink);
  font-weight: 800;
}
.sc-stat-item.is-total strong {
  color: var(--sc-primary);
}

.sc-refresh-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--sc-border);
  background: #fff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.sc-refresh-btn:hover {
  background: #f8fafc;
  color: var(--sc-primary);
  border-color: var(--sc-primary);
}
.sc-refresh-btn:active svg {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.sc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.sc-card-header h3 { margin: 0 !important; }

.sc-mini-filters {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
}
.sc-mini-filter {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sc-mini-filter.active {
  background: #fff;
  color: var(--sc-primary);
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.sc-time-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--sc-border);
  background: #f8fafc;
  color: var(--sc-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}
.sc-time-select:focus {
  border-color: var(--sc-primary);
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(190,36,75,0.1);
}

@media (max-width: 768px) {
  .sc-view-stats-bar { padding: 16px; }
  .sc-stats-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sc-stat-group { width: 100%; justify-content: space-between; gap: 10px; }
  .sc-stat-item { align-items: flex-start; }
}