.cmr-panel {
  margin-top: 18px;
  border: 1px solid #e5c8a0;
  border-radius: 15px;
  background: #fffaf2;
  padding: 14px;
}

.cmr-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  border: 1px solid #d69b4f;
  border-radius: 11px;
  background: #fff1db;
  color: #764614;
  padding: 10px 12px;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.cmr-toggle:hover {
  border-color: #bd7f31;
  background: #ffe8c2;
}

.cmr-toggle-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 50%;
  background: #d4872f;
  color: #fff;
  font-size: 16px;
}

.cmr-intro {
  margin: 9px 3px 0;
  color: #74624f;
  font-size: .78rem;
  line-height: 1.45;
}

.cmr-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid #ecd9bd;
  padding-top: 14px;
}

.cmr-form[hidden] {
  display: none !important;
}

.cmr-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #51483f;
  font-size: .78rem;
  font-weight: 850;
}

.cmr-form input[type="text"],
.cmr-form textarea,
.cmr-form select {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid #d4c9bc;
  border-radius: 10px;
  background: #fff;
  color: #29352f;
  padding: 9px 10px;
  font: inherit;
  font-size: 16px;
}

.cmr-form textarea {
  min-height: 100px;
  resize: vertical;
}

.cmr-form input:focus,
.cmr-form textarea:focus,
.cmr-form select:focus {
  border-color: #9a6a31;
  outline: 3px solid rgba(154, 106, 49, .13);
}

.cmr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.cmr-file-picker {
  border: 1px dashed #c89b64;
  border-radius: 11px;
  background: #fff;
  padding: 12px;
}

.cmr-file-picker > span {
  color: #6a461e;
  font-size: .84rem;
  font-weight: 900;
}

.cmr-file-picker small {
  color: #7a6b5c;
  font-weight: 600;
  line-height: 1.4;
}

.cmr-file-picker input {
  margin-top: 4px;
}

.cmr-selected {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cmr-selected > span {
  border-radius: 9px;
  background: #f2eee8;
  color: #756b60;
  padding: 9px 10px;
  font-size: .73rem;
}

.cmr-selected > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px;
  border: 1px solid #e0d4c5;
  border-radius: 9px;
  background: #fff;
  padding: 9px 10px;
}

.cmr-selected strong {
  color: #62513f;
  font-size: .73rem;
}

.cmr-selected span {
  overflow: hidden;
  color: #766d64;
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmr-message {
  min-height: 20px;
  border-radius: 9px;
  color: #5a624f;
  padding: 0;
  font-size: .76rem;
  font-weight: 800;
}

.cmr-message.success:not(:empty) {
  background: #eaf6ee;
  color: #2d6c44;
  padding: 9px 10px;
}

.cmr-message.error:not(:empty) {
  background: #fff0ee;
  color: #903b34;
  padding: 9px 10px;
}

.cmr-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.cmr-actions button:disabled {
  cursor: wait;
  opacity: .68;
}

.cmr-success {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 11px;
  border: 1px solid #b7d7c0;
  border-radius: 10px;
  background: #edf8f0;
  padding: 10px 11px;
}

.cmr-success[hidden] {
  display: none !important;
}

.cmr-success strong {
  color: #28633e;
  font-size: .82rem;
}

.cmr-success span {
  color: #496556;
  font-size: .74rem;
}

.cmr-success small {
  color: #6b7b71;
  font-size: .68rem;
}

@media (max-width: 650px) {
  .cmr-panel {
    padding: 12px;
  }

  .cmr-grid {
    grid-template-columns: 1fr;
  }

  .cmr-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .cmr-actions button {
    width: 100%;
  }

  .cmr-selected > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .cmr-selected span {
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}


/* Simplified cabin-clean screen:
   1. Clean completed
   2. Room-ready video
   3. Maintenance report */
.detail-layout[data-work-comments-type="cleaning"]
  .ccs-clean-complete-section,
.detail-layout[data-work-comments-type="cleaning"]
  .clean-media-panel,
.detail-layout[data-work-comments-type="cleaning"]
  .cmr-panel {
  box-sizing: border-box;
}

.detail-layout[data-work-comments-type="cleaning"]
  .ccs-section-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #1f604b;
  color: #fff;
  font-size: .92rem;
  font-weight: 950;
  line-height: 1;
}

.detail-layout.ccs-cabin-clean-simple {
  display: block !important;
  grid-template-columns: 1fr !important;
  max-width: 860px;
  margin: 0 auto;
}

.detail-layout.ccs-cabin-clean-simple
  > aside.detail-sidebar {
  display: none !important;
}

.detail-layout.ccs-cabin-clean-simple
  > section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.detail-layout.ccs-cabin-clean-simple
  > section
  > .checklist,
.detail-layout.ccs-cabin-clean-simple
  .wpc-panel,
.detail-layout.ccs-cabin-clean-simple
  [data-work-comment-card-type="cleaning"] {
  display: none !important;
}

.ccs-clean-complete-section {
  order: 1;
  border: 2px solid #b9d5c6;
  border-radius: 16px;
  background: #f3fbf6;
  padding: 15px;
}

.ccs-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 12px;
}

.ccs-section-heading h3 {
  margin: 1px 0 3px;
  color: #21483b;
  font-size: 1.04rem;
}

.ccs-section-heading p {
  margin: 0;
  color: #64766d;
  font-size: .77rem;
  line-height: 1.45;
}

.ccs-clean-complete-section
  .clean-media-complete {
  margin: 0;
  border: 2px solid #2c775a;
  border-radius: 13px;
  background: #fff;
  padding: 14px;
}

.ccs-clean-complete-section
  .clean-media-complete
  input {
  width: 26px;
  height: 26px;
  accent-color: #1f604b;
}

.ccs-clean-complete-section
  .clean-media-complete
  strong {
  font-size: 1rem;
}

.clean-media-panel.ccs-video-section {
  order: 2;
  border: 1px solid #bed2df;
  background: #f7fbfd;
}

.clean-media-panel.ccs-video-section
  .clean-media-heading {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: start;
  gap: 11px;
}

.clean-media-panel.ccs-video-section
  .clean-media-heading
  > div {
  min-width: 0;
}

.clean-media-panel.ccs-video-section
  .clean-media-heading h3 {
  margin-top: 1px;
}

.clean-media-panel.ccs-video-section
  .clean-media-actions
  label[data-clean-extra-media],
.clean-media-panel.ccs-video-section
  .clean-media-actions
  .button.ghost {
  display: none !important;
}

.clean-media-panel.ccs-video-section
  .clean-media-button {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  font-weight: 900;
}

.cmr-panel.ccs-maintenance-section {
  order: 3;
  margin-top: 0;
}

.cmr-panel.ccs-maintenance-section
  .cmr-toggle {
  min-height: 56px;
}

.cmr-panel.ccs-maintenance-section
  .cmr-toggle
  .ccs-section-number {
  margin-right: 1px;
  background: #9a5a18;
}

.cmr-panel.ccs-maintenance-section
  .cmr-toggle-icon {
  display: none;
}

@media (max-width: 650px) {
  .detail-layout.ccs-cabin-clean-simple {
    padding-bottom: 12px;
  }

  .ccs-clean-complete-section,
  .clean-media-panel.ccs-video-section,
  .cmr-panel.ccs-maintenance-section {
    border-radius: 14px;
    padding: 12px;
  }

  .clean-media-panel.ccs-video-section
    .clean-media-heading {
    grid-template-columns: 34px 1fr;
  }

  .clean-media-panel.ccs-video-section
    .clean-media-count {
    grid-column: 2;
  }
}


/* Daily Camp Kitchen clean:
   1. Clean completed
   2. Maintenance required
   No video section. */
.detail-layout.ccs-camp-kitchen-clean-simple {
  display:block !important;
  grid-template-columns:1fr !important;
  max-width:860px;
  margin:0 auto;
}

.detail-layout.ccs-camp-kitchen-clean-simple
  > aside.detail-sidebar,
.detail-layout.ccs-camp-kitchen-clean-simple
  > section
  > .checklist,
.detail-layout.ccs-camp-kitchen-clean-simple
  .clean-media-panel,
.detail-layout.ccs-camp-kitchen-clean-simple
  .clean-media-complete,
.detail-layout.ccs-camp-kitchen-clean-simple
  .wpc-panel,
.detail-layout.ccs-camp-kitchen-clean-simple
  [data-work-comment-card-type="cleaning"] {
  display:none !important;
}

.detail-layout.ccs-camp-kitchen-clean-simple
  > section {
  display:flex;
  flex-direction:column;
  gap:16px;
  width:100%;
  min-width:0;
}

.ccs-camp-kitchen-complete-section {
  order:1;
  border:2px solid #b9d5c6;
  border-radius:16px;
  background:#f3fbf6;
  padding:15px;
}

.ccs-camp-kitchen-checkbox {
  display:flex;
  align-items:flex-start;
  gap:13px;
  border:2px solid #2c775a;
  border-radius:13px;
  background:#fff;
  padding:15px;
  cursor:pointer;
}

.ccs-camp-kitchen-checkbox
  input {
  width:28px;
  height:28px;
  flex:0 0 28px;
  margin:1px 0 0;
  accent-color:#1f604b;
}

.ccs-camp-kitchen-checkbox
  span {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.ccs-camp-kitchen-checkbox
  strong {
  color:#21483b;
  font-size:1.03rem;
}

.ccs-camp-kitchen-checkbox
  small {
  color:#64766d;
  line-height:1.4;
}

.ccs-camp-kitchen-checkbox:has(
  input:checked
) {
  border-color:#1f604b;
  background:#e7f6ed;
}

.ccs-camp-kitchen-message {
  min-height:20px;
  margin-top:9px;
  color:#1f604b;
  font-size:.82rem;
  font-weight:750;
}

.ccs-camp-kitchen-message.error {
  color:#a13030;
}

.cmr-panel.ccs-camp-kitchen-maintenance-section {
  order:2;
  margin-top:0;
}

.cmr-panel.ccs-camp-kitchen-maintenance-section
  .cmr-toggle {
  min-height:58px;
}

.cmr-panel.ccs-camp-kitchen-maintenance-section
  .cmr-toggle
  .ccs-section-number {
  margin-right:2px;
  background:#9a5a18;
}

.cmr-panel.ccs-camp-kitchen-maintenance-section
  .cmr-toggle-icon {
  display:none;
}

@media (max-width:650px) {
  .ccs-camp-kitchen-complete-section,
  .cmr-panel.ccs-camp-kitchen-maintenance-section {
    border-radius:14px;
    padding:12px;
  }

  .ccs-camp-kitchen-checkbox {
    padding:14px 12px;
  }
}
