/* PA-RC-P2 — local Room Configuration prototype */
.room-config-status{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  background:#f7f7f7;
  color:#555;
  font-size:12px;
  line-height:1.5;
}

.room-config-status.warning{
  background:#fff4e5;
  color:#7a4d00;
}

.room-config-room-tabs{
  margin-top:14px;
}

.room-config-field{
  margin-top:16px;
}

.room-config-field label{
  display:block;
  margin-bottom:7px;
  font-size:12px;
  font-weight:700;
  color:#666;
}

.room-config-select,
.room-config-input{
  width:100%;
  border:1px solid #ddd;
  border-radius:12px;
  padding:12px;
  background:#fff;
  color:#111;
  font-size:14px;
}

.room-config-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.room-config-item{
  border:1px solid #ececec;
  border-radius:14px;
  padding:12px;
}

.room-config-item-main{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.room-config-item-name{
  font-size:14px;
  font-weight:700;
}

.room-config-item-meta{
  margin-top:3px;
  color:#777;
  font-size:11px;
}

.room-config-item-controls{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:10px;
}

.room-config-check{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  color:#444;
}

.room-config-check input{
  width:17px;
  height:17px;
}

.room-config-add-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:12px;
}

.room-config-secondary{
  width:100%;
  border:1px solid #ddd;
  border-radius:12px;
  background:#fff;
  color:#111;
  padding:12px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.room-config-secondary.danger{
  color:#b42318;
}

.room-config-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:16px;
}

.room-config-empty{
  margin-top:10px;
  color:#777;
  font-size:12px;
}

.room-config-origin{
  display:inline-flex;
  margin-left:6px;
  padding:3px 7px;
  border-radius:999px;
  background:#f1f1f1;
  color:#666;
  font-size:9px;
  font-weight:700;
  vertical-align:middle;
}

.room-config-inspectable{
  display:inline-flex;
  padding:4px 7px;
  border-radius:999px;
  background:#f1f1f1;
  color:#555;
  font-size:10px;
  font-weight:700;
}

.room-config-inspectable.yes{
  background:#eaf7ee;
  color:#176b35;
}


/* PA-RC-P2A — compact configuration grids */
.room-config-grid{
  display:grid;
  width:100%;
  margin-top:12px;
  border:1px solid #ececec;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}

.room-config-baseline-grid{
  grid-template-columns:
    minmax(84px, 1fr)
    52px
    52px
    74px;
}

.room-config-resolved-grid{
  grid-template-columns:
    minmax(110px, 1fr)
    64px
    82px
    minmax(84px, .75fr);
}

.room-config-grid-header{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:7px 4px;
  border-bottom:1px solid #e8e8e8;
  background:#f7f7f7;
  color:#666;
  font-size:9px;
  font-weight:800;
  letter-spacing:.035em;
  text-align:center;
  text-transform:uppercase;
}

.room-config-grid-item-column{
  justify-content:flex-start;
  text-align:left;
}

.room-config-grid-cell{
  display:flex;
  align-items:center;
  min-height:48px;
  padding:8px 6px;
  border-bottom:1px solid #f0f0f0;
}

.room-config-grid-cell:not(.room-config-grid-item-column){
  justify-content:center;
  text-align:center;
}

.room-config-grid > :nth-last-child(-n + 4){
  border-bottom:none;
}

.room-config-grid-choice{
  cursor:pointer;
}

.room-config-grid-choice input{
  width:18px;
  height:18px;
  margin:0;
  accent-color:#111;
  cursor:pointer;
}

.room-config-grid-choice input:disabled{
  cursor:not-allowed;
  opacity:.35;
}

.room-config-grid-readonly{
  color:#555;
}

.room-config-grid-state{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
}

.room-config-grid-state.yes{
  background:#eaf7ee;
  color:#176b35;
}

.room-config-grid-state.no{
  background:#f3f3f3;
  color:#999;
}

.room-config-grid-source{
  justify-content:flex-start !important;
  color:#666;
  font-size:11px;
  line-height:1.25;
}

.room-config-source-mobile{
  display:none;
  margin-top:3px;
  color:#777;
  font-size:10px;
  font-weight:600;
}

@media (max-width: 420px){
  .room-config-baseline-grid{
    grid-template-columns:
      minmax(84px, 1fr)
      44px
      44px
      60px;
  }

  .room-config-resolved-grid{
    grid-template-columns:
      minmax(98px, 1fr)
      54px
      72px;
  }

  .room-config-resolved-grid .room-config-source-column{
    display:none;
  }

  .room-config-source-mobile{
    display:block;
  }

  .room-config-grid-header{
    font-size:8px;
    letter-spacing:0;
  }

  .room-config-grid-cell{
    padding-left:5px;
    padding-right:5px;
  }

  .room-config-grid-state{
    width:22px;
    height:22px;
  }
}

@media (min-width: 720px){
  .room-config-add-grid{
    grid-template-columns:1.4fr .9fr .8fr;
    align-items:end;
  }
}

/* =========================================================
   PA-RC-P2B2 — shared Baseline Item catalog CRUD
========================================================= */
.room-config-v2-catalog-card{
  margin-top:16px;
}

.room-config-v2-heading-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.room-config-v2-help{
  color:#777;
  font-size:11px;
  line-height:1.4;
}

.room-config-v2-add-button{
  width:auto;
  flex-shrink:0;
  padding:9px 11px;
}

.room-config-v2-status{
  margin-top:14px;
}

.room-config-v2-grid{
  display:grid;
  grid-template-columns:
    minmax(110px,1fr)
    minmax(110px,.9fr)
    minmax(150px,1.2fr)
    minmax(140px,1.15fr)
    92px
    112px;
  gap:0;
  width:100%;
}

.room-config-v2-header{
  margin-top:14px;
  border:1px solid #ececec;
  border-bottom:none;
  border-radius:14px 14px 0 0;
  overflow:hidden;
  background:#f7f7f7;
}

.room-config-v2-header > div{
  display:flex;
  align-items:center;
  min-height:38px;
  padding:7px 6px;
  color:#666;
  font-size:8px;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.room-config-v2-list{
  border:1px solid #ececec;
  border-radius:0 0 14px 14px;
  overflow:hidden;
}

.room-config-v2-row{
  border-bottom:1px solid #f0f0f0;
}

.room-config-v2-row:last-child{
  border-bottom:none;
}

.room-config-v2-cell{
  display:flex;
  align-items:center;
  min-width:0;
  min-height:50px;
  padding:8px 6px;
  color:#555;
  font-size:10px;
  line-height:1.3;
  overflow-wrap:anywhere;
}

.room-config-v2-item-cell{
  align-items:flex-start;
  flex-direction:column;
  justify-content:center;
}

.room-config-v2-item-name{
  color:#111;
  font-size:12px;
  font-weight:700;
}

.room-config-v2-item-meta-mobile{
  display:none;
  margin-top:3px;
  color:#777;
  font-size:9px;
  line-height:1.35;
}

.room-config-v2-inspection-column{
  justify-content:center;
}

.room-config-v2-actions-column{
  justify-content:flex-start;
  gap:5px;
}

.room-config-v2-table-button{
  border:1px solid #ddd;
  border-radius:8px;
  background:#fff;
  color:#111;
  padding:6px 7px;
  font-size:9px;
  font-weight:700;
  cursor:pointer;
}

.room-config-v2-table-button.danger{
  color:#b42318;
}

.room-config-v2-state{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:23px;
  height:23px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

.room-config-v2-state.yes{
  background:#eaf7ee;
  color:#176b35;
}

.room-config-v2-state.no{
  background:#f3f3f3;
  color:#999;
}

.room-config-v2-empty{
  padding:12px;
  color:#777;
  font-size:12px;
}

.room-config-v2-editor{
  margin-top:14px;
  padding:14px;
  border:1px solid #e8e8e8;
  border-radius:14px;
  background:#fafafa;
}

.room-config-v2-editor[hidden]{
  display:none !important;
}

.room-config-v2-editor-title{
  margin-bottom:12px;
  font-size:13px;
  font-weight:800;
}

.room-config-v2-editor-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.room-config-v2-inspection-editor{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.room-config-v2-editor-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}

.room-config-v2-reset{
  margin-top:10px;
  border:none;
  background:transparent;
  color:#777;
  padding:4px 0;
  font-size:10px;
  text-decoration:underline;
  cursor:pointer;
}

@media (max-width:420px){
  .room-config-v2-heading-row{
    flex-direction:column;
  }

  .room-config-v2-add-button{
    width:100%;
  }

  .room-config-v2-grid{
    grid-template-columns:
      minmax(0,1fr)
      64px
      92px;
  }

  .room-config-v2-variation-column,
  .room-config-v2-asset-column,
  .room-config-v2-category-column{
    display:none !important;
  }

  .room-config-v2-item-meta-mobile{
    display:block;
  }

  .room-config-v2-header > div{
    font-size:8px;
  }

  .room-config-v2-actions-column{
    flex-direction:column;
    align-items:stretch;
  }

  .room-config-v2-table-button{
    width:100%;
  }
}

@media (min-width:720px){
  .room-config-v2-editor-grid{
    grid-template-columns:
      1fr
      1.15fr
      1.2fr
      1.1fr
      .8fr;
    align-items:end;
  }
}
/* =========================================================
   PA-RC-P2B3 — v2 room assignments + resolved configuration
========================================================= */
.room-config-v2-room-add-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:14px;
}

.room-config-v2-room-inspection-field{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.room-config-v2-room-readonly-check{
  min-height:42px;
  padding:0 11px;
  border:1px solid #ddd;
  border-radius:12px;
  background:#f7f7f7;
}

.room-config-v2-room-add-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
}

.room-config-v2-room-link-button{
  margin-right:auto;
  border:0;
  background:transparent;
  color:#555;
  padding:8px 0;
  font-size:11px;
  font-weight:700;
  text-decoration:underline;
  text-align:left;
  cursor:pointer;
}

.room-config-v2-room-add-button{
  width:auto;
  min-width:110px;
  border-color:#111;
  background:#111;
  color:#fff;
}

.room-config-v2-room-list-wrap{
  margin-top:18px;
}

.room-config-v2-room-grid{
  display:grid;
  width:100%;
  gap:0;
}

.room-config-v2-room-items-grid{
  grid-template-columns:minmax(0,1.4fr) minmax(90px,.8fr) 78px;
}

.room-config-v2-resolved-grid{
  grid-template-columns:
    minmax(0,1.1fr)
    minmax(90px,.75fr)
    minmax(130px,1.1fr)
    minmax(125px,1fr)
    88px;
}

.room-config-v2-room-header{
  border:1px solid #ececec;
  border-bottom:none;
  border-radius:14px 14px 0 0;
  overflow:hidden;
  background:#f7f7f7;
}

.room-config-v2-room-header > div{
  display:flex;
  align-items:center;
  min-height:38px;
  padding:7px 6px;
  color:#666;
  font-size:8px;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.room-config-v2-room-list{
  border:1px solid #ececec;
  border-radius:0 0 14px 14px;
  overflow:hidden;
}

.room-config-v2-room-row{
  border-bottom:1px solid #f0f0f0;
}

.room-config-v2-room-row:last-child{
  border-bottom:none;
}

.room-config-v2-room-cell{
  display:flex;
  align-items:center;
  min-width:0;
  min-height:50px;
  padding:8px 6px;
  color:#555;
  font-size:10px;
  line-height:1.3;
  overflow-wrap:anywhere;
}

.room-config-v2-room-item-cell{
  align-items:flex-start;
  flex-direction:column;
  justify-content:center;
}

.room-config-v2-room-item-name{
  color:#111;
  font-size:12px;
  font-weight:700;
}

.room-config-v2-resolved-meta-mobile{
  display:none;
  margin-top:3px;
  color:#777;
  font-size:9px;
  line-height:1.35;
}

.room-config-v2-room-remove-cell,
.room-config-v2-inspection-state-cell{
  justify-content:center;
}

.room-config-v2-room-remove-button{
  border:1px solid #ddd;
  border-radius:8px;
  background:#fff;
  color:#b42318;
  padding:6px 7px;
  font-size:9px;
  font-weight:700;
  cursor:pointer;
}

.room-config-v2-room-empty{
  padding:12px;
  color:#777;
  font-size:12px;
}

@media (max-width:420px){
  .room-config-v2-room-add-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .room-config-v2-room-link-button{
    margin-right:0;
  }

  .room-config-v2-room-add-button{
    width:100%;
  }

  .room-config-v2-room-items-grid{
    grid-template-columns:minmax(0,1fr) 82px 66px;
  }

  .room-config-v2-resolved-grid{
    grid-template-columns:minmax(0,1fr) 82px 68px;
  }

  .room-config-v2-resolved-asset-column,
  .room-config-v2-resolved-category-column{
    display:none !important;
  }

  .room-config-v2-resolved-meta-mobile{
    display:block;
  }
}

@media (min-width:720px){
  .room-config-v2-room-add-grid{
    grid-template-columns:
      1fr
      .85fr
      1.2fr
      1.05fr
      .8fr;
    align-items:end;
  }
}
/* =========================================================
   PA-RC-P2B4 — configuration integrity + workflow hardening
========================================================= */
.room-config-v2-storage-actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:10px;
}

.room-config-v2-storage-actions .room-config-v2-reset{
  margin-top:0;
}

.room-config-v2-table-button:disabled,
.room-config-v2-room-remove-button:disabled{
  opacity:.4;
  cursor:not-allowed;
}

@media (max-width:420px){
  .room-config-v2-storage-actions{
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
  }
}


/* PA-RC-P4 — read-only Room Inspection prototype projection */
.room-config-inspection-projection-card{
  overflow:hidden;
}

.room-config-inspection-projection-grid{
  display:grid;
  grid-template-columns:
    minmax(120px,1.2fr)
    minmax(90px,.8fr)
    minmax(150px,1.2fr);
  gap:10px;
  align-items:center;
}

.room-config-inspection-projection-card > .room-config-inspection-projection-grid{
  margin-top:14px;
  padding:0 10px 8px;
}

.room-config-inspection-projection-row{
  min-height:46px;
  padding:10px;
  border-top:1px solid #efefef;
  font-size:12px;
}

.room-config-inspection-projection-item{
  font-size:13px;
  font-weight:700;
}

.room-config-inspection-projection-variation,
.room-config-inspection-projection-mapping{
  color:#666;
}

@media (max-width:420px){
  .room-config-inspection-projection-grid{
    grid-template-columns:
      minmax(105px,1fr)
      minmax(80px,.75fr);
  }

  .room-config-inspection-projection-grid > :nth-child(3){
    grid-column:1 / -1;
    padding-top:0;
    font-size:10px;
  }

  .room-config-inspection-projection-card > .room-config-inspection-projection-grid > :nth-child(3){
    display:none;
  }
}
