/* TAMS BIZ ERP Practical Sidebar Layout */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.tams-erp-body {
  font-family: 'Inter', "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background-color: #f4f6f8;
  overflow: hidden; /* For #wrap flex layout */
}

#wrap {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: #f4f6f8;
}

#header {
  flex: 0 0 auto;
  position: relative;
  width: 240px;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #EBEBEB;
  box-shadow: 2px 0px 8px rgba(0, 0, 0, 0.03);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.header_top {
  padding: 20px 16px;
}

.logo_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.user_wrap {
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #edf2f7;
  margin-bottom: 24px;
}

.user_wrap .user_name {
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  word-break: break-all;
}

.user_bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn_logout {
  font-size: 12px;
  color: #718096;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s;
}

.btn_logout:hover {
  background: #edf2f7;
  color: #2d3748;
}

.menu_wrap .menu_tit,
.alarm_wrap .alarm_tit {
  font-size: 12px;
  font-weight: 600;
  color: #a0aec0;
  margin-bottom: 8px;
  padding-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu_lst {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu_lst .lst {
  margin-bottom: 4px;
  border-radius: 6px;
  transition: all 0.2s;
}

.menu_lst .lst a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568 !important;
}

.menu_lst .lst:hover a {
  background-color: #edf2f7;
  color: #2d3748 !important;
}

.menu_lst .lst.active a {
  background-color: #E2FFF4 !important;
  color: #0b9e67 !important;
  font-weight: 600;
}

.menu_lst .lst.emoji-menu .menu-emoji {
  font-size: 16px;
  margin-right: 10px;
}

#main {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  position: relative;
}

#container {
  width: 100%;
  min-width: 1000px; /* Admin layout width */
  margin: 0 auto;
}

/* Full-width container overrides for specific pages if needed */
.content-card, .section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  min-height: calc(100vh - 100px);
}
