﻿:root {
  --bg-main: #f7f8fa;
  --bg-panel: #ffffff;
  --bg-soft: #eef4ff;
  --line: #e5e7eb;
  --primary: #5b8def;
  --primary-soft: #edf3ff;
  --text-main: #1a1a1a;
  --text-sub: #6b7280;
  --btn-blue: #6b7280;
  --btn-blue-hover: #5b6472;
  --btn-outline-blue: #5f6775;
  --btn-outline-blue-border: #cfd5de;
  --btn-outline-blue-bg: #f5f6f8;
  --ok: #86d3b0;
  --warn: #ffd58a;
  --danger: #ef8f96;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
  --panel-gap-compact: 0.375rem;
  --sidebar-width-expanded: 280px;
  --sidebar-width-collapsed: 76px;
  --sidebar-mobile-width: min(78vw, 310px);
  --sidebar-mobile-transition: 0.18s cubic-bezier(0.25, 0.9, 0.3, 1);
}

/* Computer asset ledger */
.computer-asset-page .card-body-area { min-height: 0; }
.computer-asset-layout { display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(380px, 0.9fr); gap: 0.85rem; }
.computer-asset-list-pane, .computer-asset-detail-pane { min-width: 0; border: 1px solid #d7dee8; border-radius: 0.45rem; background: #fff; overflow: hidden; }
.computer-asset-table-wrap { max-height: calc(100vh - 230px); overflow: auto; }
.computer-asset-table { table-layout: fixed; }
.computer-asset-table .computer-asset-check-column, .computer-asset-table th:first-child, .computer-asset-table td:first-child { width: 42px; }
.computer-asset-table thead { position: sticky; z-index: 2; top: 0; }
.computer-asset-table th { background: #eef3f9; text-align: center; white-space: nowrap; }
.computer-asset-table tbody tr { cursor: pointer; }
.computer-asset-table tbody tr:hover td { background: #f3f7fc; }
.computer-asset-table tbody tr.table-active td { background: #dbeafe; }
.computer-asset-filter-row th { top: 31px; padding: 0.3rem; background: #f8fafc; }
.computer-asset-detail-pane { align-self: start; }
.computer-asset-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0.7rem; border-bottom: 1px solid #d7dee8; background: #eef3f9; }
.computer-asset-form { display: grid; gap: 0.65rem; max-height: calc(100vh - 275px); padding: 0.75rem; overflow: auto; }
.computer-asset-form .form-label { margin-bottom: 0.25rem; color: #475569; font-size: 0.8rem; font-weight: 700; }
.computer-asset-form .form-control[readonly] {
  border-color: #cbd5e1 !important;
  background: #e5e7eb !important;
  color: #64748b !important;
  cursor: not-allowed;
}
.computer-asset-photo-box { display: flex; min-height: 230px; align-items: center; justify-content: center; border: 1px dashed #94a3b8; border-radius: 0.4rem; background: #f8fafc; overflow: hidden; }
.computer-asset-photo-box img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.computer-asset-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 0.45rem; }
.computer-asset-audit-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.computer-asset-new-row td { height: 40px; text-align: center; font-weight: 700; }
.computer-asset-history-section { padding-top: 0.4rem; border-top: 1px solid #d7dee8; }
.computer-asset-history-section > strong { display: block; margin-bottom: 0.45rem; color: #334155; }
.computer-asset-history { display: grid; max-height: 260px; gap: 0.4rem; overflow: auto; }
.computer-asset-history-item { border: 1px solid #dbe3ee; border-radius: 0.35rem; background: #f8fafc; overflow: hidden; }
.computer-asset-history-item header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0.5rem; border-bottom: 1px solid #e2e8f0; background: #eef3f9; font-size: 0.75rem; }
.computer-asset-history-item header span { color: #64748b; }
.computer-asset-history-item section { display: grid; gap: 0.25rem; padding: 0.4rem 0.5rem; font-size: 0.75rem; }
.computer-asset-history-item section > div { display: grid; grid-template-columns: 72px minmax(0,1fr) 16px minmax(0,1fr); align-items: center; gap: 0.25rem; }
.computer-asset-history-item section i { color: #64748b; font-style: normal; text-align: center; }
.computer-asset-label-settings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0.75rem; }
.computer-asset-label-settings .full { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .computer-asset-layout { grid-template-columns: 1fr; }
  .computer-asset-table-wrap, .computer-asset-form { max-height: none; }
}

@media (max-width: 575px) {
  .computer-asset-page .card-title-row { align-items: flex-start; }
  .computer-asset-audit-row { grid-template-columns: 1fr; }
  .computer-asset-detail-head { align-items: flex-start; flex-direction: column; }
  .computer-asset-detail-head > div { width: 100%; flex-wrap: wrap; }
  .computer-asset-photo-actions .btn { flex: 1 1 auto; }
  .computer-asset-history-item section > div { grid-template-columns: 1fr; }
  .computer-asset-history-item section i { transform: rotate(90deg); }
  .computer-asset-label-settings { grid-template-columns: 1fr; }
  .computer-asset-label-settings .full { grid-column: auto; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: linear-gradient(165deg, #ffffff 0%, #f4f9ff 48%, #eaf3ff 100%);
}

body.app-page-loading {
  overflow: hidden;
}

.app-page-loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(247, 250, 255, 0.72);
  backdrop-filter: blur(3px);
  z-index: 2000;
}

.app-page-loading-overlay.is-active {
  display: flex;
}

.app-page-loading-box {
  min-width: 220px;
  padding: 1.15rem 1.35rem;
  border: 1px solid #d9e4f2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(30, 54, 87, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.app-page-loading-spinner {
  width: 2rem;
  height: 2rem;
}

.app-page-loading-text {
  color: #456789;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

input,
select,
button,
textarea {
  color: #2f4d73 !important;
}

input::placeholder,
textarea::placeholder {
  color: #7a8faa;
}

/* System Common Components */
.btn {
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--btn-blue);
  border-color: var(--btn-blue);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--btn-blue-hover);
  border-color: var(--btn-blue-hover);
}

.btn-outline-primary {
  color: var(--btn-outline-blue);
  border-color: var(--btn-outline-blue-border);
  background: var(--btn-outline-blue-bg);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #476f9f;
  border-color: #87a8d1;
  background: #e7f0fb;
}

.btn-outline-secondary {
  color: #5e7592;
  border-color: #b9c9dd;
  background: #f7faff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: #4f6787;
  border-color: #a8bdd6;
  background: #edf4fd;
}

.btn-outline-danger {
  color: #b86a7a;
  border-color: #e3b1bb;
  background: #fff9fa;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  color: #a85b6b;
  border-color: #d89daa;
  background: #fceef1;
}

.table-responsive {
  border: 1px solid #d7e2f2;
  background: #fbfdff;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background: #edf4ff;
  color: #607896;
  font-weight: 600;
  font-size: 0.78rem;
  text-align: center;
  vertical-align: middle;
  border-top: 1px solid #d7e2f2;
  border-bottom: 1px solid #d7e2f2;
  border-right: 1px solid #dfe8f5;
  white-space: nowrap;
  padding: 0.5rem 0.55rem;
}

.table tbody td {
  color: #7084a0;
  font-weight: 400;
  font-size: 0.82rem;
  border-bottom: 1px solid #e6edf8;
  border-right: 1px solid #edf3fb;
  white-space: nowrap;
  padding: 0.5rem 0.55rem;
}

.table thead th:last-child,
.table tbody td:last-child {
  border-right: 0;
}

.table tbody tr:hover td {
  background: #f7fbff;
}

a {
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: var(--sidebar-width-expanded) 1fr auto;
  align-items: stretch;
  padding: 0;
  backdrop-filter: blur(8px);
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.9rem;
  border-right: 1px solid var(--line);
}

body.sidebar-collapsed-desktop .topbar {
  grid-template-columns: var(--sidebar-width-collapsed) 1fr auto;
}

body.sidebar-collapsed-desktop .topbar-left {
  justify-content: center;
  padding: 0 0.45rem;
}

body.sidebar-collapsed-desktop .topbar-left .brand-text {
  display: none;
}

body.sidebar-collapsed-desktop .topbar-left .brand-link {
  gap: 0;
}

.topbar-toggle {
  border-color: var(--line);
  color: var(--primary);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
}

.topbar-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-left: 0.9rem;
}

.topbar-nav.topbar-nav-main {
  justify-content: flex-start;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1rem 0 0.65rem;
  border-left: 1px solid #d7e6f9;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  background: #eaf3ff;
  border: 1px solid #c3d9f7;
  color: #2f5d94;
  font-size: 0.84rem;
  font-weight: 600;
}

.topbar-user-btn {
  border: 1px solid #c3d9f7;
  cursor: pointer;
}

.topbar-logout-form {
  margin: 0;
}

.topbar-nav-item {
  color: var(--text-sub);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.topbar-nav-item.active,
.topbar-nav-item:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.layout-body {
  display: flex;
  min-height: calc(100vh - 64px);
}

.sidebar {
  width: var(--sidebar-width-expanded);
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease, transform var(--sidebar-mobile-transition);
  overflow: hidden;
}

.sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
}

.sidebar-head {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.sidebar-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6b7e98;
}

.sidebar-close-btn {
  border-color: var(--line);
  color: var(--primary);
}

.sidebar-tree {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0.75rem;
}

.tree-group + .tree-group {
  margin-top: 0.6rem;
}

.tree-root {
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.65rem;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  font-weight: 700;
}

.tree-root.active,
.tree-root:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.tree-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  min-width: 1rem;
  margin-right: 0.2rem;
  color: currentColor;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.tree-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  margin-left: 1.5rem;
}

.tree-children.open {
  max-height: none;
  overflow: visible;
}

.tree-link {
  display: block;
  color: var(--text-sub);
  margin-top: 0.4rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.92rem;
}

.tree-link:hover,
.tree-link.active {
  color: var(--primary);
  background: #e8f2ff;
}

.sidebar.collapsed .tree-root span,
.sidebar.collapsed .tree-link {
  display: none;
}

.sidebar.collapsed .tree-root {
  justify-content: center;
}

.sidebar-backdrop {
  display: none;
}

body.sidebar-open-mobile {
  overflow: hidden;
}

.content-panel {
  flex: 1;
  padding: 1.1rem 1.2rem 1.5rem;
  overflow: auto;
}

.content-header {
  margin-bottom: 1rem;
}

.content-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.content-panel.stock-content-panel {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: calc(100vh - 64px);
  min-height: 0;
  overflow: hidden;
}

.content-panel.stock-content-panel > .content-header {
  flex: 0 0 auto;
}

.content-panel.delivery-content-panel {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: calc(100vh - 64px);
  overflow: hidden;
}

.content-panel.delivery-content-panel > .content-header {
  flex: 0 0 auto;
}

.home-view-frame {
  display: grid;
  gap: var(--panel-gap-compact);
}

.home-view-frame .panel-card + .panel-card {
  margin-top: 0;
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(520px, 1.16fr);
  gap: var(--panel-gap-compact);
}

.attendance-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.attendance-block {
  border: 1px solid #d7e1ef;
  background: #f8fbff;
  padding: 0.65rem;
}

.attendance-block-title {
  color: #2f5f98;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.attendance-single-grid {
  grid-template-columns: 1fr !important;
  gap: 0.45rem;
}

.dashboard-notice-search {
  width: 100%;
  max-width: 420px;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex: 1 1 220px;
  min-width: 0;
}

.dashboard-notice-all-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

.dashboard-notice-search .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-notice-search .btn {
  flex: 0 0 auto;
  min-width: 54px;
  white-space: nowrap;
}

.dashboard-notice-list {
  display: block;
  height: 230px;
  overflow-y: auto;
  border: 1px solid #dce5f2;
  border-top: 0;
}

.dashboard-notice-head,
.dashboard-notice-item {
  display: grid;
  grid-template-columns: 96px 104px minmax(0, 1fr) 92px;
  gap: 0;
}

.dashboard-notice-head {
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0;
  border: 1px solid #dce5f2;
  border-bottom: 1px solid #ccd8e8;
  margin-bottom: 0;
  background: #eef4fb;
}

.dashboard-notice-head span,
.dashboard-notice-item span {
  min-width: 0;
  padding: 0.34rem 0.45rem;
  border-right: 1px solid #dce5f2;
}

.dashboard-notice-head span {
  text-align: center;
}

.dashboard-notice-head span:last-child,
.dashboard-notice-item span:last-child {
  border-right: 0;
}

.dashboard-notice-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e1e8f2;
  background: #ffffff;
  color: #334155;
  padding: 0;
  text-align: left;
  min-height: 30px;
}

.dashboard-notice-item:hover {
  background: #eef5ff;
}

.dashboard-notice-date {
  color: #6b7280;
  font-size: 0.74rem;
  white-space: nowrap;
  text-align: center;
}

.dashboard-notice-div {
  color: #64748b;
  font-size: 0.74rem;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-notice-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334155;
  font-weight: 400;
  font-size: 0.78rem;
  text-align: left;
}

.dashboard-notice-writer {
  color: #64748b;
  text-align: center;
  white-space: nowrap;
  font-size: 0.74rem;
}

.dashboard-notice-empty {
  color: #6b7280;
  padding: 0.75rem;
  text-align: center;
  background: #ffffff;
  font-size: 0.78rem;
}

.dashboard-notice-popup-list {
  display: grid;
  gap: 0.85rem;
}

.dashboard-notice-popup-item {
  border: 1px solid #d8e1ee;
  background: #ffffff;
  padding: 1rem 1.1rem;
}

.dashboard-notice-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.dashboard-notice-popup-badge {
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-notice-popup-period,
.dashboard-notice-popup-meta {
  color: #64748b;
  font-size: 0.82rem;
}

.dashboard-notice-popup-title {
  font-size: 1rem;
  color: #334155;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.dashboard-notice-popup-body {
  margin-top: 0.7rem;
  color: #334155;
  white-space: pre-line;
  line-height: 1.6;
}

.dashboard-notice-popup-body a,
#dashboardModalDesc a,
.daily-desc a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dashboard-notice-popup-attachments {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.dashboard-notice-popup-attach-title {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-notice-popup-attach-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #2563eb;
  font-size: 0.82rem;
  text-decoration: none;
}

.dashboard-notice-popup-attach-link::before {
  content: "\F392";
  font-family: "bootstrap-icons";
  margin-right: 0.35rem;
}

.dashboard-notice-popup-attach-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.dashboard-notice-popup-attach-loading,
.dashboard-notice-popup-attach-error {
  color: #64748b;
  font-size: 0.8rem;
}

.dashboard-notice-popup-attach-error {
  color: #dc2626;
}

.dashboard-notice-popup-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  color: #64748b;
  font-size: 0.82rem;
  cursor: pointer;
}

.dashboard-notice-popup-option .form-check-input {
  margin: 0;
}

.dashboard-notice-list .dashboard-notice-title.notice-level-emergency,
.dashboard-notice-popup-list .notice-level-emergency {
  color: #dc2626 !important;
  font-weight: 700 !important;
}

.dashboard-notice-list .dashboard-notice-title.notice-level-policy,
.dashboard-notice-popup-list .notice-level-policy {
  color: #2563eb !important;
  font-weight: 700 !important;
}

.dashboard-notice-list .dashboard-notice-title.notice-level-system,
.dashboard-notice-popup-list .notice-level-system {
  color: #ea580c !important;
  font-weight: 700 !important;
}

.dashboard-meeting-title-row {
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-notice-card .card-title-row {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-notice-card .card-title-row h2,
.dashboard-meeting-title-row h2 {
  flex: 0 0 auto;
  white-space: nowrap;
}

.dashboard-meeting-search {
  display: grid;
  grid-template-columns: auto minmax(118px, 1fr) auto minmax(118px, 1fr) minmax(100px, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 520px;
  width: 100%;
  min-width: 0;
}

.dashboard-meeting-search .form-label {
  color: #64748b;
  font-size: 0.82rem;
  white-space: nowrap;
}

.dashboard-meeting-list {
  display: block;
  height: 230px;
  overflow-y: auto;
  border: 1px solid #dce5f2;
  border-top: 0;
}

.dashboard-meeting-head,
.dashboard-meeting-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 92px;
  gap: 0;
}

.dashboard-meeting-head {
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0;
  border: 1px solid #dce5f2;
  border-bottom: 1px solid #ccd8e8;
  margin-bottom: 0;
  background: #eef4fb;
}

.dashboard-meeting-head span,
.dashboard-meeting-item span {
  min-width: 0;
  padding: 0.34rem 0.45rem;
  border-right: 1px solid #dce5f2;
}

.dashboard-meeting-head span {
  text-align: center;
}

.dashboard-meeting-head span:last-child,
.dashboard-meeting-item span:last-child {
  border-right: 0;
}

.dashboard-meeting-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e1e8f2;
  background: #ffffff;
  color: #334155;
  padding: 0;
  text-align: left;
  min-height: 30px;
}

.dashboard-meeting-item:hover {
  background: #eef5ff;
}

.dashboard-meeting-date {
  color: #64748b;
  font-size: 0.74rem;
  white-space: nowrap;
  text-align: center;
}

.dashboard-meeting-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.78rem;
  text-align: left;
}

.dashboard-meeting-writer {
  color: #64748b;
  text-align: center;
  white-space: nowrap;
  font-size: 0.74rem;
}

.dashboard-meeting-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-meeting-detail-grid > div {
  border: 1px solid #dce5f2;
  background: #fbfdff;
  padding: 0.75rem;
}

.dashboard-meeting-detail-grid .full {
  grid-column: 1 / -1;
}

.dashboard-meeting-detail-grid strong {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.panel-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.panel-card + .panel-card {
  margin-top: var(--panel-gap-compact);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1rem;
  background: #edf5ff;
  border-bottom: 1px solid var(--line);
}

.card-title-row h2,
.card-title-row h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.card-body-area {
  padding: 1rem;
}

.stat-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-grid.compact.horizontal-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-box {
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0.85rem 0.95rem;
}

.stat-box p {
  margin: 0;
}

.stat-label {
  color: var(--text-sub);
  font-size: 0.86rem;
}

.stat-value {
  margin-top: 0.25rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.home-main-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(640px, 2.05fr);
  gap: var(--panel-gap-compact);
  align-items: start;
}

.attendance-chart-sm {
  height: 170px;
}

.monthly-schedule-card .card-body-area {
  min-height: 620px;
}

.monthly-control {
  display: flex;
  gap: 0.5rem;
}

.monthly-title-row {
  justify-content: flex-start;
}

.monthly-title-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  width: 100%;
}

.monthly-category-legend {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin-left: auto;
  padding-left: 1rem;
  justify-content: flex-end;
  align-items: center;
}

.monthly-category-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #5b6f8b;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.monthly-category-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  flex: 0 0 auto;
  border: 1px solid rgba(58, 78, 104, 0.12);
}

.monthly-control select {
  min-width: 112px;
}

.monthly-register-actions {
  flex: 0 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
}

.monthly-register-actions .btn {
  flex: 0 0 auto;
  min-width: 124px;
  white-space: nowrap;
}

.calendar-date-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 120px;
}

.calendar-date-trigger {
  cursor: pointer;
  user-select: none;
}

.calendar-date-picker-input {
  position: absolute;
  left: 0;
  top: calc(100% + 0.3rem);
  width: 168px;
  display: none;
  z-index: 40;
  padding: 0.28rem 0.45rem;
  border: 1px solid #c9d7ea;
  border-radius: 0.45rem;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(26, 34, 48, 0.12);
}

.calendar-date-picker-input.is-open {
  display: block;
}

.dashboard-calendar-lg .calendar-cell {
  min-height: 150px;
}

.dashboard-calendar-lg .event-pill {
  cursor: pointer;
}

.dashboard-calendar-lg .calendar-cell.day-selected {
  outline: 2px solid #89ace4;
  outline-offset: -2px;
  background: #f3f8ff;
}

.dashboard-import-worktype-radios {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-import-worktype-radios .form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0;
}

.dashboard-import-worktype-radios .form-check-input {
  position: static;
  margin: 0;
}

.daily-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.day-page-header {
  gap: 1rem;
  flex-wrap: wrap;
}

.day-page-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.day-date-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.day-date-label {
  min-width: 150px;
  text-align: center;
  color: #355d94;
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
}

.daily-list {
  display: grid;
  gap: 0.7rem;
}

.daily-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.75rem 0.8rem;
  cursor: pointer;
}

.daily-item:hover {
  background: #edf6ff;
}

.daily-time {
  color: #5f7390;
  font-size: 0.82rem;
}

.daily-desc {
  white-space: pre-line;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-ok { background: #e9f9f0; color: #2b8959; }
.status-warn { background: #fff6e8; color: #ad6d1f; }
.status-danger { background: #fff1f1; color: #b05252; }

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.calendar-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.schedule-page-layout {
  --schedule-sidebar-width: 420px;
  --schedule-pane-top-height: calc((100% - 20px) * 0.4);
  --schedule-pane-middle-height: calc((100% - 20px) * 0.4);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px minmax(320px, var(--schedule-sidebar-width));
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - 230px);
}

.schedule-calendar-panel,
.schedule-today-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.schedule-calendar-panel .card-body-area,
.schedule-today-panel .card-body-area {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.schedule-layout-splitter {
  position: relative;
  cursor: col-resize;
  background:
    linear-gradient(to right, transparent 0, transparent 3px, #d7e1ef 3px, #d7e1ef 7px, transparent 7px);
}

.schedule-layout-splitter:hover,
.schedule-layout-splitter.is-dragging {
  background:
    linear-gradient(to right, transparent 0, transparent 2px, #7ea7df 2px, #7ea7df 8px, transparent 8px);
}

.schedule-side-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.schedule-today-split {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.schedule-today-split > .schedule-side-section:nth-of-type(1) {
  flex: 0 0 var(--schedule-pane-top-height);
}

.schedule-today-split > .schedule-side-section:nth-of-type(2) {
  flex: 0 0 var(--schedule-pane-middle-height);
}

.schedule-today-split > .schedule-side-section:nth-of-type(3) {
  flex: 1 1 auto;
}

.schedule-side-section {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.schedule-side-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.schedule-side-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.schedule-side-section-title h3 {
  margin: 0;
  font-size: 1rem;
  color: #294564;
}

.schedule-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.schedule-side-filter-wrap,
.schedule-side-filter-wrap .multi-check-toggle {
  min-width: 180px;
}

.schedule-pane-splitter {
  flex: 0 0 10px;
  cursor: row-resize;
  background:
    linear-gradient(to bottom, transparent 0, transparent 3px, #d7e1ef 3px, #d7e1ef 7px, transparent 7px);
}

.schedule-pane-splitter:hover,
.schedule-pane-splitter.is-dragging {
  background:
    linear-gradient(to bottom, transparent 0, transparent 2px, #7ea7df 2px, #7ea7df 8px, transparent 8px);
}

.schedule-side-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.schedule-side-list-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #edf2f8;
  cursor: pointer;
}

.schedule-side-list-item:last-child {
  border-bottom: 0;
}

.schedule-side-list-item:hover {
  background: #f5f9ff;
}

.schedule-side-list-item.is-readonly {
  background: #fbfdff;
}

.schedule-side-list-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: #587093;
  white-space: nowrap;
  padding-top: 0.1rem;
}

.schedule-side-list-body {
  min-width: 0;
}

.schedule-side-list-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #203754;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.schedule-side-list-meta {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: #6c7f95;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.schedule-side-list-tags {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.schedule-side-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.schedule-side-tag.tag-shared {
  background: #eef4ff;
  color: #2f6cb0;
}

.schedule-side-tag.tag-common {
  background: #ecf8f0;
  color: #2d7c53;
}

.schedule-side-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1rem;
  color: #72839a;
  font-size: 0.88rem;
  text-align: center;
}

.schedule-meeting-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.schedule-meeting-detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.schedule-meeting-detail-grid .full {
  grid-column: 1 / -1;
}

.schedule-meeting-detail-grid strong {
  font-size: 0.82rem;
  color: #5a708e;
}

.schedule-meeting-detail-grid span,
.schedule-meeting-detail-grid p {
  color: #24364d;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.schedule-jobtype-legend {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  gap: 0.18rem 0.65rem;
  justify-content: end;
  align-items: center;
  max-width: 58%;
  margin-left: auto;
}

.schedule-jobtype-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  color: #5b6f8b;
  font-size: 0.7rem;
  line-height: 1.1;
  white-space: nowrap;
}

.schedule-jobtype-legend-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  flex: 0 0 auto;
  border: 1px solid transparent;
}

.view-toggle-group {
  display: inline-flex;
  gap: 0.4rem;
}

.calendar-toolbar.schedule-toolbar-left {
  justify-content: flex-start;
}

.schedule-toolbar-split {
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.6rem;
}

.schedule-toolbar-left-group,
.schedule-toolbar-right-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.schedule-toolbar-left-group {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  font-size: 0.9rem;
}

.schedule-toolbar-right-group {
  flex: 1 1 auto;
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: 0.4rem;
  font-size: 0.9rem;
}

.schedule-toolbar-right-group .form-label {
  white-space: nowrap;
  font-size: 0.8rem;
}

.schedule-toolbar-left-group .btn,
.schedule-toolbar-right-group .btn,
.schedule-toolbar-left-group strong {
  font-size: 0.82rem;
}

.schedule-toolbar-right-group .form-select,
.schedule-toolbar-right-group .form-control {
  min-width: 130px;
  width: auto;
  font-size: 0.82rem;
}

.searchable-combo {
  position: relative;
  min-width: 150px;
}

.user-filter-combo {
  min-width: 104px;
  width: auto;
  flex: 0 0 auto;
  display: inline-flex;
}

.schedule-toolbar-right-group .user-filter-combo,
.schedule-toolbar-right-group #userFilterSearch {
  min-width: 0 !important;
}

.schedule-toolbar-right-group #userFilterSearch {
  width: 100% !important;
}

.schedule-toolbar-right-group .multi-check-dropdown {
  min-width: 104px;
}

.schedule-toolbar-right-group .multi-check-toggle {
  min-width: 104px;
  width: 104px;
  padding-right: 1.65rem;
  font-size: 0.82rem;
}

.searchable-combo-input {
  width: 100%;
  padding-right: 0.55rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-filter-combo .searchable-combo-menu {
  left: 0;
  right: auto;
  min-width: 96px;
  width: max-content;
  max-width: 240px;
}

.user-filter-combo .searchable-combo-item,
.user-filter-combo .searchable-combo-empty {
  white-space: nowrap;
}

.searchable-combo-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 1250;
  display: none;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #b8c8df;
  background: #fff;
  box-shadow: 0 10px 22px rgba(32, 54, 82, 0.16);
}

.searchable-combo.is-open .searchable-combo-menu {
  display: block;
}

.searchable-combo-item {
  display: block;
  width: 100%;
  padding: 0.38rem 0.55rem;
  border: 0;
  background: #fff;
  color: #344b68;
  font-size: 0.9rem;
  text-align: left;
}

.searchable-combo-item:hover,
.searchable-combo-item.is-active {
  background: #e9f1ff;
  color: #1f4f91;
}

.searchable-combo-item.is-selected {
  background: #d9e8ff;
  color: #16427d;
  font-weight: 700;
}

.searchable-combo-empty {
  padding: 0.45rem 0.55rem;
  color: #6b7d94;
  font-size: 0.86rem;
}

.multi-check-dropdown {
  position: relative;
  min-width: 150px;
}

.multi-check-toggle {
  min-width: 150px;
  text-align: left;
  padding-right: 2rem;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.multi-check-toggle::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.multi-check-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  max-width: 280px;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.55rem 0.65rem;
  background: #ffffff;
  border: 1px solid #d7dde7;
  box-shadow: 0 14px 28px rgba(26, 34, 48, 0.12);
  z-index: 30;
  display: none;
}

.multi-check-dropdown.is-open .multi-check-menu {
  display: block;
}

.multi-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #475467;
  padding: 0.22rem 0;
}

.multi-check-item input {
  margin: 0;
}

.multi-check-item.all-option {
  padding-bottom: 0.45rem;
  margin-bottom: 0.45rem;
  border-bottom: 1px solid #eef1f5;
  font-weight: 700;
}

.dashboard-toolbar-row {
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.dashboard-toolbar-controls {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.dashboard-toolbar-controls .form-label,
.dashboard-toolbar-controls .btn,
.dashboard-toolbar-controls strong {
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 0.82rem;
}

.dashboard-toolbar-controls .form-select,
.dashboard-toolbar-controls .form-control {
  min-width: 126px;
  width: auto;
  flex: 0 0 auto;
}

.dashboard-worktype-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.2rem;
  white-space: nowrap;
}

.dashboard-worktype-filter .form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  margin-right: 0;
}

.dashboard-worktype-filter .form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0;
}

.dashboard-worktype-filter .form-check-label {
  font-size: 0.82rem;
  color: #516b8c;
  font-weight: 700;
}

.dashboard-toolbar-actions {
  justify-content: flex-end;
  margin-left: auto;
}

.monthly-schedule-card .dashboard-toolbar-row {
  flex-wrap: wrap;
  overflow-x: visible;
}

.monthly-schedule-card .dashboard-toolbar-controls {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

#dashboardWorkType997 {
  accent-color: #6f99d8;
}

#dashboardWorkType014 {
  accent-color: #f97316;
}

#dashboardWorkType010 {
  accent-color: #22c55e;
}

#dashboardWorkType011 {
  accent-color: #e879ad;
}

#dashboardWorkType020 {
  accent-color: #75ba97;
}

#dashboardWorkType021 {
  accent-color: #94a3b8;
}

.dashboard-toolbar-controls .multi-check-dropdown {
  min-width: 150px;
  flex: 0 0 auto;
}

.calendar-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid #d7dde7;
  background: #ffffff;
}

.week-day-column {
  min-width: 0;
  border-right: 1px solid #e6ebf3;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.week-day-column:last-child {
  border-right: 0;
}

.week-day-header {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #e6ebf3;
  background: #f6f8fc;
}

.week-day-name {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 700;
}

.week-day-date {
  color: #27303b;
  font-size: 1rem;
  font-weight: 800;
}

.week-day-column.is-other-month .week-day-header {
  background: #fbfcfe;
}

.week-day-column.day-selected .week-day-header {
  background: #edf3ff;
}

.week-day-body {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.week-event-card {
  border: 1px solid #dbe2ec;
  background: #fbfcfe;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.week-event-time {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 0.2rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.week-event-title {
  font-size: 0.9rem;
  color: #27303b;
  font-weight: 700;
  margin-bottom: 0.2rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.week-event-meta {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.week-empty-text {
  color: #98a2b3;
  font-size: 0.85rem;
}

.dashboard-toolbar-controls #dashboardSelectedDateLabel {
  min-width: 120px;
}

.schedule-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.schedule-toolbar-group .form-select {
  min-width: 138px;
}

.schedule-month-nav .schedule-month-text {
  min-width: 110px;
  text-align: center;
  color: #45658f;
  font-weight: 700;
}

.schedule-search-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.schedule-search-row .form-select,
.schedule-search-row .form-control {
  min-width: 140px;
  width: auto;
}

.schedule-month-label {
  margin-left: auto;
  color: #45658f;
  font-size: 0.95rem;
}

.calendar-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.calendar-weekday {
  background: #eaf3ff;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.84rem;
  color: #416894;
}

.calendar-weekday.is-sunday {
  color: #dc2626;
}

.calendar-weekday.is-saturday {
  color: #2563eb;
}

.calendar-cell {
  min-height: 120px;
  border-right: 1px solid #ecf1f8;
  border-bottom: 1px solid #ecf1f8;
  padding: 0.45rem;
  cursor: pointer;
  position: relative;
}

.calendar-cell:nth-child(7n) {
  border-right: 0;
}

.calendar-cell.is-other-month {
  background: #f5f9ff;
  color: #9ca8bb;
}

.calendar-grid .calendar-cell.day-selected {
  outline: 2px solid #89ace4;
  outline-offset: -2px;
  background: #f3f8ff;
}

.calendar-cell.is-expanded {
  z-index: 1;
}

.day-num {
  font-size: 0.78rem;
  color: #587093;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.day-link {
  color: #2f6cb0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.day-link:hover {
  color: #245fa7;
}

.calendar-cell.is-sunday .day-link,
.week-day-column.is-sunday .week-day-name,
.week-day-column.is-sunday .week-day-date {
  color: #dc2626;
}

.calendar-cell.is-saturday .day-link,
.week-day-column.is-saturday .week-day-name,
.week-day-column.is-saturday .week-day-date {
  color: #2563eb;
}

.calendar-cell.is-sunday .day-link:hover {
  color: #b91c1c;
}

.calendar-cell.is-saturday .day-link:hover {
  color: #1d4ed8;
}

.calendar-cell .day-link.is-today,
.calendar-cell .day-link.is-today:hover,
.calendar-cell .day-link.is-today:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
}

.calendar-day-add-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f6cb0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.calendar-day-add-btn:hover,
.calendar-day-add-btn:focus {
  color: #245fa7;
}

/* Electronic approval */
.approval-page { min-width: 0; }
.approval-title-row > div:first-child { display: flex; align-items: baseline; gap: 0.75rem; }
.approval-help { color: #64748b; font-size: 0.82rem; }
.approval-box-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.approval-box-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 1.25rem; margin-bottom: 0.8rem; padding: 0.7rem 0.85rem; border: 1px solid #d8e0eb; border-radius: 0.45rem; background: #f8fafc; }
.approval-box-checks .form-check { margin: 0; }
.approval-search-row { display: flex; align-items: center; justify-content: flex-end; gap: 0.4rem; margin-bottom: 0.75rem; }
.approval-search-row #approvalListShareBtn { margin-right: 0.35rem; white-space: nowrap; }
.approval-search-row #approvalStatusFilter { width: 150px; }
.approval-search-row #approvalKeyword { width: min(420px,40vw); }
.approval-search-row .approval-search-button { min-width: 48px; padding: 0.2rem 0.5rem; font-size: 0.76rem; }
.approval-table .approval-select-column { width: 42px; min-width: 42px; padding-right: 0.35rem; padding-left: 0.35rem; }
.approval-list-wrap { min-height: 430px; border: 1px solid #e2e8f0; }
.approval-table { margin: 0; text-align: center; }
.approval-table thead th { background: #f5f8fc; color: #475569; font-size: 0.8rem; white-space: nowrap; }
.approval-table tbody tr { cursor: pointer; }
.approval-empty { padding: 2rem; color: #94a3b8; text-align: center; }
.approval-empty.compact { padding: 0.8rem; }
.approval-status { display: inline-flex; padding: 0.18rem 0.55rem; border-radius: 999px; background: #e2e8f0; font-size: 0.75rem; font-weight: 700; }
.approval-status.status-completed { color: #166534; background: #dcfce7; }
.approval-status.status-in_progress, .approval-status.status-submitted { color: #1d4ed8; background: #dbeafe; }
.approval-status.status-rejected { color: #b91c1c; background: #fee2e2; }
.approval-status.status-approval_cancelled { color: #9a3412; background: #ffedd5; }
.approval-document-meta { display: grid; grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.8fr); gap: 0.75rem; }
.approval-compose-top-grid { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(390px, 1.35fr) minmax(220px, 0.8fr); gap: 0.65rem; min-height: 310px; margin-top: 0.75rem; }
.approval-compose-line-section { min-height: 220px; margin-top: 0.75rem; }
.approval-template-picker-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 0.65rem; }
.approval-template-picker-list .approval-compose-template-item { min-height: 84px; justify-content: center; }
.approval-compose-pane { display: flex; min-width: 0; min-height: 0; flex-direction: column; border: 1px solid #cbd5e1; border-radius: 0.45rem; background: #fbfdff; overflow: hidden; }
.approval-compose-pane-head { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 0.4rem; padding: 0.45rem 0.6rem; border-bottom: 1px solid #dbe3ee; background: #eef3f9; }
.approval-compose-template-list, .approval-compose-share-list { display: grid; align-content: start; gap: 0.35rem; min-height: 0; flex: 1; padding: 0.5rem; overflow: auto; }
.approval-compose-template-item { display: flex; width: 100%; flex-direction: column; gap: 0.12rem; padding: 0.55rem 0.6rem; border: 1px solid #dbe3ee; border-radius: 0.35rem; background: #fff; color: #334155; text-align: left; }
.approval-compose-template-item:hover:not(:disabled), .approval-compose-template-item.is-selected { border-color: #60a5fa; background: #eff6ff; color: #1d4ed8; }
.approval-compose-template-item:disabled { cursor: default; opacity: 0.82; }
.approval-compose-template-item small { color: #94a3b8; font-size: 0.7rem; }
.approval-compose-line-list { padding: 0.5rem; overflow: auto; }
.approval-compose-line-list .approval-line-row { grid-template-columns: 2rem 3.5rem minmax(115px, 1fr) 4rem auto; }
.approval-compose-share-item { padding: 0.5rem 0.6rem; border: 1px solid #dbe3ee; border-radius: 0.35rem; background: #fff; }
.approval-compose-share-item strong, .approval-compose-share-item small { display: block; }
.approval-compose-share-item small { margin-top: 0.1rem; color: #94a3b8; font-size: 0.72rem; }
.approval-reference-section { margin-top: 0.7rem; border: 1px solid #cbd5e1; border-radius: 0.45rem; background: #fbfdff; overflow: hidden; }
.approval-reference-summary { display: flex; flex-wrap: wrap; gap: 0.45rem; min-height: 56px; align-items: center; padding: 0.55rem; }
.approval-reference-item { position: relative; min-width: 240px; padding: 0.45rem 2rem 0.45rem 0.6rem; border: 1px solid #dbe3ee; border-radius: 0.35rem; background: #fff; }
.approval-reference-item span, .approval-reference-item small { display: block; }
.approval-reference-item small { margin-top: 0.12rem; color: #64748b; font-size: 0.72rem; }
.approval-reference-item button { position: absolute; top: 50%; right: 0.45rem; border: 0; background: transparent; color: #64748b; transform: translateY(-50%); }
.approval-status-bar { margin: 0.75rem 0; padding: 0.55rem 0.75rem; border-radius: 0.4rem; background: #eff6ff; color: #1e40af; font-weight: 700; }
.approval-line-section { padding: 0.8rem; border: 1px solid #dbe3ee; border-radius: 0.5rem; background: #fbfdff; }
.approval-section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.55rem; }
.approval-line-list { display: grid; gap: 0.35rem; }
.approval-line-row { display: grid; grid-template-columns: 2.2rem 4.3rem minmax(160px, 1fr) 5rem auto; align-items: center; gap: 0.45rem; min-height: 42px; padding: 0.35rem 0.5rem; border: 1px solid #dbe3ee; border-radius: 0.35rem; background: #fff; }
.approval-line-row.is-reference { background: #f8fafc; }
.approval-line-order { display: inline-flex; align-items: center; justify-content: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; color: #fff; background: #2563eb; font-size: 0.75rem; font-weight: 700; }
.is-reference .approval-line-order { background: #94a3b8; }
.is-drafter .approval-line-order { background: #0f766e; }
.approval-line-type { color: #475569; font-size: 0.78rem; font-weight: 700; }
.approval-line-row small { display: block; color: #94a3b8; font-size: 0.72rem; }
.approval-line-state { color: #64748b; font-size: 0.75rem; }
.approval-line-actions { display: flex; gap: 0.2rem; }
.approval-line-actions button, .approval-remove-btn { border: 0; background: transparent; color: #64748b; font-weight: 700; }
.approval-content-editor { min-height: 420px; padding: 1.25rem; border: 1px solid #cbd5e1; border-radius: 0.4rem; background: #fff; overflow: auto; }
.approval-editor-toolbar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; border: 1px solid #94a3b8; border-bottom: 0; background: #f8fafc; }
.approval-editor-toolbar select { width: auto; min-width: 105px; border: 0; border-right: 1px solid #dbe3ee; border-radius: 0; background-color: transparent; }
.approval-editor-toolbar button, .approval-editor-toolbar label { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; margin: 0; padding: 0.35rem 0.55rem; border: 0; border-right: 1px solid #dbe3ee; background: transparent; color: #1e293b; cursor: pointer; }
.approval-editor-toolbar button:hover:not(:disabled), .approval-editor-toolbar label:hover { background: #e8eef7; }
.approval-editor-toolbar > button, .approval-editor-toolbar > label { font-size: 1.05rem; }
.approval-editor-toolbar > button.is-active { color: #1d4ed8; background: #dbeafe; }
.approval-editor-toolbar .bi { font-size: 1.08rem; line-height: 1; }
.approval-editor-toolbar label { position: relative; gap: 0.2rem; }
.approval-editor-toolbar input[type="color"] { width: 18px; height: 18px; padding: 0; border: 0; }
.approval-toolbar-line-height { min-width: 82px !important; }
.approval-editor-toolbar.is-disabled { opacity: 0.55; pointer-events: none; }
.approval-table-tools { display: flex; flex: 1 0 100%; width: 100%; flex-wrap: wrap; align-items: stretch; margin-top: 0; border-top: 2px solid #94a3b8; background: #eef3f9; }
.approval-table-tools::before { display: inline-flex; align-items: center; padding: 0.35rem 0.7rem; border-right: 1px solid #cbd5e1; color: #334155; background: #dfe8f3; content: "표·셀 편집"; font-size: 0.78rem; font-weight: 800; }
.approval-table-tools input[type="number"] { width: 72px; min-height: 38px; padding: 0.3rem 0.4rem; border: 0; border-right: 1px solid #dbe3ee; background: #fff; }
.approval-table-tools select { width: 92px; min-width: 92px; }
.approval-content-editor[contenteditable="true"]:focus { outline: 3px solid rgba(37, 99, 235, 0.13); border-color: #60a5fa; }
.approval-content-section-head { margin-bottom: 0; padding: 0.55rem 0.7rem; border: 1px solid #94a3b8; border-bottom: 0; background: #eef3f9; }
.approval-document-form { max-width: 100%; min-width: 0; border: 1px solid #94a3b8; border-radius: 0; overflow-x: auto; box-sizing: border-box; }
.approval-document-form p { min-height: 1.4em; }
.approval-content-editor.is-source-mode { white-space: pre-wrap; color: #d1e7ff; background: #172033; font-family: Consolas,"Courier New",monospace; font-size: 0.82rem; line-height: 1.55; }
.approval-editor-preview-body { padding: 1rem; background: #eef2f7; }
.approval-document-form table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; border: 1px solid #64748b; box-sizing: border-box; }
.approval-document-preview-content table { width: 100%; border-collapse: collapse !important; border: 1px solid #64748b !important; }
.approval-document-form th,
.approval-document-form td { min-width: 30px; max-width: 100%; padding: 0.65rem; border: 1px solid #94a3b8; vertical-align: middle !important; overflow-wrap: anywhere; word-break: break-word; box-sizing: border-box; }
.approval-document-form table tr { min-height: 0; }
.approval-document-form table td p, .approval-document-form table th p { min-height: 0; margin: 0; }
.approval-document-form table[border] td, .approval-document-form table[border] th { min-height: 0; padding: 0; }
.approval-document-preview-content th,
.approval-document-preview-content td { min-width: 110px; padding: 0.65rem !important; border: 1px solid #94a3b8 !important; vertical-align: middle; }
.approval-document-preview-content table td p, .approval-document-preview-content table th p { min-height: 0; margin: 0; }
.approval-document-preview-content table[border] td, .approval-document-preview-content table[border] th { min-width: 0; min-height: 0; padding: 0 !important; vertical-align: middle !important; }
.approval-document-form th, .approval-document-form td { position: relative; min-width: 30px; overflow: visible; }
.approval-document-form th.is-table-cell-selected, .approval-document-form td.is-table-cell-selected { outline: 3px solid #2563eb; outline-offset: -3px; box-shadow: inset 0 0 0 9999px rgba(147,197,253,0.24); }
.approval-document-form th.is-table-cell-selected::after, .approval-document-form td.is-table-cell-selected::after { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border: 1px solid #fff; background: #2563eb; content: ""; pointer-events: none; }
.approval-document-form.has-multi-cell-selection th.is-table-cell-selected::after, .approval-document-form.has-multi-cell-selection td.is-table-cell-selected::after { display: none; }
.approval-document-form th,
.approval-document-preview-content th { width: 16%; background: #f1f5f9; color: #334155; font-weight: 700; }
.approval-table-quick-host { position: relative; }
.approval-table-quick { position: absolute; z-index: 1090; display: flex; align-items: stretch; padding: 0.25rem; border: 1px solid #cbd5e1; border-radius: 0.35rem; background: #fff; box-shadow: 0 7px 22px rgba(15,23,42,0.2); }
.approval-table-quick.is-viewport-fixed { position: fixed; }
.approval-table-quick.is-visible { display: flex; }
.approval-table-quick.is-dragging { user-select: none; box-shadow: 0 10px 28px rgba(15,23,42,0.3); }
.approval-table-quick::after { display: none; }
.approval-table-quick-drag { display: inline-flex; width: 24px; align-items: center; justify-content: center; border-right: 1px solid #cbd5e1; color: #64748b; cursor: grab; touch-action: none; }
.approval-table-quick.is-dragging .approval-table-quick-drag { cursor: grabbing; }
.approval-table-quick button { position: relative; z-index: 1; display: inline-flex; width: 36px; height: 32px; align-items: center; justify-content: center; padding: 0; border: 0; border-right: 1px solid #e2e8f0; background: #fff; color: #243247; font-size: 1rem; }
.approval-table-quick button:last-child { border-right: 0; }
.approval-table-quick button:hover { color: #1d4ed8; background: #eff6ff; }
.approval-table-quick .approval-table-quick-gap { width: 7px; border-right: 1px solid #cbd5e1; }
.approval-cell-format-tools { position: fixed; z-index: 1092; display: flex; align-items: stretch; padding: 0.2rem; border: 1px solid #cbd5e1; border-radius: 0.3rem; background: #fff; box-shadow: 0 7px 22px rgba(15,23,42,0.2); }
.approval-cell-format-tools::after { position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; border-right: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; background: #fff; content: ""; transform: translateX(-50%) rotate(45deg); }
.approval-cell-format-tools button, .approval-cell-format-tools label { position: relative; z-index: 1; display: inline-flex; min-width: 38px; height: 34px; align-items: center; justify-content: center; margin: 0; padding: 0.25rem 0.45rem; border: 0; border-right: 1px solid #e2e8f0; background: #fff; color: #1e293b; cursor: pointer; }
.approval-cell-format-tools button:hover, .approval-cell-format-tools label:hover { color: #1d4ed8; background: #eff6ff; }
.approval-cell-format-tools input[type="color"] { width: 18px; height: 18px; margin-left: 0.2rem; padding: 0; border: 0; }
.approval-table-menu { position: fixed; z-index: 1095; display: block; width: 292px; padding: 0.7rem; border: 1px solid #cbd5e1; border-radius: 0.4rem; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,0.22); }
.approval-table-menu.is-visible { display: block; }
.approval-table-menu-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; color: #334155; font-size: 0.8rem; font-weight: 800; }
.approval-table-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; margin-bottom: 0.65rem; }
.approval-table-grid button { aspect-ratio: 1; min-width: 0; padding: 0; border: 1px solid #cbd5e1; border-radius: 1px; background: #fff; }
.approval-table-grid button.is-hover { border-color: #3b82f6; background: #bfdbfe; }
.approval-table-menu-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0.3rem; padding-top: 0.55rem; border-top: 1px solid #e2e8f0; }
.approval-table-menu-actions button { display: flex; min-height: 34px; align-items: center; gap: 0.42rem; padding: 0.35rem 0.5rem; border: 1px solid #dbe3ee; border-radius: 0.25rem; background: #f8fafc; color: #334155; font-size: 0.76rem; text-align: left; }
.approval-table-menu-actions button:hover:not(:disabled) { border-color: #93c5fd; color: #1d4ed8; background: #eff6ff; }
.approval-table-menu-actions button:disabled { opacity: 0.42; cursor: not-allowed; }
.approval-table-menu-actions button.is-danger { color: #b91c1c; }
.approval-table-property-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0.65rem; }
.approval-table-property-grid label { display: grid; gap: 0.25rem; color: #475569; font-size: 0.76rem; font-weight: 700; }
.approval-table-property-grid label.full { grid-column: 1 / -1; }
.approval-table-property-grid .form-control, .approval-table-property-grid .form-select { min-width: 0; }
.approval-table-property-modal { z-index: 1100; }
.approval-special-character-modal, .approval-source-editor-modal { z-index: 1120; }
.approval-special-character-modal .modal-dialog { max-width: 620px; }
.approval-special-character-layout { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 0.8rem; }
.approval-special-character-categories { display: grid; align-content: start; gap: 0.15rem; }
.approval-special-character-categories button { padding: 0.35rem 0.45rem; border: 0; border-radius: 0.25rem; background: transparent; color: #64748b; text-align: left; }
.approval-special-character-categories button:hover, .approval-special-character-categories button.is-active { color: #1d4ed8; background: #eff6ff; font-weight: 700; }
.approval-special-character-content { min-width: 0; }
.approval-special-character-grid { display: grid; max-height: 330px; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 0.2rem; margin-top: 0.55rem; padding: 0.4rem; border: 1px solid #dbe3ee; border-radius: 0.35rem; overflow-y: auto; }
.approval-special-character-grid button { display: flex; min-width: 0; aspect-ratio: 1; align-items: center; justify-content: center; padding: 0; border: 1px solid transparent; border-radius: 0.2rem; background: #fff; color: #1e293b; font-size: 1.05rem; }
.approval-special-character-grid button:hover { border-color: #93c5fd; color: #1d4ed8; background: #eff6ff; }
.approval-special-character-empty { padding: 2rem 0.5rem; color: #94a3b8; text-align: center; }
.approval-source-editor-modal .modal-dialog { width: calc(100vw - 2rem); max-width: 1880px; margin: 1rem auto; }
.approval-source-editor-modal .modal-content { width: 100%; height: min(88vh,950px); min-width: 720px; min-height: 480px; max-width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); resize: both; overflow: hidden; background: #fff; }
.approval-source-editor-modal .modal-header, .approval-source-editor-modal .modal-footer { flex: 0 0 auto; }
.approval-source-editor-modal .modal-body { display: flex; min-height: 0; flex: 1 1 auto; overflow: hidden; background: #fff; }
.approval-source-editor-split { display: grid; width: 100%; min-width: 0; min-height: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0.8rem; }
.approval-source-editor-pane, .approval-source-preview-pane { display: flex; min-width: 0; min-height: 0; flex-direction: column; gap: 0.4rem; }
.approval-source-editor-pane > strong, .approval-source-preview-pane > strong { flex: 0 0 auto; color: #334155; font-size: 0.82rem; }
.approval-source-editor-textarea { width: 100%; height: 100% !important; min-height: 260px !important; flex: 1 1 auto; resize: none; overflow: auto; border-color: #cbd5e1; background: #fff !important; color: #172033 !important; font-family: Consolas,"Courier New",monospace; font-size: 0.82rem; line-height: 1.55; white-space: pre; }
.approval-source-live-preview { width: 100%; min-width: 0; min-height: 0; flex: 1 1 auto; padding: 1rem; overflow: auto; }
@media (max-width: 900px) { .approval-source-editor-split { grid-template-columns: 1fr; grid-template-rows: repeat(2,minmax(280px,1fr)); overflow-y: auto; } }
@media (max-width: 640px) { .approval-source-editor-modal .modal-dialog { width: calc(100vw - 1rem); margin: 0.5rem; } .approval-source-editor-modal .modal-content { min-width: 0; min-height: 360px; max-width: 100%; } }
@media (max-width: 575px) { .approval-special-character-layout { grid-template-columns: 1fr; } .approval-special-character-categories { grid-template-columns: repeat(4,1fr); } .approval-special-character-grid { grid-template-columns: repeat(6,minmax(0,1fr)); } }
.approval-template-input { width: 100%; min-height: 38px; padding: 0.4rem 0.5rem; border: 1px solid #64748b; border-radius: 0.2rem; background: #fff; color: #1e293b; outline: none; }
.approval-template-input:focus { border-color: #2563eb; box-shadow: 0 0 0 0.16rem rgba(37, 99, 235, 0.14); }
.approval-template-textarea { min-height: 96px; resize: vertical; }
.approval-template-date { min-width: 155px; cursor: pointer; }
.approval-template-document-no { border-color: transparent; background: #f8fafc; color: #334155; font-weight: 700; cursor: default; }
.approval-document-preview-content .approval-template-input:disabled { border-color: transparent; background: transparent; color: #1e293b; opacity: 1; -webkit-text-fill-color: #1e293b; }
.approval-user-summary { min-height: 42px; padding: 0.55rem 0.7rem; border-radius: 0.35rem; background: #fff; color: #475569; }
.approval-document-divider { margin: 1.15rem 0; border: 0; border-top: 2px solid #94a3b8; opacity: 1; }
.approval-history { display: grid; gap: 0.35rem; }
.approval-history > div { display: grid; grid-template-columns: 100px 130px 140px 1fr; gap: 0.5rem; padding: 0.45rem 0.6rem; border-bottom: 1px solid #e2e8f0; font-size: 0.8rem; }
.approval-history p { margin: 0; }
.approval-preview-body { padding: 1.25rem; background: #f5f7fb; }
.approval-preview-close { position: absolute; z-index: 3; top: 1rem; right: 1rem; }
.approval-preview-top { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(525px, auto); align-items: start; gap: 1rem; padding: 0.25rem 2.5rem 0.25rem 0; }
.approval-preview-heading { display: flex; min-width: 0; min-height: 100px; flex-direction: column; justify-content: center; padding: 0.65rem 1rem; }
.approval-preview-heading h5 { margin: 0 0 0.55rem; color: #172033; font-size: clamp(1.65rem, 2.2vw, 2.35rem); font-weight: 900; line-height: 1.18; letter-spacing: -0.035em; }
.approval-preview-heading small { color: #475569 !important; font-size: clamp(0.88rem, 1vw, 1.05rem); font-weight: 700; line-height: 1.5; }
.approval-preview-line { display: grid; width: 100%; max-width: 545px; grid-template-columns: repeat(5, 105px); justify-content: end; align-content: flex-start; gap: 0.3rem; margin-left: auto; }
.approval-preview-line-item { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; min-height: 100px; border: 1px solid #94a3b8; background: #fff; text-align: center; }
.approval-preview-line-item:first-child:nth-last-child(1) { grid-column-start: 5; }
.approval-preview-line-item:first-child:nth-last-child(2) { grid-column-start: 4; }
.approval-preview-line-item:first-child:nth-last-child(3) { grid-column-start: 3; }
.approval-preview-line-item:first-child:nth-last-child(4) { grid-column-start: 2; }
.approval-preview-line-item > span { padding: 0.25rem; border-bottom: 1px solid #cbd5e1; background: #eef3f9; color: #475569; font-size: 0.72rem; }
.approval-preview-line-item > strong { display: flex; align-items: center; justify-content: center; padding: 0.5rem; }
.approval-preview-line-item > strong { position: relative; min-height: 3rem; padding: 0.2rem; }
.approval-line-person-name { position: relative; z-index: 1; }
.approval-line-complete-mark { position: absolute; z-index: 0; top: 50%; left: 50%; width: 2.65rem; height: 2.65rem; border: 2.5px solid #9ca3af; border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.approval-preview-line-item > small { padding: 0.25rem; border-top: 1px solid #e2e8f0; color: #64748b; }
.approval-preview-line-item > small { display: flex; min-height: 2.55rem; flex-direction: column; align-items: center; justify-content: center; gap: 0.08rem; }
.approval-preview-line-item > small time { font-size: 0.62rem; white-space: nowrap; }
.approval-preview-line-item.is-drafter > span { background: #ecfdf5; color: #0f766e; }
.approval-document-preview-content { min-height: 480px; padding: 1.5rem; border: 1px solid #cbd5e1; background: #fff; overflow: auto; }
.approval-preview-content-title { margin: 0; padding: 0.8rem 1rem; border: 1px solid #cbd5e1; border-bottom: 0; background: #f8fafc; color: #172033; font-size: 1.15rem; font-weight: 800; }
.approval-preview-references { margin-top: 0.75rem; padding: 0.75rem; border: 1px solid #dbe3ee; background: #fff; }
.approval-preview-references > strong { display: block; margin-bottom: 0.45rem; }
.approval-preview-references > div { display: grid; gap: 0.35rem; }
.approval-preview-references button { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.65rem; border: 1px solid #dbe3ee; border-radius: 0.3rem; background: #f8fafc; color: #334155; text-align: left; }
.approval-preview-references button:hover { border-color: #60a5fa; background: #eff6ff; }
.approval-preview-references small { color: #64748b; }
.approval-reference-candidate-list { display: grid; gap: 0.35rem; }
.approval-reference-candidate { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.65rem; padding: 0.6rem 0.7rem; border: 1px solid #dbe3ee; border-radius: 0.35rem; background: #fff; cursor: pointer; }
.approval-reference-candidate:hover { border-color: #93c5fd; background: #f8fbff; }
.approval-reference-candidate small { display: block; margin-top: 0.12rem; color: #64748b; font-size: 0.75rem; }
.approval-file-section { margin-top: 0.7rem; border: 1px solid #cbd5e1; border-radius: 0.45rem; background: #fbfdff; overflow: hidden; }
.approval-file-list { display: grid; gap: 0.35rem; min-height: 48px; padding: 0.55rem; }
.approval-file-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 0.45rem; padding: 0.42rem 0.55rem; border: 1px solid #dbe3ee; border-radius: 0.35rem; background: #fff; }
.approval-file-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.approval-file-item small { color: #64748b; white-space: nowrap; }
.approval-file-item.is-pending { border-style: dashed; background: #f8fafc; }
.approval-file-item button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #64748b; }
.approval-file-item button:hover { background: #fee2e2; color: #dc2626; }
.approval-preview-files { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
.approval-preview-files a { display: inline-flex; align-items: center; padding: 0.45rem 0.65rem; border: 1px solid #cbd5e1; border-radius: 0.35rem; background: #fff; color: #1d4ed8; text-decoration: none; }
.approval-preview-files a:hover { border-color: #60a5fa; background: #eff6ff; text-decoration: underline; }
.approval-preview-opinion { display: grid; grid-template-columns: 100px 1fr; gap: 0.6rem; padding: 0.75rem; border: 1px solid #dbe3ee; background: #fff; }
.approval-preview-opinion-item { display: grid; grid-template-columns: 70px 100px minmax(180px, 1fr) 125px; gap: 0.5rem; padding: 0.45rem 0; border-bottom: 1px solid #e2e8f0; align-items: start; font-size: 0.8rem; }
.approval-preview-opinion-item:last-child { border-bottom: 0; }
.approval-preview-opinion-item p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.approval-preview-opinion-item small { color: #64748b; text-align: right; }
.approval-settings-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1rem; min-height: 550px; }
.approval-settings-editor { padding: 1rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; }
.approval-template-tabs { padding-top: 1rem; }
.approval-template-layout { display: grid; grid-template-columns: minmax(430px, 0.85fr) minmax(500px, 1.15fr); gap: 0.75rem; min-height: 620px; }
.approval-template-layout tbody tr { cursor: pointer; }
.approval-template-preview { width: 100%; min-height: 620px; border: 1px solid #dbe3ee; background: #fff; }
.approval-template-meta { display: grid; grid-template-columns: 0.8fr 1.2fr 1.4fr 0.55fr; gap: 0.65rem; }
.approval-template-editor-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 0.8rem; min-height: 680px; }
.approval-template-code-pane, .approval-template-editor-pane { min-width: 0; border: 1px solid #dbe3ee; border-radius: 0.45rem; background: #fff; overflow: hidden; }
.approval-template-editor-pane { padding: 0.85rem; overflow: visible; }
.approval-template-code-list { display: grid; align-content: start; gap: 0.35rem; padding: 0.5rem; }
.approval-template-code-item { display: flex; width: 100%; flex-direction: column; gap: 0.15rem; padding: 0.65rem; border: 1px solid #dbe3ee; border-radius: 0.35rem; background: #fff; color: #334155; text-align: left; }
.approval-template-code-item:hover, .approval-template-code-item.is-selected { border-color: #60a5fa; background: #eff6ff; color: #1d4ed8; }
.approval-template-code-item small { color: #64748b; }
.approval-html-editor {
  width: 100%;
  min-height: 520px;
  height: auto;
  overflow-x: hidden;
  overflow-y: hidden;
  resize: vertical;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  tab-size: 2;
}
.approval-menu-group { margin: 0; }
.approval-menu-new-badge { margin-left: auto; padding: 0.08rem 0.38rem; border-radius: 999px; background: #ef4444; color: #fff; font-size: 0.62rem; font-weight: 800; line-height: 1.4; letter-spacing: 0.02em; }

.notebook-rental-page .card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.notebook-rental-table-wrap { min-height: 260px; }
.notebook-rental-table { min-width: 1120px; }
.notebook-rental-table th { white-space: nowrap; text-align: center; background: #eef3f9; }
.notebook-rental-table td { text-align: center; vertical-align: middle; }
.notebook-rental-table .notebook-purpose-cell { min-width: 210px; text-align: left; white-space: pre-wrap; }
.notebook-rental-tree-link { display: flex; align-items: center; gap: 0.5rem; }
.tree-link .notebook-rental-new-badge { display: inline-block; margin-left: auto; }

.production-daily-page { display: grid; grid-template-columns: minmax(260px, var(--production-list-width, 36%)) 9px minmax(360px, 1fr); gap: .45rem; min-height: calc(100vh - 125px); }
.production-daily-splitter { position: relative; align-self: stretch; border-radius: 999px; cursor: col-resize; touch-action: none; outline: 0; }
.production-daily-splitter::before { content: ''; position: absolute; top: 1rem; bottom: 1rem; left: 3px; width: 3px; border-radius: 999px; background: #bcc8d7; transition: background .15s ease, width .15s ease, left .15s ease; }
.production-daily-splitter:hover::before, .production-daily-splitter:focus::before, .production-daily-splitter.is-dragging::before { left: 2px; width: 5px; background: #2563eb; }
.production-split-resizing { cursor: col-resize !important; user-select: none !important; }
.production-split-resizing iframe { pointer-events: none; }
.production-daily-list-panel, .production-daily-preview-panel { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.production-daily-list-panel { position: relative; transition: box-shadow .15s ease, background .15s ease; }
.production-daily-list-panel.drag-over { background: #e8f2ff; box-shadow: inset 0 0 0 3px #2563eb; }
.production-daily-list-panel.is-uploading::after { content: 'PDF 저장 중...'; position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(255,255,255,.82); color: #1d4ed8; font-weight: 800; }
.production-daily-list-panel .card-title-row, .production-daily-preview-panel .card-title-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.production-daily-search { display: grid; grid-template-columns: minmax(112px,1fr) auto minmax(112px,1fr) auto; align-items: center; gap: .35rem; padding: .55rem .65rem; border-top: 1px solid #d8e1ec; }
.production-daily-list-head { display: grid; grid-template-columns: 70px 1fr; padding: .6rem .8rem; border-top: 1px solid #d8e1ec; border-bottom: 1px solid #d8e1ec; background: #eef3f9; font-weight: 700; }
.production-daily-list { flex: 1; min-height: 0; overflow: auto; }
.production-daily-row { display: grid; grid-template-columns: 38px 1fr; align-items: center; padding: .4rem .7rem; border-bottom: 1px solid #e1e7ef; }
.production-daily-row.active { background: #e8f2ff; }
.production-daily-open { display: grid; gap: .12rem; width: 100%; padding: .35rem; border: 0; background: transparent; text-align: left; color: inherit; }
.production-daily-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-daily-preview-panel { padding-bottom: 0; }
.production-daily-preview { flex: 1; width: 100%; min-height: 650px; border: 1px solid #ccd6e3; background: #fff; }
.production-daily-preview-empty, .production-daily-empty { display: grid; place-items: center; flex: 1; min-height: 240px; color: #7b8798; }
.production-daily-drop-zone { display: flex; min-height: 220px; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; border: 2px dashed #9dafc4; border-radius: 12px; background: #f7f9fc; cursor: pointer; transition: .15s ease; }
.production-daily-drop-zone i { font-size: 2.6rem; color: #dc3545; }
.production-daily-drop-zone.drag-over { border-color: #2563eb; background: #e8f2ff; transform: scale(1.005); }
.production-daily-drop-zone.has-file { border-color: #198754; background: #effaf4; }
@media (max-width: 980px) { .production-daily-page { grid-template-columns: 1fr; } .production-daily-splitter { display: none; } .production-daily-preview { min-height: 560px; } }
.approval-line-picker-body { display: grid; grid-template-rows: minmax(360px, 1.35fr) minmax(210px, 0.75fr); gap: 0.8rem; min-height: 680px; padding: 0.8rem; background: #f5f7fb; }
.approval-picker-section { display: flex; min-height: 0; flex-direction: column; border: 1px solid #cbd5e1; border-radius: 0.45rem; background: #fff; overflow: hidden; }
.approval-picker-section-title { padding: 0.5rem 0.7rem; border-bottom: 1px solid #dbe3ee; background: #eef3f9; color: #334155; font-size: 0.85rem; font-weight: 800; }
.approval-picker-design-grid { display: grid; grid-template-columns: minmax(310px, 1fr) 90px minmax(390px, 1.2fr); gap: 0.6rem; min-height: 0; flex: 1; padding: 0.6rem; }
.approval-picker-personal-grid { display: grid; grid-template-columns: minmax(260px, 0.7fr) minmax(420px, 1.3fr); gap: 0.6rem; min-height: 0; flex: 1; padding: 0.6rem; }
.approval-picker-pane { display: flex; min-height: 0; flex-direction: column; border: 1px solid #dbe3ee; border-radius: 0.35rem; overflow: hidden; }
.approval-picker-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 42px; padding: 0.35rem 0.55rem; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.approval-picker-pane-head .form-control { width: 190px; }
.approval-picker-tree, .approval-picker-selected-lines, .approval-picker-personal-names, .approval-picker-personal-detail { min-height: 0; flex: 1; overflow: auto; padding: 0.35rem; }
.approval-picker-dept + .approval-picker-dept { margin-top: 0.15rem; }
.approval-picker-dept-toggle, .approval-picker-user, .approval-picker-personal-name { display: flex; width: 100%; align-items: center; gap: 0.4rem; border: 0; border-radius: 0.25rem; background: transparent; text-align: left; }
.approval-picker-dept-toggle { padding: 0.4rem 0.45rem; color: #334155; font-weight: 800; }
.approval-picker-dept-toggle:hover { background: #eef4fb; }
.approval-picker-dept-toggle small { margin-left: auto; color: #94a3b8; }
.approval-picker-users { margin-left: 1rem; padding-left: 0.55rem; border-left: 1px dotted #94a3b8; }
.approval-picker-user { padding: 0.32rem 0.4rem; color: #475569; font-size: 0.8rem; }
.approval-picker-user:hover, .approval-picker-user.is-selected { background: #dbeafe; color: #1d4ed8; }
.approval-picker-type-actions { display: flex; flex-direction: column; justify-content: center; gap: 0.55rem; }
.approval-picker-type-actions .btn { display: flex; justify-content: space-between; align-items: center; }
.approval-picker-selected-row { display: grid; grid-template-columns: 2rem 5.2rem minmax(140px, 1fr) auto; align-items: center; gap: 0.35rem; min-height: 42px; padding: 0.3rem 0.4rem; border-bottom: 1px solid #e2e8f0; }
.approval-picker-type-select { min-width: 0; padding-top: 0.2rem; padding-bottom: 0.2rem; font-size: 0.75rem; }
.approval-picker-selected-row small { display: block; color: #94a3b8; font-size: 0.7rem; }
.approval-picker-personal-name { justify-content: space-between; padding: 0.45rem 0.55rem; color: #475569; }
.approval-picker-personal-name:hover, .approval-picker-personal-name.is-selected { background: #dbeafe; color: #1d4ed8; }
.approval-picker-personal-row { display: grid; grid-template-columns: 2rem 3.8rem 1fr; gap: 0.45rem; padding: 0.4rem 0.5rem; border-bottom: 1px solid #e2e8f0; font-size: 0.8rem; }

@media (max-width: 1000px) {
  .approval-settings-layout, .approval-template-layout, .approval-template-editor-layout { grid-template-columns: 1fr; }
  .approval-template-meta { grid-template-columns: 1fr 1fr; }
  .approval-compose-top-grid { grid-template-columns: 1fr; }
  .approval-picker-design-grid { grid-template-columns: 1fr; }
  .approval-picker-type-actions { flex-direction: row; }
  .approval-picker-personal-grid { grid-template-columns: 1fr; }
  .approval-line-picker-body { grid-template-rows: auto auto; }
  .approval-preview-top { grid-template-columns: 1fr; }
  .approval-preview-line { width: 100%; max-width: none; justify-content: end; }
}

@media (max-width: 700px) {
  .approval-search-row, .approval-document-meta, .approval-template-meta { grid-template-columns: 1fr; }
  .approval-search-row { flex-wrap: wrap; }
  .approval-search-row #approvalKeyword { width: 100%; }
  .approval-line-row { grid-template-columns: 2rem 3.5rem 1fr auto; }
  .approval-line-state { display: none; }
  .approval-history > div { grid-template-columns: 1fr 1fr; }
  .approval-preview-line { grid-template-columns: repeat(2, minmax(100px, 1fr)); }
  .approval-preview-line-item:first-child { grid-column-start: auto !important; }
  .approval-preview-opinion { grid-template-columns: 1fr; }
  .approval-preview-opinion-item { grid-template-columns: 1fr 1fr; }
}

.event-pill {
  margin-top: 0.3rem;
  border-radius: 7px;
  font-size: 0.73rem;
  line-height: 1.2;
  padding: 0.22rem 0.35rem;
  color: #213b5f;
  border: 1px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-cell.is-expanded .event-pill {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.calendar-more-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.calendar-grid .calendar-more-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  color: #2f6cb0 !important;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.calendar-more-separator {
  color: #7b8ba1;
  font-size: 0.76rem;
  line-height: 1.2;
}

.calendar-grid .calendar-more-toggle:visited,
.calendar-grid .calendar-more-toggle:hover,
.calendar-grid .calendar-more-toggle:active,
.calendar-grid .calendar-more-toggle:focus {
  color: #2f6cb0 !important;
}

.calendar-grid .calendar-more-toggle:focus-visible {
  outline: 2px solid rgba(47, 108, 176, 0.28);
  outline-offset: 2px;
  border-radius: 4px;
}

.event-meeting { background: #e6f0ff; border-color: #bdd5fb; }
.event-attendance { background: #e7f8ef; border-color: #bae6d0; }
.event-delivery { background: #fff4e6; border-color: #ffd5a0; }
.event-task { background: #f1ecff; border-color: #d9ccfb; }
.event-combo-0 { background: #e8f1ff; border-color: #bfd6ff; }
.event-combo-1 { background: #e8f8f1; border-color: #bfe4d2; }
.event-combo-2 { background: #fff4e7; border-color: #ffd8ae; }
.event-combo-3 { background: #f2edff; border-color: #d9ccfb; }
.event-combo-4 { background: #e8f7fb; border-color: #bfe1ec; }
.event-combo-5 { background: #fff0f1; border-color: #f3c3cb; }
.event-combo-6 { background: #fff7fb; border-color: #fbcfe8; }
.event-combo-7 { background: #f4efff; border-color: #d8cdf6; }
.event-combo-8 { background: #f1f5f9; border-color: #cbd5e1; }
.event-combo-9 { background: #ffe4e6; border-color: #fda4af; }
.event-combo-shipping-sales { background: #ffedd5; border-color: #fb923c; }
.event-combo-shipping-trade { background: #dcfce7; border-color: #86efac; }
.event-combo-raw-material { background: #dbeafe; border-color: #1d4ed8; color: #172554; }

.calendar-legend {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-sub);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.schedule-tooltip {
  position: fixed;
  z-index: 1200;
  pointer-events: none;
  min-width: 180px;
  max-width: 260px;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 10px;
  color: #e7f0ff;
  background: rgba(25, 45, 80, 0.95);
  box-shadow: var(--shadow);
  white-space: pre-line;
  display: none;
}

.meeting-page-layout {
  display: grid;
  grid-template-rows: auto auto;
  gap: var(--panel-gap-compact);
}

.meeting-page-layout.mt-3 {
  margin-top: var(--panel-gap-compact) !important;
}

.meeting-page-layout.meeting-page-split {
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: stretch;
}

.meeting-room-list {
  min-height: 640px;
}

.meeting-top-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr 1.45fr;
  gap: 1rem;
}

.meeting-column {
  min-height: 0;
}

.meeting-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.meeting-slot-header input {
  max-width: 190px;
}

.meeting-bottom-panel .table th {
  white-space: nowrap;
}

.meeting-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.8rem;
  align-items: end;
}

.meeting-search-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.meeting-search-bar .meeting-search-row {
  flex: 1 1 auto;
}

.meeting-reservation-grid-wrap {
  overflow-x: auto;
}

.meeting-grid-row {
  cursor: pointer;
}

.meeting-grid-row:hover {
  background: #f4f8ff;
}

.meeting-search-button {
  flex: 0 0 auto;
  display: flex;
  align-items: end;
}

.meeting-search-action {
  display: flex;
  gap: 0.45rem;
  align-items: end;
  height: 100%;
}

.select-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  max-height: 300px;
}

.select-row {
  padding: 0.58rem 0.72rem;
  border-bottom: 1px solid #eef3fb;
  cursor: pointer;
}

.select-row:last-child {
  border-bottom: 0;
}

.select-row:hover {
  background: #f6faff;
}

.select-row.active {
  background: #e8f1ff;
  color: var(--primary);
  font-weight: 700;
}

.select-row.disabled {
  background: #f2f4f8;
  color: #9da8b8;
  cursor: not-allowed;
  text-decoration: line-through;
}

.select-row.readonly {
  background: #fff4f4;
  color: #c06969;
  cursor: not-allowed;
}

.meeting-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.25fr);
  gap: 1rem;
  align-items: stretch;
  grid-auto-rows: minmax(0, 1fr);
}

.meeting-modal-grid > .panel-card + .panel-card {
  margin-top: 0;
}

.meeting-slot-list {
  max-height: none;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.meeting-slot-room {
  min-width: 220px;
}

.meeting-modal-column .card-title-row {
  min-height: 46px;
}

.meeting-modal-column .card-body-area {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.meeting-modal-grid > .meeting-modal-column {
  height: 100%;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}

.meeting-modal-grid > .meeting-modal-column > .card-body-area {
  flex: 1 1 auto;
}

.meeting-modal-column .tab-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.meeting-detail-tabs .nav-link {
  padding: 0.35rem 0.8rem;
  font-size: 0.86rem;
}

.minutes-info-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

.schedule-private-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #4f6788;
  font-weight: 700;
}

.commoncodes-split {
  display: grid;
  grid-template-rows: 380px minmax(320px, 1fr);
  gap: var(--panel-gap-compact);
  min-height: calc(100vh - 220px);
  max-width: 100%;
  overflow: hidden;
}

.commoncodes-panel .card-body-area {
  height: 100%;
  min-height: 0;
}

.commoncodes-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.commoncodes-search-row .form-control {
  width: 280px;
  max-width: 100%;
}

.commoncodes-search-row .form-label {
  color: var(--text-sub);
  font-size: 0.84rem;
  font-weight: 700;
}

.commoncodes-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.commoncodes-toolbar .commoncodes-search-row {
  flex: 1 1 auto;
}

.commoncodes-toolbar-actions {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.commoncodes-search-row-sub {
  min-height: 31px;
}

.commoncodes-form-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.commoncodes-cat-form-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.commoncodes-sub-form-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.commoncodes-form-grid .full {
  grid-column: 1 / -1;
}

.commoncodes-table-wrap {
  border: 1px solid var(--line);
  border-radius: 0;
  flex: 1;
  min-height: 170px;
  max-width: 100%;
  overflow: auto;
  background: #fbfdff;
}

.commoncodes-table tbody tr {
  cursor: pointer;
}

.commoncodes-table tbody tr.row-active {
  background: #e8f0fd;
  color: var(--primary);
  font-weight: 600;
}

.commoncodes-table tbody tr.row-inline-editor td {
  background: #f4f9ff;
  vertical-align: middle;
}

.commoncodes-table tbody tr.row-inline-editor .form-control,
.commoncodes-table tbody tr.row-inline-editor .form-select {
  min-width: 110px;
}

.commoncodes-grid-only .commoncodes-panel .card-body-area {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  width: 100%;
}

.commoncodes-grid-only .commoncodes-table-wrap {
  flex: 1;
  min-height: 220px;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
  border-top: 0;
  margin-top: 0;
}

.commoncodes-grid-only .commoncodes-panel {
  min-width: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.commoncodes-grid-only .commoncodes-panel:first-child {
  height: 380px;
  max-height: 380px;
}

.commoncodes-grid-only .commoncodes-panel:first-child .commoncodes-table-wrap {
  min-height: 0;
}

.commoncodes-grid-only .card-title-row {
  background: #edf5ff;
  border-bottom: 1px solid #c7d9f2;
}

.commoncodes-grid-only .card-title-row h2,
.commoncodes-grid-only .card-title-row h3 {
  color: #2f5f98;
  font-weight: 600;
}

.commoncodes-grid-only .form-label {
  color: #4e719d;
  font-weight: 600;
}

.commoncodes-grid-only .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.commoncodes-grid-only .commoncodes-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.commoncodes-grid-only .commoncodes-table thead th {
  background: #eaf3ff;
  color: #4e719d;
  font-weight: 600;
  font-size: 0.78rem;
  border-top: 0;
  border-bottom: 1px solid #d7e2f2;
  border-right: 1px solid #dfe8f5;
  white-space: nowrap;
  padding: 0.5rem 0.55rem;
}

.commoncodes-grid-only .commoncodes-table tbody td {
  color: #5e7ea7;
  font-weight: 400;
  font-size: 0.82rem;
  border-bottom: 1px solid #e6edf8;
  border-right: 1px solid #edf3fb;
  white-space: nowrap;
  padding: 0.5rem 0.55rem;
}

.commoncodes-grid-only .commoncodes-table thead th:last-child,
.commoncodes-grid-only .commoncodes-table tbody td:last-child {
  border-right: 0;
}

.commoncodes-grid-only .commoncodes-table tbody tr:hover td {
  background: #edf6ff;
}

.commoncodes-grid-only .commoncodes-sub-table-wrap .commoncodes-table {
  min-width: 1700px;
}

.commoncodes-grid-only .commoncodes-search-row .btn,
.commoncodes-grid-only .commoncodes-search-row .form-control,
.commoncodes-grid-only .commoncodes-search-row .form-select {
  font-weight: 500;
}

.delivery-list {
  display: grid;
  gap: 0.7rem;
}

.delivery-status-page {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.delivery-status-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.delivery-list-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.delivery-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.delivery-page-size-group {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.delivery-page-size-group .form-select {
  width: 110px;
}

.delivery-paging-status {
  color: #687387;
  font-size: 0.83rem;
  font-weight: 600;
}

.delivery-list-viewport {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid #dce5f2;
  background: #f8fbff;
}

.delivery-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.delivery-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.8rem;
}

.delivery-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.delivery-search-bar {
  display: flex;
  align-items: end;
  justify-content: flex-start;
}

.delivery-search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(180px, 220px)) auto;
  gap: 0.8rem;
  align-items: end;
}

.delivery-search-action {
  display: flex;
  align-items: end;
  height: 100%;
}

.delivery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.delivery-status-text {
  color: #4f5868;
  font-weight: 700;
}

.progress {
  height: 10px;
  background: #eef2f8;
}

.progress-bar {
  background: linear-gradient(90deg, #5c89cf 0%, #76a2de 100%);
}

.delivery-progress-complete {
  background: linear-gradient(90deg, #85b79b 0%, #96c7aa 100%);
}

@media (max-width: 991.98px) {
  .delivery-status-page {
    min-height: auto;
  }

  .delivery-list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .delivery-page-size-group {
    justify-content: space-between;
  }

  .delivery-list-viewport {
    max-height: none;
  }
}

.delivery-progress-working {
  background: linear-gradient(90deg, #8c9cb4 0%, #a1b0c6 100%);
}

.checklist-grid {
  display: grid;
  gap: 0.6rem;
}

.check-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: #fff;
}

.check-item.done {
  border-color: #bde3cb;
  background: #f2fbf6;
}

.check-item label {
  cursor: pointer;
  margin-bottom: 0;
}

.login-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 18% 20%, #e5f1ff 0%, #f8fbff 42%, #eef6ff 100%);
}

.login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 460px;
  border-radius: 18px;
  overflow: hidden;
}

.login-head {
  padding: 1.35rem 1.35rem 0.9rem;
}

.login-head h1 {
  margin: 0.6rem 0 0.3rem;
  font-size: 1.45rem;
}

.login-head p {
  margin: 0;
  color: var(--text-sub);
}

.login-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #deebff;
  font-size: 1.2rem;
}

.login-form {
  padding: 0.45rem 1.35rem 1.35rem;
}

.signup-link {
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signup-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem;
  background: #f6faff;
}

.signup-admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.signup-disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .topbar-left {
    border-right: 0;
    padding-right: 0.45rem;
  }

  .topbar-right {
    border-left: 0;
    padding-right: 0.8rem;
  }

  .topbar-nav {
    display: none;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid.compact.horizontal-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-body {
    position: relative;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    height: calc(100vh - 64px);
    max-height: calc(100vh - 64px);
    width: var(--sidebar-mobile-width);
    max-width: 310px;
    z-index: 40;
    transform: translateX(-108%);
    box-shadow: 0 18px 38px rgba(28, 62, 109, 0.18);
    transition: transform var(--sidebar-mobile-transition);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar.collapsed {
    width: var(--sidebar-mobile-width);
  }

  .sidebar.collapsed .tree-root span,
  .sidebar.collapsed .tree-link {
    display: block;
  }

  .sidebar.collapsed .tree-root {
    justify-content: flex-start;
  }

  .sidebar-head {
    display: flex;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    bottom: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(20, 36, 58, 0.2);
    backdrop-filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 35;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .content-panel {
    width: 100%;
    padding: 1rem;
  }

  .home-main-grid {
    grid-template-columns: 1fr;
  }

  .monthly-schedule-card .card-body-area {
    min-height: 560px;
  }

  .schedule-page-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .schedule-layout-splitter,
  .schedule-pane-splitter {
    display: none;
  }

  .schedule-today-panel {
    margin-top: var(--panel-gap-compact);
  }

  .schedule-today-split {
    gap: 0.85rem;
  }

  .schedule-today-split > .schedule-side-section:nth-of-type(1),
  .schedule-today-split > .schedule-side-section:nth-of-type(2),
  .schedule-today-split > .schedule-side-section:nth-of-type(3) {
    flex: 0 0 auto;
    min-height: 220px;
  }
}

@media (max-width: 1400px) {
  .schedule-page-layout {
    --schedule-sidebar-width: 360px;
  }

  .home-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-meeting-search {
    grid-template-columns: auto minmax(130px, 1fr) auto minmax(130px, 1fr);
  }

  .dashboard-meeting-search input[type="text"],
  .dashboard-meeting-search .btn {
    grid-column: 1 / -1;
  }

  .dashboard-notice-card .card-title-row h2,
  .dashboard-meeting-title-row h2 {
    flex-basis: 100%;
  }

  .dashboard-notice-search {
    max-width: none;
  }

  .schedule-toolbar-split {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .schedule-toolbar-left-group,
  .schedule-toolbar-right-group {
    width: 100%;
  }

  .schedule-toolbar-left-group {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.1rem;
  }

  .schedule-toolbar-right-group {
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 0.45rem;
  }

  .schedule-toolbar-right-group .form-label {
    margin-left: 0 !important;
    margin-right: 0.1rem;
  }

  .schedule-toolbar-right-group .form-select,
  .schedule-toolbar-right-group .form-control {
    min-width: 150px;
    max-width: 180px;
  }

  .schedule-toolbar-right-group .btn {
    flex: 0 0 auto;
  }

  .monthly-register-actions {
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
  }

  .monthly-register-actions .btn {
    width: auto;
    min-width: 124px;
  }

  .meeting-top-grid {
    grid-template-columns: 1fr 1fr;
  }

  .meeting-page-layout.meeting-page-split {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .meeting-top-grid .meeting-column:last-child {
    grid-column: 1 / -1;
  }

  .commoncodes-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .commoncodes-sub-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .meeting-page-layout.meeting-page-split {
    grid-template-columns: 1fr;
  }

  .meeting-top-grid {
    grid-template-columns: 1fr;
  }

  .meeting-search-row {
    grid-template-columns: 1fr;
  }

  .meeting-search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .meeting-search-button {
    justify-content: flex-start;
  }

  .meeting-modal-grid {
    grid-template-columns: 1fr;
  }

  .meeting-modal-grid > .meeting-modal-column {
    min-height: 0;
  }

  .commoncodes-split {
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .commoncodes-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commoncodes-sub-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commoncodes-search-row .ms-auto {
    margin-left: 0 !important;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  :root {
    --sidebar-mobile-width: min(88vw, 320px);
  }
}

@media (max-width: 767px) {
  .topbar {
    padding: 0 0.7rem;
  }

  .topbar-user {
    display: none;
  }

  .topbar-nav-item {
    padding: 0.43rem 0.62rem;
    font-size: 0.9rem;
  }

  .stat-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .commoncodes-form-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid.compact.horizontal-four {
    grid-template-columns: 1fr;
  }

  .calendar-cell {
    min-height: 98px;
  }

  .dashboard-calendar-lg .calendar-cell {
    min-height: 110px;
  }

  .monthly-control {
    width: 100%;
  }

  .monthly-control select {
    min-width: 0;
    flex: 1;
  }

  .schedule-search-row .form-select,
  .schedule-search-row .form-control,
  .schedule-search-row .btn {
    width: 100%;
  }

  .schedule-month-label {
    margin-left: 0;
  }

  .schedule-toolbar-left .schedule-toolbar-group {
    width: 100%;
  }

  .schedule-toolbar-split {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .schedule-toolbar-left-group,
  .schedule-toolbar-right-group {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
  }

  .schedule-toolbar-right-group .form-select,
  .schedule-toolbar-right-group .form-control,
  .schedule-toolbar-right-group .btn {
    width: 100%;
  }

  .multi-check-dropdown,
  .multi-check-toggle,
  .multi-check-menu {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .dashboard-toolbar-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .dashboard-toolbar-controls {
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .dashboard-toolbar-controls .form-select,
  .dashboard-toolbar-controls .form-control,
  .dashboard-toolbar-controls .btn {
    width: auto;
    flex: 0 0 auto;
  }

  .dashboard-toolbar-controls .multi-check-dropdown,
  .dashboard-toolbar-controls .multi-check-toggle {
    width: auto;
  }

  .monthly-register-actions {
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .monthly-register-actions .btn {
    width: auto;
    flex: 0 0 auto;
    min-width: 124px;
  }

  .calendar-week-grid {
    grid-template-columns: 1fr;
  }

  .week-day-column {
    border-right: 0;
    border-bottom: 1px solid #e6ebf3;
    min-height: 0;
  }

  .week-day-column:last-child {
    border-bottom: 0;
  }

  .schedule-toolbar-left .schedule-toolbar-group .btn,
  .schedule-toolbar-left .schedule-toolbar-group .form-select {
    width: 100%;
  }

  .schedule-toolbar-left .schedule-month-nav {
    justify-content: flex-start;
  }

  .day-page-title-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .day-date-label {
    min-width: 132px;
    font-size: 0.9rem;
  }
}

/* Layout refresh */
html,
body {
  color: var(--text-main);
  background: var(--bg-main);
}

input,
select,
button,
textarea {
  color: var(--text-main) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-sub);
}

.topbar {
  grid-template-columns: 1fr;
  background: #2f3542;
  border-bottom: 1px solid #3c4353;
  box-shadow: none !important;
}

.topbar-left {
  border-right: 0;
  padding: 0 1rem;
}

.topbar-left-solo {
  justify-content: flex-start;
}

.topbar-nav,
.topbar-right {
  display: none !important;
}

.topbar-toggle {
  border-color: #4b5565;
  color: #eef2f7;
  background: #3a4250;
}

.sidebar {
  background: #2b313d;
  border-right: 1px solid #3a4150;
  box-shadow: none;
}

.sidebar-brand-block {
  display: grid;
  flex: 0 0 auto;
  gap: 0.85rem;
  padding: 1rem 0.95rem 0.95rem;
  border-bottom: 1px solid #3a4150;
}

.sidebar-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #465062;
  border-radius: 10px;
  background: #343b49;
  color: #eef2f7;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

.sidebar-user-block {
  display: grid;
  gap: 0.55rem;
}

.sidebar-user-btn {
  width: 100%;
  justify-content: flex-start;
  border-radius: 10px;
  background: #343b49;
  border-color: #465062;
  color: #eef2f7;
  text-align: left;
}

.sidebar-user-lines {
  display: grid;
  gap: 0.18rem;
}

.sidebar-user-name {
  color: #dfe8ff;
  font-size: 0.92rem;
  font-weight: 700;
}

.sidebar-user-id,
.sidebar-user-dept {
  color: #9fb6e8;
  font-size: 0.79rem;
  font-weight: 600;
}

.sidebar-logout-form {
  margin: 0;
}

.sidebar-link-accordion {
  padding-top: 0.2rem;
}

.sidebar-links-zone {
  position: relative;
  border-top: 1px solid #3a4150;
  padding: 0.65rem 0.75rem 0.8rem;
}

.sidebar-link-line-toggle {
  appearance: none;
  position: absolute;
  top: 0;
  right: 0.72rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  background: #2b313d;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  transform: translateY(-50%);
}

.sidebar-link-line {
  display: none;
}

.sidebar-link-chevron {
  margin: 0;
  color: #a9b8ce;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  transform: rotate(90deg) scaleX(1.18);
  transform-origin: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-link-line-toggle[aria-expanded="true"] .sidebar-link-chevron {
  transform: rotate(270deg) scaleX(1.18);
}

.sidebar-link-line-toggle:hover .sidebar-link-chevron,
.sidebar-link-line-toggle:focus .sidebar-link-chevron {
  color: #dbe6f8;
}

.sidebar-link-panel {
  margin-top: 0.25rem;
}

.sidebar-link-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sidebar-quick-link-btn {
  width: 20%;
  min-width: 56px;
  min-height: 78px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
  padding: 0.42rem 0.28rem;
  font-size: 0.76rem;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #616d81;
  background: #4a5568;
  color: #eef2f8 !important;
}

.sidebar-quick-link-btn:hover,
.sidebar-quick-link-btn:focus {
  background: #59657a;
  border-color: #73839b;
  color: #ffffff !important;
}

.sidebar-tree {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.9rem 0.75rem 1rem;
}

.tree-direct-list {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.tree-root {
  color: #f3f5f9;
  background: transparent;
  border-radius: 10px;
}

.tree-root.active,
.tree-root:hover,
.tree-link.active,
.tree-link:hover {
  background: rgba(91, 141, 239, 0.18);
  color: #8fb1ff;
}

.admin-tree-root span,
.admin-tree-link {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tree-link {
  color: #b3bcc9;
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
}

.tree-children {
  margin-left: 1rem;
}

.content-panel {
  background: #edf0f4;
  padding: 1.15rem 1.2rem 1.6rem;
}

.content-title {
  color: #2a313c;
}

.panel-card {
  background: #fdfefe;
  border: 1px solid #d9dee6;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.05);
}

.card-title-row {
  background: #f4f6f9;
  border-bottom: 1px solid #e2e6ed;
}

.card-title-row h2,
.card-title-row h3,
.sidebar-title {
  color: #2a313c;
}

.card-body-area,
.status-chip,
.legend-item,
.form-label,
.table tbody td,
.small,
.text-muted {
  color: #677180;
}

.sidebar-title {
  color: #c7cfdb;
}

.form-control,
.form-select,
textarea.form-control {
  background: #fbfcfe;
  border-color: #d7dde7;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  background: #ffffff;
  border-color: #9bb8f5;
  box-shadow: 0 0 0 0.18rem rgba(91, 141, 239, 0.12);
}

.status-chip {
  background: #f3f5f8;
  border: 1px solid #dde2e9;
}

.status-chip.status-ok {
  background: #eefbf4;
  border-color: #cfe9db;
  color: #3f7d5d;
}

.status-chip.status-warn {
  background: #fff8eb;
  border-color: #f2e0b0;
  color: #9a741f;
}

.table-responsive {
  border: 1px solid #dde2e9;
  background: #ffffff;
}

.table thead th {
  background: #f3f5f8;
  color: #6b7280;
  border-top: 1px solid #dde2e9;
  border-bottom: 1px solid #dde2e9;
  border-right: 1px solid #e3e7ee;
}

.table tbody td {
  color: #677180;
  border-bottom: 1px solid #edf0f3;
  border-right: 1px solid #edf0f3;
}

.table tbody tr:hover td {
  background: #f7f9fc;
}

.btn-primary {
  background: var(--btn-blue);
  border-color: var(--btn-blue);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--btn-blue-hover);
  border-color: var(--btn-blue-hover);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: #d3def8;
  background: #f7f9ff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #4876cf;
  border-color: #bfd0f8;
  background: #eef3ff;
}

.btn-outline-secondary {
  color: #5e6674;
  border-color: #cfd5de;
  background: #f7f8fa;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: #2a313c;
  border-color: #bbc3cf;
  background: #eef1f5;
}

@media (max-width: 1199px) {
  .sidebar-brand-block {
    padding-top: 0.9rem;
  }
}

/* Login refresh */
.login-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #2a303c 0%, #313847 32%, #eceff3 32%, #eceff3 100%);
}

.login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.login-card {
  width: 100%;
  max-width: 460px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #d9dee6;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.login-head {
  padding: 1.35rem 1.35rem 0.9rem;
  background: #f4f6f9;
  border-bottom: 1px solid #e2e6ed;
}

.login-head h1 {
  margin: 0.65rem 0 0.25rem;
  font-size: 1.42rem;
  font-weight: 700;
  color: #2a313c;
}

.login-head p {
  margin: 0;
  color: #6b7280;
}

.login-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: #5b8def;
  background: #edf3ff;
  border: 1px solid #cfe0ff;
  font-size: 1.2rem;
}

.login-form {
  padding: 1rem 1.35rem 1.35rem;
  background: #ffffff;
}

.signup-link {
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  color: #5b8def;
}

.signup-link:hover {
  color: #4d7ee0;
}

.signup-section {
  border: 1px solid #dde2e9;
  border-radius: 0;
  padding: 0.9rem;
  background: #f7f8fa;
}

/* Login theme aligned to current layout */
.login-body {
  background:
    radial-gradient(circle at 16% 18%, rgba(91, 141, 239, 0.12) 0%, rgba(91, 141, 239, 0.02) 28%, transparent 42%),
    linear-gradient(180deg, #eef1f5 0%, #e8ecf1 100%);
}

.login-card {
  max-width: 460px;
  border-radius: 18px;
  border: 1px solid #d7dde6;
  box-shadow: 0 18px 40px rgba(24, 32, 45, 0.08);
  background: #ffffff;
}

.login-head {
  background: transparent;
  border-bottom: 0;
  padding: 1.4rem 1.4rem 0.95rem;
}

.login-head h1 {
  color: #2b313d;
}

.login-head p {
  color: #6b7280;
}

.login-brand-icon {
  border-radius: 12px;
  background: #edf3ff;
  border: 1px solid #d1defc;
  color: #5b8def;
}

.login-form {
  background: transparent;
  padding: 0.45rem 1.4rem 1.4rem;
}

.login-form .form-label {
  color: #5b6472;
  font-weight: 600;
}

.login-form .form-control {
  background: #f8fafc;
  border: 1px solid #d7dde6;
  color: #1f2937 !important;
}

.login-form .form-control:focus {
  background: #ffffff;
  border-color: #9eb9f4;
  box-shadow: 0 0 0 0.18rem rgba(91, 141, 239, 0.14);
}

.signup-link {
  color: #5b8def;
}

.signup-link:hover {
  color: #4d7ee0;
}

.login-form .btn-primary,
.modal-footer .btn-primary {
  background: #5b8def;
  border-color: #5b8def;
}

.login-form .btn-primary:hover,
.login-form .btn-primary:focus,
.modal-footer .btn-primary:hover,
.modal-footer .btn-primary:focus {
  background: #4d7ee0;
  border-color: #4d7ee0;
}

.modal-content {
  border: 1px solid #d7dde6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(24, 32, 45, 0.12);
}

.modal-header {
  background: #f4f6f9;
  border-bottom: 1px solid #e2e6ed;
}

.modal-title,
.signup-section h6 {
  color: #2b313d;
}
.login-body.login-body-v2 {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #2a303c 0%, #323948 36%, #edf0f4 36%, #edf0f4 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 460px);
  gap: 2rem;
  align-items: center;
  padding: 2rem 2.4rem;
}

.login-hero-panel {
  min-height: 520px;
  border: 1px solid #3e4656;
  background: linear-gradient(180deg, #2f3542 0%, #262c37 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.login-hero-inner {
  display: grid;
  gap: 1.1rem;
  padding: 2.2rem;
}

.login-hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(91, 141, 239, 0.16);
  color: #9dbdff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-hero-panel h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.login-hero-panel p {
  margin: 0;
  color: #c8d0dc;
  font-size: 1rem;
  line-height: 1.7;
}

.login-hero-points {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.login-hero-point {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid #3c4555;
  background: rgba(255, 255, 255, 0.03);
}

.login-hero-point strong {
  color: #eef2f7;
  font-size: 0.95rem;
  font-weight: 700;
}

.login-hero-point span {
  color: #9da8b8;
  font-size: 0.84rem;
}

.login-form-panel {
  width: 100%;
}

.login-form-panel-body {
  padding: 1.5rem;
}

.login-brand-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid #dde2e9;
  background: #f5f7fa;
}

.login-brand-row strong {
  display: block;
  color: #2a313c;
  font-size: 1rem;
  font-weight: 700;
}

.login-brand-row p {
  margin: 0.2rem 0 0;
  color: #6b7280;
  font-size: 0.84rem;
}

.login-brand-icon {
  width: 46px;
  height: 46px;
  border: 1px solid #bfd0f8;
  background: #edf3ff;
  color: #5b8def;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.login-form {
  padding: 0;
}

.signup-link {
  color: #5b8def;
  font-size: 0.84rem;
  font-weight: 700;
}

.signup-link:hover {
  color: #4d7ee0;
}

.signup-section h6 {
  margin-bottom: 0.85rem;
  color: #2a313c;
  font-size: 0.92rem;
  font-weight: 700;
}

.signup-admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.signup-disabled {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 991px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .login-hero-panel {
    min-height: 0;
  }
}

@media (max-width: 575px) {
  .login-shell {
    gap: 1rem;
    padding: 0.9rem;
  }

  .login-hero-inner,
  .login-form-panel-body {
    padding: 1rem;
  }

  .signup-admin-row {
    grid-template-columns: 1fr;
  }
}

/* Final layout and login alignment */
@media (min-width: 1201px) {
  .topbar {
    display: none !important;
  }

  .layout-body {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
  }

  body.sidebar-collapsed-desktop .layout-body {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  body.sidebar-collapsed-desktop .sidebar {
    width: 76px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    width: 300px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #454c59;
    overflow: visible;
  }

  .sidebar.collapsed {
    width: 76px;
  }

  body.sidebar-collapsed-desktop .sidebar-head {
    justify-content: center;
    padding: 1rem 0.45rem 0.8rem;
  }

  body.sidebar-collapsed-desktop .sidebar-head-main {
    justify-content: center;
    width: auto;
    gap: 0;
  }

  body.sidebar-collapsed-desktop .sidebar-head-title,
  body.sidebar-collapsed-desktop .sidebar-brand-block,
  body.sidebar-collapsed-desktop .sidebar-tree,
  body.sidebar-collapsed-desktop .sidebar-links-zone {
    display: none !important;
  }

  .sidebar-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 1rem 0.8rem;
    border-bottom: 1px solid #454c59;
  }

  .sidebar-close-btn {
    display: none !important;
  }

  .content-panel {
    min-width: 0;
    min-height: 100vh;
    padding: 1.25rem 1.4rem 1.75rem;
  }

  .sidebar-tree {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
    padding-bottom: 1rem;
  }
}

.sidebar-head-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.sidebar-head-title {
  color: #eef2f7;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sidebar-head-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.sidebar-head-link:hover {
  color: #ffffff;
}

.sidebar-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.sidebar-head-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #4a5b74;
  flex: 0 0 auto;
}

.topbar-mobile-title {
  color: #eef2f7;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar-brand-block {
  padding-top: 1rem;
}

.sidebar-user-block {
  border: 1px solid #49515f;
  background: #3a414e;
}

.sidebar-user-btn {
  background: transparent;
}

.sidebar-user-name {
  color: #f6f8fb;
}

.sidebar-user-id,
.sidebar-user-dept {
  color: #c9d1dd;
}

.tree-root,
.tree-root span,
.tree-link,
.admin-tree-root,
.admin-tree-root span,
.admin-tree-link {
  color: #b7c0cd;
}

.tree-root.active,
.tree-root:hover,
.tree-link.active,
.tree-link:hover,
.admin-tree-root.active,
.admin-tree-root:hover,
.admin-tree-link.active,
.admin-tree-link:hover {
  color: #e9edf3;
}

.content-panel {
  background: #e9edf2;
}

.panel-card,
.surface-card,
.dashboard-card,
.card,
.modal-content {
  background: #ffffff;
}

.btn-primary,
.login-form .btn-primary,
.modal-footer .btn-primary {
  background: #6b7280;
  border-color: #6b7280;
}

.btn-primary:hover,
.btn-primary:focus,
.login-form .btn-primary:hover,
.login-form .btn-primary:focus,
.modal-footer .btn-primary:hover,
.modal-footer .btn-primary:focus {
  background: #596170;
  border-color: #596170;
}

.btn-outline-primary {
  color: #5f6775;
  border-color: #cfd5de;
  background: #f5f6f8;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #4f5868;
  border-color: #c3cad5;
  background: #eceff3;
}

.content-title,
.page-title,
.card-title-row h2,
.card-title-row h3,
.section-title {
  color: #27303b;
}

.login-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 18%, rgba(107, 114, 128, 0.14) 0%, rgba(107, 114, 128, 0.03) 28%, transparent 42%),
    linear-gradient(180deg, #edf1f5 0%, #e4e9ef 100%);
}

.login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 460px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #d3d9e2;
  background: #ffffff;
  box-shadow: 0 20px 42px rgba(26, 34, 48, 0.1);
}

.login-head {
  background: transparent;
  border-bottom: 0;
  padding: 1.45rem 1.45rem 0.9rem;
}

.login-head h1 {
  color: #27303b;
  margin: 0.8rem 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.login-head p {
  color: #697384;
  margin: 0;
  font-size: 0.98rem;
}

.login-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef1f5;
  border: 1px solid #cfd6e0;
  color: #5f6775;
}

.login-brand-logo-wrap {
  overflow: hidden;
  padding: 0.15rem;
  background: #ffffff;
}

.login-brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.login-form {
  background: transparent;
  padding: 0.35rem 1.45rem 1.45rem;
}

.login-form .mb-3,
.login-form .mb-1 {
  margin-bottom: 1rem !important;
}

.login-form .form-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #4f5868;
  font-weight: 700;
}

.login-form .form-control {
  height: 46px;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #f7f8fa;
  border: 1px solid #d3d9e2;
  color: #1f2937 !important;
  box-shadow: none;
}

.login-form .form-control:focus {
  background: #ffffff;
  border-color: #9ba5b5;
  box-shadow: 0 0 0 0.18rem rgba(107, 114, 128, 0.14);
}

.signup-link {
  color: #5f6775;
  font-weight: 700;
}

.signup-link:hover {
  color: #4f5868;
}

.login-remember-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.login-remember-row .form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0;
}

.login-remember-row .form-check-input {
  margin: 0;
}

.login-remember-row .form-check-label {
  margin: 0;
  color: #5b6472;
  font-weight: 600;
}

.login-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 0.5rem;
}

.login-submit-progress {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-form.is-submitting {
  cursor: progress;
}

.login-form.is-submitting .form-control,
.login-form.is-submitting .form-check-input,
.login-form.is-submitting .signup-link {
  pointer-events: none;
}

.login-form.is-submitting .login-submit-label {
  display: none;
}

.login-form.is-submitting .login-submit-progress {
  display: inline-flex;
}

@media (max-width: 1200px) {
  .topbar {
    display: grid !important;
  }

  .layout-body {
    min-height: calc(100vh - 64px);
    overflow: hidden;
  }

  .sidebar {
    bottom: 0;
    height: calc(100dvh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: min(300px, calc(100vw - 24px));
    top: 64px;
    min-height: calc(100vh - 64px);
  }

  .sidebar.mobile-open {
    min-height: calc(100dvh - 64px);
  }

  .sidebar-brand-block,
  .sidebar-tree {
    flex: 0 0 auto;
  }

  .sidebar-tree {
    overflow: visible;
    min-height: auto;
    padding-bottom: 2rem;
  }

  .sidebar-head {
    display: flex;
  }

  .sidebar-head-title {
    font-size: 1rem;
  }
}

@media (max-width: 1200px) {
  .sidebar.mobile-open {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Final meeting panel balance and brighter action buttons */
.meeting-page-layout.meeting-page-split {
  align-items: stretch;
  min-height: calc(100vh - 230px);
}

.meeting-page-layout.meeting-page-split > .panel-card + .panel-card {
  margin-top: 0;
}

.meeting-page-layout.meeting-page-split > .panel-card {
  height: 100%;
  min-height: calc(100vh - 230px);
  display: flex;
  flex-direction: column;
}

.meeting-page-layout.meeting-page-split > .panel-card .card-body-area {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.meeting-room-list {
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
  max-height: none;
}

.meeting-reservation-grid-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: 100%;
}

.meeting-reservation-grid {
  margin-bottom: 0;
}

.meeting-reservation-title-main {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.meeting-reservation-title-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.meeting-band-panel .card-body-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meeting-band-panel > .card-title-row {
  justify-content: flex-start;
  gap: 1rem;
}

.meeting-band-toolbar {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meeting-band-toolbar > div {
  min-width: 0;
}

.meeting-date-inline-field {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.meeting-date-inline-field .form-label {
  margin-bottom: 0;
  white-space: nowrap;
}

.meeting-date-inline-field .form-control {
  width: 150px;
}

.meeting-band-toolbar .status-chip {
  align-self: center;
  margin-left: auto;
}

.meeting-band-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
  color: #526174;
  font-size: 0.82rem;
  font-weight: 700;
}

.meeting-band-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  vertical-align: middle;
}

.meeting-band-dot-progress {
  background: #5b8def;
}

.meeting-band-dot-complete {
  background: #52b788;
}

.meeting-band-dot-cancel {
  background: #9aa6b2;
}

.meeting-band-grid-wrap {
  overflow: auto;
  position: relative;
  border: 1px solid #d5deea;
  background: #ffffff;
  max-height: 360px;
}

.meeting-band-grid {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.76rem;
  color: #344054;
}

.meeting-band-room-col {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.meeting-band-time-col {
  width: 39px;
  min-width: 39px;
  max-width: 39px;
}

.meeting-band-grid th,
.meeting-band-grid td {
  border-right: 1px solid #dce4ef;
  border-bottom: 1px solid #dce4ef;
  height: 28px;
  text-align: center;
  white-space: nowrap;
}

.meeting-band-grid thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef4fb;
  color: #41516a;
  font-weight: 800;
}

.meeting-band-grid thead tr:nth-child(2) th {
  top: 28px;
  background: #f6f9fd;
  font-size: 0.7rem;
  font-weight: 700;
}

.meeting-band-room-head,
.meeting-band-room-cell {
  position: sticky !important;
  left: 0 !important;
  z-index: 5;
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  padding: 0 0.65rem;
  text-align: left !important;
  background: #f8fafc;
  background-clip: padding-box;
  box-shadow: inset -1px 0 0 #dce4ef;
}

.meeting-band-room-head {
  top: 0;
  z-index: 8 !important;
  background: #e7eef8 !important;
  vertical-align: middle;
}

.meeting-band-room-cell {
  z-index: 6 !important;
}

.meeting-band-room-cell.is-selected {
  color: #1f4d86;
  background: #e8f1ff !important;
}

.meeting-band-grid tbody tr {
  cursor: pointer;
}

.meeting-band-grid tbody tr:hover .meeting-band-room-cell,
.meeting-band-grid tbody tr:hover .meeting-band-slot:not(.is-progress):not(.is-complete):not(.is-cancel) {
  background: #f3f7fc;
}

.meeting-band-date-head {
  min-width: 975px;
}

.meeting-band-time-head,
.meeting-band-slot {
  width: 39px;
  min-width: 39px;
  max-width: 39px;
}

.meeting-band-slot {
  background: #ffffff;
}

.meeting-band-slot.is-progress {
  background: #5b8def;
}

.meeting-band-slot.is-complete {
  background: #52b788;
}

.meeting-band-slot.is-cancel {
  background: #9aa6b2;
}

.meeting-selected-room-help {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  color: #667085;
  font-size: 0.84rem;
  font-weight: 700;
}

.meeting-room-panel .select-list,
.meeting-reservation-panel .table-responsive {
  min-height: calc(100vh - 360px);
}

.btn-primary,
.login-form .btn-primary,
.modal-footer .btn-primary {
  background: #8893a5;
  border-color: #8893a5;
}

.btn-primary:hover,
.btn-primary:focus,
.login-form .btn-primary:hover,
.login-form .btn-primary:focus,
.modal-footer .btn-primary:hover,
.modal-footer .btn-primary:focus {
  background: #738094;
  border-color: #738094;
}

.btn-outline-primary {
  color: #6f7b8d;
  border-color: #d4dae3;
  background: #f7f8fb;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #5f6b7d;
  border-color: #c7cfdc;
  background: #eef1f6;
}

.worklog-search-bar {
  display: flex;
  align-items: end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.worklog-search-action {
  display: flex;
  align-items: end;
}

.worklog-list {
  display: grid;
  gap: 0.8rem;
}

.worklog-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 0.9rem 1rem;
}

.worklog-item-mine {
  border-left: 4px solid #5b8def;
  background: #f8fbff;
}

.worklog-item-public {
  border-left: 4px solid #92b3ef;
  background: #fcfdff;
}

.worklog-item-shared {
  border-left: 4px solid #8e96a6;
  background: #fafbfc;
}

.worklog-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.worklog-title {
  color: #27303b;
  font-weight: 700;
}

.worklog-date,
.worklog-meta {
  color: #667085;
  font-size: 0.86rem;
}

.worklog-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.worklog-preview {
  margin-top: 0.55rem;
  color: #475467;
  font-size: 0.92rem;
  line-height: 1.5;
}

.worklog-share-inline {
  display: flex;
  gap: 0.8rem;
  align-items: end;
}

.worklog-share-button-wrap {
  flex: 0 0 auto;
}

.worklog-share-label-row {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-bottom: 0.35rem;
}

.worklog-share-summary,
.schedule-share-summary,
.meeting-attendee-summary {
  resize: none;
  white-space: pre-line;
  line-height: 1.45;
}

.worklog-share-summary {
  cursor: pointer;
}

.worklog-share-summary.is-disabled {
  background-color: #eef2f7;
  color: #94a3b8;
  cursor: default;
}

.notice-search-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.notice-search-row .form-control {
  width: min(360px, 100%);
}

.notice-search-row > .d-flex {
  flex: 0 0 auto;
  white-space: nowrap;
}

#noticeFromDate,
#noticeToDate {
  flex: 0 0 8.8rem;
  width: 8.8rem;
  min-width: 8.8rem;
}

#noticeTitleFilter {
  flex: 1 1 18rem;
  width: auto;
  min-width: 12rem;
}

.notice-table-wrap {
  border: 1px solid var(--line);
  background: #fff;
  max-height: calc(100vh - 310px);
  overflow: auto;
}

.notice-table thead th {
  background: #eef3fb;
  color: #52647c;
  text-align: center;
  font-size: 0.82rem;
  border-right: 1px solid #dce5f2;
}

.notice-table tbody td {
  border-right: 1px solid #edf1f7;
  color: #475569;
}

.notice-table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.notice-title-link {
  color: #334155;
  --bs-btn-color: #334155;
  --bs-btn-hover-color: #334155;
  --bs-btn-active-color: #334155;
  font-weight: 400;
  text-decoration: none;
}

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

.notice-level-emergency {
  color: #dc2626 !important;
  font-weight: 700 !important;
}

.notice-level-policy {
  color: #2563eb !important;
  font-weight: 700 !important;
}

.notice-level-system {
  color: #ea580c !important;
  font-weight: 700 !important;
}

.notice-table td.notice-level-emergency,
.notice-table .notice-title-link.notice-level-emergency,
.notice-table button.notice-title-link.notice-level-emergency,
.notice-table button.notice-title-link.notice-level-emergency:hover,
.notice-table button.notice-title-link.notice-level-emergency:focus {
  color: #dc2626 !important;
  --bs-btn-color: #dc2626;
  --bs-btn-hover-color: #dc2626;
  --bs-btn-active-color: #dc2626;
  font-weight: 700 !important;
}

.notice-table td.notice-level-policy,
.notice-table .notice-title-link.notice-level-policy,
.notice-table button.notice-title-link.notice-level-policy,
.notice-table button.notice-title-link.notice-level-policy:hover,
.notice-table button.notice-title-link.notice-level-policy:focus {
  color: #2563eb !important;
  --bs-btn-color: #2563eb;
  --bs-btn-hover-color: #2563eb;
  --bs-btn-active-color: #2563eb;
  font-weight: 700 !important;
}

.notice-table td.notice-level-system,
.notice-table .notice-title-link.notice-level-system,
.notice-table button.notice-title-link.notice-level-system,
.notice-table button.notice-title-link.notice-level-system:hover,
.notice-table button.notice-title-link.notice-level-system:focus {
  color: #ea580c !important;
  --bs-btn-color: #ea580c;
  --bs-btn-hover-color: #ea580c;
  --bs-btn-active-color: #ea580c;
  font-weight: 700 !important;
}

.notice-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.notice-form-grid .full {
  grid-column: 1 / -1;
}

.notice-form-grid > .full:has(.notice-radio-group) {
  grid-column: auto;
}

.notice-memo-editor {
  min-height: 220px;
  border: 1px solid #ced4da;
  background: #ffffff;
  padding: 0.75rem;
  overflow-y: auto;
  line-height: 1.55;
}

.notice-memo-editor:focus {
  outline: none;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.notice-memo-editor.is-readonly {
  background: #e9ecef;
  cursor: default;
}

#noticeModal .modal-content {
  position: relative;
}

.notice-mail-progress-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(1px);
}

.notice-mail-progress-box {
  min-width: 220px;
  padding: 1.25rem 1.5rem;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.notice-mail-progress-text {
  margin-top: 0.75rem;
  color: #334155;
  font-weight: 700;
}

.notice-memo-editor img,
.notice-pasted-image,
.dashboard-notice-popup-body img,
#dashboardModalDesc img,
.daily-desc img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.5rem 0;
}

.notice-assignee-inline {
  align-self: end;
}

#noticeAssigneeNm {
  cursor: pointer;
}

.notice-assignee-inline .input-group {
  display: flex;
  width: 100%;
}

.notice-assignee-inline #noticeAssigneeNm {
  display: block;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  border-radius: 0.375rem;
}

#noticeAssigneeNm:disabled {
  cursor: default;
}

#noticeAssigneeBtn {
  display: none;
}

.notice-user-search-row {
  display: block;
  width: 100%;
}

.notice-user-search-row .form-control {
  width: 100%;
}

.notice-attach-area {
  border-top: 1px solid #e5edf7;
  padding-top: 0.75rem;
}

.notice-memo-link-preview {
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dce5f2;
  background: #f8fbff;
  color: #334155;
  font-size: 0.85rem;
  line-height: 1.55;
}

.notice-memo-link-preview-title {
  margin-bottom: 0.25rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.notice-memo-link-preview a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notice-attach-list {
  display: grid;
  gap: 0.35rem;
}

.notice-attach-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #dce5f2;
  background: #f8fbff;
  color: #43556f;
  font-size: 0.86rem;
}

.notice-attach-item a {
  color: #2f5f9f;
  text-decoration: none;
  font-weight: 600;
}

.notice-attach-delete-btn {
  flex: 0 0 auto;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
}

.notice-attach-pending {
  background: #fffdf3;
  border-color: #f3d996;
  color: #755c13;
}

.notice-popup-check-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notice-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #dce5f2;
  background: #fbfdff;
}

@media (max-width: 1200px) {
  .notice-search-row {
    flex-wrap: wrap;
  }
}

.meeting-memo-textarea {
  min-height: 18rem;
  resize: vertical;
}

.meeting-minutes-content-textarea {
  min-height: 22rem;
  resize: vertical;
}

.meeting-minutes-action-textarea {
  min-height: 12rem;
  resize: vertical;
}

@media (max-width: 992px) {
  .minutes-info-row {
    grid-template-columns: 1fr;
  }
}

.worklog-editor {
  min-height: 320px;
  border: 1px solid #d3d9e2;
  background: #fbfcfe;
  padding: 0.85rem 0.95rem;
  overflow-y: auto;
}

.worklog-editor:focus {
  outline: none;
  border-color: #9bb8f5;
  box-shadow: 0 0 0 0.18rem rgba(91, 141, 239, 0.12);
  background: #ffffff;
}

.worklog-editor img,
.worklog-pasted-image {
  max-width: 100%;
  height: auto;
}

.business-plan-title-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.business-plan-page > .card-title-row {
  justify-content: flex-start;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.business-plan-page > .card-title-row h2 {
  flex: 0 0 auto;
}

.business-plan-title-actions .status-chip {
  white-space: nowrap;
}

.business-plan-search-bar {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.business-plan-search-row {
  display: grid;
  gap: 0.8rem 1rem;
  align-items: end;
}

.business-plan-search-row-top {
  grid-template-columns: 150px 240px 230px minmax(160px, 1fr);
}

.business-plan-search-row-bottom {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.business-plan-search-field {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.business-plan-search-field .form-label {
  margin: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.business-plan-search-field .form-control,
.business-plan-search-field .form-select {
  flex: 1 1 auto;
}

.business-plan-search-field-title .form-control {
  width: 100%;
  max-width: none;
}

.business-plan-search-field-date .form-control {
  flex: 0 0 150px;
  min-width: 150px;
}

.business-plan-filter-picker {
  cursor: pointer;
  background-image: linear-gradient(135deg, rgba(91, 141, 239, 0.08), rgba(91, 141, 239, 0.02));
}

.business-plan-filter-picker:focus,
.business-plan-filter-picker:hover {
  background-image: linear-gradient(135deg, rgba(91, 141, 239, 0.12), rgba(91, 141, 239, 0.04));
}

.inline-picker-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.45rem;
}

.business-plan-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.business-plan-form-grid .full {
  grid-column: 1 / -1;
}

.business-plan-form-title {
  grid-column: span 2;
}

.business-plan-picker-clear-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
}

.business-plan-label-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.business-plan-label-action .form-label {
  margin-bottom: 0;
}

.business-plan-collab-field .worklog-share-inline {
  align-items: end;
  gap: 0.5rem;
}

.business-plan-collab-field .business-plan-filter-picker {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.business-plan-editor-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.business-plan-condition-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.business-plan-condition-wrap {
  border: 1px solid var(--line);
  background: #fff;
}

.business-plan-condition-table {
  margin-bottom: 0;
}

.business-plan-condition-table th {
  background: #eef3fb;
  color: #5d6a7d;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.business-plan-condition-table td,
.business-plan-condition-table th {
  vertical-align: middle;
  border-right: 1px solid var(--line);
}

.business-plan-condition-table td:last-child,
.business-plan-condition-table th:last-child {
  border-right: 0;
}

.business-plan-condition-check {
  width: 48px;
}

.business-plan-condition-rate {
  width: 140px;
}

.business-plan-condition-allocation-input,
.business-plan-condition-rate-input {
  text-align: right;
}

.business-plan-condition-empty td {
  text-align: center;
  color: var(--muted);
  padding: 0.8rem;
}

.business-plan-tree-grid {
  border: 1px solid var(--line);
  background: #fff;
}

.business-plan-tree-header,
.business-plan-tree-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 180px 160px;
}

.business-plan-tree-header {
  background: #eef3fb;
  color: #5d6a7d;
  font-size: 0.82rem;
  font-weight: 600;
}

.business-plan-tree-header > div {
  text-align: center;
}

.business-plan-tree-header > div,
.business-plan-tree-row > div {
  padding: 0.75rem 0.85rem;
  border-right: 1px solid #e5e7eb;
}

.business-plan-tree-header > div:last-child,
.business-plan-tree-row > div:last-child {
  border-right: 0;
}

.business-plan-tree-body {
  display: flex;
  flex-direction: column;
}

.business-plan-tree-row {
  cursor: pointer;
  border-top: 1px solid #edf0f5;
  background: #fff;
}

.business-plan-tree-row:nth-child(even) {
  background: #fbfcfe;
}

.business-plan-tree-row:hover,
.business-plan-tree-row.active {
  background: #f4f8ff;
}

.business-plan-tree-no {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #506071;
  font-weight: 600;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}

.business-plan-indent {
  display: inline-flex;
  flex: 0 0 auto;
}

.business-plan-check-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.business-plan-row-check {
  cursor: pointer;
}

.business-plan-expand-btn,
.business-plan-expand-placeholder {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1rem;
}

.business-plan-expand-btn {
  border: 0;
  background: transparent;
  color: #5b8def;
  padding: 0;
}

.business-plan-row-meta,
.business-plan-rate {
  color: #667085;
  font-size: 0.84rem;
}

.business-plan-progress {
  position: relative;
  width: 100%;
  min-width: 120px;
  height: 1.2rem;
  border-radius: 999px;
  overflow: hidden;
  background: #e8eef8;
  border: 1px solid #d7e0ef;
}

.business-plan-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #5b8def 0%, #7aa7f4 100%);
  border-radius: 999px;
}

.business-plan-progress-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #1a1a1a;
  font-size: 0.76rem;
  font-weight: 700;
}

.business-plan-tree-title strong {
  color: #27303b;
}

.business-plan-tree-status,
.business-plan-tree-writer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.business-plan-tree-detail {
  border-top: 1px dashed #dbe4f2;
  border-bottom: 1px solid #edf0f5;
  background: #fcfdff;
  padding: 1rem 1.1rem 1.1rem;
}

.business-plan-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  color: #5d6a7d;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.business-plan-detail-large-btn {
  margin-left: auto;
}

.business-plan-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.business-plan-detail-card {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.9rem;
}

.business-plan-detail-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.96rem;
  color: #314153;
}

.business-plan-detail-content {
  min-height: 120px;
  color: #475467;
  line-height: 1.55;
}

.business-plan-detail-content img {
  max-width: 100%;
  height: auto;
}

.business-plan-tree-empty {
  padding: 1rem;
  color: #667085;
}

.business-plan-editor {
  min-height: 240px;
}

.business-plan-large-modal .modal-body {
  min-height: 0;
  background: #f7f9fc;
}

.business-plan-large-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 100%;
  min-height: calc(100vh - 110px);
}

.business-plan-large-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid #d8e1ee;
  background: #ffffff;
}

.business-plan-large-card h3 {
  margin: 0;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e5ebf3;
  color: #233247;
  font-size: 1rem;
  font-weight: 700;
}

.business-plan-large-content {
  flex: 1 1 auto;
  overflow: auto;
  padding: 1.1rem;
  color: #344054;
  line-height: 1.6;
}

.business-plan-large-content img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1200px) {
  .business-plan-search-row-top {
    grid-template-columns: 140px 230px 220px minmax(150px, 1fr);
  }

  .business-plan-search-row-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-plan-tree-header,
  .business-plan-tree-row {
    grid-template-columns: 230px minmax(0, 1fr) 160px 140px;
  }
}

@media (max-width: 991px) {
  .business-plan-search-row,
  .business-plan-search-row-top,
  .business-plan-search-row-bottom {
    grid-template-columns: 1fr;
  }

  .business-plan-search-field {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .business-plan-search-field .form-control,
  .business-plan-search-field .form-select {
    width: 100%;
  }

  .business-plan-detail-grid {
    grid-template-columns: 1fr;
  }

  .business-plan-form-grid,
  .business-plan-large-grid {
    grid-template-columns: 1fr;
  }

  .business-plan-form-title {
    grid-column: auto;
  }

  .business-plan-tree-header,
  .business-plan-tree-row {
    grid-template-columns: 220px minmax(0, 1fr) 130px 120px;
  }
}

.share-user-list {
  display: grid;
  gap: 0.5rem;
}

.share-user-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  background: #ffffff;
}

/* Production balance report */
.production-balance-page {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.production-balance-title-row {
  align-items: center;
}

.production-balance-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.production-balance-title-actions h2 {
  margin: 0;
}

.production-balance-title-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.production-balance-search {
  padding: 0.7rem 0.8rem;
  border: 1px solid #d9e2ee;
  background: #f8fafc;
}

.production-balance-search-row {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(130px, 180px) repeat(5, minmax(132px, 1fr)) minmax(140px, 180px) auto;
  gap: 0.55rem;
  align-items: end;
}

.production-balance-search-action .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 82px;
}

.production-balance-warehouse-wrap {
  position: relative;
}

.production-balance-warehouse-wrap .multi-check-toggle {
  width: 100%;
  min-width: 0;
  justify-content: space-between;
}

.production-balance-warehouse-wrap .multi-check-menu {
  width: 260px;
  max-height: 280px;
  overflow: auto;
}

.production-balance-warehouse-wrap .multi-check-menu.open {
  display: block;
}

.production-balance-report {
  min-height: 260px;
  padding: 0.25rem 0 0;
  overflow-x: auto;
  color: #344054;
}

.production-balance-empty {
  padding: 1.25rem;
  border: 1px dashed #cfd9e7;
  background: #f8fafc;
  color: #667085;
  text-align: center;
}

.production-balance-report-header {
  min-width: 980px;
}

.production-balance-report-title {
  min-width: 980px;
  padding: 0.25rem 0 0.75rem;
  border-bottom: 1px solid #e4ebf4;
  color: #233247;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
}

.production-balance-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 0.8rem;
  min-width: 980px;
  margin: 0.75rem 0 1rem;
}

.production-balance-table {
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  color: #344054;
  font-size: 0.84rem;
}

.production-balance-table th,
.production-balance-table td {
  border-right: 1px solid #e5ebf3;
  border-bottom: 1px solid #e5ebf3;
  padding: 0.45rem 0.55rem;
  vertical-align: middle;
}

.production-balance-table tr:first-child th,
.production-balance-table tr:first-child td {
  border-top: 1px solid #d8e1ee;
}

.production-balance-table th:first-child,
.production-balance-table td:first-child {
  border-left: 1px solid #d8e1ee;
}

.production-balance-table th {
  background: #eef3fb;
  color: #52657c;
}

.production-balance-info-table th {
  min-width: 120px;
  font-weight: 700;
  text-align: left;
}

.production-balance-info-table td {
  min-width: 170px;
  text-align: right;
  font-weight: 600;
}

.production-balance-unit-table td {
  min-width: 150px;
  text-align: center;
}

.production-balance-section {
  min-width: 980px;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e4ebf4;
}

.production-balance-section h3 {
  margin: 0 0 0.65rem;
  color: #233247;
  font-size: 0.98rem;
  font-weight: 700;
}

.production-balance-section h4 {
  margin: 0 0 0.45rem;
  color: #52657c;
  font-size: 0.86rem;
  font-weight: 700;
}

.production-balance-basic-grid {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 0.9rem;
  align-items: start;
}

.production-balance-pair-table {
  width: 100%;
}

.production-balance-pair-table th {
  width: 30%;
  min-width: 126px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.production-balance-pair-table td {
  width: 20%;
  min-width: 96px;
  text-align: right;
  font-weight: 600;
}

.production-balance-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #d8e1ee;
  background: #ffffff;
}

.production-balance-data-table {
  width: 100%;
  min-width: 960px;
}

.production-balance-table-scroll .production-balance-data-table th:first-child,
.production-balance-table-scroll .production-balance-data-table td:first-child {
  border-left: 0;
}

.production-balance-table-scroll .production-balance-data-table tr:first-child th,
.production-balance-table-scroll .production-balance-data-table tr:first-child td {
  border-top: 0;
}

.production-balance-data-table th {
  background: #eef3fb;
  color: #52657c;
  font-weight: 700;
  text-align: center;
}

.production-balance-data-table td {
  font-weight: 500;
}

.production-balance-data-table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.production-balance-data-table tbody tr:hover td {
  background: #f4f8ff;
}

.production-balance-data-table .text-cell {
  text-align: center;
  white-space: nowrap;
}

.production-balance-item-table .text-cell {
  text-align: left;
}

.production-balance-data-table .number-cell {
  text-align: right;
}

.production-balance-print-dialog {
  max-width: min(1200px, calc(100vw - 2rem));
}

.production-balance-print-preview-wrap {
  background: #f3f6fb;
  padding: 1rem;
}

.production-balance-print-preview {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - 13rem);
  overflow: auto;
}

.production-balance-print-document {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 210mm;
  min-width: 210mm;
  max-width: 210mm;
  min-height: 297mm;
  max-height: 297mm;
  margin: 0 auto;
  padding: 20mm 15mm;
  overflow: hidden;
  background: #ffffff;
  color: #000000;
  font-size: 10px;
  line-height: 1.16;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.production-balance-print-document .production-balance-report-header {
  min-width: 0;
  min-height: 0;
}

.production-balance-print-document .production-balance-report-title {
  min-width: 0;
  padding: 0 0 3mm;
  border-bottom: 0;
  color: #000000;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.production-balance-print-document .production-balance-print-meta {
  margin: 0 0 1.5mm;
  color: #000000;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
}

.production-balance-print-document .production-balance-summary-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 104mm 58mm;
  justify-content: space-between;
  gap: 5mm;
  margin: 0 0 3.2mm;
}

.production-balance-print-document .production-balance-section {
  min-width: 0;
  margin-top: 2.7mm;
  padding-top: 0;
  border-top: 0;
}

.production-balance-print-document .production-balance-section h3 {
  margin: 0 0 1.3mm;
  color: #000000;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.05;
}

.production-balance-print-document .production-balance-section h4 {
  margin: 0 0 0.9mm;
  color: #000000;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.05;
}

.production-balance-print-document .production-balance-basic-grid {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4mm;
}

.production-balance-print-document .production-balance-table {
  border-collapse: collapse;
  border-spacing: 0;
  color: #000000;
  font-size: 10px;
  line-height: 1.14;
  table-layout: fixed;
}

.production-balance-print-document .production-balance-table th,
.production-balance-print-document .production-balance-table td {
  border: 1px solid #000000 !important;
  background: #ffffff;
  color: #000000;
  padding: 2pt 0.9pt;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.production-balance-print-document .production-balance-info-table th,
.production-balance-print-document .production-balance-pair-table th,
.production-balance-print-document .production-balance-data-table th {
  font-weight: 400;
  text-align: center;
}

.production-balance-print-document .production-balance-info-table td,
.production-balance-print-document .production-balance-pair-table td,
.production-balance-print-document .production-balance-data-table .number-cell {
  font-weight: 400;
  text-align: right;
}

.production-balance-print-document .production-balance-info-table th,
.production-balance-print-document .production-balance-pair-table th,
.production-balance-print-document .production-balance-data-table th,
.production-balance-print-document .production-balance-info-table td,
.production-balance-print-document .production-balance-pair-table td,
.production-balance-print-document .production-balance-data-table td {
  font-weight: 400;
}

.production-balance-print-document .production-balance-data-table thead th {
  background: #eeeeee;
}

.production-balance-print-document .production-balance-data-table tbody td.text-cell {
  background: #f5f5f5;
}

.production-balance-print-document .production-balance-info-table th,
.production-balance-print-document .production-balance-pair-table th {
  background: #f5f5f5;
}

.production-balance-print-document .production-balance-pair-table th,
.production-balance-print-document .production-balance-pair-table td {
  text-align: right;
}

.production-balance-print-document .production-balance-unit-table td,
.production-balance-print-document .production-balance-data-table .text-cell {
  text-align: center;
}

.production-balance-print-document .production-balance-item-table .text-cell {
  padding-left: 2.2pt;
  text-align: left;
}

.production-balance-print-document .production-balance-pair-table th {
  width: 32%;
}

.production-balance-print-document .production-balance-pair-table td {
  width: 18%;
}

.production-balance-print-document .production-balance-balance-table th:first-child,
.production-balance-print-document .production-balance-balance-table td:first-child {
  width: 22%;
}

.production-balance-print-document .production-balance-item-table th:first-child,
.production-balance-print-document .production-balance-item-table td:first-child {
  width: 34%;
}

.production-balance-print-document .production-balance-item-table th:last-child,
.production-balance-print-document .production-balance-item-table td:last-child {
  width: 10%;
}

.production-balance-print-document .production-balance-table-scroll {
  border: 0;
  overflow: visible;
}

.production-balance-print-document .production-balance-data-table {
  min-width: 0;
}

.production-balance-print-document .production-balance-data-table th,
.production-balance-print-document .production-balance-data-table td {
  padding-top: 2pt;
  padding-bottom: 2pt;
}

.production-balance-note-area {
  min-width: 980px;
  margin-top: 0.7rem;
  color: #344054;
  font-size: 0.83rem;
}

.production-balance-product-note {
  margin: 0 0 0.5rem;
}

.production-balance-remark-label {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.production-balance-remark-box {
  min-height: 82px;
  border: 1px solid #d8e1ee;
  background: #ffffff;
}

.production-balance-print-document .production-balance-note-area {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin-top: 2mm;
  color: #000000;
  font-size: 10px;
  line-height: 1.15;
  page-break-inside: avoid;
}

.production-balance-print-document .production-balance-product-note {
  margin: 0 0 2mm;
  font-weight: 400;
}

.production-balance-print-document .production-balance-remark-label {
  margin-bottom: 1mm;
  font-weight: 400;
}

.production-balance-print-document .production-balance-remark-box {
  flex: 1 1 auto;
  min-height: 19mm;
  border: 1px solid #000000;
  background: #ffffff;
}

.production-balance-print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1500px) {
  .production-balance-search-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .production-balance-search-action .btn {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .production-balance-search-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .production-balance-basic-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 575px) {
  .production-balance-search-row {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 20mm 15mm;
  }

  body.production-balance-printing {
    background: #ffffff !important;
  }

  body.production-balance-printing .app-shell {
    visibility: hidden !important;
  }

  body.production-balance-printing #productionBalancePrintModal,
  body.production-balance-printing #productionBalancePrintModal * {
    visibility: visible !important;
  }

  body.production-balance-printing .modal-backdrop,
  body.production-balance-printing .production-balance-print-dialog .modal-header,
  body.production-balance-printing .production-balance-print-dialog .modal-footer {
    display: none !important;
  }

  body.production-balance-printing .modal {
    position: static !important;
    display: block !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  body.production-balance-printing .modal-dialog,
  body.production-balance-printing .modal-content,
  body.production-balance-printing .modal-body,
  body.production-balance-printing .production-balance-print-preview-wrap,
  body.production-balance-printing .production-balance-print-preview {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  body.production-balance-printing .production-balance-print-document {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Stock list final grid tuning */
body.stock-list-route .stock-search-row {
  grid-template-columns: minmax(150px, 220px) 150px minmax(150px, 220px) minmax(150px, 240px) auto;
}

body.stock-list-route .stock-grid-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

body.stock-list-route .stock-list-table {
  font-size: 0.84rem;
}

body.stock-list-route .stock-list-table th,
body.stock-list-route .stock-list-table td {
  min-width: 104px;
  max-width: 230px;
  padding: 0.45rem 0.5rem;
}

body.stock-list-route .stock-list-table th.stock-compact-head,
body.stock-list-route .stock-list-table td.stock-compact-cell {
  min-width: 78px;
  max-width: 132px;
}

body.stock-list-route .stock-list-table th[data-column-key="itm_bc_nm"],
body.stock-list-route .stock-list-table td:nth-child(1) {
  min-width: 84px;
  max-width: 112px;
}

body.stock-list-route .stock-list-table th[data-column-key="itm_cd"] {
  min-width: 116px;
}

body.stock-list-route .stock-list-table th[data-column-key="itm_nm"] {
  min-width: 160px;
}

body.stock-list-route .stock-list-table th[data-column-key="spec"] {
  min-width: 96px;
  max-width: 150px;
}

body.stock-list-route .stock-list-table th[data-column-key="um_bc_nm"],
body.stock-list-route .stock-list-table th[data-column-key="mng_no"] {
  min-width: 84px;
  max-width: 118px;
}

body.stock-list-route .stock-list-table th[data-column-key="end_qty"],
body.stock-list-route .stock-list-table th[data-column-key="req_qty"],
body.stock-list-route .stock-list-table th[data-column-key="use_qty"] {
  min-width: 88px;
  max-width: 112px;
}

body.stock-list-route .stock-head-row th {
  top: 0;
  z-index: 4;
  height: 34px;
  border-bottom: 1px solid #c8d3e1;
  background: #eaf0f8;
  color: #344054;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: grab;
}

body.stock-list-route .stock-head-row th:active {
  cursor: grabbing;
}

body.stock-list-route .stock-filter-row th {
  top: 34px;
  z-index: 3;
  height: 35px;
  padding: 0.25rem 0.35rem;
  border-top: 1px solid #ffffff;
  border-bottom: 2px solid #c8d3e1;
  background: #ffffff;
  cursor: default;
}

body.stock-list-route .stock-filter-input {
  height: 26px;
  min-width: 0;
  padding: 0.15rem 0.35rem;
  border-color: #d6dee9;
  background: #ffffff;
  color: #334155;
  font-size: 0.76rem;
}

body.stock-list-route .stock-flat-grid .stock-sort-head {
  justify-content: center;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}

body.stock-list-route .stock-flat-grid .stock-number-cell {
  text-align: right;
}

body.stock-list-route .stock-flat-grid .stock-center-cell {
  text-align: center;
}

body.stock-list-route .stock-flat-grid .stock-merged-cell {
  background: #f8fbff;
  font-weight: 600;
  vertical-align: middle !important;
}

body.stock-list-route .stock-group-row td {
  padding: 0;
  background: #f1f5f9;
}

body.stock-list-route .stock-group-toggle {
  width: var(--stock-grid-viewport-width, 100%);
  transform: translateX(var(--stock-scroll-left, 0px));
}

body.stock-list-route .stock-grid-viewport {
  isolation: isolate;
}

body.stock-list-route .stock-list-table {
  border-collapse: separate;
  border-spacing: 0;
}

body.stock-list-route .stock-head-row th,
body.stock-list-route .stock-filter-row th {
  background-clip: padding-box;
}

body.stock-list-route .stock-head-row th {
  z-index: 30;
  box-shadow: inset 0 -1px 0 #c8d3e1;
}

body.stock-list-route .stock-filter-row th {
  z-index: 29;
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -2px 0 #c8d3e1;
}

body.stock-list-route .stock-list-table tbody td {
  position: relative;
  z-index: 1;
}

@media (min-width: 1201px) {
  body.stock-list-route .layout-body {
    align-items: stretch;
  }

  body.stock-list-route .content-panel.stock-content-panel {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  body.stock-list-route .stock-list-page,
  body.stock-list-route .stock-list-body,
  body.stock-list-route .stock-grid-panel {
    min-height: 0;
  }

  body.stock-list-route .stock-list-page {
    flex: 1 1 auto;
  }
}

body.stock-list-route .stock-mobile-list {
  display: none;
}

@media (max-width: 1200px) {
  body.stock-list-route .layout-body {
    overflow: visible;
  }

  body.stock-list-route .content-panel.stock-content-panel {
    height: auto;
    min-height: calc(100dvh - 64px);
    overflow: visible;
  }
}

@media (max-width: 767px) {
  body.stock-list-route .stock-list-page,
  body.stock-list-route .stock-list-body,
  body.stock-list-route .stock-grid-panel {
    min-height: 0;
    overflow: visible;
  }

  body.stock-list-route .stock-list-page {
    display: block;
  }

  body.stock-list-route .stock-search-row,
  body.stock-list-route .stock-grid-toolbar {
    grid-template-columns: 1fr;
  }

  body.stock-list-route .stock-search-action {
    justify-content: stretch;
  }

  body.stock-list-route .stock-search-action .btn,
  body.stock-list-route .stock-grid-toolbar .btn {
    width: 100%;
  }

  body.stock-list-route .stock-desktop-grid {
    display: none;
  }

  body.stock-list-route .stock-mobile-list {
    display: block;
  }
}

/* Viewport-fitted sidebar and computer asset workspace */
.sidebar-tree {
  scrollbar-width: thin;
  scrollbar-color: rgba(183, 192, 205, 0.42) transparent;
}

.sidebar-tree::-webkit-scrollbar {
  width: 6px;
}

.sidebar-tree::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-tree::-webkit-scrollbar-thumb {
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(183, 192, 205, 0.42);
  background-clip: padding-box;
}

.sidebar-tree::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 209, 221, 0.68);
  background-clip: padding-box;
}

.sidebar-tree::-webkit-scrollbar-corner {
  background: transparent;
}

@media (min-width: 1201px) {
  .sidebar {
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    overflow: hidden;
  }

  .sidebar-tree {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  body.computer-asset-route {
    height: 100dvh;
    overflow: hidden;
  }

  body.computer-asset-route .app-shell,
  body.computer-asset-route .layout-body {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body.computer-asset-route .content-panel {
    display: flex;
    height: 100dvh;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }
}

@media (min-width: 981px) {
  body.computer-asset-route .content-header {
    flex: 0 0 auto;
  }

  body.computer-asset-route .computer-asset-page {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
  }

  body.computer-asset-route .computer-asset-page > .card-title-row {
    flex: 0 0 auto;
  }

  body.computer-asset-route .computer-asset-layout {
    min-height: 0;
    flex: 1 1 auto;
    align-items: stretch;
    overflow: hidden;
  }

  body.computer-asset-route .computer-asset-list-pane,
  body.computer-asset-route .computer-asset-detail-pane {
    height: 100%;
    min-height: 0;
  }

  body.computer-asset-route .computer-asset-list-pane,
  body.computer-asset-route .computer-asset-detail-pane {
    display: flex;
    flex-direction: column;
  }

  body.computer-asset-route .computer-asset-table-wrap,
  body.computer-asset-route .computer-asset-form {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  body.computer-asset-route .computer-asset-detail-head {
    flex: 0 0 auto;
  }
}

@media (min-width: 981px) and (max-width: 1200px) {
  .sidebar {
    overflow: hidden;
  }

  .sidebar-tree {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.computer-asset-route {
    height: 100dvh;
    overflow: hidden;
  }

  body.computer-asset-route .app-shell {
    height: 100dvh;
    overflow: hidden;
  }

  body.computer-asset-route .layout-body,
  body.computer-asset-route .content-panel {
    height: calc(100dvh - 64px);
    min-height: 0;
    overflow: hidden;
  }

  body.computer-asset-route .content-panel {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .sidebar {
    overflow: hidden;
  }

  .sidebar-tree {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Stock list sticky/fill final override */
body.stock-list-route .stock-grid-viewport {
  isolation: isolate;
}

body.stock-list-route .stock-list-table {
  border-collapse: separate;
  border-spacing: 0;
}

body.stock-list-route .stock-head-row th,
body.stock-list-route .stock-filter-row th {
  background-clip: padding-box;
}

body.stock-list-route .stock-head-row th {
  z-index: 30;
  background: #eaf0f8;
  box-shadow: inset 0 -1px 0 #c8d3e1;
}

body.stock-list-route .stock-filter-row th {
  z-index: 29;
  background: #ffffff;
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -2px 0 #c8d3e1;
}

body.stock-list-route .stock-list-table tbody td {
  position: relative;
  z-index: 1;
}

body.stock-list-route .stock-group-toggle {
  width: var(--stock-grid-viewport-width, 100%);
  transform: translateX(var(--stock-scroll-left, 0px));
}

@media (min-width: 1201px) {
  body.stock-list-route .layout-body {
    align-items: stretch;
  }

  body.stock-list-route .content-panel.stock-content-panel {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  body.stock-list-route .stock-list-page {
    flex: 1 1 auto;
    min-height: 0;
  }

  body.stock-list-route .stock-list-body,
  body.stock-list-route .stock-grid-panel {
    min-height: 0;
  }
}

body.stock-list-route .stock-group-toggle {
  width: var(--stock-grid-viewport-width, 100%);
  transform: translateX(var(--stock-scroll-left, 0px));
}

body.stock-list-route .stock-group-toggle {
  width: var(--stock-grid-viewport-width, 100%);
  transform: translateX(var(--stock-scroll-left, 0px));
}

/* Stock list refresh */
.stock-search-row {
  grid-template-columns: minmax(150px, 220px) 150px minmax(150px, 220px) minmax(150px, 240px) auto;
}

.stock-search-action .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 82px;
}

.stock-list-table th,
.stock-list-table td {
  min-width: 104px;
}

.stock-list-table th,
.stock-flat-grid th {
  cursor: default;
}

.stock-flat-grid .stock-sort-head {
  justify-content: center;
}

.stock-filter-row th {
  top: 36px;
  z-index: 3;
  padding: 0.35rem;
  background: #f8fafc;
}

.stock-filter-input {
  min-width: 96px;
  height: 28px;
  padding: 0.2rem 0.4rem;
  font-size: 0.78rem;
}

.stock-mobile-list {
  display: none;
}

.stock-mobile-empty {
  padding: 1.25rem;
  color: #667085;
  text-align: center;
}

.stock-mobile-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid #dfe7f2;
  background: #fff;
}

.stock-mobile-line {
  display: flex;
  min-width: 0;
  gap: 0.45rem;
}

.stock-mobile-main-line {
  align-items: baseline;
}

.stock-mobile-main-line strong {
  flex: 0 0 auto;
  color: #1f2937;
  font-size: 0.92rem;
}

.stock-mobile-main-line span,
.stock-mobile-main-line em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-mobile-main-line span {
  color: #334155;
  font-weight: 700;
}

.stock-mobile-main-line em {
  color: #64748b;
  font-size: 0.82rem;
  font-style: normal;
}

.stock-mobile-spec-line,
.stock-mobile-qty-line {
  flex-wrap: wrap;
}

.stock-mobile-field {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  min-width: 0;
  color: #334155;
  font-size: 0.8rem;
}

.stock-mobile-label {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 700;
}

.stock-mobile-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1200px) {
  body.stock-list-route .layout-body {
    overflow: visible;
  }

  body.stock-list-route .content-panel.stock-content-panel {
    height: auto;
    min-height: calc(100dvh - 64px);
    overflow: visible;
  }
}

@media (max-width: 767px) {
  body.stock-list-route .stock-list-page,
  body.stock-list-route .stock-list-body,
  body.stock-list-route .stock-grid-panel {
    min-height: 0;
    overflow: visible;
  }

  body.stock-list-route .stock-list-page {
    display: block;
  }

  body.stock-list-route .stock-search-row {
    grid-template-columns: 1fr 1fr;
  }

  body.stock-list-route .stock-search-action {
    grid-column: 1 / -1;
  }

  body.stock-list-route .stock-search-action .btn {
    width: 100%;
  }

  body.stock-list-route .stock-desktop-grid {
    display: none;
  }

  body.stock-list-route .stock-mobile-list {
    display: block;
  }
}

.video-meeting-shell {
  min-height: calc(100vh - 120px);
}

.video-meeting-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.78fr) minmax(520px, 2.2fr) minmax(260px, 1fr);
  gap: 0.9rem;
  padding: 1rem;
  min-height: calc(100vh - 210px);
}

.video-meeting-url-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem 0;
}

.video-meeting-host-guide {
  margin: 0.75rem 1rem 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #f2d08a;
  background: #fff8e7;
  color: #72521a;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.55;
}

.video-meeting-host-guide strong {
  flex: 0 0 auto;
  color: #4f3910;
}

.video-meeting-side,
.video-meeting-center,
.video-meeting-minutes {
  border: 1px solid #d8e1ee;
  background: #ffffff;
  min-width: 0;
}

.video-meeting-side,
.video-meeting-minutes {
  padding: 0.9rem;
  overflow: auto;
}

.video-meeting-side h3,
.video-meeting-minutes h3 {
  color: #314153;
  font-size: 1rem;
  font-weight: 700;
}

.video-meeting-attendee-list {
  display: grid;
  gap: 0.5rem;
}

.video-meeting-attendee {
  border: 1px solid #e3e9f2;
  background: #f8fafc;
  padding: 0.65rem 0.75rem;
}

.video-meeting-attendee strong,
.video-meeting-attendee small {
  display: block;
}

.video-meeting-attendee small {
  margin-top: 0.15rem;
  color: #667085;
}

.video-meeting-center {
  min-height: 560px;
  display: flex;
}

.video-meeting-center iframe {
  width: 100%;
  min-height: 100%;
  border: 0;
  background: #111827;
}

.video-meeting-large-modal .modal-header {
  background: #ffffff;
  border-bottom: 1px solid #d8e1ee;
}

.video-meeting-large-modal .modal-body {
  min-height: 0;
  background: #111827;
}

.video-meeting-large-modal iframe {
  width: 100%;
  height: calc(100vh - 57px);
  border: 0;
  display: block;
  background: #111827;
}

.video-meeting-frame-empty,
.video-meeting-empty {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  background: #f8fafc;
}

@media (max-width: 1200px) {
  .video-meeting-layout {
    grid-template-columns: 1fr;
  }

  .video-meeting-center {
    min-height: 460px;
  }

  .video-meeting-url-row {
    grid-template-columns: 1fr;
  }
}

/* Shortcut zone button tuning */
.topbar-shortcut-right .header-shortcut-zone,
#headerShortcutZone.header-shortcut-zone {
  min-height: 64px;
  align-items: center;
}

.topbar-shortcut-right .header-shortcut-row,
#headerShortcutZone .header-shortcut-row {
  justify-content: flex-start;
}

.topbar-shortcut-right .header-shortcut-btn,
#headerShortcutZone .header-shortcut-btn {
  min-height: 34px;
  max-height: 34px;
  min-width: 76px;
  width: calc((100% - (6 * 0.35rem)) / 7);
  padding: 0.25rem 0.35rem;
  line-height: 1.08;
  font-size: 0.76rem;
}

.user-picker-layout {
  display: grid;
  grid-template-rows: minmax(240px, 1fr) minmax(220px, 0.9fr);
  gap: 1rem;
  min-height: 560px;
}

.user-picker-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid #d6deea;
  background: #ffffff;
  min-height: 0;
}

.user-picker-panel-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e5ebf3;
  background: #f7f9fc;
}

.user-picker-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.9rem;
  background: #fbfcfe;
}

.user-picker-search-wrap {
  max-width: 360px;
}

.user-picker-grid {
  border: 1px solid #d6deea;
  background: #ffffff;
}

.user-picker-grid-head,
.user-picker-grid-row {
  display: grid;
  grid-template-columns: 88px 140px 160px minmax(180px, 0.8fr);
}

.user-picker-grid-head {
  background: #eef3fb;
  color: #516074;
  font-size: 0.82rem;
  font-weight: 700;
  border-bottom: 1px solid #dce4f1;
}

.user-picker-grid-head > div,
.user-picker-grid-row > div,
.user-picker-grid-row > label {
  padding: 0.62rem 0.75rem;
  border-right: 1px solid #e4ebf5;
  margin: 0;
  cursor: pointer;
}

.user-picker-grid-head > div:last-child,
.user-picker-grid-row > div:last-child,
.user-picker-grid-row > label:last-child {
  border-right: 0;
}

.user-picker-grid-body {
  max-height: 250px;
  overflow-y: auto;
}

.user-picker-grid-row {
  border-top: 1px solid #edf1f8;
  background: #ffffff;
}

.user-picker-grid-row.is-selected {
  background: #f4f9ff;
}

.user-picker-grid-row:hover {
  background: #f7faff;
}

.user-picker-grid-row .check-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-picker-grid-row .form-check-input {
  margin: 0;
}

.user-picker-grid-user,
.user-picker-grid-name,
.user-picker-grid-dept {
  display: flex;
  align-items: center;
}

.user-picker-empty {
  padding: 0.85rem 0.75rem;
  color: #667085;
}

@media (max-width: 991px) {
  .user-picker-layout {
    grid-template-rows: minmax(220px, 1fr) minmax(200px, 0.9fr);
    min-height: 0;
  }

  .user-picker-grid-head,
  .user-picker-grid-row {
    grid-template-columns: 72px 110px 130px minmax(130px, 0.75fr);
  }
}

.worklog-grid {
  border: 1px solid #6f7d91;
  border-radius: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.worklog-grid-header {
  background: #edf3fc;
  color: #516074;
}

.worklog-grid-header > div,
.worklog-grid-row > div {
  border-right: 1px solid #dde5f0;
}

.worklog-grid-row {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-top: 1px solid #c5cfdb;
  outline: none;
  background: #ffffff;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.worklog-grid-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #8fa9d8;
}

.worklog-grid-row:nth-child(odd) {
  background: #ffffff;
}

.worklog-grid-row:nth-child(even) {
  background: #f6f8fc;
}

.worklog-grid-row:hover {
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px rgba(91, 141, 239, 0.06);
}

.worklog-grid-row:focus,
.worklog-grid-row:focus-visible,
.worklog-grid-row:active {
  outline: none;
  box-shadow: none;
}

.worklog-item-private {
  background: #fff8f7;
}

.worklog-item-private::before {
  background: #e07a7a;
}

.worklog-item-shared {
  background: #fbfcff;
}

.worklog-item-shared::before {
  background: #7f96bf;
}

.worklog-item-public {
  background: #f7fbff;
}

.worklog-item-public::before {
  background: #5b8def;
}

.worklog-item-mine .worklog-title {
  color: #1f3f74;
}

.worklog-grid-empty {
  background: #ffffff;
}

.worklog-grid-empty::before {
  display: none;
}

.btn-primary:hover,
.btn-primary:focus,
.login-form .btn-primary:hover,
.login-form .btn-primary:focus,
.modal-footer .btn-primary:hover,
.modal-footer .btn-primary:focus {
  background: #738094;
  border-color: #738094;
}

.btn-outline-primary {
  color: #6f7b8d;
  border-color: #d4dae3;
  background: #f7f8fb;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #5f6b7d;
  border-color: #c7cfdc;
  background: #eef1f6;
}

.worklog-search-bar {
  display: flex;
  align-items: end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.worklog-search-action {
  display: flex;
  align-items: end;
}

.worklog-check-filter-options {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 31px;
}

.worklog-check-filter-options .form-check {
  margin-bottom: 0;
}

.worklog-grid {
  border: 1px solid var(--line);
  background: #ffffff;
}

.worklog-grid-header,
.worklog-grid-row {
  display: grid;
  grid-template-columns: 206px 220px minmax(0, 1fr);
  gap: 0;
}

.worklog-grid-header {
  background: #eef3fb;
  color: #5d6a7d;
  font-size: 0.82rem;
  font-weight: 700;
}

.worklog-grid-header > div,
.worklog-grid-row > div {
  padding: 0.75rem 0.85rem;
  border-right: 1px solid #e5e7eb;
}

.worklog-grid-header > div {
  text-align: center;
}

.worklog-grid-row > div:first-child {
  padding-left: 1.1rem;
}

.worklog-grid-header > div:last-child,
.worklog-grid-row > div:last-child {
  border-right: 0;
}

.worklog-grid-body {
  display: flex;
  flex-direction: column;
  min-height: calc(var(--worklog-page-rows, 10) * 74px);
  overflow: visible;
}

.worklog-grid-row {
  width: 100%;
  min-height: 74px;
  text-align: left;
  background: #ffffff;
  border-top: 1px solid #eef1f5;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.worklog-grid-row:hover {
  background: #f8fbff;
}

.worklog-grid-empty {
  display: block;
}

.worklog-grid-empty > div {
  padding: 1rem;
  color: #667085;
}

.worklog-item-mine {
  background: #f8fbff;
}

.worklog-item-public {
  background: #fcfdff;
}

.worklog-item-shared {
  background: #fafbfc;
}

.worklog-grid-writer,
.worklog-grid-share,
.worklog-grid-content {
  min-width: 0;
}

.worklog-grid-content {
  cursor: pointer;
}

.worklog-title {
  color: #27303b;
  font-weight: 700;
}

.worklog-date,
.worklog-meta {
  color: #667085;
  font-size: 0.86rem;
}

.worklog-share-inline {
  display: flex;
  gap: 0.8rem;
  align-items: end;
}

.worklog-share-button-wrap {
  flex: 0 0 auto;
}

.worklog-editor {
  min-height: 320px;
  border: 1px solid #d3d9e2;
  background: #fbfcfe;
  padding: 0.85rem 0.95rem;
  overflow-y: auto;
}

.worklog-editor:focus {
  outline: none;
  border-color: #9bb8f5;
  box-shadow: 0 0 0 0.18rem rgba(91, 141, 239, 0.12);
  background: #ffffff;
}

.worklog-editor img,
.worklog-pasted-image {
  max-width: 100%;
  height: auto;
}

.worklog-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-top: 0;
  background: #f8fafc;
}

.worklog-page-size,
.worklog-page-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.worklog-page-size {
  justify-self: start;
}

.worklog-page-nav {
  justify-self: center;
}

.worklog-page-size select {
  width: 76px;
}

.worklog-page-info {
  min-width: 64px;
  text-align: center;
  color: var(--text-sub);
  font-weight: 600;
}

.worklog-preview-note {
  position: fixed;
  z-index: 1080;
  width: min(420px, calc(100vw - 2rem));
  border: 1px solid #c9dbf5;
  border-radius: 14px;
  background: #f7fbff;
  box-shadow: 0 18px 40px rgba(47, 93, 148, 0.18);
  overflow: hidden;
}

.worklog-preview-note-body {
  max-height: min(320px, calc(100vh - 7rem));
  overflow: auto;
  padding: 0.85rem 0.95rem;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.empty-state {
  padding: 1rem;
  border: 1px dashed #d6deea;
  background: #fbfcfe;
  color: #667085;
}

.crm-namecard-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 2fr);
  gap: 0.375rem;
  min-height: 760px;
}

.crm-namecard-card-page {
  display: grid;
  gap: 0.5rem;
}

.crm-right-panel {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr);
  gap: 0.25rem;
  min-width: 0;
}

.crm-right-panel > .panel-card + .panel-card {
  margin-top: 0;
}

.crm-customer-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.5rem;
  align-items: center;
}

.crm-customer-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.crm-customer-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-height: 168px;
  width: 100%;
  padding: 1rem;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  text-align: left;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.crm-customer-card:hover,
.crm-customer-card:focus,
.crm-customer-card.active {
  border-color: #7fa9df;
  box-shadow: 0 12px 26px rgba(47, 93, 148, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.crm-customer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.crm-customer-no,
.crm-customer-card-count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.5rem;
  border: 1px solid #dce5f2;
  border-radius: 999px;
  background: #f7faff;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.crm-customer-card-count {
  background: #f7fbf9;
  color: #4f6f63;
}

.crm-customer-card-name {
  min-width: 0;
  color: #172033;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  word-break: break-word;
}

.crm-customer-card-company,
.crm-customer-card-phone {
  min-width: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}

.crm-customer-card-company {
  font-weight: 700;
}

.crm-customer-card-empty {
  grid-column: 1 / -1;
}

.crm-customer-grid,
.crm-namecard-list-wrap {
  border: 1px solid var(--line);
  background: #fff;
}

.crm-customer-grid-head,
.crm-customer-row,
.crm-namecard-grid-head,
.crm-namecard-row {
  display: grid;
  gap: 0;
}

.crm-customer-grid-head,
.crm-customer-row {
  grid-template-columns: 110px 120px minmax(0, 1fr);
}

.crm-namecard-grid-head,
.crm-namecard-row {
  grid-template-columns: 72px minmax(0, 1fr);
}

.crm-customer-grid-head,
.crm-namecard-grid-head {
  background: #eef3fb;
  color: #58677b;
  font-size: 0.82rem;
  font-weight: 700;
}

.crm-customer-grid-head > div,
.crm-customer-row > div,
.crm-namecard-grid-head > div,
.crm-namecard-row > div {
  padding: 0.65rem 0.75rem;
  border-right: 1px solid #e4ebf5;
  min-width: 0;
}

.crm-customer-grid-head > div:last-child,
.crm-customer-row > div:last-child,
.crm-namecard-grid-head > div:last-child,
.crm-namecard-row > div:last-child {
  border-right: 0;
}

.crm-customer-grid-body,
.crm-namecard-grid-body {
  max-height: 620px;
  overflow-y: auto;
}

.crm-customer-row,
.crm-namecard-row {
  width: 100%;
  border: 0;
  border-top: 1px solid #edf1f8;
  background: #fff;
  color: #334155;
  text-align: left;
  padding: 0;
}

.crm-customer-row:nth-child(even),
.crm-namecard-row:nth-child(even) {
  background: #fbfcfe;
}

.crm-customer-row:hover,
.crm-customer-row.active,
.crm-namecard-row:hover,
.crm-namecard-row.active {
  background: #eef5ff;
}

.crm-customer-row > div:first-child,
.crm-customer-row > div:nth-child(2),
.crm-namecard-row > div:first-child {
  text-align: center;
}

.crm-grid-empty {
  padding: 0.95rem;
  text-align: center;
  color: #667085;
}

.crm-detail-form-grid {
  display: grid;
  grid-template-columns: 180px repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.crm-detail-form-grid .full {
  grid-column: 1 / -1;
}

.crm-namecard-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.crm-namecard-ocr-status {
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cfe2ff;
  background: #f3f8ff;
  color: #225ea8;
  font-size: 0.86rem;
  line-height: 1.35;
}

.crm-namecard-ocr-status.is-error {
  border-color: #f5c2c7;
  background: #fff5f5;
  color: #b42318;
}

.crm-namecard-ocr-status.is-success {
  border-color: #badbcc;
  background: #f3fbf6;
  color: #146c43;
}

.crm-namecard-layout-inner {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 0.25rem;
  min-height: 320px;
}

.crm-namecard-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  min-height: 320px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  padding: 0.75rem;
}

.crm-namecard-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #d9e2ef;
  background: #ffffff;
  color: #516074;
  font-size: 0.8rem;
}

.crm-namecard-preview-file {
  font-weight: 700;
  color: #334155;
}

.crm-namecard-preview-size,
.crm-namecard-preview-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.5rem;
  border: 1px solid #dce5f2;
  background: #f7faff;
  color: #64748b;
}

.crm-namecard-preview-empty {
  color: #667085;
  text-align: center;
}

.crm-namecard-preview-image {
  width: 100%;
  max-width: 100%;
  min-height: 420px;
  max-height: 420px;
  object-fit: contain;
  display: block;
  background: #fff;
}

.crm-namecard-preview-frame {
  width: 100%;
  min-height: 420px;
  flex: 1 1 auto;
  border: 0;
  background: #fff;
}

.crm-namecard-help {
  margin-top: 0.75rem;
  color: #667085;
  font-size: 0.82rem;
}

.document-search-bar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.document-search-action {
  display: flex;
  align-items: end;
}

.document-action-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.document-management-page {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  overflow: visible;
  box-sizing: border-box;
}

.content-panel > .document-management-page.panel-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.content-panel > .document-management-page.panel-card > .card-body-area {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.document-management-page > .card-body-area {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  box-sizing: border-box;
}

.document-page-layout {
  display: grid;
  gap: var(--panel-gap-compact);
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
}

.document-split {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: var(--panel-gap-compact);
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
}

.document-tree-panel,
.document-preview-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

.document-tree-head,
.document-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #dfe7f2;
  background: #f7faff;
  min-height: 56px;
}

.document-preview-action-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#dashboardModalDesc {
  white-space: pre-line;
}

.password-change-modal .modal-content,
.password-change-modal .modal-header,
.password-change-modal .modal-body,
.password-change-modal .form-label {
  text-align: left;
}

.password-change-footer {
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.password-change-message {
  order: 0;
  flex: 1 1 auto;
  margin-left: 0;
  margin-right: 0.35rem;
  min-height: 1.25rem;
  text-align: left;
}

.server-account-page {
  display: flex;
  flex-direction: column;
  gap: var(--panel-gap-compact);
  min-height: 0;
}

.server-account-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.server-account-search-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr) auto;
  gap: 0.65rem 0.85rem;
  align-items: end;
  margin-bottom: 0.85rem;
}

.server-account-search-item .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: #6a7688;
  font-weight: 600;
}

.server-account-search-action {
  display: flex;
  align-items: end;
}

.server-account-pager {
  margin-top: 0.75rem;
}

.server-account-table-wrap {
  overflow-x: auto;
  max-height: none;
  overflow-y: hidden;
}

.server-account-table {
  margin-bottom: 0;
  table-layout: fixed;
}

.server-account-top-panel .card-body-area {
  padding-top: 0.85rem;
}

.server-account-top-panel {
  min-height: 320px;
}

.server-account-table thead th,
.server-account-table tbody td {
  text-align: center;
  vertical-align: middle;
}

.server-account-table thead th {
  background: #eef3fb;
  color: #5d6a7d;
  border-right: 1px solid #e5e7eb;
}

.server-account-table thead th:last-child,
.server-account-table tbody td:last-child {
  border-right: 0;
}

.server-account-table tbody td {
  border-right: 1px solid #edf0f5;
}

.server-account-table tbody tr.selected {
  background: #f4f8ff;
}

.server-account-check-col {
  width: 48px;
}

.server-account-table thead th:nth-child(2),
.server-account-table tbody td:nth-child(2) {
  width: 66px;
}

.server-account-action-col {
  width: 164px;
}

.server-account-copyable {
  display: inline-block;
  width: 100%;
  color: #617892;
  user-select: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-account-remark-summary {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-account-input {
  min-width: 0;
  text-align: center;
}

.server-account-remark-trigger {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d7e0ee;
  background: #fbfcff;
  color: #5f7087;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  text-align: left;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-account-remark-trigger:hover,
.server-account-remark-trigger:focus {
  border-color: #8db0ef;
  background: #f4f8ff;
  outline: none;
}

.server-account-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.server-account-empty {
  padding: 1rem;
  color: #6b7280;
  text-align: center;
}

.server-account-pager-spacer {
  min-width: 1px;
}

.server-remark-helper {
  margin-bottom: 0.65rem;
  color: #7a879a;
  font-size: 0.82rem;
}

.server-remark-editor {
  min-height: 420px;
  max-height: 65vh;
  user-select: text;
  overflow-x: hidden;
  overflow-y: auto;
  white-space: normal;
}

.server-remark-editor.is-readonly {
  background: #f8fbff;
  border-color: #d7e0ee;
  cursor: text;
}

.server-remark-editor img {
  max-width: 100%;
  height: auto;
}

.login-log-page {
  display: flex;
  flex-direction: column;
  gap: var(--panel-gap-compact);
  min-height: calc(100vh - 7.5rem);
}

.login-log-search-panel,
.login-log-list-panel {
  min-height: 0;
}

.login-log-list-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.login-log-list-panel > .card-body-area {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.login-log-search-panel .card-title-row,
.login-log-list-panel .card-title-row {
  justify-content: flex-start;
  gap: 0.75rem;
}

.login-log-list-panel .card-title-row {
  justify-content: space-between;
}

.login-log-search-row {
  display: grid;
  grid-template-columns: 160px 160px 180px 180px minmax(220px, 1fr) auto;
  gap: 0.65rem 0.85rem;
  align-items: end;
  flex: 0 0 auto;
}

.login-log-search-item .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: #6a7688;
}

.login-log-search-action {
  display: flex;
  align-items: end;
}

.login-log-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.login-log-page-size-group {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.login-log-page-size-group .form-select {
  width: 110px;
}

.login-log-paging-status {
  color: #687387;
  font-size: 0.83rem;
  font-weight: 600;
}

.login-log-table-viewport {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 360px);
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.login-log-table-wrap {
  min-height: 0;
}

.login-log-table {
  margin-bottom: 0;
  min-width: 1060px;
}

.login-log-table thead th {
  background: #eef3fb;
  border-right: 1px solid #e5e7eb;
  color: #5d6a7d;
  font-weight: 600;
  position: sticky;
  text-align: center;
  top: 0;
  z-index: 1;
}

.login-log-table tbody td {
  border-right: 1px solid #edf0f5;
  color: #475569;
  text-align: center;
  vertical-align: middle;
}

.login-log-table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.login-log-table thead th:last-child,
.login-log-table tbody td:last-child {
  border-right: 0;
}

.login-log-empty {
  color: #6b7280;
  padding: 1rem;
  text-align: center;
}

.login-log-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.admin-user-page {
  display: flex;
  flex-direction: column;
  gap: var(--panel-gap-compact);
}

.admin-user-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-user-search-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(180px, 220px) auto;
  gap: 0.65rem 0.85rem;
  align-items: end;
  margin-bottom: 0.85rem;
}

.admin-user-search-item .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: #6a7688;
  font-weight: 600;
}

.admin-user-search-action {
  display: flex;
  align-items: end;
}

.admin-user-table-wrap {
  border: 1px solid var(--line);
  background: #fff;
  overflow: auto;
  max-height: calc(100vh - 260px);
}

.admin-user-table {
  min-width: 1580px;
  margin-bottom: 0;
}

.admin-user-table thead th {
  background: #eef3fb;
  border-right: 1px solid #e5e7eb;
  color: #5d6a7d;
  font-weight: 600;
  position: sticky;
  text-align: center;
  top: 0;
  z-index: 1;
}

.admin-user-table tbody td {
  border-right: 1px solid #edf0f5;
  color: #475569;
  text-align: center;
  vertical-align: middle;
}

.admin-user-table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.admin-user-table tbody tr.editing td {
  background: #f4f8ff;
}

.admin-user-table thead th:last-child,
.admin-user-table tbody td:last-child {
  border-right: 0;
}

.admin-user-check-col {
  width: 44px;
}

.admin-user-action-col {
  width: 76px;
}

.admin-user-row-action-cell {
  width: 76px;
  min-width: 76px;
  white-space: nowrap;
}

.admin-user-row-action-cell .btn {
  min-width: 32px;
  padding-left: 0.34rem;
  padding-right: 0.34rem;
}

.admin-user-row-action-cell .btn + .btn {
  margin-left: 0.12rem;
}

.admin-user-input {
  min-width: 95px;
  text-align: center;
}

.admin-user-flag {
  width: 1rem;
  height: 1rem;
}

.admin-user-empty {
  color: #6b7280;
  padding: 1rem;
  text-align: center;
}

@media (max-width: 767px) {
  .server-account-search-row {
    grid-template-columns: 1fr;
  }

  .server-account-search-action {
    justify-content: flex-start;
  }

  .login-log-search-row {
    grid-template-columns: 1fr;
  }

  .login-log-list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .login-log-page-size-group {
    justify-content: space-between;
  }

  .login-log-table-viewport {
    max-height: calc(100vh - 430px);
  }
}

.document-tree-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 0.45rem 0.35rem;
}

.document-tree-group + .document-tree-group {
  margin-top: 0.15rem;
}

.document-tree-group-header {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6a7f99;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.4rem;
  font-weight: 700;
  text-align: left;
}

.document-tree-group-header strong {
  margin-left: auto;
  color: #94a3b8;
  font-size: 0.8rem;
}

.document-tree-group-header.active,
.document-tree-group-header:hover {
  color: #4b6f9f;
}

.document-tree-group-header.active strong,
.document-tree-group-header:hover strong {
  color: #6c87ab;
}

.document-tree-group-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6f86a3;
  font-weight: 700;
}

.document-tree-group-header.active .document-tree-group-name,
.document-tree-group-header:hover .document-tree-group-name {
  color: #4b6f9f;
}

.document-tree-toggle {
  width: 1rem;
  text-align: center;
  color: currentColor;
  font-weight: 800;
}

.document-tree-group-body {
  display: none;
  padding: 0.08rem 0 0.08rem 1.2rem;
}

.document-tree-group-body.open {
  display: block;
}

.document-tree-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.18rem 0.1rem 0.18rem 0;
}

.document-tree-item.active {
  background: rgba(91, 141, 239, 0.09);
}

.document-tree-item-main {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.28rem;
  border-radius: 8px;
}

.document-tree-item-main:hover {
  background: rgba(91, 141, 239, 0.08);
}

.document-tree-item-toggle {
  width: 0.9rem;
  flex: 0 0 0.9rem;
  text-align: center;
  color: #8ca0bb;
  font-weight: 800;
}

.document-tree-item-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #617892;
  font-size: 0.85rem;
  font-weight: 600;
}

.document-tree-empty {
  padding: 1rem;
  color: #667085;
  text-align: center;
}

.document-tree-download-btn {
  border: 0;
  background: transparent;
  color: #8ea0b8;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.3rem;
}

.document-tree-download-btn:hover {
  color: #5d7fae;
}

.document-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.9rem 0;
  color: #64748b;
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.document-preview-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.75rem 0.9rem 0.9rem;
  box-sizing: border-box;
}

.document-preview-empty,
.document-preview-fallback {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  border: 1px solid #dfe7f2;
  background: #fbfcfe;
  text-align: center;
  padding: 1rem;
}

.document-preview-frame {
  width: 100%;
  min-height: 100%;
  height: 100%;
  border: 1px solid #dfe7f2;
  background: #fff;
}

.document-upload-dropzone {
  border: 1px dashed #c4d4ea;
  background: #f8fbff;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  cursor: pointer;
  padding: 1rem;
  color: #516074;
}

.document-upload-dropzone.is-dragover,
.document-upload-dropzone:hover,
.document-upload-dropzone:focus {
  border-color: #8db3ea;
  background: #eef5ff;
  outline: none;
}

@media (max-width: 1199px) {
  .document-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .document-search-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1399px) {
  .crm-namecard-layout {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  }

  .crm-namecard-layout-inner {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

@media (max-width: 1199px) {
  .crm-namecard-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .crm-customer-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-partner-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .crm-partner-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-partner-field.wide {
    grid-column: span 2;
  }

  .crm-right-panel {
    grid-template-rows: auto auto;
  }

  .crm-detail-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .crm-customer-toolbar {
    grid-template-columns: 1fr;
  }

  .crm-partner-toolbar,
  .crm-customer-card-grid,
  .crm-detail-form-grid,
  .crm-namecard-layout-inner {
    grid-template-columns: 1fr;
  }

  .crm-partner-field-grid {
    grid-template-columns: 1fr;
  }

  .crm-partner-field.wide {
    grid-column: span 1;
  }

  .crm-customer-grid-body,
  .crm-namecard-grid-body {
    max-height: 280px;
  }
}

@media (max-width: 768px) {
  .worklog-pager {
    grid-template-columns: 1fr;
  }

  .worklog-page-size,
  .worklog-page-nav {
    justify-self: start;
  }
}

/* CRM Business Cards */
.crm-customer-modal-dialog,
.crm-customer-modal {
  max-width: min(1240px, calc(100vw - 2rem));
}

.crm-customer-modal {
  min-height: 0;
}

.crm-customer-modal .modal-body {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(440px, 1.15fr);
  gap: 0.75rem;
  align-items: stretch;
  padding: 0.75rem 1rem;
}

.crm-customer-modal .crm-customer-detail-panel,
.crm-customer-modal .crm-namecard-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  border: 1px solid #e0e7f1;
  background: #ffffff;
}

.crm-customer-modal .crm-customer-detail-panel {
  align-self: stretch;
}

.crm-customer-modal .card-title-row {
  margin: 0;
  height: 42px;
  min-height: 0;
  padding: 0 0.75rem;
  border-bottom: 1px solid #e0e7f1;
  background: #f3f6fb;
  box-sizing: border-box;
}

.crm-customer-modal .card-title-row h2,
.crm-customer-modal .card-title-row h3 {
  font-size: 0.92rem;
  line-height: 1.2;
  margin: 0;
}

.crm-customer-modal .card-body-area {
  padding: 0.75rem;
}

.crm-customer-modal .crm-namecard-panel .card-body-area {
  display: grid;
  gap: 0;
  overflow: visible;
}

.crm-customer-modal .crm-namecard-layout-inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(240px, 1fr);
  gap: 0.5rem;
  min-height: 0;
}

.crm-customer-modal .crm-namecard-list-wrap {
  min-height: 0;
  max-height: 172px;
  overflow: hidden;
}

.crm-customer-modal .crm-namecard-grid-body {
  max-height: 120px;
}

.crm-customer-modal .crm-namecard-preview-wrap {
  min-height: 240px;
  padding: 0.5rem;
}

.crm-customer-modal .crm-namecard-preview-image,
.crm-customer-modal .crm-namecard-preview-frame {
  min-height: 240px;
  max-height: 280px;
}

.crm-customer-modal .crm-detail-form-grid {
  gap: 0.65rem 0.85rem;
}

.crm-customer-modal .crm-detail-form-grid textarea {
  min-height: 126px;
}

.crm-partner-page {
  display: grid;
  gap: 0.5rem;
}

.crm-partner-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 150px auto;
  gap: 0.5rem;
  align-items: center;
}

.crm-partner-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 0.5rem;
  min-height: 720px;
}

.crm-partner-list-panel,
.crm-partner-detail-panel,
.crm-partner-list-panel .card-body-area,
.crm-partner-detail-panel .card-body-area {
  min-width: 0;
}

.crm-partner-list-head,
.crm-partner-list-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 86px;
}

.crm-partner-list-head {
  border: 1px solid #dfe7f2;
  background: #eef3fb;
  color: #58677b;
  font-size: 0.82rem;
  font-weight: 700;
}

.crm-partner-list-head > div,
.crm-partner-list-row > div {
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-right: 1px solid #e4ebf5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-partner-list-head > div:last-child,
.crm-partner-list-row > div:last-child {
  border-right: 0;
}

.crm-partner-list-body {
  max-height: 650px;
  overflow-y: auto;
  border: 1px solid #dfe7f2;
  border-top: 0;
}

.crm-partner-list-row {
  width: 100%;
  border: 0;
  border-top: 1px solid #edf1f8;
  background: #fff;
  color: #334155;
  text-align: left;
  padding: 0;
}

.crm-partner-list-row:first-child {
  border-top: 0;
}

.crm-partner-list-row:hover,
.crm-partner-list-row.active {
  background: #eef5ff;
}

.crm-partner-list-empty,
.crm-partner-empty {
  padding: 1rem;
  color: #667085;
  text-align: center;
}

.crm-partner-detail {
  display: grid;
  gap: 0.75rem;
  max-height: 650px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.crm-partner-detail-group {
  border: 1px solid #dfe7f2;
  background: #fff;
}

.crm-partner-detail-group h3 {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #dfe7f2;
  background: #f3f6fb;
  color: #27303b;
  font-size: 0.92rem;
  font-weight: 800;
}

.crm-partner-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
  padding: 0.75rem;
}

.crm-partner-field {
  min-width: 0;
}

.crm-partner-field.wide {
  grid-column: span 3;
}

.crm-partner-field label {
  display: block;
  margin-bottom: 0.25rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.crm-partner-field textarea {
  min-height: 86px;
  resize: vertical;
}

.stock-list-page {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  overflow: hidden;
}

.stock-list-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.stock-search-bar {
  flex: 0 0 auto;
  border: 1px solid #dfe7f2;
  background: #f8fafc;
  padding: 0.75rem;
}

.stock-search-row {
  display: grid;
  grid-template-columns: minmax(170px, 210px) 150px minmax(150px, 1fr) minmax(150px, 1fr) 160px minmax(180px, 1fr) 132px auto;
  gap: 0.55rem;
  align-items: end;
}

.stock-check-list {
  display: grid;
  gap: 0.35rem;
  min-width: 190px;
  max-height: 220px;
  overflow: auto;
  padding: 0.35rem;
  background: #fff;
}

.stock-check-dropdown {
  min-width: 0;
}

.stock-check-dropdown-btn {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-check-menu {
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0;
  border-color: #d4deec;
}

.stock-check-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  color: #334155;
  font-size: 0.82rem;
  white-space: nowrap;
}

.stock-check-empty {
  color: #94a3b8;
  font-size: 0.82rem;
  white-space: nowrap;
}

.stock-checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 31px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.stock-search-action {
  display: flex;
  justify-content: flex-end;
}

.stock-grid-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid #dfe7f2;
  background: #fff;
  overflow: hidden;
}

.stock-grid-toolbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem;
  border-bottom: 1px solid #dfe7f2;
  background: #f8fafc;
}

.stock-group-dropzone {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  padding: 0.3rem 0.45rem;
  border: 1px dashed #b7c5d8;
  background: #ffffff;
  color: #64748b;
  font-size: 0.86rem;
}

.stock-group-dropzone.drag-over {
  border-color: #5275a6;
  background: #eef5ff;
}

.stock-group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.stock-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 24px;
  border: 1px solid #b8c6d8;
  background: #eaf1fb;
  color: #263648;
  font-size: 0.8rem;
  font-weight: 700;
}

.stock-group-chip span {
  color: #64748b;
}

.stock-group-chip:disabled {
  cursor: default;
  opacity: 1;
}

.stock-grid-viewport {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.stock-list-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.stock-list-table th,
.stock-list-table td {
  min-width: 120px;
  max-width: 280px;
  padding: 0.55rem 0.65rem;
  border-right: 1px solid #e4ebf5;
  border-bottom: 1px solid #edf1f8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.stock-list-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eaf0f8;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: grab;
}

.stock-list-table th:active {
  cursor: grabbing;
}

.stock-list-table tbody tr:hover td {
  background: #f7fbff;
}

.stock-group-row td {
  background: #f1f5f9;
  color: #27303b;
  font-weight: 700;
  padding: 0;
}

.stock-group-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: var(--stock-grid-viewport-width, 100%);
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  transform: translateX(var(--stock-scroll-left, 0px));
}

.stock-group-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #b8c6d8;
  background: #fff;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1;
}

.stock-group-name {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  white-space: nowrap;
}

.stock-group-summary {
  margin-left: 0.5rem;
  color: #64748b;
  font-size: 0.8rem;
  white-space: nowrap;
}

.stock-empty-cell {
  width: 100%;
  min-width: 100%;
  padding: 1.5rem !important;
  color: #667085;
  text-align: center;
}

.stock-flat-grid th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: center;
  cursor: grab;
}

.stock-flat-grid .stock-sort-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.stock-flat-grid .stock-number-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stock-flat-grid .stock-merged-cell {
  background: #f8fbff;
  font-weight: 700;
  text-align: center;
  vertical-align: top !important;
}

.stock-flat-grid .stock-primary-merge-cell {
  padding: 0;
  vertical-align: top;
}

.stock-flat-grid .stock-primary-merge-label {
  display: block;
  min-height: 0;
  padding: 0.55rem 0.65rem;
  background: #f8fbff;
  z-index: 1;
}

.stock-flat-grid .stock-sort-mark {
  color: #5275a6;
  font-size: 0.78rem;
  white-space: nowrap;
}

.stock-band-grid-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #dfe7f2;
  background: #f8fafc;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
}

.stock-band-grid-viewport {
  max-height: calc(100vh - 235px);
  min-height: 560px;
}

.stock-band-grid th,
.stock-band-grid td {
  min-width: 96px;
  max-width: none;
}

.stock-band-grid thead th {
  text-align: center;
}

.stock-band-grid .stock-head-main th {
  top: 0;
}

.stock-band-grid .stock-head-sub th {
  top: 34px;
}

.stock-band-grid .stock-sticky-col {
  position: sticky;
  z-index: 3;
  background: #fff;
  box-shadow: 1px 0 0 #e4ebf5;
}

.stock-band-grid thead .stock-sticky-col {
  z-index: 6;
  background: #eaf0f8;
}

.stock-band-grid tfoot .stock-sticky-col {
  z-index: 5;
  background: #f1f5f9;
}

.stock-band-grid .stock-fixed-head,
.stock-band-grid .stock-band-head,
.stock-band-grid .stock-number-head {
  height: 34px;
}

.stock-band-grid .stock-band-head {
  background: #dde7f5;
  color: #263648;
}

.stock-band-grid .stock-total-head {
  background: #d7e4f4;
}

.stock-band-grid .stock-number-head {
  min-width: 104px;
  background: #eaf0f8;
}

.stock-band-grid .stock-fixed-cell {
  color: #334155;
}

.stock-band-grid .stock-merged-cell {
  background: #f8fbff;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}

.stock-band-grid .stock-number-cell {
  min-width: 104px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stock-band-grid .stock-total-cell {
  background: #f6f9fd;
  font-weight: 800;
}

.stock-band-grid tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 4;
  border-top: 2px solid #cbd7e8;
  background: #f1f5f9;
  font-weight: 800;
}

.stock-band-grid tfoot .stock-footer-fixed {
  text-align: left;
}

@media (max-width: 1199px) {
  .crm-partner-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .crm-partner-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-partner-field.wide {
    grid-column: span 2;
  }

  .stock-search-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .crm-partner-toolbar,
  .crm-partner-field-grid,
  .stock-search-row,
  .stock-grid-toolbar {
    grid-template-columns: 1fr;
  }

  .crm-partner-field.wide {
    grid-column: span 1;
  }

  .stock-search-action {
    justify-content: stretch;
  }

  .stock-search-action .btn,
  .stock-grid-toolbar .btn {
    width: 100%;
  }
}

.crm-right-panel,
.crm-right-panel > .panel-card,
.crm-customer-detail-panel,
.crm-customer-detail-panel .card-body-area,
.crm-namecard-panel,
.crm-namecard-panel .card-body-area,
.crm-detail-form-grid > div,
.crm-detail-form-grid .full {
  min-width: 0;
}

.crm-right-panel > .panel-card,
.crm-customer-detail-panel,
.crm-namecard-panel {
  overflow: hidden;
}

.crm-customer-detail-panel .card-body-area,
.crm-namecard-panel .card-body-area {
  overflow: auto;
}

.crm-customer-detail-panel .card-body-area {
  overflow-x: hidden;
  overflow-y: visible;
}

.crm-detail-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  align-items: start;
}

.crm-detail-form-grid .full {
  grid-column: 1 / -1;
}

.crm-detail-form-grid textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 110px;
  resize: vertical;
  box-sizing: border-box;
}

.crm-customer-detail-panel {
  align-self: start;
}

.share-user-list {
  display: grid;
  gap: 0.5rem;
}

.share-user-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  background: #ffffff;
}

/* Stock list final grid tuning */
body.stock-list-route .stock-search-row {
  grid-template-columns: minmax(150px, 220px) 150px minmax(150px, 220px) minmax(150px, 240px) auto;
}

body.stock-list-route .stock-grid-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

body.stock-list-route .stock-list-table {
  font-size: 0.84rem;
}

body.stock-list-route .stock-list-table th,
body.stock-list-route .stock-list-table td {
  min-width: 104px;
  max-width: 230px;
  padding: 0.45rem 0.5rem;
}

body.stock-list-route .stock-list-table th.stock-compact-head,
body.stock-list-route .stock-list-table td.stock-compact-cell {
  min-width: 78px;
  max-width: 132px;
}

body.stock-list-route .stock-list-table th[data-column-key="itm_bc_nm"] {
  min-width: 84px;
  max-width: 112px;
}

body.stock-list-route .stock-list-table th[data-column-key="itm_cd"] {
  min-width: 116px;
}

body.stock-list-route .stock-list-table th[data-column-key="itm_nm"] {
  min-width: 160px;
}

body.stock-list-route .stock-list-table th[data-column-key="spec"] {
  min-width: 96px;
  max-width: 150px;
}

body.stock-list-route .stock-list-table th[data-column-key="um_bc_nm"],
body.stock-list-route .stock-list-table th[data-column-key="mng_no"] {
  min-width: 84px;
  max-width: 118px;
}

body.stock-list-route .stock-list-table th[data-column-key="end_qty"],
body.stock-list-route .stock-list-table th[data-column-key="req_qty"],
body.stock-list-route .stock-list-table th[data-column-key="use_qty"] {
  min-width: 88px;
  max-width: 112px;
}

body.stock-list-route .stock-head-row th {
  top: 0;
  z-index: 4;
  height: 34px;
  border-bottom: 1px solid #c8d3e1;
  background: #eaf0f8;
  color: #344054;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: grab;
}

body.stock-list-route .stock-head-row th:active {
  cursor: grabbing;
}

body.stock-list-route .stock-filter-row th {
  top: 34px;
  z-index: 3;
  height: 35px;
  padding: 0.25rem 0.35rem;
  border-top: 1px solid #ffffff;
  border-bottom: 2px solid #c8d3e1;
  background: #ffffff;
  cursor: default;
}

body.stock-list-route .stock-filter-input {
  height: 26px;
  min-width: 0;
  padding: 0.15rem 0.35rem;
  border-color: #d6dee9;
  background: #ffffff;
  color: #334155;
  font-size: 0.76rem;
}

body.stock-list-route .stock-flat-grid .stock-sort-head {
  justify-content: center;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}

body.stock-list-route .stock-flat-grid .stock-number-cell {
  text-align: right;
}

body.stock-list-route .stock-flat-grid .stock-center-cell {
  text-align: center;
}

body.stock-list-route .stock-flat-grid .stock-merged-cell {
  background: #f8fbff;
  font-weight: 600;
  vertical-align: middle !important;
}

body.stock-list-route .stock-group-row td {
  padding: 0;
  background: #f1f5f9;
}

body.stock-list-route .stock-group-toggle {
  width: var(--stock-grid-viewport-width, 100%);
  transform: translateX(var(--stock-scroll-left, 0px));
}

body.stock-list-route .stock-mobile-list {
  display: none;
}

@media (max-width: 1200px) {
  body.stock-list-route .layout-body {
    overflow: visible;
  }

  body.stock-list-route .content-panel.stock-content-panel {
    height: auto;
    min-height: calc(100dvh - 64px);
    overflow: visible;
  }
}

@media (max-width: 767px) {
  body.stock-list-route .stock-list-page,
  body.stock-list-route .stock-list-body,
  body.stock-list-route .stock-grid-panel {
    min-height: 0;
    overflow: visible;
  }

  body.stock-list-route .stock-list-page {
    display: block;
  }

  body.stock-list-route .stock-search-row,
  body.stock-list-route .stock-grid-toolbar {
    grid-template-columns: 1fr;
  }

  body.stock-list-route .stock-search-action {
    justify-content: stretch;
  }

  body.stock-list-route .stock-search-action .btn,
  body.stock-list-route .stock-grid-toolbar .btn {
    width: 100%;
  }

  body.stock-list-route .stock-desktop-grid {
    display: none;
  }

  body.stock-list-route .stock-mobile-list {
    display: block;
  }
}
