:root {
  --md-brand-primary: #264AFF;
  --md-brand-primary-hover: #1730AD;
  --md-brand-primary-light: #7AA8FF;
  --md-on-primary: #FFFFFF;
  --md-brand-hover-fill: rgba(var(--tblr-primary-rgb), 0.04);
  --md-brand-selected-fill: rgba(var(--tblr-primary-rgb), 0.08);
  --md-brand-focus-fill: rgba(var(--tblr-primary-rgb), 0.12);
  --md-brand-focus-ring: rgba(var(--tblr-primary-rgb), 0.30);
  --md-brand-outline: rgba(var(--tblr-primary-rgb), 0.50);
  --md-text-primary: #13121A;
  --md-text-regular: #4E5969;
  --md-text-secondary: #4E5969;
  --md-text-disabled: #C9CDD4;
  --md-text-on-dark: #FFFFFF;
  --md-border-subtle: #E5E6EB;
  --md-border-default: #C9CDD4;
  --md-fill-page: #F7F8FA;
  --md-fill-hover: #F2F3F5;
  --md-fill-surface: #FFFFFF;
  --md-radius-sm: 2px;
  --md-radius-md: 4px;
  --md-radius-lg: 8px;
  --md-radius-pill: 999px;
  --md-space-1: 4px;
  --md-space-2: 8px;
  --md-space-3: 12px;
  --md-space-4: 16px;
  --md-space-5: 24px;
  --md-space-6: 32px;
  --md-space-7: 48px;
  --md-space-8: 64px;
  --md-scrollbar-thumb: rgba(19, 18, 26, 0.16);
  --md-scrollbar-thumb-hover: rgba(19, 18, 26, 0.24);
  --md-scrollbar-track: transparent;
  --md-scrollbar-size: 8px;
  --brand-header-logo-height: 24px;
  --brand-header-logo-max-width: 140px;
  --brand-body-bg-image: url("../img/portal/home/body_bg.png");
  --tblr-primary: #264AFF;
  --tblr-primary-rgb: 38, 74, 255;
}

.w-\[240px\] {
  width: 240px;
}

html {
  height: 100%;
}

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

* {
  scrollbar-width: thin;
  scrollbar-color: var(--md-scrollbar-thumb) var(--md-scrollbar-track);
}

*::-webkit-scrollbar {
  width: var(--md-scrollbar-size);
  height: var(--md-scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--md-scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background: var(--md-scrollbar-thumb);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--md-scrollbar-thumb-hover);
}

body {
  font-family: "Nunito Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #4E5969;
  /* background: radial-gradient(130% 150% at 0% 0%, #FFFFFF 0%, #F0F4FF 50%, #E6EEFF 100%); */
  background-image: var(--brand-body-bg-image);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.admin-shell {
  min-height: 100vh;
  height: 100vh;
  display: grid;
  grid-template-columns: 244px 1fr;
  grid-template-rows: 56px 1fr;
  overflow: hidden;
}

.admin-shell .navbar-vertical {
  width: 244px;
  min-height: 0;
  height: 100%;
  background: transparent;
  border-right: none;
  padding: 0;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[data-brand-inline-logo] {
  display: block;
  width: auto;
  color: var(--brand-logo-color, currentColor);
  flex-shrink: 0;
}

.admin-shell #site-logo {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transform: none;
}

.admin-shell .navbar-vertical .container-fluid {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.admin-shell .navbar-vertical .navbar-collapse {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: var(--md-space-3);
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

.admin-shell .navbar-vertical .navbar-collapse::-webkit-scrollbar {
  width: 0;
}

.admin-shell .navbar-vertical .navbar-collapse::-webkit-scrollbar-track {
  background: transparent;
}

.admin-shell .navbar-vertical .navbar-collapse::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.admin-shell .navbar-vertical .navbar-collapse.is-scrolling {
  scrollbar-width: thin;
  scrollbar-color: var(--md-scrollbar-thumb) var(--md-scrollbar-track);
}

.admin-shell .navbar-vertical .navbar-collapse.is-scrolling::-webkit-scrollbar {
  width: var(--md-scrollbar-size);
}

.admin-shell .navbar-vertical .navbar-collapse.is-scrolling::-webkit-scrollbar-track {
  background: var(--md-scrollbar-track);
}

.admin-shell .navbar-vertical .navbar-collapse.is-scrolling::-webkit-scrollbar-thumb {
  background: var(--md-scrollbar-thumb);
}

.admin-shell .admin-sidebar-head {
  padding: 0 var(--md-space-5);
  height: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: none;
  position: static;
  flex-shrink: 0;
}

.admin-shell .admin-header .admin-sidebar-head {
  padding: 0;
}

.admin-shell .admin-header .navbar-brand {
  height: 100%;
  padding: 0;
}

.admin-shell .navbar-vertical .navbar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--md-space-3);
  padding: 0;
  margin: 0;
  height: 100%;
}

.admin-shell .navbar-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.admin-shell #site-logo {
  display: block;
  height: var(--brand-header-logo-height);
  width: 100%;
  /* max-width: var(--brand-header-logo-max-width); */
  padding: 0;
  border-radius: 4px;
  /* background: linear-gradient(135deg, var(--md-brand-primary) 0%, var(--md-brand-primary-hover) 100%);
  box-shadow: 0 18px 30px -24px rgba(var(--tblr-primary-rgb), 0.72); */
  object-fit: contain;
  flex-shrink: 0;
}

.admin-shell .navbar-brand-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--md-text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-shell .navbar-brand-subtitle {
  font-size: 10px;
  font-weight: 600;
  color: var(--md-text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: none;
}

.admin-shell .navbar-vertical .navbar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--md-space-1);
  padding: var(--md-space-3) 0;
  list-style: none;
  margin: 0;
}

.admin-shell .nav-link {
  display: flex;
  align-items: center;
  gap: var(--md-space-2);
  padding: 16px 12px;
  border-radius: var(--md-radius-md);
  color: var(--md-text-regular);
  font-weight: 300;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.admin-shell .navbar-vertical .navbar-nav > .nav-item > .nav-link {
  color: var(--md-text-primary);
}

.admin-shell .navbar-vertical .navbar-nav .nav .nav-link {
  color: var(--md-text-secondary);
}

.admin-shell .nav-group .nav-group-toggle {
  margin-left: auto;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--md-text-primary);
  transition: transform 0.15s ease, color 0.15s ease;
}

.admin-shell .nav-group .nav-group-toggle::before {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.admin-shell .nav-group.open > .nav-link .nav-group-toggle {
  transform: rotate(180deg);
}

.admin-shell .nav-link:hover,
.admin-shell .nav-link:focus {
  background: var(--md-brand-hover-fill);
  color: var(--md-brand-primary);
}

.admin-shell .nav-link.active {
  background: var(--md-brand-selected-fill);
  color: var(--md-brand-primary);
}

.admin-shell .nav-link .nav-link-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.admin-shell .navbar-vertical .nav-link {
  height: 40px;
  padding: 0 12px;
}

.admin-shell .navbar-vertical .nav-link .nav-link-icon {
  width: 16px;
  height: 16px;
  margin-right: 0;
}

.admin-shell .navbar-vertical .nav-link .nav-link-icon svg,
.admin-shell .navbar-vertical .nav-link .nav-link-icon .icon {
  width: 16px;
  height: 16px;
}

.admin-shell .navbar-vertical .nav-link.active {
  background: #ffffff;
  border-radius: 4px;
}

.admin-shell .nav-group > .nav-link.active {
  background: transparent;
}

.admin-shell .nav-group > .nav-link.active:hover,
.admin-shell .nav-group > .nav-link.active:focus {
  background: transparent;
}

.admin-shell .navbar-vertical .nav-link.active .nav-link-icon svg,
.admin-shell .navbar-vertical .nav-link.active .nav-link-icon .icon {
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.admin-shell .navbar-vertical .nav-link-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-shell #sidebar-menu {
  padding-left: 16px;
  padding-right: 16px;
}

.admin-shell #nav-items {
  width: 100%;
}

.admin-shell .nav-group > .nav {
  margin-left: var(--md-space-4);
  padding-left: var(--md-space-2);
  border-left: none;
}

.admin-shell .admin-header {
  height: 56px;
  background: transparent;
  border-bottom: none;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 5;
  grid-column: 1 / span 2;
  grid-row: 1;
}

.admin-shell .admin-header .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--md-space-5);
  height: 100%;
}

.admin-shell .admin-header .navbar-nav {
  padding: 0;
  gap: var(--md-space-2);
  align-items: center;
}

.admin-shell .admin-header .order-md-last {
  padding: 0;
}

.admin-shell .admin-body {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--md-scrollbar-thumb) var(--md-scrollbar-track);
}

.admin-shell .admin-body::-webkit-scrollbar {
  width: var(--md-scrollbar-size);
}

.admin-shell .admin-body::-webkit-scrollbar-track {
  background: var(--md-scrollbar-track);
}

.admin-shell .admin-body::-webkit-scrollbar-thumb {
  background: var(--md-scrollbar-thumb);
  border-radius: 999px;
}

body[data-brand-shell="dark"] {
  background-color: #f4f6fb;
}

body[data-brand-shell="dark"] .admin-shell .navbar-vertical {
  background: var(--brand-shell-chrome-bg);
}

body[data-brand-shell="dark"] .admin-shell .admin-sidebar-head {
  height: 56px;
  min-height: 56px;
  width: 244px;
  min-width: 244px;
  flex: 0 0 244px;
  background: transparent;
}

body[data-brand-shell="dark"] .admin-shell .admin-header {
  background: transparent;
  box-shadow: none;
}

body[data-brand-shell="dark"] .admin-shell .admin-header .container-fluid {
  padding-left: 0;
}

body[data-brand-shell="dark"] .admin-shell .admin-header .navbar-brand {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--md-space-3);
  padding: 0 var(--md-space-5);
  background: var(--brand-shell-chrome-bg);
}

body[data-brand-shell="dark"] .admin-shell #site-logo {
  margin: 0 auto;
}

body[data-brand-shell="dark"] .admin-shell .navbar-vertical {
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

body[data-brand-shell="dark"] .admin-shell .navbar-brand-text,
body[data-brand-shell="dark"] .admin-shell .navbar-brand-subtitle {
  color: rgba(255, 255, 255, 0.72);
}

body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link .nav-link-icon,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link-title,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-group .nav-group-toggle,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .navbar-nav > .nav-item > .nav-link,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .navbar-nav .nav .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
}

body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link:hover,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link:focus {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link:hover .nav-link-title,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link:focus .nav-link-title,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link:hover .nav-link-icon,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link:focus .nav-link-icon,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link:hover .nav-group-toggle,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link:focus .nav-group-toggle {
  color: #ffffff !important;
}

body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link.active {
  background: rgba(var(--tblr-primary-rgb), 1) !important;
  border-radius: 4px;
}

body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link.active .nav-link-title,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link.active .nav-link-icon,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link.active .nav-group-toggle {
  color: #ffffff !important;
}

body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link .nav-link-title,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link .nav-link-icon,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link .nav-group-toggle,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link .nav-link-icon svg,
body[data-brand-shell="dark"] .admin-shell .navbar-vertical .nav-link .nav-link-icon .icon {
  background: transparent !important;
  box-shadow: none !important;
}

body[data-brand-shell="dark"] .admin-shell .nav-group > .nav-link.active,
body[data-brand-shell="dark"] .admin-shell .nav-group > .nav-link.active:hover,
body[data-brand-shell="dark"] .admin-shell .nav-group > .nav-link.active:focus {
  background: transparent !important;
}

body[data-brand-shell="dark"] .admin-shell .nav-group > .nav-link.active .nav-link-title,
body[data-brand-shell="dark"] .admin-shell .nav-group > .nav-link.active .nav-link-icon,
body[data-brand-shell="dark"] .admin-shell .nav-group > .nav-link.active .nav-group-toggle {
  background: transparent !important;
  color: #ffffff !important;
}

body[data-brand-shell="dark"] .admin-shell .admin-header .nav-link {
  color: var(--md-text-regular);
}

body[data-brand-shell="dark"] .admin-shell .admin-header .nav-link:hover,
body[data-brand-shell="dark"] .admin-shell .admin-header .nav-link:focus {
  color: var(--md-brand-primary);
}

body[data-brand-shell="dark"] .admin-shell .admin-header #notification-toggle,
body[data-brand-shell="dark"] .admin-shell .admin-header #user-menu-toggle,
body[data-brand-shell="dark"] .admin-shell .admin-header #logout-btn {
  border-radius: 8px;
}

body[data-brand-shell="dark"] .admin-shell .admin-header #notification-toggle:hover,
body[data-brand-shell="dark"] .admin-shell .admin-header #notification-toggle:focus,
body[data-brand-shell="dark"] .admin-shell .admin-header #user-menu-toggle:hover,
body[data-brand-shell="dark"] .admin-shell .admin-header #user-menu-toggle:focus,
body[data-brand-shell="dark"] .admin-shell .admin-header #logout-btn:hover,
body[data-brand-shell="dark"] .admin-shell .admin-header #logout-btn:focus {
  background: rgba(var(--tblr-primary-rgb), 0.08);
}

body[data-brand-shell="dark"] .admin-page-head {
  padding-left: 16px;
  /* padding-top: 16px; */
}

body[data-brand-shell="dark"] .admin-card {
  margin-left: 16px;
}

.admin-breadcrumbs {
  font-size: 14px;
  color: #86909c;
}

.admin-breadcrumbs span {
  color: #86909c;
}

.admin-breadcrumbs a {
  color: #86909c;
  text-decoration: none;
}

.admin-breadcrumbs a:hover {
  color: var(--md-brand-primary);
}

.admin-breadcrumbs .is-current {
  color: var(--md-text-regular);
  font-weight: 600;
  pointer-events: none;
}

.employee-empno {
  display: block;
  font-size: 12px;
  color: var(--md-text-secondary);
  line-height: 1.4;
}

.employee-empno-link {
  color: var(--md-text-secondary);
  text-decoration: none;
}

.employee-empno-link:hover {
  color: var(--md-text-regular);
  text-decoration: underline;
}

.employee-name-cell {
  min-width: 0;
}

.employee-name-text {
  color: var(--md-text-primary);
  font-weight: 600;
}

.employee-name-secondary {
  font-size: 12px;
  color: var(--md-text-secondary);
  line-height: 1.4;
}

.employee-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.employee-photo-item {
  position: relative;
  border: 1px solid var(--md-border-subtle);
  border-radius: 8px;
  background: var(--md-fill-surface);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.employee-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.employee-photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  border: none;
  background: rgba(19, 18, 26, 0.65);
  color: var(--md-text-on-dark);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease, background 0.12s ease;
}

.employee-photo-item:hover .employee-photo-remove,
.employee-photo-item:focus-within .employee-photo-remove {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.employee-photo-remove:hover {
  background: rgba(19, 18, 26, 0.8);
}

@media (hover: none), (pointer: coarse) {
  .employee-photo-remove {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
}

.employee-avatar {
  background-color: #E4E4EB;
  color: var(--md-text-primary);
}

.admin-table-wrap {
  max-height: calc(100vh - 360px);
  overflow: auto;
  border-radius: 8px;
}

.admin-table-wrap .table {
  margin: 0;
}

.admin-table-wrap table th.text-end:last-child,
.admin-table-wrap table td.text-end:last-child {
  box-shadow: -12px 0 12px -12px rgba(15, 23, 42, 0.25);
}

.admin-shell .admin-body .container-fluid {
  padding: 0 16px 0px 0;
  max-width: none;
  width: 100%;
  margin: 0;
}

.admin-content {
  color: var(--md-text-regular);
}

.admin-content .card {
  background: var(--md-fill-surface);
  border: none;
  border-radius: var(--md-radius-lg);
  box-shadow: none;
}

.admin-content .card-header {
  display: flex;
  align-items: center;
  gap: var(--md-space-4);
  padding: var(--md-space-4) var(--md-space-5);
  border-bottom: 1px solid var(--md-border-subtle);
  background: var(--md-fill-surface);
}

.admin-content .card-body {
  padding: var(--md-space-5);
}

.admin-card {
  background: var(--md-fill-surface);
  border: none;
  border-radius: 8px;
  box-shadow: none;
}

.admin-card .card-header {
  padding: var(--md-space-1) var(--md-space-5) 0;
  border-bottom: none;
  background: transparent;
}

.admin-card .card-header.has-tabs,
.admin-card .card-header:has(.admin-tabs) {
  border-bottom: 1px solid var(--md-border-subtle);
}

.admin-card .card-body {
  padding: 16px;
}

.admin-content .card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--md-text-primary);
}

.admin-content .text-secondary,
.admin-content .text-muted {
  color: var(--md-text-secondary) !important;
}

.admin-content .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--md-space-2);
  padding: var(--md-space-2) var(--md-space-4);
  border-radius: var(--md-radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--md-text-regular);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-content .btn-primary {
  background: var(--md-brand-primary);
  color: var(--md-on-primary);
  border-color: var(--md-brand-primary);
}

.admin-content .btn-primary:hover,
.admin-content .btn-primary:focus {
  background: var(--md-brand-primary-hover);
  border-color: var(--md-brand-primary-hover);
}

.admin-content .btn-outline-secondary {
  border-color: var(--md-border-default);
  color: var(--md-text-regular);
  background: var(--md-fill-surface);
}

.admin-content .btn-outline-secondary:hover,
.admin-content .btn-outline-secondary:focus {
  border-color: var(--md-brand-outline);
  color: var(--md-brand-primary);
  background: var(--md-brand-hover-fill);
}

.admin-content .admin-page-head .btn:not(.btn-primary):not(.btn-outline-danger):not(.btn-danger):not(.btn-link) {
  border-color: var(--md-brand-primary);
  color: var(--md-brand-primary);
  background: transparent;
}

.admin-content .admin-page-head .btn:not(.btn-primary):not(.btn-outline-danger):not(.btn-danger):not(.btn-link):hover,
.admin-content .admin-page-head .btn:not(.btn-primary):not(.btn-outline-danger):not(.btn-danger):not(.btn-link):focus {
  border-color: var(--md-brand-primary);
  color: var(--md-brand-primary);
  background: var(--md-brand-hover-fill);
}

.admin-content .btn-outline-danger {
  border-color: rgba(239, 68, 68, 0.55);
  color: #b42318;
}

.admin-content .btn-link {
  padding: 0;
  border: none;
  color: var(--md-brand-primary);
}

.admin-content .form-label {
  font-weight: 600;
  color: var(--md-text-regular);
  margin-bottom: var(--md-space-2);
}

.admin-content .form-control,
.admin-content .form-select {
  border: 1px solid var(--md-border-default);
  border-radius: var(--md-radius-md);
  min-height: 32px;
  font-size: 14px;
  color: var(--md-text-primary);
  background-color: var(--md-fill-surface);
}

.admin-content .form-control {
  padding: 6px 12px;
}

.admin-content .form-select {
  padding: 6px 36px 6px 12px;
}

.admin-content .form-control:focus,
.admin-content .form-select:focus {
  border-color: var(--md-brand-outline);
  box-shadow: 0 0 0 2px var(--md-brand-focus-fill);
  outline: none;
}

.admin-content .table-responsive {
  border: none;
  border-radius: 4px;
  overflow: hidden;
  background: var(--md-fill-surface);
}

.admin-content .table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  color: var(--md-text-regular);
}

.admin-content .table thead th {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--md-text-secondary);
  padding: 16px;
  border-bottom: 1px solid var(--md-border-subtle);
  background: var(--md-fill-page);
  white-space: nowrap;
}

.admin-content .table tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--md-border-subtle);
  vertical-align: middle;
  white-space: nowrap;
}

.supplier-table th,
.supplier-table td {
  font-size: 14px;
}

.supplier-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: normal;
}

.supplier-contact-name {
  color: #13121A;
  font-size: 14px;
}

.supplier-contact-meta {
  color: #86909C;
  font-size: 14px;
}

.admin-content .table tbody tr:hover {
  background: var(--md-brand-hover-fill);
}

.admin-content .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: var(--md-radius-sm);
  background: var(--md-fill-hover);
  color: var(--md-text-regular);
}

.admin-content .alert {
  padding: var(--md-space-3) var(--md-space-4);
  border-radius: var(--md-radius-md);
  border: 1px solid var(--md-border-subtle);
  background: var(--md-fill-surface);
}

.admin-content .alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #92400e;
}

.admin-content .alert-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #991b1b;
}

.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.admin-page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--md-text-primary);
  margin: 0;
}

.admin-page-subtitle {
  margin-top: var(--md-space-2);
  color: var(--md-text-secondary);
  font-size: 12px;
}

.admin-breadcrumbs {
  margin-top: var(--md-space-2);
  font-size: 14px;
  color: #86909c;
}

.admin-tabs {
  display: flex;
  gap: var(--md-space-5);
  border-bottom: none;
}

.admin-tab {
  position: relative;
  padding: var(--md-space-3) 0;
  font-weight: 600;
  color: var(--md-text-secondary);
  cursor: pointer;
  background: transparent;
  border: 0;
  font: inherit;
}

.admin-tab.is-active,
.admin-tab.active {
  color: var(--md-brand-primary);
}

.admin-tab.is-active::after,
.admin-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--md-brand-primary);
  border-radius: 2px;
}

.schedule-type-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-type-section {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.schedule-type-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-type-section .schedule-type-options {
  margin-top: 10px;
}

.schedule-type-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-type-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-type-option input {
  margin-top: 3px;
  accent-color: var(--md-brand-primary);
}

.schedule-type-option:hover {
  border-color: #cbd5f5;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.schedule-type-card {
  flex: 1;
}

.schedule-type-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.schedule-type-desc {
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
}

.schedule-type-option input:checked + .schedule-type-card .schedule-type-title {
  color: var(--md-brand-primary);
}

.spec-layout {
  display: flex;
  gap: 16px;
  min-height: 0;
  height: 100%;
}

.spec-category-panel {
  width: 292px;
  min-width: 292px;
  max-width: 292px;
  flex: 0 0 292px;
  background: #ffffff;
  border-right: 1px solid var(--md-border-subtle);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.spec-category-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 16px 0;
}

.spec-category-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 10px 10px 10px 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.spec-category-list{
  width: 100%;
}

.spec-category-list[data-has-selection="true"] .spec-category-item {
  width: 100%
}

.spec-category-list[data-has-selection="true"] .spec-category-item.is-active {
  width: 100%;
}

.spec-category-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  border-radius: 4px;
}

.spec-category-item.is-active {
  background: #f2f4ff;
}

.spec-category-item.is-active::before {
  background: #264aff;
}

.spec-category-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: #D9D9D9;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spec-category-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-category-name {
  color: #13121a;
  font-size: 14px;
  font-weight: 700;
}


.spec-category-footer {
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-top: 1px solid var(--md-border-subtle);
  background: #ffffff;
}

.spec-category-add {
  border: 0;
  background: transparent;
  color: #264aff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.spec-table-panel {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-right: 16px;
  padding-bottom: 16px;
  height: 100%;
}

.spec-type-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #86909C;
  cursor: help;
}

.spec-type-info svg {
  width: 14px;
  height: 14px;
  display: block;
}

.finance-detail-header-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  border: 1px solid #9aa4b2;
  border-radius: 50%;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: super;
  cursor: help;
}

.spec-table-panel .admin-toolbar {
  padding-top: 16px;
  border-bottom: none;
}

#procurement-master-data-page[data-active-tab="specification"] .card-body {
  padding: 0;
}

#procurement-master-data-page[data-active-tab="specification"] .tab-pane[data-tab-panel="specification"] {
  height: 100%;
}

.employee-form-tabs {
  display: flex;
  gap: var(--md-space-5);
  border-bottom: 1px solid var(--md-border-subtle);
  padding: 0;
  margin: 0;
  list-style: none;
}

.employee-form-tabs .nav-link {
  border: 0;
  background: transparent;
  color: var(--md-text-secondary);
  font-weight: 600;
  padding: var(--md-space-3) 0;
  margin: 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.employee-form-tabs .nav-link:hover,
.employee-form-tabs .nav-link:focus {
  color: var(--md-brand-primary);
}

.employee-form-tabs .nav-link.active {
  color: var(--md-brand-primary);
  border-bottom-color: var(--md-brand-primary);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: var(--md-space-4);
  flex-wrap: wrap;
  margin: 0 0 var(--md-space-5);
}

.page-section.is-admin-list .admin-toolbar {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #E5E6EB;
}

.admin-toolbar .admin-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 360px;
}

.admin-toolbar .admin-search input {
  width: 100%;
}

.admin-toolbar .admin-search.admin-search-inline {
  display: flex;
  align-items: center;
  gap: var(--md-space-3);
  flex-wrap: nowrap;
}

.admin-toolbar .admin-search.admin-search-inline .form-control {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.admin-toolbar .admin-search.admin-filter-grid {
  display: grid;
  flex: 1 1 100%;
  max-width: none;
}

.page-section.is-admin-list .admin-toolbar .admin-filters,
.page-section.is-admin-list .admin-toolbar .admin-search {
  width: 100%;
  max-width: none;
  flex: 1 1 100%;
}

.admin-content .admin-toolbar input::placeholder,
.admin-content .admin-toolbar .form-control::placeholder {
  color: var(--md-text-disabled);
}

.reimbursement-payment-selection-bar {
  min-height: 64px;
}

.reimbursement-payment-selection-bar.is-empty {
  color: var(--md-text-secondary);
}

.reimbursement-payment-selection-bar.is-empty [data-action="clear-payment-selection"],
.reimbursement-payment-selection-bar.is-empty [data-action="mark-payment-paid"] {
  visibility: hidden;
}

#procurement-products-page .procurement-product-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(180px, 1fr)) repeat(2, minmax(150px, .75fr)) auto;
  width: 100%;
  max-width: none;
  align-items: center;
}

#procurement-products-page .procurement-product-filters > * {
  min-width: 0;
}

#procurement-products-page .procurement-product-filters .employee-multi-filter__button {
  border: 1px solid var(--md-border-default);
  border-radius: var(--md-radius-sm);
  padding: 0 var(--md-space-4);
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  box-shadow: none;
  outline: none;
}

#procurement-products-page .procurement-product-filters .employee-multi-filter__button:focus {
  border-color: var(--md-brand-outline);
  box-shadow: 0 0 0 3px var(--md-brand-focus-ring);
}

#procurement-products-page .procurement-product-filters .standard-date-filter {
  margin: 0;
}

#procurement-products-page #procurement-product-table {
  min-width: 2400px;
}

@media (max-width: 1400px) {
  #procurement-products-page .procurement-product-filters {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(180px, 1fr)) repeat(2, minmax(150px, .8fr));
  }

  #procurement-products-page .procurement-product-filters [data-action="reset-filters"] {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  #procurement-products-page .procurement-product-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #procurement-products-page .procurement-product-filters {
    grid-template-columns: 1fr;
  }
}

.admin-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--md-space-3);
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--md-space-3);
  margin-top: var(--md-space-4);
}

.md-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md-space-4);
  width: 100%;
  flex-wrap: wrap;
}

.md-pagination__summary {
  color: var(--md-text-secondary);
  font-size: 12px;
}

.md-pagination__controls {
  display: flex;
  align-items: center;
  gap: var(--md-space-3);
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.md-pagination__size {
  display: inline-flex;
  align-items: center;
  gap: var(--md-space-2);
}

.md-pagination__label {
  color: var(--md-text-secondary);
  font-size: 12px;
}

.md-pagination__pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.md-pagination__pages .md-page-btn {
  border-radius: 2px;
  cursor: pointer;
}

.md-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--md-border-subtle);
  background: var(--md-fill-surface);
  color: var(--md-text-regular);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.md-page-btn:hover:not(:disabled) {
  border-color: var(--md-brand-outline);
  color: var(--md-brand-primary);
  background: var(--md-brand-hover-fill);
}

.md-page-btn.is-active {
  border-color: var(--md-brand-primary);
  background: var(--md-brand-primary);
  color: var(--md-on-primary);
}

.md-page-btn:disabled {
  color: var(--md-text-disabled);
  border-color: var(--md-border-subtle);
  background: var(--md-fill-hover);
  cursor: not-allowed;
}

.md-page-btn--nav {
  padding: 0;
  width: 32px;
}

.md-page-ellipsis {
  min-width: 20px;
  text-align: center;
  color: var(--md-text-secondary);
  font-size: 12px;
}

.md-pagination__total {
  color: var(--md-text-secondary);
  font-size: 12px;
}

.admin-filters {
  display: flex;
  align-items: center;
  gap: var(--md-space-3);
  flex-wrap: wrap;
}

.admin-filters.admin-filter-grid,
.admin-search.admin-filter-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: var(--md-space-3) !important;
  justify-items: stretch;
}

.admin-filters.admin-filter-grid > *,
.admin-search.admin-filter-grid > * {
  min-width: 0;
}

.admin-filters.admin-filter-grid .form-control,
.admin-filters.admin-filter-grid .form-select,
.admin-search.admin-filter-grid .form-control,
.admin-search.admin-filter-grid .form-select {
  min-width: 0;
  width: 100%;
}

.admin-filters.admin-filter-grid [data-filter-role="field"],
.admin-search.admin-filter-grid [data-filter-role="field"] {
  width: 100%;
}

.admin-filters.admin-filter-grid [data-filter-role="action"],
.admin-search.admin-filter-grid [data-filter-role="action"] {
  justify-self: start;
  width: auto;
}

.admin-filter-actions {
  display: flex;
  align-items: center;
  gap: var(--md-space-2);
  flex-wrap: nowrap;
}

.filter-reset-action,
.filter-toggle-action,
.admin-content .filter-reset-action,
.admin-content .filter-toggle-action {
  display: inline-flex;
  align-items: center;
  gap: var(--md-space-1);
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 600;
  color: var(--md-text-secondary);
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
}

.admin-filter-actions .filter-reset-action,
.admin-filter-actions .filter-toggle-action,
.admin-content .admin-filter-actions .filter-reset-action,
.admin-content .admin-filter-actions .filter-toggle-action {
  min-width: 0;
  min-height: 0;
  height: auto;
}

.filter-reset-action:hover,
.filter-reset-action:focus,
.filter-toggle-action:hover,
.filter-toggle-action:focus,
.admin-content .filter-reset-action:hover,
.admin-content .filter-reset-action:focus,
.admin-content .filter-toggle-action:hover,
.admin-content .filter-toggle-action:focus {
  color: var(--md-brand-primary);
  background: transparent;
  text-decoration: none;
}

.admin-filters.admin-filter-grid .admin-filter-toggle,
.admin-search.admin-filter-grid .admin-filter-toggle {
  width: 120px;
  max-width: 100%;
  white-space: nowrap;
}

.admin-filters.admin-filter-grid .admin-filter-toggle.filter-toggle-action,
.admin-search.admin-filter-grid .admin-filter-toggle.filter-toggle-action {
  width: auto;
}

.admin-filters.admin-filter-collapsible[data-filter-collapsed="true"] [data-filter-role="field"]:not([data-filter-index="0"]):not([data-filter-index="1"]):not([data-filter-index="2"]),
.admin-search.admin-filter-collapsible[data-filter-collapsed="true"] [data-filter-role="field"]:not([data-filter-index="0"]):not([data-filter-index="1"]):not([data-filter-index="2"]) {
  display: none;
}

.admin-filters .form-label {
  display: none;
}

.admin-toolbar .form-control,
.admin-toolbar .form-select,
.admin-toolbar input[type="date"],
.admin-toolbar input[type="month"],
.admin-toolbar input[type="time"],
.admin-toolbar input[type="datetime-local"] {
  height: 32px;
  min-height: 32px;
  padding: 4px 8px;
}

.admin-toolbar .btn {
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  line-height: 30px;
  font-weight: 400;
}

.employee-regularization-page .regularization-records-modal {
  width: min(1760px, calc(100vw - 96px));
  max-width: none;
}

.employee-regularization-page .regularization-records-modal .modal-content {
  min-height: min(760px, calc(100vh - 96px));
}

.employee-regularization-page .regularization-records-modal .modal-body {
  padding: 32px;
}

.employee-regularization-page .regularization-records-modal .admin-filter-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.employee-regularization-page .regularization-records-modal .table-responsive {
  min-height: 220px;
}

.employee-regularization-page .admin-page-head {
  margin-bottom: 28px;
}

.employee-regularization-page .admin-page-head .page-title {
  color: #18233d;
  font-size: 24px;
  font-weight: 800;
}

.employee-regularization-page .admin-page-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
}

.employee-regularization-page .admin-page-actions .mdi {
  font-size: 18px;
  line-height: 1;
}

.employee-regularization-page .regularization-summary-card,
.employee-regularization-page > .admin-card,
.employee-regularization-page [data-role="dashboard-panel"] > .card {
  border: 1px solid rgba(224, 229, 240, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(31, 42, 68, 0.07);
}

.employee-regularization-page .regularization-summary-card .card-body {
  padding: 18px 24px 20px;
}

.employee-regularization-page .regularization-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.employee-regularization-page .regularization-summary-title {
  color: #1d2943;
  font-size: 16px;
  font-weight: 800;
}

.employee-regularization-page .regularization-summary-label {
  color: #2d3954;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.employee-regularization-page .regularization-overview__item {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 132px;
  padding: 18px 12px 16px;
  border: 1px solid rgba(226, 232, 244, 0.95);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), var(--regularization-card-tint, rgba(98, 70, 234, 0.04)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.employee-regularization-page .regularization-overview__item--total {
  --regularization-card-tint: rgba(98, 70, 234, 0.07);
  --regularization-overview-color: #6246ea;
  --regularization-overview-soft: rgba(98, 70, 234, 0.16);
}

.employee-regularization-page .regularization-overview__item--three {
  --regularization-card-tint: rgba(37, 99, 235, 0.06);
  --regularization-overview-color: #2563eb;
  --regularization-overview-soft: rgba(37, 99, 235, 0.16);
}

.employee-regularization-page .regularization-overview__item--month {
  --regularization-card-tint: rgba(183, 121, 31, 0.08);
  --regularization-overview-color: #d97706;
  --regularization-overview-soft: rgba(217, 119, 6, 0.18);
}

.employee-regularization-page .regularization-overview__item--today {
  --regularization-card-tint: rgba(15, 143, 112, 0.07);
  --regularization-overview-color: #0f8f70;
  --regularization-overview-soft: rgba(15, 143, 112, 0.16);
}

.employee-regularization-page .regularization-overview__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--regularization-overview-soft, rgba(var(--bs-primary-rgb), 0.14));
  color: var(--regularization-overview-color, var(--bs-primary));
  font-size: 24px;
  box-shadow: 0 8px 18px var(--regularization-overview-soft, rgba(var(--bs-primary-rgb), 0.14));
}

.employee-regularization-page .regularization-overview__value {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--regularization-overview-color, var(--bs-primary));
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.employee-regularization-page .regularization-overview__value--total {
  --regularization-overview-color: #6246ea;
}

.employee-regularization-page .regularization-overview__value--three {
  --regularization-overview-color: #2563eb;
}

.employee-regularization-page .regularization-overview__value--month {
  --regularization-overview-color: #d97706;
}

.employee-regularization-page .regularization-overview__value--today {
  --regularization-overview-color: #0f8f70;
}

.employee-regularization-page .regularization-overview__value:hover {
  color: var(--regularization-overview-color, var(--bs-primary));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.employee-regularization-page .regularization-overview__value:focus-visible {
  outline: 3px solid rgba(var(--bs-primary-rgb), 0.18);
  outline-offset: 3px;
  border-radius: 4px;
}

.employee-regularization-page .regularization-department-rank__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  max-height: 126px;
  overflow-y: auto;
  padding-right: 4px;
}

.employee-regularization-page .regularization-department-rank__item {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid rgba(226, 232, 244, 0.95);
  border-radius: 6px;
  background: linear-gradient(145deg, #fff, rgba(248, 250, 255, 0.95));
  color: #1f2a44;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(31, 42, 68, 0.035);
}

.employee-regularization-page .regularization-department-rank__item:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.28);
  background: rgba(var(--bs-primary-rgb), 0.04);
  color: var(--bs-primary);
}

.employee-regularization-page .regularization-department-rank__item:hover .text-truncate {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.employee-regularization-page .regularization-department-rank__item:focus-visible {
  outline: 3px solid rgba(var(--bs-primary-rgb), 0.18);
  outline-offset: 2px;
}

.employee-regularization-page .regularization-department-rank__count {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(var(--bs-primary-rgb), 0.10);
  color: var(--bs-primary);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.employee-regularization-page .admin-toolbar .form-control,
.employee-regularization-page .admin-toolbar .form-select,
.employee-regularization-page .admin-toolbar input[type="date"] {
  min-height: 38px;
  border-radius: 6px;
}

.employee-regularization-page .admin-toolbar .btn {
  min-height: 38px;
  border-radius: 6px;
}

.employee-regularization-page [data-role="dashboard-panel"] .table thead th {
  color: #1f2a44;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .employee-regularization-page .regularization-overview,
  .employee-regularization-page .regularization-department-rank__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-regularization-page .regularization-records-modal {
    width: calc(100vw - 32px);
  }

  .employee-regularization-page .regularization-records-modal .admin-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .employee-regularization-page .regularization-records-modal {
    width: calc(100vw - 16px);
    margin: 8px auto;
  }

  .employee-regularization-page .regularization-records-modal .modal-body {
    padding: 20px;
  }

  .employee-regularization-page .regularization-records-modal .admin-filter-grid {
    grid-template-columns: 1fr;
  }

  .employee-regularization-page .regularization-overview,
  .employee-regularization-page .regularization-department-rank__list {
    grid-template-columns: 1fr;
  }
}

.admin-content .admin-filters .btn[type="submit"],
.admin-content form[id$="filter-form"] .btn[type="submit"],
.admin-content .admin-toolbar .btn[type="submit"],
.admin-content .admin-toolbar .btn[data-action^="search-"],
.admin-content .admin-toolbar .btn[data-action="apply-filters"],
.admin-content .admin-toolbar .btn[id$="-apply"],
.admin-content .salary-record-filters .btn[type="submit"],
.admin-content [data-action="search-employee-summary"],
.admin-content [data-action="load-report"],
.admin-content [data-action="reload-approvers"],
#travel-stats-apply {
  display: none;
}

.admin-content form[id$="filter-form"] .btn,
.admin-content .salary-record-filters .btn,
.admin-page-head .btn[id*="filter"],
.admin-page-head .btn[id*="search"],
.admin-page-head .btn[id*="apply"],
.admin-page-head .btn[id*="reset"],
.admin-page-head .btn[data-action*="filter"],
.admin-page-head .btn[data-action*="search"],
.admin-page-head .btn[data-action*="reset"],
.admin-content .btn[data-action^="search"],
.admin-content .btn[data-action^="filter"],
.admin-content .btn[id*="search"],
.admin-content .btn[id*="filter"],
.admin-content .btn[id*="reset"] {
  font-weight: 400;
}

.page-section.is-admin-list .admin-toolbar .form-control,
.page-section.is-admin-list .admin-toolbar .form-select,
.page-section.is-admin-list .admin-toolbar input[type="date"],
.page-section.is-admin-list .admin-toolbar input[type="month"],
.page-section.is-admin-list .admin-toolbar input[type="time"],
.page-section.is-admin-list .admin-toolbar input[type="datetime-local"] {
  height: 40px;
  min-height: 40px;
}

.page-section.is-admin-list .admin-toolbar .btn {
  height: 40px;
  min-height: 40px;
  line-height: 38px;
}

.page-section.is-admin-list .salary-record-filters .form-control,
.page-section.is-admin-list .salary-record-filters .form-select {
  height: 40px;
  min-height: 40px;
}

.page-section.is-admin-list .salary-record-filters .btn {
  height: 40px;
  min-height: 40px;
  line-height: 38px;
}

.page-section.is-admin-list .admin-filters [data-status-filter] [data-role="status-display"],
.page-section.is-admin-list .admin-filters [data-visa-filter] [data-role="status-display"] {
  height: 40px;
  min-height: 40px;
}

.admin-toolbar .admin-actions .btn.btn-primary::before {
  content: "+";
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
}

.admin-content .btn.btn-primary[data-action^="new"]::before,
.admin-content .btn.btn-primary[data-action^="create"]::before,
.admin-content .btn.btn-primary[id^="btn-create"]::before,
.admin-content .btn.btn-primary.btn-new::before {
  content: "+";
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
}

.admin-toolbar .btn[type="reset"],
.admin-toolbar .btn[data-action*="reset"],
.admin-toolbar .btn[id*="reset"],
.admin-content form[id$="filter-form"] .btn[type="reset"],
.admin-content form[id$="filter-form"] .btn[data-action*="reset"],
.admin-content form[id$="filter-form"] .btn[id*="reset"],
.admin-content .salary-record-filters .btn[type="reset"],
.admin-content .salary-record-filters .btn[data-action*="reset"],
.admin-content .salary-record-filters .btn[id*="reset"],
.admin-page-head .btn[data-action*="reset"],
.admin-page-head .btn[id*="reset"] {
  /* border: 1px solid var(--md-brand-primary);
  background: transparent;
  color: var(--md-brand-primary); */
  border: none;
  padding-left: 22px;
  position: relative;
}

.admin-toolbar .btn[type="reset"]::before,
.admin-toolbar .btn[data-action*="reset"]::before,
.admin-toolbar .btn[id*="reset"]::before,
.admin-content form[id$="filter-form"] .btn[type="reset"]::before,
.admin-content form[id$="filter-form"] .btn[data-action*="reset"]::before,
.admin-content form[id$="filter-form"] .btn[id*="reset"]::before,
.admin-content .salary-record-filters .btn[type="reset"]::before,
.admin-content .salary-record-filters .btn[data-action*="reset"]::before,
.admin-content .salary-record-filters .btn[id*="reset"]::before,
.admin-page-head .btn[data-action*="reset"]::before,
.admin-page-head .btn[id*="reset"]::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background-color: currentColor;
  -webkit-mask: no-repeat center / 12px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: no-repeat center / 12px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.admin-toolbar .btn[type="reset"]:hover,
.admin-toolbar .btn[data-action*="reset"]:hover,
.admin-toolbar .btn[id*="reset"]:hover,
.admin-content form[id$="filter-form"] .btn[type="reset"]:hover,
.admin-content form[id$="filter-form"] .btn[data-action*="reset"]:hover,
.admin-content form[id$="filter-form"] .btn[id*="reset"]:hover,
.admin-content .salary-record-filters .btn[type="reset"]:hover,
.admin-content .salary-record-filters .btn[data-action*="reset"]:hover,
.admin-content .salary-record-filters .btn[id*="reset"]:hover,
.admin-page-head .btn[data-action*="reset"]:hover,
.admin-page-head .btn[id*="reset"]:hover {
  color: var(--md-brand-primary);
}

.admin-toolbar .btn[type="reset"]:hover::before,
.admin-toolbar .btn[data-action*="reset"]:hover::before,
.admin-toolbar .btn[id*="reset"]:hover::before,
.admin-content form[id$="filter-form"] .btn[type="reset"]:hover::before,
.admin-content form[id$="filter-form"] .btn[data-action*="reset"]:hover::before,
.admin-content form[id$="filter-form"] .btn[id*="reset"]:hover::before,
.admin-content .salary-record-filters .btn[type="reset"]:hover::before,
.admin-content .salary-record-filters .btn[data-action*="reset"]:hover::before,
.admin-content .salary-record-filters .btn[id*="reset"]:hover::before,
.admin-page-head .btn[data-action*="reset"]:hover::before,
.admin-page-head .btn[id*="reset"]:hover::before {
  background-color: currentColor;
}

.admin-filters [data-status-filter] [data-role="status-display"],
.admin-filters [data-visa-filter] [data-role="status-display"] {
  height: 32px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-filters [data-status-filter] [data-role="status-dropdown"],
.admin-filters [data-visa-filter] [data-role="status-dropdown"] {
  border: 1px solid var(--md-border-subtle);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  padding: 6px;
  max-height: 240px;
  overflow: auto;
}

.admin-filters [data-status-filter] [data-role="status-dropdown"] .dropdown-item,
.admin-filters [data-visa-filter] [data-role="status-dropdown"] .dropdown-item {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  border: none;
  box-shadow: none;
}

.admin-filters [data-status-filter] [data-role="status-dropdown"] .dropdown-item.active,
.admin-filters [data-visa-filter] [data-role="status-dropdown"] .dropdown-item.active {
  background: var(--md-brand-selected-fill);
  color: var(--md-brand-primary);
}

.admin-filters [data-status-filter] [data-role="status-tags"] .badge,
.admin-filters [data-visa-filter] [data-role="status-tags"] .badge {
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-filters [data-status-filter] [data-role="status-tags"],
.admin-filters [data-visa-filter] [data-role="status-tags"] {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
}

.admin-filters [data-status-filter] [data-role="status-text"],
.admin-filters [data-visa-filter] [data-role="status-text"] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-toolbar .admin-filters {
  align-items: flex-end;
}

.page-section.is-admin-list .admin-toolbar .admin-filters {
  align-items: center;
}

.admin-toolbar .admin-filters > [class*="col-"] {
  flex: 0 0 auto;
  width: auto;
  min-width: 180px;
}

.admin-filters.admin-filter-grid > [class*="col-"],
.admin-search.admin-filter-grid > [class*="col-"] {
  min-width: 0;
  width: auto;
}

.admin-toolbar .admin-filters > .col-auto {
  min-width: 0;
}

.admin-toolbar .admin-filters .form-control,
.admin-toolbar .admin-filters .form-select {
  min-width: 160px;
}

.admin-filters .form-label {
  margin-bottom: 0;
  color: var(--md-text-secondary);
  font-size: 12px;
}

@media (max-width: 1200px) {
  .admin-filters.admin-filter-grid,
  .admin-search.admin-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-filters.admin-filter-grid,
  .admin-search.admin-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .admin-shell .navbar-vertical {
    width: 244px;
  }
}

@media (max-width: 768px) {
  .admin-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 56px auto 1fr;
  }

  .admin-shell .navbar-vertical {
    width: 100%;
    min-height: auto;
    border-right: 0;
    border-bottom: none;
    grid-column: 1;
    grid-row: 2;
  }

  .admin-shell .admin-header {
    grid-column: 1;
    grid-row: 1;
  }

  .admin-shell .admin-body {
    grid-column: 1;
    grid-row: 3;
  }

  .admin-shell .admin-body .container-fluid {
    padding: 0 16px 16px 0;
  }

  .admin-page-head {
    flex-direction: column;
    gap: var(--md-space-3);
  }
}

/* Base layout + utilities (Tabler replacement) */
.page {
  min-height: 100vh;
}

.page-body {
  min-height: 0;
}

.page-section {
  padding: 0;
}

#content-area.is-admin-list {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.page-section.is-admin-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: calc(100% - 16px);
}

.page-section.is-admin-list .admin-page-head {
  align-items: center;
}

.page-section.is-admin-list .admin-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-section.is-admin-list .admin-card > .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-section.is-admin-list .admin-card > .card-body > .salary-records {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-section.is-admin-list .admin-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.page-section.is-admin-list .admin-pagination {
  /* margin-top: auto; */
  width: 100%;
  justify-content: flex-end;
}

.container-fluid {
  width: 100%;
  margin: 0 auto;
}

.container-xl {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.row {
  --gutter: 16px;
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--gutter) / -2);
  margin-right: calc(var(--gutter) / -2);
}

.row > * {
  padding-left: calc(var(--gutter) / 2);
  padding-right: calc(var(--gutter) / 2);
  width: 100%;
}

.g-2 { --gutter: 8px; }
.g-3 { --gutter: 16px; }
.g-4 { --gutter: 24px; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-5 { flex: 0 0 auto; width: 41.6667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.3333%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.3333%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 768px) {
  .col-md-1 { flex: 0 0 auto; width: 8.3333%; }
  .col-md-2 { flex: 0 0 auto; width: 16.6667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.3333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-8 { flex: 0 0 auto; width: 66.6667%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
  .order-md-last { order: 6; }
  .d-md-none { display: none !important; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.3333%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.6667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
  .d-lg-inline-block { display: inline-block !important; }
  .align-items-lg-center { align-items: center !important; }
  .flex-lg-row { flex-direction: row !important; }
  .pt-lg-3 { padding-top: 12px !important; }
}

@media (min-width: 1200px) {
  .col-xl-4 { flex: 0 0 auto; width: 33.3333%; }
  .col-xl-5 { flex: 0 0 auto; width: 41.6667%; }
  .col-xl-7 { flex: 0 0 auto; width: 58.3333%; }
  .col-xl-8 { flex: 0 0 auto; width: 66.6667%; }
}

.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-inline-flex { display: inline-flex !important; }
.d-none { display: none !important; }

.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-fill { flex: 1 1 auto !important; }

.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-start { align-items: flex-start !important; }
.align-middle { vertical-align: middle !important; }

.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-start { text-align: left !important; }
.text-nowrap { white-space: nowrap !important; }
.text-truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.text-uppercase { text-transform: uppercase !important; }
.text-decoration-underline { text-decoration: underline !important; }

.text-primary { color: var(--md-brand-primary) !important; }
.text-secondary { color: var(--md-text-secondary) !important; }
.text-muted { color: var(--md-text-secondary) !important; }
.text-success { color: #16a34a !important; }
.text-warning { color: #b45309 !important; }
.text-danger { color: #b42318 !important; }
.text-dark { color: var(--md-text-primary) !important; }
.text-white { color: #ffffff !important; }

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.font-weight-bold { font-weight: 700 !important; }
.small { font-size: 12px !important; }
.fs-2 { font-size: 24px !important; }
.font-monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-auto { margin-top: auto !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-5 { margin-bottom: 24px !important; }
.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: 4px !important; }
.ms-2 { margin-left: 8px !important; }
.ms-3 { margin-left: 12px !important; }
.ms-4 { margin-left: 16px !important; }
.ms-auto { margin-left: auto !important; }
.me-1 { margin-right: 4px !important; }
.me-2 { margin-right: 8px !important; }
.me-3 { margin-right: 12px !important; }
.m-auto { margin: auto !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-3 { padding-left: 12px !important; padding-right: 12px !important; }
.px-4 { padding-left: 16px !important; padding-right: 16px !important; }
.py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-5 { padding-top: 24px !important; padding-bottom: 24px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-3 { padding-top: 12px !important; }
.pb-3 { padding-bottom: 12px !important; }

.w-100 { width: 100% !important; }
.w-25 { width: 25% !important; }
.w-auto { width: auto !important; }
.h-100 { height: 100% !important; }

.border { border: 1px solid var(--md-border-subtle) !important; }
.border-0 { border: 0 !important; }
.border-bottom { border-bottom: 1px solid var(--md-border-subtle) !important; }
.border-top { border-top: 1px solid var(--md-border-subtle) !important; }
.rounded { border-radius: var(--md-radius-lg) !important; }
.shadow-sm { box-shadow: 0 8px 18px -12px rgba(19, 18, 26, 0.25) !important; }

.bg-primary { background: var(--md-brand-primary) !important; color: var(--md-on-primary) !important; }
.bg-secondary { background: #64748b !important; color: #ffffff !important; }
.bg-white { background: #ffffff !important; }
.bg-light { background: var(--md-fill-page) !important; }
.bg-transparent { background: transparent !important; }
.bg-danger { background: #ef4444 !important; color: #ffffff !important; }
.bg-success { background: #16a34a !important; color: #ffffff !important; }
.bg-warning-subtle { background: rgba(245, 158, 11, 0.12) !important; }
.bg-danger-subtle { background: rgba(239, 68, 68, 0.12) !important; }
.bg-success-subtle { background: rgba(34, 197, 94, 0.12) !important; }

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

.list-group {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-group-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--md-border-subtle);
  background: var(--md-fill-surface);
}

.list-group-flush .list-group-item {
  border-radius: 0;
}

.workflow-form-designer [data-role="fields"] .list-group-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--md-space-2);
}

.workflow-form-designer [data-role="fields"] .list-group-item > .d-flex.w-25 {
  width: 100% !important;
}

.workflow-form-designer.workflow-form-scroll {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 71px);
  min-height: 0;
  overflow: hidden;
}

.workflow-form-designer.workflow-form-scroll .admin-page-head {
  flex: 0 0 auto;
}

.workflow-form-designer.workflow-form-scroll > .row {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.workflow-form-designer .workflow-group-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--md-space-2);
  margin: 0;
}

.workflow-form-designer .workflow-group-row > [class*="col-"] {
  width: 100%;
  padding: 0;
  flex: none;
}

.workflow-application-page {
  --workflow-ink: #141a44;
  --workflow-muted: #586590;
  --workflow-line: #dfe6fb;
  --workflow-soft: #f7f9ff;
  --workflow-primary: #4b63d8;
}

.workflow-application-card {
  overflow: hidden;
  border: 1px solid #dbe4ff;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(52, 78, 155, .08);
}

.workflow-application-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 128px;
  padding: 34px 42px;
  border-bottom: 1px solid var(--workflow-line);
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.workflow-application-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 2px solid #d9e2ff;
  border-radius: 50%;
  color: #fff;
  background: #f8fbff;
}

.workflow-application-icon .mdi {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  background: #343434;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
  font-size: 28px;
}

.workflow-application-title-block h1 {
  margin: 0;
  color: #202a69;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.workflow-application-title-block p {
  margin: 10px 0 0;
  color: #314071;
  font-size: 18px;
}

.workflow-application-code {
  color: var(--workflow-primary);
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.workflow-application-body {
  padding: 26px 28px 30px;
}

.workflow-context-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--workflow-line);
  border-radius: 14px;
  background: #fff;
}

.workflow-context-field label,
.workflow-field-label,
.workflow-display-label {
  display: block;
  margin-bottom: 7px;
  color: var(--workflow-muted);
  font-size: 15px;
  font-weight: 500;
}

.workflow-context-note {
  color: var(--workflow-muted);
  font-size: 13px;
}

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

.workflow-form-grid-nested {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.workflow-field,
.workflow-display-field,
.workflow-mini-field {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--workflow-line);
  border-radius: 14px;
  background: #fff;
}

.workflow-field-full,
.workflow-display-field-wide,
.workflow-group-block,
.workflow-group-display {
  grid-column: 1 / -1;
}

.workflow-field .form-control,
.workflow-field .form-select,
.workflow-context-field .form-control {
  min-height: 44px;
  border-color: #e0e7fb;
  border-radius: 10px;
  color: var(--workflow-ink);
  font-weight: 650;
}

.workflow-field textarea.form-control {
  min-height: 92px;
}

.rich-text-editor {
  overflow: hidden;
  border: 1px solid #e0e7fb;
  border-radius: 10px;
  background: #fff;
}

.rich-text-editor:focus-within {
  border-color: #93a5f8;
  box-shadow: 0 0 0 3px rgba(75, 99, 216, .13);
}

.rich-text-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border-bottom: 1px solid #e0e7fb;
  background: #f8faff;
}

.rich-text-editor__toolbar button {
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3f4d6b;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.rich-text-editor__toolbar button:hover,
.rich-text-editor__toolbar button:focus-visible {
  background: #e8eefc;
  color: #244fc7;
  outline: none;
}

.rich-text-editor__separator {
  width: 1px;
  height: 20px;
  margin: 0 3px;
  background: #dbe3f2;
}

.rich-text-editor__content.form-control {
  min-height: 150px;
  max-height: 360px;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 400;
  line-height: 1.6;
}

.rich-text-editor__content:empty::before {
  color: #aeb8ca;
  content: attr(data-placeholder);
  pointer-events: none;
}

.rich-text-editor__content p,
.rich-text-editor__content ul,
.rich-text-editor__content ol,
.rich-text-editor__content blockquote {
  margin: 0 0 .65em;
}

.workflow-field .form-control:focus,
.workflow-field .form-select:focus,
.workflow-context-field .form-control:focus {
  border-color: #93a5f8;
  box-shadow: 0 0 0 3px rgba(75, 99, 216, .13);
}

.workflow-field-help {
  margin-top: 6px;
  color: var(--workflow-muted);
  font-size: 12px;
}

.workflow-file-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workflow-radio-group,
.workflow-cascader-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.workflow-radio-group .btn-check {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.workflow-radio-option {
  display: inline-flex;
  min-width: 96px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  background: #ffffff;
  color: #264aff;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.workflow-radio-option:hover {
  border-color: #7c8cff;
  background: #f4f6ff;
}

.workflow-radio-group .btn-check:focus-visible + .workflow-radio-option {
  box-shadow: 0 0 0 3px rgba(38, 74, 255, .18);
}

.workflow-radio-group .btn-check:checked + .workflow-radio-option,
.workflow-radio-option.is-selected {
  border-color: #c7d2fe;
  background: #e8eaff;
  color: #264aff;
}

.workflow-radio-group .btn-check:disabled + .workflow-radio-option {
  cursor: not-allowed;
  opacity: .72;
}

.workflow-cascader-control .form-select {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
}

.workflow-cascader-control {
  flex-wrap: nowrap;
}

.workflow-cascader-separator {
  flex: 0 0 auto;
  color: var(--workflow-muted);
}

.workflow-group-block,
.workflow-group-display,
.workflow-process-panel,
.workflow-cc-panel {
  margin-top: 18px;
  padding: 18px 20px 20px;
  border: 1px solid var(--workflow-line);
  border-radius: 16px;
  background: #fff;
}

.workflow-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.workflow-group-title,
.workflow-section-title {
  color: var(--workflow-ink);
  font-size: 22px;
  font-weight: 800;
}

.workflow-section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 18px;
  margin-right: 9px;
  border-radius: 5px;
  background: var(--workflow-primary);
  vertical-align: -2px;
}

.workflow-group-items {
  display: grid;
  gap: 14px;
}

.workflow-group-item,
.workflow-group-display-item {
  padding: 16px 18px;
  border: 1px solid var(--workflow-line);
  border-radius: 14px;
  background: #fcfdff;
}

.workflow-group-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.workflow-group-item-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--workflow-ink);
  font-size: 20px;
  font-weight: 800;
}

.workflow-group-item-title span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--workflow-primary);
  font-size: 16px;
}

.workflow-display-grid,
.workflow-group-display-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workflow-group-display-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  margin-top: 14px;
}

.workflow-display-value {
  color: var(--workflow-ink);
  font-size: 18px;
  font-weight: 800;
  word-break: break-word;
}

.workflow-instance-toolbar,
.workflow-application-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.workflow-instance-toolbar {
  margin-bottom: 18px;
}

.workflow-application-actions {
  margin-top: 22px;
}

.workflow-process-list {
  margin-top: 18px;
}

.workflow-process-step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 76px;
}

.workflow-process-rail {
  position: relative;
}

.workflow-process-avatar {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #c8d2ea;
  border-radius: 50%;
  color: #3c4764;
  background: #f7f8fc;
  font-weight: 800;
}

.workflow-process-avatar.is-done {
  border-color: #62bb62;
  color: #4aa84e;
  background: #f6fff6;
}

.workflow-process-check {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #fff;
  background: #69c76d;
  font-size: 11px;
}

.workflow-process-line {
  position: absolute;
  top: 42px;
  bottom: 0;
  left: 20px;
  width: 3px;
  background: #e4e8f3;
}

.workflow-process-step.is-last .workflow-process-line {
  display: none;
}

.workflow-process-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: #4caf50;
  font-size: 18px;
  font-weight: 700;
}

.workflow-process-title small {
  color: #a3a8b6;
  font-size: 14px;
  font-weight: 500;
}

.workflow-process-user {
  margin-top: 6px;
  color: #171b2f;
  font-size: 16px;
  font-weight: 500;
}

.workflow-process-comment {
  margin-top: 6px;
  color: var(--workflow-muted);
}

.workflow-cc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.workflow-cc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f5ff;
  color: var(--workflow-ink);
}

.workflow-cc-chip > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e5e9ff;
  color: #3741a7;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .workflow-application-hero,
  .workflow-application-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .workflow-context-panel,
  .workflow-form-grid,
  .workflow-display-grid,
  .workflow-group-display-grid,
  .workflow-form-grid-nested {
    grid-template-columns: 1fr;
  }

  .workflow-application-code {
    display: none;
  }
}

.reimbursement-detail-count {
  padding: 4px 10px;
  border-radius: 999px;
  color: #5d6782;
  background: #f1f3f8;
  font-size: 12px;
  font-weight: 700;
}

.reimbursement-detail-table-wrap {
  border: 1px solid #e2e7f3;
  border-radius: 12px;
}

.reimbursement-detail-table {
  min-width: 980px;
  font-size: 13px;
}

.reimbursement-detail-table thead th {
  padding: 12px 14px;
  border-bottom-color: #dde4f3;
  color: #5d6782;
  background: #f7f9fd;
  font-weight: 750;
  white-space: nowrap;
}

.reimbursement-detail-table tbody td {
  padding: 13px 14px;
  border-bottom-color: #eef1f7;
  color: #29324c;
  vertical-align: top;
}

.reimbursement-detail-description {
  min-width: 190px;
  white-space: normal;
}

.reimbursement-detail-attachments {
  min-width: 220px;
}

.reimbursement-detail-attachment-link {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.reimbursement-detail-attachment-link:last-child {
  margin-bottom: 0;
}

.reimbursement-detail-empty {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px dashed #d9deeb;
  border-radius: 12px;
  color: #788198;
  background: #fafbfc;
  text-align: center;
}

.reimbursement-invoice-summary {
  display: grid;
  gap: 3px;
  min-width: 210px;
  color: #344054;
  font-size: 12px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.reimbursement-invoice-summary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.reimbursement-invoice-summary__head strong {
  color: #17235f;
  white-space: nowrap;
}

.reimbursement-invoice-summary__numbers {
  max-width: 240px;
  overflow: hidden;
  color: #475467;
  text-overflow: ellipsis;
}

.reimbursement-invoice-summary__numbers span,
.reimbursement-invoice-summary__date {
  color: #8a94a6;
}

.reimbursement-saved-invoices {
  display: grid;
  gap: 12px;
  width: 100%;
  max-height: 420px;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e1e6f0;
  border-radius: 8px;
  background: #f7f7fa;
  scrollbar-color: rgba(0, 0, 0, .28) #f2f3f5;
  scrollbar-width: thin;
}

.reimbursement-saved-invoices:focus-visible {
  outline: 2px solid var(--portal-primary, #3155ff);
  outline-offset: 2px;
}

.reimbursement-saved-invoices__group {
  overflow: visible;
  border: 1px solid #e4e9f3;
  border-radius: 10px;
  background: #fff;
}

.reimbursement-saved-invoices__group-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border-bottom: 1px solid #e9edf5;
  border-radius: 9px 9px 0 0;
  color: #13121a;
  background: #f2f3f5;
  font-size: 13px;
  font-weight: 500;
}

.reimbursement-saved-invoices__group.is-collapsed .reimbursement-saved-invoices__group-title {
  border-bottom: 0;
  border-radius: 9px;
}

.reimbursement-saved-invoices__file,
.reimbursement-saved-invoices__group-summary,
.reimbursement-saved-invoices__actions {
  display: flex;
  align-items: center;
}

.reimbursement-saved-invoices__file {
  gap: 8px;
  min-width: 0;
  max-width: min(52%, 560px);
  padding: 0;
  border: 0;
  color: #13121a;
  background: transparent;
  text-align: left;
}

.reimbursement-saved-invoices__file .mdi {
  flex: 0 0 auto;
  color: var(--portal-primary, #3155ff);
  font-size: 19px;
}

.reimbursement-saved-invoices__file strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reimbursement-saved-invoices__file-link {
  cursor: pointer;
}

.reimbursement-saved-invoices__file-link strong {
  color: #1f4fc9;
}

.reimbursement-saved-invoices__file-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reimbursement-saved-invoices__file-link:focus-visible,
.reimbursement-saved-invoices__action:focus-visible {
  outline: 2px solid var(--portal-primary, #3155ff);
  outline-offset: 2px;
  border-radius: 4px;
}

.reimbursement-saved-invoices__group-summary {
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  color: #657084;
  font-size: 12px;
  white-space: nowrap;
}

.reimbursement-saved-invoices__actions {
  gap: 4px;
}

.reimbursement-saved-invoices__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 7px;
  border: 0;
  border-radius: 4px;
  color: #315ecf;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.reimbursement-saved-invoices__action:hover {
  background: #e8efff;
}

.reimbursement-saved-invoices__action:disabled {
  cursor: wait;
  opacity: .65;
}

.reimbursement-saved-invoices__list {
  display: grid;
  padding: 0 14px;
  border-radius: 0 0 9px 9px;
  background: #fff;
}

.reimbursement-saved-invoices__list[hidden] {
  display: none;
}

.reimbursement-saved-invoice {
  display: grid;
  grid-template-columns: minmax(110px, .42fr) minmax(0, 2.58fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #eef1f7;
  font-variant-numeric: tabular-nums;
}

.reimbursement-saved-invoice:last-child {
  border-bottom: 0;
}

.reimbursement-saved-invoice__title {
  padding-top: 1px;
  color: #4e5969;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.reimbursement-saved-invoice__fields {
  display: grid;
  grid-template-columns: minmax(230px, 1.6fr) minmax(130px, .65fr) minmax(130px, .65fr);
  gap: 12px 24px;
  min-width: 0;
}

.reimbursement-saved-invoice__field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.reimbursement-saved-invoice strong {
  overflow: hidden;
  color: #29324c;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reimbursement-saved-invoice__field--number strong {
  color: #152b68;
}

.reimbursement-saved-invoice__label {
  color: #8a94a6;
  font-size: 11px;
}

@media (max-width: 767px) {
  .reimbursement-saved-invoices {
    max-height: 480px;
    padding: 8px;
  }

  .reimbursement-saved-invoices__group-title {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .reimbursement-saved-invoices__file {
    max-width: 100%;
  }

  .reimbursement-saved-invoices__group-summary {
    justify-content: space-between;
    gap: 8px;
  }

  .reimbursement-saved-invoices__list {
    padding: 0 12px;
  }

  .reimbursement-saved-invoice {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }

  .reimbursement-saved-invoice__fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.reimbursement-detail-loading {
  display: grid;
  gap: 14px;
}

.reimbursement-detail-skeleton {
  display: block;
  border-radius: 10px;
  background: linear-gradient(90deg, #eef1f7 25%, #f8f9fc 50%, #eef1f7 75%);
  background-size: 200% 100%;
  animation: reimbursement-detail-shimmer 1.4s ease-in-out infinite;
}

.reimbursement-detail-skeleton-line {
  width: 70%;
  height: 18px;
}

.reimbursement-detail-skeleton-line.is-short {
  width: 42%;
}

.reimbursement-detail-skeleton-panel {
  height: 220px;
}

.reimbursement-detail-skeleton-badge {
  width: 110px;
  height: 34px;
}

@keyframes reimbursement-detail-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reimbursement-detail-skeleton {
    animation: none;
  }
}

/* Reimbursement detail follows the same visual language as the Approvals detail panel. */
.reimbursement-detail-modal .modal-dialog {
  width: min(1280px, calc(100vw - 48px));
  max-width: none;
  height: min(90vh, 920px);
  max-height: min(90vh, 920px);
}

.reimbursement-detail-modal .modal-content {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.reimbursement-detail-modal .modal-header {
  flex: 0 0 auto;
  min-height: 72px;
  padding: 16px 24px;
  border-bottom-color: #e5e6eb;
  background: #fff;
}

.reimbursement-detail-modal .modal-footer {
  flex: 0 0 auto;
  padding: 12px 24px;
  border-top-color: #e5e6eb;
  background: #fff;
}

.reimbursement-detail-modal-subtitle {
  margin-top: 3px;
  color: #86909c;
  font-size: 13px;
}

.reimbursement-detail-modal .reimbursement-detail-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.portal-scope.reimbursement-detail-page {
  --portal-primary: #3155ff;
  --portal-primary-soft: #eef1ff;
}

.portal-scope.reimbursement-detail-page .reimbursement-readonly-detail {
  min-height: 0;
}

.portal-scope.reimbursement-detail-page .detail-shell,
.portal-scope.reimbursement-detail-page .detail-card {
  height: auto;
}

.portal-scope.reimbursement-detail-page .detail-card {
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.portal-scope.reimbursement-detail-page .detail-card > .card-body {
  min-height: 0;
  padding: 20px 24px 32px;
  overflow: visible;
}

.portal-scope.reimbursement-detail-page .reimbursement-detail-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.portal-scope.reimbursement-detail-page .detail-heading {
  min-width: 0;
}

.portal-scope.reimbursement-detail-page .detail-card .task-title {
  gap: 10px;
}

.portal-scope.reimbursement-detail-page .detail-card .task-title > span:first-child {
  font-size: 24px;
  font-weight: 700;
}

.portal-scope.reimbursement-detail-page .detail-card .task-title .status-pill {
  font-size: 12px;
  font-weight: 400;
}

.portal-scope.reimbursement-detail-page .detail-data-section,
.portal-scope.reimbursement-detail-page .reimbursement-items-section,
.portal-scope.reimbursement-detail-page .process-section {
  gap: 10px;
}

.portal-scope.reimbursement-detail-page .reimbursement-items-section {
  min-width: 0;
}

.portal-scope.reimbursement-detail-page .detail-card .detail-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-scope.reimbursement-detail-page .detail-card .detail-grid > .field {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.portal-scope.reimbursement-detail-page .detail-card .detail-grid > .field .field-label,
.portal-scope.reimbursement-detail-page .detail-card .detail-grid > .field .field-value {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope.reimbursement-detail-page .detail-card .detail-grid > .field .field-label {
  color: #4e5969;
}

.portal-scope.reimbursement-detail-page .detail-card .detail-grid > .field .field-value {
  color: #13121a;
  overflow-wrap: anywhere;
}

.portal-scope.reimbursement-detail-page .reimbursement-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-scope.reimbursement-detail-page .reimbursement-detail-count {
  padding: 3px 10px;
  border-radius: 999px;
  color: #6b7280;
  background: #f2f3f5;
  font-size: 12px;
  font-weight: 400;
}

.portal-scope.reimbursement-detail-page .reimbursement-detail-table-wrap {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.portal-scope.reimbursement-detail-page .reimbursement-detail-table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.portal-scope.reimbursement-detail-page .reimbursement-detail-table thead th {
  height: 46px;
  padding: 10px 20px;
  color: #86909c;
  border-bottom: 1px solid #e5e6eb;
  background: #f2f2f5;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: left;
}

.portal-scope.reimbursement-detail-page .reimbursement-detail-table tbody td {
  min-height: 48px;
  padding: 12px 20px;
  color: #13121a;
  border-bottom: 1px solid #f0f2f5;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope.reimbursement-detail-page .reimbursement-detail-table tbody tr:hover td {
  background: #fafbff;
}

.portal-scope.reimbursement-detail-page .reimbursement-detail-attachment-link {
  display: flex;
  width: fit-content;
  max-width: 260px;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #3155ff;
  background: #f7f7fa;
  font-size: 12px;
  line-height: 20px;
  text-decoration: none;
}

.portal-scope.reimbursement-detail-page .reimbursement-detail-attachment-name {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portal-scope.reimbursement-detail-page .reimbursement-detail-attachment-link:hover {
  text-decoration: underline;
}

.portal-scope.reimbursement-detail-page .reimbursement-portal-process {
  margin-top: 8px;
}

.portal-scope.reimbursement-detail-page .reimbursement-portal-process .process-group {
  min-height: 72px;
}

.portal-scope.reimbursement-detail-page .reimbursement-portal-process .node-avatar {
  width: 44px;
  height: 44px;
}

.portal-scope.reimbursement-detail-page .node-avatar.resubmitted {
  border: 1px solid #8b5cf6;
  color: #6d28d9;
  background: #f5f3ff;
}

.portal-scope.reimbursement-detail-page .node-title.resubmitted,
.portal-scope.reimbursement-detail-page .node-comment.resubmitted {
  color: #6d28d9;
}

.portal-scope.reimbursement-detail-page .node-flag-resubmitted {
  color: #6d28d9;
  background: #ede9fe;
}

.portal-scope.reimbursement-detail-page .node-flag-muted {
  color: #52525b;
  background: #f4f4f5;
}

.portal-scope.reimbursement-detail-page .reimbursement-detail-empty {
  min-height: 88px;
  border: 1px dashed #e5e6eb;
  border-radius: 4px;
  color: #86909c;
  background: #fafafa;
}

@media (max-width: 767.98px) {
  .reimbursement-detail-modal .modal-dialog {
    width: calc(100vw - 16px);
    height: 94vh;
    max-height: 94vh;
    margin-right: auto;
    margin-left: auto;
  }

  .reimbursement-detail-modal .modal-content {
    height: 100%;
  }

  .reimbursement-detail-modal .modal-header,
  .reimbursement-detail-modal .modal-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .portal-scope.reimbursement-detail-page .detail-card > .card-body {
    padding: 18px 16px 24px;
  }

  .portal-scope.reimbursement-detail-page .detail-card .detail-grid > .field {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f2f3f5;
  }

}

#asset-summary-page .row.g-3 {
  row-gap: var(--gutter);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: var(--md-radius-sm);
  background: var(--md-fill-hover);
  color: var(--md-text-regular);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--md-radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--md-text-regular);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
}

.btn-primary {
  background: var(--md-brand-primary);
  color: var(--md-on-primary);
  border-color: var(--md-brand-primary);
}

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

.btn-outline-secondary {
  border-color: var(--md-border-default);
  color: var(--md-text-regular);
  background: var(--md-fill-surface);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  border-color: var(--md-brand-outline);
  color: var(--md-brand-primary);
  background: var(--md-brand-hover-fill);
}

.btn-draft {
  border-color: #f59e0b;
  color: #92400e;
  background: #fffbeb;
}

.btn-draft:hover,
.btn-draft:focus {
  border-color: #d97706;
  color: #78350f;
  background: #fef3c7;
}

.btn-outline-primary {
  border-color: var(--md-brand-outline);
  color: var(--md-brand-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--md-brand-hover-fill);
}

.btn-outline-danger {
  border-color: rgba(239, 68, 68, 0.55);
  color: #b42318;
}

.btn-link {
  padding: 0;
  border: none;
  color: var(--md-brand-primary);
  background: transparent;
}

.btn-group {
  display: inline-flex;
  gap: 4px;
}

.form-label {
  font-weight: 600;
  color: var(--md-text-regular);
  margin-bottom: 8px;
  display: inline-block;
}

.form-control,
.form-select {
  border: 1px solid var(--md-border-default);
  border-radius: var(--md-radius-md);
  min-height: 32px;
  font-size: 14px;
  color: var(--md-text-primary);
  background-color: var(--md-fill-surface);
}

.form-control {
  padding: 6px 12px;
}

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("../icons/expand-more.svg");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding: 6px 36px 6px 12px;
}

.form-select.model-select-ellipsis {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.table-fixed .model-col {
  width: 220px;
}

.model-col {
  max-width: 240px;
}

.table-ellipsis {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

td.model-col {
  overflow: hidden;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
}

.asset-lifecycle-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: var(--md-radius-lg);
  margin-bottom: 16px;
}

.asset-lifecycle-tab {
  border: none;
  background: transparent;
  color: var(--md-text-secondary);
  border-radius: var(--md-radius-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.asset-lifecycle-tab:hover {
  color: var(--md-text-primary);
  background: rgba(255, 255, 255, 0.5);
}

.asset-lifecycle-tab.is-active {
  background: #ffffff;
  color: var(--md-brand);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.asset-lifecycle-panels {
  margin-top: 0;
  min-height: 400px;
}

.asset-lifecycle-panel {
  display: none;
  min-height: 380px;
}

.asset-lifecycle-panel.is-active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Asset Lifecycle Card Styles */
.lifecycle-card {
  background: #ffffff;
  border: 1px solid var(--md-border-default);
  border-radius: var(--md-radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.lifecycle-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--md-border-light);
}

.lifecycle-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.lifecycle-card-icon.blue { background: #dbeafe; color: #2563eb; }
.lifecycle-card-icon.green { background: #dcfce7; color: #16a34a; }
.lifecycle-card-icon.purple { background: #f3e8ff; color: #9333ea; }
.lifecycle-card-icon.orange { background: #ffedd5; color: #ea580c; }
.lifecycle-card-icon.teal { background: #ccfbf1; color: #0d9488; }

.lifecycle-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--md-text-primary);
  margin: 0;
}

.lifecycle-card-subtitle {
  font-size: 12px;
  color: var(--md-text-secondary);
  margin: 2px 0 0 0;
}

/* Asset Overview Grid */
.lifecycle-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.lifecycle-field {
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: var(--md-radius-md);
  gap: 8px;
}

.lifecycle-field-label {
  font-size: 12px;
  color: var(--md-text-secondary);
  font-weight: 500;
  min-width: 100px;
  flex-shrink: 0;
}

.lifecycle-field-value {
  font-size: 13px;
  color: var(--md-text-primary);
  font-weight: 500;
  word-break: break-word;
}

/* Status Badge in Lifecycle */
.lifecycle-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.lifecycle-status.in-use { background: #dbeafe; color: #1d4ed8; }
.lifecycle-status.available { background: #dcfce7; color: #15803d; }
.lifecycle-status.maintenance { background: #fef3c7; color: #b45309; }
.lifecycle-status.retired { background: #f3f4f6; color: #6b7280; }

/* Empty State */
.lifecycle-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--md-text-secondary);
}

.lifecycle-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.lifecycle-empty-text {
  font-size: 13px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--md-brand-outline);
  box-shadow: 0 0 0 2px var(--md-brand-focus-fill);
  outline: none;
}

.form-control-sm,
.form-select-sm {
  min-height: 28px;
  font-size: 12px;
}

.form-control-sm {
  padding: 4px 8px;
}

.form-select-sm {
  background-position: right 10px center;
  background-size: 10px 10px;
  padding: 4px 30px 4px 8px;
}

.form-select[multiple],
.form-select[size]:not([size="1"]) {
  background-image: none;
  padding-right: 12px;
}

.md-multi-select__native {
  display: none;
}

.md-multi-select {
  position: relative;
  width: 100%;
}

.md-search-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.md-search-select {
  position: relative;
  width: 100%;
}

.md-search-select__control {
  min-height: 36px;
  border: 1px solid var(--md-border-default);
  border-radius: var(--md-radius-md);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--md-fill-surface);
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.md-search-select__input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: var(--md-text-primary);
}

.md-search-select__toggle {
  border: none;
  background: transparent;
  color: var(--md-text-secondary);
  cursor: pointer;
  font-size: 12px;
  padding: 0 4px;
}

.md-search-select__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--md-fill-surface);
  border: 1px solid var(--md-border-subtle);
  border-radius: var(--md-radius-md);
  box-shadow: 0 16px 24px -18px rgba(19, 18, 26, 0.25);
  max-height: 240px;
  overflow: auto;
  display: none;
  z-index: 20;
}

.md-search-select__options {
  display: flex;
  flex-direction: column;
}

.md-search-select__option {
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--md-text-regular);
  cursor: pointer;
}

.md-search-select__option:hover,
.md-search-select__option.is-active {
  background: var(--md-brand-hover-fill);
}

.md-search-select__option.is-selected {
  font-weight: 600;
}

.md-search-select__empty {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--md-text-secondary);
  display: none;
}

.md-search-select.is-open .md-search-select__dropdown {
  display: block;
}

.md-search-select.is-open .md-search-select__control {
  border-color: var(--md-brand-outline);
  box-shadow: 0 0 0 2px var(--md-brand-focus-fill);
}

.md-search-select.is-disabled .md-search-select__control {
  background: var(--md-fill-page);
  color: var(--md-text-disabled);
  cursor: not-allowed;
}

.md-search-select.is-disabled .md-search-select__toggle,
.md-search-select.is-disabled .md-search-select__input {
  cursor: not-allowed;
}

.md-search-select__native.is-invalid + .md-search-select .md-search-select__control {
  border-color: var(--bs-danger);
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.md-multi-select__control {
  min-height: 36px;
  border: 1px solid var(--md-border-default);
  border-radius: var(--md-radius-md);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--md-fill-surface);
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.md-multi-select__tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.md-multi-select__placeholder {
  font-size: 12px;
  color: var(--md-text-secondary);
}

.md-multi-select__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--md-border-subtle);
  background: var(--md-fill-hover);
  font-size: 12px;
  color: var(--md-text-regular);
}

.md-multi-select__remove {
  border: none;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  color: var(--md-text-secondary);
  cursor: pointer;
  padding: 0;
}

.md-multi-select__search {
  border: none;
  outline: none;
  background: transparent;
  flex: 1 1 120px;
  min-width: 120px;
  font-size: 12px;
  color: var(--md-text-primary);
}

.md-multi-select__toggle {
  border: none;
  background: transparent;
  color: var(--md-text-secondary);
  cursor: pointer;
  font-size: 12px;
  padding: 0 4px;
}

.md-multi-select__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--md-fill-surface);
  border: 1px solid var(--md-border-subtle);
  border-radius: var(--md-radius-md);
  box-shadow: 0 16px 24px -18px rgba(19, 18, 26, 0.25);
  max-height: 240px;
  overflow: auto;
  display: none;
  z-index: 20;
}

.md-multi-select__options {
  display: flex;
  flex-direction: column;
}

.md-multi-select__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--md-text-regular);
  cursor: pointer;
}

.md-multi-select__option:hover {
  background: var(--md-brand-hover-fill);
}

.md-multi-select__option-input {
  margin: 0;
}

.md-multi-select__empty {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--md-text-secondary);
  display: none;
}

.md-multi-select.is-open .md-multi-select__dropdown {
  display: block;
}

.md-multi-select.is-open .md-multi-select__control {
  border-color: var(--md-brand-outline);
  box-shadow: 0 0 0 2px var(--md-brand-focus-fill);
}

.md-multi-select.is-disabled .md-multi-select__control {
  background: var(--md-fill-page);
  color: var(--md-text-disabled);
  cursor: not-allowed;
}

.md-multi-select.is-disabled .md-multi-select__toggle,
.md-multi-select.is-disabled .md-multi-select__search {
  cursor: not-allowed;
}

.form-text {
  font-size: 12px;
  color: var(--md-text-secondary);
  margin-top: 4px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.form-check-label {
  font-size: 14px;
  color: var(--md-text-regular);
}

.input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.input-group > .form-control,
.input-group > .form-select {
  flex: 1 1 auto;
}

.input-group-text {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--md-border-default);
  border-radius: var(--md-radius-md);
  background: var(--md-fill-hover);
  color: var(--md-text-secondary);
}

.input-group-sm .form-control,
.input-group-sm .form-select,
.input-group-sm .input-group-text {
  min-height: 28px;
  font-size: 12px;
  padding: 4px 8px;
}

.table-responsive {
  border: 1px solid var(--md-border-subtle);
  border-radius: var(--md-radius-lg);
  overflow: hidden;
  background: var(--md-fill-surface);
}

.table-responsive.dropdown-overflow {
  overflow: visible !important;
}

.table-responsive.dropdown-overflow .table-scroll {
  overflow-x: auto;
  overflow-y: visible;
}

.table-responsive.admin-table-wrap {
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--md-text-regular);
}

.table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--md-text-secondary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--md-border-subtle);
  background: var(--md-fill-page);
}

.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--md-border-subtle);
  vertical-align: middle;
}

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

.table-hover tbody tr:hover td,
.admin-content .table tbody tr:hover td {
  background: #f5f7ff;
}

.table-responsive.admin-table-wrap {
  --admin-actions-col-width: 180px;
}

#onboarding-table {
  --admin-actions-col-width: 220px;
}

#onboarding-table .btn-list {
  flex-wrap: nowrap;
}

#onboarding-table thead th:last-child,
#onboarding-table tbody td:last-child {
  position: sticky;
  right: 0;
}

.table-responsive.admin-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 4;
}

.table-responsive.admin-table-wrap:not(.no-sticky-last-col) thead th:last-child,
.table-responsive.admin-table-wrap:not(.no-sticky-last-col) tbody td:last-child {
  white-space: nowrap;
  min-width: var(--admin-actions-col-width);
  width: var(--admin-actions-col-width);
  text-align: right;
  position: sticky;
  right: 0;
  overflow: visible;
  box-shadow: -1px 0 0 var(--md-border-subtle);
}

/* .table-responsive.admin-table-wrap thead th:last-child::before, */
.table-responsive.admin-table-wrap:not(.no-sticky-last-col) tbody td:last-child::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -14px;
  width: 14px;
  pointer-events: none;
  background: linear-gradient(to left, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0));
}

.table-responsive.admin-table-wrap:not(.no-sticky-last-col) thead th:last-child {
  background: var(--md-fill-page);
  z-index: 4;
}

.table-responsive.admin-table-wrap:not(.no-sticky-last-col) tbody td:last-child {
  background: var(--md-fill-surface);
  z-index: 3;
}

.table-responsive.admin-table-wrap:not(.no-sticky-last-col) tbody td:last-child.d-flex {
  display: table-cell !important;
}

.admin-content .table tbody tr:hover td:last-child,
.table-hover tbody tr:hover td:last-child {
  background: #f5f7ff;
}

.table-responsive.admin-table-wrap tbody td:last-child .btn,
.table-responsive.admin-table-wrap tbody td:last-child a.btn,
.table-responsive.admin-table-wrap tbody td:last-child .btn-link {
  padding: 4px 10px !important;
  font-size: 12px !important;
  border-radius: var(--md-radius-sm);
  margin: 0 !important;
  line-height: 1.2;
  text-decoration: none;
  background: #f2f3f5;
  border: 1px solid #f2f3f5;
  color: #4E5969 !important;
}

.table-responsive.admin-table-wrap tbody td:last-child .btn + .btn,
.table-responsive.admin-table-wrap tbody td:last-child .btn + a.btn,
.table-responsive.admin-table-wrap tbody td:last-child a.btn + .btn,
.table-responsive.admin-table-wrap tbody td:last-child a.btn + a.btn {
  margin-left: 0.5rem !important;
}

.table-responsive.admin-table-wrap tbody td:last-child.d-flex {
  gap: 0.5rem !important;
}

.table-responsive.admin-table-wrap tbody td:last-child.d-flex .btn + .btn,
.table-responsive.admin-table-wrap tbody td:last-child.d-flex .btn + a.btn,
.table-responsive.admin-table-wrap tbody td:last-child.d-flex a.btn + .btn,
.table-responsive.admin-table-wrap tbody td:last-child.d-flex a.btn + a.btn {
  margin-left: 0 !important;
}

.travel-request-key {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.travel-row-toggle {
  width: 22px;
  height: 22px;
  border: 1px solid var(--md-border-subtle);
  border-radius: 50%;
  background: transparent;
  color: var(--md-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 auto;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.travel-row-toggle__icon {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transform: translateX(1px);
}

.travel-row-toggle[aria-expanded="true"] .travel-row-toggle__icon {
  transform: rotate(90deg) translateY(-1px);
}

.travel-row-toggle:hover:not(:disabled),
.travel-row-toggle:focus-visible {
  background: #f4f7ff;
  border-color: #cfdbfb;
  color: #4d67b8;
}

.travel-row-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.travel-request-key__content {
  min-width: 0;
}

.travel-request-key__primary {
  font-weight: 600;
  color: var(--md-text-regular);
  word-break: break-word;
  letter-spacing: 0.01em;
}

.travel-request-key__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--md-text-secondary);
}

.travel-request-key__label {
  font-weight: 600;
}

.travel-request-key__value {
  color: var(--md-text-regular);
}

.travel-request-key__count {
  position: relative;
  padding-left: 10px;
}

.travel-request-key__count::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9aa7c7;
  transform: translateY(-50%);
}

.travel-request-row.is-expanded > td {
  background: #fbfcff;
}

.travel-request-row.is-expanded > td:first-child {
  box-shadow: inset 2px 0 0 #dbe4fb;
}

.travel-detail-row td,
.travel-detail-row:hover td {
  background: #fbfcff;
}

.table-responsive.admin-table-wrap .travel-detail-row td:last-child {
  position: static;
  right: auto;
  min-width: 0;
  width: auto;
  text-align: left;
  white-space: normal;
  box-shadow: none;
  z-index: auto;
}

.table-responsive.admin-table-wrap .travel-detail-row td:last-child::before {
  display: none;
}

.travel-detail-row__cell {
  padding: 0 20px 14px 42px !important;
  border-bottom: 1px solid var(--md-border-subtle);
}

.travel-detail-panel {
  border-left: 2px solid #dde5f7;
  border-radius: 0;
  background: transparent;
  padding: 8px 0 0 18px;
}

.travel-detail-panel--error {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.travel-detail-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.travel-detail-panel__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-text-regular);
}

.travel-detail-panel__meta {
  font-size: 12px;
  color: var(--md-text-secondary);
}

.travel-detail-panel__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.travel-detail-meta {
  display: inline-flex;
  align-items: center;
  color: var(--md-text-secondary);
  font-size: 12px;
}

.travel-detail-table-wrap {
  max-height: 360px;
  overflow: auto;
  background: #fff;
  border: 1px solid #edf1f7;
  border-radius: 12px;
}

.travel-detail-table {
  width: max-content;
  min-width: 100%;
  margin-bottom: 0;
  table-layout: auto;
}

.travel-detail-table thead th {
  background: #fafbfd;
  color: #5f6f8f;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 16px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  white-space: normal;
  vertical-align: top;
}

.travel-detail-table tbody td {
  background: #fff;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f4f8;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.travel-detail-table tbody tr:last-child td {
  border-bottom: 0;
}

.travel-detail-table th.is-time,
.travel-detail-table td.is-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.travel-detail-table th.is-number,
.travel-detail-table td.is-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

@media (max-width: 767.98px) {
  .travel-request-key {
    min-width: 220px;
    gap: 10px;
  }

  .travel-detail-row__cell {
    padding: 0 12px 12px 16px !important;
  }

  .travel-detail-panel {
    padding-left: 12px;
  }

  .travel-detail-panel__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .travel-detail-panel__summary {
    gap: 8px 12px;
  }
}

.production-daily-report-page .admin-toolbar .admin-filters {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.production-daily-report-page .admin-toolbar .admin-filters > .form-control,
.production-daily-report-page .admin-toolbar .admin-filters > .form-select,
.production-daily-report-page .admin-toolbar .admin-filters > .btn {
  flex: 1 1 180px;
}

.production-daily-report-page .admin-toolbar .admin-filters > .btn {
  flex: 0 0 auto;
}

.production-daily-report-page .admin-page-head .admin-actions {
  flex-wrap: wrap;
}

.production-daily-report-page {
  overflow-x: hidden;
}

.production-daily-report-page #production-report-table {
  min-width: 980px;
}

.production-daily-report-page .production-report-row td {
  vertical-align: top;
}

.production-daily-report-page .production-report-primary {
  font-size: 14px;
  font-weight: 700;
  color: var(--md-text-primary);
}

.production-daily-report-page .production-report-progress {
  max-width: 36ch;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}

.production-daily-report-page .production-report-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.production-daily-report-page .production-report-badge.is-editable {
  color: #0f8a44;
  background: #e8f8ef;
}

.production-daily-report-page .production-report-badge.is-readonly {
  color: #4e5969;
  background: #f2f3f5;
}

.production-daily-report-page .production-report-meta-item {
  font-size: 12px;
  color: var(--md-text-secondary);
  line-height: 1.7;
}

.production-daily-report-page .production-report-meta-item strong {
  color: var(--md-text-primary);
  font-weight: 700;
}

.production-daily-report-page .production-report-actions .d-flex {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(86px, 1fr));
  gap: 8px !important;
  width: 196px;
  margin-left: auto;
}

.production-daily-report-page .production-report-actions .btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  border-radius: 10px;
  font-weight: 600;
}

.production-daily-report-page .production-report-upload-actions .form-control {
  max-width: 320px;
}

.production-daily-report-page .production-report-mobile-list {
  display: none;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.production-daily-report-page .production-report-mobile-state {
  padding: 20px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e8edf5;
  text-align: center;
  font-size: 14px;
}

.production-daily-report-page .production-report-mobile-card {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.production-daily-report-page .production-report-mobile-card + .production-report-mobile-card {
  margin-top: 0;
}

.production-daily-report-page .production-report-mobile-card__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 10px;
  background:
    linear-gradient(135deg, rgba(73, 119, 255, 0.08), rgba(73, 119, 255, 0.02)),
    #ffffff;
}

.production-daily-report-page .production-report-mobile-card__date {
  font-size: 14px;
  font-weight: 800;
  color: #18222f;
  line-height: 1.2;
}

.production-daily-report-page .production-report-mobile-card__reporter,
.production-daily-report-page .production-report-mobile-card__meta {
  margin-top: 3px;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.35;
  word-break: break-word;
}

.production-daily-report-page .production-report-mobile-card__section {
  padding: 10px 12px 0;
}

.production-daily-report-page .production-report-mobile-card__title {
  font-size: 13px;
  font-weight: 800;
  color: #1f2a37;
  line-height: 1.3;
  word-break: break-word;
}

.production-daily-report-page .production-report-mobile-card__meta-list {
  margin: 0;
  padding: 10px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.production-daily-report-page .production-report-mobile-card__meta-row {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  line-height: 1.35;
}

.production-daily-report-page .production-report-mobile-card__meta-row span {
  color: #7b8794;
  flex: 0 0 auto;
}

.production-daily-report-page .production-report-mobile-card__meta-row strong {
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  color: #243041;
  word-break: break-word;
}

.production-daily-report-page .production-report-mobile-card__summary {
  padding: 10px 12px 0;
}

.production-daily-report-page .production-report-mobile-card__progress {
  font-size: 11px;
  line-height: 1.45;
  color: #425466;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.production-daily-report-page .production-report-mobile-card__summary-label {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b8794;
}

.production-daily-report-page .production-report-mobile-card__location {
  padding: 8px 12px 0;
  font-size: 10px;
  line-height: 1.4;
  color: #7b8794;
  word-break: break-word;
}

.production-daily-report-page .production-report-mobile-card__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 0;
}

.production-daily-report-page .production-report-mobile-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef3ff;
  color: #425466;
  font-size: 10px;
  line-height: 1.2;
  word-break: break-word;
}

.production-daily-report-page .production-report-mobile-chip strong {
  color: #1f2a37;
}

.production-daily-report-page .production-report-mobile-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.production-daily-report-page .production-report-mobile-card__actions::-webkit-scrollbar {
  display: none;
}

.production-daily-report-page .production-report-mobile-card__actions .btn {
  width: auto;
  min-width: 58px;
  flex: 0 0 auto;
  justify-content: center;
  font-size: 11px;
  line-height: 1.2;
  padding-left: 10px;
  padding-right: 10px;
}

.production-project-page .production-project-actions {
  min-width: 220px;
}

.production-project-page .production-project-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 8px;
  width: 208px;
  margin-left: auto;
}

.production-project-page .production-project-action-grid .btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  border-radius: 10px;
  font-weight: 600;
}

.production-daily-report-page .production-report-mobile-card .production-report-badge {
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.production-report-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.production-report-view-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(73, 119, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #f6f9ff 0%, #ffffff 58%, #f8fbff 100%);
  border: 1px solid rgba(78, 107, 255, 0.12);
}

.production-report-view-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b6bff;
  margin-bottom: 10px;
}

.production-report-view-title {
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
  color: #18222f;
}

.production-report-view-subtitle {
  margin-top: 8px;
  font-size: 15px;
  color: #5d6b7d;
}

.production-report-view-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
  min-width: 440px;
}

.production-report-view-stat {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 34, 47, 0.06);
  box-shadow: 0 10px 30px rgba(18, 32, 68, 0.06);
}

.production-report-view-stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b8794;
  margin-bottom: 8px;
}

.production-report-view-stat strong {
  font-size: 15px;
  line-height: 1.4;
  color: #17212d;
}

.production-report-view-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.production-report-view-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: #fbfcfe;
  border: 1px solid #e9eef6;
}

.production-report-view-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b8794;
  margin-bottom: 8px;
}

.production-report-view-card-value {
  font-size: 15px;
  line-height: 1.5;
  color: #1f2a37;
  word-break: break-word;
}

.production-report-view-section {
  padding: 18px 20px 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #edf1f6;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
}

.production-report-view-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.production-report-view-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a2433;
}

.production-report-view-section-subtitle {
  font-size: 13px;
  color: #7b8794;
  margin-top: 4px;
}

.production-report-view-richtext {
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid #e8edf5;
  min-height: 180px;
  line-height: 1.75;
}

.production-report-view-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.production-report-view-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: #fbfcfe;
  border: 1px solid #e8edf5;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.production-report-view-gallery-item:hover {
  transform: translateY(-2px);
  border-color: rgba(73, 119, 255, 0.25);
  box-shadow: 0 14px 28px rgba(73, 119, 255, 0.12);
}

.production-report-view-gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
}

.production-report-view-gallery-item span {
  font-size: 13px;
  line-height: 1.45;
  color: #425466;
  word-break: break-word;
}

.production-report-view-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.production-report-view-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  background: #fbfcfe;
  border: 1px solid #e8edf5;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.production-report-view-file:hover {
  transform: translateY(-1px);
  border-color: rgba(73, 119, 255, 0.24);
  box-shadow: 0 12px 24px rgba(73, 119, 255, 0.1);
}

.production-report-view-file-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2a37;
  word-break: break-word;
}

.production-report-view-file-action {
  font-size: 12px;
  font-weight: 700;
  color: #5b6bff;
  white-space: nowrap;
}

.production-report-view-empty {
  padding: 28px 20px;
  border-radius: 16px;
  background: #fbfcfe;
  border: 1px dashed #d9e2ef;
  text-align: center;
  color: #7b8794;
  font-size: 14px;
}

.production-report-log-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 10px;
}

.production-report-log-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
}

.production-report-log-card:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(180deg, rgba(91, 107, 255, 0.24), rgba(91, 107, 255, 0.04));
}

.production-report-log-node {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #4a5cff;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
  border: 1px solid rgba(91, 107, 255, 0.22);
  box-shadow: 0 10px 24px rgba(73, 119, 255, 0.14);
}

.production-report-log-main {
  padding: 18px 20px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid #e9eef8;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.production-report-log-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.production-report-log-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a2433;
}

.production-report-log-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: #7b8794;
}

.production-report-log-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #5363ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.production-report-log-summary {
  position: relative;
  min-width: 0;
  padding: 14px 58px 14px 14px;
  border-radius: 14px;
  background: #f8faff;
  border: 1px solid #e7edf8;
  color: #425466;
  line-height: 1.65;
}

.production-report-log-summary-row {
  margin-top: 14px;
  display: block;
}

.production-report-log-summary-body {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.production-report-log-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border: 1px solid #d5dffc;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #eef3ff 100%);
  color: #5363ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(83, 99, 255, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.production-report-log-toggle:hover {
  border-color: #bfcffd;
  box-shadow: 0 14px 28px rgba(83, 99, 255, 0.18);
}

.production-report-log-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.production-report-log-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.production-report-log-details {
  margin-top: 16px;
}

.production-report-log-summary-list {
  display: inline;
}

.production-report-log-summary-item {
  font-size: 14px;
  line-height: 1.7;
  color: #425466;
  display: inline;
}

.production-report-log-summary-item:not(:last-child)::after {
  content: "; ";
}

.production-report-log-summary-label {
  font-weight: 800;
  color: #31435b;
}

.production-report-log-summary-content {
  display: inline;
}

.production-report-log-summary-before,
.production-report-log-summary-after {
  color: #425466;
}

.production-report-log-summary-arrow {
  display: inline-block;
  margin: 0 8px;
  font-weight: 800;
  color: #5363ff;
}

.production-report-log-changes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.production-report-log-change {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #eef2f7;
}

.production-report-log-change-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
}

.production-report-log-change-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.production-report-log-change-side {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #edf1f6;
}

.production-report-log-change-side.is-before {
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
  border-color: #f6dada;
}

.production-report-log-change-side.is-after {
  background: linear-gradient(180deg, #f5fbf7 0%, #ffffff 100%);
  border-color: #d8eedf;
}

.production-report-log-change-tag {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.production-report-log-change-side.is-before .production-report-log-change-tag {
  color: #b42318;
  background: #fdecec;
}

.production-report-log-change-side.is-after .production-report-log-change-tag {
  color: #0f8a44;
  background: #e9f8ef;
}

.production-report-log-change-value {
  font-size: 14px;
  line-height: 1.6;
  color: #243041;
  word-break: break-word;
  white-space: pre-wrap;
}

.production-report-log-attachment-list {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  max-width: 100%;
  vertical-align: top;
}

.production-report-log-attachment-list.is-inline {
  display: inline;
  vertical-align: baseline;
}

.production-report-log-attachment-list.is-inline a:not(:last-child)::after {
  content: ", ";
  text-decoration: none;
}

.production-report-log-attachment-link,
.production-report-log-summary-link,
.production-report-log-snapshot-link {
  color: #3557ff;
  text-decoration: none;
  word-break: break-all;
}

.production-report-log-attachment-link:hover,
.production-report-log-summary-link:hover,
.production-report-log-snapshot-link:hover {
  text-decoration: underline;
}

.production-report-log-empty {
  color: #7b8794;
}

.production-report-log-change-arrow {
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #7b87ff;
}

.production-report-log-fallback {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fbfcfe;
  border: 1px dashed #dce3ef;
  color: #6b7280;
  line-height: 1.6;
}

.production-report-log-snapshot {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #edf1f7;
}

.production-report-log-snapshot-head {
  margin-bottom: 14px;
}

.production-report-log-snapshot-title {
  font-size: 16px;
  font-weight: 800;
  color: #1d2735;
}

.production-report-log-snapshot-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #7b8794;
}

.production-report-log-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.production-report-log-snapshot-card,
.production-report-log-snapshot-block {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fbfcfe;
  border: 1px solid #e8edf5;
}

.production-report-log-snapshot-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

.production-report-log-snapshot-value {
  font-size: 14px;
  line-height: 1.6;
  color: #233042;
  word-break: break-word;
}

.production-report-log-snapshot-longtext {
  font-size: 14px;
  line-height: 1.75;
  color: #233042;
  white-space: pre-wrap;
  word-break: break-word;
}

.production-report-log-snapshot-block {
  margin-top: 12px;
}

.production-report-log-snapshot-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.production-report-log-snapshot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.production-report-log-snapshot-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4a5cff;
  font-size: 12px;
  font-weight: 700;
  word-break: break-word;
}

.production-report-log-snapshot-empty {
  font-size: 13px;
  color: #7b8794;
}

.employee-picker-dropdown {
  position: absolute;
  inset: calc(100% + 4px) 0 auto 0;
  z-index: 1080;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #dbe4f2;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.employee-picker-state {
  padding: 14px 16px;
  border-radius: 14px;
  color: #7b8794;
  font-size: 13px;
  line-height: 1.5;
  background: #f8faff;
}

.employee-picker-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.employee-picker-option + .employee-picker-option {
  margin-top: 4px;
}

.employee-picker-option:hover,
.employee-picker-option:focus-visible {
  background: linear-gradient(180deg, #eef4ff 0%, #f7faff 100%);
  box-shadow: inset 0 0 0 1px #d7e3ff;
  outline: none;
  transform: translateY(-1px);
}

.employee-picker-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f6bff 0%, #7d93ff 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 18px rgba(79, 107, 255, 0.2);
}

.employee-picker-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.employee-picker-name {
  color: #1f2a3d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.employee-picker-meta {
  color: #6b7a90;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

@media (max-width: 768px) {
  .production-daily-report-page .admin-page-head {
    align-items: stretch;
  }

  .production-daily-report-page .admin-page-head .admin-actions {
    width: 100%;
  }

  .production-daily-report-page .admin-page-head .admin-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .production-daily-report-page .admin-toolbar .admin-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .production-daily-report-page .admin-toolbar .admin-filters > .form-control,
  .production-daily-report-page .admin-toolbar .admin-filters > .form-select,
  .production-daily-report-page .admin-toolbar .admin-filters > .btn {
    width: 100%;
    min-width: 0 !important;
  }

  .production-daily-report-page .admin-card > .card-body {
    padding: 12px;
    overflow-x: hidden;
  }

  .production-daily-report-page .admin-table-wrap {
    display: none;
  }

  .production-daily-report-page .production-report-mobile-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    min-width: 0;
    max-width: 100%;
  }

  .production-daily-report-page .admin-pagination {
    margin-top: 14px;
  }

  .production-daily-report-page .md-pagination {
    gap: 10px;
  }

  .production-daily-report-page .md-pagination__summary,
  .production-daily-report-page .md-pagination__controls,
  .production-daily-report-page .md-pagination__total {
    width: 100%;
  }

  .production-daily-report-page .md-pagination__controls {
    margin-left: 0;
    justify-content: space-between;
    gap: 10px;
  }

  .production-daily-report-page .md-pagination__size {
    width: 100%;
    justify-content: space-between;
  }

  .production-daily-report-page .md-pagination__size .form-select {
    width: 96px;
    flex: 0 0 96px;
  }

  .production-daily-report-page .md-pagination__pages {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .production-daily-report-page .md-pagination__total {
    text-align: right;
  }

  .production-daily-report-page .production-report-upload-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .production-daily-report-page .production-report-upload-actions .form-control,
  .production-daily-report-page .production-report-upload-actions .btn {
    width: 100%;
    max-width: none !important;
  }

  .production-report-view-hero {
    flex-direction: column;
    padding: 18px;
  }

  .production-report-view-title {
    font-size: 24px;
  }

  .production-report-view-stats {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .production-report-view-grid {
    grid-template-columns: 1fr;
  }

  .production-report-view-gallery,
  .production-report-view-files {
    grid-template-columns: 1fr;
  }

  .production-report-view-section,
  .production-report-view-richtext {
    padding-left: 16px;
    padding-right: 16px;
  }

  .production-report-log-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .production-report-log-card:not(:last-child)::after {
    display: none;
  }

  .production-report-log-node {
    width: 38px;
    height: 38px;
  }

  .production-report-log-main {
    padding: 16px;
  }

  .production-report-log-head {
    flex-direction: column;
  }

  .production-report-log-summary-row {
    display: block;
  }

  .production-report-log-toggle {
    right: 10px;
  }

  .production-report-log-change-grid {
    grid-template-columns: 1fr;
  }

  .production-report-log-change-arrow {
    display: none;
  }

  .production-report-log-snapshot-grid,
  .production-report-log-snapshot-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .production-daily-report-page .production-report-mobile-card__hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .production-daily-report-page .production-report-mobile-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .production-daily-report-page .production-report-mobile-card__actions {
    gap: 6px;
    padding-top: 10px;
  }

  .production-daily-report-page .production-report-mobile-card__actions .btn {
    min-width: 52px;
    font-size: 10px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .production-daily-report-page .md-pagination__controls {
    justify-content: center;
  }

  .production-daily-report-page .md-pagination__total {
    text-align: center;
  }
}

.table-responsive.admin-table-wrap tbody td:last-child .btn:hover,
.table-responsive.admin-table-wrap tbody td:last-child a.btn:hover,
.table-responsive.admin-table-wrap tbody td:last-child .btn-link:hover {
  background: #d1d5db;
  border-color: #cbd5f5;
  color: #111827 !important;
}

.card {
  background: var(--md-fill-surface);
  border: 1px solid var(--md-border-subtle);
  border-radius: var(--md-radius-lg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--md-border-subtle);
  background: var(--md-fill-surface);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--md-text-primary);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.nav-link {
  text-decoration: none;
}

.nav-pills .nav-link {
  border-radius: var(--md-radius-md);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  background: var(--md-fill-surface);
  border: 1px solid var(--md-border-subtle);
  border-radius: var(--md-radius-md);
  padding: 8px 0;
  min-width: 180px;
  box-shadow: 0 16px 24px -18px rgba(19, 18, 26, 0.25);
  z-index: 1000;
}

.dropdown-menu.show {
  display: block;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: var(--md-text-regular);
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--md-brand-hover-fill);
  color: var(--md-brand-primary);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.modal-dialog {
  width: min(640px, 92vw);
  max-height: calc(100vh - 200px);
  margin: 0;
}

.modal-sm {
  width: min(800px, 92vw);
}

.modal-md {
  width: min(640px, 92vw);
}

.modal-lg {
  width: min(960px, 92vw);
}

.modal-xl {
  width: min(1100px, 90vw);
}

.modal-two-thirds {
  width: min(66vw, 1200px);
}

@media (max-width: 1200px) {
  .modal-two-thirds {
    width: min(90vw, 900px);
  }
}

.modal-content {
  background: var(--md-fill-surface);
  border-radius: var(--md-radius-lg);
  border: 1px solid var(--md-border-subtle);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
  overflow: hidden;
  min-height: 0;
}

.modal-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--md-border-subtle);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--md-text-primary);
}

.modal-body {
  padding: 24px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.modal .row {
  row-gap: var(--md-space-4);
}

.modal .mb-3 {
  margin-bottom: var(--md-space-4) !important;
}

.modal .form-label {
  display: block;
  margin-bottom: 6px;
}

.modal .form-control,
.modal .form-select,
.modal textarea {
  width: 100%;
}

.modal .row > [class*="col"] {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--md-border-subtle);
}

.modal-content form {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.modal-content .modal-footer {
  flex-shrink: 0;
}

.btn-close {
  border: none;
  background: transparent;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.btn-close::before {
  content: 'x';
  font-size: 20px;
  color: var(--md-text-secondary);
}

.modal-overlay {
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
}

/* Ensure Bootstrap modals (e.g. openConfirm) render above custom modal overlays. */
.modal-backdrop {
  z-index: 1200;
}

.modal {
  z-index: 1210;
}

/* Shared approval detail dialog: business pages provide fields; the component owns layout and process. */
.approval-detail-modal .modal-dialog {
  width: min(1280px, calc(100vw - 48px));
  max-width: none;
  height: min(90vh, 920px);
  max-height: min(90vh, 920px);
}

.approval-detail-modal .modal-content {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.approval-detail-modal .modal-header,
.approval-detail-modal .modal-footer {
  flex: 0 0 auto;
  background: #fff;
}

.approval-detail-modal .reimbursement-detail-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
}

.approval-detail-modal .approval-detail-legacy-content > .space-y,
.approval-detail-modal .approval-detail-legacy-content > .row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.approval-detail-modal .approval-detail-legacy-content > .space-y > .d-flex {
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 0 !important;
  border: 0 !important;
  text-align: left;
}

.approval-detail-modal .approval-detail-legacy-content > .space-y > .d-flex > :last-child {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  margin-left: 0 !important;
  text-align: left !important;
}

.approval-detail-modal .detail-grid .field-value,
.approval-detail-modal .detail-grid .field-value > .d-flex {
  min-width: 0;
  max-width: 100%;
  align-items: flex-start !important;
  text-align: left !important;
}

.approval-detail-modal .detail-grid .field-value a,
.approval-detail-modal .approval-detail-legacy-content a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.approval-detail-modal .detail-grid .field-value > .badge,
.approval-detail-modal .approval-detail-legacy-content > .space-y > .d-flex > :last-child > .badge {
  position: static;
  inset: auto;
  display: inline-flex;
  width: auto;
  height: auto;
  transform: none;
}

.approval-detail-modal .approval-detail-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  width: fit-content;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.approval-detail-modal .approval-detail-status-badge.is-approved {
  color: #15803d;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.approval-detail-modal .approval-detail-status-badge.is-pending {
  color: #a15c07;
  background: #fff8e6;
  border-color: #fde6b2;
}

.approval-detail-modal .approval-detail-status-badge.is-review {
  color: #4338ca;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.approval-detail-modal .approval-detail-status-badge.is-rejected {
  color: #b42318;
  background: #fff1f0;
  border-color: #fecaca;
}

.approval-detail-modal .approval-detail-status-badge.is-withdrawn {
  color: #475569;
  background: #f1f5f9;
  border-color: #dbe2ea;
}

.approval-detail-modal .approval-detail-legacy-content .form-control:disabled,
.approval-detail-modal .approval-detail-legacy-content .form-control[readonly] {
  padding: 0;
  border: 0;
  color: #13121a;
  background: transparent;
  opacity: 1;
}

@media (max-width: 767.98px) {
  .approval-detail-modal .modal-dialog {
    width: calc(100vw - 16px);
    height: 94vh;
    max-height: 94vh;
  }

  .approval-detail-modal .approval-detail-legacy-content > .space-y > .d-flex {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f2f3f5 !important;
  }
}

.modal-overlay .modal-card {
  border: 1px solid var(--md-border-subtle);
  border-radius: var(--md-radius-lg);
  background: var(--md-fill-surface);
  box-shadow: none;
  min-height: 0;
}

.modal-overlay .modal-header {
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--md-border-subtle);
}

.modal-overlay .modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--md-text-primary);
}

.modal-overlay .modal-body {
  padding: 24px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.modal-overlay form {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.modal-overlay .form-control,
.modal-overlay .form-select,
.modal-overlay textarea {
  width: 100%;
}

.modal-overlay .modal-body .form-label {
  display: block;
  margin-bottom: 6px;
}

.modal-overlay .modal-body .mb-3 {
  margin-bottom: var(--md-space-4);
}

.modal-overlay .modal-body .row {
  row-gap: var(--md-space-4);
}

.modal-overlay .modal-card-lg form.modal-grid .modal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--md-space-4);
  row-gap: var(--md-space-4);
}

.modal-overlay .modal-card-lg form.modal-grid .modal-body .mb-3 {
  margin-bottom: 0;
}

.modal-overlay .modal-card-lg form.modal-grid .modal-body .modal-field-full {
  grid-column: 1 / -1;
}

.modal-overlay .modal-footer {
  border-top: 1px solid var(--md-border-subtle);
  flex-shrink: 0;
}

@media print {
  .d-print-none { display: none !important; }
}

.position-relative { position: relative !important; }

/* Employee vCard */
.employee-vcards-page .admin-card {
  min-height: 420px;
}

#drawer-body.vcard-form-body {
  overflow: hidden;
}

#drawer-body.vcard-form-body .vcard-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 24px;
  height: min(70vh, 720px);
}

#drawer-body.vcard-form-body .vcard-form-left {
  overflow: auto;
  padding-right: 8px;
  min-height: 0;
}

#drawer-body.vcard-form-body .vcard-form-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

#drawer-body.vcard-form-body .vcard-preview-title {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--md-text-secondary);
}

#drawer-body.vcard-form-body .vcard-preview-panel {
  align-items: flex-start;
}

@media (max-width: 991.98px) {
  #drawer-body.vcard-form-body .vcard-form-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  #drawer-body.vcard-form-body .vcard-form-left {
    overflow: visible;
    padding-right: 0;
  }

  #drawer-body.vcard-form-body .vcard-form-right {
    align-items: flex-start;
  }
}

.vcard-card {
  --vcard-scale: 1;
  --vcard-gap: 14px;
  --vcard-name-size: 20px;
  --vcard-name-line: 30px;
  --vcard-name-color: var(--md-text-primary);
  --vcard-name-offset: 0px;
  --vcard-qr-size: 70px;
  --vcard-qr-offset: 36px;
  --vcard-qr-scale: 1;
  width: 100%;
  aspect-ratio: 640 / 1000.78;
  border-radius: calc(20px * var(--vcard-scale));
  padding: calc(16px * var(--vcard-scale));
  background: var(--md-fill-surface);
  box-shadow: 0 calc(14px * var(--vcard-scale)) calc(34px * var(--vcard-scale)) rgba(19, 18, 26, 0.12);
  display: flex;
  flex-direction: column;
  gap: calc(var(--vcard-gap) * var(--vcard-scale));
  position: relative;
}

.vcard-card-preview--mini {
  width: 240px;
}

.vcard-card-preview--preview {
  width: 320px;
}

.vcard-preview-panel {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vcard-card--mini {
  --vcard-scale: 0.375;
}

.vcard-card--preview {
  --vcard-scale: 0.5;
  --vcard-qr-scale: 1.6;
}

.vcard-card--simple {
  --vcard-name-size: 60px;
  --vcard-name-line: 72px;
  --vcard-name-color: #3a3a3a;
  --vcard-name-offset: 20px;
}

.vcard-name-bar {
  width: calc(220px * var(--vcard-scale));
  max-width: 100%;
  height: auto;
  align-self: flex-start;
  margin-left: calc(var(--vcard-name-offset) * var(--vcard-scale));
}

.vcard-photo {
  width: 100%;
  aspect-ratio: 608 / 687;
  border-radius: calc(14px * var(--vcard-scale));
  background: #f0f2f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--md-text-disabled);
  font-weight: 600;
}

.vcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vcard-photo--contain img {
  object-fit: contain;
}

.vcard-name {
  font-size: calc(var(--vcard-name-size) * var(--vcard-scale));
  line-height: calc(var(--vcard-name-line) * var(--vcard-scale));
  font-weight: 700;
  color: var(--vcard-name-color);
  margin-left: calc(var(--vcard-name-offset) * var(--vcard-scale));
}

.vcard-card--simple .vcard-name {
  margin-top: calc(36px * var(--vcard-scale));
}

.vcard-qr--card {
  position: absolute;
  right: calc(var(--vcard-qr-offset) * var(--vcard-scale));
  bottom: calc(var(--vcard-qr-offset) * var(--vcard-scale));
  width: calc(var(--vcard-qr-size) * var(--vcard-scale) * var(--vcard-qr-scale));
  height: calc(var(--vcard-qr-size) * var(--vcard-scale) * var(--vcard-qr-scale));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vcard-qr--card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vcard-meta {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.vcard-details {
  flex: 1;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--md-text-regular);
}

.vcard-details strong {
  color: var(--md-text-primary);
}

.vcard-qr {
  /* width: 76px;
  height: 76px; */
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vcard-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vcard-vcf-panel {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--md-border-subtle);
  padding: 16px;
}

.vcard-vcf-text {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
}

.vcard-cropper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.vcard-cropper-preview {
  position: relative;
  width: 304px;
  height: 343.5px;
  aspect-ratio: 608 / 687;
  border-radius: 14px;
  border: 1px dashed var(--md-border-default);
  background: #f7f8fa;
  overflow: hidden;
}

.vcard-cropper-preview img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  user-select: none;
  cursor: grab;
}

.vcard-cropper-preview.is-dragging img {
  cursor: grabbing;
}

.vcard-cropper-mask {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid rgba(var(--tblr-primary-rgb), 0.55);
  pointer-events: none;
}

/* Keep the cropper above the Bootstrap drawer used by the vCard form. */
.employee-vcards-page .modal-overlay[data-modal="vcard-cropper"] {
  z-index: 1300;
}
.position-absolute { position: absolute !important; }
.top-0 { top: 0 !important; }
.top-50 { top: 50% !important; }
.start-50 { left: 50% !important; }
.start-100 { left: 100% !important; }
.translate-middle { transform: translate(-50%, -50%) !important; }

.navbar {
  display: flex;
  align-items: center;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.navbar-nav {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
}

.nav-item {
  list-style: none;
}

.nav-vertical {
  flex-direction: column;
}

.nav-pills {
  gap: 4px;
}

.nav-link-title {
  font-size: 14px;
}

.dropdown {
  position: relative;
}

.dropdown-menu-end {
  right: 0;
  left: auto;
}

.notification-menu {
  width: 340px;
  top: calc(100% + 8px);
}

.admin-shell .admin-header .nav-link {
  color: var(--md-text-regular);
  display: inline-flex;
  align-items: center;
  gap: var(--md-space-2);
  font-weight: 600;
  height: 56px;
  padding: 0 8px;
}

.admin-shell .admin-header .nav-link:hover,
.admin-shell .admin-header .nav-link:focus {
  color: var(--md-brand-primary);
}

.admin-shell .admin-header .nav-link svg {
  display: block;
}

.admin-shell .admin-header #notification-toggle {
  border-radius: 0;
}

.admin-shell .admin-header #notification-toggle:hover,
.admin-shell .admin-header #notification-toggle:focus {
  background: var(--md-brand-hover-fill);
}

.admin-shell [data-role="notification-badge"] {
  font-size: 10px;
  line-height: 1;
  height: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: 16px;
  transform: translate(-50%, 0);
  text-align: center;
}

.list-group-item-action {
  cursor: pointer;
  transition: background 0.15s ease;
}

.list-group-item-action:hover {
  background: var(--md-brand-hover-fill);
}

.table-sm thead th,
.table-sm tbody td {
  padding: 8px 12px;
}

.table-vcenter tbody td,
.table-vcenter thead th {
  vertical-align: middle;
}

.table-nowrap th,
.table-nowrap td {
  white-space: nowrap;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--md-radius-md);
  border: 1px solid var(--md-border-subtle);
  background: var(--md-fill-surface);
}

.alert-info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #1e3a8a;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #92400e;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #991b1b;
}

.btn-secondary {
  background: var(--md-fill-hover);
  border-color: var(--md-border-default);
  color: var(--md-text-regular);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--md-brand-outline);
  color: var(--md-brand-primary);
  background: var(--md-brand-hover-fill);
}

.btn-success {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.btn-outline-success {
  border-color: rgba(22, 163, 74, 0.55);
  color: #166534;
}

.btn-outline-info {
  border-color: rgba(14, 116, 144, 0.35);
  color: #0e7490;
}

.btn-light {
  background: var(--md-fill-surface);
  border-color: var(--md-border-subtle);
  color: var(--md-text-regular);
}

.btn-list {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-list-sm {
  gap: 4px;
}

.btn-close-white::before {
  color: #ffffff;
}

.form-check-inline {
  display: inline-flex;
}

.form-switch .form-check-input {
  width: 36px;
  height: 18px;
}

.spinner-border {
  width: 24px;
  height: 24px;
  border: 2px solid var(--md-border-subtle);
  border-top-color: var(--md-brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-border-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.collapse {
  display: none;
}

.collapse.show {
  display: block;
}

@media (min-width: 768px) {
  .navbar-expand-md .navbar-collapse {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }
}

.navbar-collapse {
  width: 100%;
}

.fade {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.fade.show {
  opacity: 1;
}

/* Compatibility helpers (Tabler-like utilities still referenced in markup) */
.row-cards { row-gap: var(--md-space-5); }

.space-y > * + * { margin-top: var(--md-space-3); }

.fs-6 { font-size: 16px !important; }

.w-1 { width: 1% !important; }

.rounded-pill { border-radius: var(--md-radius-pill) !important; }

.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }
.bottom-0 { bottom: 0 !important; }

.img-fluid { max-width: 100%; height: auto; }

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--md-text-primary);
  margin: 0;
}

.form-hint {
  font-size: 12px;
  color: var(--md-text-secondary);
  margin-top: 4px;
}

.text-blue { color: var(--md-brand-primary) !important; }
.text-green { color: #16a34a !important; }
.text-yellow { color: #b45309 !important; }
.text-red { color: #b42318 !important; }
.text-purple { color: #6b21a8 !important; }
.text-cyan { color: #0e7490 !important; }
.text-info { color: #0e7490 !important; }

.bg-green { background: #16a34a !important; color: #ffffff !important; }
.bg-red { background: #ef4444 !important; color: #ffffff !important; }
.bg-yellow { background: #f59e0b !important; color: #ffffff !important; }

.bg-primary-lt { background: rgba(var(--tblr-primary-rgb), 0.12) !important; color: var(--md-brand-primary) !important; }
.bg-secondary-lt { background: rgba(134, 144, 156, 0.12) !important; color: var(--md-text-regular) !important; }
.bg-success-lt { background: rgba(22, 163, 74, 0.12) !important; color: #166534 !important; }
.bg-danger-lt { background: rgba(239, 68, 68, 0.12) !important; color: #b42318 !important; }
.bg-info-lt { background: rgba(14, 116, 144, 0.12) !important; color: #0e7490 !important; }
.bg-blue-lt { background: rgba(var(--tblr-primary-rgb), 0.12) !important; color: var(--md-brand-primary) !important; }
.bg-green-lt { background: rgba(22, 163, 74, 0.12) !important; color: #166534 !important; }
.bg-red-lt { background: rgba(239, 68, 68, 0.12) !important; color: #b42318 !important; }
.bg-yellow-lt { background: rgba(245, 158, 11, 0.12) !important; color: #b45309 !important; }
.bg-purple-lt { background: rgba(147, 51, 234, 0.12) !important; color: #6b21a8 !important; }
.bg-cyan-lt { background: rgba(14, 116, 144, 0.12) !important; color: #0e7490 !important; }
.bg-gray-lt { background: #f2f3f5 !important; color: var(--md-text-regular) !important; }
.bg-gray-100 { background: #f7f8fa !important; color: var(--md-text-regular) !important; }
.bg-gray-200 { background: #e5e6eb !important; color: var(--md-text-regular) !important; }
.bg-secondary-subtle { background: rgba(134, 144, 156, 0.12) !important; color: var(--md-text-regular) !important; }

.avatar {
  --avatar-size: 40px;
  width: var(--avatar-size);
  height: var(--avatar-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--md-radius-pill);
  font-weight: 600;
  font-size: 14px;
  color: var(--md-text-regular);
  background: var(--md-fill-hover);
  background-size: cover;
  background-position: center;
}

.avatar-xs { --avatar-size: 24px; font-size: 10px; }
.avatar-sm { --avatar-size: 32px; font-size: 12px; }
.avatar-lg { --avatar-size: 48px; font-size: 16px; }
.avatar-xl { --avatar-size: 64px; font-size: 18px; }

.toast-container {
  z-index: 1100;
}

.toast {
  display: flex;
  align-items: center;
  border-radius: var(--md-radius-md);
  min-width: 280px;
  max-width: 360px;
  margin-bottom: 8px;
  padding: 0;
  box-shadow: 0 16px 24px -18px rgba(19, 18, 26, 0.35);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.toast.show {
  opacity: 1;
}

.toast.showing {
  opacity: 1;
}

.toast-body {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}

.text-bg-primary { background: var(--md-brand-primary) !important; color: var(--md-on-primary) !important; }
.text-bg-success { background: #16a34a !important; color: #ffffff !important; }
.text-bg-danger { background: #ef4444 !important; color: #ffffff !important; }
.text-bg-warning { background: #f59e0b !important; color: #ffffff !important; }

.toast.app-toast--success,
.toast.text-bg-success {
  background: #16a34a !important;
  background-color: #16a34a !important;
  color: #ffffff !important;
}

.toast.app-toast--danger,
.toast.text-bg-danger {
  background: #ef4444 !important;
  background-color: #ef4444 !important;
  color: #ffffff !important;
}

.notice-editor .ql-toolbar.ql-snow {
  border-radius: 8px 8px 0 0;
}

.notice-editor .ql-container.ql-snow {
  min-height: 220px;
  border-radius: 0 0 8px 8px;
}

.meeting-room-scheduler {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.5rem;
}

.meeting-room-scheduler__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.meeting-room-scheduler__filters .scheduler-field {
  min-width: 140px;
  flex: 1 1 160px;
}

.meeting-room-scheduler__filters .scheduler-field--grow {
  flex: 2 1 240px;
}

.meeting-room-scheduler__filters .scheduler-field--toggle {
  flex: 0 0 auto;
  align-self: flex-end;
}

.meeting-room-scheduler__actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.meeting-room-scheduler__actions .btn {
  border-radius: 999px;
  border-color: transparent;
  background: transparent;
  color: #475569;
  padding: 4px 10px;
}

.meeting-room-scheduler__actions .btn:hover,
.meeting-room-scheduler__actions .btn:focus {
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #1f2937;
}

.meeting-room-scheduler__actions .btn[data-action="meeting-room-toggle-advanced"][aria-expanded="true"] {
  background: var(--md-brand-hover-fill);
  border-color: var(--md-brand-outline);
  color: var(--md-brand-primary);
}

.meeting-room-scheduler__filters--advanced {
  display: contents;
}

.meeting-room-scheduler__selection {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 12px;
}

.meeting-room-scheduler__selection .scheduler-field {
  min-width: 140px;
  flex: 1 1 160px;
}

.meeting-room-scheduler__selection .scheduler-field--grow {
  flex: 2 1 240px;
}

.meeting-room-timeline {
  margin-top: 16px;
  border: 1px solid #eef0f4;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.meeting-room-timeline__head {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #eef0f4;
}

.meeting-room-timeline__room-col {
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13px;
  color: #475569;
}

.meeting-room-timeline__hours {
  display: grid;
  grid-template-columns: repeat(var(--timeline-hours, 1), minmax(30px, 1fr));
  padding: 10px 0;
  gap: 0;
  font-size: 11px;
  color: #64748b;
}

.meeting-room-timeline__hours span {
  text-align: center;
  white-space: nowrap;
}

.meeting-room-timeline--week .meeting-room-timeline__hours span {
  font-size: 11px;
}

.meeting-room-timeline__body {
  max-height: 320px;
  overflow-y: auto;
  padding-top: 12px;
  padding-bottom: 4px;
}

.meeting-room-timeline__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid #eef0f4;
  cursor: pointer;
}

.meeting-room-timeline__row:last-child {
  border-bottom: none;
}

.meeting-room-timeline__row:hover {
  background: #f8fafc;
}

.meeting-room-timeline__row.is-selected {
  background: #f8fafc;
}

.meeting-room-timeline__room {
  padding: 10px 12px;
  font-weight: 600;
  color: #1f2937;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meeting-room-timeline__row.is-selected .meeting-room-timeline__room {
  color: #1d4ed8;
}

.meeting-room-timeline__room-name {
  font-weight: 600;
}

.meeting-room-timeline__room-location {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.meeting-room-timeline__track {
  position: relative;
  height: 48px;
  background-image: linear-gradient(to right, #eef0f4 1px, transparent 1px);
  background-size: calc(100% / var(--timeline-hours, 1)) 100%;
}

.meeting-room-timeline__segment {
  position: absolute;
  top: 65%;
  transform: translateY(-50%);
  height: 3px;
  background: #ef4444;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.16);
  z-index: 1;
  overflow: visible;
}

.meeting-room-timeline__segment-time {
  position: absolute;
  bottom: 100%;
  margin-bottom: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.meeting-room-timeline__segment-time--start {
  left: 0;
  transform: translateX(0);
}

.meeting-room-timeline__segment-time--end {
  left: 100%;
  transform: translateX(-100%);
}

.meeting-room-timeline__selection {
  position: absolute;
  top: 65%;
  transform: translateY(-50%);
  height: 6px;
  background: #3b82f6;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
  z-index: 2;
  pointer-events: none;
}

.meeting-room-timeline__selection-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #1e3a8a;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

body.meeting-room-dragging {
  user-select: none;
  cursor: crosshair;
}

.meeting-room-timeline__empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 992px) {
  .meeting-room-timeline__head,
  .meeting-room-timeline__row {
    grid-template-columns: 140px 1fr;
  }
}

.smart-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.smart-kpi-item {
  background: var(--md-fill-surface);
  border: 1px solid var(--md-border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.smart-kpi-item.border-primary {
  border-color: rgba(32, 107, 196, 0.35);
}

.smart-kpi-item.border-success {
  border-color: rgba(22, 163, 74, 0.35);
}

.smart-kpi-item.border-info {
  border-color: rgba(2, 132, 199, 0.35);
}

.smart-kpi-item.border-warning {
  border-color: rgba(217, 119, 6, 0.35);
}

.smart-kpi-item.border-danger {
  border-color: rgba(220, 38, 38, 0.35);
}

.smart-kpi-label {
  color: var(--md-text-secondary);
  font-size: 12px;
  line-height: 1.2;
}

.smart-kpi-value {
  margin-top: 6px;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: var(--md-text-primary);
}

.smart-iot-page #smart-area-list .list-group-item {
  border: 1px solid var(--md-border-subtle);
  border-radius: 8px;
  margin-bottom: 8px;
}

.smart-iot-page #smart-area-list .list-group-item:last-child {
  margin-bottom: 0;
}

.smart-iot-page #smart-area-list .list-group-item.active {
  border-color: rgba(32, 107, 196, 0.45);
  background: rgba(32, 107, 196, 0.08);
  color: var(--md-text-primary);
}

.smart-iot-main {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.smart-iot-main__areas,
.smart-iot-main__content {
  min-width: 0;
}

.smart-iot-main__areas .admin-card,
.smart-iot-main__content .admin-card {
  height: auto;
}

@media (max-width: 992px) {
  .smart-iot-main {
    grid-template-columns: 1fr;
  }
}

.smart-iot-logs-page #smart-rule-log-list,
.smart-iot-logs-page #smart-control-log-list {
  max-height: 62vh;
  overflow: auto;
}

.smart-iot-logs-page .list-group-item code,
.smart-iot-logs-page .list-group-item .small {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.smart-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.smart-device-card {
  border: 1px solid var(--md-border-subtle);
  border-radius: 10px;
  background: var(--md-fill-surface);
  padding: 12px;
}

.smart-device-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.smart-device-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--md-text-primary);
}

.smart-device-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smart-device-card__actions .btn {
  flex: 1 1 90px;
}

.smart-op-status {
  min-width: 150px;
  text-align: right;
  font-weight: 600;
}

.smart-plan-list .smart-plan-item:last-child {
  margin-bottom: 0 !important;
}

.smart-plan-item .btn {
  min-width: 90px;
}

.smart-plan-device-list {
  border: 1px solid var(--md-border-subtle);
  border-radius: 8px;
  max-height: 220px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.5);
}

.smart-plan-device-item {
  display: grid;
  grid-template-columns: 32px minmax(160px, 2fr) minmax(180px, 2fr) minmax(220px, 2.5fr);
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px dashed var(--md-border-subtle);
}

.smart-plan-device-item--header {
  font-size: 12px;
  color: var(--md-text-secondary);
  font-weight: 700;
  background: rgba(148, 163, 184, 0.08);
}

.smart-plan-device-item:last-child {
  border-bottom: 0;
}

.smart-plan-device-index {
  color: var(--md-text-secondary);
  font-size: 12px;
}

.smart-plan-device-name {
  font-weight: 600;
  color: var(--md-text-primary);
}

.smart-plan-device-meta {
  color: var(--md-text-secondary);
  font-size: 12px;
}

.smart-plan-log-list {
  border: 1px solid var(--md-border-subtle);
  border-radius: 8px;
  max-height: 220px;
  overflow: auto;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.5);
}

.smart-plan-log-item {
  display: grid;
  grid-template-columns: 90px 180px minmax(220px, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px dashed var(--md-border-subtle);
}

.smart-plan-log-item:last-child {
  border-bottom: 0;
}

.smart-plan-log-time {
  color: var(--md-text-secondary);
  font-size: 12px;
}

.smart-plan-log-summary {
  color: var(--md-text-primary);
  font-size: 12px;
}

.smart-boards-busy {
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.smart-plan-picker {
  background: rgba(255, 255, 255, 0.55);
}

.smart-plan-area-list {
  max-height: 132px;
  overflow: auto;
  border: 1px solid var(--md-border-subtle);
  border-radius: 8px;
}

.smart-plan-area-item {
  display: grid;
  grid-template-columns: 22px minmax(160px, 2fr) minmax(120px, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px dashed var(--md-border-subtle);
  cursor: pointer;
}

.smart-plan-area-item:last-child {
  border-bottom: 0;
}

.smart-plan-area-name {
  color: var(--md-text-primary);
  font-size: 13px;
  font-weight: 600;
}

.smart-plan-area-meta {
  color: var(--md-text-secondary);
  font-size: 12px;
}

.smart-plan-picker-list {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--md-border-subtle);
  border-radius: 8px;
}

.smart-plan-picker-item {
  display: grid;
  grid-template-columns: 22px minmax(180px, 2fr) minmax(160px, 1.5fr);
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px dashed var(--md-border-subtle);
  cursor: pointer;
}

.smart-plan-picker-item:last-child {
  border-bottom: 0;
}

.smart-plan-picker-name {
  color: var(--md-text-primary);
  font-size: 13px;
}

.smart-plan-picker-meta {
  color: var(--md-text-secondary);
  font-size: 12px;
}

.smart-dashboard-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px;
  border: 1px solid var(--md-border-subtle);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.92);
}

.smart-dashboard-tabs__nav {
  gap: 6px;
}

.smart-dashboard-tabs .nav-link {
  border-radius: 6px;
  color: var(--md-text-secondary);
  font-weight: 700;
  padding: 8px 14px;
}

.smart-dashboard-tabs .nav-link.active {
  background: #1f6feb;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 111, 235, 0.18);
}

.smart-floor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--md-border-subtle);
  border-radius: 8px;
  background: var(--md-fill-surface);
}

.smart-floor-toolbar__title {
  color: var(--md-text-primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.smart-floor-toolbar__meta {
  margin-top: 3px;
  color: var(--md-text-secondary);
  font-size: 12px;
}

.smart-floor-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.smart-floor-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--md-border-subtle);
  border-radius: 8px;
  background: #fff;
  color: var(--md-text-primary);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
}

.smart-floor-tab strong {
  min-width: 42px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--md-text-secondary);
  padding: 3px 7px;
  text-align: center;
  font-size: 12px;
  line-height: 1;
}

.smart-floor-tab.is-active {
  border-color: rgba(31, 111, 235, 0.55);
  background: rgba(31, 111, 235, 0.08);
  color: #164ea6;
}

.smart-floor-tab.is-active strong {
  background: #1f6feb;
  color: #fff;
}

.smart-ac-strategy {
  border: 1px solid var(--md-border-subtle);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.92);
  padding: 12px;
}

.smart-plan-builder {
  display: grid;
  gap: 12px;
}

.smart-plan-step {
  border: 1px solid var(--md-border-subtle);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 12px;
}

.smart-plan-step__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.smart-plan-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #1f6feb;
  color: #fff;
  flex: 0 0 26px;
  font-size: 12px;
  font-weight: 800;
}

.smart-plan-step__title {
  color: var(--md-text-primary);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.smart-plan-step__meta {
  color: var(--md-text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.smart-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.smart-quick-actions .btn {
  min-height: 38px;
}

.smart-plan-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.smart-plan-actions .btn {
  min-width: 132px;
}

.smart-plan-list {
  display: grid;
  gap: 10px;
}

.smart-plan-item {
  border: 1px solid var(--md-border-subtle) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px !important;
}

.smart-plan-item__main {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.smart-plan-item__title {
  color: var(--md-text-primary);
  font-size: 14px;
  font-weight: 800;
}

.smart-plan-item__meta,
.smart-plan-item__label {
  color: var(--md-text-secondary);
  font-size: 12px;
}

.smart-plan-item__value {
  color: var(--md-text-primary);
  font-size: 13px;
  font-weight: 700;
}

.smart-plan-item__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.smart-plan-item__actions .btn {
  min-width: auto;
}

.smart-plan-item__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--md-text-secondary);
  font-size: 12px;
}

.smart-plan-side .admin-card + .admin-card {
  margin-top: 12px;
}

.smart-plan-side .smart-plan-item__main {
  grid-template-columns: 1fr;
}

.smart-plan-side .smart-plan-item__actions {
  justify-content: flex-start;
}

@media (max-width: 992px) {
  .smart-plan-item__main {
    grid-template-columns: 1fr;
  }

  .smart-plan-item__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .smart-floor-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .smart-floor-tabs {
    justify-content: flex-start;
  }

  .smart-quick-actions {
    grid-template-columns: 1fr;
  }
}

.hrms-dashboard-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  row-gap: 16px;
  height: calc(100dvh - 72px);
  min-height: 0;
  padding: 0;
  color: #13121a;
  background: transparent;
  overflow: hidden;
}

.hrms-dashboard-page .hrms-dashboard-head {
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 0;
}

.hrms-dashboard-page .admin-page-title {
  margin: 0;
  color: #13121a;
  font-size: 26px;
  font-weight: 700;
  line-height: 34px;
}

.hrms-dashboard-page .admin-page-subtitle {
  margin: 8px 0 0;
  color: #86909c;
  font-size: 14px;
  line-height: 22px;
}

.hrms-dashboard-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 260px;
  padding-top: 44px;
}

.hrms-dashboard-time {
  color: #6b7788;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

.hrms-dashboard-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  min-height: 0;
}

.hrms-dashboard-section {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

#hrms-weekly-content,
#hrms-monthly-content {
  flex: 1 1 auto;
  min-height: 0;
}

#hrms-weekly-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#hrms-monthly-content {
  overflow: auto;
}

.hrms-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 24px;
  border-bottom: 0;
  box-shadow: inset 0 0 0 2px #fff;
}

.hrms-dashboard-section:first-child .hrms-section-head {
  background: linear-gradient(90deg, #f5f6ff 0%, #ffffff 100%);
}

.hrms-dashboard-section:nth-child(2) .hrms-section-head {
  background: linear-gradient(90deg, #fffaf0 0%, #ffffff 100%);
}

.hrms-section-head > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.hrms-dashboard-page .hrms-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #13121a;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.hrms-dashboard-page .hrms-section-head h2::before {
  content: '';
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: url("../icons/hrms-peoples.svg") center / 16px 16px no-repeat;
  font-weight: 400;
  line-height: 1;
}

.hrms-dashboard-section:nth-child(2) .hrms-section-head h2::before {
  background-image: url("../icons/hrms-building.svg");
}

.hrms-section-head p {
  margin: 0;
  color: #27262e;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

.hrms-section-head--with-filter {
  align-items: center;
}

.hrms-cost-filter {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.hrms-period-segments {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 2px;
  border-radius: 4px;
  background: #f7f7fa;
  overflow: hidden;
}

.hrms-period-segments button {
  min-width: 72px;
  height: 26px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  color: #4e5969;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.hrms-period-segments button.is-active {
  color: #264aff;
  background: #e5e8ff;
  box-shadow: none;
}

.hrms-period-value {
  margin: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hrms-period-value::after {
  content: '';
  position: absolute;
  right: 0;
  width: 16px;
  height: 16px;
  pointer-events: none;
  background: #264aff;
  -webkit-mask: url("../icons/expand-more.svg") center / 16px 16px no-repeat;
  mask: url("../icons/expand-more.svg") center / 16px 16px no-repeat;
}

.hrms-period-value select {
  height: 30px;
  width: 80px;
  min-width: 80px;
  padding: 0 20px 0 0;
  border: 0;
  color: #264aff;
  background: transparent;
  appearance: none;
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  text-align: right;
  outline: none;
  cursor: pointer;
}

.hrms-weekly-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  margin: 16px 24px;
  padding: 18px 0;
  border-radius: 4px;
  background: #f7f7fa;
}

.hrms-weekly-kpi {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  padding: 4px 16px;
  border: 0;
  border-right: 1px solid #e6e7eb;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.hrms-weekly-kpi:last-child {
  border-right: 0;
}

.hrms-weekly-kpi:hover,
.hrms-weekly-kpi:focus {
  outline: none;
}

.hrms-kpi-label {
  color: #6b7788;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.hrms-kpi-value {
  color: #13121a;
  font-size: 26px;
  font-weight: 700;
  line-height: 32px;
}

.hrms-weekly-detail {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0 24px 28px;
}

.hrms-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 32px;
  margin-bottom: 16px;
  border-bottom: 1px solid #F2F3F5;
}

.hrms-tab {
  position: relative;
  height: 36px;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  color: #27262e;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  cursor: pointer;
}

.hrms-tab:hover,
.hrms-tab:focus {
  color: #3158f5;
  outline: none;
}

.hrms-tab.is-active {
  color: #27262e;
}

.hrms-tab.is-active::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #3158f5;
}

.hrms-table-wrap {
  width: 100%;
  overflow-x: hidden;
}

.hrms-weekly-detail .hrms-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.hrms-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.hrms-weekly-detail .hrms-table {
  border-collapse: separate;
  border-spacing: 0;
}

.hrms-table th,
.hrms-table td {
  padding: 16px 14px;
  border-bottom: 1px solid #F2F3F5;
  color: #27262e;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
}

.hrms-table thead th {
  padding-top: 14px;
  padding-bottom: 14px;
  background: #f2f3f7;
  color: #6b7788;
  font-weight: 400;
}

.hrms-weekly-detail .hrms-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
  line-height: 22px;
}

.hrms-weekly-detail .hrms-table th:last-child,
.hrms-weekly-detail .hrms-table td:last-child {
  text-align: right;
}

.hrms-table tbody tr:last-child td {
  border-bottom: 0;
}

.hrms-weekly-view-all {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  padding: 16px 0 0;
  border-top: 1px solid #F2F3F5;
}

.hrms-weekly-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #264aff;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-decoration: none;
}

.hrms-weekly-view-all-link:hover,
.hrms-weekly-view-all-link:focus {
  color: #264aff;
  text-decoration: none;
  outline: none;
}

.hrms-weekly-view-all-icon {
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("../icons/expand-more.svg") center / 16px 16px no-repeat;
  mask: url("../icons/expand-more.svg") center / 16px 16px no-repeat;
  transform: rotate(-90deg);
}

.hrms-employee-cell,
.hrms-organization-cell,
.hrms-compensation-cell {
  display: grid;
  gap: 6px;
}

.hrms-employee-name {
  color: #27262e;
  font-size: 14px;
  line-height: 22px;
}

.hrms-status-badge {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 18px;
}

.hrms-status-badge.is-warning {
  color: #ff7d00;
  background: #fff3e1;
}

.hrms-status-badge.is-success {
  color: #00b42a;
  background: #e8ffea;
}

.hrms-status-badge.is-danger {
  color: #f5222d;
  background: #fff1f0;
}

.hrms-status-badge.is-neutral {
  color: #6b7788;
  background: #f2f3f7;
}

.hrms-organization-line {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  color: #27262e;
}

.hrms-organization-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: center / 14px 14px no-repeat;
}

.hrms-organization-icon--local {
  background-image: url("../icons/hrms-local-two.svg");
}

.hrms-organization-icon--organization {
  background-image: url("../icons/hrms-shopping-mall.svg");
}

.hrms-organization-icon--people {
  background-image: url("../icons/hrms-people.svg");
}

.hrms-compensation-cell {
  display: inline-grid;
  grid-template-columns: max-content 30px;
  column-gap: 4px;
  row-gap: 6px;
  justify-content: end;
  justify-items: stretch;
}

.hrms-compensation-cell div {
  display: contents;
}

.hrms-compensation-cell div > span {
  text-align: right;
  white-space: nowrap;
}

.hrms-compensation-cell small {
  color: #86909c;
  font-size: 13px;
  width: 30px;
  text-align: left;
  white-space: nowrap;
}

.hrms-cost-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 24px;
  padding: 0;
  border-radius: 4px;
}

.hrms-cost-panel {
  position: relative;
  min-width: 0;
}

.hrms-cost-panel + .hrms-cost-panel {
  padding-left: 16px;
  border-left: 1px solid #F2F3F5;
}

.hrms-cost-panel h3 {
  margin: 0 0 8px;
  color: #13121a;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
}

.hrms-currency-grid {
  display: grid;
  gap: 2px;
}

.hrms-currency-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  border-radius: 8px;
  background: #f7f7fa;
  overflow: hidden;
}

.hrms-currency-row:first-child {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.hrms-currency-row:last-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.hrms-currency-line {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-areas:
    "code symbol"
    "amount amount";
  gap: 2px 8px;
  min-width: 0;
  padding: 8px 16px;
  background: transparent;
}

.hrms-currency-line + .hrms-currency-line {
  border-left: 0;
}

.hrms-currency-line + .hrms-currency-line::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 1px;
  background: #e6e7eb;
}

.hrms-currency-code {
  grid-area: code;
  color: #4e5969;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.hrms-currency-symbol {
  grid-area: symbol;
  color: #86909c;
  font-size: 12px;
  line-height: 22px;
}

.hrms-currency-amount {
  grid-area: amount;
  min-width: 0;
  color: #13121a;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.hrms-empty-money {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 4px;
  color: #86909c;
  background: #f7f7fa;
  font-size: 16px;
}

.hrms-currency-more {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3158f5;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

.hrms-currency-more:hover,
.hrms-currency-more:focus {
  text-decoration: underline;
  outline: none;
}

.hrms-currency-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(420px, 100%);
  padding: 12px;
  border: 1px solid #F2F3F5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.hrms-cost-divider {
  height: 1px;
  margin: 0 24px 16px;
  background: #F2F3F5;
}

.hrms-cost-breakdown {
  padding: 0 24px 28px;
}

.hrms-cost-breakdown-table-wrap {
  overflow-x: hidden;
}

.hrms-cost-breakdown-table {
  table-layout: fixed;
}

.hrms-cost-base-col {
  width: 22%;
}

.hrms-cost-currency-col {
  width: 27%;
}

.hrms-cost-amount-col {
  width: 25.5%;
}

.hrms-cost-breakdown-table th,
.hrms-cost-breakdown-table td {
  height: 40px;
  padding: 8px 24px;
  border-bottom: 1px solid #F2F3F5;
  color: #13121a;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.hrms-cost-breakdown-table thead th {
  height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: #f2f3f7;
  color: #6b7788;
  font-weight: 400;
  white-space: nowrap;
}

.hrms-cost-breakdown-table thead th:first-child {
  border-right: 1px solid #F2F3F5;
}

.hrms-cost-breakdown-table .hrms-cost-base-cell {
  border-right: 1px solid #F2F3F5;
  color: #13121a;
  font-size: 14px;
  text-align: left;
  vertical-align: middle;
}

.hrms-cost-breakdown-table .hrms-cost-amount-head,
.hrms-cost-breakdown-table .hrms-cost-amount-cell {
  text-align: right;
}

.hrms-cost-breakdown-table .hrms-cost-amount-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hrms-cost-breakdown-table .hrms-cost-detail-row.is-group-start td {
  border-top: 1px solid #F2F3F5;
}

.hrms-cost-breakdown-table tbody tr:last-child td {
  border-bottom: 1px solid #F2F3F5;
}

.hrms-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 112px;
  padding: 24px;
  color: #86909c;
  text-align: center;
}

.hrms-state strong {
  color: #4e5969;
  font-size: 14px;
}

.hrms-state p {
  max-width: 520px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.hrms-state--error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 28px;
  border: 1px solid rgba(245, 34, 45, 0.18);
  border-radius: 8px;
  background: rgba(245, 34, 45, 0.04);
}

.hrms-state--error strong {
  color: #f5222d;
}

.hrms-skeleton-card,
.hrms-skeleton-tabs,
.hrms-skeleton-table {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f3f5;
}

.hrms-skeleton-card {
  height: 94px;
}

.hrms-skeleton-card--tall {
  height: 156px;
}

.hrms-skeleton-tabs {
  width: 220px;
  height: 32px;
  margin: 0 28px 16px;
}

.hrms-skeleton-table {
  height: 180px;
  margin: 0 28px 28px;
}

.hrms-skeleton-card::after,
.hrms-skeleton-tabs::after,
.hrms-skeleton-table::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: hrms-skeleton-shimmer 1.4s infinite;
}

@keyframes hrms-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1400px) {
  .hrms-dashboard-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 992px) {
  .hrms-dashboard-page .hrms-dashboard-head,
  .hrms-section-head,
  .hrms-section-head--with-filter,
  .hrms-section-head > div:first-child {
    align-items: stretch;
    flex-direction: column;
  }

  .hrms-dashboard-head-actions {
    justify-content: flex-start;
    min-width: 0;
    padding-top: 0;
  }

  .hrms-cost-filter {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hrms-section-head,
  .hrms-weekly-detail,
  .hrms-cost-breakdown {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hrms-weekly-summary,
  .hrms-cost-divider {
    margin-right: 16px;
    margin-left: 16px;
  }

  .hrms-cost-top {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 16px;
    padding-left: 16px;
  }

  .hrms-cost-panel + .hrms-cost-panel {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid #F2F3F5;
    border-left: 0;
  }

  .hrms-table th,
  .hrms-table td {
    padding: 12px 8px;
    font-size: 12px;
  }
}

#finance-suppliers-page .finance-supplier-action-disabled,
#finance-suppliers-page .finance-supplier-action-disabled:hover,
#finance-suppliers-page .finance-supplier-action-disabled:focus {
  color: #98a1ad !important;
  background: #f1f3f5 !important;
  border: 1px dashed #cfd5dc !important;
  padding: 0.25rem 0.5rem !important;
  text-decoration: none !important;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none !important;
}

#finance-suppliers-page .admin-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

#finance-suppliers-page .admin-tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

#finance-suppliers-page .finance-directory-filter-actions {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: var(--md-space-2);
  width: auto;
}

#finance-suppliers-page .finance-directory-filter-actions .btn:not(.filter-reset-action) {
  min-width: 96px;
  min-height: 40px;
  white-space: nowrap;
}

.finance-bank-picker-modal {
  z-index: 1230;
}

.finance-bank-picker-search {
  display: block;
  margin-bottom: var(--md-space-3);
}

.finance-bank-picker-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--md-border-subtle);
  border-radius: var(--md-radius-sm);
}

.finance-bank-picker-table {
  margin-bottom: 0;
}

.finance-bank-picker-table th,
.finance-bank-picker-table td {
  vertical-align: middle;
}

.finance-bank-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md-space-3);
  margin-top: var(--md-space-3);
}

.finance-bank-picker-pager {
  display: flex;
  align-items: center;
  gap: var(--md-space-2);
}

.finance-bank-picker-page-jump {
  display: inline-flex;
  align-items: center;
  gap: var(--md-space-1);
  margin: 0;
  color: var(--md-text-secondary);
  white-space: nowrap;
}

.finance-bank-picker-page-jump .form-control {
  width: 72px;
  min-height: 40px;
  text-align: center;
}

@media (max-width: 768px) {
  #finance-suppliers-page .admin-tab {
    min-height: 54px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 18px;
  }

  .finance-bank-picker-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-bank-picker-pager {
    justify-content: flex-end;
  }
}

/* Finance system data sync */
#finance-data-sync-page,
#finance-data-sync-page .admin-card,
#finance-data-sync-page .admin-filters > * {
  min-width: 0;
}

#finance-data-sync-page {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#finance-data-sync-page .admin-actions,
#finance-data-sync-page .admin-tabs {
  flex-wrap: wrap;
}

#finance-data-sync-page .admin-tab {
  white-space: nowrap;
}

#finance-data-sync-page .finance-sync-filter-actions {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: var(--md-space-3);
  width: auto;
}

#finance-data-sync-page .finance-sync-filter-actions .btn:not(.filter-reset-action) {
  min-width: 96px;
  min-height: 40px;
  white-space: nowrap;
}

#finance-data-sync-page .admin-filters .form-control,
#finance-data-sync-page .admin-filters .form-select {
  width: 100%;
  min-width: 0;
}

.finance-sync-field-map tbody td:last-child {
  max-width: 560px;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  #finance-data-sync-page .admin-actions {
    width: 100%;
    margin-left: 0;
  }

  #finance-data-sync-page .admin-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }

  #finance-data-sync-page .admin-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
  }

  #finance-data-sync-page .admin-tab {
    display: grid;
    place-items: center;
    min-height: 54px;
    padding: 8px 6px;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    white-space: normal;
  }

  #finance-data-sync-page .admin-card .card-header,
  #finance-data-sync-page .admin-card .card-body {
    padding-right: 12px;
    padding-left: 12px;
  }

  #finance-data-sync-page .admin-filters > [class*="col-"] {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  #finance-data-sync-page .admin-filters > .col-auto {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch !important;
  }

  #finance-data-sync-page .admin-filters > .col-auto .btn {
    width: 100%;
  }

  #finance-data-sync-page .admin-filters > .finance-sync-filter-actions .filter-reset-action {
    justify-self: start;
    align-self: center;
  }

  #finance-data-sync-page .admin-pagination {
    justify-content: flex-start;
    overflow-x: auto;
  }

  #finance-data-sync-page .admin-pagination > * {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    min-width: max-content;
    margin-left: 0 !important;
  }
}
