/* Charter Booker admin polish: ACF-inspired while preserving WordPress patterns */
body.post-type-chbk_captain,
body.post-type-chbk_boat,
body.post-type-chbk_trip,
body.post-type-chbk_booking,
body.toplevel_page_chbk_dashboard,
body[class*="_page_chbk_"] {
  --chbk-border: #d6dbe3;
  --chbk-soft: #f6f8fb;
  --chbk-panel: #ffffff;
  --chbk-text: #1f2937;
  --chbk-muted: #5b6576;
  --chbk-accent: #2271b1;
  --chbk-field-bg: #f8fafd;
  --chbk-field-border: #d7dee8;
  --chbk-field-border-hover: #c8d1de;
  --chbk-field-focus: #1f6fb2;
  --chbk-field-text: #1f2937;
  --chbk-field-placeholder: #98a2b3;
}

body.post-type-chbk_captain #poststuff .postbox,
body.post-type-chbk_boat #poststuff .postbox,
body.post-type-chbk_trip #poststuff .postbox,
body.post-type-chbk_booking #poststuff .postbox,
body[class*="_page_chbk_"] .wrap .widefat {
  border: 1px solid var(--chbk-border);
  border-radius: 10px;
  background: var(--chbk-panel);
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.02), 0 6px 18px rgba(16, 24, 40, 0.03);
  overflow: hidden;
}

body[class*="_page_chbk_"] .wrap .form-table {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

body.post-type-chbk_captain .wp-list-table.widefat,
body.post-type-chbk_boat .wp-list-table.widefat,
body.post-type-chbk_trip .wp-list-table.widefat,
body.post-type-chbk_booking .wp-list-table.widefat {
  width: 100%;
  max-width: none;
  border: 1px solid var(--chbk-border);
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  background: var(--chbk-panel);
  border-collapse: separate;
  border-spacing: 0;
}

body.post-type-chbk_captain #poststuff .postbox .hndle,
body.post-type-chbk_boat #poststuff .postbox .hndle,
body.post-type-chbk_trip #poststuff .postbox .hndle,
body.post-type-chbk_booking #poststuff .postbox .hndle {
  border-bottom: 1px solid var(--chbk-border);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  color: var(--chbk-text);
  font-size: 15px;
  padding: 14px 16px;
}

body.post-type-chbk_captain #poststuff .postbox .inside,
body.post-type-chbk_boat #poststuff .postbox .inside,
body.post-type-chbk_trip #poststuff .postbox .inside,
body.post-type-chbk_booking #poststuff .postbox .inside {
  padding: 14px 16px 16px;
  margin: 0;
  background: var(--chbk-panel);
}

body.post-type-chbk_captain #poststuff .postbox .inside h4,
body.post-type-chbk_boat #poststuff .postbox .inside h4,
body.post-type-chbk_trip #poststuff .postbox .inside h4,
body.post-type-chbk_booking #poststuff .postbox .inside h4 {
  margin: 20px 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--chbk-muted);
}

body.post-type-chbk_captain #poststuff .postbox .inside hr,
body.post-type-chbk_boat #poststuff .postbox .inside hr,
body.post-type-chbk_trip #poststuff .postbox .inside hr,
body.post-type-chbk_booking #poststuff .postbox .inside hr,
body[class*="_page_chbk_"] .wrap hr {
  border: 0;
  border-top: 1px solid var(--chbk-border);
  margin: 36px 0;
}

body.post-type-chbk_captain #poststuff input[type="text"],
body.post-type-chbk_captain #poststuff input[type="number"],
body.post-type-chbk_captain #poststuff input[type="email"],
body.post-type-chbk_captain #poststuff input[type="time"],
body.post-type-chbk_captain #poststuff select,
body.post-type-chbk_captain #poststuff textarea,
body.post-type-chbk_boat #poststuff input[type="text"],
body.post-type-chbk_boat #poststuff input[type="number"],
body.post-type-chbk_boat #poststuff input[type="email"],
body.post-type-chbk_boat #poststuff input[type="time"],
body.post-type-chbk_boat #poststuff select,
body.post-type-chbk_boat #poststuff textarea,
body.post-type-chbk_trip #poststuff input[type="text"],
body.post-type-chbk_trip #poststuff input[type="number"],
body.post-type-chbk_trip #poststuff input[type="email"],
body.post-type-chbk_trip #poststuff input[type="time"],
body.post-type-chbk_trip #poststuff select,
body.post-type-chbk_trip #poststuff textarea,
body.post-type-chbk_booking #poststuff input[type="text"],
body.post-type-chbk_booking #poststuff input[type="number"],
body.post-type-chbk_booking #poststuff input[type="email"],
body.post-type-chbk_booking #poststuff input[type="time"],
body.post-type-chbk_booking #poststuff select,
body.post-type-chbk_booking #poststuff textarea,
body[class*="_page_chbk_"] .wrap input[type="text"],
body[class*="_page_chbk_"] .wrap input[type="number"],
body[class*="_page_chbk_"] .wrap input[type="email"],
body[class*="_page_chbk_"] .wrap input[type="time"],
body[class*="_page_chbk_"] .wrap select,
body[class*="_page_chbk_"] .wrap textarea {
  background: var(--chbk-field-bg);
  border: 1px solid var(--chbk-field-border) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  color: var(--chbk-field-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  min-height: 44px;
  padding: 0 14px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  height: 44px;
}

body.post-type-chbk_captain #poststuff select,
body.post-type-chbk_boat #poststuff select,
body.post-type-chbk_trip #poststuff select,
body.post-type-chbk_booking #poststuff select,
body[class*="_page_chbk_"] .wrap select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 14px 9px;
  padding-right: 38px !important;
}

body.post-type-chbk_captain #poststuff textarea,
body.post-type-chbk_boat #poststuff textarea,
body.post-type-chbk_trip #poststuff textarea,
body.post-type-chbk_booking #poststuff textarea,
body[class*="_page_chbk_"] .wrap textarea {
  height: auto;
  min-height: 116px;
  padding: 12px 14px !important;
  line-height: 1.45;
}

body.post-type-chbk_captain #poststuff input[type="text"]::placeholder,
body.post-type-chbk_captain #poststuff input[type="number"]::placeholder,
body.post-type-chbk_captain #poststuff input[type="email"]::placeholder,
body.post-type-chbk_captain #poststuff input[type="time"]::placeholder,
body.post-type-chbk_captain #poststuff textarea::placeholder,
body.post-type-chbk_boat #poststuff input[type="text"]::placeholder,
body.post-type-chbk_boat #poststuff input[type="number"]::placeholder,
body.post-type-chbk_boat #poststuff input[type="email"]::placeholder,
body.post-type-chbk_boat #poststuff input[type="time"]::placeholder,
body.post-type-chbk_boat #poststuff textarea::placeholder,
body.post-type-chbk_trip #poststuff input[type="text"]::placeholder,
body.post-type-chbk_trip #poststuff input[type="number"]::placeholder,
body.post-type-chbk_trip #poststuff input[type="email"]::placeholder,
body.post-type-chbk_trip #poststuff input[type="time"]::placeholder,
body.post-type-chbk_trip #poststuff textarea::placeholder,
body.post-type-chbk_booking #poststuff input[type="text"]::placeholder,
body.post-type-chbk_booking #poststuff input[type="number"]::placeholder,
body.post-type-chbk_booking #poststuff input[type="email"]::placeholder,
body.post-type-chbk_booking #poststuff input[type="time"]::placeholder,
body.post-type-chbk_booking #poststuff textarea::placeholder,
body[class*="_page_chbk_"] .wrap input[type="text"]::placeholder,
body[class*="_page_chbk_"] .wrap input[type="number"]::placeholder,
body[class*="_page_chbk_"] .wrap input[type="email"]::placeholder,
body[class*="_page_chbk_"] .wrap input[type="time"]::placeholder,
body[class*="_page_chbk_"] .wrap textarea::placeholder {
  color: var(--chbk-field-placeholder);
  font-weight: 400;
}

body.post-type-chbk_captain #poststuff input:hover,
body.post-type-chbk_captain #poststuff select:hover,
body.post-type-chbk_captain #poststuff textarea:hover,
body.post-type-chbk_boat #poststuff input:hover,
body.post-type-chbk_boat #poststuff select:hover,
body.post-type-chbk_boat #poststuff textarea:hover,
body.post-type-chbk_trip #poststuff input:hover,
body.post-type-chbk_trip #poststuff select:hover,
body.post-type-chbk_trip #poststuff textarea:hover,
body.post-type-chbk_booking #poststuff input:hover,
body.post-type-chbk_booking #poststuff select:hover,
body.post-type-chbk_booking #poststuff textarea:hover,
body[class*="_page_chbk_"] .wrap input:hover,
body[class*="_page_chbk_"] .wrap select:hover,
body[class*="_page_chbk_"] .wrap textarea:hover {
  border-color: var(--chbk-field-border-hover) !important;
}

body.post-type-chbk_captain #poststuff input:focus,
body.post-type-chbk_captain #poststuff select:focus,
body.post-type-chbk_captain #poststuff textarea:focus,
body.post-type-chbk_boat #poststuff input:focus,
body.post-type-chbk_boat #poststuff select:focus,
body.post-type-chbk_boat #poststuff textarea:focus,
body.post-type-chbk_trip #poststuff input:focus,
body.post-type-chbk_trip #poststuff select:focus,
body.post-type-chbk_trip #poststuff textarea:focus,
body.post-type-chbk_booking #poststuff input:focus,
body.post-type-chbk_booking #poststuff select:focus,
body.post-type-chbk_booking #poststuff textarea:focus,
body[class*="_page_chbk_"] .wrap input:focus,
body[class*="_page_chbk_"] .wrap select:focus,
body[class*="_page_chbk_"] .wrap textarea:focus {
  background: #fff;
  border-color: var(--chbk-field-focus) !important;
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.16) !important;
  outline: 0;
}

body.post-type-chbk_captain #poststuff input:disabled,
body.post-type-chbk_captain #poststuff select:disabled,
body.post-type-chbk_captain #poststuff textarea:disabled,
body.post-type-chbk_boat #poststuff input:disabled,
body.post-type-chbk_boat #poststuff select:disabled,
body.post-type-chbk_boat #poststuff textarea:disabled,
body.post-type-chbk_trip #poststuff input:disabled,
body.post-type-chbk_trip #poststuff select:disabled,
body.post-type-chbk_trip #poststuff textarea:disabled,
body.post-type-chbk_booking #poststuff input:disabled,
body.post-type-chbk_booking #poststuff select:disabled,
body.post-type-chbk_booking #poststuff textarea:disabled,
body[class*="_page_chbk_"] .wrap input:disabled,
body[class*="_page_chbk_"] .wrap select:disabled,
body[class*="_page_chbk_"] .wrap textarea:disabled {
  background: #f1f4f9;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 1;
}

body.post-type-chbk_captain #poststuff input[type="checkbox"],
body.post-type-chbk_captain #poststuff input[type="radio"],
body.post-type-chbk_boat #poststuff input[type="checkbox"],
body.post-type-chbk_boat #poststuff input[type="radio"],
body.post-type-chbk_trip #poststuff input[type="checkbox"],
body.post-type-chbk_trip #poststuff input[type="radio"],
body.post-type-chbk_booking #poststuff input[type="checkbox"],
body.post-type-chbk_booking #poststuff input[type="radio"],
body[class*="_page_chbk_"] .wrap input[type="checkbox"],
body[class*="_page_chbk_"] .wrap input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border: 1px solid var(--chbk-field-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 1px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  display: inline-block;
  height: 18px;
  margin-top: 0;
  position: relative;
  vertical-align: middle;
  width: 18px;
}

body.post-type-chbk_captain #poststuff input[type="checkbox"],
body.post-type-chbk_boat #poststuff input[type="checkbox"],
body.post-type-chbk_trip #poststuff input[type="checkbox"],
body.post-type-chbk_booking #poststuff input[type="checkbox"],
body[class*="_page_chbk_"] .wrap input[type="checkbox"] {
  border-radius: 5px;
}

body.post-type-chbk_captain #poststuff input[type="radio"],
body.post-type-chbk_boat #poststuff input[type="radio"],
body.post-type-chbk_trip #poststuff input[type="radio"],
body.post-type-chbk_booking #poststuff input[type="radio"],
body[class*="_page_chbk_"] .wrap input[type="radio"] {
  border-radius: 50%;
}

body.post-type-chbk_captain #poststuff input[type="checkbox"]:hover,
body.post-type-chbk_captain #poststuff input[type="radio"]:hover,
body.post-type-chbk_boat #poststuff input[type="checkbox"]:hover,
body.post-type-chbk_boat #poststuff input[type="radio"]:hover,
body.post-type-chbk_trip #poststuff input[type="checkbox"]:hover,
body.post-type-chbk_trip #poststuff input[type="radio"]:hover,
body.post-type-chbk_booking #poststuff input[type="checkbox"]:hover,
body.post-type-chbk_booking #poststuff input[type="radio"]:hover,
body[class*="_page_chbk_"] .wrap input[type="checkbox"]:hover,
body[class*="_page_chbk_"] .wrap input[type="radio"]:hover {
  border-color: var(--chbk-field-border-hover) !important;
}

body.post-type-chbk_captain #poststuff input[type="checkbox"]:checked,
body.post-type-chbk_captain #poststuff input[type="radio"]:checked,
body.post-type-chbk_boat #poststuff input[type="checkbox"]:checked,
body.post-type-chbk_boat #poststuff input[type="radio"]:checked,
body.post-type-chbk_trip #poststuff input[type="checkbox"]:checked,
body.post-type-chbk_trip #poststuff input[type="radio"]:checked,
body.post-type-chbk_booking #poststuff input[type="checkbox"]:checked,
body.post-type-chbk_booking #poststuff input[type="radio"]:checked,
body[class*="_page_chbk_"] .wrap input[type="checkbox"]:checked,
body[class*="_page_chbk_"] .wrap input[type="radio"]:checked {
  background: var(--chbk-field-focus);
  border-color: var(--chbk-field-focus) !important;
}

body.post-type-chbk_captain #poststuff input[type="checkbox"]:checked::after,
body.post-type-chbk_boat #poststuff input[type="checkbox"]:checked::after,
body.post-type-chbk_trip #poststuff input[type="checkbox"]:checked::after,
body.post-type-chbk_booking #poststuff input[type="checkbox"]:checked::after,
body[class*="_page_chbk_"] .wrap input[type="checkbox"]:checked::after {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  height: 9px;
  left: 6px;
  position: absolute;
  top: 2px;
  transform: rotate(45deg);
  width: 4px;
}

body.post-type-chbk_captain #poststuff input[type="checkbox"]::before,
body.post-type-chbk_boat #poststuff input[type="checkbox"]::before,
body.post-type-chbk_trip #poststuff input[type="checkbox"]::before,
body.post-type-chbk_booking #poststuff input[type="checkbox"]::before,
body[class*="_page_chbk_"] .wrap input[type="checkbox"]::before {
  content: none !important;
  display: none !important;
}

body.post-type-chbk_captain #poststuff input[type="radio"]:checked::after,
body.post-type-chbk_boat #poststuff input[type="radio"]:checked::after,
body.post-type-chbk_trip #poststuff input[type="radio"]:checked::after,
body.post-type-chbk_booking #poststuff input[type="radio"]:checked::after,
body[class*="_page_chbk_"] .wrap input[type="radio"]:checked::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 5px;
  position: absolute;
  top: 5px;
  width: 6px;
}

body.post-type-chbk_captain #poststuff input[type="checkbox"]:focus,
body.post-type-chbk_captain #poststuff input[type="radio"]:focus,
body.post-type-chbk_boat #poststuff input[type="checkbox"]:focus,
body.post-type-chbk_boat #poststuff input[type="radio"]:focus,
body.post-type-chbk_trip #poststuff input[type="checkbox"]:focus,
body.post-type-chbk_trip #poststuff input[type="radio"]:focus,
body.post-type-chbk_booking #poststuff input[type="checkbox"]:focus,
body.post-type-chbk_booking #poststuff input[type="radio"]:focus,
body[class*="_page_chbk_"] .wrap input[type="checkbox"]:focus,
body[class*="_page_chbk_"] .wrap input[type="radio"]:focus {
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.16) !important;
  outline: 0;
}

body.post-type-chbk_captain #poststuff input[type="checkbox"]:disabled,
body.post-type-chbk_captain #poststuff input[type="radio"]:disabled,
body.post-type-chbk_boat #poststuff input[type="checkbox"]:disabled,
body.post-type-chbk_boat #poststuff input[type="radio"]:disabled,
body.post-type-chbk_trip #poststuff input[type="checkbox"]:disabled,
body.post-type-chbk_trip #poststuff input[type="radio"]:disabled,
body.post-type-chbk_booking #poststuff input[type="checkbox"]:disabled,
body.post-type-chbk_booking #poststuff input[type="radio"]:disabled,
body[class*="_page_chbk_"] .wrap input[type="checkbox"]:disabled,
body[class*="_page_chbk_"] .wrap input[type="radio"]:disabled {
  background: #f1f4f9;
  border-color: #d9e0ea !important;
  cursor: not-allowed;
}

body[class*="_page_chbk_"] .wrap .widefat thead th,
body.post-type-chbk_captain .wp-list-table.widefat thead th,
body.post-type-chbk_boat .wp-list-table.widefat thead th,
body.post-type-chbk_trip .wp-list-table.widefat thead th,
body.post-type-chbk_booking .wp-list-table.widefat thead th {
  background: var(--chbk-soft);
  color: var(--chbk-muted);
  font-weight: 600;
}

body[class*="_page_chbk_"] .wrap .widefat td,
body[class*="_page_chbk_"] .wrap .widefat th,
body.post-type-chbk_captain .wp-list-table.widefat td,
body.post-type-chbk_captain .wp-list-table.widefat th,
body.post-type-chbk_boat .wp-list-table.widefat td,
body.post-type-chbk_boat .wp-list-table.widefat th,
body.post-type-chbk_trip .wp-list-table.widefat td,
body.post-type-chbk_trip .wp-list-table.widefat th,
body.post-type-chbk_booking .wp-list-table.widefat td,
body.post-type-chbk_booking .wp-list-table.widefat th {
  padding: 10px 12px;
  vertical-align: middle;
}

body[class*="_page_chbk_"] .wrap .widefat td .button,
body.post-type-chbk_captain .wp-list-table.widefat td .button,
body.post-type-chbk_boat .wp-list-table.widefat td .button,
body.post-type-chbk_trip .wp-list-table.widefat td .button,
body.post-type-chbk_booking .wp-list-table.widefat td .button {
  margin-bottom: 3px;
  margin-top: 3px;
}

body[class*="_page_chbk_"] .wrap .button {
  border-radius: 6px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 12px 0 16px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-panel {
  background: #fff;
  border: 1px solid #d6dbe3;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  grid-column: span 6;
  padding: 14px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-panel-wide {
  grid-column: span 8;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-panel-pending {
  grid-column: span 12;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-panel-timeline {
  grid-column: span 8;
  grid-row: span 2;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-panel-assignment {
  grid-column: span 4;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-panel h2 {
  font-size: 15px;
  margin: 0 0 10px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-kpis {
  display: grid;
  gap: 10px;
  grid-column: span 12;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-kpi {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  padding: 10px 12px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-kpi-label {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-kpi strong {
  color: #0f172a;
  display: block;
  font-size: 22px;
  margin-top: 4px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-list li {
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 8px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-list a {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-list span {
  color: #334155;
  display: block;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-timeline {
  display: grid;
  gap: 10px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-timeline-item {
  border-left: 3px solid #8ab4e0;
  padding: 2px 0 2px 10px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-timeline-item h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-timeline-item p {
  margin: 0 0 2px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-mini-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-mini-card {
  background: #f8fafc;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  padding: 10px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-mini-card span {
  color: #475569;
  display: block;
  font-size: 12px;
}

body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-mini-card strong {
  color: #0f172a;
  display: block;
  font-size: 22px;
  line-height: 1.1;
  margin-top: 4px;
}


body[class*="_page_chbk_"] .notice.notice-warning,
body[class*="page_chbk_"] .notice.notice-warning,
body.post-type-chbk_captain .notice.notice-warning,
body.post-type-chbk_boat .notice.notice-warning,
body.post-type-chbk_trip .notice.notice-warning,
body.post-type-chbk_booking .notice.notice-warning {
  border-left-color: #dba617;
  background: #fff9e8;
}

body[class*="_page_chbk_"] .wrap .form-table {
  margin-top: 16px;
}

body[class*="_page_chbk_"] .wrap .form-table td input[type="text"],
body[class*="_page_chbk_"] .wrap .form-table td input[type="number"],
body[class*="_page_chbk_"] .wrap .form-table td input[type="email"],
body[class*="_page_chbk_"] .wrap .form-table td input[type="time"],
body[class*="_page_chbk_"] .wrap .form-table td input.regular-text,
body[class*="_page_chbk_"] .wrap .form-table td input.small-text,
body[class*="_page_chbk_"] .wrap .form-table td input.large-text,
body[class*="_page_chbk_"] .wrap .form-table td textarea {
  background: var(--chbk-field-bg) !important;
  border: 1px solid var(--chbk-field-border) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  color: var(--chbk-field-text) !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
}

body[class*="_page_chbk_"] .wrap .form-table td input[type="text"],
body[class*="_page_chbk_"] .wrap .form-table td input[type="number"],
body[class*="_page_chbk_"] .wrap .form-table td input[type="email"],
body[class*="_page_chbk_"] .wrap .form-table td input[type="time"],
body[class*="_page_chbk_"] .wrap .form-table td input.regular-text,
body[class*="_page_chbk_"] .wrap .form-table td input.small-text,
body[class*="_page_chbk_"] .wrap .form-table td input.large-text {
  height: 44px !important;
  line-height: 44px !important;
  padding: 0 14px !important;
}

body[class*="_page_chbk_"] .wrap .form-table td textarea {
  height: auto !important;
  line-height: 1.45 !important;
  padding: 12px 14px !important;
}

body[class*="_page_chbk_"] .wrap .form-table th {
  padding-left: 18px;
}

body[class*="_page_chbk_"] .wrap .form-table td {
  padding-right: 18px;
}

body.post-type-chbk_trip .chbk-blackout-tags,
body.post-type-chbk_captain .chbk-blackout-tags,
body.post-type-chbk_boat .chbk-blackout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

body.post-type-chbk_trip .chbk-blackout-tag,
body.post-type-chbk_captain .chbk-blackout-tag,
body.post-type-chbk_boat .chbk-blackout-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef2f7;
  border: 1px solid #d8e0ea;
  border-radius: 4px;
  color: #1f2937;
  padding: 5px 8px;
  line-height: 1;
}

body.post-type-chbk_trip .chbk-blackout-tag-label,
body.post-type-chbk_captain .chbk-blackout-tag-label,
body.post-type-chbk_boat .chbk-blackout-tag-label {
  font-size: 12px;
}

body.post-type-chbk_trip .chbk-blackout-remove,
body.post-type-chbk_captain .chbk-blackout-remove,
body.post-type-chbk_boat .chbk-blackout-remove {
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

body.post-type-chbk_trip .chbk-blackout-remove:hover,
body.post-type-chbk_captain .chbk-blackout-remove:hover,
body.post-type-chbk_boat .chbk-blackout-remove:hover {
  color: #b91c1c;
}

body.post-type-chbk_trip .chbk-effective-blackouts .chbk-blackout-inherited {
  background: #f2f3f5;
  color: #6b7280;
}

body.post-type-chbk_trip .chbk-blackout-source {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #374151;
  text-decoration: none;
}

body.post-type-chbk_trip .chbk-blackout-source-captain {
  background: #f3f4f6;
  color: #6b7280;
}

body.post-type-chbk_trip .chbk-blackout-source-boat {
  background: #f3f4f6;
  color: #6b7280;
}

body.post-type-chbk_trip .chbk-blackout-source-trip {
  background: #eaf4ff;
  color: #1d4f7a;
  border-color: #bdd9f3;
}

body.post-type-chbk_trip .chbk-trip-assignment-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  max-width: 720px;
}

body.post-type-chbk_trip .chbk-trip-assignment-row p {
  margin: 0;
}

body.post-type-chbk_trip .chbk-trip-section-divider {
  margin: 30px 0 28px !important;
}

body.post-type-chbk_booking .chbk-booking-admin {
  display: block;
}

body.post-type-chbk_booking .chbk-booking-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

body.post-type-chbk_booking .chbk-booking-header h3 {
  font-size: 20px;
  margin: 0;
}

body.post-type-chbk_booking .chbk-booking-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.post-type-chbk_booking .chbk-booking-badge {
  background: #eef2f7;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
}

body.post-type-chbk_booking .chbk-booking-badge-payment {
  background: #fff8e7;
  border-color: #f1d9a0;
  color: #8a5a00;
}

body.post-type-chbk_booking .chbk-booking-badge-checkin {
  background: #ecfdf5;
  border-color: #b7ead3;
  color: #0f766e;
}

body.post-type-chbk_booking .chbk-booking-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

body.post-type-chbk_booking .chbk-booking-card {
  background: #fff;
  border: 1px solid #d6dbe3;
  border-radius: 8px;
  overflow: hidden;
}

body.post-type-chbk_booking .chbk-booking-card-head {
  align-items: center;
  background: #f6f8fb;
  border-bottom: 1px solid #d6dbe3;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

body.post-type-chbk_booking .chbk-booking-card-head h4 {
  color: #1f2937;
  font-size: 14px;
  letter-spacing: 0;
  margin: 0;
  text-transform: none;
}

body.post-type-chbk_booking .chbk-booking-card-body {
  padding: 12px;
}

body.post-type-chbk_booking .chbk-booking-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 130px minmax(0, 1fr);
  margin-bottom: 8px;
}

body.post-type-chbk_booking .chbk-booking-row:last-child {
  margin-bottom: 0;
}

body.post-type-chbk_booking .chbk-booking-label {
  color: #5b6576;
  font-weight: 600;
}

body.post-type-chbk_booking .chbk-booking-value {
  color: #1f2937;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.post-type-chbk_booking .chbk-booking-edit {
  border-top: 1px dashed #d6dbe3;
  display: none;
  margin-top: 12px;
  padding-top: 12px;
}

body.post-type-chbk_booking .chbk-booking-edit p {
  margin: 0 0 10px;
}

body.post-type-chbk_booking .chbk-booking-edit p:last-child {
  margin-bottom: 0;
}

body.post-type-chbk_booking .chbk-booking-edit-toggle {
  color: #2271b1;
  font-weight: 500;
  text-decoration: none;
}

body.post-type-chbk_booking .chbk-booking-edit-toggle:hover {
  color: #135e96;
}

body.post-php.post-type-chbk_booking .wrap h1.wp-heading-inline,
body.post-php.post-type-chbk_booking .wrap .page-title-action {
  display: none !important;
}

body.wp-admin .chbk-modal-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100500;
}

body.wp-admin .chbk-modal-backdrop.is-open {
  display: flex !important;
}

body.wp-admin .chbk-modal-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #cfd7e3;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
  max-width: 560px;
  padding: 22px 22px 18px;
  position: relative;
  width: 100%;
}

body.wp-admin .chbk-modal-panel h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 8px;
}

body.wp-admin .chbk-record-payment-form p {
  margin: 0 0 14px;
}

body.wp-admin .chbk-record-payment-booking {
  color: #475569;
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

body.wp-admin .chbk-record-payment-form label {
  color: #1f2937;
  display: block;
  font-weight: 600;
}

body.wp-admin .chbk-record-payment-form input[type="text"],
body.wp-admin .chbk-record-payment-form input[type="number"],
body.wp-admin .chbk-record-payment-form input[type="time"],
body.wp-admin .chbk-record-payment-form select {
  margin-top: 6px;
  min-width: 210px;
}

body.wp-admin .chbk-modal-close {
  background: transparent;
  border: 0;
  color: #64748b;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 10px;
}

body.wp-admin .chbk-modal-close:hover {
  color: #1f2937;
}

body.post-type-chbk_trip .chbk-operating-days {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 14px;
}

body.post-type-chbk_trip .chbk-day-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #ccd4df;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 17px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

body.post-type-chbk_trip .chbk-day-pill input[type="checkbox"] {
  margin: 0;
  transform: scale(1.15);
}

body.post-type-chbk_trip .chbk-day-pill.is-checked {
  background: #eaf4ff;
  border-color: #8dc2eb;
  color: #0b4f7f;
}

body.post-type-chbk_trip .chbk-trip-time-row,
body.post-type-chbk_trip .chbk-trip-season-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  max-width: 720px;
}

body.post-type-chbk_trip .chbk-trip-pricing-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  max-width: 720px;
}

body.post-type-chbk_trip .chbk-trip-time-row p,
body.post-type-chbk_trip .chbk-trip-season-row p,
body.post-type-chbk_trip .chbk-trip-pricing-row p {
  margin: 0;
}

@media (max-width: 900px) {
  body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dashboard-grid {
    grid-template-columns: 1fr;
  }

  body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-panel,
  body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-panel-wide,
  body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-panel-pending,
  body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-panel-timeline,
  body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-panel-assignment,
  body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-kpis {
    grid-column: span 1;
  }

  body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-kpis,
  body[class*="_page_chbk_"] .wrap.chbk-dashboard-wrap .chbk-dash-mini-cards {
    grid-template-columns: 1fr;
  }

  body.post-type-chbk_trip .chbk-trip-assignment-row {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  body.post-type-chbk_trip .chbk-trip-time-row,
  body.post-type-chbk_trip .chbk-trip-season-row,
  body.post-type-chbk_trip .chbk-trip-pricing-row {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  body.post-type-chbk_booking .chbk-booking-grid {
    grid-template-columns: 1fr;
  }

  body.post-type-chbk_booking .chbk-booking-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
