/* Creavi Booking admin screens, styled after the Creavi info page. */

body.post-type-creavibc_booking {
  --cbs-bookings-navy: #10182f;
  --cbs-bookings-ink: #18213a;
  --cbs-bookings-muted: #667085;
  --cbs-bookings-line: #e6e9f0;
  --cbs-bookings-blue: #3679db;
  --cbs-bookings-cyan: #62c7cf;
  --cbs-bookings-violet: #7f37aa;
  --cbs-bookings-surface: #f6f7fb;
}

body.post-type-creavibc_booking #wpbody-content {
  color: var(--cbs-bookings-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.post-type-creavibc_booking .notice,
body.post-type-creavibc_booking div.error,
body.post-type-creavibc_booking div.updated,
body.post-type-creavibc_booking .update-nag,
body.post-type-creavibc_booking .settings-error,
body.post-type-creavibc_booking .fs-notice,
body.post-type-creavibc_booking .yoast-notice,
body.post-type-creavibc_booking .rank-math-notice,
body.post-type-creavibc_booking .woocommerce-message,
body.post-type-creavibc_booking .elementor-message,
body.post-type-creavibc_booking [class*="notice-"][role="alert"],
body.post-type-creavibc_booking [class*="notification"][role="alert"] {
  display: none !important;
}

body.post-type-creavibc_booking.edit-php .wrap {
  margin-top: 22px;
  max-width: none;
}

body.post-type-creavibc_booking.edit-php .wrap > h1.wp-heading-inline {
  color: var(--cbs-bookings-navy);
  font-size: 28px;
  font-weight: 550;
  letter-spacing: 0;
}

body.post-type-creavibc_booking.edit-php .page-title-action {
  min-height: 36px;
  padding: 7px 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #62c7cf 0%, #5b8fe0 100%) !important;
  box-shadow: 0 9px 24px rgba(72, 155, 218, .18);
  color: #fff !important;
  font-weight: 550;
}

.creavibc-bookings-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  width: calc(100vw - 224px);
  max-width: none;
  margin: 18px 0 26px 0;
  padding: 26px 42px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 18%, rgba(98, 199, 207, .18), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(183, 68, 132, .1), transparent 25%),
    linear-gradient(135deg, #f8fcfd 0%, #f6f7fc 58%, #faf7fc 100%);
  box-shadow: 0 16px 42px rgba(48, 67, 105, .07);
}

.creavibc-bookings-admin-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--cbs-bookings-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.creavibc-bookings-admin-hero h2 {
  margin: 0;
  color: #1b2850;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.12;
}

.creavibc-bookings-admin-hero p {
  max-width: 650px;
  margin: 10px 0 0;
  color: #68748a;
  font-size: 15px;
  line-height: 1.65;
}

.creavibc-bookings-admin-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  max-width: 44%;
}

.creavibc-bookings-admin-pill,
.creavibc-bookings-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.creavibc-bookings-admin-pill {
  background: #f0f4fa;
  color: #637087;
}

.creavibc-bookings-admin-link {
  background: rgba(255, 255, 255, .78);
  color: #526078;
  box-shadow: 0 8px 24px rgba(48, 67, 105, .07);
}

.creavibc-bookings-admin-link:hover,
.creavibc-bookings-admin-link:focus {
  background: #fff;
  color: #263a63;
}

body.folded .creavibc-bookings-admin-hero {
  width: calc(100vw - 88px);
}

body.post-type-creavibc_booking.edit-php .subsubsub {
  float: none;
  margin: 18px 0 14px;
  padding: 0;
  color: #d0d6e0;
  line-height: 1.7;
}

.creavibc-retention-card {
  box-sizing: border-box;
  width: calc(100vw - 224px);
  margin: -10px 0 26px;
  padding: 24px 28px;
  border: 1px solid rgba(54, 121, 219, .12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(48, 67, 105, .06);
}

body.folded .creavibc-retention-card { width: calc(100vw - 88px); }

.creavibc-retention-card__heading,
.creavibc-retention-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.creavibc-retention-eyebrow {
  color: var(--cbs-bookings-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.creavibc-retention-card h3 { margin: 5px 0 6px; color: var(--cbs-bookings-navy); font-size: 20px; }
.creavibc-retention-card p { margin: 0; color: var(--cbs-bookings-muted); }

.creavibc-retention-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--cbs-bookings-blue);
  font-size: 12px;
  font-weight: 650;
}

.creavibc-retention-form {
  --creavibc-retention-control-height: 44px;
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) minmax(210px, 1fr) minmax(150px, .62fr) minmax(210px, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin: 22px 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--cbs-bookings-surface);
}

.creavibc-retention-form label > span:first-child,
.creavibc-retention-toggle strong { display: block; color: #45536c; font-size: 12px; font-weight: 650; }
.creavibc-retention-field { display: flex; min-width: 0; flex-direction: column; }
.creavibc-retention-field > span:first-child {
  display: flex !important;
  align-items: flex-end;
  min-height: 28px;
  margin: 0 0 7px;
  line-height: 1.25;
}
.creavibc-retention-field--custom[hidden] {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}
.creavibc-retention-form select,
.creavibc-retention-form input[type="number"] {
  box-sizing: border-box;
  width: 100%;
  height: var(--creavibc-retention-control-height) !important;
  min-height: var(--creavibc-retention-control-height) !important;
  margin: 0;
  border: 1px solid #dfe4ed;
  border-radius: 9px;
  background-color: #fff;
}
.creavibc-retention-form select { padding-top: 0 !important; padding-bottom: 0 !important; }
.creavibc-retention-form .button {
  height: var(--creavibc-retention-control-height);
  min-height: var(--creavibc-retention-control-height);
  margin-top: 35px;
  padding: 0 18px !important;
  border-radius: 9px;
  white-space: nowrap;
}
.creavibc-retention-form label small { display: block; margin-top: 5px; color: var(--cbs-bookings-muted); font-size: 11px; line-height: 1.35; }

.creavibc-retention-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--creavibc-retention-control-height);
  margin-top: 35px;
}
.creavibc-retention-toggle input { margin: 0; }
.creavibc-retention-toggle small { display: block; color: var(--cbs-bookings-muted); line-height: 1.35; }

.creavibc-retention-footer p { max-width: 780px; font-size: 12px; line-height: 1.55; }
.creavibc-retention-footer .button { border-radius: 9px; }

.creavibc-retention-message {
  margin: 0 0 18px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #e8f8f1;
  color: #187153;
  font-weight: 600;
}
.creavibc-retention-message--warning { background: #fff5df; color: #8a5b00; }

body.post-type-creavibc_booking.edit-php .subsubsub a {
  color: #526078;
  font-weight: 500;
  text-decoration: none;
}

body.post-type-creavibc_booking.edit-php .search-box {
  display: flex;
  float: right;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0 16px;
}

body.post-type-creavibc_booking.edit-php .search-box input[type="search"] {
  width: 190px;
  min-height: 34px;
  margin: 0;
  padding: 6px 12px !important;
}

body.post-type-creavibc_booking.edit-php .search-box input[type="submit"] {
  min-height: 34px;
  margin: 0;
  padding: 0 14px !important;
  font-size: 13px;
}

body.post-type-creavibc_booking.edit-php .tablenav.top {
  clear: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-height: 34px;
  margin: 12px 0 18px;
  padding: 0;
}

body.post-type-creavibc_booking.edit-php .tablenav.top .tablenav-pages {
  display: none !important;
}

body.post-type-creavibc_booking.edit-php .tablenav.bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 18px;
  padding: 0;
  width: 100%;
}

body.post-type-creavibc_booking.edit-php .tablenav.bottom .tablenav-pages {
  display: flex !important;
  float: none !important;
  margin-left: auto;
  justify-content: flex-end;
}

body.post-type-creavibc_booking.edit-php .tablenav .alignleft.actions {
  display: flex;
  float: none;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 0;
  padding: 0;
}

body.post-type-creavibc_booking.edit-php .tablenav.top .alignleft.actions + .alignleft.actions {
  margin-left: 18px;
}

body.post-type-creavibc_booking.edit-php .tablenav .tablenav-pages {
  display: flex;
  float: none;
  align-items: center;
  gap: 5px;
  margin: 0 0 0 auto;
}

body.post-type-creavibc_booking.edit-php .displaying-num {
  margin: 0 6px 0 0;
  color: var(--cbs-bookings-navy);
  font-size: 13px;
}

body.post-type-creavibc_booking.edit-php .tablenav .actions select,
body.post-type-creavibc_booking.edit-php .tablenav .actions input[type="submit"],
body.post-type-creavibc_booking.edit-php .search-box input[type="search"],
body.post-type-creavibc_booking.edit-php .search-box input[type="submit"] {
  border-radius: 10px !important;
  border: 1px solid rgba(17, 24, 39, .1) !important;
  box-shadow: 0 6px 16px rgba(48, 67, 105, .04);
}

body.post-type-creavibc_booking.edit-php .tablenav .actions select {
  width: auto;
  min-width: 136px;
  min-height: 34px;
  margin: 0;
  padding: 0 32px 0 12px !important;
  background-color: #fff !important;
  font-size: 13px;
}

body.post-type-creavibc_booking.edit-php .tablenav .actions input[type="submit"] {
  min-height: 34px;
  margin: 0;
  padding: 0 13px !important;
  background: #f8faff !important;
  color: #2448ff !important;
  font-size: 13px;
  font-weight: 550;
}

body.post-type-creavibc_booking.edit-php .tablenav-pages .button,
body.post-type-creavibc_booking.edit-php .tablenav-pages .tablenav-pages-navspan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 4px;
  font-size: 12px;
}

body.post-type-creavibc_booking.edit-php .tablenav-pages .current-page {
  width: 46px;
  height: 32px;
  margin: 0;
  border-radius: 2px !important;
  text-align: center;
}

body.post-type-creavibc_booking.edit-php .tablenav-pages .pagination-links {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.post-type-creavibc_booking.edit-php .wp-list-table {
  overflow: hidden;
  border: 0 !important;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(48, 67, 105, .07);
}

body.post-type-creavibc_booking.edit-php .wp-list-table thead th,
body.post-type-creavibc_booking.edit-php .wp-list-table thead td,
body.post-type-creavibc_booking.edit-php .wp-list-table tfoot td,
body.post-type-creavibc_booking.edit-php .wp-list-table tfoot th {
  border-bottom: 0 !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #fbfcff, #f7f9fd);
  color: #637087;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.post-type-creavibc_booking.edit-php .wp-list-table thead th,
body.post-type-creavibc_booking.edit-php .wp-list-table thead td {
  height: 54px;
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: middle;
}

body.post-type-creavibc_booking.edit-php .wp-list-table .check-column {
  width: 52px;
  padding: 0 0 0 12px !important;
  text-align: center;
  vertical-align: middle;
}

body.post-type-creavibc_booking.edit-php .wp-list-table .check-column input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 4px;
}

body.post-type-creavibc_booking.edit-php .wp-list-table th.column-title {
  width: 18%;
}

body.post-type-creavibc_booking.edit-php .wp-list-table th.column-creavibc_booking_when {
  width: 17%;
}

body.post-type-creavibc_booking.edit-php .wp-list-table th.column-creavibc_booking_guest {
  width: 17%;
}

body.post-type-creavibc_booking.edit-php .wp-list-table th.column-creavibc_booking_service {
  width: 18%;
}

body.post-type-creavibc_booking.edit-php .wp-list-table th.column-creavibc_booking_meeting {
  width: 15%;
}

body.post-type-creavibc_booking.edit-php .wp-list-table tbody tr {
  transition: background .2s ease;
}

body.post-type-creavibc_booking.edit-php .wp-list-table tbody tr:hover {
  background: #f8fbff;
}

body.post-type-creavibc_booking.edit-php .wp-list-table tbody td,
body.post-type-creavibc_booking.edit-php .wp-list-table tbody th {
  padding-top: 18px;
  padding-bottom: 18px;
  border-color: #eef1f6 !important;
  vertical-align: middle;
}

body.post-type-creavibc_booking.edit-php .wp-list-table .row-title {
  display: inline-block;
  max-width: 260px;
  color: #1d2327;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

body.post-type-creavibc_booking.edit-php .wp-list-table td.title {
  padding-left: 12px;
}

body.post-type-creavibc_booking.edit-php .wp-list-table .row-actions {
  margin-top: 8px;
  color: #c5ccd8;
  line-height: 1.5;
}

.creavibc-admin-table-main,
.creavibc-admin-table-sub {
  display: block;
}

.creavibc-admin-table-main {
  color: var(--cbs-bookings-navy);
  font-weight: 650;
}

.creavibc-admin-table-sub {
  margin-top: 3px;
  color: var(--cbs-bookings-muted);
  font-size: 12px;
  text-decoration: none;
}

.creavibc-admin-table-chip,
.creavibc-admin-table-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.creavibc-admin-table-chip {
  background: #edf5ff;
  color: var(--cbs-bookings-blue);
}

.creavibc-admin-table-chip:hover {
  background: #e1efff;
  color: #2568c7;
}

.creavibc-admin-table-status {
  background: #f1f3f6;
  color: #687386;
}

.creavibc-admin-table-status--online {
  background: #e8f8f1;
  color: #187153;
}

.creavibc-admin-table-muted {
  color: #98a2b3;
  font-size: 12px;
}

body.post-type-creavibc_booking.post-php #poststuff,
body.post-type-creavibc_booking.post-new-php #poststuff {
  margin-top: 18px;
}

body.post-type-creavibc_booking.post-php #titlediv #title,
body.post-type-creavibc_booking.post-new-php #titlediv #title {
  border-radius: 14px !important;
  border: 1px solid rgba(17, 24, 39, .1) !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: 0 10px 24px rgba(48, 67, 105, .05);
  color: var(--cbs-bookings-navy);
  font-size: 20px !important;
}

body.post-type-creavibc_booking .postbox {
  border: 0 !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 16px 42px rgba(48, 67, 105, .07) !important;
  overflow: hidden !important;
}

body.post-type-creavibc_booking .postbox .postbox-header {
  border-bottom: 1px solid #eef1f6 !important;
  background: linear-gradient(135deg, #fbfcff, #f7f9fd) !important;
  border-radius: 22px 22px 0 0 !important;
}

body.post-type-creavibc_booking .postbox-header h2,
body.post-type-creavibc_booking .postbox-header h2.hndle {
  display: flex !important;
  align-items: center !important;
  padding: 16px 18px !important;
  color: var(--cbs-bookings-navy) !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

body.post-type-creavibc_booking #creavibc_booking_details .inside {
  padding: 0 !important;
}

body.post-type-creavibc_booking .creavibc-bk-card {
  border: 0 !important;
  border-radius: 0 0 22px 22px !important;
  box-shadow: none !important;
}

body.post-type-creavibc_booking .creavibc-bk-head {
  padding: 24px 26px 20px !important;
  border-bottom: 1px solid #eef1f6 !important;
  background:
    radial-gradient(circle at 92% 0, rgba(98, 199, 207, .12), transparent 30%),
    linear-gradient(145deg, #f8f9fd, #fbfcfe) !important;
}

body.post-type-creavibc_booking .creavibc-bk-head:before {
  display: none !important;
}

body.post-type-creavibc_booking .creavibc-bk-title {
  color: var(--cbs-bookings-navy) !important;
  font-size: 19px !important;
  font-weight: 550 !important;
  letter-spacing: 0 !important;
}

body.post-type-creavibc_booking .creavibc-bk-title .dashicons {
  color: var(--cbs-bookings-blue) !important;
}

body.post-type-creavibc_booking .creavibc-bk-sub {
  color: var(--cbs-bookings-muted) !important;
}

body.post-type-creavibc_booking .creavibc-bk-body {
  padding: 26px !important;
}

body.post-type-creavibc_booking .creavibc-bk-chip,
body.post-type-creavibc_booking .creavibc-bk-note,
body.post-type-creavibc_booking .creavibc-bk-kv-row,
body.post-type-creavibc_booking .creavibc-bk-pill {
  border: 0 !important;
  border-radius: 13px !important;
  background: #f8f9fc !important;
  box-shadow: inset 0 0 0 1px rgba(207, 214, 226, .55) !important;
}

body.post-type-creavibc_booking .creavibc-bk-label,
body.post-type-creavibc_booking .creavibc-bk-kv-row strong {
  color: #637087 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

body.post-type-creavibc_booking .creavibc-bk-badge {
  border: 0 !important;
  background: #edf5ff !important;
  color: var(--cbs-bookings-blue) !important;
}

body.post-type-creavibc_booking .creavibc-bk-badge--green {
  background: #e8f8f1 !important;
  color: #187153 !important;
}

body.post-type-creavibc_booking .creavibc-bk-badge--gray {
  background: #f1f3f6 !important;
  color: #687386 !important;
}

@media (max-width: 960px) {
  .creavibc-bookings-admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .creavibc-bookings-admin-hero__actions {
    justify-content: flex-start;
  }

  .creavibc-retention-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creavibc-retention-form .button,
  .creavibc-retention-toggle { margin-top: 0; }
  .creavibc-retention-field--custom[hidden] { display: none !important; }
}

@media (max-width: 782px) {
  .creavibc-bookings-admin-hero {
    width: auto;
    margin-right: 10px;
    padding: 24px;
    border-radius: 20px;
  }

  .creavibc-retention-card { width: auto; margin-right: 10px; padding: 20px; }
  .creavibc-retention-card__heading,
  .creavibc-retention-footer { align-items: flex-start; flex-direction: column; }
  .creavibc-retention-form { grid-template-columns: 1fr; }

  .creavibc-bookings-admin-hero h2 {
    font-size: 28px;
  }

  body.post-type-creavibc_booking.edit-php .search-box,
  body.post-type-creavibc_booking.edit-php .tablenav.top,
  body.post-type-creavibc_booking.edit-php .tablenav .alignleft.actions,
  body.post-type-creavibc_booking.edit-php .tablenav .tablenav-pages {
    float: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    margin-left: 0;
  }

  body.post-type-creavibc_booking.edit-php .search-box input[type="search"],
  body.post-type-creavibc_booking.edit-php .search-box input[type="submit"],
  body.post-type-creavibc_booking.edit-php .tablenav .actions select,
  body.post-type-creavibc_booking.edit-php .tablenav .actions input[type="submit"] {
    width: 100%;
  }
}
