@charset "utf-8";
/* =====================================================================
 *  만지작 농가 모니터링 — 내용 영역 정리 (2026-11)
 *  - 디자인 시안 B안: 밝은 바탕 · 흰 메뉴 · 청록 포인트 · 그라데이션 머리 띠 없앰
 *  - 기존 SB Admin(styles.css) 위에 마지막으로 로드 → 화면 HTML 구조는 거의 그대로
 *  - 되돌리려면 top_src.php 의 farm.css <link> 한 줄만 지우면 됨
 * ===================================================================== */
:root {
    /* B안 — 밝은 바탕 · 청록 포인트 · 끊김은 주황 (초록/빨강만으로 구분하지 않게) */
    --f-primary: #0B7C8B; --f-primary-h: #08606C; --f-primary-soft: #E2F3F5; --f-primary-line: #A7D7DD;
    --f-teal: #0B7C8B; --f-teal-soft: #E2F3F5;
    --f-bg: #F6F8F9; --f-card: #fff; --f-line: #E4EAEC; --f-line-soft: #EEF2F3; --f-input: #D6E0E3;
    --f-text: #1D2B30; --f-sub: #5D6D73; --f-muted: #6A7A80; --f-soft: #F1F5F6;
    --f-ok: #0B6F7C; --f-ok-soft: #E2F3F5;
    --f-danger: #B23C0B; --f-danger-soft: #FFF4EE; --f-danger-line: #F1C9B8;
    --f-warn: #9A6300; --f-warn-soft: #FFF3DC;
    --f-radius: 16px; --f-side-w: 15rem; --f-top-h: 3.5rem; --f-safe-b: env(safe-area-inset-bottom, 0px);
    --bs-primary: #0B7C8B; --bs-primary-rgb: 11, 124, 139; --bs-link-color: #0B7C8B; --bs-link-hover-color: #08606C;
    --bs-body-bg: #F6F8F9; --bs-body-color: #1D2B30;
    --bs-body-font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
#layoutSidenav_content main { word-break: keep-all; }
#layoutSidenav_content main .container-xl { max-width: 1320px; }


/* ---------------- 카드 ---------------- */
#layoutSidenav_content main .card { border: 1px solid var(--f-line); border-radius: var(--f-radius); box-shadow: 0 2px 10px rgba(33, 40, 50, .06); }
#layoutSidenav_content main .card > .card-header { background: #fff; border-bottom: 1px solid var(--f-line-soft); border-radius: var(--f-radius) var(--f-radius) 0 0; padding: 14px 18px; font-weight: 700; color: var(--f-text); }
#layoutSidenav_content main .card > .card-footer { background: #FAFBFB; border-top: 1px solid var(--f-line-soft); border-radius: 0 0 var(--f-radius) var(--f-radius); }
@media (max-width: 575.98px) { #layoutSidenav_content main .card > .card-body { padding: 14px; } }

/* ---------------- 버튼 — 같은 높이 · 둥근 모서리 · 아이콘과 글자 한 줄 ---------------- */
#layoutSidenav_content main .btn { border-radius: 10px; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#layoutSidenav_content main .btn-sm { min-height: 32px; border-radius: 8px; padding-left: 10px; padding-right: 10px; }
#layoutSidenav_content main .btn-lg { min-height: 50px; border-radius: 12px; }
#layoutSidenav_content main .btn > span.d-sm-block { display: inline !important; }
@media (max-width: 575.98px) {
    #layoutSidenav_content main .btn { min-height: 44px; }
    #layoutSidenav_content main .btn-sm { min-height: 38px; }
    #layoutSidenav_content main .btn > span.d-sm-block { display: none !important; }
}
/* 표 안 작은 버튼(데이터·그래프·일평균)은 진한 색 대신 옅은 색 */
#layoutSidenav_content main .btn-warning { background: var(--f-warn-soft); border-color: #F4D9A6; color: var(--f-warn); }
#layoutSidenav_content main .btn-info { background: var(--f-teal-soft); border-color: #BFE3E8; color: #0E6F7C; }
#layoutSidenav_content main .btn-warning:hover { background: #FDE8BF; color: var(--f-warn); }
#layoutSidenav_content main .btn-info:hover { background: #CDEDF1; color: #0E6F7C; }
#layoutSidenav_content main .btn:focus-visible { box-shadow: 0 0 0 3px rgba(11, 124, 139, .28); }

/* ---------------- 입력 ---------------- */
#layoutSidenav_content main .form-control, #layoutSidenav_content main .form-select { border-radius: 10px; min-height: 42px; border-color: var(--f-input); }
#layoutSidenav_content main .form-control:focus, #layoutSidenav_content main .form-select:focus { border-color: var(--f-primary); box-shadow: 0 0 0 3px rgba(11, 124, 139, .18); }
#layoutSidenav_content main .form-label { font-weight: 600; }

/* ---------------- 표 · DataTables ---------------- */
#layoutSidenav_content main .table { color: var(--f-text); }
#layoutSidenav_content main .table thead th { background: #F7F9FA; color: var(--f-sub); font-size: 13px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
#layoutSidenav_content main .table > :not(caption) > * > * { padding: 10px 12px; vertical-align: middle; }
#layoutSidenav_content main .table-bordered > :not(caption) > * > * { border-color: var(--f-line-soft); }
#layoutSidenav_content main table.dataTable tbody tr:hover > * { background: #F2F8F9; }
#layoutSidenav_content main .dataTables_wrapper .dataTables_length, #layoutSidenav_content main .dataTables_wrapper .dataTables_info { color: var(--f-sub); font-size: 13px; }
#layoutSidenav_content main .dataTables_wrapper .dataTables_length select { min-height: 36px; border: 1px solid var(--f-input); border-radius: 8px; padding: 0 8px; margin: 0 6px; }
#layoutSidenav_content main .dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: 8px !important; }
#layoutSidenav_content main .dataTables_wrapper .dataTables_processing { border-radius: 12px; border: 1px solid var(--f-line); box-shadow: 0 8px 24px rgba(33, 40, 50, .12); }
#layoutSidenav_content main .table-responsive, #layoutSidenav_content main .dataTables_wrapper { -webkit-overflow-scrolling: touch; }

/* ---------------- 창(모달) · 아코디언 ---------------- */
.modal-content { border: 0; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal-header { padding: 16px 20px; }
.modal-header .modal-title { font-weight: 700; }
#msg_popup .modal-dialog { max-width: 380px; }
#msg_popup .modal-body { padding: 18px 22px; font-size: 15px; line-height: 1.6; }
#layoutSidenav_content main .accordion-item { border-radius: 12px; overflow: hidden; margin-bottom: 8px; border: 1px solid var(--f-line); }

/* ---------------- 짧은 안내 (farmToast) ---------------- */
.f-toast-box { position: fixed; left: 50%; bottom: calc(24px + var(--f-safe-b)); z-index: 2000; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.f-toast { display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: #212832; color: #fff; font-size: 14.5px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.f-toast::before { content: "✓"; color: #5BD3A0; font-weight: 800; }
.f-toast.is-warn::before { content: "!"; color: #F2B84B; }
.f-toast.is-on { opacity: 1; transform: none; }

/* =====================================================================
 *  공통 부품 (새로 정돈한 화면에서 씀)
 * ===================================================================== */
/* 상태 표시 */
.f-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.f-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.f-pill.is-ok { background: var(--f-ok-soft); color: var(--f-ok); }
.f-pill.is-off { background: var(--f-danger-soft); color: var(--f-danger); }

/* 숫자 요약 (누르면 거르기) */
.f-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.f-stat { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border: 1px solid var(--f-line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.f-stat span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--f-sub); font-weight: 600; }
.f-stat strong { font-size: 24px; line-height: 1; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; }
.f-stat.is-ok span::before, .f-stat.is-off span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.f-stat.is-ok span::before { background: var(--f-ok); }
.f-stat.is-off span::before { background: var(--f-danger); }
.f-stat.is-off.has-value strong { color: var(--f-danger); }
.f-stat.is-on { border-color: var(--f-primary); box-shadow: 0 0 0 2px rgba(11, 124, 139, .18); }
@media (max-width: 575.98px) {
    .f-stats { gap: 6px; }
    .f-stat { flex-direction: column; align-items: flex-start; padding: 10px 12px; }
    .f-stat span { font-size: 12.5px; }
    .f-stat strong { font-size: 21px; }
}

/* 찾기 · 정렬 · 보기 · 새로고침 줄 */
.f-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f-search { position: relative; flex: 1 1 240px; margin: 0; }
.f-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--f-muted); pointer-events: none; }
.f-search input { width: 100%; height: 42px; padding: 0 12px 0 38px; border: 1px solid var(--f-input); border-radius: 10px; font-size: 15px; }
.f-search input:focus { outline: none; border-color: var(--f-primary); box-shadow: 0 0 0 3px rgba(11, 124, 139, .18); }
#layoutSidenav_content main .f-sort { flex: 0 0 auto; width: auto; min-width: 130px; }
.f-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #EEF2F3; }
.f-seg button { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--f-sub); font-size: 13.5px; font-weight: 600; }
.f-seg button svg { width: 16px; height: 16px; }
.f-seg button.on { background: #fff; color: var(--f-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.f-refresh { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid var(--f-input); border-radius: 10px; background: #fff; color: var(--f-sub); font-size: 13px; white-space: nowrap; }
.f-refresh svg { width: 17px; height: 17px; }
.f-refresh:hover { color: var(--f-primary); border-color: var(--f-primary-line); }
.f-refresh.is-busy svg { animation: f-spin .8s linear infinite; }
@keyframes f-spin { to { transform: rotate(360deg); } }
@media (max-width: 575.98px) {
    .f-search { flex-basis: 100%; }
    #layoutSidenav_content main .f-sort { flex: 1 1 auto; }
    .f-seg button span { display: none; }
    .f-refresh span { display: none; }
}

/* 빈 화면 · 안내 */
.f-empty { padding: 40px 16px; border: 1px dashed var(--f-input); border-radius: var(--f-radius); background: #fff; text-align: center; color: var(--f-sub); }
.f-empty p { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--f-text); }
.f-empty span { font-size: 14px; }
.f-note { margin: 14px 2px 0; font-size: 13px; color: var(--f-muted); }

/* =====================================================================
 *  기본모니터링 — 노드 카드 (html/Default)
 * ===================================================================== */
.f-dm-top { padding: 16px 18px !important; }
.f-dm-top .f-stats { margin-bottom: 12px; }
.f-nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 14px; }
.f-node { display: flex; flex-direction: column; border: 1px solid var(--f-line); border-radius: var(--f-radius); background: #fff; box-shadow: 0 2px 10px rgba(33, 40, 50, .05); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.f-node:hover { border-color: var(--f-primary-line); box-shadow: 0 6px 20px rgba(11, 124, 139, .12); }
.f-node.is-off { border-color: var(--f-danger-line); }
.f-node-main { flex: 1; display: block; padding: 16px 16px 12px; color: inherit; text-decoration: none; }
.f-node-main:hover { color: inherit; }
.f-node-main header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.f-node-nm { min-width: 0; }
.f-node-nm strong { display: block; font-size: 17px; font-weight: 700; color: var(--f-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-node-nm span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--f-muted); }
.f-node-vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.f-node-vals > div { min-width: 0; padding: 9px 10px; border-radius: 10px; background: var(--f-soft); }
.f-node-vals dt { font-size: 12px; font-weight: 500; color: var(--f-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-node-vals dd { margin: 2px 0 0; font-size: 19px; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-node.is-off .f-node-vals > div { background: #F7F7F8; }
.f-node.is-off .f-node-vals dd { color: var(--f-muted); }
.f-node-more { margin: 8px 0 0; font-size: 12.5px; color: var(--f-muted); }
.f-node-novals { margin: 0; padding: 18px 0; text-align: center; font-size: 14px; color: var(--f-muted); }
.f-node-time { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; color: var(--f-sub); }
.f-node-time i { width: 7px; height: 7px; border-radius: 50%; background: var(--f-ok); }
.f-node-time.is-off { color: var(--f-danger); font-weight: 600; }
.f-node-time.is-off i { background: var(--f-danger); }
.f-node-acts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--f-line-soft); }
.f-node-acts a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; color: var(--f-sub); font-size: 14px; font-weight: 600; text-decoration: none; }
.f-node-acts a + a { border-left: 1px solid var(--f-line-soft); }
.f-node-acts a:hover { background: var(--f-primary-soft); color: var(--f-primary); }
.f-node-acts svg { width: 17px; height: 17px; }
/* 불러오는 중 */
.f-node.is-skel { min-height: 210px; padding: 16px; gap: 12px; }
.f-node.is-skel div { border-radius: 8px; background: linear-gradient(90deg, #EEF2F7 25%, #F6F8FB 50%, #EEF2F7 75%); background-size: 200% 100%; animation: f-skel 1.2s ease-in-out infinite; }
.f-node.is-skel div:nth-child(1) { height: 22px; width: 55%; }
.f-node.is-skel div:nth-child(2) { height: 62px; }
.f-node.is-skel div:nth-child(3) { height: 18px; width: 40%; }
@keyframes f-skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .f-node.is-skel div, .f-refresh.is-busy svg { animation: none; } .f-toast { transition: none; } }
@media (max-width: 575.98px) {
    .f-nodes { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .f-node-vals dd { font-size: 18px; }
}

/* 목록 보기 */
.f-nodes.is-list { display: block; }
.f-table-wrap { overflow-x: auto; border: 1px solid var(--f-line); border-radius: var(--f-radius); background: #fff; }
.f-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.f-table th { padding: 11px 14px; background: #F7F9FA; border-bottom: 1px solid var(--f-line); color: var(--f-sub); font-size: 13px; font-weight: 700; text-align: left; white-space: nowrap; }
.f-table td { padding: 11px 14px; border-top: 1px solid var(--f-line-soft); vertical-align: middle; }
.f-table tbody tr:first-child td { border-top: 0; }
.f-table tbody tr:hover td { background: #F5F9FA; }
.f-table tr.is-off td { background: #FFF8F4; }
.f-row-nm { text-decoration: none; color: inherit; }
.f-row-nm strong { display: block; color: var(--f-text); }
.f-row-nm span { font-size: 12.5px; color: var(--f-muted); }
.f-row-time { white-space: nowrap; }
.f-row-time small, .f-row-vals small { display: block; color: var(--f-muted); font-size: 12px; }
.f-row-vals span { display: inline-block; margin: 2px 10px 2px 0; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.f-row-vals em { font-style: normal; font-weight: 500; color: var(--f-sub); font-size: 12.5px; }
.f-row-acts { white-space: nowrap; text-align: right; }
.f-row-acts a { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; margin-left: 4px; border: 1px solid var(--f-line); border-radius: 8px; color: var(--f-sub); font-size: 13px; font-weight: 600; text-decoration: none; }
.f-row-acts a:hover { border-color: var(--f-primary-line); color: var(--f-primary); background: var(--f-primary-soft); }
.f-row-acts svg { width: 15px; height: 15px; }
@media (max-width: 767.98px) { .f-row-acts span { display: none; } .f-table th:nth-child(4), .f-table td:nth-child(4) { display: none; } }

/* =====================================================================
 *  로그인 화면 (login/login.php)
 * ===================================================================== */
.f-brand-logo { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--f-primary); color: #fff; }
.f-brand-logo svg { width: 19px; height: 19px; }
.f-login, .f-login * { box-sizing: border-box; }
body:has(.f-login) { margin: 0; }
.f-pwd { display: block; }
.f-login { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px calc(24px + var(--f-safe-b));
    background: radial-gradient(1200px 600px at 10% -10%, #E2F0F2 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #EAF2F3 0, transparent 55%), var(--f-bg); }
.f-login-box { width: 100%; max-width: 920px; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border: 1px solid var(--f-line); border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(33, 40, 50, .12); }
@media (min-width: 860px) { .f-login-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.f-login-form { padding: 34px 28px 28px; }
@media (min-width: 860px) { .f-login-form { padding: 48px 44px 40px; } }
.f-login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.f-login-brand .f-brand-logo { width: 44px; height: 44px; border-radius: 13px; }
.f-login-brand .f-brand-logo svg { width: 25px; height: 25px; }
.f-login-brand strong { display: block; font-size: 20px; font-weight: 800; color: var(--f-text); }
.f-login-brand div > span { display: block; font-size: 13px; color: var(--f-sub); } /* 로고(span.f-brand-logo)까지 block 으로 바뀌어 잎이 왼쪽 위로 쏠리던 것 수정 */
.f-login h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--f-text); }
.f-login p.f-login-lead { margin: 0 0 22px; color: var(--f-sub); font-size: 14.5px; }
.f-field { display: block; margin-bottom: 14px; }
.f-field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--f-text); }
.f-field input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--f-input); border-radius: 12px; background: #fff; font-size: 17px; color: var(--f-text); }
.f-field input:focus { outline: none; border-color: var(--f-primary); box-shadow: 0 0 0 3px rgba(11, 124, 139, .18); }
.f-field input.is-invalid { border-color: #D64545; background: #FFF7F7; }
.f-pwd { position: relative; }
.f-pwd input { padding-right: 52px; }
.f-pwd button { position: absolute; top: 50%; right: 6px; width: 42px; height: 40px; margin-top: -20px; border: 0; border-radius: 9px; background: transparent; color: var(--f-sub); }
.f-pwd button:hover, .f-pwd button.is-on { background: #EEF2F3; color: var(--f-primary); }
.f-pwd button svg { width: 20px; height: 20px; }
.f-login-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 18px; font-size: 14px; color: var(--f-sub); }
.f-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.f-check input { width: 20px; height: 20px; accent-color: var(--f-primary); }
.f-login-btn { width: 100%; height: 54px; border: 0; border-radius: 13px; background: var(--f-primary); color: #fff; font-size: 17px; font-weight: 800; }
.f-login-btn:hover { background: var(--f-primary-h); }
.f-login-btn:disabled { opacity: .7; }
.f-alert { display: flex; gap: 8px; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--f-danger-soft); border: 1px solid #F0C9C4; color: var(--f-danger); font-size: 14px; font-weight: 600; }
.f-login-help { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--f-line-soft); font-size: 13px; color: var(--f-sub); line-height: 1.6; }
.f-login-side { display: none; position: relative; padding: 44px 40px; background: #0B5F6B; color: #E3EEF7; }
@media (min-width: 860px) { .f-login-side { display: flex; flex-direction: column; justify-content: space-between; } }
.f-login-side h2 { margin: 0 0 10px; font-size: 26px; font-weight: 800; line-height: 1.35; color: #fff; }
.f-login-side p { margin: 0; font-size: 14.5px; color: #D3E3F0; }
.f-login-feats { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.f-login-feats li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 14.5px; color: #F0F6FB; }
.f-login-feats svg { width: 20px; height: 20px; color: #9FE7F0; flex: none; }
.f-login-side small { color: #C2D3E2; font-size: 12px; }


/* 카드 링크 밑줄 없애기 */
.f-node-main, .f-node-main:hover, .f-node-main *, .f-node-acts a, .f-row-acts a, .f-row-nm, .f-row-nm:hover { text-decoration: none !important; }

/* =====================================================================
 *  노드 상세 위쪽 — 노드 목록으로 · 노드 이름 · 데이터 | 그래프 | 일평균 (include/node_tabs.php)
 * ===================================================================== */
.f-nodehead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--f-line); border-radius: var(--f-radius); background: #fff; box-shadow: 0 2px 10px rgba(33, 40, 50, .06); }
.f-back { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px 0 8px; border: 1px solid var(--f-line); border-radius: 10px; color: var(--f-sub); font-size: 14px; font-weight: 600; text-decoration: none !important; }
.f-back:hover { color: var(--f-primary); border-color: var(--f-primary-line); background: var(--f-primary-soft); }
.f-back svg { width: 18px; height: 18px; }
.f-nodehead-nm { flex: 1 1 160px; min-width: 0; line-height: 1.25; }
.f-nodehead-nm strong { display: block; font-size: 18px; font-weight: 800; color: var(--f-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-nodehead-nm span { font-size: 12.5px; color: var(--f-muted); }
.f-tabs { display: inline-flex; padding: 4px; border-radius: 12px; background: #EEF2F3; }
.f-tabs a { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 9px; color: var(--f-sub); font-size: 15px; font-weight: 700; text-decoration: none !important; }
.f-tabs a:hover { color: var(--f-text); }
.f-tabs a.on { background: #fff; color: var(--f-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.f-dup-title { display: none !important; }
@media (max-width: 575.98px) {
    .f-nodehead { padding: 10px; }
    .f-back span { display: none; }
    .f-back { padding: 0 8px; }
    .f-tabs { flex: 1 1 100%; }
    .f-tabs a { flex: 1; justify-content: center; padding: 0 8px; }
}
.f-login { font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: var(--f-text); }
.f-login .f-brand-logo, .f-login .f-brand-logo svg { color: #fff !important; stroke: #fff; }

/* =====================================================================
 *  화면 틀 (B안) — 위쪽 바 · 왼쪽 메뉴 · 제목 줄
 * ===================================================================== */
body { background: var(--f-bg) !important; color: var(--f-text); font-family: var(--bs-body-font-family); letter-spacing: -.01em; }
#layoutSidenav_content { background: var(--f-bg); }
a { color: var(--f-primary); }

/* 위쪽 바 */
.topnav.navbar { height: var(--f-top-h); padding: 0 12px 0 8px; background: #fff !important; box-shadow: none !important; border-bottom: 1px solid var(--f-line); }
.topnav #sidebarToggle { width: 42px; height: 42px; border-radius: 10px; color: var(--f-sub) !important; }
.topnav #sidebarToggle:hover { background: var(--f-soft); }
.topnav .navbar-brand.f-logo { display: inline-flex; align-items: center; gap: 10px; width: auto !important; padding: 0 6px !important; font-size: 16.5px !important; font-weight: 800 !important; color: var(--f-text) !important; }
.f-logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--f-primary); color: #fff; }
.f-logo-mark svg { width: 18px; height: 18px; }
.f-top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.f-top-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; color: var(--f-sub) !important; text-decoration: none; }
.f-top-btn:hover { background: var(--f-soft); }
.f-top-btn svg { width: 21px; height: 21px; }
.f-top-btn em { position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #D9480F; color: #fff; font: 700 10.5px/17px inherit; font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; }
.f-top-btn em:empty { display: none; }
.f-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--f-primary-soft); color: var(--f-primary-h); font-size: 13.5px; font-weight: 800; }
.f-top-user { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border: 1px solid var(--f-line); border-radius: 999px; background: #fff; color: var(--f-text) !important; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.f-top-user::after { display: none !important; }
.topnav .dropdown-menu { border: 1px solid var(--f-line) !important; border-radius: 12px; box-shadow: 0 12px 28px rgba(29, 43, 48, .14) !important; padding: 6px; }
.topnav .dropdown-item { border-radius: 8px; padding: 9px 10px; }
@media (max-width: 575.98px) { .f-top-nm { display: none; } .f-top-user { padding: 0 4px; border: 0; } .topnav .navbar-brand.f-logo span:last-child { font-size: 15px; } }

/* 왼쪽 메뉴 — 흰 바탕, 고른 메뉴는 옅은 청록 알약 */
#layoutSidenav_nav .sidenav { background: #fff !important; box-shadow: none !important; border-right: 1px solid var(--f-line); }
#layoutSidenav_nav .sidenav .sidenav-menu .nav { padding: 12px 12px 20px; gap: 2px; }
#layoutSidenav_nav .sidenav-menu-heading { display: none; }
.f-me { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; padding: 10px; border-radius: 12px; background: var(--f-soft); }
.f-me strong { display: block; font-size: 14.5px; color: var(--f-text); }
.f-me span { display: block; font-size: 12px; color: var(--f-muted); }
#layoutSidenav_nav .sidenav .sidenav-menu .nav .nav-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #3A4A50 !important; font-size: 15px; font-weight: 500; }
#layoutSidenav_nav .sidenav .sidenav-menu .nav .nav-link .nav-link-icon { margin: 0 !important; width: 20px; color: #8A989D !important; }
#layoutSidenav_nav .sidenav .sidenav-menu .nav .nav-link .nav-link-icon svg { width: 18px; height: 18px; }
#layoutSidenav_nav .sidenav .sidenav-menu .nav .nav-link .sidenav-collapse-arrow { display: none; }
#layoutSidenav_nav .sidenav .sidenav-menu .nav .nav-link:hover { background: var(--f-soft); color: var(--f-text) !important; }
#layoutSidenav_nav .sidenav .sidenav-menu .nav .nav-link.active { background: var(--f-primary-soft) !important; color: var(--f-primary-h) !important; font-weight: 700; }
#layoutSidenav_nav .sidenav .sidenav-menu .nav .nav-link.active .nav-link-icon { color: var(--f-primary) !important; }
.f-menu-line { height: 1px; margin: 10px 4px; background: var(--f-line); }
.f-new { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: var(--f-primary); color: #fff; font-size: 10px; font-weight: 800; font-style: normal; line-height: 16px; }
#layoutSidenav_nav #notice_cnt { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #D9480F !important; color: #fff !important; font-size: 11px; }
#layoutSidenav_nav #notice_cnt:empty { display: none; }
#layoutSidenav_nav .sidenav-footer { background: #fff !important; border-top: 1px solid var(--f-line); padding: 10px 12px !important; }
.f-logout { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--f-sub) !important; font-size: 14px; text-decoration: none; }
.f-logout:hover { background: var(--f-soft); color: var(--f-text) !important; }
.f-logout svg { width: 18px; height: 18px; }

/* 제목 줄 — 그라데이션 띠 대신 밝은 바탕 위 큰 제목 */
.page-header, .page-header.page-header-dark, .page-header.bg-gradient-primary-to-secondary { background: transparent !important; color: var(--f-text) !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
.page-header .page-header-content { padding-top: 26px !important; padding-bottom: 18px !important; }
.page-header .page-header-content > .row, .page-header .page-header-content .row { margin: 0; }
.page-header .page-header-content .page-header-title { margin: 0; font-size: 1.75rem !important; font-weight: 800 !important; letter-spacing: -.02em; color: var(--f-text) !important; }
.page-header .page-header-content .page-header-title .page-header-icon { display: none; }
.page-header .page-header-content .page-header-subtitle { margin-top: 4px !important; font-size: 14px !important; font-weight: 400 !important; color: var(--f-sub) !important; opacity: 1 !important; }
.page-header-dark .text-white, .page-header-dark .text-white-50 { color: var(--f-sub) !important; }
.mt-n10 { margin-top: 0 !important; }
.pb-10 { padding-bottom: 0 !important; }
.node_contents, .page-header .node_contents { padding-left: 0 !important; }
.page-header .ms-2 { margin-left: 0 !important; }
/* 날씨 — 오른쪽 둥근 칩 */
.js-weather:empty { display: none; }
.page-header .js-weather { display: flex; justify-content: flex-end; }
.js-weather .float-end { float: none !important; display: inline-flex !important; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 6px; border: 1px solid var(--f-line); border-radius: 999px; background: #fff; }
.js-weather .w-30px { width: 28px; height: 28px; }
.js-weather .wether_temp { color: var(--f-text) !important; font-size: 17px; font-weight: 800; }
.js-weather .text-gray-400, .js-weather .updated-at { color: var(--f-sub) !important; font-size: 12.5px !important; font-weight: 500 !important; }
@media (max-width: 575.98px) {
    .page-header .page-header-content { padding-top: 18px !important; padding-bottom: 12px !important; }
    .page-header .page-header-content .page-header-title { font-size: 1.4rem !important; }
    .page-header .page-header-content .page-header-subtitle { font-size: 13px !important; }
    .page-header .js-weather .flex-grow-1 { display: none !important; }
}
.footer-admin { height: auto !important; padding: 18px 0 22px; color: var(--f-muted) !important; font-size: 12.5px; background: transparent !important; }
#layoutSidenav_content main .card { box-shadow: none; }
#layoutSidenav_content main .btn-primary { background: var(--f-primary); border-color: var(--f-primary); }
#layoutSidenav_content main .btn-primary:hover { background: var(--f-primary-h); border-color: var(--f-primary-h); }
#layoutSidenav_content main .nav-tabs .nav-link.active { color: var(--f-primary); }

/* =====================================================================
 *  기본모니터링 (B안) — 상태 칩 · 큰 숫자 카드
 * ===================================================================== */
.f-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.f-head-main { min-width: 0; flex: 1 1 320px; }
.f-head-side { flex: 0 0 auto; }
.f-dm-bar { margin-bottom: 16px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-right: 4px; }
.f-chip { height: 40px; padding: 0 16px; border: 1px solid var(--f-input); border-radius: 999px; background: #fff; color: #3A4A50; font-size: 14.5px; font-weight: 600; }
.f-chip b { margin-left: 2px; font-weight: 800; }
.f-chip:hover { border-color: #B9C8CC; }
.f-chip.on { background: var(--f-text); border-color: var(--f-text); color: #fff; }
.f-chip.is-off.has-value { border-color: var(--f-danger-line); background: var(--f-danger-soft); color: var(--f-danger); }
.f-chip.is-off.has-value.on { background: var(--f-danger); border-color: var(--f-danger); color: #fff; }
.f-chip:focus-visible { outline: 2px solid var(--f-primary); outline-offset: 2px; }
.f-dm-bar .f-search { flex: 0 1 280px; margin-left: auto; }
@media (max-width: 767.98px) { .f-dm-bar .f-search { flex: 1 1 100%; margin-left: 0; order: 5; } }

.f-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.f-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.f-state.is-ok { color: var(--f-ok); }
.f-state.is-off { color: var(--f-danger); }

.f-nodes { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 16px; margin-top: 0; }
.f-node { border-radius: var(--f-radius); box-shadow: none; }
.f-node:hover { border-color: var(--f-primary-line); box-shadow: 0 6px 20px rgba(29, 43, 48, .07); }
.f-node.is-off { border-color: var(--f-danger-line); }
.f-node-main { padding: 20px 20px 14px; }
.f-node-main header { align-items: center; margin-bottom: 16px; }
.f-node-nm { display: flex; align-items: baseline; gap: 8px; }
.f-node-nm strong { font-size: 18px; }
.f-node-nm span { margin: 0; font-size: 13px; }
.f-node-vals { gap: 12px 16px; }
.f-node-vals > div { padding: 0; background: none !important; }
.f-node-vals dt { font-size: 13px; color: var(--f-sub); }
.f-node-vals dd { margin-top: 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.f-node-vals dd small { margin-left: 2px; font-size: 16px; font-weight: 600; color: var(--f-muted); letter-spacing: 0; }
.f-node.is-off .f-node-vals dd { color: #8A989D; }
.f-node-warn { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--f-danger-soft); color: #8A3208; font-size: 13px; }
.f-node-time { display: none; }
.f-node-acts { display: flex; gap: 8px; padding: 0 20px 18px; border-top: 0; }
.f-node-acts a { flex: 1; height: 42px; border-radius: 10px; background: var(--f-soft); color: #3A4A50; }
.f-node-acts a + a { border-left: 0; }
.f-node-acts a.is-main { background: var(--f-primary-soft); color: var(--f-primary-h); font-weight: 700; }
.f-node-acts a:hover { background: #E6EEF0; color: var(--f-text); }
.f-node-acts a.is-main:hover { background: #CDEAEE; color: var(--f-primary-h); }
.f-node.is-skel { min-height: 230px; }
@media (max-width: 575.98px) {
    .f-nodes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .f-node-main { padding: 16px 16px 12px; }
    .f-node-acts { padding: 0 16px 16px; }
    .f-node-vals dd { font-size: 28px; }
}
.f-row-vals small.u { margin-left: 1px; font-size: 12px; color: var(--f-muted); font-weight: 600; }

/* 내용 영역 버튼 색 (B안) */
#layoutSidenav_content main .btn-secondary, #layoutSidenav_content main .btn-dark { background: #3A4A50; border-color: #3A4A50; color: #fff; }
#layoutSidenav_content main .btn-secondary:hover, #layoutSidenav_content main .btn-dark:hover { background: #1D2B30; border-color: #1D2B30; color: #fff; }
#layoutSidenav_content main .btn-success { background: var(--f-primary); border-color: var(--f-primary); color: #fff; }
#layoutSidenav_content main .btn-success:hover { background: var(--f-primary-h); border-color: var(--f-primary-h); }
#layoutSidenav_content main .btn-primary-soft, #layoutSidenav_content main .btn-primary-soft.text-primary { background: var(--f-primary-soft); border-color: transparent; color: var(--f-primary-h) !important; }
#layoutSidenav_content main .btn-outline-secondary { border-color: var(--f-input); color: #3A4A50; background: #fff; }
#layoutSidenav_content main .btn-outline-secondary:hover { background: var(--f-soft); color: var(--f-text); }
#layoutSidenav_content main .badge.bg-success, #layoutSidenav_content main .badge.bg-primary { background: var(--f-primary-soft) !important; color: var(--f-primary-h) !important; }
#layoutSidenav_content main .text-primary { color: var(--f-primary) !important; }
#layoutSidenav_content main .bg-primary-soft { background: var(--f-primary-soft) !important; }
.page-header .page-header-content .page-header-subtitle { display: block !important; }

/* =====================================================================
 *  기본모니터링 수정 (11-04 오후)
 * ===================================================================== */
/* 1) 좌우 여백 줄이고 넓게 */
#layoutSidenav_content .container-xl { max-width: none !important; padding-left: 28px !important; padding-right: 28px !important; }
@media (min-width: 1800px) { #layoutSidenav_content .container-xl { padding-left: 40px !important; padding-right: 40px !important; } }
@media (max-width: 575.98px) { #layoutSidenav_content .container-xl { padding-left: 12px !important; padding-right: 12px !important; } }
.f-nodes { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
@media (max-width: 575.98px) { .f-nodes { grid-template-columns: minmax(0, 1fr); } }

/* 5) 항목 이름 크게 */
.f-node-vals dt { font-size: 15px; font-weight: 600; color: #4E5E64; }
.f-node-vals dd small { font-size: 17px; }
.f-row-vals em { font-size: 13.5px; }

/* 2) 날씨 — 날짜·요일 / 날씨 / 체감·습도·바람 */
.js-weather .f-wx { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border: 1px solid var(--f-line); border-radius: 14px; background: #fff; }
.f-wx-date { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-right: 14px; border-right: 1px solid var(--f-line); }
.f-wx-date strong { font-size: 15px; font-weight: 800; color: var(--f-text); white-space: nowrap; }
.f-wx-date .updated-at { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--f-muted) !important; font-size: 12.5px !important; cursor: pointer; white-space: nowrap; }
.f-wx-date .updated-at svg { width: 13px; height: 13px; }
.f-wx-date .updated-at:hover { color: var(--f-primary) !important; }
.f-wx-now { display: flex; align-items: center; gap: 4px; }
.f-wx-now img { width: 44px; height: 44px; margin: -6px -2px; }
.f-wx-now b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--f-text); }
.f-wx-now b small { font-size: 13px; font-weight: 600; color: var(--f-muted); }
.f-wx-now span { display: block; font-size: 12.5px; color: var(--f-sub); white-space: nowrap; }
.f-wx-meta { display: flex; gap: 14px; margin: 0; padding-left: 14px; border-left: 1px solid var(--f-line); }
.f-wx-meta div { min-width: 0; }
.f-wx-meta dt { font-size: 12px; font-weight: 500; color: var(--f-muted); }
.f-wx-meta dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--f-text); white-space: nowrap; }
@media (max-width: 991.98px) { .f-wx-meta { display: none; } }
@media (max-width: 575.98px) {
    .page-header .f-head-side { flex: 1 1 100%; }
    .js-weather .f-wx { width: 100%; justify-content: space-between; padding: 8px 12px; }
}

/* 3) 카드 아래 [통계] 버튼 */
.f-node-acts button, .f-row-acts button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border: 0; border-radius: 10px; background: var(--f-soft); color: #3A4A50; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.f-node-acts button:hover { background: #E6EEF0; color: var(--f-text); }
.f-node-acts button svg, .f-row-acts button svg { width: 17px; height: 17px; }
.f-row-acts button { display: inline-flex; flex: none; height: 34px; padding: 0 10px; margin-left: 4px; border: 1px solid var(--f-line); background: #fff; font-size: 13px; }
.f-row-acts button:hover { border-color: var(--f-primary-line); color: var(--f-primary); background: var(--f-primary-soft); }
@media (max-width: 767.98px) { .f-row-acts button span { display: none; } }

/* 통계 창 (오른쪽에서 / 폰은 아래에서) */
html.f-lock, html.f-lock body { overflow: hidden; }
.f-sheet { position: fixed; inset: 0; z-index: 1060; }
.f-sheet[hidden] { display: none; }
.f-sheet-dim { position: absolute; inset: 0; background: rgba(15, 25, 28, .45); }
.f-sheet-box { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); display: flex; flex-direction: column; background: var(--f-bg); box-shadow: -12px 0 32px rgba(0, 0, 0, .18); animation: f-in-r .2s ease; }
@keyframes f-in-r { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.f-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px 20px 14px; background: #fff; border-bottom: 1px solid var(--f-line); }
.f-sheet-head h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--f-text); }
.f-sheet-head p { margin: 4px 0 0; font-size: 13px; color: var(--f-sub); }
.f-sheet-x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--f-sub); font-size: 18px; }
.f-sheet-x:hover { background: var(--f-soft); }
.f-sheet-body { flex: 1; overflow-y: auto; padding: 16px 20px; -webkit-overflow-scrolling: touch; }
.f-sheet-foot { display: flex; gap: 8px; padding: 12px 20px calc(12px + var(--f-safe-b)); background: #fff; border-top: 1px solid var(--f-line); }
.f-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 44px; border-radius: 11px; background: var(--f-soft); color: #3A4A50 !important; font-size: 15px; font-weight: 700; text-decoration: none !important; }
.f-btn.is-main { background: var(--f-primary); color: #fff !important; }
.f-btn:hover { filter: brightness(.97); }
.f-stats-list { display: flex; flex-direction: column; gap: 12px; }
.f-st { padding: 14px 16px; border: 1px solid var(--f-line); border-radius: 14px; background: #fff; }
.f-st-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.f-st-head strong { font-size: 16px; font-weight: 800; color: var(--f-text); }
.f-spark { width: 120px; height: 34px; flex: none; }
.f-spark polyline { fill: none; stroke: var(--f-primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.f-spark-none { font-size: 12px; color: var(--f-muted); }
.f-st-now { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.f-st-now span { font-size: 13px; color: var(--f-sub); }
.f-st-now b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--f-text); }
.f-st-now b small, .f-st-grid dd small { margin-left: 2px; font-size: 13px; font-weight: 600; color: var(--f-muted); }
.f-st-now em { font-style: normal; font-size: 12.5px; color: var(--f-muted); }
.f-st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.f-st-grid > div { padding: 8px 10px; border-radius: 10px; background: var(--f-soft); min-width: 0; }
.f-st-grid dt { font-size: 12.5px; font-weight: 600; color: var(--f-sub); }
.f-st-grid dd { margin: 2px 0 0; font-size: 17px; font-weight: 800; color: var(--f-text); white-space: nowrap; }
.f-st-grid dd em { display: block; font-style: normal; font-size: 12px; font-weight: 500; color: var(--f-muted); }
.f-diff { display: block; font-size: 12px; font-weight: 700; color: var(--f-muted); }
.f-diff.up { color: #B23C0B; }
.f-diff.down { color: #1F5C99; }
@media (max-width: 575.98px) {
    .f-sheet-box { top: auto; left: 0; width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 18px 18px 0 0; animation-name: f-in-b; }
    @keyframes f-in-b { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
    .f-st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .f-sheet-box { animation: none; } }

/* =====================================================================
 *  기본모니터링 3차 (11-05) — 아바타 · 가운데 정렬 · 상태 배지 · 톤 낮춤 · 주/야간 통계
 * ===================================================================== */
/* 전체 톤: 바탕을 조금 내리고 카드와 구분, 숫자는 덜 튀게 */
:root { --f-bg: #EDF1F2; --f-line: #DCE4E6; --f-text: #22333A; --f-sub: #536369; --f-muted: #7C8B90; }
body, #layoutSidenav_content { background: var(--f-bg) !important; }
.page-header-title { color: #22333A !important; }

/* 1) 왼쪽 메뉴 농가 이름 앞 글자 — 가운데로 */
.f-me .f-avatar { display: inline-flex; width: 36px; height: 36px; font-size: 15px; line-height: 1; color: var(--f-primary-h); }
.f-me > div { min-width: 0; }
.f-me > div strong, .f-me > div span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 2) 카드: 값은 가운데, 위아래도 가운데 */
.f-node { border-color: var(--f-line); box-shadow: 0 1px 2px rgba(20, 35, 40, .04); }
.f-node-main { display: flex; flex-direction: column; padding: 18px 20px 16px; }
.f-node-main header { margin-bottom: 14px; }
.f-node-nm strong { font-size: 17.5px; font-weight: 700; color: #22333A; }
.f-node-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.f-node-vals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 6px 0; border-radius: 12px; background: #F5F8F9 !important; }
.f-node-vals.n1 { grid-template-columns: minmax(0, 1fr); }
.f-node-vals.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-node-vals > div { padding: 10px 6px !important; text-align: center; position: relative; }
.f-node-vals > div + div::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: #E1E8EA; }
.f-node-vals.n3 > div:nth-child(3n+1)::before, .f-node-vals.n2 > div:nth-child(2n+1)::before { display: none; }
.f-node-vals dt { font-size: 14.5px; font-weight: 600; color: #4A5A60; }
.f-node-vals dd { margin-top: 4px; font-size: 29px; font-weight: 700; color: #22333A; letter-spacing: -.02em; line-height: 1.1; }
.f-node-vals dd small { font-size: 14px; font-weight: 500; color: #84949A; }
.f-node.is-off .f-node-vals { background: #F6F6F6 !important; }
.f-node.is-off .f-node-vals dd { color: #8E989B; }
.f-node-more { text-align: center; margin-top: 8px; }
.f-node-warn { text-align: center; }
@media (max-width: 575.98px) { .f-node-vals dd { font-size: 25px; } .f-node-vals dt { font-size: 13.5px; } }

/* 3) 상태 · 받은 시각 — 테두리 배지 */
.f-state { gap: 6px; height: 28px; padding: 0 11px; border: 1px solid; border-radius: 999px; font-size: 13px; font-weight: 600; }
.f-state::before { width: 7px; height: 7px; }
.f-state.is-ok { color: #0A6875; border-color: #A9D6DC; background: #EAF6F7; }
.f-state.is-off { color: #A43A10; border-color: #EDC3B1; background: #FFF3ED; }
.f-state i { font-style: normal; font-weight: 500; opacity: .85; }
.f-state i::before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 7px 0 1px; background: currentColor; opacity: .35; vertical-align: -1px; }
.f-table .f-state { height: 26px; }

/* 아래 버튼 — 톤 낮춤 */
.f-node-acts { gap: 8px; padding: 0 20px 18px; border-top: 0; }
.f-node-acts a, .f-node-acts button { height: 40px; border-radius: 10px; background: #F1F5F6; color: #44545A; font-size: 14px; }
.f-node-acts a + a { border-left: 0; }
.f-node-acts a.is-main { background: #E3F1F3; color: #0A6875; }
.f-node-acts a:hover, .f-node-acts button:hover { background: #E6EDEF; color: #22333A; }

/* ── 통계 창 (주간 · 야간 · 일평균 · 편차) ── */
.f-sheet-box { width: min(980px, 100vw); }
.f-sheet-body { padding: 16px 20px 20px; }
.f-dn-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.f-dn-ctl label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--f-sub); }
.f-dn-ctl select { height: 38px; min-width: 140px; padding: 0 30px 0 12px; border: 1px solid var(--f-input); border-radius: 10px; background-color: #fff; font-size: 14px; }
.f-dn-ctl .f-seg button { height: 34px; }
.f-dn-ctl .f-dn-gap { flex: 1; }
.f-dn-range { font-size: 13.5px; color: var(--f-sub); }
.f-dn-range b { color: var(--f-text); }
.f-dn-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.f-dn-sum > div { padding: 12px 14px; border: 1px solid var(--f-line); border-radius: 12px; background: #fff; }
.f-dn-sum dt { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--f-sub); }
.f-dn-sum dt svg { width: 15px; height: 15px; }
.f-dn-sum dd { margin: 4px 0 0; font-size: 25px; font-weight: 700; color: var(--f-text); letter-spacing: -.02em; }
.f-dn-sum dd small { margin-left: 2px; font-size: 13px; font-weight: 500; color: var(--f-muted); }
.f-dn-sum p { margin: 2px 0 0; font-size: 12px; color: var(--f-muted); }
.f-dn-sum .is-day { background: #FDF7EC; border-color: #EED9B5; } .f-dn-sum .is-day dt { color: #9A6514; }
.f-dn-sum .is-night { background: #F1F4FA; border-color: #CCD6E8; } .f-dn-sum .is-night dt { color: #3A5585; }
.f-dn-up { color: #B23C0B !important; } .f-dn-down { color: #2B5FA8 !important; }
.f-dn-chart { padding: 10px 12px 6px; border: 1px solid var(--f-line); border-radius: 12px; background: #fff; margin-bottom: 14px; }
.f-dn-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; margin: 0 0 4px; font-size: 12.5px; color: var(--f-sub); }
.f-dn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.f-dn-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.f-dn-legend i.ln { height: 3px; border-radius: 2px; }
.f-dn-legend i.dash { height: 0; border-top: 2px dashed #B23C0B; border-radius: 0; background: none !important; }
.f-dn-svg { display: block; width: 100%; height: auto; }
.f-dn-svg text { font-size: 11px; fill: #7C8B90; font-family: inherit; }
.f-dn-svg .gl { stroke: #EEF2F3; } .f-dn-svg .zl { stroke: #D5DDE0; }
.f-dn-tbl-wrap { overflow-x: auto; border: 1px solid var(--f-line); border-radius: 12px; background: #fff; }
.f-dn-tbl { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.f-dn-tbl th { padding: 10px 8px; border-bottom: 1px solid var(--f-line); background: #F6F8F9; color: var(--f-sub); font-weight: 700; text-align: center; white-space: nowrap; }
.f-dn-tbl td { padding: 9px 8px; border-bottom: 1px solid #EEF2F3; text-align: center; color: var(--f-text); white-space: nowrap; }
.f-dn-tbl tr:last-child td { border-bottom: 0; }
.f-dn-tbl .c-day { background: #FFFBF3; } .f-dn-tbl .c-night { background: #F6F8FC; }
.f-dn-tbl th.c-day { color: #9A6514; } .f-dn-tbl th.c-night { color: #3A5585; }
.f-dn-tbl .sun { color: #C0392B; } .f-dn-tbl .sat { color: #2B5FA8; }
.f-dn-tbl .t { color: var(--f-muted); }
.f-dn-tbl b { font-weight: 700; }
.f-dn-part { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: #EEF2F3; color: var(--f-muted); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.f-dn-note { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.6; color: var(--f-muted); }
@media (max-width: 767.98px) {
    .f-dn-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .f-dn-sum dd { font-size: 21px; }
    .f-dn-ctl .f-dn-gap { display: none; }
    .f-dn-ctl select { min-width: 0; flex: 1; }
    .f-dn-ctl label { flex: 1 1 100%; }
}
@media (max-width: 575.98px) { .f-sheet-box { max-height: 94vh; max-height: 94dvh; } }
.f-sheet-body.is-busy { opacity: .55; pointer-events: none; transition: opacity .15s; }
@media (max-width: 767.98px) { .f-dn-chart { overflow-x: auto; } .f-dn-svg { min-width: 640px; } .f-dn-legend { justify-content: flex-start; min-width: 600px; } }

/* =====================================================================
 *  11-05 오후 — 목록형 · 노드 상세(노드 고르기 · 통계 탭 · 도구 버튼) · 머리 정렬 · 쪽번호
 * ===================================================================== */
/* [목록형] 최근 값: 항목 이름 위, 수치+단위 아래 — 칸 맞춰서 */
.f-table td.f-row-vals { padding-top: 8px; padding-bottom: 8px; }
.f-row-vals > div { display: flex; flex-wrap: wrap; gap: 6px; }
.f-row-vals .f-rv { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 88px; margin: 0; padding: 5px 10px; border-radius: 9px; background: #F3F6F7; white-space: nowrap; line-height: 1.2; }
.f-row-vals .f-rv em { display: block; font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--f-sub); }
.f-row-vals .f-rv b { display: block; margin-top: 1px; font-size: 16px; font-weight: 700; color: var(--f-text); font-variant-numeric: tabular-nums; }
.f-row-vals .f-rv b small { display: inline; margin-left: 2px; font-size: 12px; font-weight: 500; color: var(--f-muted); }
.f-row-vals .f-rv-more { display: inline-flex; align-items: center; padding: 0 10px; border-radius: 9px; background: #F3F6F7; color: var(--f-muted); font-size: 12.5px; font-weight: 600; }
tr.is-off .f-row-vals .f-rv { background: #F6F2EF; }
tr.is-off .f-row-vals .f-rv b { color: #8E989B; }
.f-row-nm strong { font-size: 15px; }
/* [목록형] 버튼 — 카드형과 같은 색 */
.f-row-acts a, .f-row-acts button { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; margin-left: 6px; border: 0 !important; border-radius: 9px; background: #F1F5F6; color: #44545A; font-size: 13.5px; font-weight: 600; }
.f-row-acts a.is-main { background: #E3F1F3; color: #0A6875; }
.f-row-acts a:hover, .f-row-acts button:hover { background: #E6EDEF !important; color: #22333A !important; }
@media (max-width: 767.98px) { .f-row-acts a, .f-row-acts button { padding: 0 10px; margin-left: 4px; } }

/* 머리(제목 · 날씨) — 오른쪽 끝을 아래 내용과 맞춤 (기존 화면의 중첩 row 여백 없앰) */
.page-header .page-header-content .row { margin-left: 0 !important; margin-right: 0 !important; --bs-gutter-x: 0; }
.page-header .page-header-content .row > * { padding-left: 0 !important; padding-right: 0 !important; }
.page-header .page-header-content > .row > .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.page-header .page-header-content > .row > .row > * { width: auto; flex: 0 1 auto; max-width: 100%; }
.page-header .js-weather { justify-content: flex-end; }
@media (max-width: 575.98px) { .page-header .page-header-content > .row > .row > *, .page-header .js-weather, .page-header .js-weather .f-wx { width: 100%; } }

/* 노드 상세 — 노드 고르기 */
.f-nodepick { position: relative; flex: 0 1 auto; display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; height: 46px; margin: 0; padding: 0 12px 0 14px; border: 1px solid var(--f-line); border-radius: 11px; background: #fff; cursor: pointer; }
.f-nodepick:focus-within { border-color: var(--f-primary-line); }
@media (hover: hover) { .f-nodepick:hover { border-color: var(--f-primary-line); background: var(--f-primary-soft); } }
.f-nodepick-nm { min-width: 0; line-height: 1.2; }
.f-nodepick-nm strong { display: block; font-size: 17px; font-weight: 800; color: var(--f-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-nodepick-nm span { display: block; font-size: 12px; color: var(--f-muted); }
.f-nodepick > svg { width: 18px; height: 18px; flex: none; color: var(--f-sub); }
.f-nodepick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.f-nodehead .f-tabs { margin-left: auto; }
@media (max-width: 767.98px) { .f-nodepick { flex: 1 1 0; } .f-nodehead .f-tabs { margin-left: 0; } }

/* 노드 상세 — 기간 · 검색 · 새로고침 · 엑셀 한 줄 */
.f-dt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 16px; }
.f-dt-range, .f-dt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f-range { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--f-input); border-radius: 10px; background: #fff; color: var(--f-text); font-size: 14.5px; font-variant-numeric: tabular-nums; cursor: pointer; white-space: nowrap; }
.f-range:hover { border-color: var(--f-primary-line); }
.f-range svg { width: 17px; height: 17px; color: var(--f-sub); flex: none; }
.f-range .f-range-dn { width: 15px; height: 15px; }
.f-tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--f-line); border-radius: 10px; background: #fff; color: #3A4A50; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.f-tbtn svg { width: 17px; height: 17px; }
.f-tbtn:hover { border-color: var(--f-primary-line); background: var(--f-primary-soft); color: var(--f-primary); }
.f-tbtn.is-main { border-color: var(--f-primary); background: var(--f-primary); color: #fff; }
.f-tbtn.is-main:hover { background: var(--f-primary-h); color: #fff; }
@media (max-width: 575.98px) {
    .f-dt-range { flex: 1 1 100%; } .f-range { flex: 1; min-width: 0; font-size: 13.5px; } .f-range span { overflow: hidden; text-overflow: ellipsis; }
    .f-dt-tools { flex: 1 1 100%; } .f-dt-tools .f-tbtn { flex: 1; }
}

/* 표 아래 쪽번호 — 표와 띄우고 번호끼리도 띄움 */
#layoutSidenav_content main .dataTables_wrapper .dataTables_info { padding-top: 18px !important; color: var(--f-muted); font-size: 13px; }
#layoutSidenav_content main .dataTables_wrapper .dataTables_paginate { padding-top: 14px !important; }
#layoutSidenav_content main .dataTables_wrapper .dataTables_paginate .pagination { gap: 6px; margin: 0; }
#layoutSidenav_content main .dataTables_wrapper .dataTables_paginate .page-link,
#layoutSidenav_content main .dataTables_wrapper .dataTables_paginate .paginate_button { min-width: 36px; height: 36px; display: inline-flex !important; align-items: center; justify-content: center; margin: 0 3px !important; padding: 0 10px !important; border: 1px solid var(--f-line) !important; border-radius: 9px !important; background: #fff !important; color: var(--f-sub) !important; font-size: 14px; font-weight: 600; box-shadow: none !important; }
#layoutSidenav_content main .dataTables_wrapper .dataTables_paginate .page-item .page-link { margin: 0 !important; }
#layoutSidenav_content main .dataTables_wrapper .dataTables_paginate .active .page-link,
#layoutSidenav_content main .dataTables_wrapper .dataTables_paginate .paginate_button.current { border-color: var(--f-primary) !important; background: var(--f-primary) !important; color: #fff !important; }
#layoutSidenav_content main .dataTables_wrapper .dataTables_paginate .disabled .page-link,
#layoutSidenav_content main .dataTables_wrapper .dataTables_paginate .paginate_button.disabled { opacity: .45; }

/* 노드 상세 [통계] 화면 */
.f-stpage { padding: 18px 20px 20px; border: 1px solid var(--f-line); border-radius: var(--f-radius); background: #fff; }
.f-stpage-head { margin-bottom: 14px; }
.f-stpage-head h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--f-text); }
.f-stpage-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--f-sub); }
#stBody.is-busy { opacity: .55; pointer-events: none; }
@media (max-width: 575.98px) { .f-stpage { padding: 14px 12px; } }
.f-range span { font-size: 14.5px; letter-spacing: 0; }
.f-row-nm strong { white-space: nowrap; }
@media (max-width: 575.98px) {
    .f-table th, .f-table td { padding-left: 8px; padding-right: 8px; }
    .f-table th:nth-child(3), .f-table td:nth-child(3) { display: none; }
    .f-row-nm strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; display: block; }
    .f-row-acts a, .f-row-acts button { width: 36px; padding: 0; justify-content: center; margin-left: 3px; }
}
@media (max-width: 575.98px) {
    .f-dt-range { flex-wrap: nowrap; min-width: 0; }
    .f-range span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; }
    .f-dt-range .f-tbtn { flex: none; padding: 0 12px; }
}

/* =====================================================================
 *  11-05 — 노드 상세 데이터: 노드 목록 링크 · 기간 버튼 · 가로 스크롤 표
 * ===================================================================== */
/* ← 노드 목록으로: 상자 위 작은 링크 */
.f-crumb { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 8px 2px; color: var(--f-sub); font-size: 14px; font-weight: 600; text-decoration: none !important; }
.f-crumb svg { width: 16px; height: 16px; }
.f-crumb:hover { color: var(--f-primary); }
.f-nodehead { padding: 10px 12px; }
.f-nodepick { height: 50px; border-color: transparent; padding-left: 10px; }
.f-nodepick-nm strong { font-size: 19px; }

/* 기간: 버튼으로 바로 */
.f-dt-bar { margin-bottom: 10px; }
.f-period { display: flex; flex-wrap: wrap; gap: 6px; }
.f-period button { height: 38px; padding: 0 14px; border: 1px solid var(--f-line); border-radius: 999px; background: #fff; color: #3A4A50; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.f-period button:hover { border-color: var(--f-primary-line); color: var(--f-primary); }
.f-period button.on { border-color: #22333A; background: #22333A; color: #fff; }
.f-period button[data-p=custom] { border-style: dashed; }
.f-period button[data-p=custom].on { border-style: solid; }
.f-per-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--f-line); border-radius: 12px; background: #F6F8F9; }
.f-per-custom[hidden] { display: none; }
.f-per-custom label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--f-sub); }
.f-per-custom input { height: 40px; padding: 0 10px; border: 1px solid var(--f-input); border-radius: 10px; background: #fff; color: var(--f-text); font-size: 15px; font-variant-numeric: tabular-nums; }
.f-per-sep { padding-bottom: 10px; color: var(--f-muted); }
.f-per-now { margin: 0 0 10px 2px; font-size: 14px; color: var(--f-sub); }
.f-per-now b { color: var(--f-text); }
.f-per-hint { margin-left: 6px; color: var(--f-muted); font-size: 12.5px; }
@media (max-width: 767.98px) {
    .f-period { flex-wrap: nowrap; overflow-x: auto; margin: 0 -2px; padding: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .f-period::-webkit-scrollbar { display: none; }
    .f-period button { flex: none; height: 40px; }
    .f-dt-bar { flex-direction: column; align-items: stretch; }
    .f-per-custom label { flex: 1 1 100%; } .f-per-sep { display: none; } .f-per-custom .f-tbtn { flex: 1 1 100%; }
    .f-per-hint { display: block; margin: 2px 0 0; }
}

/* 표: 접지 않고 가로 스크롤 · 일시 칸 고정 · 머리는 이름/단위 두 줄 */
.f-dt-scroll { overflow-x: auto; border: 1px solid var(--f-line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.f-dt-scroll table.dataTable { margin: 0 !important; border: 0 !important; width: 100% !important; border-collapse: separate; border-spacing: 0; }
table.f-dt-table thead th { position: relative; min-width: 78px; padding: 9px 22px 9px 10px !important; border-bottom: 1px solid var(--f-line) !important; background: #F6F8F9 !important; color: var(--f-sub); font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; vertical-align: middle; white-space: nowrap; }
table.f-dt-table thead th .f-th-nm { display: block; color: #33444A; }
table.f-dt-table thead th .f-th-u { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 500; color: var(--f-muted); }
table.f-dt-table tbody td { padding: 8px 10px !important; border-top: 1px solid #EEF2F3 !important; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.f-dt-table tbody tr:nth-child(even) td { background: #FAFBFC; }
table.f-dt-table tbody tr:hover td { background: #F1F7F8; }
/* 일시 칸: 옆으로 밀어도 남아 있음 */
table.f-dt-table thead th:first-child, table.f-dt-table tbody td:first-child { position: sticky; left: 0; z-index: 2; min-width: 150px; background: #fff; box-shadow: 1px 0 0 var(--f-line); }
table.f-dt-table thead th:first-child { z-index: 3; background: #F6F8F9 !important; }
table.f-dt-table tbody tr:nth-child(even) td:first-child { background: #FAFBFC; }
.f-dt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.f-dt-foot .dataTables_info, .f-dt-foot .dataTables_paginate { float: none !important; }
@media (max-width: 575.98px) {
    table.f-dt-table thead th:first-child, table.f-dt-table tbody td:first-child { min-width: 118px; font-size: 13px; }
    .f-dt-foot { justify-content: center; }
}
@media (max-width: 767.98px) { .f-dt-bar > * { min-width: 0; max-width: 100%; } .f-dt-tools .f-tbtn { flex: 1; } }
@media (max-width: 767.98px) {
    .f-period { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
    .f-period button { padding: 0 4px; font-size: 13.5px; }
}
table.f-dt-table th, table.f-dt-table td { border-left: 0 !important; border-right: 0 !important; }
table.f-dt-table thead th + th, table.f-dt-table tbody td + td { box-shadow: inset 1px 0 0 #EEF2F3; }

/* 11-05 6차 — 노드 목록 링크를 상자 안으로 · [+7] 펼치기 · 날짜 칸 */
.f-crumb { display: none; }
.f-nh-back { display: inline-flex; align-items: center; gap: 3px; height: 40px; padding: 0 10px 0 6px; border-radius: 10px; color: var(--f-sub); font-size: 14px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.f-nh-back svg { width: 18px; height: 18px; }
.f-nh-back:hover { background: #F1F5F6; color: var(--f-primary); }
.f-nh-div { width: 1px; height: 28px; background: var(--f-line); }
.f-nodehead { gap: 8px 10px; }
.f-nodehead .f-nodepick { padding-left: 8px; }
@media (max-width: 767.98px) {
    .f-nh-back span { display: none; }
    .f-nh-back { padding: 0 6px; }
    .f-nodehead .f-nodepick { flex: 1 1 0; }
}
button.f-rv-more { min-height: 46px; border: 1px dashed #C9D5D8; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--f-primary); background: #fff; }
button.f-rv-more:hover { border-style: solid; border-color: var(--f-primary-line); background: var(--f-primary-soft); }
button.f-rv-more[aria-expanded=true] { color: var(--f-sub); }
.f-per-custom input { cursor: pointer; min-width: 220px; }

/* 날짜·시간 고르기 창 (js/farm_dtpick.js) — 관리자 화면 모양 */
.f-dtp-in { position: relative; display: block; }
.f-dtp-in input { width: 100%; min-width: 200px; height: 42px; padding: 0 40px 0 12px; border: 1px solid var(--f-input); border-radius: 10px; background: #fff; color: var(--f-text); font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; caret-color: transparent; }
.f-dtp-in input:focus, .f-dtp-in input[aria-expanded=true] { outline: 0; border-color: var(--f-primary); box-shadow: 0 0 0 3px rgba(11, 124, 139, .15); }
.f-dtp-in svg { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--f-sub); pointer-events: none; }
.f-dtp { position: fixed; z-index: 1080; width: 300px; padding: 12px; border: 1px solid var(--f-line); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(20, 35, 40, .16); font-variant-numeric: tabular-nums; }
.f-dtp[hidden] { display: none; }
.f-dtp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.f-dtp-head strong { font-size: 16px; font-weight: 800; color: var(--f-text); }
.f-dtp-head button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--f-text); font-size: 22px; line-height: 1; cursor: pointer; }
.f-dtp-head button:hover { background: #F1F5F6; }
.f-dtp-head button:disabled { opacity: .25; cursor: default; background: none; }
.f-dtp-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.f-dtp-w { padding: 4px 0 6px; text-align: center; font-size: 13px; font-weight: 700; color: var(--f-sub); }
.f-dtp-w.sun, .f-dtp-d.sun { color: #C0392B; }
.f-dtp-w.sat, .f-dtp-d.sat { color: #2B5FA8; }
.f-dtp-d { height: 36px; border: 1.5px solid transparent; border-radius: 9px; background: none; color: var(--f-text); font-size: 15px; font-weight: 600; cursor: pointer; }
.f-dtp-d:hover:not(:disabled) { background: #F1F5F6; }
.f-dtp-d.other { opacity: .35; }
.f-dtp-d.today { border-color: var(--f-primary); }
.f-dtp-d.on { border-color: var(--f-primary); background: var(--f-primary) !important; color: #fff !important; }
.f-dtp-d:disabled { opacity: .2; cursor: default; }
.f-dtp-time { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--f-line-soft); }
.f-dtp-time span { margin-right: auto; font-size: 13.5px; font-weight: 600; color: var(--f-sub); }
.f-dtp-time select { height: 36px; padding: 0 8px; border: 1px solid var(--f-input); border-radius: 9px; background: #fff; color: var(--f-primary); font-size: 15px; font-weight: 700; cursor: pointer; }
.f-dtp-time b { color: var(--f-muted); }
.f-dtp-foot { display: flex; justify-content: space-between; margin-top: 10px; }
.f-dtp-foot button { height: 36px; padding: 0 16px; border: 1px solid var(--f-line); border-radius: 9px; background: #fff; color: var(--f-text); font-size: 14px; font-weight: 700; cursor: pointer; }
.f-dtp-foot .f-dtp-close { border-color: #22333A; background: #22333A; color: #fff; }
@media (max-width: 575.98px) { .f-dtp { width: calc(100vw - 24px); } .f-dtp-d { height: 42px; } }
.f-dtp-ap { display: inline-flex; padding: 3px; border-radius: 10px; background: #EEF2F3; }
.f-dtp-ap button { height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--f-sub); font-size: 14px; font-weight: 700; cursor: pointer; }
.f-dtp-ap button.on { background: #fff; color: var(--f-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.f-dtp-time { gap: 5px; }
.f-dtp-time select { padding: 0 4px 0 8px; }
/* 데이터 표: 10줄이 한 화면에 들어오게 줄 높이 조금 줄임 */
table.f-dt-table tbody td { padding-top: 7px !important; padding-bottom: 7px !important; }
#layoutSidenav_content main .dataTables_wrapper .dataTables_paginate .ellipsis { display: inline-flex; align-items: center; padding: 0 6px; color: var(--f-muted); }

/* =====================================================================
 *  노드 상세 [그래프] — 항목 카드 · 구간 · Y축 · 한 그래프
 * ===================================================================== */
.f-ch-box { margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--f-line); border-radius: var(--f-radius); background: #fff; }
.f-ch-items-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.f-ch-items-head strong { font-size: 16px; font-weight: 800; color: var(--f-text); margin-right: 8px; }
.f-ch-items-head span { font-size: 13px; color: var(--f-muted); }
.f-ch-all { display: flex; gap: 6px; }
.f-ch-all button { height: 32px; padding: 0 12px; border: 1px solid var(--f-line); border-radius: 8px; background: #fff; color: var(--f-sub); font-size: 13px; font-weight: 600; cursor: pointer; }
.f-ch-all button:hover { border-color: var(--f-primary-line); color: var(--f-primary); }
.f-ch-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.f-ch-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 10px 12px 10px 16px; border: 1px solid var(--f-line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: opacity .15s, border-color .15s; }
.f-ch-item::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c, #0B7C8B); }
.f-ch-item:hover { border-color: #C6D3D7; }
.f-ch-nm { display: flex; align-items: center; gap: 6px; max-width: 100%; font-size: 13.5px; font-weight: 700; color: #33444A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-ch-nm i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c, #0B7C8B); }
.f-ch-nm small { font-size: 12px; font-weight: 500; color: var(--f-muted); }
.f-ch-v { font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--f-text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.f-ch-st { max-width: 100%; font-size: 11.5px; color: var(--f-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.f-ch-item.is-off { opacity: .45; background: #F6F8F9; }
.f-ch-item.is-off::before { background: #C7D0D3; }
.f-ch-item.is-off .f-ch-nm i { background: #C7D0D3; }
.f-ch-item.is-skel { min-height: 82px; background: linear-gradient(90deg, #EEF2F7 25%, #F6F8FB 50%, #EEF2F7 75%); background-size: 200% 100%; animation: f-skel 1.2s ease-in-out infinite; border: 0; }
.f-ch-item.is-skel::before { display: none; }
.f-ch-empty { margin: 8px 0; color: var(--f-muted); }
.f-ch-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.f-ch-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f-ch-y { display: flex; align-items: center; gap: 6px; margin-right: 4px; }
.f-ch-y > span { font-size: 13px; font-weight: 700; color: var(--f-sub); }
.f-ch-y .f-seg button { height: 34px; padding: 0 12px; font-size: 13.5px; }
.f-ch-now { margin: 0 0 6px 2px; font-size: 14px; color: var(--f-sub); font-variant-numeric: tabular-nums; }
.f-ch-now b { color: var(--f-text); }
.f-ch-gap-lg { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; font-size: 12.5px; color: var(--f-muted); }
.f-ch-gap-lg i { display: inline-block; width: 14px; height: 12px; border-radius: 3px; background: rgba(232, 125, 62, .22); }
.f-ch-chart { height: 560px; }
.f-ch-loading { padding: 140px 0; text-align: center; color: var(--f-muted); }
.f-ch-help { margin: 8px 2px 0; font-size: 12.5px; color: var(--f-muted); }
@media (max-width: 767.98px) {
    .f-ch-box { padding: 12px; }
    .f-ch-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .f-ch-v { font-size: 20px; }
    .f-ch-items-head span { display: none; }
    .f-ch-bar { flex-direction: column; align-items: stretch; }
    .f-ch-bar > * { min-width: 0; max-width: 100%; }
    .f-ch-tools .f-tbtn span { display: none; } .f-ch-tools .f-tbtn { width: 42px; padding: 0; }
    .f-ch-y { margin-right: auto; }
    .f-ch-chart { height: 420px; }
    .f-ch-gap-lg { display: flex; margin: 2px 0 0; }
}
.f-ch-st { white-space: normal; line-height: 1.45; }
.f-ch-st span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-ch-st b { font-weight: 700; color: var(--f-sub); }
.f-ch-item.is-off .f-ch-st b { color: inherit; }

/* 엑셀 받기 창 */
.f-xl-modal .modal-content { border: 0; border-radius: 16px; box-shadow: 0 20px 50px rgba(20, 35, 40, .22); }
.f-xl-modal .modal-header { align-items: flex-start; padding: 18px 20px 12px; border-bottom: 1px solid var(--f-line-soft); }
.f-xl-modal .modal-title { font-size: 19px; font-weight: 800; color: var(--f-text); }
.f-xl-sub { margin: 4px 0 0; font-size: 13px; color: var(--f-sub); }
.f-xl-modal .modal-body { padding: 16px 20px 6px; }
.f-xl-h, .f-xl-h h6 { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--f-text); }
.f-xl-h2 { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.f-xl-h2 h6 { margin: 0; }
.f-xl-h2 span { font-size: 13px; color: var(--f-muted); }
.f-xl-all { margin-left: auto; height: 30px; padding: 0 10px; border: 1px solid var(--f-line); border-radius: 8px; background: #fff; color: var(--f-sub); font-size: 13px; font-weight: 600; }
.f-xl-all:hover { border-color: var(--f-primary-line); color: var(--f-primary); }
.f-xl-per { margin-bottom: 10px; }
.f-xl-per button { height: 34px; padding: 0 12px; font-size: 13.5px; }
.f-xl-range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 12px; border-radius: 12px; background: #F6F8F9; }
.f-xl-range label { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--f-sub); }
.f-xl-range .f-dtp-in input { min-width: 0; }
.f-xl-items { display: flex; flex-wrap: wrap; gap: 6px; }
.f-xl-item { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0; padding: 0 12px 0 10px; border: 1px solid var(--f-line); border-radius: 999px; background: #fff; color: var(--f-sub); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; }
.f-xl-item input { width: 16px; height: 16px; margin: 0; accent-color: var(--f-primary); cursor: pointer; }
.f-xl-item.on { border-color: var(--f-primary-line); background: var(--f-primary-soft); color: #0A6875; }
.f-xl-note { margin: 12px 0 0; font-size: 12.5px; color: var(--f-muted); }
.f-xl-modal .modal-footer { gap: 8px; padding: 12px 20px 18px; border-top: 0; }
.f-xl-modal .modal-footer .f-tbtn { min-width: 96px; height: 42px; }
.f-xl-modal .modal-footer .f-tbtn.is-main { min-width: 130px; }
.f-xl-modal .modal-footer .f-tbtn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 575.98px) {
    .f-xl-modal .modal-dialog { margin: 0; min-height: 100%; align-items: flex-end; }
    .f-xl-modal .modal-content { border-radius: 18px 18px 0 0; }
    .f-xl-range .f-per-sep { display: none; } .f-xl-range label { flex-basis: 100%; }
    .f-xl-modal .modal-footer .f-tbtn { flex: 1; }
}
.f-dtp { z-index: 1090; }
.f-xl-modal .modal-dialog { max-width: 600px; }
.f-xl-range .f-dtp-in input { font-size: 14.5px; padding-right: 36px; }
@media (max-width: 767.98px) { .f-xl-per { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 그래프 카드: 최소 · 최대 · 평균 한 줄 */
.f-ch-items { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.f-ch-st { display: flex; flex-wrap: nowrap; gap: 8px; white-space: nowrap; line-height: 1.4; }
.f-ch-st span { display: inline; overflow: visible; }
.f-ch-old { margin-left: 8px; font-size: 12.5px; color: var(--f-primary); }
@media (max-width: 767.98px) { .f-ch-st { gap: 5px; font-size: 11px; } }
/* 그래프 항목 카드: 폭을 줄여 한 줄에 더 많이 (빈 칸 없이 줄을 꽉 채움) */
.f-ch-items { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.f-ch-item { padding: 9px 10px 9px 14px; }
.f-ch-v { font-size: 22px; }
.f-ch-st { gap: 6px; font-size: 11px; }
@media (max-width: 767.98px) { .f-ch-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.f-ch-st { gap: 8px; font-size: 11.5px; }
.f-ch-st span + span { position: relative; padding-left: 8px; }
.f-ch-st span + span::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: #D5DEE1; }
.f-ch-zoom { display: flex; gap: 6px; }
.f-ch-zoom .f-tbtn { height: 38px; padding: 0 12px; }
.f-ch-zoom .f-tbtn:disabled { opacity: .4; cursor: default; }
.f-ch-help b { color: var(--f-sub); font-weight: 700; }
.f-ch-bar { row-gap: 8px; }
@media (max-width: 767.98px) { .f-ch-zoom { order: 3; } .f-ch-zoom .f-tbtn { flex: 1; } }
.f-ch-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 6px; }
.f-ch-sub .f-ch-now { margin: 0 0 0 2px; }
.f-ch-zoom .f-tbtn { height: 32px; padding: 0 10px; font-size: 13px; }
.f-ch-zoom .f-tbtn svg { width: 15px; height: 15px; }
@media (max-width: 767.98px) { .f-ch-sub .f-ch-zoom { width: 100%; } }
/* 그래프 항목 카드: 테두리도 그 항목 색(연하게) */
.f-ch-item { border-color: var(--cb, var(--f-line)); }
.f-ch-item:hover { border-color: var(--c, #C6D3D7); }
.f-ch-item.is-off { border-color: var(--f-line); }
/* 폰 그래프: 누른 시각의 항목 값 (그래프 안 위쪽, 반투명) */
.f-tt { min-width: 140px; max-width: 200px; font-weight: 600; }
.f-tt-t { margin-bottom: 3px; padding-bottom: 3px; border-bottom: 1px solid rgba(34, 51, 58, .2); font-size: 12.5px; font-weight: 800; }
.f-tt-g { display: grid; gap: 1px; }
.f-tt-row { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.35; white-space: nowrap; }
.f-tt-row i { width: 7px; height: 7px; flex: none; border-radius: 50%; }
.f-tt-row em { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-style: normal; font-weight: 500; color: #44545A; }
.f-tt-row b { font-weight: 800; color: #22333A; font-variant-numeric: tabular-nums; }
.f-tt-row small { font-size: 10.5px; font-weight: 500; color: #6A7A80; }
.f-ph { display: none; }
@media (max-width: 767.98px) { .f-pc { display: none; } .f-ph { display: inline; } }

/* =====================================================================
 *  내가만든차트 (html/Charts.php · js/farm_charts.js)
 *   내 노드 = 청록 (#0B7C8B) · 공유 노드 = 보라 (#5B4FA0)
 * ===================================================================== */
:root { --f-my: #0B7C8B; --f-my-soft: #E7F4F6; --f-sh: #5B4FA0; --f-sh-soft: #EFEDF8; }
.f-mc-bar { flex-wrap: wrap; gap: 10px; }
.f-mc-cnt { font-size: 15px; color: var(--f-sub); } .f-mc-cnt b { font-size: 18px; font-weight: 800; color: var(--f-text); margin-right: 2px; }
.f-mc-legend { display: flex; gap: 12px; margin-right: auto; font-size: 13px; color: var(--f-sub); }
.f-mc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.f-mc-legend i { width: 12px; height: 12px; border-radius: 4px; }
.f-mc-legend .is-my i { background: var(--f-my); } .f-mc-legend .is-share i { background: var(--f-sh); }
.f-mc-farm { display: flex; align-items: center; gap: 6px; } .f-mc-farm > span { font-size: 13px; font-weight: 700; color: var(--f-sub); }
.f-mc-farm .f-seg button { height: 34px; padding: 0 12px; font-size: 13.5px; }
#mcSort.on { border-color: var(--f-primary); background: var(--f-primary); color: #fff; }
.f-mc-tip { margin: -6px 0 12px 2px; font-size: 12.5px; color: var(--f-muted); } .f-mc-tip b { color: var(--f-sub); }

.f-mc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 14px; align-items: start; }
.f-mc { min-width: 0; border: 1px solid var(--f-line); border-radius: var(--f-radius); background: #fff; box-shadow: 0 1px 2px rgba(20, 35, 40, .04); }
.f-mc.is-skel { height: 260px; border: 0; background: linear-gradient(90deg, #EEF2F7 25%, #F6F8FB 50%, #EEF2F7 75%); background-size: 200% 100%; animation: f-skel 1.2s ease-in-out infinite; }
.f-mc-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 8px; border-bottom: 1px solid var(--f-line-soft); cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.f-mc-grip { width: 22px; height: 22px; flex: none; color: #B5C2C6; } .f-mc-grip svg { width: 100%; height: 100%; }
.f-mc-tt { flex: 1; min-width: 0; }
.f-mc-tt h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--f-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-mc-tt span { font-size: 12.5px; color: var(--f-muted); } .f-mc-tt .sh { font-weight: 700; color: var(--f-sh); }
.f-mc-acts { display: flex; gap: 6px; flex: none; }
.f-ic { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 36px; min-width: 36px; padding: 0 9px; border: 1px solid var(--f-line); border-radius: 9px; background: #fff; color: var(--f-sub); font-size: 13.5px; font-weight: 700; text-decoration: none !important; cursor: pointer; }
.f-ic svg { width: 17px; height: 17px; }
.f-ic:hover { border-color: var(--f-primary-line); color: var(--f-primary); background: var(--f-primary-soft); }
.f-ic.is-main { border-color: var(--f-primary); background: var(--f-primary); color: #fff !important; padding: 0 12px; }
.f-ic.is-main:hover { background: var(--f-primary-h); }
.f-ic.is-del:hover { border-color: #F1C9B8; color: #B23C0B; background: #FFF4EE; }
.f-mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; padding: 12px; }
.f-mc-empty { grid-column: 1 / -1; margin: 10px 0; color: var(--f-muted); text-align: center; }

/* 항목 칸 */
.f-mt { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--f-line); border-radius: 11px; background: #fff; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: box-shadow .15s, transform .15s; }
.f-mt-node { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 5px 8px; font-size: 12px; font-weight: 700; color: #fff; background: var(--f-my); }
.f-mt.is-share .f-mt-node { background: var(--f-sh); }
.f-mt-node svg { width: 12px; height: 12px; flex: none; opacity: .9; }
.f-mt-nn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-mt-farm { display: none; flex: none; max-width: 55%; margin-left: auto; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .22); font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.farm-all .f-mt-farm, .farm-share .f-mt.is-share .f-mt-farm { display: inline-block; }
.f-mt-body { display: flex; flex-direction: column; align-items: center; padding: 7px 6px 6px; text-align: center; }
.f-mt.is-my .f-mt-body { background: var(--f-my-soft); } .f-mt.is-share .f-mt-body { background: var(--f-sh-soft); }
.f-mt-nm { max-width: 100%; font-size: 13.5px; font-weight: 600; color: #3C4C52; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-mt-v { margin-top: 1px; font-size: 24px; font-weight: 800; line-height: 1.15; color: var(--f-text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.f-mt-v small { margin-left: 2px; font-size: 12px; font-weight: 600; color: var(--f-muted); letter-spacing: 0; }
.f-mt-t { display: flex; align-items: center; gap: 4px; min-height: 16px; margin-top: 1px; font-size: 11px; color: var(--f-muted); font-variant-numeric: tabular-nums; }
.f-mt-t em { padding: 0 5px; border-radius: 5px; font-style: normal; font-weight: 700; font-size: 10.5px; }
.f-mt-t em.hi { background: #FDE8E1; color: #B23C0B; } .f-mt-t em.lo { background: #E3ECF8; color: #1F5C99; } .f-mt-t em.off { background: #FFF0E8; color: #B23C0B; }
.f-mt.is-hi .f-mt-v { color: #C2410C; } .f-mt.is-lo .f-mt-v { color: #1F5C99; }
.f-mt.is-off .f-mt-v { color: #9AA6AA; } .f-mt.is-off .f-mt-node { filter: saturate(.4); opacity: .8; }

/* 새 차트 칸 · + 버튼 */
.f-mc-new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 180px; border: 2px dashed #C9D5D8; border-radius: var(--f-radius); background: transparent; color: var(--f-sub); cursor: pointer; }
.f-mc-new span { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--f-primary-soft); color: var(--f-primary); font-size: 32px; font-weight: 400; line-height: 1; }
.f-mc-new b { font-size: 16px; color: var(--f-text); } .f-mc-new em { font-style: normal; font-size: 12.5px; color: var(--f-muted); }
.f-mc-new:hover { border-color: var(--f-primary-line); background: #fff; }
.f-fab { position: fixed; right: 24px; bottom: calc(24px + var(--f-safe-b)); z-index: 1030; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--f-primary); color: #fff; box-shadow: 0 8px 22px rgba(11, 124, 139, .38); cursor: pointer; transition: transform .15s; }
.f-fab svg { width: 28px; height: 28px; } .f-fab:hover { transform: scale(1.06); background: var(--f-primary-h); }
body.f-mc-dirty .f-fab { bottom: calc(96px + var(--f-safe-b)); }

/* 길게 누르기 · 끌기 */
.f-mt.is-press, .f-mc.is-press { transform: scale(.97); box-shadow: 0 0 0 3px rgba(11, 124, 139, .25); }
.f-mc.is-press { transform: scale(.99); }
.is-drag { position: fixed !important; z-index: 1100; margin: 0 !important; pointer-events: none; opacity: .92; box-shadow: 0 16px 40px rgba(20, 35, 40, .28) !important; transform: rotate(-1.2deg) scale(1.02); }
.f-sort-ph { border: 2px dashed var(--f-primary); border-radius: 11px; background: rgba(11, 124, 139, .06); }
.f-sort-ph.is-card { border-radius: var(--f-radius); }
body.f-dragging, body.f-dragging * { cursor: grabbing !important; user-select: none !important; }
.f-mc.is-moved, .f-mt.is-moved { animation: f-moved 1s ease; }
@keyframes f-moved { 0% { box-shadow: 0 0 0 3px rgba(11, 124, 139, .55); } 100% { box-shadow: 0 0 0 3px rgba(11, 124, 139, 0); } }
.is-sorting .f-mt { border: 1.5px dashed var(--f-primary-line); }
.is-sorting .f-mc { border: 1.5px dashed var(--f-primary-line); }
.is-sorting .f-mc-grip { color: var(--f-primary); }

/* 순서 저장 바 */
.f-mc-save { position: fixed; left: 50%; bottom: calc(18px + var(--f-safe-b)); z-index: 1040; display: flex; align-items: center; gap: 10px; width: min(620px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 14px; background: #22333A; color: #fff; box-shadow: 0 14px 36px rgba(20, 35, 40, .3); transform: translateX(-50%); }
.f-mc-save[hidden] { display: none; }
.f-mc-save p { flex: 1; min-width: 0; margin: 0; line-height: 1.3; } .f-mc-save p b { display: block; font-size: 15px; } .f-mc-save p span { font-size: 12.5px; opacity: .75; }
.f-mc-save .f-tbtn { border-color: rgba(255, 255, 255, .25); background: transparent; color: #fff; }
.f-mc-save .f-tbtn.is-main { border-color: #fff; background: #fff; color: #22333A; }

/* 만들기 창 */
.f-mk-modal .modal-content { border: 0; border-radius: 16px; }
.f-mk-modal .modal-header { padding: 16px 20px 10px; border-bottom: 0; }
.f-mk-modal .modal-title { font-size: 19px; font-weight: 800; }
.f-mk-modal .modal-body { padding: 4px 20px 12px; background: #fff; }
.f-mk-name { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; font-size: 13px; font-weight: 700; color: var(--f-sub); }
.f-mk-name input { height: 46px; padding: 0 14px; border: 1px solid var(--f-input); border-radius: 11px; font-size: 16px; color: var(--f-text); }
.f-mk-name input:focus { outline: 0; border-color: var(--f-primary); box-shadow: 0 0 0 3px rgba(11, 124, 139, .15); }
.f-mk-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #EEF2F3; margin-bottom: 10px; }
.f-mk-tabs button { position: relative; height: 42px; border: 0; border-radius: 9px; background: none; color: var(--f-sub); font-size: 15px; font-weight: 700; cursor: pointer; }
.f-mk-tabs button b { font-weight: 600; font-size: 12.5px; color: var(--f-muted); }
.f-mk-tabs button.on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.f-mk-tabs button[data-tab=my].on { color: var(--f-my); } .f-mk-tabs button[data-tab=share].on { color: var(--f-sh); }
.f-mk-tabs button i { position: absolute; top: 4px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--f-primary); color: #fff; font-size: 11.5px; font-style: normal; line-height: 20px; }
.f-mk-tabs button[data-tab=share] i { background: var(--f-sh); }
.f-mk-find { display: flex; gap: 8px; margin-bottom: 10px; } .f-mk-find .f-search { flex: 1; }
.f-mk-node { margin-bottom: 8px; border: 1px solid var(--f-line); border-radius: 12px; background: #fff; overflow: hidden; }
.f-mk-node.has-sel { border-color: var(--f-primary-line); } .f-mk-node.is-share.has-sel { border-color: #C9C2E6; }
.f-mk-nh { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 0; background: none; text-align: left; cursor: pointer; }
.f-mk-nh > svg { width: 20px; height: 20px; flex: none; color: var(--f-sub); transition: transform .15s; }
.f-mk-node.is-open .f-mk-nh > svg { transform: rotate(180deg); }
.f-mk-ic { width: 10px; height: 34px; flex: none; border-radius: 5px; background: var(--f-my); } .is-share .f-mk-ic { background: var(--f-sh); }
.f-mk-nt { flex: 1; min-width: 0; } .f-mk-nt strong { display: block; font-size: 15.5px; color: var(--f-text); }
.f-mk-nt span { font-size: 12.5px; color: var(--f-muted); } .f-mk-nt span b { color: var(--f-sh); } .f-mk-sel { font-style: normal; font-weight: 700; color: var(--f-primary); }
.f-mk-items { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 14px 14px 34px; }
.f-mk-it { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0; padding: 0 12px 0 10px; border: 1px solid var(--f-line); border-radius: 999px; background: #fff; color: var(--f-sub); font-size: 14px; font-weight: 600; cursor: pointer; }
.f-mk-it input { width: 16px; height: 16px; margin: 0; accent-color: var(--f-my); }
.is-share .f-mk-it input { accent-color: var(--f-sh); }
.f-mk-it:has(input:checked) { border-color: var(--f-primary-line); background: var(--f-my-soft); color: #0A6875; }
.is-share .f-mk-it:has(input:checked) { border-color: #C9C2E6; background: var(--f-sh-soft); color: var(--f-sh); }
.f-mk-it.is-ext span::after { content: " 확장"; font-size: 11px; color: var(--f-muted); }
.f-mk-none { margin: 16px 0; text-align: center; color: var(--f-muted); font-size: 14px; }
.f-mk-modal .modal-footer { gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--f-line-soft); }
.f-mk-cnt { margin-right: auto; font-size: 14px; color: var(--f-sub); } .f-mk-cnt b { font-size: 17px; color: var(--f-primary); } .f-mk-cnt.is-full b { color: #B23C0B; }
.f-mk-modal .modal-footer .f-tbtn { height: 44px; min-width: 92px; } .f-mk-modal .modal-footer .f-tbtn.is-main { min-width: 120px; }
.f-tbtn.is-danger { border-color: #B23C0B; background: #B23C0B; color: #fff; }
.f-del-body { padding: 22px 20px 6px !important; text-align: center; } .f-del-body h5 { font-size: 18px; font-weight: 800; } .f-del-body p { margin: 8px 0 0; font-size: 14px; color: var(--f-sub); }

@media (max-width: 767.98px) {
    .f-mc-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .f-mc-legend { order: 5; width: 100%; margin: 0; }
    .f-mc-farm { flex: 1 1 auto; } .f-mc-farm .f-seg { flex: 1; } .f-mc-farm .f-seg button { flex: 1; padding: 0 6px; }
    #mcSort span { display: none; } #mcSort { width: 42px; padding: 0; }
    .f-mc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; }
    .f-mc-acts .f-ic span { display: none; } .f-mc-acts .f-ic.is-main { padding: 0 9px; }
    .f-mt-v { font-size: 20px; } .f-mt-nm { font-size: 12.5px; }
    .f-fab { right: 16px; bottom: calc(16px + var(--f-safe-b)); width: 56px; height: 56px; }
    .f-mk-modal .modal-dialog { margin: 0; max-width: none; height: 100%; } .f-mk-modal .modal-content { height: 100%; border-radius: 0; }
    .f-mk-items { padding-left: 14px; }
    .f-mc-save { flex-wrap: wrap; } .f-mc-save p { flex-basis: 100%; } .f-mc-save .f-tbtn { flex: 1; }
}
@media (max-width: 380px) { .f-mc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 농가 이름은 노드 이름 아래 줄로 (노드 이름이 잘리지 않게) */
.f-mt-node { flex-wrap: wrap; row-gap: 1px; }
.f-mt-nn { flex: 1 1 0; }
.f-mt-farm { flex: 1 1 100%; max-width: 100%; margin: 0; padding: 0; background: none; font-size: 11px; font-weight: 500; opacity: .85; }
.f-mt-farm::before { content: "농가 "; opacity: .75; }
.f-mt-body { flex: 1; justify-content: center; }
@media (max-width: 767.98px) {
    .f-mc-bar { display: grid; grid-template-columns: auto 1fr; align-items: center; row-gap: 8px; }
    .f-mc-cnt { grid-column: 1; } .f-mc-legend { grid-column: 2; order: 0; width: auto; justify-content: flex-end; }
    .f-mc-farm { grid-column: 1 / -1; display: flex; gap: 6px; } .f-mc-farm > span { flex: none; }
    .f-mc-farm .f-seg { flex: 1; }
    .f-mc-bar #mcSort, .f-mc-bar #mcRefresh { display: none; }
    .f-mc-farm .f-mc-mini { display: inline-flex; }
}
.f-mc-mini { display: none; width: 40px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--f-line); border-radius: 9px; background: #fff; color: var(--f-sub); }
.f-mc-mini svg { width: 17px; height: 17px; } .f-mc-mini.on { border-color: var(--f-primary); background: var(--f-primary); color: #fff; }
@media (max-width: 767.98px) { body.f-mc-dirty .f-fab { display: none; } }

/* 내가만든차트 11-05 저녁 수정 — 노드명 가운데·크게, 시간 오른쪽·기울임, 간격 줄임, 내 노드 색 */
:root { --f-my: #1B4152; --f-my-soft: #EEF1F2; }
.f-mc-list { gap: 10px; }
.f-mc-grid { gap: 3px; padding: 8px; }
.f-mt { border-radius: 8px; }
.f-mt-node { justify-content: center; text-align: center; padding: 6px 6px 5px; font-size: 13.5px; }
.f-mt-nn { flex: 0 1 auto; }
.f-mt-farm { text-align: center; font-size: 12px; font-weight: 500; }
.f-mt.is-my .f-mt-nm { color: #4A5559; }
.f-mt-body { padding: 6px 8px 4px; }
.f-mt-nm { font-size: 14px; }
.f-mt-t { align-self: stretch; justify-content: flex-end; font-size: 12px; font-style: italic; color: #8A979B; }
.f-mt-t em { font-style: normal; margin-right: auto; }
/* 농가 이름 고르기 — 한 덩어리로 */
.f-mc-farm { gap: 0; padding: 3px 3px 3px 12px; border: 1px solid var(--f-line); border-radius: 12px; background: #fff; }
.f-mc-farm > span { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; font-size: 13px; color: var(--f-sub); }
.f-mc-farm > span svg { width: 15px; height: 15px; }
.f-mc-farm .f-seg { padding: 3px; border: 0; border-radius: 9px; background: #EEF2F3; }
.f-mc-farm .f-seg button { height: 30px; }
@media (max-width: 767.98px) { .f-mc-farm { padding: 3px 3px 3px 10px; } .f-mc-grid { gap: 3px; padding: 6px; } }

/* 내가만든차트 그래프 — 카드 위 노드 이름 · 농가 이름, 설정 표, 새 창 */
.f-ch-node { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; margin: -2px 0 3px; line-height: 1.25; }
.f-ch-node b { max-width: 100%; padding: 1px 7px; border-radius: 6px; background: var(--f-my); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-ch-node.is-share b { background: var(--f-sh); }
.f-ch-node svg { display: none; }
.f-ch-node em { display: none; margin-top: 2px; font-style: normal; font-size: 11.5px; color: var(--f-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.f-ch-node em::before { content: "농가 "; opacity: .8; }
.farm-all .f-ch-node em, .farm-share .f-ch-node.is-share em { display: block; }
.f-ch-all { align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.f-ch-farm { margin-right: 6px; }
.f-nh-tools { display: flex; gap: 6px; margin-left: auto; }
.f-set-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.f-set-tbl th { padding: 8px; border-bottom: 1px solid var(--f-line); background: #F6F8F9; color: var(--f-sub); font-size: 13px; font-weight: 700; text-align: center; }
.f-set-tbl td { padding: 6px 8px; border-bottom: 1px solid #EEF2F3; text-align: center; vertical-align: middle; }
.f-set-tbl .f-set-nm { cursor: pointer; text-align: left; }
.f-set-tbl .f-set-nm b { display: block; font-weight: 800; } .f-set-tbl .f-set-nm small { color: var(--f-muted); font-size: 12px; }
.f-set-tbl input, .f-set-tbl select { width: 100%; max-width: 110px; height: 38px; padding: 0 8px; border: 1px solid var(--f-input); border-radius: 9px; background: #fff; text-align: center; font-size: 14.5px; }
.f-xl-step { display: inline-flex; }
.f-xl-step label { margin: 0; cursor: pointer; } .f-xl-step input { position: absolute; opacity: 0; pointer-events: none; }
.f-xl-step span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--f-sub); }
.f-xl-step input:checked + span { background: #fff; color: var(--f-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
body.f-popup { background: var(--f-bg); }
.f-popup-main { padding: 14px 0 20px; }
.f-popup .f-nodehead { margin-bottom: 12px; }
@media (max-width: 767.98px) { .f-ch-all { justify-content: flex-start; } .f-ch-farm { width: 100%; margin: 0 0 4px; } .f-nh-tools .f-tbtn span { display: inline; } }
.f-set-tbl th:first-child, .f-set-tbl td:first-child { width: 42%; } .f-set-tbl th:first-child { text-align: left; }
/* 공유 노드: 색은 노드 띠에만 (참고 이미지 색), 항목 부분은 내 노드와 같게 */
:root { --f-sh: #3A3C70; --f-sh-soft: #EEF1F2; }
.f-mt.is-share .f-mt-body { background: var(--f-my-soft); }
.f-mt.is-share .f-mt-nm { color: #4A5559; }
.f-mt.is-share { border-color: var(--f-line); }
.f-xl-wait { margin: 0 20px 4px; padding: 10px 12px; border: 1px solid #F1C9B8; border-radius: 10px; background: #FFF4EE; color: #8A3410; font-size: 13.5px; line-height: 1.5; }
.f-xl-wait[hidden] { display: none; }
/* 데이터 표 항목 순서 창 */
.f-col-list { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.f-col-list li { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 8px 8px 8px 12px; border: 1px solid var(--f-line); border-radius: 10px; background: #fff; cursor: grab; user-select: none; counter-increment: c; }
.f-col-list li::before { content: counter(c); min-width: 22px; font-size: 12.5px; font-weight: 700; color: var(--f-muted); }
.f-col-grip { color: #B5C2C6; letter-spacing: -2px; }
.f-col-nm { flex: 1; font-size: 15px; font-weight: 600; color: var(--f-text); }
.f-col-list button { width: 36px; height: 34px; border: 1px solid var(--f-line); border-radius: 8px; background: #fff; color: var(--f-sub); font-size: 12px; }
.f-col-list button:hover { border-color: var(--f-primary-line); color: var(--f-primary); }
.f-col-list li.is-drag-src { opacity: .4; border-style: dashed; }
.f-col-list li.is-moved { border-color: var(--f-primary); box-shadow: 0 0 0 3px rgba(11, 124, 139, .15); }
@media (max-width: 575.98px) { #btn_cols span { display: none; } }
/* 그래프 화면 농가 이름 고르기: .f-ch-all button 모양이 덮어쓰던 것 되돌림 → 고른 것이 보이게 */
.f-ch-all .f-seg button { height: 30px; padding: 0 12px; border: 0 !important; border-radius: 7px; background: transparent; color: var(--f-sub); }
.f-ch-all .f-seg button.on { background: #fff !important; color: var(--f-primary) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.f-ch-all .f-seg { display: inline-flex; }

/* ── 내가만든차트 그래프: 보는 방법(최근 · 기간) · 통계 (2026-11-05) ── */
.f-sheet-foot[hidden] { display: none; }
.f-ch-mode { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.f-ch-modeseg button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; font-size: 14px; }
.f-ch-modeseg .f-cm-ic { width: 16px; height: 16px; }
.f-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #9AA8AD; }
.f-ch-modeseg button.on .f-live-dot { background: #3DDC84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); animation: fLive 2s ease-in-out infinite; }
@keyframes fLive { 50% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); } }
@media (prefers-reduced-motion: reduce) { .f-ch-modeseg button.on .f-live-dot { animation: none; } }
.f-ch-statbtn svg { color: var(--f-primary); }
.f-ch-per { flex-direction: column; align-items: stretch; }
.f-ch-per .f-ch-quick button { height: 34px; padding: 0 12px; font-size: 13.5px; }
.f-ch-perin { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.f-ch-perhelp { margin: 0; font-size: 12.5px; color: var(--f-muted); }
.f-ch-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 12px; padding: 9px 12px 9px 14px; border: 1px solid #F1D9A6; border-radius: 10px; background: #FFF8E8; color: #5B4A1E; font-size: 14px; }
.f-ch-banner[hidden] { display: none; }
.f-ch-banner b { color: #3D300F; }
.f-ch-banner em { font-style: normal; color: #8A6D2B; }
.f-ch-banner button { margin-left: auto; height: 32px; padding: 0 12px; border: 1px solid #D9B65E; border-radius: 8px; background: #fff; color: #5B4A1E; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.f-ch-banner button:hover { background: #FFF1CC; }
@media (max-width: 767.98px) {
    .f-ch-mode { align-items: stretch; }
    .f-ch-modeseg { flex: 1 1 auto; display: flex; }
    .f-ch-modeseg button { flex: 1 1 0; justify-content: center; padding: 0 8px; font-size: 13px; height: 40px; }
    .f-ch-statbtn { flex: 0 0 auto; }
    .f-ch-perin label { flex: 1 1 100%; } .f-ch-perin .f-per-sep { display: none; } .f-ch-perin .f-tbtn { flex: 1 1 100%; }
    .f-ch-banner button { margin-left: 0; width: 100%; }
}

/* ── 내가만든차트 목록 위: 차트 수 · 내 노드 / 공유 노드 항목 수 한 덩어리 (2026-11-05) ── */
.f-mc-sum { display: inline-flex; align-items: stretch; margin-right: auto; border: 1px solid var(--f-line); border-radius: 12px; background: #fff; overflow: hidden; }
.f-mc-sum .f-mc-cnt { display: inline-flex; align-items: baseline; gap: 4px; padding: 7px 14px; font-size: 13.5px; color: var(--f-sub); background: #F6F8F9; border-right: 1px solid var(--f-line); }
.f-mc-sum .f-mc-cnt b { margin: 0; font-size: 19px; line-height: 1; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; }
.f-mc-sum .f-mc-legend { display: inline-flex; align-items: center; gap: 0; margin: 0; padding: 0 4px; font-size: 13px; }
.f-mc-sum .f-mc-legend span { gap: 6px; padding: 0 10px; color: var(--f-sub); }
.f-mc-sum .f-mc-legend span + span { border-left: 1px solid var(--f-line); }
.f-mc-sum .f-mc-legend b { min-width: 14px; font-size: 15px; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; }
.f-mc-sum .f-mc-legend .is-my b { color: var(--f-my); } .f-mc-sum .f-mc-legend .is-share b { color: var(--f-sh); }
.f-mc-sum .f-mc-legend .is-zero { opacity: .55; }
.f-mc-sum .f-mc-legend i { width: 10px; height: 10px; border-radius: 3px; }
@media (max-width: 767.98px) {
    .f-mc-bar .f-mc-sum { grid-column: 1 / -1; display: flex; }
    .f-mc-sum .f-mc-cnt { padding: 7px 12px; }
    .f-mc-sum .f-mc-legend { flex: 1; justify-content: space-around; padding: 0; }
    .f-mc-sum .f-mc-legend span { flex: 1; justify-content: center; padding: 0 6px; }
}

/* ── 새 줄 (줄바꿈) ── */
.f-mt { position: relative; }
.f-mt.is-br { grid-column-start: 1; }
.f-mt-br { display: none; }
.f-mc-brbar { display: none; }
.is-sorting .f-mc-brbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px 0; }
.f-mc-brbar > span { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; font-size: 12.5px; font-weight: 700; color: var(--f-sub); }
.f-mc-brbar svg { width: 15px; height: 15px; }
.f-mc-brbar button { height: 30px; padding: 0 11px; border: 1px solid var(--f-line); border-radius: 999px; background: #fff; color: #3A4A50; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.f-mc-brbar button:hover { border-color: var(--f-primary-line); color: var(--f-primary); }
.is-sorting .f-mt-br { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 28px; margin: 0; border: 0; border-top: 1px dashed var(--f-line); border-radius: 0 0 7px 7px; background: #F6F8F9; color: var(--f-sub); font-size: 12px; font-weight: 700; cursor: pointer; }
.is-sorting .f-mt-br svg { width: 14px; height: 14px; }
.is-sorting .f-mt-br[aria-pressed=true] { background: var(--f-primary); color: #fff; border-top-color: var(--f-primary); }
.is-sorting .f-mc-grid > .f-mt:first-child .f-mt-br { visibility: hidden; }
/* 줄이 바뀌는 칸: 왼쪽에 표시 (순서 바꾸기 중) */
.is-sorting .f-mt.is-br::before { content: ""; position: absolute; left: -3px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--f-primary); }
.f-dragging .f-mt-br { pointer-events: none; }
.f-mc-tip { margin-top: 6px; }
@media (max-width: 767.98px) {
    .f-mc-bar .f-mc-sum { margin-right: 0; }
    .f-mc-sum .f-mc-legend span { white-space: nowrap; }
    .f-ch-mode { flex-wrap: nowrap; }
    .f-ch-modeseg { min-width: 0; }
    .f-ch-modeseg .f-cm-x { display: none; }
    .f-ch-statbtn { height: 46px; }
}

/* ── 데이터 표: 항목 이름 끌어서 순서 바꾸기 (2026-11-05 밤) ── */
table.f-dt-table thead th[data-k] { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
table.f-dt-table thead th[data-k]:hover .f-th-nm { color: var(--f-primary); }
table.f-dt-table thead th.is-press { background: #E3F1F3 !important; }
table.f-dt-table thead th.is-col-src, table.f-dt-table thead th.is-col-src * { color: var(--f-muted) !important; }
table.f-dt-table thead th.is-col-src { background: repeating-linear-gradient(45deg, #EEF2F3, #EEF2F3 6px, #F6F8F9 6px, #F6F8F9 12px) !important; }
body.f-col-dragging, body.f-col-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.f-col-ghost { position: fixed; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 10px; border: 1.5px solid var(--f-primary); border-radius: 10px; background: #fff; box-shadow: 0 10px 24px rgba(16, 42, 50, .22); color: #33444A; font-size: 13px; font-weight: 700; text-align: center; white-space: nowrap; pointer-events: none; transform: rotate(-2deg); opacity: .96; }
.f-col-ghost .f-th-nm { display: block; } .f-col-ghost .f-th-u { display: block; font-size: 11.5px; font-weight: 500; color: var(--f-muted); }
.f-col-mark { position: fixed; z-index: 2999; width: 3px; border-radius: 3px; background: var(--f-primary); box-shadow: 0 0 0 3px rgba(11, 124, 139, .18); pointer-events: none; }
.f-col-reset { margin-left: 6px; padding: 2px 9px; border: 1px solid var(--f-line); border-radius: 999px; background: #fff; color: var(--f-sub); font-size: 12px; font-weight: 600; cursor: pointer; }
.f-col-reset[hidden] { display: none; }
.f-col-reset:hover { border-color: var(--f-primary-line); color: var(--f-primary); }
/* 가로로 넘칠 때 페이지가 아니라 표 칸만 밀리게 (일시 칸 고정) */
#layoutSidenav_content, #layoutSidenav_content main, .f-dt-box, .f-dt-scroll { min-width: 0; }
.f-dt-scroll { display: block; width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.f-dt-scroll table.dataTable { width: max-content !important; min-width: 100%; }
table.f-dt-table tbody td:first-child { background-clip: padding-box; }
table.f-dt-table tbody tr:hover td:first-child { background: #F1F7F8; }

/* ── 내가만든차트 목록: [통계] 버튼 · 길게 눌러 바꾸기 상태 (2026-11-05 밤) ── */
.f-mc-acts .f-ic.is-stat { width: auto; gap: 5px; padding: 0 11px; border-color: #E8C583; background: #FFF6E3; color: #8A5A00; font-weight: 700; }
.f-mc-acts .f-ic.is-stat:hover { border-color: #D9A441; background: #FFEDC7; color: #6E4700; }
.f-mc-acts .f-ic.is-stat span { display: inline !important; font-size: 13.5px; }
/* 새 줄: 칸 왼쪽 아래 작은 단추 (아이폰 앱과 같은 모양) */
.is-sorting .f-mt-br { position: absolute; left: 5px; bottom: 5px; z-index: 2; width: auto; height: 24px; padding: 0 8px; gap: 3px; border: 1px solid #C9D3D6; border-radius: 999px; background: #fff; color: #3A4A50; font-size: 11.5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.is-sorting .f-mt-br[aria-pressed=true] { border-color: var(--f-primary); background: var(--f-primary); color: #fff; }
.is-sorting .f-mt { padding-bottom: 26px; }
.is-sorting .f-mt-t { opacity: .5; }
.is-sorting .f-mc-grid { background: #F7FAFA; }
.is-sorting .f-mt { border: 1.5px dashed #2BB3A3 !important; }
/* 카드 아래: 안내 + [노드별 줄 나누기] [줄바꿈 모두 지우기] */
.is-sorting .f-mc-brbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 12px 12px; }
.f-mc-brbar p { grid-column: 1 / -1; margin: 2px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--f-primary); }
.f-mc-brbar p b { display: inline-flex; align-items: center; gap: 2px; }
.f-mc-brbar p svg { width: 13px; height: 13px; }
.f-mc-brbar button { height: 40px; border-radius: 10px; font-size: 13.5px; font-weight: 700; }
@media (max-width: 767.98px) {
    .f-mc-acts .f-ic.is-stat { padding: 0 9px; }
    .is-sorting .f-mt-br span { font-size: 11px; }
}

/* ── 그래프 값 띠 (PC): 항목 카드가 위로 지나가면 그래프 위에 붙음 (2026-11-05 밤) ── */
.f-ch-dock { position: fixed; z-index: 1020; padding: 8px 10px 9px; border: 1px solid var(--f-line); border-radius: 12px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 8px 22px rgba(16, 42, 50, .14); }
.f-ch-dock[hidden] { display: none; }
.f-ch-dock-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 6px; font-size: 13px; color: var(--f-text); }
.f-ch-dock-h b { font-weight: 800; font-variant-numeric: tabular-nums; }
.f-ch-dock-h button { height: 26px; padding: 0 10px; border: 1px solid var(--f-line); border-radius: 999px; background: #fff; color: var(--f-sub); font-size: 12px; font-weight: 600; cursor: pointer; }
.f-ch-dock-h button:hover { color: var(--f-primary); border-color: var(--f-primary-line); }
.f-ch-dock-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 6px; }
.f-dk { display: flex; align-items: center; gap: 6px; min-width: 0; height: 32px; padding: 0 9px; border: 1px solid var(--f-line); border-left: 3px solid var(--c); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.f-dk i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.f-dk-nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--f-sub); }
.f-dk b { flex: none; font-size: 15px; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; }
.f-dk small { flex: none; margin-left: -3px; font-size: 11px; color: var(--f-muted); }
.f-dk.is-off { opacity: .45; border-left-color: #C7D0D3; } .f-dk.is-off i { background: #C7D0D3; }
.f-dk:hover { border-color: var(--f-primary-line); }
@media (max-width: 767.98px) { .f-ch-dock { display: none !important; } }
.f-ch-dock-g { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.f-dk { height: 40px; }
.f-dk-nm { display: flex; flex-direction: column; line-height: 1.15; }
.f-dk-nm > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; color: #33444A; }
.f-dk-nm em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 11px; color: var(--f-muted); }
.f-dk b { font-size: 16px; }
/* 값 띠: 위 메뉴 바로 아래 · 그래프 상자 좌우에 딱 붙임 (떠 있는 느낌 없이) */
.f-ch-dock { box-sizing: border-box; padding: 8px 14px 10px; border: 1px solid var(--f-line); border-top: 0; border-radius: 0 0 14px 14px; background: rgba(255, 255, 255, .97); box-shadow: 0 6px 14px -6px rgba(16, 42, 50, .18); }
.f-ch-dock-h { margin: 0 0 6px; }
.f-ch-dock-g { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* =====================================================================
 *  다이어그램 (html/Diagram.php · js/farm_diagram.js) — 2026-11-05
 * ===================================================================== */
:root { --dg-H: #2F6FB5; --dg-O: #2E9E5B; --dg-I: #D9762B; --dg-H-s: #E6EEF8; --dg-O-s: #E5F4EA; --dg-I-s: #FCEFE3; }
.f-dg-bar { justify-content: space-between; margin-bottom: 10px; }
.f-dg-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--f-sub); }
.f-dg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.f-dg-legend i { width: 14px; height: 14px; border-radius: 4px; }
.f-dg-legend .is-H i { background: var(--dg-H-s); border: 2px solid var(--dg-H); }
.f-dg-legend .is-O i { background: var(--dg-O-s); border: 2px solid var(--dg-O); }
.f-dg-legend .is-I i { background: var(--dg-I-s); border: 2px solid var(--dg-I); }
.f-dg-legend em { font-style: normal; font-size: 12.5px; color: var(--f-muted); }

/* 노드 카드 */
.f-dg-nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 14px; }
.f-dg-node { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 11px 14px 10px 16px; border: 1px solid var(--f-line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.f-dg-node::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c, #C7D0D3); }
.f-dg-node.is-H { --c: var(--dg-H); --cs: var(--dg-H-s); } .f-dg-node.is-O { --c: var(--dg-O); --cs: var(--dg-O-s); } .f-dg-node.is-I { --c: var(--dg-I); --cs: var(--dg-I-s); }
.f-dg-node:hover { border-color: var(--f-primary-line); }
.f-dg-node.on { border-color: var(--c, var(--f-primary)); box-shadow: 0 0 0 2px var(--c, var(--f-primary)) inset, 0 4px 14px rgba(16, 42, 50, .08); }
.f-dg-node.is-skel { height: 104px; background: linear-gradient(90deg, #F2F5F6, #E9EEF0, #F2F5F6); background-size: 200% 100%; animation: f-skel 1.2s ease-in-out infinite; cursor: default; }
.f-dg-nt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.f-dg-nt strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; font-weight: 800; color: var(--f-text); }
.f-dg-nt em { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--cs, #EEF2F3); color: var(--c, var(--f-sub)); font-style: normal; font-size: 12px; font-weight: 800; }
.f-dg-nv { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.f-dg-nv > span { display: flex; flex-direction: column; font-size: 12px; color: var(--f-muted); }
.f-dg-nv small { font-size: 11.5px; } .f-dg-nv b { font-size: 19px; line-height: 1.15; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; }
.f-dg-nv .is-hd b { color: var(--c, var(--f-text)); }
.f-dg-ntm { font-size: 11.5px; font-style: italic; color: #8A979B; text-align: right; font-variant-numeric: tabular-nums; }
.f-dg-ntm i { margin-right: 6px; padding: 0 5px; border-radius: 5px; background: #FFF0E8; color: #B23C0B; font-style: normal; font-weight: 700; }
.f-dg-node.is-off { opacity: .8; }

/* 가운데: 다이어그램 + 오른쪽 */
.f-dg-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.f-dg-main > .f-ch-box, .f-dg-bottom > .f-ch-box { margin-bottom: 0; }
.f-dg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.f-dg-head > div strong { font-size: 16px; font-weight: 800; color: var(--f-text); margin-right: 8px; }
.f-dg-head > div span { font-size: 13px; color: var(--f-muted); }
.f-dg-probe { margin: 0; min-height: 20px; font-size: 13px; color: var(--f-sub); font-variant-numeric: tabular-nums; }
.f-dg-probe b { color: var(--f-text); } .f-dg-probe b.is-H { color: var(--dg-H); } .f-dg-probe b.is-O { color: var(--dg-O); } .f-dg-probe b.is-I { color: var(--dg-I); }
.f-dg-chart { height: 540px; }
.f-dg-chart .f-ch-loading, .f-dg-day .f-ch-loading { padding-top: 120px; }
.f-dg-tt { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--f-text); }
.f-dg-tt b { font-size: 14px; } .f-dg-tt span { font-weight: 800; } .f-dg-tt em { font-style: normal; color: var(--f-sub); }

.f-dg-side { position: sticky; top: calc(var(--f-top-h, 56px) + 12px); display: flex; flex-direction: column; gap: 12px; }
.f-dg-sel-nm { display: flex; flex-direction: column; }
.f-dg-sel-nm strong { font-size: 18px; font-weight: 800; color: var(--f-text); }
.f-dg-sel-nm span { font-size: 12.5px; color: var(--f-muted); font-style: italic; }
.f-dg-state { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #F2F5F6; border-left: 4px solid #C7D0D3; }
.f-dg-state b { font-size: 17px; font-weight: 800; } .f-dg-state span { font-size: 13px; color: var(--f-sub); }
.f-dg-state.is-H { background: var(--dg-H-s); border-color: var(--dg-H); } .f-dg-state.is-H b { color: var(--dg-H); }
.f-dg-state.is-O { background: var(--dg-O-s); border-color: var(--dg-O); } .f-dg-state.is-O b { color: var(--dg-O); }
.f-dg-state.is-I { background: var(--dg-I-s); border-color: var(--dg-I); } .f-dg-state.is-I b { color: var(--dg-I); }
.f-dg-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.f-dg-vals > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 3px; padding: 8px 10px; border: 1px solid var(--f-line); border-radius: 10px; }
.f-dg-vals > div span { flex: 1 1 100%; font-size: 12px; color: var(--f-muted); }
.f-dg-vals b { font-size: 22px; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; } .f-dg-vals small { font-size: 12px; color: var(--f-muted); }
.f-dg-vals .is-hd { grid-column: 1 / -1; }
.f-dg-vals b.is-H { color: var(--dg-H); } .f-dg-vals b.is-O { color: var(--dg-O); } .f-dg-vals b.is-I { color: var(--dg-I); }
.f-dg-leaf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 0; border-top: 1px solid var(--f-line-soft); }
.f-dg-leaf label { display: flex; flex-direction: column; margin: 0; } .f-dg-leaf label b { font-size: 14px; color: var(--f-text); } .f-dg-leaf label span { font-size: 12px; color: var(--f-muted); }
.f-dg-step { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--f-input); border-radius: 10px; overflow: hidden; background: #fff; }
.f-dg-step button { width: 34px; height: 38px; border: 0; background: #F6F8F9; color: var(--f-text); font-size: 18px; font-weight: 700; cursor: pointer; }
.f-dg-step button:hover { background: var(--f-primary-soft); color: var(--f-primary); }
.f-dg-step input { width: 46px; height: 38px; border: 0; text-align: right; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.f-dg-step input::-webkit-outer-spin-button, .f-dg-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.f-dg-step em { padding: 0 6px 0 2px; font-style: normal; font-size: 13px; color: var(--f-muted); }
.f-dg-tab { display: flex; } .f-dg-tab button { flex: 1; justify-content: center; }
.f-dg-calc { margin: 0; }
.f-dg-calc > div { display: flex; align-items: baseline; gap: 6px; padding: 7px 2px; border-bottom: 1px solid var(--f-line-soft); }
.f-dg-calc dt { flex: 1; margin: 0; font-size: 13.5px; font-weight: 800; color: #33444A; }
.f-dg-calc dt em { margin-left: 6px; font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--f-muted); }
.f-dg-calc dd { margin: 0; font-size: 16px; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; }
.f-dg-calc small { width: 34px; font-size: 11.5px; color: var(--f-muted); }
.f-dg-calc .is-key { background: var(--f-primary-soft); border-radius: 8px; padding-left: 8px; padding-right: 6px; border-bottom-color: transparent; }
.f-dg-calc .is-key dd { color: var(--f-primary); }
.f-dg-note { margin: 0; font-size: 12px; color: var(--f-muted); }

/* 아래: 24시간 · 오늘 */
.f-dg-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; margin-top: 14px; }
.f-dg-day { height: 260px; }
.f-dg-today { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-dg-today > div { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--f-line); border-radius: 10px; }
.f-dg-today span { font-size: 12.5px; color: var(--f-muted); }
.f-dg-today b { font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; }
.f-dg-today b i { margin-left: 2px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--f-muted); }
.f-dg-today small { font-size: 12px; color: var(--f-sub); font-variant-numeric: tabular-nums; }
.f-dg-today .is-ok { grid-column: 1 / -1; background: #F6F8F9; }
.f-dg-today .is-ok[data-good=y] { background: var(--dg-O-s); border-color: #BFE3CB; } .f-dg-today .is-ok[data-good=y] b { color: var(--dg-O); }
.f-dg-today .is-ok[data-good=m] { background: #FFF8E8; border-color: #F1D9A6; } .f-dg-today .is-ok[data-good=m] b { color: #A06A00; }
.f-dg-today .is-ok[data-good=n] { background: var(--dg-I-s); border-color: #F2CDAE; } .f-dg-today .is-ok[data-good=n] b { color: var(--dg-I); }

@media (max-width: 1199.98px) {
    .f-dg-main, .f-dg-bottom { grid-template-columns: minmax(0, 1fr); }
    .f-dg-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
    .f-dg-side > .f-dg-sel, .f-dg-side > .f-dg-vals { grid-column: 1; }
    .f-dg-side > .f-dg-leaf, .f-dg-side > .f-dg-tab, .f-dg-side > .f-dg-calc, .f-dg-side > .f-dg-note { grid-column: 2; }
    .f-dg-side > .f-dg-leaf { grid-row: 1; border-top: 0; padding-top: 0; } .f-dg-side > .f-dg-tab { grid-row: 2; align-self: start; } .f-dg-side > .f-dg-calc { grid-row: 3 / span 3; }
}
@media (max-width: 767.98px) {
    .f-dg-bar { gap: 8px; } .f-dg-legend { font-size: 12.5px; gap: 4px 10px; }
    .f-dg-nodes { display: flex; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .f-dg-nodes::-webkit-scrollbar { display: none; }
    .f-dg-node { flex: 0 0 74%; scroll-snap-align: start; }
    .f-dg-chart { height: 400px; }
    .f-dg-side { display: flex; }
    .f-dg-box, .f-ch-box.f-dg-chartbox { padding: 12px 10px; }
    .f-dg-day { height: 220px; }
}
.f-dg-today { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-dg-today b { font-size: 21px; }
.f-dg-tab { width: 100%; }
@media (max-width: 767.98px) { .f-dg-side { flex-direction: column; } .f-dg-head > div span { display: block; } }
/* 다이어그램 왼쪽 위 상태 표시 (예전 hd.gif · hd1.gif · hd2.gif, 그림이 없으면 같은 모양으로 그림) */
.f-dg-chart { position: relative; }
.f-dg-sign { position: absolute; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.f-dg-sign[hidden] { display: none; }
.f-dg-sign img { width: 96px; height: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.f-dg-sign p { margin: 0; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 12.5px; font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.f-dg-sign p b { margin-right: 6px; color: #22333A; font-weight: 700; }
.f-dg-sign p.is-H { color: var(--dg-H); } .f-dg-sign p.is-O { color: var(--dg-O); } .f-dg-sign p.is-I { color: var(--dg-I); }
.f-dg-sg { position: relative; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; justify-items: center; gap: 0 2px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.f-dg-sg b { font-size: 15px; font-weight: 800; line-height: 1; }
.f-dg-sg svg { width: 22px; height: 32px; }
.f-dg-sg i { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.f-dg-sg .v { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; grid-column: 2; grid-row: 1; }
.f-dg-sg .h { display: flex; flex-direction: row-reverse; align-items: center; gap: 2px; grid-column: 1; grid-row: 2; }
.f-dg-sg.is-H i { grid-column: 2; grid-row: 2; }
.f-dg-sg.is-I i { grid-column: 1; grid-row: 1; }
.f-dg-sg.is-I .v { grid-column: 1; grid-row: 2; flex-direction: column; } .f-dg-sg.is-I .h { grid-column: 2; grid-row: 1; flex-direction: row; }
.f-dg-sg.is-O { display: flex; gap: 6px; } .f-dg-sg.is-O i { width: 18px; height: 18px; }
@media (max-width: 767.98px) { .f-dg-sign img { width: 64px; } .f-dg-sg b { font-size: 12.5px; } .f-dg-sg svg { width: 16px; height: 24px; } .f-dg-sg i { width: 16px; height: 16px; } }
:root { --dg-H: #2B76C2; --dg-O: #4E9A2E; --dg-I: #C98700; --dg-H-s: #E5EFF9; --dg-O-s: #EAF4E3; --dg-I-s: #FBF1DA; }
.f-dg-chart.no-img .f-dg-sg { color: #33444A; filter: none; } .f-dg-chart.no-img .f-dg-sg i { background: #33444A; }
.f-dg-chart.no-img .f-dg-sg.is-H { color: var(--dg-H); } .f-dg-chart.no-img .f-dg-sg.is-H i { background: var(--dg-H); }
.f-dg-chart.no-img .f-dg-sg.is-I { color: var(--dg-I); } .f-dg-chart.no-img .f-dg-sg.is-I i { background: var(--dg-I); }
.f-dg-chart.no-img .f-dg-sg.is-O { color: var(--dg-O); } .f-dg-chart.no-img .f-dg-sg.is-O i { background: var(--dg-O); }
/* 노드 카드: 값과 단위를 한 줄로 */
.f-dg-nv .v { display: flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.f-dg-nv .v i { font-style: normal; font-size: 11.5px; color: var(--f-muted); }

/* =====================================================================
 *  온도요구도 (html/Chill.Dashboard.php) — 농가 웹 레이아웃에 맞춤 (2026-11-05)
 *   제목은 다른 화면처럼 맨 위 · 내용은 같은 흰 상자 · 색은 농가 웹 청록 계열
 * ===================================================================== */
.f-chill { padding: 18px 20px 22px; }
.f-chill .chill-root { --accent: #0B7C8B; --accent-tint: #E2F3F5; --accent-text: #08606C; --blue-tint: #EEF2F3;
    --bg-page: #F6F8F9; --surface-tint: #F2F5F6; --border: #E4EAEC; --border-strong: #D6E0E3; --text-primary: #22333A; --text-secondary: #536369; --text-muted: #7C8B90;
    font-family: inherit; }
.f-chill .chill-root .wrap { padding: 0; }
.f-chill .chill-root .app-header { align-items: center; gap: 10px 14px; padding: 0 0 14px; margin: 0 0 18px; border-bottom: 1px solid var(--border); }
.f-chill .chill-root .tabs { margin: 0; padding: 3px; border: 0; border-radius: 10px; background: #EEF2F3; }
.f-chill .chill-root .tabs button { height: 38px; padding: 0 18px; border-radius: 8px; color: var(--f-sub, #536369); font-weight: 600; }
.f-chill .chill-root .tabs button.on { background: #fff; color: var(--text-primary); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.f-chill .chill-root .tabs button:not(.on):hover { color: var(--accent); }
.f-chill .chill-root .selectors { align-items: center; flex-wrap: wrap; }
.f-chill .chill-root select.ctl { height: 40px; min-width: 150px; padding: 0 10px; border-radius: 10px; font-size: 14px; }
@media (max-width: 767.98px) {
    .f-chill { padding: 14px 12px 16px; }
    .f-chill .chill-root .app-header { flex-direction: column; align-items: stretch; }
    .f-chill .chill-root .tabs { display: flex; } .f-chill .chill-root .tabs button { flex: 1; padding: 0 6px; }
    .f-chill .chill-root .selectors { display: grid; grid-template-columns: 1fr 1fr; } .f-chill .chill-root select.ctl { min-width: 0; width: 100%; }
}
@media (max-width: 767.98px) { .f-chill .chill-root .selectors > :not(select) { grid-column: 1 / -1; justify-content: center; } }
/* 온도요구도 표 제목줄 (동 관리 · 시즌 관리): 회색 바탕 + 진한 글자 (데이터 표와 같게) */
.f-chill .chill-root table.list th { background: #F6F8F9; color: #33444A; font-weight: 700; border-bottom: 1px solid var(--border); }
.f-chill .chill-root .btn.primary:hover { background: #08606C; }

/* =====================================================================
 *  HD/VPD 계산기 (html/VpdCal.php · js/farm_vpd.js) — 2026-11-05
 * ===================================================================== */
.f-vp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; align-items: start; }
.f-vp > .f-ch-box { margin-bottom: 0; }
.f-vp-in { display: flex; flex-direction: column; gap: 4px; }
.f-vp-nodes { margin: 0 0 6px; } .f-vp-nodes[hidden] { display: none; }
.f-vp-nodes > span { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--f-muted); }
.f-vp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-vp-chips button { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 6px 11px; border: 1px solid var(--f-line); border-radius: 10px; background: #fff; text-align: left; cursor: pointer; }
.f-vp-chips button b { font-size: 13px; color: var(--f-text); } .f-vp-chips button span { font-size: 12px; color: var(--f-sub); font-variant-numeric: tabular-nums; }
.f-vp-chips button:hover { border-color: var(--f-primary-line); } .f-vp-chips button.on { border-color: var(--f-primary); box-shadow: 0 0 0 1px var(--f-primary) inset; background: var(--f-primary-soft); }
.f-vp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--f-line-soft); }
.f-vp-row label { display: flex; flex-direction: column; margin: 0; font-size: 15px; font-weight: 800; color: var(--f-text); }
.f-vp-row label small { font-size: 12px; font-weight: 500; color: var(--f-muted); }
.f-vp-field { display: inline-flex; align-items: center; flex: none; width: 190px; height: 46px; border: 1px solid var(--f-input); border-radius: 11px; background: #fff; overflow: hidden; }
.f-vp-field:focus-within { border-color: var(--f-primary); box-shadow: 0 0 0 3px rgba(11, 124, 139, .15); }
.f-vp-field input { flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 12px; border: 0; outline: 0; background: transparent; text-align: right; font-size: 19px; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; }
.f-vp-field input::placeholder { font-size: 14px; font-weight: 500; color: #A9B5B9; }
.f-vp-field em { flex: none; width: 34px; font-style: normal; font-size: 14px; color: var(--f-muted); }
.f-vp-sign { flex: none; width: 42px; height: 100%; border: 0; border-right: 1px solid var(--f-line); background: #F6F8F9; color: var(--f-text); font-size: 18px; font-weight: 800; cursor: pointer; }
.f-vp-sign:hover { background: var(--f-primary-soft); color: var(--f-primary); }
/* 엽온 스위치 */
.f-vp-switch { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--f-line-soft); cursor: pointer; }
.f-vp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f-vp-switch i { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #CBD5D8; transition: background .15s; }
.f-vp-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.f-vp-switch input:checked + i { background: var(--f-primary); } .f-vp-switch input:checked + i::after { transform: translateX(18px); }
.f-vp-switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(11, 124, 139, .25); }
.f-vp-switch span { display: flex; flex-direction: column; } .f-vp-switch b { font-size: 15px; color: var(--f-text); } .f-vp-switch small { font-size: 12px; color: var(--f-muted); }
.f-vp-leaf { padding: 2px 0 0 14px; border-left: 3px solid var(--f-primary-line); margin: 4px 0; } .f-vp-leaf[hidden] { display: none; }
.f-vp-go { justify-content: center; height: 48px; margin-top: 12px; font-size: 15.5px; }
.f-vp-go svg { width: 19px; height: 19px; }
/* 결과 */
.f-vp-out { display: flex; flex-direction: column; gap: 12px; }
.f-vp-out .f-dg-tab button { height: 40px; font-size: 15px; } .f-vp-out .f-dg-tab small { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--f-muted); }
.f-vp-state { margin: 0; } .f-vp-state[hidden] { display: none; }
.f-vp-list { margin: 0; border: 1px solid var(--f-line); border-radius: 12px; overflow: hidden; } .f-vp-list[hidden] { display: none; }
.f-vp-list > div { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--f-line-soft); }
.f-vp-list > div:last-child { border-bottom: 0; }
.f-vp-list dt { margin: 0; font-size: 15px; font-weight: 800; color: #33444A; }
.f-vp-d { margin: 0; font-size: 13.5px; color: var(--f-sub); } .f-vp-d small { margin-left: 4px; font-size: 12px; color: var(--f-muted); }
.f-vp-v { margin: 0; min-width: 64px; text-align: right; font-size: 22px; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; }
.f-vp-list .is-key { background: var(--f-primary-soft); } .f-vp-list .is-key .f-vp-v { color: var(--f-primary); }
.f-vp:not(.leaf-on) .f-vp-list .is-leaf { opacity: .45; }
.f-vp:not(.leaf-on) .f-vp-list .is-leaf .f-vp-d::after { content: " · 엽온을 넣으면 계산"; font-size: 12px; color: var(--f-muted); }
.f-vp-dew { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 12px 16px; border: 1px solid var(--f-line); border-radius: 12px; }
.f-vp-dew > div b { margin-right: 10px; font-size: 15px; font-weight: 800; color: #33444A; } .f-vp-dew > div span { font-size: 13.5px; color: var(--f-sub); }
.f-vp-dew p { margin: 0; } .f-vp-dew p b { font-size: 22px; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; } .f-vp-dew p em { margin-left: 3px; font-style: normal; font-size: 13px; color: var(--f-muted); }
.f-vp-dew small { grid-column: 1 / -1; font-size: 12.5px; color: var(--f-muted); } .f-vp-dew small:empty { display: none; }
.f-vp-dew small.is-warn { color: #B23C0B; font-weight: 700; }
.f-vp:not(.is-done) .f-vp-v, .f-vp:not(.is-done) #dew_val { color: #B5C0C4; }
@media (max-width: 991.98px) { .f-vp { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) {
    .f-vp-field { width: 160px; }
    .f-vp-list > div { grid-template-columns: 54px minmax(0, 1fr) auto; padding: 11px 12px; }
    .f-vp-v, .f-vp-dew p b { font-size: 20px; }
}

/* =====================================================================
 *  공지알림 · 공유하기 · 농가정보 (2026-11-05)
 * ===================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
/* 공지 */
.f-nt .f-dg-head { align-items: center; }
.f-nt-hint { font-size: 12.5px; color: var(--f-muted); }
.f-nt-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--f-line); }
.f-nt-item { border-bottom: 1px solid var(--f-line-soft); }
.f-nt-item > a, .f-nt-item > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 16px; padding: 14px 6px; color: inherit; text-decoration: none; }
.f-nt-item > a:hover { background: #F6F8F9; }
.f-nt-item > a:hover .f-nt-t b { color: var(--f-primary); }
.f-nt-item.is-skel { height: 56px; margin: 6px 0; border: 0; border-radius: 8px; background: linear-gradient(90deg, #EEF2F7 25%, #F6F8FB 50%, #EEF2F7 75%); background-size: 200% 100%; animation: f-skel 1.2s ease-in-out infinite; }
.f-nt-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.f-nt-t b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; font-weight: 700; color: var(--f-text); }
.f-nt-new { flex: none; padding: 1px 6px; border-radius: 5px; background: #E5484D; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; }
.f-nt-m { display: flex; gap: 10px; font-size: 13px; color: var(--f-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-nt-go { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 11px; border: 1px solid var(--f-line); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--f-sub); white-space: nowrap; }
.f-nt-go svg { width: 15px; height: 15px; }
.f-nt-item > a:hover .f-nt-go { border-color: var(--f-primary-line); color: var(--f-primary); }
.f-nt-go.is-none { border-style: dashed; color: var(--f-muted); }
.f-nt-list .f-empty { margin: 14px 0 0; }
.f-nt-pager { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.f-nt-pager:empty { display: none; }
.f-nt-pager button { min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--f-line); border-radius: 9px; background: #fff; color: var(--f-sub); font-weight: 700; cursor: pointer; }
.f-nt-pager button.on { border-color: var(--f-primary); background: var(--f-primary); color: #fff; }
.f-nt-pager button:disabled { opacity: .4; cursor: default; }
@media (max-width: 767.98px) {
    .f-nt-hint { display: none; }
    .f-nt-item > a, .f-nt-item > div { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 2px; }
    .f-nt-t { grid-column: 1 / -1; } .f-nt-t b { white-space: normal; font-size: 15px; }
    .f-nt-go { height: 30px; }
}

/* 공유하기 */
.f-sh-bar { justify-content: space-between; margin-bottom: 12px; }
.f-sh-tabs button b, .f-fi-tabs button b { margin-left: 4px; padding: 0 7px; border-radius: 999px; background: #DDE4E6; font-size: 12px; color: var(--f-sub); }
.f-sh-tabs button.on b, .f-fi-tabs button.on b { background: var(--f-primary-soft); color: var(--f-primary); }
.f-sh-tabs button, .f-fi-tabs button { height: 40px; padding: 0 16px; font-size: 14px; }
.f-sh-pane[hidden], .f-fi-pane[hidden] { display: none; }
.f-sh-tip { margin: 0 0 12px 2px; font-size: 13px; color: var(--f-sub); }
.f-sh-tip a { color: var(--f-primary); font-weight: 700; }
.f-sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.f-sh-farm { border: 1px solid var(--f-line); border-radius: var(--f-radius); background: #fff; overflow: hidden; }
.f-sh-farm header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--f-line-soft); }
.f-sh-farm header strong { display: block; font-size: 15.5px; font-weight: 800; color: var(--f-text); } .f-sh-farm header span { font-size: 12.5px; color: var(--f-muted); }
.f-sh-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-size: 16px; font-weight: 800; }
.f-sh-farm.is-in .f-sh-av { background: #E7E8F4; color: var(--f-sh, #3A3C70); }
.f-sh-farm.is-out .f-sh-av { background: var(--f-primary-soft); color: var(--f-primary); }
.f-sh-farm ul { margin: 0; padding: 8px 10px 10px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.f-sh-farm li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: #F6F8F9; }
.f-sh-node { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.f-sh-node b { font-size: 14px; color: var(--f-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .f-sh-node small { font-size: 11.5px; color: var(--f-muted); }
.f-sh-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--f-line); border-radius: 8px; background: #fff; color: var(--f-muted); cursor: pointer; }
.f-sh-x svg { width: 15px; height: 15px; } .f-sh-x:hover { border-color: #F1C9B8; color: #B23C0B; background: #FFF4EE; }
/* 공유 창 */
.f-sh-step + .f-sh-step { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--f-line-soft); }
.f-sh-sh { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.f-sh-sh b { font-size: 15px; color: var(--f-text); } .f-sh-sh small { font-size: 12.5px; color: var(--f-muted); }
.f-sh-n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--f-primary); color: #fff; font-size: 12px; font-weight: 800; }
.f-sh-all { margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--f-sub); cursor: pointer; }
.f-sh-all input, .f-sh-pick input { width: 18px; height: 18px; accent-color: var(--f-primary); }
.f-sh-nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.f-sh-pick { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--f-line); border-radius: 10px; cursor: pointer; }
.f-sh-pick span { display: flex; flex-direction: column; min-width: 0; } .f-sh-pick b { font-size: 14px; color: var(--f-text); } .f-sh-pick small { font-size: 11.5px; color: var(--f-muted); }
.f-sh-pick.on { border-color: var(--f-primary); background: var(--f-primary-soft); }
.f-sh-find { width: 100%; }
.f-sh-hits { max-height: 220px; margin: 6px 0 0; padding: 4px; overflow-y: auto; list-style: none; border: 1px solid var(--f-line); border-radius: 10px; }
.f-sh-hits[hidden] { display: none; }
.f-sh-hits button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.f-sh-hits button:hover { background: #F6F8F9; } .f-sh-hits button b { font-size: 14px; color: var(--f-text); }
.f-sh-hits button span { font-size: 12.5px; font-weight: 700; color: var(--f-primary); } .f-sh-hits button.on { background: var(--f-primary-soft); } .f-sh-hits button.on span { color: var(--f-sub); }
.f-sh-nohit { padding: 10px; font-size: 13px; color: var(--f-muted); }
.f-sh-sel { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.f-sh-chip { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--f-primary); color: #fff; font-size: 13.5px; font-weight: 700; }
.f-sh-chip button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.f-sh-none { margin: 0; font-size: 13px; color: var(--f-muted); }
@media (max-width: 767.98px) { .f-sh-bar .f-seg { flex: 1; } .f-sh-tabs button { flex: 1; padding: 0 6px; font-size: 13px; } .f-sh-bar { flex-wrap: wrap; } .f-sh-bar #shNew { width: 100%; justify-content: center; } }

/* 농가정보 */
.f-fi-bar { margin-bottom: 12px; }
.f-fi-farm { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; }
.f-fi-farm > .f-ch-box { margin-bottom: 0; }
.f-fi-prof { display: flex; flex-direction: column; align-items: center; text-align: center; }
.f-fi-av { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 6px 0 10px; border-radius: 50%; background: var(--f-primary-soft); color: var(--f-primary); font-size: 30px; font-weight: 800; }
.f-fi-prof strong { font-size: 19px; font-weight: 800; color: var(--f-text); } .f-fi-prof > span { font-size: 13px; color: var(--f-muted); }
.f-fi-prof dl { width: 100%; margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--f-line-soft); text-align: left; }
.f-fi-prof dl div { display: flex; justify-content: space-between; padding: 5px 2px; font-size: 13.5px; } .f-fi-prof dt { font-weight: 500; color: var(--f-muted); } .f-fi-prof dd { margin: 0; font-weight: 700; color: var(--f-text); }
.f-fi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.f-fi-f { display: flex; flex-direction: column; gap: 5px; margin: 0; } .f-fi-f > span:first-child { font-size: 13px; font-weight: 700; color: var(--f-sub); }
.f-fi-f.is-wide { grid-column: span 2; }
.f-fi-f input, .f-fi-nm input, .f-fi-it input[type=text], .f-fi-it select { height: 44px; padding: 0 12px; border: 1px solid var(--f-input); border-radius: 10px; background: #fff; font-size: 15px; color: var(--f-text); }
.f-fi-f input:focus, .f-fi-nm input:focus, .f-fi-it input:focus, .f-fi-it select:focus { outline: 0; border-color: var(--f-primary); box-shadow: 0 0 0 3px rgba(11, 124, 139, .15); }
.f-fi-act { display: flex; justify-content: flex-end; margin-top: 16px; } .f-fi-act .f-tbtn { min-width: 140px; height: 44px; justify-content: center; }
.f-fi-nodes { margin: 0; padding: 0; list-style: none; }
.f-fi-nodes li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 76px auto; align-items: center; gap: 10px 14px; padding: 10px 4px; border-bottom: 1px solid var(--f-line-soft); }
.f-fi-nodes li.is-dirty .f-fi-nm input { border-color: #E5A93B; background: #FFFBF0; }
.f-fi-no { font-size: 12.5px; color: var(--f-muted); } .f-fi-no b { display: block; font-size: 15px; color: var(--f-text); font-variant-numeric: tabular-nums; }
.f-fi-nm { margin: 0; } .f-fi-nm input { width: 100%; }
.f-fi-cnt { font-size: 13px; color: var(--f-sub); } .f-fi-cnt b { color: var(--f-text); }
.f-fi-btns { display: flex; gap: 6px; } .f-fi-btns .f-tbtn { height: 40px; } .f-fi-btns .node_edit:not(:disabled) { border-color: #E5A93B; color: #8A5A00; background: #FFF6E3; }
#nodeAll:not(:disabled) { border-color: var(--f-primary); background: var(--f-primary); color: #fff; }
.f-fi-pw { max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.f-fi-pwin { position: relative; display: block; } .f-fi-pwin input { width: 100%; padding-right: 72px; }
.f-fi-eye { position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: #F2F5F6; color: var(--f-sub); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.f-fi-pwmsg { min-height: 18px; margin: 0; font-size: 13px; color: var(--f-muted); } .f-fi-pwmsg.is-ok { color: #2E7D4F; } .f-fi-pwmsg.is-bad { color: #B23C0B; }
.f-fi-pw .f-fi-act { justify-content: flex-start; margin-top: 4px; }
/* 항목 설정 창 */
.f-fi-ithelp { margin: 0 0 12px; padding: 9px 12px; border-radius: 9px; background: #F6F8F9; font-size: 13px; color: var(--f-sub); }
.f-fi-items { display: flex; flex-direction: column; gap: 8px; }
.f-fi-it { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) auto 120px; align-items: end; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--f-line); border-radius: 11px; }
.f-fi-it.is-on { border-color: var(--f-primary-line); background: #FBFEFE; }
.f-fi-it label, .f-fi-ital { display: flex; flex-direction: column; gap: 4px; margin: 0; } .f-fi-it label > span:first-child, .f-fi-ital > span { font-size: 12px; font-weight: 700; color: var(--f-muted); }
.f-fi-ital > div { display: flex; align-items: center; gap: 6px; } .f-fi-ital input { flex: 1; min-width: 0; text-align: right; } .f-fi-ital em { font-style: normal; color: var(--f-muted); }
.f-fi-itsw { flex-direction: row !important; align-items: center; height: 44px; padding: 0 !important; border: 0 !important; } .f-fi-itsw b { font-size: 13px; white-space: nowrap; }
@media (max-width: 991.98px) { .f-fi-farm { grid-template-columns: minmax(0, 1fr); } .f-fi-prof { flex-direction: row; flex-wrap: wrap; text-align: left; gap: 0 12px; } .f-fi-prof .f-fi-av { margin: 0; width: 56px; height: 56px; font-size: 24px; } .f-fi-prof dl { flex-basis: 100%; } }
@media (max-width: 767.98px) {
    .f-fi-tabs { display: flex; width: 100%; } .f-fi-tabs button { flex: 1; padding: 0 4px; font-size: 13px; }
    .f-fi-grid { grid-template-columns: minmax(0, 1fr); } .f-fi-f.is-wide { grid-column: auto; }
    .f-fi-act .f-tbtn { width: 100%; }
    .f-fi-nodes li { grid-template-columns: minmax(0, 1fr) auto; } .f-fi-nm { grid-column: 1 / -1; grid-row: 2; } .f-fi-btns { grid-column: 1 / -1; } .f-fi-btns .f-tbtn { flex: 1; justify-content: center; }
    .f-fi-it { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .f-fi-itnm, .f-fi-ital { grid-column: 1 / -1; }
    #nodeAll { width: 100%; justify-content: center; }
}

/* ── 공유하기: 위아래 두 칸 (2026-11-05 밤) ── */
.f-sh-sec { padding: 0; overflow: hidden; }
.f-sh-sec + .f-sh-sec { margin-top: 14px; }
.f-sh-hd { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--f-line-soft); }
.f-sh-hd > div { flex: 1; min-width: 0; }
.f-sh-hd h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--f-text); }
.f-sh-hd h2 b { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #EEF2F3; font-size: 13px; color: var(--f-sub); vertical-align: 2px; }
.f-sh-hd p { margin: 2px 0 0; font-size: 13px; color: var(--f-muted); } .f-sh-hd p a { color: var(--f-primary); font-weight: 700; }
.f-sh-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; }
.f-sh-ic svg { width: 22px; height: 22px; }
.f-sh-sec.is-out .f-sh-ic { background: var(--f-primary-soft); color: var(--f-primary); }
.f-sh-sec.is-in .f-sh-ic { background: #E7E8F4; color: var(--f-sh, #3A3C70); }
.f-sh-sec.is-out { border-top: 3px solid var(--f-primary); } .f-sh-sec.is-in { border-top: 3px solid var(--f-sh, #3A3C70); }
.f-sh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.f-sh-farm header { gap: 10px; padding: 12px 14px; }
.f-sh-farm header strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-sh-cnt { flex: none; padding: 2px 9px; border-radius: 999px; background: #EEF2F3; font-size: 12px !important; font-weight: 700; color: var(--f-sub) !important; }
.f-sh-av { width: 34px; height: 34px; font-size: 14.5px; }
.f-sh-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 14px; }
.f-sh-nc { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 12px; border-radius: 9px; color: #fff; font-size: 14px; }
.f-sh-nc b { font-weight: 700; }
.f-sh-farm.is-out .f-sh-nc { background: var(--f-my, #1B4152); padding-right: 4px; }
.f-sh-farm.is-in .f-sh-nc { background: var(--f-sh, #3A3C70); }
.f-sh-nc button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 4px; border: 0; border-radius: 7px; background: transparent; color: rgba(255,255,255,.8); cursor: pointer; }
.f-sh-nc button svg { width: 14px; height: 14px; } .f-sh-nc button:hover { background: rgba(255,255,255,.18); color: #fff; }
/* 비었을 때 */
.f-sh-empty { display: flex; align-items: center; gap: 28px; padding: 26px 28px 28px; }
.f-sh-empty strong { display: block; font-size: 16px; color: var(--f-text); }
.f-sh-empty p { margin: 6px 0 12px; font-size: 13.5px; line-height: 1.65; color: var(--f-sub); } .f-sh-empty.is-in p { margin-bottom: 0; }
.f-sh-empty .f-tbtn svg { width: 17px; height: 17px; }
.f-sh-ill { flex: none; display: flex; align-items: center; gap: 0; }
.f-sh-ill span { display: inline-flex; align-items: center; justify-content: center; width: 78px; height: 78px; border-radius: 20px; font-size: 13px; font-weight: 800; }
.f-sh-ill .a { background: var(--f-primary-soft); color: var(--f-primary); border: 2px solid var(--f-primary-line); }
.f-sh-ill .b { background: #EEEFF7; color: var(--f-sh, #3A3C70); border: 2px dashed #C9CBE3; }
.f-sh-ill i { position: relative; width: 56px; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, #B7C4C8 0 6px, transparent 6px 11px); }
.f-sh-ill i::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid #B7C4C8; border-right: 0; }
@media (max-width: 767.98px) {
    .f-sh-hd { flex-wrap: wrap; padding: 14px; } .f-sh-hd > .f-tbtn { width: 100%; justify-content: center; }
    .f-sh-list { grid-template-columns: minmax(0, 1fr); padding: 12px 14px 14px; }
    .f-sh-empty { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 16px 20px; text-align: center; }
    .f-sh-ill { justify-content: center; } .f-sh-ill span { width: 64px; height: 64px; font-size: 12px; } .f-sh-ill i { width: 36px; }
    .f-sh-empty .f-tbtn { width: 100%; justify-content: center; }
}
@media (max-width: 767.98px) { .f-sh-sec.is-empty .f-sh-hd > .f-tbtn { display: none; } }

/* ── 농가정보: 왼쪽 요약 + 메뉴 · 오른쪽 내용 (2026-11-05 밤) ── */
.f-fi-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.f-fi-wrap > .f-ch-box, .f-fi-main > .f-ch-box { margin-bottom: 0; }
.f-fi-side { position: sticky; top: calc(var(--f-top-h, 56px) + 14px); padding: 0; overflow: hidden; }
.f-fi-me { display: flex; align-items: center; gap: 12px; padding: 20px 18px 16px; background: linear-gradient(135deg, #E9F5F6, #F6FAFA); border-bottom: 1px solid var(--f-line-soft); }
.f-fi-me .f-fi-av { flex: none; width: 54px; height: 54px; margin: 0; font-size: 22px; background: #fff; box-shadow: 0 0 0 3px var(--f-primary-line); }
.f-fi-me strong { display: block; font-size: 17px; font-weight: 800; color: var(--f-text); line-height: 1.25; word-break: break-all; }
.f-fi-me span { font-size: 12.5px; color: var(--f-muted); }
.f-fi-stat { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-bottom: 1px solid var(--f-line-soft); }
.f-fi-stat div { padding: 12px 6px; text-align: center; } .f-fi-stat div + div { border-left: 1px solid var(--f-line-soft); }
.f-fi-stat dt { font-size: 11.5px; font-weight: 600; color: var(--f-muted); }
.f-fi-stat dd { margin: 2px 0 0; font-size: 19px; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; }
.f-fi-stat dd small { margin-left: 1px; font-size: 11.5px; font-weight: 600; color: var(--f-muted); }
.f-fi-stat dd.is-txt { font-size: 14px; line-height: 1.9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-fi-menu { display: flex; flex-direction: column; padding: 8px; gap: 2px; }
.f-fi-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 10px; border: 0; border-radius: 11px; background: transparent; text-align: left; cursor: pointer; color: var(--f-sub); }
.f-fi-menu .i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #F2F5F6; color: var(--f-sub); }
.f-fi-menu .i svg { width: 20px; height: 20px; }
.f-fi-menu .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.f-fi-menu .t b { font-size: 15px; color: var(--f-text); } .f-fi-menu .t small { font-size: 12px; color: var(--f-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-fi-menu > button > svg { flex: none; width: 16px; height: 16px; color: #B5C0C4; }
.f-fi-menu button:hover { background: #F6F8F9; }
.f-fi-menu button.on { background: var(--f-primary-soft); }
.f-fi-menu button.on .i { background: var(--f-primary); color: #fff; } .f-fi-menu button.on .t b { color: var(--f-primary); } .f-fi-menu button.on > svg { color: var(--f-primary); }
.f-fi-sec { padding: 0; overflow: hidden; border-top: 3px solid var(--f-primary); }
.f-fi-sec[hidden] { display: none; }
.f-fi-sec .f-sh-ic { background: var(--f-primary-soft); color: var(--f-primary); }
.f-fi-body { padding: 18px 20px 6px; }
.f-fi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.f-fi-f.is-full { grid-column: 1 / -1; }
.f-fi-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 14px 20px; border-top: 1px solid var(--f-line-soft); background: #FAFBFB; }
.f-fi-foot > span { font-size: 12.5px; color: var(--f-muted); } .f-fi-foot > span b { color: var(--f-sub); }
.f-fi-foot .f-tbtn { min-width: 150px; height: 44px; justify-content: center; }
.f-fi-sec .f-fi-nodes { padding: 4px 20px 14px; }
.f-fi-sec .f-fi-nodes li { grid-template-columns: 74px minmax(0, 1fr) 70px auto; padding: 12px 0; }
.f-fi-no { display: flex; flex-direction: column; } .f-fi-no small { font-size: 11px; color: var(--f-muted); } .f-fi-no b { display: inline; }
.f-fi-pw { max-width: 520px; }
.f-fi-pw .f-fi-f + .f-fi-f { margin-top: 12px; }
.f-fi-pw .f-fi-pwmsg { margin-top: 10px; }
@media (max-width: 991.98px) {
    .f-fi-wrap { grid-template-columns: minmax(0, 1fr); }
    .f-fi-side { position: static; }
    .f-fi-menu { flex-direction: row; overflow-x: auto; scrollbar-width: none; } .f-fi-menu::-webkit-scrollbar { display: none; }
    .f-fi-menu button { flex: 1 0 auto; width: auto; flex-direction: column; gap: 4px; padding: 8px 10px; text-align: center; }
    .f-fi-menu .t small, .f-fi-menu > button > svg { display: none; } .f-fi-menu .i { width: 34px; height: 34px; } .f-fi-menu .t b { font-size: 13.5px; }
}
@media (max-width: 767.98px) {
    .f-fi-me { padding: 16px 14px 12px; }
    .f-fi-body { padding: 14px 14px 4px; } .f-fi-grid { grid-template-columns: minmax(0, 1fr); }
    .f-fi-foot { flex-direction: column; align-items: stretch; padding: 12px 14px; } .f-fi-foot > span { text-align: center; } .f-fi-foot .f-tbtn { width: 100%; }
    .f-fi-sec .f-fi-nodes { padding: 2px 14px 10px; }
    .f-fi-sec .f-fi-nodes li { grid-template-columns: minmax(0, 1fr) auto; } .f-fi-no { flex-direction: row; gap: 4px; align-items: baseline; }
    .f-fi-sec .f-sh-hd > #nodeAll { width: 100%; justify-content: center; }
}

/* ── 내가만든차트: 노드 이름 보기 [숨김 | 공유만 | 모두] (2026-11-13) ── */
.node-none .f-mt-nn, .node-share .f-mt.is-my .f-mt-nn { display: none; }
/* 노드 이름 · 농가 이름이 둘 다 안 보이는 칸은 위쪽 띠를 얇은 색 줄로 (내 노드 · 공유 노드 색 구분은 남김) */
.node-none.farm-none .f-mt-node,
.node-none.farm-share .f-mt.is-my .f-mt-node,
.node-share.farm-none .f-mt.is-my .f-mt-node,
.node-share.farm-share .f-mt.is-my .f-mt-node { min-height: 4px; padding: 0; font-size: 0; }
.node-none.farm-none .f-mt-node > *,
.node-none.farm-share .f-mt.is-my .f-mt-node > *,
.node-share.farm-none .f-mt.is-my .f-mt-node > *,
.node-share.farm-share .f-mt.is-my .f-mt-node > * { display: none; }
/* 순서 바꾸는 중에는 어느 노드인지 알아야 하므로 항상 보임 */
.is-sorting .f-mt-node { min-height: 0 !important; padding: 6px 6px 5px !important; font-size: 13.5px !important; }
.is-sorting .f-mt-nn { display: block !important; }
.is-sorting .f-mt.is-share .f-mt-node > svg { display: block !important; }
/* 고르기 두 개(농가 이름 · 노드 이름)를 나란히 */
.f-mc-node { margin-left: 8px; }
@media (max-width: 767.98px) { .f-mc-node { margin-left: 0; } }

/* ── 내가만든차트 그래프 화면: 노드 이름 보기 (2026-11-13) ── */
.node-none .f-ch-node b, .node-share .f-ch-node:not(.is-share) b { display: none; }
/* 노드 이름 · 농가 이름이 둘 다 안 보이면 그 줄 자체를 없앰 */
.node-none.farm-none .f-ch-node,
.node-none.farm-share .f-ch-node:not(.is-share),
.node-share.farm-none .f-ch-node:not(.is-share),
.node-share.farm-share .f-ch-node:not(.is-share) { display: none; }
.node-none .f-ch-node em, .node-share .f-ch-node:not(.is-share) em { margin-top: 0; }

/* ── 통계 [분석] 탭 (2026-11-19): 적정 범위 · 결로 위험 · 비교 · 한눈에 요약 — js/farm_stats.js ── */
.f-an-tabs { display: flex; gap: 6px; margin: 0 0 14px; padding: 6px; border: 1px solid #C9D6DA; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(20, 40, 46, .06); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.f-an-tabs::-webkit-scrollbar { display: none; }
.f-an-tabs button { flex: 1 0 auto; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; background: #F1F5F6; color: var(--f-text); font-size: 15px; font-weight: 700; white-space: nowrap; transition: background-color .12s, color .12s; }
.f-an-tabs button:hover { background: #E2F0F1; color: #0B5C68; }
.f-an-tabs button.on { background: #0B7C8B; border-color: #0B7C8B; color: #fff; box-shadow: 0 2px 6px rgba(11, 124, 139, .28); }
.f-an-tabs button:focus-visible { outline: 2px solid #0B5C68; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .f-an-tabs button { transition: none; } }
.f-an-set { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--f-line); border-radius: 12px; background: #fff; font-size: 13.5px; color: var(--f-sub); }
.f-an-set b { color: var(--f-text); font-weight: 700; }
.f-an-set i { font-style: normal; color: var(--f-muted); }
.f-an-set input { width: 76px; height: 38px; padding: 0 8px; border: 1px solid var(--f-input); border-radius: 9px; background: #fff; font-size: 15px; font-weight: 600; text-align: center; color: var(--f-text); font-variant-numeric: tabular-nums; }
.f-an-set input:focus { outline: 2px solid var(--f-main, #0B7C8B); outline-offset: 0; border-color: transparent; }
.f-an-set .f-btn { flex: 0 0 auto; width: auto; height: 38px; padding: 0 16px; }
.f-an-link { height: 38px; padding: 0 6px; border: 0; background: none; color: var(--f-sub); font-size: 13px; text-decoration: underline; }
.f-an-src { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--f-muted); }
.f-an-ask { margin: 18px 0; line-height: 1.7; }
.f-an-na { color: var(--f-muted); font-weight: 400; }
.f-an-sum dd { font-variant-numeric: tabular-nums; }
.f-an-sum .is-in { background: #EEF8F8; border-color: #BFE0E3; } .f-an-sum .is-in dt { color: #0B5C68; }
.f-an-sum .is-low { background: #F0F5FC; border-color: #C9D9EE; } .f-an-sum .is-low dt { color: #2B5FA8; }
.f-an-sum .is-high { background: #FDF3EC; border-color: #F0D2BD; } .f-an-sum .is-high dt { color: #A8501A; }
.f-an-ttl { margin: 2px 2px 8px; font-size: 14.5px; font-weight: 700; color: var(--f-text); }
.f-an-ttl small { margin-left: 6px; font-size: 12.5px; font-weight: 500; color: var(--f-muted); }
.f-an-ttl small b { color: var(--f-text); }
.f-an-rows { list-style: none; margin: 6px 0 0; padding: 0; }
.f-an-rows li { display: grid; grid-template-columns: 132px minmax(120px, 1fr) minmax(170px, 40%); align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.f-an-rows .d { color: var(--f-text); font-weight: 600; white-space: nowrap; }
.f-an-rows .d.sun { color: #C0392B; } .f-an-rows .d.sat { color: #2B5FA8; }
.f-an-rows .bar { display: flex; height: 18px; border-radius: 5px; overflow: hidden; background: #F3F6F7; }
.f-an-rows .bar i { display: block; height: 100%; }
.f-an-rows .bar .lo { background: #3E7CC4; } .f-an-rows .bar .in { background: #0B7C8B; } .f-an-rows .bar .hi { background: #D9722E; } .f-an-rows .bar .no { background: #DDE3E6; }
.f-an-rows .t { color: var(--f-sub); }
.f-an-axis { display: grid; grid-template-columns: 132px minmax(120px, 1fr) minmax(170px, 40%); gap: 10px; margin: 2px 0 4px; font-size: 11px; color: var(--f-muted); }
.f-an-axis span { grid-column: 2; grid-row: 1; }
.f-an-axis span:nth-child(1) { justify-self: start; } .f-an-axis span:nth-child(2) { margin-left: 25%; transform: translateX(-50%); justify-self: start; }
.f-an-axis span:nth-child(3) { justify-self: center; } .f-an-axis span:nth-child(4) { margin-left: 75%; transform: translateX(-50%); justify-self: start; } .f-an-axis span:nth-child(5) { justify-self: end; }
.f-an-cmp th[scope=row] { text-align: left; padding-left: 14px; background: #fff; color: var(--f-text); border-bottom: 1px solid #EEF2F3; }
.f-an-cmp th small, .f-an-cmp td small { margin-left: 3px; font-size: 11.5px; font-weight: 500; color: var(--f-muted); }
.f-an-cmp thead th small { display: block; margin: 1px 0 0; }
.f-an-cmp .c-now { background: #F2FAFA; font-weight: 700; } .f-an-cmp thead .c-now { color: #0B5C68; }
.f-an-cmp tr.me th, .f-an-cmp tr.me td { background: #F2FAFA; font-weight: 700; }
.f-an-sumbox { padding: 16px 18px; border: 1px solid var(--f-line); border-radius: 12px; background: #fff; }
.f-an-lines { list-style: none; margin: 10px 0 0; padding: 0; }
.f-an-lines li { position: relative; margin: 0 0 10px; padding: 0 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--f-text); }
.f-an-lines li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: #B7C3C7; }
.f-an-lines li.is-ok::before { background: #0B7C8B; } .f-an-lines li.is-warn::before { background: #D9722E; } .f-an-lines li.is-na::before { background: #DDE3E6; }
.f-an-lines b { font-weight: 700; color: #0B5C68; }
.f-an-acts { display: flex; gap: 8px; margin-top: 14px; }
.f-an-acts .f-btn, .f-an-set .f-btn { flex: 0 0 auto; width: auto; min-height: 38px; padding: 0 16px; border: 1px solid var(--f-line); border-radius: 10px; background: #F1F5F6; color: var(--f-text); font-size: 14px; font-weight: 600; }
.f-an-acts .f-btn:hover, .f-an-set .f-btn:hover { background: #E6ECEE; }
@media (max-width: 640px) {
    .f-an-rows li, .f-an-axis { grid-template-columns: 118px minmax(0, 1fr); }
    .f-an-rows .t { grid-column: 1 / -1; margin-top: -2px; }
    .f-an-set input { width: 68px; }
    .f-an-lines li { font-size: 14.5px; }
}

/* ── 다이어그램: 폰 화면 정리 (2026-11-20) ──
 *  새로고침이 아래 줄로 떨어지던 것 → 구분 표시 옆에 고정 · 노드 카드를 작게 (한 화면에 1.5개쯤) */
.f-dg-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
@media (max-width: 767.98px) {
    .f-dg-bar { gap: 8px; margin-bottom: 8px; }
    .f-dg-legend { font-size: 12px; gap: 3px 10px; }
    .f-dg-legend span { gap: 5px; white-space: nowrap; } .f-dg-legend i { width: 12px; height: 12px; } .f-dg-legend em { font-size: 11.5px; }
    .f-dg-bar .f-refresh { width: 38px; height: 38px; padding: 0; justify-content: center; }
    .f-dg-nodes { gap: 6px; margin: 0 -12px 10px; padding: 2px 12px 4px; scroll-padding-left: 12px; }
    .f-dg-node { flex: 0 0 auto; width: min(236px, 66%); gap: 4px; padding: 8px 10px 7px 13px; border-radius: 11px; }
    .f-dg-node::before { top: 8px; bottom: 8px; width: 3px; }
    .f-dg-nt strong { font-size: 14px; } .f-dg-nt em { padding: 1px 7px; font-size: 11px; }
    .f-dg-nv { gap: 2px; } .f-dg-nv small { font-size: 11px; } .f-dg-nv b { font-size: 16px; } .f-dg-nv .v i { font-size: 10.5px; }
    .f-dg-ntm { font-size: 11px; }
    .f-dg-head { margin-bottom: 4px; } .f-dg-head > div strong { font-size: 15px; } .f-dg-head > div span, .f-dg-probe { font-size: 12.5px; }
    .f-dg-chart { height: 360px; }
}
