/* StatusDot admin – comparison chart card styling */

.statusdot-compare-card{
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:12px;
  padding:20px;
  margin:16px 0 24px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}

.statusdot-compare-head{
  display:flex;
  gap:16px;
  align-items:flex-start;
  justify-content:space-between;
  padding-bottom:14px;
  border-bottom:1px solid #eef0f2;
  margin-bottom:14px;
}

.statusdot-compare-headcopy h2{
  margin:0 0 6px;
  font-size:16px;
  line-height:1.3;
}

.statusdot-compare-headcopy p{
  margin:0;
  color:#646970;
  max-width:820px;
}

.statusdot-compare-cta{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:8px;
}

.statusdot-compare-tablewrap{
  border:1px solid #eef0f2;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}

.statusdot-compare-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:0;
}

.statusdot-compare-table th,
.statusdot-compare-table td{
  padding:10px 12px;
  border-bottom:1px solid #f1f2f4;
  vertical-align:middle;
}

.statusdot-compare-table thead th{
  background:#f6f7f7;
  font-weight:600;
  color:#1d2327;
}


.statusdot-compare-table thead th:first-child,
.statusdot-compare-table tbody td:first-child{
  text-align:center;
}
.statusdot-compare-table th:first-child,
.statusdot-compare-table td:first-child{
  width:60%;
}

.statusdot-compare-table th:nth-child(2),
.statusdot-compare-table td:nth-child(2),
.statusdot-compare-table th:nth-child(3),
.statusdot-compare-table td:nth-child(3){
  width:20%;
  text-align:center;
  white-space:nowrap;
}

.statusdot-compare-table tbody tr:nth-child(even) td{
  background:#fbfbfc;
}

.statusdot-compare-table tbody tr:last-child td{
  border-bottom:0;
}

.statusdot-compare-table td{
  font-size:13px;
}

@media (max-width: 782px){
  .statusdot-compare-head{
    flex-direction:column;
  }
  .statusdot-compare-headcopy p{
    max-width:none;
  }
  .statusdot-compare-table th:first-child,
  .statusdot-compare-table td:first-child{
    width:auto;
  }
}


/* StatusDot admin – settings cards (weekly schedule etc.) */

.statusdot-card{
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:12px;
  padding:20px;
  margin:16px 0 24px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}

.statusdot-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:14px;
  border-bottom:1px solid #eef0f2;
  margin-bottom:14px;
}

.statusdot-card-head h2{
  margin:0;
  font-size:16px;
  line-height:1.3;
}

.statusdot-card-body{
  margin:0;
}

.statusdot-tablewrap{
  border:1px solid #eef0f2;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}

.statusdot-weekly-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:0;
}

.statusdot-weekly-table th,
.statusdot-weekly-table td{
  padding:10px 12px;
  border-bottom:1px solid #f1f2f4;
  vertical-align:middle;
}

.statusdot-weekly-table thead th{
  background:#f6f7f7;
  font-weight:600;
  color:#1d2327;
}

.statusdot-weekly-table tbody tr:nth-child(even) td{
  background:#fbfbfc;
}

.statusdot-weekly-table tbody tr:last-child td{
  border-bottom:0;
}

.statusdot-weekly-table input[type="number"]{
  max-width:90px;
}

@media (max-width: 782px){
  .statusdot-card{
    padding:16px;
  }
}


/* Weekly Schedule – alignment polish (center headers + rows, align inputs/checkboxes) */
.form-table th{
  width:250px;
}

.statusdot-weekly-table thead th{
  text-align:center;
}
.statusdot-weekly-table tbody td{
  text-align:center;
}
.statusdot-weekly-table tbody td:first-child{
  text-align:center;
  font-weight:500;
}
.statusdot-weekly-table input[type="number"],
.statusdot-weekly-table select{
  margin:0 auto;
  display:block;
}
.statusdot-weekly-table input[type="checkbox"]{
  margin:0 auto;
  display:block;
}

/* Shortcode notice */
.statusdot-shortcode-notice{
  margin:10px 0 20px;
  padding:7px 20px;
  border-left:4px solid #2271b1;
}

.statusdot-tip{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:6px;
  width:18px;
  height:18px;
  padding:0;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#646970;
  cursor:help;
  vertical-align:middle;
}
.statusdot-tip .dashicons{
  width:18px;
  height:18px;
  font-size:18px;
}
.statusdot-tip:hover,
.statusdot-tip:focus-visible{
  color:#2271b1;
  outline:none;
}
.statusdot-tip::after{
  content:attr(data-statusdot-tooltip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translateX(-50%);
  z-index:100100;
  width:max-content;
  max-width:min(320px, calc(100vw - 32px));
  padding:8px 10px;
  border-radius:8px;
  background:#1d2327;
  color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  font-size:12px;
  line-height:1.45;
  font-weight:400;
  text-align:left;
  white-space:normal;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .12s ease, visibility .12s ease;
}
.statusdot-tip:hover::after,
.statusdot-tip:focus-visible::after{
  opacity:1;
  visibility:visible;
}


/* Pro tables – match card/table styling */
.statusdot-pro-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:0;
}
.statusdot-pro-table th,
.statusdot-pro-table td{
  padding:10px 12px;
  border-bottom:1px solid #f1f2f4;
  vertical-align:middle;
}
.statusdot-pro-table thead th{
  background:#f6f7f7;
  font-weight:600;
  color:#1d2327;
  text-align:center;
}
.statusdot-pro-table tbody tr:nth-child(even) td{
  background:#fbfbfc;
}
.statusdot-pro-table tbody tr:last-child td{
  border-bottom:0;
}
.statusdot-pro-table td{
  text-align:center;
}


/* Pro schedule sections (Busy windows / Holidays / Exceptions / Rules) */
.statusdot-card--section .statusdot-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:14px;
  border-bottom:1px solid #eef0f2;
  margin-bottom:14px;
}
.statusdot-card--section .statusdot-card__head h3{
  margin:0 0 6px;
  font-size:16px;
  line-height:1.3;
}
.statusdot-card--section .statusdot-card__head p{
  margin:0;
  color:#646970;
}

/* Reuse tablewrap styling for Pro tables */
.statusdot-tablewrap .statusdot-pro-table{
  margin:0;
}

/* Timezone autocomplete dropdown */
.statusdot-tz-suggest{
  position:absolute;
  z-index:100000;
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  overflow:hidden;
  max-height:240px;
}
.statusdot-tz-suggest button{
  display:block;
  width:100%;
  text-align:left;
  padding:10px 12px;
  border:0;
  background:transparent;
  cursor:pointer;
  font-size:13px;
}
.statusdot-tz-suggest button:hover,
.statusdot-tz-suggest button:focus{
  background:#f6f7f7;
  outline:none;
}
.statusdot-tz-suggest .statusdot-tz-empty{
  padding:10px 12px;
  color:#646970;
  font-size:13px;
}


/* Idle pill */
.statusdot-pill{display:inline-block;padding:4px 10px;border-radius:999px;background:#f0f0f1;color:#2c3338;font-size:12px;font-weight:600;}
.statusdot-pill--active{background:#fff3cd;color:#6b4f00;border:1px solid rgba(0,0,0,.08);}

.statusdot-display-split{
  display:flex;
  gap:16px;
  align-items:flex-start;
  flex-wrap:wrap;
  margin-top:14px;
}
.statusdot-display-card{
  flex:1 1 520px;
  min-width:520px;
  margin-top:0;
}

/* Keep the live preview visible while scrolling */
/* Live preview card */
.statusdot-live-preview{
  position:sticky;
  top:118px;
  align-self:flex-start;
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:12px;
  padding:20px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  width:520px;
  max-width:100%;
  max-height:calc(100vh - 140px);
  overflow:auto;
}
.statusdot-display-split > .statusdot-live-preview{
  top:118px;
  flex:0 1 520px;
}
.statusdot-profeatures-wrap > .statusdot-live-preview{
  top:134px;
}




.statusdot-live-preview strong{
  font-size:20px;
}


/* Pro schedule: Status Mode title should match Free styling */
.statusdot-statusmode-title{margin:0 0 8px;font-size:16px;line-height:1.3;}


.statusdot-weekly-table input.statusdot-field-error,
.statusdot-pro-table input.statusdot-field-error{
  border-color:#d63638 !important;
  box-shadow:0 0 0 1px #d63638 !important;
}

.statusdot-break-error-msg{
  display:none;
  margin-top:6px;
  font-size:12px;
  line-height:1.4;
  color:#d63638;
}

.statusdot-break-slots{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.statusdot-break-slot{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.statusdot-break-slot__toggle{
  min-width:80px;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
}
.statusdot-break-slot__dash{
  color:#646970;
}

.statusdot-break-slot-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.statusdot-break-remove{
  margin-left:auto;
}
.statusdot-break-slot .button-link-delete{
  text-decoration:none;
}
#statusdot-tab-analytics .statusdot-status-icon{
  vertical-align:middle;
}

.statusdot-schedule-tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0;}
.statusdot-schedule-tab.is-active{background:#2271b1;border-color:#2271b1;color:#fff;}
.statusdot-schedule-panel{margin-bottom:18px;}
.statusdot-schedule-panel[style*="display:none"]{margin-bottom:0;}


.statusdot-schedule-tab{display:inline-flex;align-items:center;gap:0;}
.statusdot-schedule-tab-label{display:inline-block;}
.statusdot-schedule-tab-state{display:inline-block;opacity:.8;}
.statusdot-schedule-tab.is-active .statusdot-schedule-tab-state{opacity:.95;}


.statusdot-analytics-hours-details{
  text-align:left;
}
.statusdot-analytics-hours-summary{
  cursor:pointer;
  font-weight:600;
  list-style:none;
}
.statusdot-analytics-hours-summary::-webkit-details-marker{
  display:none;
}
.statusdot-analytics-hours-summary::before{
  content:'▸';
  display:inline-block;
  margin-right:6px;
  color:#646970;
}
.statusdot-analytics-hours-details[open] .statusdot-analytics-hours-summary::before{
  content:'▾';
}
.statusdot-analytics-hours-details-body{
  margin-top:8px;
}
.statusdot-analytics-hours-line + .statusdot-analytics-hours-line{
  margin-top:4px;
}
.statusdot-activity-log-settings-form,
.statusdot-activity-log-filter-form{
  display:flex;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.statusdot-field-label{
  display:block;
  font-weight:600;
  margin-bottom:4px;
}
.statusdot-activity-log-settings-note{
  color:#646970;
  margin-bottom:4px;
}
.statusdot-activity-log-settings-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.statusdot-activity-log-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
}
.statusdot-activity-log-count{
  color:#646970;
}
.statusdot-activity-log-pagination{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.statusdot-mail-grid{
  display:grid;
  gap:12px;
  max-width:980px;
}
.statusdot-mail-grid--two{
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}
.statusdot-mail-grid--smtp{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
.statusdot-mail-grid label{
  display:block;
}
.statusdot-mail-grid input[type="text"],
.statusdot-mail-grid input[type="email"],
.statusdot-mail-grid input[type="password"],
.statusdot-mail-grid input[type="number"],
.statusdot-mail-grid select{
  width:100%;
  max-width:100%;
}
.statusdot-mail-smtp-box{
  max-width:980px;
  padding:14px;
  border:1px solid #dcdcde;
  border-radius:12px;
  background:#fbfbfc;
}
.statusdot-mail-smtp-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  font-weight:600;
}
@media (max-width: 782px){
  .statusdot-activity-log-footer{
    align-items:flex-start;
  }
}
