/* PersonalHelp · materiais por cômodo e marca da proposta */
.rooms-editor { display: grid; gap: 14px; margin-top: 18px; }
.room-card { border: 1px solid #eedfe9; border-radius: 12px; padding: 16px; background: #fffdfe; min-width: 0; }
.room-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.room-head strong { font-size: 15px; color: #6f2f61; }
.room-total { margin-left: auto; font-size: 12px; color: var(--muted, #7e6b7c); font-variant-numeric: tabular-nums; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.room-grid .field span { font-size: 12px; }
.room-add { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.room-add .field { flex: 1 1 220px; min-width: 0; }
.room-add .button { min-height: 44px; }

.material-table { display: grid; gap: 10px; margin-bottom: 14px; }
.material-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; grid-template-areas: "name name del" "unit price price" "box box box"; gap: 10px; align-items: end; padding-bottom: 12px; border-bottom: 1px solid #f1e6ee; }
.material-row > .field:nth-of-type(1) { grid-area: name; }
.material-row > .field:nth-of-type(2) { grid-area: unit; }
.material-row > .field:nth-of-type(3) { grid-area: price; }
.material-row .material-box { grid-area: box; min-height: 32px; display: flex; align-items: center; }
.material-row .icon-button { grid-area: del; width: 44px; height: 44px; }
.room-grid input[type=number]::-webkit-inner-spin-button, .room-grid input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.room-grid input[type=number] { -moz-appearance: textfield; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 14px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #e2d3de; cursor: pointer; padding: 0; }
.swatch.selected { box-shadow: 0 0 0 2px #2a2128; }
.swatch:focus-visible { outline: 2px solid #2a2128; outline-offset: 3px; }
.swatch-custom { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted, #7e6b7c); min-height: 44px; cursor: pointer; }
.swatch-custom input { width: 44px; height: 40px; border: 1px solid #e2d3de; border-radius: 10px; padding: 2px; background: #fff; cursor: pointer; }

.brand-uploads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.brand-upload { display: grid; gap: 8px; align-content: start; min-width: 0; }
.brand-upload small { color: var(--muted, #7e6b7c); font-size: 11px; line-height: 1.5; }
.brand-thumb { height: 92px; border: 1px dashed #dcc9d6; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: repeating-conic-gradient(#faf6f9 0 25%, #fff 0 50%) 0 0 / 16px 16px; overflow: hidden; }
.brand-thumb span { font-size: 12px; color: var(--muted, #7e6b7c); background: #fff; padding: 2px 8px; border-radius: 6px; }
.brand-thumb img { max-width: 90%; max-height: 76px; object-fit: contain; }
.brand-thumb-photo img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.brand-file { position: relative; overflow: hidden; cursor: pointer; }
.brand-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.brand-file:focus-within { outline: 2px solid #2a2128; outline-offset: 2px; }

.brand-preview { border: 1px solid #eadde6; border-radius: 12px; overflow: hidden; background: #fff; margin-top: 8px; }
.brand-preview-bar { height: 6px; background: var(--brand); }
.brand-preview-body { padding: 16px 18px; display: grid; gap: 10px; }
.brand-preview-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand-preview-top strong { color: var(--brand-text); font-size: 16px; }
.brand-preview-top small { font-size: 9px; letter-spacing: .14em; color: #8a7a87; font-weight: 700; }
.brand-preview-logo { max-height: 36px; max-width: 160px; object-fit: contain; }
.brand-preview-title { margin: 0; font-size: 22px; font-weight: 700; color: var(--brand-text); }
.brand-preview-price { background: var(--brand); color: var(--brand-on); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.brand-preview-price small { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.brand-preview-price b { font-size: 20px; }
.brand-preview-sign { display: flex; align-items: center; gap: 10px; }
.brand-preview-sign span { display: grid; font-size: 11px; color: #8a7a87; }
.brand-preview-sign b { color: var(--brand-text); font-size: 13px; }
.brand-preview-photo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
@media (max-width: 680px) { .brand-uploads { grid-template-columns: 1fr; } }
.chip-x { margin-left: 4px; font-size: 15px; line-height: 1; }
.room-add { margin-top: 12px; }
.danger-text { color: #a3324a !important; }
/* Aviso de sincronização fica ao lado do menu lateral, não por baixo dele */
#sync-notice { margin-left: 244px; padding: 12px 24px 0; box-sizing: border-box; }
#sync-notice .crm-notice { margin-bottom: 0; }
@media (max-width: 1080px) { #sync-notice { margin-left: 200px; } }
@media (max-width: 680px) { #sync-notice { margin-left: 0; padding: 12px 12px 0; } }
