/* Compliance Calendar — hero & tool widget */
.cc-page {
  --cc-navy: #061a31;
  --cc-navy2: #0b2947;
  --cc-coral: #f45f58;
  --cc-coral2: #d94a44;
  --cc-ink: #10243a;
  --cc-muted: #5c6f82;
  --cc-line: #d9e2ea;
  --cc-green: #16825c;
  --cc-green-soft: #eaf7f1;
  --cc-amber: #9e650f;
  --cc-amber-soft: #fff7e8;
  --cc-red: #bd3f39;
  --cc-red-soft: #fff0ef;
  --cc-shadow: 0 24px 70px rgba(4, 24, 46, 0.18);
}

.cc-page .hero {
  position: relative;
  min-height: calc(100svh - 58px);
  display: flex;
  align-items: flex-start;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(54, 107, 155, 0.36), transparent 32%),
    linear-gradient(135deg, var(--cc-navy), #081f39 58%, #0b2d50);
}

.cc-page .grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
  color: #fff;
}

.cc-page .shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-block: 28px 36px;
  padding-inline: clamp(16px, 3vw, 40px);
  display: block;
}

.cc-page .kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffaaa6;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 13px;
}

.cc-page .kicker:before {
  content: "";
  width: 27px;
  height: 2px;
  background: var(--cc-coral);
}

.cc-page .intro h1 {
  font-size: clamp(2.4rem, 4.15vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.058em;
  margin: 0;
  max-width: 520px;
  text-align: left;
  word-spacing: normal;
  font-weight: 800;
}

.cc-page .intro h1 span {
  color: #ff817a;
}

.cc-page .intro p {
  max-width: 545px;
  color: #c8d6e4;
  font-size: 0.92rem;
  line-height: 1.68;
  margin: 17px 0 0;
}

.cc-page .proof {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 17px;
  margin-top: 19px;
  color: #c6d5e3;
  font-size: 0.71rem;
}

.cc-page .proof span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cc-page .proof svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #57dda1;
  stroke-width: 2.4;
}

.cc-page .scope {
  margin-top: 21px;
  padding: 12px 14px;
  border-left: 3px solid var(--cc-coral);
  background: rgba(255, 255, 255, 0.07);
  color: #bdccda;
  font-size: 0.67rem;
  line-height: 1.52;
  max-width: 560px;
}

.cc-page .tool {
  min-width: 0;
  max-width: 100%;
  background: #fff;
  color: var(--cc-ink);
  box-shadow: var(--cc-shadow);
  border-top: 4px solid var(--cc-coral);
  display: grid;
  grid-template-rows: auto auto auto auto auto;
}

.cc-page .tool-head {
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--cc-line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.cc-page .tool-head small {
  display: block;
  color: var(--cc-coral2);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cc-page .tool-head h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
  color: var(--cc-ink);
  text-align: left;
  font-weight: 800;
  line-height: 1.15;
}

.cc-page .tool-lead {
  margin: 8px 0 0;
  max-width: 52rem;
  color: var(--cc-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.cc-page .tool-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.cc-page .tool-head-actions button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--cc-line);
  background: #fff;
  color: var(--cc-ink);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.cc-page .tool-head-actions button:hover {
  border-color: var(--cc-coral);
  color: var(--cc-coral2);
}

.cc-page .config {
  padding: 14px 22px;
  border-bottom: 1px solid var(--cc-line);
  background: #fbfcfd;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}

.cc-page .metrics-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-page .metrics-bar .metric {
  min-width: 88px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--cc-line);
}

.cc-page .metrics-bar .metric small {
  display: block;
  color: var(--cc-muted);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cc-page .metrics-bar .metric strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
  color: var(--cc-ink);
  letter-spacing: -0.02em;
}

.cc-page .field label {
  display: block;
  margin-bottom: 4px;
  color: var(--cc-muted);
  font-size: 0.49rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cc-page .field input,
.cc-page .field select {
  width: 100%;
  height: 38px;
  border: 1px solid #cfd8e1;
  background: #fff;
  color: var(--cc-ink);
  padding: 0 9px;
  font-size: 0.61rem;
  outline: none;
  border-radius: 0;
}

.cc-page .field input:focus,
.cc-page .field select:focus {
  border-color: var(--cc-coral);
}

.cc-page .generate {
  height: 38px;
  align-self: end;
  border: 0;
  background: var(--cc-coral);
  color: #fff;
  padding: 0 15px;
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
}

.cc-page .generate:hover {
  background: var(--cc-coral2);
}

.cc-page .toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.cc-page .toggle {
  padding: 6px 8px;
  border: 1px solid var(--cc-line);
  background: #fff;
  color: var(--cc-muted);
  font-size: 0.54rem;
  font-weight: 800;
  cursor: pointer;
}

.cc-page .toggle.active {
  background: var(--cc-navy2);
  border-color: var(--cc-navy2);
  color: #fff;
}

.cc-page .workspace {
  display: block;
  min-height: 0;
}

.cc-page .calendar-pane {
  padding: 16px 22px 20px;
  border-right: 0;
  min-width: 0;
}

.cc-page .toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}

.cc-page .toolbar-left,
.cc-page .toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cc-page .month-title {
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 120px;
  color: var(--cc-ink);
}

.cc-page .icon-btn,
.cc-page .view-btn {
  height: 29px;
  padding: 0 9px;
  border: 1px solid var(--cc-line);
  background: #fff;
  color: var(--cc-muted);
  font-size: 0.54rem;
  font-weight: 800;
  cursor: pointer;
}

.cc-page .view-btn.active {
  background: var(--cc-navy2);
  border-color: var(--cc-navy2);
  color: #fff;
}

.cc-page .calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid var(--cc-line);
  border-top: 1px solid var(--cc-line);
}

.cc-page .day-name {
  padding: 6px;
  background: #f5f7f9;
  border-right: 1px solid var(--cc-line);
  border-bottom: 1px solid var(--cc-line);
  font-size: 0.48rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--cc-muted);
  text-align: center;
}

.cc-page .day {
  min-height: 88px;
  padding: 6px;
  border-right: 1px solid var(--cc-line);
  border-bottom: 1px solid var(--cc-line);
  background: #fff;
  overflow: hidden;
}

.cc-page .day.muted {
  background: #fafbfc;
  color: #a7b1bc;
}

.cc-page .day.today {
  box-shadow: inset 0 0 0 2px var(--cc-coral);
}

.cc-page .day-number {
  font-size: 0.52rem;
  font-weight: 800;
}

.cc-page .event-dot {
  display: block;
  margin-top: 4px;
  padding: 3px 4px;
  font-size: 0.43rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 2px solid;
}

.cc-page .event-dot.GST {
  background: #eef6ff;
  border-color: #3b7fc4;
  color: #255c93;
}

.cc-page .event-dot.ROC {
  background: var(--cc-red-soft);
  border-color: var(--cc-coral);
  color: #9c3c37;
}

.cc-page .event-dot.TDS {
  background: var(--cc-amber-soft);
  border-color: #d99a32;
  color: #83530b;
}

.cc-page .event-dot.PAYROLL {
  background: var(--cc-green-soft);
  border-color: var(--cc-green);
  color: #126448;
}

.cc-page .event-dot.TAX {
  background: #f0edff;
  border-color: #745ac8;
  color: #5541a0;
}

.cc-page .event-dot.INTERNAL {
  background: #eef1f4;
  border-color: #738293;
  color: #526171;
}

.cc-page .list-view {
  display: none;
  max-height: 455px;
  overflow: auto;
  border: 1px solid var(--cc-line);
}

.cc-page .list-view.visible {
  display: block;
}

.cc-page .calendar.hidden {
  display: none;
}

.cc-page .list-item {
  display: grid;
  grid-template-columns: 75px 1fr auto;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--cc-line);
  align-items: center;
}

.cc-page .list-item:last-child {
  border-bottom: 0;
}

.cc-page .list-date strong {
  display: block;
  font-size: 0.65rem;
  color: var(--cc-ink);
}

.cc-page .list-date span {
  font-size: 0.49rem;
  color: var(--cc-muted);
}

.cc-page .list-main strong {
  display: block;
  font-size: 0.64rem;
  color: var(--cc-ink);
}

.cc-page .list-main span {
  display: block;
  margin-top: 2px;
  font-size: 0.52rem;
  color: var(--cc-muted);
}

.cc-page .tag {
  padding: 4px 6px;
  font-size: 0.48rem;
  font-weight: 850;
  background: #eef1f4;
  color: #536273;
}

.cc-page .empty-calendar {
  text-align: center;
  padding: 80px 20px;
  color: var(--cc-muted);
  font-size: 0.68rem;
}

.cc-page .side {
  padding: 14px;
  background: #f7f9fb;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cc-page .summary-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cc-page .summary-head h3 {
  font-size: 0.77rem;
  margin: 0;
  color: var(--cc-ink);
}

.cc-page .summary-head span {
  font-size: 0.52rem;
  color: var(--cc-muted);
}

.cc-page .metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 9px;
}

.cc-page .metric {
  padding: 8px;
  background: #fff;
  border: 1px solid var(--cc-line);
}

.cc-page .metric small {
  display: block;
  color: var(--cc-muted);
  font-size: 0.45rem;
  text-transform: uppercase;
  font-weight: 800;
}

.cc-page .metric strong {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--cc-ink);
}

.cc-page .upcoming {
  margin-top: 11px;
}

.cc-page .upcoming h4 {
  font-size: 0.64rem;
  margin: 0 0 7px;
  color: var(--cc-ink);
}

.cc-page .upcoming-list {
  display: grid;
  gap: 6px;
  max-height: 258px;
  overflow: auto;
}

.cc-page .up-card {
  padding: 9px;
  border: 1px solid var(--cc-line);
  background: #fff;
}

.cc-page .up-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cc-page .up-card strong {
  font-size: 0.59rem;
  line-height: 1.35;
  color: var(--cc-ink);
}

.cc-page .days-left {
  font-size: 0.49rem;
  font-weight: 850;
  color: var(--cc-coral2);
  white-space: nowrap;
}

.cc-page .up-card p {
  margin: 3px 0 0;
  font-size: 0.49rem;
  color: var(--cc-muted);
  line-height: 1.35;
}

.cc-page .up-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.45rem;
  color: var(--cc-muted);
}

.cc-page .warning {
  margin-top: 10px;
  padding: 9px;
  background: var(--cc-amber-soft);
  border: 1px solid #efd6ab;
  color: #76500f;
  font-size: 0.52rem;
  line-height: 1.4;
}

.cc-page .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}

.cc-page .actions button,
.cc-page .actions a {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cc-line);
  background: #fff;
  color: var(--cc-ink);
  font-size: 0.56rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.cc-page .actions a {
  grid-column: 1 / -1;
  background: var(--cc-coral);
  border-color: var(--cc-coral);
  color: #fff;
}

.cc-page .actions a:hover {
  background: var(--cc-coral2);
  color: #fff;
}

.cc-page .cc-remind {
  margin: 0 22px 8px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 101, 93, 0.35);
  background: linear-gradient(135deg, #fff7f6, #fff);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px 24px;
  align-items: center;
}

.cc-page .cc-remind-copy h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--cc-ink);
  font-weight: 800;
}

.cc-page .cc-remind-copy p {
  margin: 6px 0 0;
  color: var(--cc-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.cc-page .cc-remind-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.cc-page .cc-remind-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid #cfd8e1;
  background: #fff;
  color: var(--cc-ink);
  padding: 0 12px;
  font-size: 0.88rem;
  outline: none;
}

.cc-page .cc-remind-form input[type="email"]:focus {
  border-color: var(--cc-coral);
}

.cc-page .cc-remind-form button {
  height: 44px;
  border: 0;
  background: var(--cc-coral);
  color: #fff;
  padding: 0 18px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.cc-page .cc-remind-form button:hover {
  background: var(--cc-coral2);
}

.cc-page .cc-remind-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.cc-page .cc-remind-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.2em;
  font-size: 0.78rem;
  color: var(--cc-muted);
}

.cc-page .cc-remind-status.is-success {
  color: var(--cc-green);
  font-weight: 700;
}

.cc-page .cc-remind-status.is-error {
  color: var(--cc-red);
  font-weight: 700;
}

.cc-page .cc-footnote {
  margin: 0;
  padding: 10px 22px 18px;
  color: var(--cc-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.cc-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .cc-page .hero {
    min-height: auto;
  }

  .cc-page .shell {
    padding-block: 28px 32px;
  }
}

@media (max-width: 760px) {
  .cc-page .shell {
    padding-inline: clamp(12px, 3vw, 20px);
    padding-block: 20px 24px;
  }

  .cc-page .tool-head {
    flex-direction: column;
  }

  .cc-page .config {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-page .cc-remind {
    margin: 0 14px 8px;
    padding: 16px;
    grid-template-columns: 1fr;
  }

  .cc-page .cc-remind-form {
    flex-direction: column;
  }

  .cc-page .day {
    min-height: 58px;
  }
}

@media (max-width: 460px) {
  .cc-page .tool-head,
  .cc-page .config,
  .cc-page .calendar-pane {
    padding-left: 13px;
    padding-right: 13px;
  }

  .cc-page .cc-footnote {
    padding-left: 13px;
    padding-right: 13px;
  }

  .cc-page .calendar {
    font-size: 0.8em;
  }

  .cc-page .day {
    min-height: 51px;
    padding: 4px;
  }

  .cc-page .event-dot {
    font-size: 0.38rem;
  }

  .cc-page .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-page * {
    animation: none !important;
    transition: none !important;
  }
}

