.wpcs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0 24px 0;
  background: #fff;
  font-size: 16px;
}
.wpcs-table th,
.wpcs-table td {
  padding: 4px;
  border: 1px solid #d0d2d6;
  text-align: center;
  vertical-align: middle;
  background: #fcfcfc;
  line-height: 20px;
}
.wpcs-table th {
  background: #f5f7fa;
  color: #333;
  font-weight: 600;
}
.wpcs-row-dayoff td {
  background: #ffe6e6 !important;
  color: #b21f1f !important;
  opacity: 0.84;
  font-style: italic;
}
.wpcs-btn {
  cursor: pointer;
  display: inline-block;
  background: #1d79db;
  color: #fff !important;
  padding: 8px 18px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  margin: 2px 0;
  transition: background .13s;
}
.wpcs-btn:active, .wpcs-btn:focus { background: #1757a1;}
.wpcs-btn[aria-disabled="true"],
.wpcs-btn[disabled] {
  background: #bdbdbd !important;
  color: #fff !important;
  cursor: not-allowed;
}
.wpcs-btn.wpcs-edit-event { 
  padding: 0;
  width: 32px;
  height: 32px;
  line-height: normal;	
  background: #2ecc71; 
}
.wpcs-btn.wpcs-del-event { 
  padding: 0;
  width: 32px;
  height: 32px;
  line-height: normal;	
  background: #e53935; 
}
.wpcs-btn.wpcs-add-event { background: #fed625; color: #222 !important;}
.wpcs-btn.wpcs-close-modal {
  background: #e53935;
  color: #fff !important;
  font-size: 19px;
  padding: 2px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 5px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  margin-left: 10px;
}
.wpcs-modal-bg {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.28);
  z-index: 99999999;
  display: flex; align-items: flex-start; justify-content: center;
}
.wpcs-modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px #0001, 0 0 0 2px #e3eaf4;
  position: relative;
  line-height: 1.6;
  font-size: 16px;
  margin: 0px auto 0 auto;
  padding: 10px;
  min-width: 272px;
  max-width: 600px;
  width: 97vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.wpcs-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.wpcs-modal-title {
  font-size: 1.23em;
  font-weight: 700;
  color: #183150;
  line-height: 1.25;
  flex-grow: 1;
}
.wpcs-modal-form-flex { display: flex; flex-direction: row; gap: 12px; }
.wpcs-modal-calendar-side { flex: 0 0 272px; max-width: 272px; min-width: 0; }
#wpcs-inline-calendar, #wpcs-inline-booking-calendar {
  width: 272px;
  min-width: 0;
  margin: 0 auto 11px auto;
  display: block;
}
.wpcs-booking-calendar { min-width: 272px; max-width: 272px; margin: 0; }
.wpcs-modal-fields-side {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(100% - 230px);
  display: flex;
  flex-direction: column;
}
@media (max-width: 700px) {
  .wpcs-modal-content { max-width: 99vw; }
  .wpcs-modal-form-flex { flex-direction: column; gap: 11px;}
  .wpcs-modal-calendar-side, .wpcs-booking-calendar { margin-bottom: 15px; min-width: 0; max-width: 100vw;}
  .wpcs-modal-fields-side { max-width: 100vw; }
  .wpcs-btn.wpcs-close-modal { margin-left: 6px; }
  #wpcs-inline-calendar, #wpcs-inline-booking-calendar { width: 97vw; min-width: 110px; max-width: 99vw;}
}
@media (max-width:480px) {
  .wpcs-modal-content { min-width: 0; width: 100vw; padding: 7px;}
  .wpcs-modal-content textarea, .wpcs-input-textarea {
    height: 70px;
    max-height: 70px;	  
  }
}
.wpcs-time-row { display: flex; gap: 10px; margin-bottom: 14px; }
.wpcs-time-row > div { flex: 1 1 50%; }
.wpcs-select { width: 100%; font-size: 16px; min-width: 50px; }
.wpcs-modal-content textarea,
.wpcs-input-textarea {
  width: 100%;
  min-height: 70px;
  font-size: 16px;
  resize: vertical;
  padding: 9px 12px;
  border-radius: 5px;
  border: 1px solid #bdbdbd;
  margin-bottom: 0;
  font-family: inherit;
}
.wpcs-label {
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
  color: #215388;
}
.wpcs-input,
.wpcs-select,
.wpcs-table select,
.wpcs-table input[type="text"],
.wpcs-table textarea {
  padding: 6px 10px;
  font-size: 15px;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  min-width: 88px;
  outline: none;
  background-color: #fff;
  color: #222;
  box-sizing: border-box;
  margin-bottom: 4px;
  height: auto;
}
.wpcs-input:focus,
.wpcs-select:focus,
.wpcs-table select:focus {
  border-color: #94c3ee;
  background-color: #edf7ff;
}
.wpcs-time-to,.wpcs-time-from { max-width: 100px; padding-right: 25px; }
.wpcs-table input[type="checkbox"] {
  transform: scale(1.17);
  margin: 0 0 1px 0;
}
.wpcs-table select:disabled,
.wpcs-table input[readonly] {
  background: #ececec !important;
  color: #aaa !important;
}
/* ==== CALENDAR ==== */
.wpcs-modal-content .ui-datepicker,
#wpcs-inline-booking-calendar .ui-datepicker,
.wpcs-booking-calendar .ui-datepicker {
  font-size: 16px;
  box-shadow: none;
  border-radius: 7px;
  border-color: #b3cbde;
  background: #f7fcff;
  margin: 0 auto;
}
.wpcs-modal-content .ui-datepicker th,
#wpcs-inline-booking-calendar .ui-datepicker th,
.wpcs-booking-calendar .ui-datepicker th {
  padding: 2px 4px;
  font-size: 1em;
}
.wpcs-modal-content .ui-datepicker td,
#wpcs-inline-booking-calendar .ui-datepicker td,
.wpcs-booking-calendar .ui-datepicker td {
  padding: 1.5px !important;
  border: none !important;
  box-shadow: none !important;
  text-align: center;
  vertical-align: middle;
}
.wpcs-modal-content .ui-datepicker td a,
#wpcs-inline-booking-calendar .ui-datepicker td a,
.wpcs-booking-calendar .ui-datepicker td a,
.wpcs-modal-content .ui-datepicker td span,
#wpcs-inline-booking-calendar .ui-datepicker td span,
.wpcs-booking-calendar .ui-datepicker td span {
  display: inline-block;
  width: 2.09em;
  height: 2.09em;
  line-height: 2.09em;
  font-size: 16px;
  padding: 0 !important;
  border-radius: 7px !important;
  margin: 1.5px auto;
  box-shadow: none !important;
  text-align: center;
  vertical-align: middle;
}
.wpcs-day-busy a { background: #ffc107 !important; color: #222 !important;}
.wpcs-day-holiday a { background: #ff1744 !important; color: #fff !important;}
.wpcs-day-free a { background: #1bd66c !important; color: #fff !important;}
.wpcs-day-half a { background: #ffe8a1 !important; color: #865e00 !important;}
.wpcs-day-default a { background: none !important;}
.ui-datepicker td.ui-datepicker-unselectable .ui-state-default {
  background: #ececec !important; color: #bbb !important; opacity: .4 !important; pointer-events: none;
}
.ui-datepicker td.ui-datepicker-current-day a,
.ui-datepicker td.wpcs-day-selected a {
  background: #1d79db !important;
  color: #fff !important;
}

/* ==== BOOKING SLOTS (для клиента) ==== */
#wpcs-booking-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 60px;
  align-items: flex-start;
  justify-content: center;
}
#wpcs-booking-slots:empty {
  background: url('ajax-loader.gif') center center no-repeat #fff;
  background-size: 64px 64px;
}
#wpcs-booking-slots .wpcs-slot-free,
#wpcs-booking-slots .wpcs-slot-inactive,
#wpcs-booking-slots .wpcs-slot-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  max-width: 124px;
  min-height: 44px;
  max-height: 44px;
  border-radius: 11px;
  padding: 0;
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  box-sizing: border-box;
  transition: background .17s, color .13s, box-shadow .16s, font-weight 0s;
  white-space: nowrap;
  line-height: 44px;
}
#wpcs-booking-slots .wpcs-slot-free {
  background: #1bd66c !important;
  color: #fff !important;
  cursor: pointer;
  border: 1.5px solid transparent;
}
#wpcs-booking-slots .wpcs-slot-free:hover {
  background: #218cbe !important;
  color: #fff !important;
  border-color: #57bbe9;
}
#wpcs-booking-slots .wpcs-slot-selected {
  background: #175bca !important;
  color: #fff !important;
  border: 1.5px solid #65e39a !important;
  box-shadow: 0 0 0 2px #bee8f8a2;
}
#wpcs-booking-slots .wpcs-slot-inactive {
  background: #fff7d7 !important;
  color: #cf9820 !important;
  cursor: not-allowed;
  opacity: 0.53;
  border: 1.5px dashed #ffd170;
}

#wpcs-booking-selected {
  min-height: 25px;
  font-size: 1.28em;
  color: #197f29;
  text-align: center;
  margin-top: 8px;
}

.wpcs-dayoff-msg {
  color: #ff1744; margin: 10px 0 18px 0;
  text-align: center;
  font-weight: bold;
}
.wpcs-h3, .wpcs-h2 {
  color:#215388;
  font-weight:700;
  font-size:1.15em;
  margin:13px 0 6px 0;
}