/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* 뜨아(TTUA) 브랜드 테마 */
:root {
  --ttua-orange: #ff6b3d;
  --ttua-blue: #3daeff;
  --ttua-roast: #2a1b12;
  --ttua-beige: #e7c9a5;
  --ttua-cream: #fff6ee;
  --ttua-line: #f6e0cf;
  --ok: #2ecc71;
  --warn: #f1c40f;
  --err: #e74c3c;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--ttua-cream);
  color: var(--ttua-roast);
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}
a { color: inherit; text-decoration: none; }

.brand { font-weight: 800; color: var(--ttua-orange); letter-spacing: -0.5px; }

/* ===== 본사 공지 슬라이딩 배너 ===== */
.ticker {
  flex-shrink: 0; display: flex; align-items: center; gap: 12px; overflow: hidden;
  background: var(--ttua-orange); color: #fff; padding: 7px 14px; font-size: 14px; font-weight: 600;
}
.ticker.warning { background: #b8860b; }
.ticker.event { background: var(--ttua-blue); }
.ticker-tag { flex-shrink: 0; background: rgba(255,255,255,.22); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.ticker-track { position: relative; flex: 1 1; overflow: hidden; height: 20px; display: flex; }
.ticker-content {
  display: inline-block; white-space: nowrap; padding-right: 60px;
  animation: ticker-marquee linear infinite; will-change: transform;
}
@keyframes ticker-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ===== 앱 셸: 헤더 고정 + 사이드바 고정 + 본문만 스크롤 ===== */
.appshell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.topbar {
  flex-shrink: 0; height: 56px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; background: var(--ttua-roast); color: var(--ttua-cream); z-index: 40;
}
.topbar .logo { font-size: 20px; font-weight: 800; color: var(--ttua-orange); white-space: nowrap; }
.topbar .right { display: flex; gap: 12px; align-items: center; font-size: 14px; margin-left: auto; }
.topbar .right .uname { max-width: 32vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hamburger {
  display: none; background: none; border: none; color: var(--ttua-cream);
  font-size: 22px; cursor: pointer; padding: 4px 6px; line-height: 1;
}

.layout { flex: 1 1; min-height: 0; display: flex; overflow: hidden; }
.sidebar {
  width: 210px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--ttua-line);
  padding: 14px 8px; overflow-y: auto;
}
.sidebar a {
  display: block; padding: 11px 14px; border-radius: 10px; margin-bottom: 4px;
  font-size: 14px; color: #6b5a4d;
}
.sidebar a.active, .sidebar a:hover { background: var(--ttua-cream); color: var(--ttua-orange); font-weight: 600; }
.content { flex: 1 1; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 24px; -webkit-overflow-scrolling: touch; }
.sidebar-backdrop { display: none; }

/* 2열 → 모바일 1열 */
.split { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 16px; gap: 16px; align-items: start; }

/* ===== 모바일 반응형 ===== */
@media (max-width: 820px) {
  .hamburger { display: inline-flex; }
  .sidebar {
    position: fixed; top: 56px; bottom: 0; left: 0; width: 240px; z-index: 50;
    transform: translateX(-100%); transition: transform .25s ease; box-shadow: 2px 0 16px rgba(0,0,0,.25);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { display: block; position: fixed; top: 56px; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.4); z-index: 45; }
  .content { padding: 16px; }
  .content h2 { font-size: 20px; }
  .split { grid-template-columns: 1fr; }
  .content table { display: block; overflow-x: auto; white-space: nowrap; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .hide-mobile { display: none !important; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-gap: 16px; gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--ttua-line); border-radius: 18px;
  padding: 20px; box-shadow: 0 4px 16px rgba(42,27,18,0.06);
}
.card h3 { margin: 0 0 10px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.card h4 { font-size: 13px; color: #6b5a4d; }
.muted { color: #9a8474; font-size: 13px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.online { background: #e8f9ef; color: #1e9e57; }
.badge.offline { background: #f1eee9; color: #998; }
.badge.error { background: #fdecea; color: var(--err); }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot.online { background: var(--ok); }
.dot.offline { background: #bbb; }
.dot.error { background: var(--err); }

.btn {
  border: none; border-radius: 10px; padding: 9px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; background: var(--ttua-orange); color: #fff;
}
.btn:hover { filter: brightness(0.95); }
.btn.ghost { background: #fff; color: var(--ttua-roast); border: 1px solid var(--ttua-line); }
.btn.blue { background: var(--ttua-blue); }
.btn.danger { background: var(--err); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.gauge { height: 12px; background: #f0eae3; border-radius: 999px; overflow: hidden; margin: 4px 0; box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
.gauge > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff8a5f, var(--ttua-orange)); transition: width .4s ease; }
.gauge.low > span { background: linear-gradient(90deg, #ff7a6b, var(--err)); }
.gauge.blue > span { background: linear-gradient(90deg, #7ac5ff, var(--ttua-blue)); }

input, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--ttua-line); border-radius: 10px;
  font-size: 14px; background: #fff; margin-bottom: 10px;
}
label { font-size: 13px; color: #6b5a4d; display: block; margin-bottom: 4px; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--ttua-line); font-size: 14px; }
th { background: var(--ttua-cream); font-size: 13px; color: #6b5a4d; }

.center-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { width: 360px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { flex: 1 1; padding: 10px; border-radius: 10px; border: 1px solid var(--ttua-line); background: #fff; cursor: pointer; font-weight: 600; }
.tabs button.active { background: var(--ttua-orange); color: #fff; border-color: var(--ttua-orange); }

.stat { font-size: 28px; font-weight: 800; }
.err-text { color: var(--err); font-size: 13px; }

/* ===== 센서 칩 (문/인체/컵 등) ===== */
.sensor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); grid-gap: 12px; gap: 12px; }
.sensor {
  border: 1px solid var(--ttua-line); border-radius: 16px; padding: 16px 12px; text-align: center;
  background: #fff; transition: all .2s; position: relative;
}
.sensor .ico { font-size: 30px; line-height: 1; }
.sensor .nm { font-size: 12px; color: #9a8474; margin-top: 8px; }
.sensor .val { font-size: 15px; font-weight: 800; margin-top: 3px; }
.sensor::after { content:''; position:absolute; top:10px; right:10px; width:8px; height:8px; border-radius:50%; background:#cfc4b8; }
.sensor.on  { background: linear-gradient(180deg,#effbf4,#e3f7ec); border-color: #bfead0; }
.sensor.on .val { color: #16915a; }  .sensor.on::after { background:#2ecc71; box-shadow:0 0 0 3px rgba(46,204,113,.18); }
.sensor.alarm { background: linear-gradient(180deg,#fdeeec,#fbe4e1); border-color: #f5c4bd; }
.sensor.alarm .val { color: var(--err); }  .sensor.alarm::after { background:var(--err); box-shadow:0 0 0 3px rgba(231,76,60,.18); }
.sensor.off { background: #f7f4f0; }  .sensor.off .val { color: #9a8474; }

/* ===== 0~100% 제어 (슬라이더 + 직접 입력) ===== */
.slider-row { margin-bottom: 18px; }
.slider-row .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.slider-row .nm { font-size: 14px; font-weight: 700; }
.lvl-ctrl { display: flex; align-items: center; gap: 6px; }
.lvl-ctrl .stepbtn {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--ttua-line); background: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer; color: var(--ttua-roast); line-height: 1;
}
.lvl-ctrl .stepbtn:hover { background: var(--ttua-cream); }
.lvl-num {
  width: 58px; text-align: center; font-weight: 800; font-size: 15px; color: var(--ttua-orange);
  padding: 5px 4px; margin: 0; border: 1px solid var(--ttua-line); border-radius: 8px;
}
.lvl-ctrl .unit { font-size: 13px; color: #9a8474; }
input[type=range].lvl {
  -webkit-appearance: none; -moz-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 999px;
  outline: none; margin: 0; padding: 0; box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}
input[type=range].lvl::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; cursor: pointer; border: 4px solid var(--ttua-orange); box-shadow: 0 2px 6px rgba(0,0,0,.2); margin-top: -1px;
}
input[type=range].lvl::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%; background: #fff; cursor: pointer; border: 4px solid var(--ttua-orange); box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
input[type=range].lvl.blue::-webkit-slider-thumb { border-color: var(--ttua-blue); }
input[type=range].lvl.blue::-moz-range-thumb { border-color: var(--ttua-blue); }

/* ===== 키오스크 제어 탭 ===== */
.ktabs {
  display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 2px solid var(--ttua-line);
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.ktabs::-webkit-scrollbar { height: 4px; }
.ktabs::-webkit-scrollbar-thumb { background: var(--ttua-line); border-radius: 999px; }
.ktabs button {
  border: none; background: none; padding: 12px 16px; font-size: 15px; font-weight: 700; cursor: pointer;
  color: #9a8474; border-bottom: 3px solid transparent; margin-bottom: -2px;
  white-space: nowrap; flex-shrink: 0;
}
.ktabs button.active { color: var(--ttua-orange); border-bottom-color: var(--ttua-orange); }

/* ===== 메뉴별 레시피 편집 ===== */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-gap: 12px; gap: 12px; }
.rfield { display: flex; flex-direction: column; gap: 4px; }
.rfield .rlbl { font-size: 12px; color: #6b5a4d; font-weight: 600; }
.rfield .rin { display: flex; align-items: center; gap: 6px; }
.rfield .rin input {
  width: 100%; margin: 0; padding: 9px 10px; border: 1px solid var(--ttua-line); border-radius: 10px;
  font-size: 15px; font-weight: 700; text-align: right;
}
.rfield .rin input:focus { outline: none; border-color: var(--ttua-orange); }
.rfield .rin em { font-style: normal; font-size: 12px; color: #9a8474; min-width: 28px; }
.rfield.dim { opacity: .45; }

/* ===== ON/OFF 토글 스위치 ===== */
.switch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); grid-gap: 10px; gap: 10px; }

/* 그룹 접이식 */
.switch-group { border: 1px solid var(--ttua-line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; background: var(--ttua-cream); }
.switch-group > summary {
  list-style: none; cursor: pointer; padding: 12px 16px; display: flex; align-items: center;
  justify-content: space-between; font-weight: 700; font-size: 14px; -webkit-user-select: none; -moz-user-select: none; user-select: none;
}
.switch-group > summary::-webkit-details-marker { display: none; }
.switch-group > summary::after { content: '▾'; color: #9a8474; transition: transform .2s; }
.switch-group:not([open]) > summary::after { transform: rotate(-90deg); }
.switch-group .grp-count { font-size: 12px; font-weight: 600; color: var(--ttua-orange); background: #fff; border-radius: 999px; padding: 2px 10px; margin-left: auto; margin-right: 10px; }
.switch-group .switch-grid { padding: 0 14px 14px; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--ttua-line); border-radius: 12px; background: #fff;
}
.switch-row .lbl { font-size: 14px; font-weight: 600; }
.switch-row .lbl small { display:block; font-weight:400; font-size:11px; color:#9a8474; }
.tgl { width: 50px; height: 28px; border-radius: 999px; background: #d8cdbf; position: relative; cursor: pointer; border: none; transition: background .2s; flex-shrink: 0; }
.tgl::after { content:''; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.3); transition: left .2s; }
.tgl.on { background: var(--ttua-orange); }
.tgl.on::after { left: 25px; }
.tgl.on.blue { background: var(--ttua-blue); }

/* ===== 로드셀 바 ===== */
.loadcell { margin-bottom: 12px; }
.loadcell .top { display:flex; justify-content:space-between; font-size:13px; margin-bottom: 3px; }

/* ===== 세로 막대 게이지 (컴팩트) ===== */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); grid-gap: 14px; gap: 14px; }
.vgauge { text-align: center; }
.vbar {
  height: 120px; width: 30px; margin: 0 auto; background: #f0eae3; border-radius: 999px;
  position: relative; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.08);
}
.vfill {
  position: absolute; left: 0; right: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(0deg, #ff8a5f, var(--ttua-orange)); transition: height .4s ease;
}
.vfill.low { background: linear-gradient(0deg, #ff7a6b, var(--err)); }
.vfill.blue { background: linear-gradient(0deg, #7ac5ff, var(--ttua-blue)); }
.vgauge .vval { font-weight: 800; font-size: 14px; margin-top: 8px; }
.vgauge .vval.low { color: var(--err); }
.vgauge .vname { font-size: 11px; color: #9a8474; margin-top: 2px; line-height: 1.3; }
.vgauge .vico { font-size: 18px; }

