/* 기본 설정 */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  text-align: center;
  min-width: 1280px;
  min-height: 600px;
}

/* 메인 홈 화면 */
.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
}

.main-title {
  width: 100%;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-logo {
  max-width: 1024px;
  min-width: 600px;
  display: inline-block;
}

.link-section,
.link-section2 {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.link-section { min-height: 150px; }

.link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #008d46;
  transition: transform 0.2s ease, color 0.2s ease;
}

.link-item:hover {
  transform: scale(1.1);
  color: #007acc;
}

.link-item i,
.link-item .link-img {
  margin-bottom: 12px;
}

.link-item .link-img {
  width: 48px;
  height: 48px;
  display: inline-block;
}

.link-item span {
  font-size: 1rem;
  font-weight: 500;
}

/* detail 페이지 제목 */
.detail-title {
  position: absolute;
  left: 50%;
  top: 35px;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  z-index: 1;
}

/* detail 페이지 main 자리 */
.detail-section {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

/* 대시보드 페이지 */
/* dashboard-title removed (unused) */

#status {
  margin-left: 10px;
  color: green;
  white-space: nowrap;
  font-weight: 500;
}

/* iframe 전체 화면 채우기 */
.dashboard-frame {
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100% - 72px);
  border: none;
}

/* 공통 헤더 스타일 */
.page-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  padding: 12px 20px;
  box-sizing: border-box;
}

.logo-link { display: inline-block; }

.page-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/* 반응형 조정 */
@media (max-width: 520px) {
  .page-header { padding: 10px 12px; }
  .page-logo { height: 40px; max-width: 160px; }
  .page-content { padding: 10px 12px 28px; }
}

/* farms CRUD 테이블 스타일 */
table {
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid #ccc;
  margin: 20px auto;
  max-width: 100%;
}

th, td {
  padding: 6px 8px;
  border: 1px solid #ddd;
  text-align: center;
}

table thead th {
  background-color: #cfcfcf;
  font-weight: 600;
  color: #222;
}

input[type="text"],
input[type="number"],
input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  font-size: 0.9rem;
  text-align: center;
}

/* 자동 생성 되는 필드 배경 처리 */
.readonly { background: #f5f5f5; }

/* 업로드 페이지 */
.upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.upload-row h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: bold;
  white-space: nowrap;
}

input[type="file"] { padding: 4px; }



/***** 버튼 (구식 - 하위 호환용) *****/
button {
  padding: 4px 8px;
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}
button:hover { background-color: #005fa3; }
.add-btn    { background-color: #ffc107; }
.add-btn:hover  { background-color: #e0a800; }
.edit-btn   { background-color: #17a2b8; }
.edit-btn:hover { background-color: #117a8b; }
.delete-btn { background-color: #d9534f; }
.delete-btn:hover { background-color: #c9302c; }












/* =========================
   Theme (조합 B)
========================= */
:root{
  --green-main:#146C43;
  --green-sub:#5FA777;
  --bg:#F5F7F6;
  --shell:#F1F3F1;
  --card:#FFFFFF;
  --text:#1F2933;
  --muted:#6B7280;
  --line:rgba(0,0,0,0.06);

  /* ✅ 가변 적용: 이 값만 바꾸면 hero 이미지 교체됨 */
  --hero-image:url("images/farm-hero.png");
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Background like screenshot */
.page-bg{
  min-height: 100vh;
  padding: 15px 18px 15px;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(20,108,67,0.10), transparent 60%),
    linear-gradient(#EEF2EF, #F5F7F6);
}

/* Rounded big container */
.shell{
  width: min(1200px, 96vw);
  margin: 0 auto;
  background: var(--shell);
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  overflow: hidden;

  min-height: calc(100vh - 15px - 15px); /* page-bg top/bottom padding만큼 빼줌 */
  display: flex;
  flex-direction: column;

  
}

/* =========================
   Topbar
========================= */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.55);
  border-bottom: 1px solid var(--line);
}

.brand{ display:flex; align-items:center; }
.brand-logo{
  height: 56px;
  width:auto;
  display:block;
  object-fit:contain;
}

/* middle nav */
.nav{
  display:flex;
  align-items:center;
  gap: 18px;
  flex: 1;
  justify-content:center;
  /* margin: 0 auto; */
}
.nav-item{
  text-decoration:none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 12px;
}
.nav-item:hover{ background: rgba(20,108,67,0.08); }
.nav-item--active{
  background: rgba(20,108,67,0.12);
  color: var(--green-main);
}

/* right actions */
.actions{
  display:flex;
  align-items:center;
  gap: 12px;
}

.search{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  width: 280px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
}
.search i{ color: var(--muted); }
.search input{
  border:none;
  outline:none;
  width:100%;
  background:transparent;
  font-size: 14px;
}
.mic{
  border:none;
  background:transparent;
  cursor:pointer;
  padding: 2px 6px;
  color: var(--muted);
}
.mic:hover{ color: var(--green-main); }

.avatar{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(20,108,67,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(20,108,67,0.18);
}

/* ===== User Actions (topbar 우측) ===== */
.user-actions{
  display:flex;
  align-items:center;
  gap:2px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 4px 3px 14px;
}
.user-name{
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-right: 6px;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ua-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.15s;
}
.ua-btn:hover{
  background: rgba(20,108,67,0.10);
  color: var(--green-main);
}
.ua-btn--logout:hover{
  background: rgba(220,53,69,0.10);
  color: #dc3545;
}

/* =========================
   Hero (the big banner)
========================= */
.hero{
  height: 300px;
  background:
    linear-gradient( to right,
      rgba(241,243,241,0.95) 0%,
      rgba(241,243,241,0.85) 55%,
      rgba(241,243,241,0.72) 100%
    ),
    var(--hero-image);
  background-repeat:no-repeat;
  background-position: center center;
  background-size: cover;
  /* background-size: contain; */
  /* border-bottom: 1px solid var(--line); */

}

.hero-inner{
  height:100%;
  display:flex;
  align-items:center;
  padding: 0 34px;
}

.hero-copy{
  max-width: 680px;
  text-align:left;
}
.hero-copy h1{
  margin:0 0 12px;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #184B37;
}
.hero-copy p{
  margin:0;
  font-size: 16px;
  color: #3F4A55;
}

/* =========================
   Content
========================= */
.content{
  padding: 26px 28px 34px;
  flex: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 18px;
}

/* Two quick cards row */
.quick-row{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.quick-card{
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 18px;
  display:flex;
  justify-content:space-evenly;
  align-items:center;
  min-height: 118px;
}

.quick-link{
  text-decoration:none;
  color: var(--green-main);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.quick-link i{ font-size: 42px; }
.quick-link span{
  font-weight:700;
  font-size: 14px;
  text-align: center;
  word-break: keep-all;
  line-height: 1.3;
}
.quick-link:hover{
  transform: translateY(-3px);
  background: rgba(20,108,67,0.08);
  color: var(--green-sub);
}

/* Icon grid like screenshot */
.icon-grid{
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 18px;
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 22px 10px;
}

.grid-item{
  text-decoration:none;
  color: var(--green-main);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  padding: 12px 8px;
  border-radius: 16px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.grid-item i{
  font-size: 44px;
}
.grid-item span{
  font-weight:700;
  font-size: 14px;
}
.grid-item:hover{
  transform: translateY(-3px);
  background: rgba(20,108,67,0.08);
  color: var(--green-sub);
}

/* muted/disabled style for bottom row items */
.grid-item--muted{
  color: rgba(20,108,67,0.55);
}

/* ── 메뉴 그룹 섹션 ── */
.menu-group{
  flex: 0 0 auto;
  margin-bottom: 0;
}

.menu-group-title{
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.menu-group-title i{ font-size: 12px; }

.menu-group-title--admin{
  color: #7c3aed;
}

.menu-group .quick-card{
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 4px;
  min-height: unset;
  width: fit-content;
}

.menu-group .quick-link{
  width: 108px;
}

.admin-badge{
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  background: #ede9fe;
  color: #5b21b6;
  letter-spacing: 0;
  text-transform: none;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1100px){
  .icon-grid{ grid-template-columns: repeat(5, 1fr); }
  .hero-copy h1{ font-size: 44px; }
}

@media (max-width: 860px){
  .topbar{ flex-wrap:wrap; }
  .nav{ order:3; justify-content:flex-start; flex-wrap:wrap; }
  .actions{ width:100%; justify-content:flex-end; }
  .search{ width:min(420px, 100%); }
  .quick-row{ grid-template-columns: 1fr; }
  .icon-grid{ grid-template-columns: repeat(4, 1fr); }
  .hero{ background-size: 90%; }
}

@media (max-width: 520px){
  .hero-inner{ padding: 0 18px; }
  .hero-copy h1{ font-size: 34px; }
  .icon-grid{ grid-template-columns: repeat(3, 1fr); }
  .search{ width:100%; }
}

/* ===== Menu Search Dropdown ===== */
#searchBox{ position: relative; }

.search-dropdown{
  display:none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 999;
  max-height: 280px;
  overflow-y: auto;
}
.search-dropdown.open{ display: block; }

.search-dropdown li{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  margin: 0 4px;
}
.search-dropdown li:hover{ background: rgba(20,108,67,0.08); color: var(--green-main); }
.search-dropdown li i{ width: 18px; text-align: center; color: var(--green-sub); }
.search-dropdown-empty{
  color: var(--muted) !important;
  cursor: default !important;
  font-weight: 400 !important;
}
.search-dropdown-empty:hover{ background: transparent !important; }

/* ===== Logout Button (index topbar) ===== */
.logout-btn{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  cursor: pointer;
  font-weight: 700;
  color: #1F2933;
}
.logout-btn:hover{
  background: rgba(20,108,67,0.10);
}

.board-toolbar{ /* removed: unused */ }
.board-back{
  text-decoration:none;
  font-weight:700;
  color: #146C43;
}
.board-back:hover{ text-decoration: underline; }

.board-post{
  width: min(920px, 100%);
  margin: 0 auto;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 18px 18px;
  text-align: left;
}
.board-post h2{
  margin: 6px 0 8px;
  font-size: 22px;
}
.post-meta{
  display:flex;
  align-items:center;
  gap: 8px;
  color: #6B7280;
  font-weight: 600;
  margin-bottom: 14px;
}
.post-meta .dot{ opacity: 0.7; }

.post-body{
  white-space: pre-wrap;
  line-height: 1.7;
  color: #1F2933;
}


/* ===== Board (List + Common) =====
   farm.html(테이블/버튼) 느낌과 최대한 맞춘 게시판 스타일
   - board.html / board-detail.html에서 inline style 제거하고
     아래 클래스들을 쓰면 전체 통일감이 생깁니다.
================================= */

/* 게시판 공통: 가운데 정렬된 본문 영역(테이블 페이지 느낌) */
.board-wrap{
  width: min(1100px, 96vw);
  margin: 0 auto;
  padding: 18px 18px 30px;
  text-align: left;
}

/* 상단 상태(로그인/관리자) */
.board-me{
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* 박스/카드 */
.board-card{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 14px 14px;
}

/* 관리자 등록 폼(카드 형태) */
.board-admin{
  margin: 14px 0 18px;
}
.board-admin h3{
  margin: 0 0 10px;
  font-size: 16px;
}
.board-field{
  margin: 8px 0;
}
.board-field input,
.board-field textarea{
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
  background: #fff;
  text-align: left; /* farms 입력은 가운데지만 게시글은 좌측이 읽기 좋음 */
}
.board-field textarea{ min-height: 120px; resize: vertical; }

/* 버튼: 기존 farms 버튼 톤과 통일 */
.btn{
  display: inline-block;
  padding: 4px 8px;
  background-color: #007acc;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.2;
  text-decoration: none;
}
.btn:hover{ background-color:#005fa3; }
.btn.primary{ background-color:#ffc107; color:#111; }
.btn.primary:hover{ background-color:#e0a800; }
.btn.edit{ background-color:#17a2b8; }
.btn.edit:hover{ background-color:#117a8b; }
.btn.danger{ background-color:#d9534f; }
.btn.danger:hover{ background-color:#c9302c; }

.board-msg{
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* 목록 테이블(기존 table 전역 스타일 영향 최소화 위해 클래스 권장) */
.board-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid #ccc;
  margin: 14px auto;
  background: #fff;
}
.board-table th,
.board-table td{
  padding: 6px 8px;
  border: 1px solid #ddd;
  text-align: center;
}
.board-table thead th{
  background-color: #cfcfcf;
  font-weight: 600;
  color: #222;
}
.board-table a{
  color: var(--green-main);
  text-decoration: none;
  font-weight: 700;
}
.board-table a:hover{ text-decoration: underline; }

/* 목록의 관리 버튼 셀 */
.board-row-actions{
  white-space: nowrap;
}
.board-row-actions .btn{ margin-right: 6px; }

/* 상세 페이지: 기존 Board Detail 스타일과 보완 */
.board-post pre.post-body{ margin: 0; }
.board-edit{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.board-edit h3{
  margin: 0 0 10px;
  font-size: 16px;
}
.board-edit .btn{ margin-right: 6px; }

/* 반응형: 너무 좁아지면 padding 축소 */
@media (max-width: 520px){
  .board-wrap{ padding: 12px 12px 22px; }
  .board-table{ font-size: 0.85rem; }
}











/* ===== Naver-ish Notice Board ===== */
.notice-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px;
}

.notice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #111;
}

.notice-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.notice-login {
  font-size: 12px;
  white-space: nowrap;
}

.notice-admin {
  margin: 14px 0 18px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fafafa;
}

.notice-admin > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.notice-form {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.notice-input,
.notice-textarea {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.notice-textarea { min-height: 140px; resize: vertical; }

.notice-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-table-wrap {
  border-top: 1px solid #111;
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* .notice-table td:nth-child(2) .notice-link{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
} */

.notice-table thead th {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 10px;
  border-bottom: 1px solid #e6e6e6;
  background: #fafafa;
  /* display: none; */
}

.notice-table tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  vertical-align: middle;
}

.notice-table tbody tr:hover {
  background: #fcfcfc;
}

.col-no {
  width: 80px;
  text-align: center;
  color: #666;
  white-space: nowrap;
}

.col-date {
  width: 120px;
  text-align: center;
  color: #666;
  white-space: nowrap;
}

.col-admin {
  width: 120px;
  text-align: center;
  white-space: nowrap;
}

.notice-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: #111;
  text-decoration: none;
}

.notice-link:hover {
  text-decoration: underline;
}

/* Detail */
.notice-detail {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px;
}

.notice-detail-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.notice-detail-meta {
  font-size: 12px;
  margin-bottom: 16px;
}

.notice-detail-body {
  border-top: 1px solid #e6e6e6;
  padding-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}


/* ============================================================
   LS Design System (공통 디자인 시스템)
   - 모든 detail 페이지에서 사용
   - 접두사 ls- 사용
============================================================ */

/* ── 페이지 래퍼 ── */
.ls-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 40px;
}

/* ── 탭 ── */
.ls-tabs {
  display: flex;
  gap: 6px;
  padding: 16px 20px 0;
  border-bottom: 2px solid #e0e0e0;
  background: #fff;
}
.ls-tab-btn {
  padding: 8px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #555;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.ls-tab-btn:hover { color: #146C43; background: transparent; }
.ls-tab-btn.active { color: #146C43; border-bottom-color: #146C43; }

/* ── 탭 콘텐츠 ── */
.ls-tab-content { display: none; padding: 20px; }
.ls-tab-content.active { display: block; }

/* ── 섹션 제목 ── */
.ls-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #184B37;
}

/* ── 카드 ── */
.ls-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
  text-align: left;
}

/* ── 페이지 콘텐츠 영역 (탭 없는 단순 페이지용) ── */
.ls-content {
  padding: 20px;
}

/* ── 입력 폼 그리드 ── */
.ls-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 14px;
  margin-bottom: 12px;
}
.ls-form-group { display: flex; flex-direction: column; gap: 4px; }
.ls-form-group label { font-size: 0.78rem; font-weight: 600; color: #555; }
.ls-form-group input,
.ls-form-group select,
.ls-form-group textarea {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.88rem;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

/* ── 테이블 ── */
.ls-table-wrap { overflow-x: auto; }
.ls-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: center;
  background: #fff;
}
.ls-table th {
  background: #f0f4f0;
  font-weight: 700;
  color: #333;
  padding: 8px 10px;
  border: 1px solid #ddd;
  white-space: nowrap;
}
.ls-table td {
  padding: 7px 10px;
  border: 1px solid #eee;
  white-space: nowrap;
}
.ls-table tfoot td {
  background: #f0f4f0;
  font-weight: 700;
}
.ls-table tbody tr:hover { background: #f9fdf9; }
.cell-memo, .ls-table td[data-key="note"] {
  max-width: 180px;
  white-space: nowrap;
  position: relative;
}
.cell-memo .memo-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-table input[type="text"],
.ls-table input[type="number"],
.ls-table input[type="date"] {
  width: 100%;
  min-width: 60px;
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
  box-sizing: border-box;
}

/* ── 상태/숫자 강조 ── */
.ls-empty    { color: #aaa; padding: 24px; text-align: center; font-size: 0.9rem; }
.num-big     { font-size: 1.05rem; font-weight: 700; color: #146C43; }
.num-red     { color: #d9534f; font-weight: 600; }
.num-orange  { color: #e07800; font-weight: 600; }
.status-good { color: #146C43; font-weight: 700; }
.status-warn { color: #e07800; font-weight: 700; }
.status-bad  { color: #d9534f; font-weight: 700; }
.badge-active { background:#e6f4ea; color:#146C43; border-radius:6px; padding:2px 8px; font-size:0.78rem; font-weight:700; }
.badge-done   { background:#eee;    color:#888;    border-radius:6px; padding:2px 8px; font-size:0.78rem; font-weight:700; }

/* ── 버튼 시스템 ── */
.ls-btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ls-btn { padding: 7px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: background .15s; }
.ls-btn-primary { background: #146C43; color: #fff; }
.ls-btn-primary:hover { background: #0f5235; }
.ls-btn-blue    { background: #007acc; color: #fff; }
.ls-btn-blue:hover    { background: #005fa3; }
.ls-btn-yellow  { background: #ffc107; color: #111; }
.ls-btn-yellow:hover  { background: #e0a800; }
.ls-btn-teal    { background: #17a2b8; color: #fff; }
.ls-btn-teal:hover    { background: #117a8b; }
.ls-btn-red     { background: #d9534f; color: #fff; }
.ls-btn-red:hover     { background: #c9302c; }
.ls-btn-gray    { background: #e0e0e0; color: #333; }
.ls-btn-gray:hover    { background: #ccc; }

/* ── 필터 행 ── */
.ls-filter-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px;
}
.ls-filter-row label { font-size: 0.82rem; font-weight: 600; color: #555; white-space: nowrap; }
.ls-filter-row input,
.ls-filter-row select { padding: 6px 8px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.88rem; }

/* ── 커스텀 즉시 툴팁 (전역) ── */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute; right: 0; bottom: 100%; margin-bottom: 2px;
  background: #333; color: #fff; font-size: 0.78rem; font-weight: 400;
  padding: 5px 10px; border-radius: 5px; white-space: nowrap;
  z-index: 9999; pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
