/* 시안(html/09_모바일/모바일현황_시안_v0.1.html)의 스타일을 웹앱에 옮긴 것. 모든 규칙은 .m-root 아래에만 적용된다. */
.m-root {
  --ink: #1F2933; --muted: #6B7785; --ok: #26A69A; --warn: #E08A00; --late: #E5534B; --idle: #8A96A3;
  min-height: 100vh; min-height: 100dvh;
  background: var(--mes-page); color: var(--ink);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 14px;
}

/* 상단 바 */
.m-root .appbar { background: var(--mes-navy); color: #fff; padding: 10px 14px 4px; padding-top: max(10px, env(safe-area-inset-top)); position: sticky; top: 0; z-index: 20; }
.m-root .appbar .row { display: flex; align-items: center; justify-content: space-between; }
.m-root .brand { display: flex; align-items: baseline; gap: 6px; }  /* 글자 크기 · 색은 BrandMark.razor.css (mobile) */
.m-root .user { font-size: 12px; color: #BCCBE0; display: flex; align-items: center; gap: 8px; }
.m-root .user form { margin: 0; }
.m-root .user button { background: none; border: 1px solid #3a4a66; color: #BCCBE0; border-radius: 6px; font: inherit; font-size: 11px; padding: 3px 8px; cursor: pointer; min-height: 26px; }
.m-root .appbar .meta2 { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 11px; color: #9fb0c6; }
.m-root .appbar .meta2 .sess { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-root .appbar .meta2 a { color: var(--mes-teal); text-decoration: none; padding: 4px 2px; }
.m-root .pagehead { background: var(--mes-navy); color: #fff; padding: 2px 14px 12px; }
.m-root .pagehead h2 { margin: 6px 0 0; font-size: 19px; }
.m-root .pagehead .sub { font-size: 12px; color: #9fb0c6; margin-top: 2px; }

/* 기간·필터 */
.m-root .filters { background: #fff; border-bottom: 1px solid var(--mes-line); padding: 10px 12px 10px; }
.m-root .chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.m-root .chips::-webkit-scrollbar { display: none; }
.m-root .chip { flex: none; font: inherit; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--mes-line); background: #fff; color: var(--ink); cursor: pointer; }
.m-root .chip.on { background: var(--mes-grid-head); color: #fff; border-color: var(--mes-grid-head); }
.m-root .period { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.m-root .period select, .m-root .period input[type=date] {
  font: inherit; font-size: 13px; color: var(--ink); background: var(--mes-page); border: 1px solid var(--mes-line);
  border-radius: 8px; padding: 6px 6px; min-width: 0; min-height: 34px;
}
.m-root .period select { flex: none; }
.m-root .period input[type=date] { flex: 1; font-variant-numeric: tabular-nums; }
.m-root .period .til { color: var(--muted); font-size: 12px; flex: none; }
.m-root .presets { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.m-root .presets::-webkit-scrollbar { display: none; }
.m-root .preset { flex: none; font: inherit; font-size: 11.5px; padding: 5px 10px; border-radius: 6px; border: 1px dashed var(--mes-line); background: #fff; color: var(--mes-grid-head); cursor: pointer; }
.m-root .preset.on { border-style: solid; border-color: var(--mes-accent); color: var(--mes-accent); font-weight: 700; }
.m-root .search { margin-top: 8px; display: flex; align-items: center; gap: 6px; background: var(--mes-page); border-radius: 8px; padding: 7px 10px; font-size: 13px; color: var(--muted); }
.m-root .search input { border: 0; background: none; font: inherit; font-size: 16px; width: 100%; outline: none; color: var(--ink); min-height: 24px; }

/* 요약 */
.m-root .summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 12px 2px; }
.m-root .sum { background: #fff; border-radius: 10px; padding: 8px 10px; border: 1px solid var(--mes-line); }
.m-root .sum .k { font-size: 11px; color: var(--muted); }
.m-root .sum .v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 1px; }
.m-root .sum .v small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.m-root .sum.late .v { color: var(--late); }
.m-root .sum.warn .v { color: var(--warn); }
.m-root .sum.ok .v { color: var(--ok); }

/* 목록 */
.m-root .list { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.m-root .list.has-tabs { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.m-root .card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; border-radius: 12px; border: 1px solid var(--mes-line); padding: 11px 12px; cursor: pointer; }
.m-root .card:focus-visible { outline: 2px solid var(--mes-accent); outline-offset: 1px; }
.m-root .card.open { border-color: var(--mes-grid-head); box-shadow: 0 0 0 1px var(--mes-grid-head) inset; }
.m-root .card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.m-root .pono { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-root .dday { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--mes-page); color: var(--mes-grid-head); white-space: nowrap; }
.m-root .dday.warn { background: #FFF1D6; color: var(--warn); }
.m-root .dday.late { background: #FDE4E2; color: var(--late); }
.m-root .dday.done { background: #DFF3F0; color: var(--ok); }
.m-root .card .title { font-size: 15px; font-weight: 700; margin: 4px 0 1px; overflow-wrap: anywhere; }
.m-root .card .meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 10px; }
.m-root .card .meta b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.m-root .badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.m-root .badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid; }
.m-root .b-wait { color: var(--idle); border-color: #c9d1d9; background: #f4f6f8; }
.m-root .b-run { color: var(--mes-edit); border-color: #b9dcf7; background: #eef7fe; }
.m-root .b-done { color: var(--ok); border-color: #b5e2db; background: #ecf8f6; }
.m-root .b-late { color: var(--late); border-color: #f5c3bf; background: #fdeeed; }
.m-root .b-part { color: var(--warn); border-color: #f4d79c; background: #fff7e6; }

.m-root .bar { height: 6px; background: #E6EBEF; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.m-root .bar i { display: block; height: 100%; background: var(--mes-accent); border-radius: 99px; }
.m-root .bar.ok i { background: var(--ok); }
.m-root .bar.late i { background: var(--late); }
.m-root .barlab { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* 공정 칸 */
.m-root .steps { display: flex; gap: 3px; margin-top: 9px; }
.m-root .steps i { flex: 1; height: 7px; border-radius: 2px; background: #E1E6EA; }
.m-root .steps i.d { background: var(--ok); }
.m-root .steps i.s { background: #B9C3CC; }
.m-root .steps i.c { background: var(--mes-accent); }

/* 펼친 상세 */
.m-root .detail { margin-top: 10px; border-top: 1px dashed var(--mes-line); padding-top: 9px; }
.m-root .kv { display: grid; grid-template-columns: 76px 1fr; gap: 4px 8px; font-size: 12.5px; margin: 0; }
.m-root .kv dt { color: var(--muted); }
.m-root .kv dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.m-root .mini { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12px; }
.m-root .mini th { text-align: left; background: var(--mes-grid-head); color: #fff; font-weight: 600; padding: 4px 6px; }
.m-root .mini td { padding: 4px 6px; border-bottom: 1px solid #E0E0E0; font-variant-numeric: tabular-nums; }
.m-root .mini td.n, .m-root .mini th.n { text-align: right; }
.m-root .mini tr.cur td { background: #FFF8E6; font-weight: 700; }
.m-root .hint { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.m-root .empty { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0; }

/* 하단 탭 */
.m-root .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(var(--tabs, 3), 1fr); background: #fff; border-top: 1px solid var(--mes-line); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
.m-root .tab { border: 0; background: none; padding: 8px 0 4px; font: inherit; font-size: 11.5px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; text-decoration: none; min-height: 52px; }
.m-root .tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.m-root .tab.on { color: var(--mes-grid-head); font-weight: 700; }
.m-root .tab.on svg { stroke: var(--mes-accent); }
.m-root .ro { position: fixed; right: 12px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 19; font-size: 10.5px; background: rgba(16,24,42,.75); color: #fff; padding: 3px 8px; border-radius: 6px; pointer-events: none; }
.m-root .ro.no-tabs { bottom: calc(12px + env(safe-area-inset-bottom)); }

/* 안내 */
.m-root .notice { padding: 40px 20px; max-width: 420px; margin: 0 auto; text-align: center; }
.m-root .notice h1 { font-size: 18px; margin: 0 0 12px; }
.m-root .notice p { margin: 0 0 20px; color: var(--muted); line-height: 1.5; }
.m-root .notice button { min-height: 44px; padding: 0 22px; font: inherit; color: #fff; cursor: pointer; background: var(--mes-grid-head); border: 0; border-radius: 6px; }
