/* admin.css — 지회 실무자 PC 화면 */
body.admin {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f2f6f3;
  font-size: 14.5px;
}

/* ---------------------------------------------------------------- 상단 바 */
.top {
  flex: none;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: var(--green-800);
  color: #fff;
  box-shadow: 0 2px 10px rgba(10, 30, 20, .18);
  position: relative;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px; background: #fff; color: var(--green-800);
  display: grid; place-items: center; font-weight: 800; font-size: 19px;
}
.brand b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.brand span { display: block; font-size: 12px; color: var(--mint); margin-top: 1px; }

.branch { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 0 1 auto; }
.branch label { font-size: 12.5px; color: var(--mint); font-weight: 700; white-space: nowrap; }
.branch select {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  min-width: 260px;
  max-width: 430px;
  flex: 1 1 auto;
  outline: none;
}
.branch select option { color: var(--ink); }
.branch .meta {
  display: none;
  font-size: 12px; color: #cfe0d6; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 250px;
}
@media (min-width: 1700px) { .branch .meta { display: block; } }

.acts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.acts .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff; font-size: 13px; padding: 10px 12px; }
.acts .btn:hover { background: rgba(255, 255, 255, .18); }
.acts .btn-primary { background: #f2c14e; border-color: #f2c14e; color: #3a2a05; }
.acts .btn-primary:hover { background: #f6cf74; }
.acts .btn-ghost { background: transparent; border-color: transparent; color: #cfe0d6; }
.acts .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.live { font-size: 12px; font-weight: 700; color: #9ee0b8; white-space: nowrap; }
.live.local { color: #e6c88a; }

/* ---------------------------------------------------------------- 레이아웃 */
.layout { flex: 1; display: flex; min-height: 0; }

/* ---------------------------------------------------------------- 좌측 목록 */
.side {
  width: 402px;
  flex: none;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.side-top { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.search-row input {
  width: 100%;
  padding: 11px 13px;
  font-size: 14.5px;
  border: 1.55px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: #fbfdfc;
}
.search-row input:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(42, 122, 88, .1); background: #fff; }
#filter-dong {
  width: 100%;
  margin-top: 8px;
  padding: 9px 11px;
  font-size: 13.5px;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  outline: none;
}
.stat-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px; font-size: 12.5px; color: var(--muted);
}
.stat-row b { color: var(--ink); font-size: 14px; }
.stat-row b.warn { color: var(--red); }
.stat-row b.accent { color: var(--blue); }
.stat-row .rate { margin-left: auto; }

.hall-list { flex: 1; overflow-y: auto; position: relative; outline: none; }
.hall-list::-webkit-scrollbar { width: 10px; }
.hall-list::-webkit-scrollbar-thumb { background: #cfdcd4; border-radius: 9px; }
.list-inner { position: relative; }

.hall-row {
  position: absolute; left: 0; right: 0;
  height: 66px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid #eef3f0;
  background: #fff;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.hall-row:hover { background: #f6faf7; }
.hall-row.sel { background: #e8f2ec; box-shadow: inset 3px 0 0 var(--green-600); }
.hall-row .no {
  width: 42px; flex: none; font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums; text-align: right;
}
.hall-row .nm { flex: 1; min-width: 0; }
.hall-row .nm b {
  display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hall-row .nm span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.hall-row .badges { display: flex; gap: 4px; flex: none; }
.hall-row .b {
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; display: grid; place-items: center;
}
.b-unread { background: var(--red-soft); color: var(--red); }
.b-photo { background: var(--blue-soft); color: var(--blue); }
.b-new { background: var(--amber-soft); color: var(--amber); }

.side-foot { padding: 10px 14px 12px; border-top: 1px solid var(--line); background: #fbfdfc; }
.side-foot .btn { width: 100%; height: 42px; }
.side-note { font-size: 11.5px; color: #87958d; margin-top: 8px; line-height: 1.5; }

/* ---------------------------------------------------------------- 상세 */
.detail { flex: 1; overflow-y: auto; padding: 20px 24px 60px; }
.detail-empty { display: grid; place-items: center; height: 100%; color: var(--muted); text-align: center; }

.d-head {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; display: flex; align-items: flex-start; gap: 16px;
}
.d-head .no { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.d-head h2 { font-size: 23px; margin: 3px 0 6px; letter-spacing: -0.03em; }
.d-head .addr { font-size: 13.5px; color: var(--muted); }
.d-head .tags { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.d-head .grow { flex: 1; min-width: 0; }
.d-head .actions { display: flex; gap: 8px; flex: none; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.card .lb { font-size: 12px; color: var(--muted); font-weight: 700; }
.card .vl { font-size: 24px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.card .vl small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.card.warn .vl { color: var(--red); }
.card.accent .vl { color: var(--blue); }
.card.green .vl { color: var(--green-600); }

.panel-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  margin-top: 14px; overflow: hidden;
}
.panel-card > header {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: #fafcfb;
}
.panel-card > header h3 { font-size: 15px; }
.panel-card > header .sub { font-size: 12.5px; color: var(--muted); }
.panel-card > header .spacer { flex: 1; }
.panel-card .body { padding: 4px 0; }

.contacts { display: grid; grid-template-columns: repeat(3, 1fr); }
.contact { padding: 14px 18px; border-right: 1px solid #f0f4f1; }
.contact:last-child { border-right: none; }
.contact .role { font-size: 12px; color: var(--muted); font-weight: 700; }
.contact .nm { font-size: 17px; font-weight: 800; margin: 4px 0 6px; }
.contact a { font-size: 14.5px; font-weight: 700; text-decoration: none; color: var(--green-600); }
.contact a:hover { text-decoration: underline; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 10px 16px; text-align: left; font-size: 13.5px; border-bottom: 1px solid #f1f5f2; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 700; background: #fcfdfc; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td.num { font-variant-numeric: tabular-nums; color: var(--muted); }

.notice-line { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #f1f5f2; }
.notice-line:last-child { border-bottom: none; }
.notice-line .tt { flex: 1; font-weight: 700; font-size: 14px; }
.notice-line .dd { font-size: 12.5px; color: var(--muted); }

.photo-grid { display: flex; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
.photo-tile { width: 152px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #fff; }
.photo-tile.new { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.photo-tile img { width: 100%; height: 104px; object-fit: cover; display: block; background: #eef1ee; cursor: zoom-in; }
.photo-tile .foot { padding: 8px 9px 9px; }
.photo-tile .when { font-size: 11.5px; color: var(--muted); }
.photo-tile .note { font-size: 12px; margin-top: 3px; line-height: 1.4; }
.photo-tile .acts2 { display: flex; gap: 5px; margin-top: 7px; }
.photo-tile .acts2 .btn { padding: 4px 8px; font-size: 11.5px; border-radius: 6px; }

.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1px; background: #f0f4f1; }
.item-cell { background: #fff; padding: 11px 16px; display: flex; align-items: center; gap: 10px; }
.item-cell .em { font-size: 20px; }
.item-cell .nm { flex: 1; font-size: 13.5px; font-weight: 600; }
.item-cell .q { font-size: 12.5px; color: var(--muted); }

.memo-row { display: flex; gap: 10px; padding: 14px 18px; }
.memo-row textarea { flex: 1; min-height: 64px; padding: 11px 13px; border: 1.5px solid var(--line-strong); border-radius: 9px; font-size: 13.5px; line-height: 1.6; resize: vertical; }

.hint-line { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.6; background: #f7faf8; padding: 10px 12px; border-radius: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.notice-preview {
  background: #f7faf8; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6;
}
.notice-preview b { color: var(--green-700); }

.photo-modal { width: min(880px, 100%); }.photo-modal .modal-body { padding: 0; background: #111; display: grid; place-items: center; }
.photo-modal img { max-width: 100%; max-height: 74vh; display: block; }

@media (max-width: 1400px) {
  .live { display: none; }
  .acts .btn { padding: 9px 10px; font-size: 12.5px; }
  .side { width: 352px; }
}
@media (max-width: 1200px) {
  .branch select { min-width: 180px; font-size: 13px; }
  .brand span { display: none; }
}

/* 인쇄용 시트는 화면에서는 감춘다 (print.css 는 인쇄 미디어에서만 적용됨) */
.print-sheet { display: none; }
