/* SobangNet v5.27.1 — operations density + funnel handoff polish
   Scope: admin information hierarchy, compact request scanning, service-choice handoff.
   No business logic, DB, RLS, address or building lookup changes. */

/* ---------- Admin shell / command hierarchy ---------- */
body[data-route="admin"] .admin-page>.content{max-width:1160px;margin:0 auto;padding-top:18px}
.admin-command-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:2px 0 12px}
.admin-command-head>div{display:grid;gap:5px}
.admin-command-head .section-eyebrow{font-size:11px;line-height:1.3;font-weight:900;letter-spacing:.08em;color:#58708a}
.admin-command-head h1{margin:0;font-size:clamp(23px,2.4vw,30px);line-height:1.18;letter-spacing:-.045em;color:#152238}
.admin-command-head p{margin:0;max-width:700px;font-size:13px;line-height:1.6;color:#667085;word-break:keep-all}
.admin-operating-rule-compact{margin:10px 0 12px!important;padding:0!important;border:1px solid #e4e9ef!important;border-radius:12px!important;background:#fff!important;overflow:hidden}
.admin-operating-rule-compact>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:9px 12px;cursor:pointer;list-style:none}
.admin-operating-rule-compact>summary::-webkit-details-marker{display:none}
.admin-operating-rule-compact>summary b{font-size:12px;color:#344054}
.admin-operating-rule-compact>summary span{font-size:11px;color:#7a8696;text-align:right}
.admin-operating-rule-body{padding:10px 12px 12px!important;border-top:1px solid #edf1f4}
.admin-operating-rule-body span{font-size:12px!important;line-height:1.55!important}.admin-operating-rule-body small{font-size:11px!important;line-height:1.55!important}

/* ---------- One primary overview, secondary admin utilities ---------- */
.admin-overview-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 8px}
.admin-overview-strip>button{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:2px 8px;align-items:center;min-width:0;min-height:70px;padding:11px 13px;border:1px solid #e1e7ee;border-radius:13px;background:#fff;color:#344054;text-align:left;cursor:pointer}
.admin-overview-strip>button:hover{border-color:#a9bccc;background:#fbfcfd}
.admin-overview-strip>button:focus-visible{outline:3px solid rgba(49,95,158,.16);outline-offset:2px}
.admin-overview-strip span{font-size:11.5px;line-height:1.35;font-weight:820;color:#667085}
.admin-overview-strip b{grid-row:1/3;grid-column:2;font-size:22px;line-height:1;font-weight:900;color:#173d69;font-variant-numeric:tabular-nums}
.admin-overview-strip small{font-size:10.5px;line-height:1.35;color:#98a2b3}
.admin-overview-strip>button.hot{border-color:#f3d0c8;background:#fff9f7}
.admin-overview-strip>button.hot b{color:#c8432c}
.admin-overview-utilities{display:flex;align-items:center;gap:7px;min-height:30px;margin-bottom:14px;flex-wrap:wrap}
.admin-overview-utilities>button,.admin-insight-detail>summary{min-height:30px;padding:6px 9px;border:1px solid #e3e8ee;border-radius:9px;background:#fafbfc;color:#536273;font-size:10.5px;font-weight:800;line-height:1.3;cursor:pointer}
.admin-overview-utilities>button{display:inline-flex;align-items:center;gap:6px}.admin-overview-utilities>button b{color:#173d69;font-size:11px}
.admin-insight-detail{margin-left:auto}.admin-insight-detail>summary{list-style:none;display:flex;align-items:center}.admin-insight-detail>summary::-webkit-details-marker{display:none}
.admin-insight-body{display:grid;gap:8px;margin-top:7px;padding:10px;border:1px solid #e5e9ef;border-radius:11px;background:#fff;min-width:min(520px,85vw)}
.admin-insight-body p{display:flex;gap:8px;align-items:flex-start;margin:0;font-size:11px;line-height:1.5}.admin-insight-body p b{flex:0 0 auto;color:#344054}.admin-insight-body p span{color:#667085}
.admin-funnel-summary.compact{margin:0!important}

/* ---------- Tabs: one visual line, no accidental second row ---------- */
body[data-route="admin"] .admin-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important;margin:12px 0 16px!important;padding:4px!important;border:1px solid #e7ebf0;border-radius:13px;background:#f5f7f9;overflow:visible!important}
body[data-route="admin"] .admin-tabs button{min-width:0!important;min-height:40px!important;height:40px!important;padding:7px 8px!important;border-radius:9px!important;font-size:11.5px!important;line-height:1.25!important;white-space:nowrap}

/* ---------- Queue heading + filter row ---------- */
.admin-queue-heading{margin:0 0 10px!important;align-items:end!important}
.admin-queue-heading h2{font-size:19px!important;line-height:1.3!important;letter-spacing:-.03em!important}
.admin-queue-heading>div>span{font-size:10.5px!important;letter-spacing:.04em!important}.admin-queue-heading>small{font-size:10.5px!important;color:#7a8696!important}
body[data-route="admin"] #adminTransactions>.admin-filter-grid{display:grid;grid-template-columns:minmax(270px,1.6fr) repeat(3,minmax(125px,.62fr))!important;gap:7px;margin-bottom:11px}
body[data-route="admin"] #adminTransactions>.admin-filter-grid :is(input,select){height:42px;border-radius:10px;padding:0 10px;font-size:11.5px;background:#fff}

/* ---------- Quick action types: compact, not another dashboard ---------- */
.admin-workboard{margin:0 0 13px!important;padding:12px!important;border-radius:14px!important;background:#f8fafc!important}
.admin-workboard-head{align-items:center!important;gap:12px!important}.admin-workboard-head span{font-size:10.5px!important;color:#d14c34!important}.admin-workboard-head h3{margin:1px 0 0!important;font-size:13px!important;line-height:1.4!important}.admin-queue-clear{min-height:34px!important;padding:6px 10px!important;border-radius:8px!important;font-size:10.5px!important}
.admin-workboard-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;margin-top:9px!important}
.admin-workboard-grid>button{grid-template-columns:20px minmax(0,1fr) auto!important;min-height:62px!important;padding:8px 9px!important;border-radius:10px!important;gap:2px 6px!important}
.admin-workboard-grid i{width:20px!important;height:20px!important;border-radius:6px!important;font-size:10px!important}.admin-workboard-grid span{font-size:11px!important;line-height:1.3!important}.admin-workboard-grid b{font-size:16px!important}.admin-workboard-grid small{font-size:9.5px!important;line-height:1.25!important;color:#7a8696!important}.admin-workboard-grid>button.monitor{background:#fcfcfd}

/* ---------- Request lists: scan vertically, one request per row ---------- */
body[data-route="admin"] #adminBody .partner-section{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;margin-top:14px}
body[data-route="admin"] #adminBody .partner-section>.section-heading{margin-bottom:0!important}
body[data-route="admin"] #adminBody .partner-section>.section-heading h2{font-size:16px!important;line-height:1.3!important;letter-spacing:-.025em!important}
body[data-route="admin"] #adminBody .partner-section>.section-heading span{font-size:10.5px!important;line-height:1.4!important}
.admin-request-card{margin:0!important;border:1px solid #e3e8ee!important;border-radius:13px!important;background:#fff!important;overflow:hidden;box-shadow:none!important}
.admin-request-card:hover{border-color:#bccbd9!important}
.admin-request-card>summary.admin-request-summary{display:grid!important;grid-template-columns:minmax(330px,1.4fr) minmax(118px,.42fr) minmax(220px,.78fr)!important;align-items:center!important;gap:10px 16px!important;min-height:76px;padding:11px 14px!important}
.admin-request-summary-main{display:flex!important;align-items:center!important;gap:10px!important;min-width:0}
.admin-request-title-block{display:grid;gap:2px;min-width:0}.admin-request-title-block>b{font-size:14px;line-height:1.35;color:#1d2939;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-request-title-block>small{font-size:10.5px;line-height:1.4;color:#7a8696;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-service-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:43px;height:25px;padding:0 8px;border-radius:8px;font-size:10.5px;line-height:1;font-weight:900;letter-spacing:-.02em}
.admin-service-badge.inspection{background:#edf4ff;color:#245ca6}.admin-service-badge.construction{background:#fff1e9;color:#9a4d22}.admin-service-badge.certificate{background:#eaf8f1;color:#25634a}.admin-service-badge.fireproof{background:#f5efff;color:#6846a5}.admin-service-badge.neutral{background:#f2f4f7;color:#536273}
.admin-request-summary-state{display:grid;gap:2px;justify-items:end;min-width:0;text-align:right}.admin-request-summary-state .admin-status-text{position:relative;padding-left:10px;font-size:10.5px;line-height:1.35;font-weight:850;color:#536273}.admin-request-summary-state .admin-status-text:before{content:'';position:absolute;left:0;top:50%;width:6px;height:6px;border-radius:50%;transform:translateY(-50%);background:#8da2b5}.admin-request-summary-state .admin-status-text.attention{color:#b03b27}.admin-request-summary-state .admin-status-text.attention:before{background:#d84d2f}.admin-request-summary-state>b{font-size:12px;line-height:1.3;color:#d24b32;font-variant-numeric:tabular-nums}.admin-request-summary-state>small{font-size:10px;line-height:1.3;color:#98a2b3}
.admin-request-next{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:5px 8px!important;align-items:center!important;min-width:0;padding:7px 9px;border-left:1px solid #edf1f4;background:#fafbfc;border-radius:8px}.admin-request-next span{font-size:10px!important;line-height:1.2!important;color:#8a96a5!important}.admin-request-next b{font-size:11.5px!important;line-height:1.4!important;color:#173d69!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-request-card[open]>.admin-request-summary{background:#fbfcfd}.admin-request-card-detail{padding:13px 14px 16px!important}
.admin-action-brief{margin-bottom:10px!important;padding:10px 11px!important}.admin-action-brief span{font-size:10.5px!important}.admin-action-brief b{font-size:12.5px!important}.admin-action-brief small{font-size:10.5px!important;line-height:1.5!important}
.admin-request-card-detail>.address{font-size:12px!important;line-height:1.45!important;color:#344054!important}.admin-request-card-detail>.helper{font-size:10.5px!important;line-height:1.45!important}

/* ---------- v5.27 context panels: align typography with compact operations UI ---------- */
.admin-customer-input-compact{margin:9px 0 10px!important;padding:10px 11px!important}.admin-customer-input-compact>div>b{font-size:12px!important}.admin-customer-input-compact>div>span{font-size:11px!important}.admin-customer-input-compact>div>small{font-size:10px!important}
.admin-source-panel{padding:12px!important}.admin-source-panel-head{margin-bottom:8px!important}.admin-source-panel-head b{font-size:12.5px!important}.admin-source-panel-head span:not(.admin-source-tag){font-size:10.5px!important}.admin-answer-row{padding:8px 0!important}.admin-answer-row>span:first-child{font-size:11px!important}.admin-answer-row>b{font-size:11.5px!important}.admin-source-grid span{font-size:10.5px!important}.admin-source-grid b{font-size:11.5px!important}.admin-check-list li{font-size:11.5px!important}

/* ---------- Building confirmation -> service handoff ---------- */
#buildingServiceChoice{scroll-margin-top:88px;outline:none}
#buildingServiceChoice.service-choice-arrived{animation:sobangnetServiceArrive .42s ease both}
@keyframes sobangnetServiceArrive{0%{transform:translateY(5px);opacity:.72}100%{transform:translateY(0);opacity:1}}
.v525-service-choice{margin-top:4px!important;padding-top:6px!important}
.v525-service-choice .building-service-choice-head{gap:6px!important;margin-bottom:3px!important}.v525-service-choice .building-service-choice-head h2{font-size:23px!important;line-height:1.28!important;letter-spacing:-.042em!important}.v525-service-choice .building-service-choice-head p{font-size:13px!important;line-height:1.58!important}
.v525-service-choice .building-service-choice-grid{gap:10px!important;margin-top:12px!important}.v525-service-choice .building-service-option{min-height:0!important;padding:16px 17px!important;border-radius:16px!important}.v525-service-choice .building-service-option.suggested{box-shadow:0 0 0 2px rgba(49,95,158,.18)!important}.v525-service-choice .building-service-option strong{font-size:17px!important;line-height:1.32!important}.v525-service-choice .building-service-option small{font-size:12.5px!important;line-height:1.52!important}.v525-service-choice .building-service-option em{font-size:12px!important;margin-top:4px!important}.service-choice-help{margin-top:2px!important;padding:10px 12px!important;border-radius:11px!important}.service-choice-help b{font-size:11.5px!important}.service-choice-help span{font-size:10.5px!important;line-height:1.45!important}

/* ---------- Responsive ---------- */
@media(max-width:900px){
  body[data-route="admin"] #adminTransactions>.admin-filter-grid{grid-template-columns:1fr 1fr!important}
  body[data-route="admin"] #adminTransactions>.admin-filter-grid input{grid-column:1/-1}
  .admin-request-card>summary.admin-request-summary{grid-template-columns:minmax(0,1fr) auto!important;gap:7px 12px!important}
  .admin-request-next{grid-column:1/-1!important;border-left:0!important;border-top:1px solid #edf1f4!important;grid-template-columns:38px minmax(0,1fr)!important}
  .admin-request-title-block>small{white-space:normal;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
}
@media(max-width:620px){
  body[data-route="admin"] .admin-page>.content{padding-top:12px!important}
  .admin-command-head{margin-bottom:9px}.admin-command-head h1{font-size:23px}.admin-command-head p{font-size:12px;line-height:1.55}
  .admin-overview-strip{grid-template-columns:1fr 1fr;gap:6px}.admin-overview-strip>button{min-height:62px;padding:9px 10px}.admin-overview-strip b{font-size:19px}.admin-overview-utilities{margin-bottom:11px}.admin-insight-detail{margin-left:0}
  body[data-route="admin"] .admin-tabs{display:flex!important;gap:5px!important;overflow-x:auto!important;scrollbar-width:none;padding:4px!important}.admin-tabs::-webkit-scrollbar{display:none}body[data-route="admin"] .admin-tabs button{flex:0 0 102px!important;min-width:102px!important}
  .admin-workboard-head{display:flex!important}.admin-workboard-grid{grid-template-columns:1fr 1fr!important}.admin-workboard-grid>button{min-height:58px!important}.admin-workboard-grid>button.monitor{grid-column:1/-1!important}
  .admin-request-card>summary.admin-request-summary{min-height:0!important;padding:10px 11px!important}.admin-request-title-block>b{font-size:13px}.admin-request-title-block>small{font-size:10px}.admin-service-badge{min-width:40px;height:24px;font-size:10px}.admin-request-summary-state>b{font-size:11px}.admin-request-next{padding:6px 8px!important}.admin-request-next b{font-size:11px!important}
  .admin-request-card-detail{padding:12px!important}
  .v525-service-choice .building-service-option{padding:15px!important}.v525-service-choice .building-service-option strong{font-size:16px!important}.v525-service-choice .building-service-option small{font-size:12px!important}
}
@media(max-width:390px){
  .admin-overview-strip span{font-size:10.5px}.admin-overview-strip small{font-size:9.5px}.admin-workboard{padding:10px!important}.admin-workboard-grid>button{padding:7px!important}.admin-workboard-grid small{display:none}
  .admin-request-summary-main{gap:8px!important}.admin-request-title-block>small{max-width:210px}.admin-request-summary-state .admin-status-text{font-size:10px}.admin-request-next b{white-space:normal;overflow:visible;text-overflow:clip}
}
@media(prefers-reduced-motion:reduce){#buildingServiceChoice.service-choice-arrived{animation:none}}
