.partner-create[hidden] {
  display: none !important;
}

.partner-create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.partner-create-head h3 {
  margin: 0;
}

.partner-filter-grid input,
.partner-filter-grid select {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

main > .partner-stat-grid {
  width: 100% !important;
  max-width: 1500px !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 14px auto !important;
}

.partner-item-picker {
  margin: 12px 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.partner-item-picker > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  background: #f8fafc;
}

.partner-item-picker > summary::-webkit-details-marker {
  display: none;
}

.partner-item-picker > summary::after {
  content: "＋";
  color: #2563eb;
  font-size: 18px;
}

.partner-item-picker[open] > summary::after {
  content: "－";
}

.partner-item-picker > summary b {
  margin-left: auto;
  color: #2563eb;
  font-size: 13px;
}

.partner-item-picker-body {
  padding: 12px;
  border-top: 1px solid #e2e8f0;
}

.partner-item-search {
  display: block;
  margin-bottom: 9px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.partner-item-search input {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.partner-item-picker .partner-item-grid {
  max-height: 260px;
  margin: 0;
  padding-right: 4px;
  overflow-y: auto;
}

.partner-item-picker [data-partner-item][hidden] {
  display: none;
}

.partner-item-categories {
  display: grid;
  gap: 9px;
}

.partner-item-category {
  border: 1px solid #d8e0eb;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.partner-item-category > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
  background: #eef4ff;
}

.partner-item-category > summary::-webkit-details-marker {
  display: none;
}

.partner-item-category > summary strong::before {
  content: "＋";
  margin-right: 7px;
  color: #2563eb;
}

.partner-item-category[open] > summary strong::before {
  content: "－";
}

.partner-item-category > summary span {
  color: #64748b;
  font-size: 12px;
}

.partner-item-category .partner-item-grid {
  padding: 10px;
  max-height: 220px;
}

.partner-item-category .partner-item-grid label {
  grid-template-columns: auto minmax(0,1fr) auto auto;
}

.partner-item-category .partner-item-grid em {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-style: normal;
}

.partner-item-category[hidden] {
  display: none;
}

.partner-item-connect-form {
  display: grid;
  gap: 13px;
}

.partner-item-selectors {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(240px, 1.5fr) auto;
  gap: 10px;
  align-items: end;
}

.partner-item-selectors label {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.partner-item-selectors select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.partner-item-add {
  min-height: 44px;
}

.partner-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.partner-selected-head span {
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.partner-selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 48px;
  padding: 9px;
  border: 1px solid #d8e0eb;
  border-radius: 9px;
  background: #f8fafc;
}

.partner-selected-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 7px 6px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 12px;
}

.partner-selected-item b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-selected-item small {
  color: #64748b;
}

.partner-selected-item button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 17px;
}

.partner-selected-empty {
  margin: auto 4px;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 700px) {
  .partner-item-selectors {
    grid-template-columns: 1fr;
  }
}

.calendar-status-legend {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 7px 2px 3px;
  font-size: 12px;
}

.calendar-status-legend span,
.calendar-status-dots i {
  --status-color: #f59e0b;
}

.calendar-status-legend span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--status-color);
}

.calendar-status-legend .done,
.calendar-status-dots .done {
  --status-color: #22c55e;
}

.calendar-status-legend .open,
.calendar-status-dots .open {
  --status-color: #facc15;
}

.calendar-status-legend .hold,
.calendar-status-dots .hold {
  --status-color: #ef4444;
}

.status-calendar-days a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 2px;
}

.status-calendar-days a b {
  font-weight: 500;
}

.calendar-status-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.calendar-status-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-color);
}
