/* IAEA App — design alignment (mobile, light, black primary actions) */
/* Loaded after style.css; scopes under .iaea-theme */

.iaea-theme {
  --iaea-black: #0a0a0a;
  --iaea-line: #e1e1e1;
  --iaea-muted: #6b6b6b;
  --iaea-bg: #ffffff;
  background: var(--iaea-bg) !important;
  color: var(--iaea-black);
}

.iaea-theme #appCapsule {
  padding-top: 56px;
  padding-bottom: calc(70px + env(safe-area-inset-bottom, 0));
  min-height: 100vh;
  background: var(--iaea-bg);
}

.iaea-theme.iaea-theme--auth #appCapsule {
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100vh;
}

/* Header — white bar, black typography (design doc) */
.iaea-theme .appHeader {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  padding: 0 4px;
  background: var(--iaea-bg) !important;
  color: var(--iaea-black) !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--iaea-line);
}

.iaea-theme .appHeader:before {
  background: var(--iaea-bg) !important;
}

.iaea-theme .appHeader .headerButton {
  color: var(--iaea-black) !important;
}

.iaea-theme .appHeader .pageTitle {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--iaea-black);
  padding: 0 8px;
  box-sizing: border-box;
}

/* Primary actions — full-width black (design) */
.iaea-theme .btn-primary,
.iaea-theme .iaea-btn-primary {
  background: var(--iaea-black) !important;
  border-color: var(--iaea-black) !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: none !important;
}

.iaea-theme .btn-primary:active,
.iaea-theme .iaea-btn-primary:active {
  opacity: 0.85;
}

/* Form stack — label above, outlined field */
.iaea-field {
  margin-bottom: 1.25rem;
}

.iaea-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--iaea-black);
  margin-bottom: 0.35rem;
}

.iaea-control,
.iaea-theme .form-control {
  border-radius: 0 !important;
  border: 1px solid var(--iaea-black) !important;
  background: #fff !important;
  color: var(--iaea-black) !important;
  font-size: 16px;
  min-height: 48px;
}

.iaea-control:focus,
.iaea-theme .form-control:focus {
  box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.12);
  border-color: var(--iaea-black) !important;
}

.iaea-hint {
  font-size: 12px;
  color: var(--iaea-muted);
  margin-top: 0.25rem;
}

.iaea-link-muted {
  color: var(--iaea-muted);
  font-size: 13px;
  text-decoration: underline;
}

/* Menu grid (main dashboard) */
.iaea-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--iaea-line);
  border: 1px solid var(--iaea-line);
  margin: 0 0 1rem 0;
}

.iaea-menu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 108px;
  padding: 12px 6px;
  background: #fff;
  color: var(--iaea-black);
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.iaea-menu-tile:active {
  background: #f4f4f4;
}

.iaea-menu-tile ion-icon {
  font-size: 28px;
  margin-bottom: 8px;
  --ionicon-stroke-width: 28px;
}

/* List rows — thin grey dividers */
.iaea-list {
  border: 1px solid var(--iaea-line);
  background: #fff;
}

.iaea-list-row {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--iaea-line);
  color: inherit;
  text-decoration: none !important;
}

.iaea-list-row:last-child {
  border-bottom: 0;
}

.iaea-list-row small {
  display: block;
  color: var(--iaea-muted);
  font-weight: 400;
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
}

/* Auth screens (splash + login) */
.iaea-auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 48px;
  background: var(--iaea-bg);
}

.iaea-splash__logo {
  max-width: 180px;
  width: 70%;
  height: auto;
  margin-bottom: 32px;
}

.iaea-login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.iaea-login-brand img {
  max-width: 140px;
  width: 55%;
  height: auto;
}

.iaea-login-brand h1 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1rem;
  color: var(--iaea-black);
}

/* Bottom LOGOUT bar (main menu) */
.iaea-footer-logout {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: #fff;
  border-top: 1px solid var(--iaea-line);
}

.iaea-footer-logout .iaea-btn-primary {
  width: 100%;
}

/* When logout footer visible, lift capsule padding */
.iaea-theme.iaea-has-logout-footer #appCapsule {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0));
}

/* Hide default bottom menu in IAEA menu mode */
.iaea-theme.iaea-has-logout-footer .appBottomMenu {
  display: none !important;
}

/* Definition lists (detail screens) */
.iaea-dl dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--iaea-muted);
}

.iaea-dl dd {
  font-size: 15px;
  margin-bottom: 0.75rem;
}

/* Tables */
.iaea-theme .table {
  border-color: var(--iaea-line);
}

.iaea-theme .table thead th,
.iaea-theme .table-primary {
  background: #fff !important;
  color: var(--iaea-black) !important;
  border-color: var(--iaea-line) !important;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ——— CIMS MOBILE (Workflow templates) ——— */

.iaea-theme--auth {
  background: #f5f5f5 !important;
}

.iaea-theme--auth #appCapsule {
  background: #f5f5f5;
}

.iaea-theme--auth.iaea-theme--auth-login,
.iaea-theme--auth.iaea-theme--auth-login #appCapsule {
  background: #fff !important;
}

/* Splash (SplashScreen.png + Logo.png) */
.iaea-splash-cims {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 48px 24px 24px;
  background: #f5f5f5;
  box-sizing: border-box;
}

.iaea-splash-cims__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.iaea-splash-cims__logo {
  max-width: min(280px, 72vw);
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 2.5rem;
}

.iaea-splash-cims__spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
}

.iaea-splash-cims__status {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #111;
}

.iaea-splash-cims__version {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: #9a9a9a;
}

/* Login (Login.png) */
.iaea-login-cims {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.iaea-login-cims__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}

.iaea-login-cims__back {
  font-size: 1.5rem;
  line-height: 1;
  color: #111;
  text-decoration: none !important;
  padding: 4px 8px;
}

.iaea-login-cims__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.iaea-login-cims__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 48px;
  background: #fff;
}

.iaea-login-cims__form {
  width: 100%;
  max-width: 360px;
}

.iaea-login-cims__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  background: #fff;
  color: #111;
}

.iaea-login-cims__input::placeholder {
  color: #b0b0b0;
}

.iaea-login-cims__input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.iaea-login-cims__device {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
  margin: 8px 0 20px;
}

.iaea-login-barcode-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 12px;
}

.iaea-login-barcode-row {
  margin-bottom: 8px;
}

.iaea-login-barcode-row .wh-field-label {
  display: none;
}

.iaea-login-barcode-row .wh-icon-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.iaea-login-userline {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  text-align: center;
  line-height: 1.35;
}

.iaea-login-cims__btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff !important;
  background: #000 !important;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
}

.iaea-login-cims__btn:active {
  opacity: 0.88;
}

/* Main menu (MainMenu.png) */
.iaea-cims-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 56px;
  padding: 0 8px;
  padding-top: env(safe-area-inset-top, 0);
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-sizing: border-box;
}

.iaea-cims-header__title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #111;
  padding-left: 4px;
}

.iaea-cims-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.iaea-cims-header__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #111;
  text-decoration: none !important;
}

.iaea-cims-header__btn ion-icon {
  font-size: 26px;
}

.iaea-cims-header__btn--muted ion-icon {
  color: #b5b5b5;
}

/* User menu (profile icon dropdown) */
.iaea-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.iaea-user-menu__toggle {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iaea-user-menu__toggle::after {
  display: none !important;
}

.iaea-user-menu__dropdown {
  min-width: 200px;
  margin-top: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 6px 0;
  z-index: 1100;
  background: #fff;
}

.iaea-user-menu__dropdown ion-icon {
  color: #111;
  --ionicon-stroke-width: 32px;
}

.iaea-user-menu__name {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  white-space: normal;
  word-break: break-word;
  padding-top: 8px;
  padding-bottom: 8px;
}

.iaea-user-menu__item-icon {
  flex-shrink: 0;
  font-size: 22px;
  color: #111;
  margin-top: 1px;
}

.iaea-user-menu__name-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  white-space: nowrap;
  padding-top: 3px;
}

.iaea-user-menu__logout {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #111;
}

.iaea-user-menu__logout:active,
.iaea-user-menu__logout:hover {
  background: #f4f4f4;
  color: #111;
}

.iaea-user-menu__logout .iaea-user-menu__item-icon {
  margin-top: 0;
  font-size: 20px;
}

.iaea-icon-box--bw {
  background: #f4f4f4 !important;
  color: #111 !important;
}

.iaea-icon-box--bw ion-icon {
  color: #111;
}

/* Sidebar nav — same workflow PNG icons as main menu tiles */
.iaea-theme #sidebarPanel .iaea-sidebar-nav .icon-box.iaea-sidebar-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  margin-right: 12px;
  padding: 4px;
  border-radius: 10px;
  background: #fff !important;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.iaea-theme #sidebarPanel .iaea-sidebar-nav .iaea-sidebar-icon img {
  display: block;
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.iaea-theme #sidebarPanel .iaea-sidebar-nav .iaea-sidebar-icon ion-icon {
  font-size: 26px;
  color: #111;
  --ionicon-stroke-width: 28px;
}

.iaea-theme #sidebarPanel .iaea-sidebar-nav .item .in {
  font-weight: 600;
  color: #111;
}

.iaea-theme .appHeader .left,
.iaea-theme .appHeader .right {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  height: 56px;
}

.iaea-theme .appHeader .left.appHeader__left {
  grid-column: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  min-width: 0;
  justify-self: start;
}

.iaea-theme .appHeader .left.appHeader__left .headerButton {
  flex-shrink: 0;
}

.iaea-theme .appHeader .right {
  grid-column: 3;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  justify-self: end;
}

.iaea-theme .appHeader .right .iaea-user-menu {
  display: inline-flex;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Same touch target and icon size whether 1 or 2 header actions are shown */
.iaea-theme .appHeader .right .headerButton,
.iaea-theme .appHeader .right .iaea-user-menu__toggle {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 56px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.iaea-theme .appHeader .right .headerButton ion-icon,
.iaea-theme .appHeader .right .iaea-user-menu__toggle ion-icon {
  font-size: 26px;
  width: 26px;
  height: 26px;
  --ionicon-stroke-width: 36px;
}

.iaea-theme .iaea-cims-header__actions .iaea-user-menu {
  flex-shrink: 0;
}

.iaea-theme .iaea-cims-header__actions .headerButton,
.iaea-theme .iaea-cims-header__actions .iaea-user-menu__toggle {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.iaea-theme .iaea-cims-header__actions .headerButton ion-icon,
.iaea-theme .iaea-cims-header__actions .iaea-user-menu__toggle ion-icon {
  font-size: 26px;
  width: 26px;
  height: 26px;
  --ionicon-stroke-width: 36px;
}

.iaea-cims-header__btn--placeholder {
  width: 44px;
  visibility: hidden;
}

.iaea-theme.iaea-cims-main-shell #appCapsule.iaea-cims-capsule {
  padding-top: calc(56px + env(safe-area-inset-top, 0));
  padding-bottom: calc(132px + env(safe-area-inset-bottom, 0));
  min-height: 100vh;
  background: #f2f2f2;
}

.iaea-cims-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 12px 8px;
  max-width: 560px;
  margin: 0 auto;
}

.iaea-cims-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 12px 10px 14px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  text-decoration: none !important;
  color: inherit;
  transition: background-color 0.15s ease;
}

.iaea-cims-tile:hover {
  background: #ededed;
}

.iaea-cims-tile:active {
  opacity: 0.92;
}

.iaea-cims-tile--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.iaea-cims-tile--disabled .iaea-cims-tile__icon-slot {
  position: relative;
}

.iaea-cims-tile__lock {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  color: #666;
}

.iaea-cims-tile__lock ion-icon {
  font-size: 14px;
  --ionicon-stroke-width: 40px;
}

.iaea-cims-tile--full {
  grid-column: span 2;
  padding: 20px !important;
}

/* Full-width tiles: icon + headline as one row, centered in the tile (Delivery, Item list) */
.iaea-cims-tile--row {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 16px;
}

.iaea-cims-tile--row .iaea-cims-tile__icon-slot {
  min-height: 0;
}

.iaea-cims-tile--row .iaea-cims-tile__icon-slot img {
  max-height: 48px;
  max-width: 100px;
}

.iaea-cims-tile--row .iaea-cims-tile__lines {
  margin-top: 0;
  align-items: center;
  text-align: center;
}

.iaea-cims-tile--row .iaea-cims-tile__lines--solo {
  margin-top: 0;
}

.iaea-cims-tile--row .iaea-cims-tile__title--solo {
  text-align: center;
}

/* Transparent PNG icons (Banner-*-icon.png) */
.iaea-cims-tile__icon-slot {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
}

.iaea-cims-tile__icon-slot img {
  display: block;
  max-width: 120px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
}

.iaea-cims-tile__lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 8px;
  gap: 2px;
  line-height: 1.15;
}

.iaea-cims-tile__lines--solo {
  margin-top: 10px;
}

.iaea-cims-tile__kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}

.iaea-cims-tile__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
}

.iaea-cims-tile__title--solo {
  font-size: 20px;
}

.iaea-cims-main-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding: 16px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: #fff;
  border-top: 1px solid #eee;
  box-sizing: border-box;
}

.iaea-cims-userline {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #9a9a9a;
}

.iaea-sidebar-item--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.iaea-sidebar-item--disabled .in {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iaea-nav-lock {
  font-size: 16px;
  color: #888;
  flex-shrink: 0;
  --ionicon-stroke-width: 32px;
}

/* ——— Warehouse requisition (Workflow list + item) ——— */
/* Warehouse item list: title left-aligned in center column */
.iaea-theme .appHeader.appHeader--wh-list .pageTitle {
  justify-self: start;
  text-align: left;
  padding-left: 4px;
  padding-right: 8px;
}

.wh-list-page {
  text-align: left;
}

/* Workflow screens (recount, etc.): same readable column as .wh-detail-form */
.wh-workflow-shell {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.wh-header-home ion-icon {
  color: #000;
  font-size: 26px;
  width: 26px;
  height: 26px;
  --ionicon-stroke-width: 36px;
}

.iaea-theme .pageTitle .wh-header-title__strong {
  font-weight: 700;
}

.iaea-theme .pageTitle .wh-header-title__light {
  font-weight: 400;
}

.wh-hall-form {
  margin: 0;
}

.wh-hall-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 40px 12px 14px;
  font-size: 15px;
  color: #6e6e6e;
  background-color: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.wh-table-card {
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.wh-table-head {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 0.75fr 0.55fr;
  gap: 4px;
  padding: 10px 8px;
  background: #3a3a3a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  align-items: center;
  justify-items: start;
  border-bottom: 4px solid #fff;
}

.wh-table-head .wh-table-head-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  text-decoration: none !important;
  color: inherit;
  border-radius: 4px;
  padding: 6px 8px;
  min-height: 28px;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wh-table-head .wh-table-head-cell:active {
  opacity: 0.85;
}

.wh-table-head .wh-table-head-cell.wh-th--active {
  background: #fff;
  color: #111;
  font-weight: 700;
}

.wh-table-sub {
  background: #3a3a3a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 8px 12px 10px;
}

.wh-table-sub-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  color: inherit;
  padding: 6px 10px;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wh-table-sub-link:hover,
.wh-table-sub-link:focus,
.wh-table-sub-link:focus-visible {
  color: inherit !important;
  text-decoration: none !important;
}

.wh-table-sub-link:not(.wh-th--active):visited {
  color: inherit;
  text-decoration: none !important;
}

.wh-table-sub-link.wh-th--active:hover,
.wh-table-sub-link.wh-th--active:focus,
.wh-table-sub-link.wh-th--active:focus-visible {
  color: #111 !important;
}

.wh-table-sub-link:active {
  opacity: 0.88;
}

/* :visited + inherit would otherwise win over non-!important text color on white pill */
.wh-table-sub-link.wh-th--active,
.wh-table-sub-link.wh-th--active:link,
.wh-table-sub-link.wh-th--active:visited {
  background: #fff !important;
  color: #111 !important;
  font-weight: 700;
}

.wh-sort-btn {
  border: none;
  background: transparent;
}

.wh-sort-btn[data-wh-sort-dir="asc"]::after {
  content: " \25B2";
  font-size: 9px;
}

.wh-sort-btn[data-wh-sort-dir="desc"]::after {
  content: " \25BC";
  font-size: 9px;
}

.wh-table-body {
  background: #fff;
}

.wh-table-rowlink {
  display: block;
  padding: 10px 8px 12px;
  border-bottom: 1px solid #dcdcdc;
  text-decoration: none !important;
  color: inherit;
}

.wh-table-rowlink:nth-child(odd) {
  background: #f5f5f5;
}

.wh-table-rowlink:nth-child(even) {
  background: #e9e9e9;
}

.wh-table-rowlink:hover {
  background: #fff !important;
}

.wh-table-rowlink:last-child {
  border-bottom: none;
}

.wh-table-rowlink:nth-child(odd):active {
  background: #ebebeb;
}

.wh-table-rowlink:nth-child(even):active {
  background: #dfdfdf;
}

/* Stock recount list: three data columns (no QTY). */
.wh-table-head--rc3 {
  grid-template-columns: 1.1fr 0.75fr 0.75fr;
}

.wh-table-row1--rc3 {
  grid-template-columns: 1.1fr 0.75fr 0.75fr;
}

.wh-table-row1 {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 0.75fr 0.55fr;
  gap: 4px;
  font-size: 13px;
  color: #7a7a7a;
  text-align: left;
  justify-items: start;
  margin-bottom: 6px;
}

.wh-table-row1 > span {
  text-align: left;
  width: 100%;
}

.wh-table-row2 {
  font-size: 12px;
  font-weight: 600;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Detail */
.wh-detail-form {
  max-width: 520px;
  margin: 0 auto;
}

.wh-field {
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  background: #fff;
  color: #555;
}

.wh-field--full {
  width: 100%;
  margin-bottom: 12px;
  color: #333;
}

.wh-field-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.wh-field-row--barcode {
  flex-wrap: nowrap;
}

.wh-field-row--split {
  justify-content: space-between;
  gap: 12px;
}

.wh-split {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wh-field-label {
  flex: 0 0 88px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.wh-field-row--split .wh-field-label {
  flex: 0 0 auto;
}

.wh-field--grow {
  flex: 1;
  min-width: 0;
}

.wh-field--narrow {
  flex: 0 0 64px;
  text-align: center;
}

.wh-field-row--split .wh-field {
  width: 100%;
}

.wh-field-row--delivered {
  flex-wrap: nowrap;
  align-items: center;
}

.wh-barcode-status {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #d2d2d2;
  background: #f4f4f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9c9c9c;
  flex: 0 0 30px;
}

.wh-barcode-status ion-icon {
  font-size: 18px;
  font-weight: 700;
}

.wh-barcode-status--ok {
  border-color: #2f9e44;
  background: #e9f9ed;
  color: #238636;
}

.wh-barcode-status--error {
  border-color: #d83b3b;
  background: #ffefef;
  color: #c62828;
}

.wh-field-row--delivered .wh-field-label {
  flex: 0 0 88px;
}

.wh-field--delivered {
  flex: 1 1 auto;
  min-width: 72px;
  max-width: 160px;
}

.wh-field--align-right {
  text-align: right;
}

/* Recount detail: long label + compact value (mock). */
.wh-rcount-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 12px;
}

.wh-rcount-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.25;
}

.wh-rcount-row .wh-field {
  flex: 0 1 42%;
  min-width: 0;
  max-width: 160px;
  text-align: right;
}

@media (min-width: 400px) {
  .wh-rcount-row .wh-field {
    max-width: 180px;
  }
}

.wh-detail-toolbar {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.wh-icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #111;
  text-decoration: none;
}

.wh-icon-btn ion-icon {
  font-size: 22px;
}

.wh-save-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wh-save-btn--inactive,
.wh-save-btn:disabled {
  background: #c8c8c8;
  color: #f0f0f0;
  cursor: not-allowed;
  opacity: 1;
}

.wh-save-btn--ready:not(:disabled) {
  background: #000;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* ——— SAVE footer (feedback above button) ——— */
.wh-save-footer-block {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: 24px;
  padding-top: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(to top, #f2f2f2 85%, rgba(242, 242, 242, 0));
}

.wh-save-feedback,
.concat-item-save-feedback,
.concat-case-save-feedback {
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.wh-save-feedback--success,
.concat-item-save-feedback--success,
.concat-case-save-feedback--success {
  background: #d4edda;
  color: #155724;
}

.wh-save-feedback--error,
.concat-item-save-feedback--error,
.concat-case-save-feedback--error {
  background: #f8d7da;
  color: #721c24;
}

.wh-save-feedback--info,
.concat-item-save-feedback--info,
.concat-case-save-feedback--info {
  background: #e9ecef;
  color: #495057;
}

.wh-save-footer-block .wh-save-btn,
.wh-save-footer-block .mn-save-btn {
  margin: 0;
}

.wh-save-footer-block .dl-btn--primary.wh-save-btn--inactive,
.wh-save-footer-block .dl-btn--primary:disabled {
  background: #c8c8c8 !important;
  color: #f0f0f0 !important;
  cursor: not-allowed;
  opacity: 1;
}

/* ——— Item concatenation ——— */
.concat-item-form {
  max-width: 520px;
  margin: 0 auto;
}

.concat-item__headline {
  text-transform: uppercase;
  color: #777;
}

.concat-item-locks {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.concat-item-locks .wh-field-label {
  flex: 0 0 auto;
}

.concat-item-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.concat-item-check input {
  width: 18px;
  height: 18px;
}

.concat-item-table-wrap {
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.concat-item-table-head {
  background: #565656;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 14px;
}

.concat-item-table-body {
  background: #ececec;
}

.concat-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 10px 12px 14px;
  border-top: 1px solid #d5d5d5;
  min-height: 57px;
}

.concat-item-row:first-child {
  border-top: none;
}

.concat-item-row__barcode {
  font-size: 21px;
  color: #878787;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.concat-item-row__lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111;
  font-size: 13px;
  font-weight: 600;
}

.concat-item-row__lock input {
  width: 18px;
  height: 18px;
}

.concat-delete-btn {
  border: none;
  background: transparent;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.concat-delete-btn ion-icon {
  font-size: 28px;
}

.concat-item-row--placeholder .concat-item-row__barcode,
.concat-item-row--placeholder .concat-item-row__lock {
  color: transparent;
}

.concat-item-row--scan {
  background: #f5f5f5;
}

.concat-item-row--scan .concat-item-row__barcode {
  overflow: visible;
  white-space: normal;
}

.concat-item-scan-barcode {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.concat-item-scan-barcode .wh-field {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 15px;
}

.concat-item-scan-barcode .wh-barcode-status {
  flex-shrink: 0;
}

.concat-item-scan-barcode .wh-icon-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.concat-cancel-btn {
  flex-shrink: 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  line-height: 1;
  text-transform: uppercase;
}

.concat-item-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.concat-item-row__actions .wh-icon-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.concat-item-footer-block {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: 24px;
  padding-top: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(to top, #f2f2f2 85%, rgba(242, 242, 242, 0));
}

.concat-item-save-feedback {
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.concat-item-save-feedback--success {
  background: #d4edda;
  color: #155724;
}

.concat-item-save-feedback--error {
  background: #f8d7da;
  color: #721c24;
}

.concat-item-save-feedback--info {
  background: #e9ecef;
  color: #495057;
}

.concat-item-footer-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.concat-item-footer-actions .wh-save-btn {
  margin: 0;
}

.concat-item-footer-actions .wh-save-btn--inactive,
.concat-item-footer-actions .wh-save-btn:disabled {
  background: #c8c8c8;
  color: #f0f0f0;
  cursor: not-allowed;
  opacity: 1;
}

.concat-item-footer-actions .wh-save-btn--ready:not(:disabled) {
  background: #000;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.concat-item-form .wh-field-row--barcode .wh-icon-btn {
  width: 44px;
  height: 44px;
}

.concat-input--busy {
  opacity: 0.75;
}

/* ——— Case concatenation (CASE GTIN / CONTENT) ——— */
.concat-case-form {
  max-width: 520px;
  margin: 0 auto;
}

.concat-case__headline {
  text-transform: uppercase;
  color: #777;
}

.concat-case-table-wrap {
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-top: 4px;
}

.concat-case-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, 104px) 88px;
  align-items: center;
  gap: 8px;
  background: #565656;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 10px 9px 14px;
}

.concat-case-table-head__qty {
  text-align: center;
}

.concat-case-table-head__actions {
  width: 88px;
}

.concat-case-table-body {
  background: #ececec;
}

.concat-case-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, 104px) 88px;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 12px 14px;
  border-top: 1px solid #d5d5d5;
  min-height: 57px;
}

.concat-case-row:first-child {
  border-top: none;
}

.concat-case-row__gtin {
  font-size: 18px;
  color: #878787;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.concat-case-row__qty {
  display: flex;
  justify-content: center;
}

.concat-case-qty-input {
  width: 100%;
  max-width: 96px;
  padding: 8px 8px;
  font-size: 16px;
  text-align: center;
  border-radius: 8px;
}

.concat-case-row--scan {
  background: #f5f5f5;
}

.concat-case-row--scan .concat-case-row__gtin {
  overflow: visible;
  white-space: normal;
}

.concat-case-scan-barcode {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.concat-case-scan-barcode .wh-field {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 15px;
}

.concat-case-scan-barcode .wh-barcode-status {
  flex-shrink: 0;
}

.concat-case-scan-barcode .wh-icon-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.concat-case-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.concat-case-row__actions .wh-icon-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.concat-case-row--placeholder .concat-case-row__gtin,
.concat-case-row--placeholder .concat-case-row__qty {
  color: transparent;
}

.concat-case-row--placeholder .concat-case-row__actions {
  width: 88px;
}

.concat-case-footer-block {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: 24px;
  padding-top: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(to top, #f2f2f2 85%, rgba(242, 242, 242, 0));
}

.concat-case-save-feedback {
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.concat-case-save-feedback--success {
  background: #d4edda;
  color: #155724;
}

.concat-case-save-feedback--error {
  background: #f8d7da;
  color: #721c24;
}

.concat-case-save-feedback--info {
  background: #e9ecef;
  color: #495057;
}

.concat-case-footer-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.concat-case-footer-actions .wh-save-btn {
  margin: 0;
}

.concat-case-footer-actions .wh-save-btn--inactive,
.concat-case-footer-actions .wh-save-btn:disabled {
  background: #c8c8c8;
  color: #f0f0f0;
  cursor: not-allowed;
  opacity: 1;
}

.concat-case-footer-actions .wh-save-btn--ready:not(:disabled) {
  background: #000;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.concat-case-form .wh-field-row--barcode .wh-icon-btn {
  width: 44px;
  height: 44px;
}


/* ——— Stock taking ——— */
.stock-taking-page,
.stock-taking-home {
  max-width: 520px;
  margin: 0 auto;
}

.stock-taking-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 14px 12px;
}

.stock-taking-home-card .stock-taking-home-value {
  flex: 1;
  text-align: right;
  font-weight: 600;
  color: #555;
  font-size: 15px;
}

.stock-taking-hint {
  line-height: 1.35;
}

.stock-taking-desc {
  text-transform: uppercase;
  color: #777;
  font-weight: 600;
}

.stock-taking-subclass {
  letter-spacing: 0.02em;
}

.stock-taking-price-shelf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.wh-field--numeric {
  text-align: right;
}

.stock-taking-stepper {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.stock-taking-stepper__btns {
  display: flex;
  flex-direction: row;
  gap: 6px;
  flex: 0 0 auto;
}

.stock-taking-stepper__btn {
  width: 44px;
  min-height: 40px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #111;
  padding: 0;
}

.stock-taking-stepper__btn:active {
  background: #e8e8e8;
}

.stock-taking-stepper__input {
  flex: 1;
  min-width: 0;
  font-size: 20px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
}

.stock-taking-history__title {
  letter-spacing: 0.06em;
}

.stock-taking-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stock-taking-secondary-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #111;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ——— Item list (scanner): table + printer + print ——— */
.iaea-theme .appHeader.appHeader--il .pageTitle {
  justify-self: center;
  text-align: center;
}

.il-page {
  text-align: left;
  background: #fff;
}

/* Centered column — same as maintenance / warehouse detail (.wh-workflow-shell) */
.il-page .wh-workflow-shell {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.il-shell {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.il-table-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.il-form,
.il-footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.il-th {
  background: #4d4d4d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.il-th--shelf {
  padding: 10px 12px 8px;
}

.il-th--grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 6px 12px 8px;
  align-items: center;
}

.il-th--grid3 span {
  min-width: 0;
}

.il-sort-btn {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.il-sort-btn.wh-th--active,
.il-sort-btn.wh-th--active:link,
.il-sort-btn.wh-th--active:visited {
  background: #fff !important;
  color: #111 !important;
  font-weight: 700;
  border-radius: 4px;
  padding: 6px 8px;
  box-sizing: border-box;
}

.il-sort-btn[data-il-sort-dir="asc"]::after {
  content: " \25B2";
  font-size: 9px;
}

.il-sort-btn[data-il-sort-dir="desc"]::after {
  content: " \25BC";
  font-size: 9px;
}

.il-sort-indicator {
  display: none;
}

.il-th--last {
  padding-bottom: 10px;
}

.il-th-qty {
  text-align: right;
}

.il-body {
  background: #fff;
}

.il-row {
  padding: 10px 12px 12px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}

.il-row:last-child {
  border-bottom: none;
}

.il-row-title {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.il-row-grid {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #555;
  align-items: center;
}

.il-row-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 8px;
}

.il-row-grid--qty {
  grid-template-columns: 1fr 1.15fr auto;
}

.il-brand {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.il-qty-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.il-qty-input {
  width: 11ch;
  min-width: 92px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  color: #111;
}

.il-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin: 0;
  background: #000;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.il-remove:active {
  opacity: 0.85;
}

.il-footer-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.il-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 40px 12px 14px;
  font-size: 15px;
  color: #333;
  background-color: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.il-print-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  background: #000 !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.il-print-btn:active {
  opacity: 0.88;
}

.il-add-link {
  color: #555;
  text-decoration: underline;
}

.il-scan-hint {
  line-height: 1.4;
}

.il-form {
  margin: 0;
}

/* ——— Maintenance (scanner tabs + stock2) ——— */
.iaea-theme .appHeader.appHeader--mn .pageTitle {
  justify-self: center;
  text-align: center;
}

.mn-page {
  text-align: left;
  background: #fff;
}

.mn-shell {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.mn-field {
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  background: #fff;
  color: #333;
}

.mn-field--full {
  width: 100%;
}

.mn-field--readonly {
  background: #fafafa;
  color: #555;
}

.mn-field--grow {
  flex: 1;
  min-width: 0;
}

.mn-field--narrow {
  width: 72px;
  flex-shrink: 0;
}

.mn-field--align-right {
  text-align: right;
}

.mn-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mn-field-row--urgent {
  align-items: stretch;
}

.mn-label {
  flex: 0 0 110px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.mn-label--stack {
  flex: none;
  width: 100%;
  margin-bottom: 4px;
}

.mn-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.mn-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 2;
}

.mn-tab {
  flex: 1 0 auto;
  text-align: center;
  padding: 10px 8px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a9a9a;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.mn-tab--active {
  color: #111;
  font-weight: 700;
  border-bottom-color: #111;
}

.mn-tab--disabled {
  color: #c8c8c8;
  cursor: default;
  pointer-events: none;
}

.mn-tab--btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.mn-tab-panel--hidden {
  display: none;
}

.mn-barcode-row {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.mn-barcode-row .wh-field-label {
  flex: 0 0 48px;
}

.mn-workspace--disabled {
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.mn-tab-panel {
  padding-bottom: 8px;
}

.mn-stock-checks {
  margin-bottom: 12px;
}

.mn-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.mn-check input {
  width: 20px;
  height: 20px;
  accent-color: #000;
}

.mn-check--inline {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.mn-check--disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.mn-check--disabled input {
  cursor: not-allowed;
}

.mn-save-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  background: #000 !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.mn-save-btn:active {
  opacity: 0.88;
}

.mn-save-btn--inactive,
.mn-save-btn:disabled {
  background: #c8c8c8 !important;
  color: #f0f0f0 !important;
  cursor: not-allowed;
  opacity: 1;
}

.mn-urgent-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  align-items: center;
}

.mn-edit-pill {
  flex-shrink: 0;
  width: 44px;
  min-height: 72px;
  border-radius: 8px;
  border: 1px solid #d5d5d5;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none !important;
}

.mn-edit-pill ion-icon {
  font-size: 22px;
}

.mn-edit-pill:active {
  background: #e8e8e8;
}

.mn-req-card,
.mn-ord-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mn-req-head,
.mn-ord-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #3a3a3a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mn-req-head-qty {
  text-align: right;
  min-width: 72px;
}

.mn-req-body,
.mn-ord-body {
  background: #fff;
}

.mn-req-row,
.mn-ord-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 13px;
}

.mn-req-row:nth-child(even),
.mn-ord-row:nth-child(even) {
  background: #f7f7f7;
}

.mn-req-row:last-child,
.mn-ord-row:last-child {
  border-bottom: none;
}

.mn-req-ts {
  color: #666;
  font-variant-numeric: tabular-nums;
  flex: 1;
  min-width: 0;
}

.mn-req-qty {
  flex-shrink: 0;
}

.mn-req-input {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  text-align: right;
  font-size: 14px;
}

.mn-ord-head {
  display: grid;
  grid-template-columns: 1fr 0.6fr 0.9fr;
  gap: 8px;
}

.mn-ord-row {
  display: grid;
  grid-template-columns: 1fr 0.6fr 0.9fr;
  gap: 8px;
  align-items: center;
}

.mn-ord-c {
  text-align: right;
}

.mn-pick-form {
  margin-bottom: 8px;
}

.mn-pick-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mn-sales-gridhead {
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.9fr;
  gap: 8px;
  margin: 8px 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
}

.mn-sales-h--right {
  text-align: right;
}

.mn-sales-row {
  margin-bottom: 8px;
}

.mn-subhead {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  margin: 16px 0 8px;
}

.mn-subhead--row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.mn-form {
  margin: 0;
}

/* ——— Delivery (scanner) ——— */
.iaea-theme .appHeader.appHeader--dl .pageTitle {
  justify-self: center;
  text-align: center;
}

.dl-page {
  background: #fff;
  text-align: left;
}

.dl-shell {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.dl-supplier-pick {
  margin-top: 8px;
}

.dl-supplier-field {
  margin-bottom: 14px;
}

.dl-supplier-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 6px;
}

.dl-supplier-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 40px 12px 14px;
  font-size: 15px;
  color: #222;
  background-color: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.dl-supplier-actions {
  margin-top: 20px;
}

.dl-supplier-actions[hidden] {
  display: none !important;
}

.dl-list-form {
  margin: 0 0 8px;
}

.dl-list-row {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
}

.dl-list-row__name {
  display: block;
  font-weight: 700;
  font-size: 15px;
}

.dl-list-row__meta {
  display: block;
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

.dl-pick__supplier {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
}

.dl-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid #111;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.dl-btn--primary {
  background: #111;
  color: #fff;
}

.dl-btn--secondary {
  background: #fff;
  color: #111;
}

.dl-link-btn {
  background: none;
  border: none;
  color: #555;
  text-decoration: underline;
  font-size: 14px;
  padding: 8px 0;
}

.dl-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e0e0e0;
  margin-top: 8px;
}

.dl-tab-wrap {
  margin: 0;
  flex: 1;
}

.dl-tab {
  width: 100%;
  border: none;
  background: none;
  padding: 10px 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  border-bottom: 3px solid transparent;
  text-transform: capitalize;
}

.dl-tab.is-active {
  color: #111;
  border-bottom-color: #111;
}

.dl-tab-panel--hidden {
  display: none;
}

.dl-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.dl-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dl-field-row--qty {
  flex-wrap: nowrap;
}

.dl-field-row--qty .dl-label {
  flex: 0 0 auto;
  min-width: 0;
  margin-bottom: 0;
}

.dl-field-row--qty .wh-icon-btn {
  flex: 0 0 40px;
}

.dl-field {
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.dl-field--grow {
  flex: 1;
  min-width: 0;
}

.dl-field--narrow {
  width: 88px;
}

.dl-field--full {
  width: 100%;
  box-sizing: border-box;
}

.dl-field--right {
  text-align: right;
}

.dl-field--muted {
  color: #888;
  background: #fafafa;
}

.dl-desc {
  background: #f3f3f3;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  margin-bottom: 12px;
}

.dl-radio-row {
  display: flex;
  gap: 20px;
}

.dl-radio {
  font-weight: 600;
}

.dl-icon-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.dl-icon-btn {
  flex: 1;
  min-height: 48px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dl-icon-btn img {
  display: block;
  max-width: 40px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.dl-icon-btn ion-icon {
  font-size: 28px;
  color: #111;
  --ionicon-stroke-width: 28px;
}

.dl-items-table.wh-table-card {
  margin-bottom: 0;
}

.dl-items-head-metrics {
  padding-top: 0;
  border-bottom: 4px solid #fff;
}

.dl-items-head-metrics .wh-table-head-cell--spacer {
  pointer-events: none;
  visibility: hidden;
}

.dl-items-grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.dl-items-grid4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.dl-items-table .wh-table-body .dl-items-row {
  display: block;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
}

.dl-items-table .wh-table-body .dl-items-row:nth-child(even) {
  background: #fafafa;
}

.dl-items-row-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.dl-items-row-form {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.dl-items-row__btn {
  width: 100%;
  text-align: left;
  border: none;
  padding: 10px 12px;
  background: transparent;
  cursor: pointer;
}

.dl-items-disc-form {
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}

.dl-items-disc-btn {
  width: 48px;
  border: none;
  border-left: 1px solid #eee;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.dl-items-disc-btn ion-icon {
  font-size: 22px;
  color: #111;
}

.dl-items-disc-btn:active {
  background: #e8e8e8;
}

.dl-items-body {
  background: #fff;
}

.dl-items-title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.dl-items-grid3 span,
.dl-items-grid4 span {
  font-size: 11px;
  color: #333;
}

.dl-disc-sec {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  margin: 12px 0 8px;
}

.dl-disc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dl-disc-check {
  flex: 0 0 28px;
}

.dl-disc-name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}

.dl-field--qty {
  width: 72px;
  text-align: right;
}

/* Delivery calculator overlay — same content width as .dl-shell (520px) */
.dl-calc {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #fff;
  display: flex;
  justify-content: center;
  overflow-y: auto;
}

.dl-calc--hidden {
  display: none;
}

.dl-calc__inner {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 8px 16px;
  box-sizing: border-box;
}

.dl-calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
  padding: 0 4px;
}

.dl-calc-back,
.dl-calc-home {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  text-decoration: none;
}

.dl-calc-back ion-icon,
.dl-calc-home ion-icon {
  font-size: 24px;
}

.dl-calc-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.dl-calc-display {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.dl-calc-expr,
.dl-calc-result {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: right;
  font-size: 18px;
  background: #fff;
}

.dl-calc-expr {
  color: #9a9a9a;
}

.dl-calc-result {
  font-weight: 700;
  color: #111;
  font-size: 22px;
}

.dl-calc-pad {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #ececec;
  padding: 10px;
  border-radius: 10px;
  align-content: start;
}

.dl-calc-key {
  min-height: 52px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  color: #111;
}

.dl-calc-key--fn {
  background: #e2e2e2;
}

.dl-calc-key--enter {
  background: #3a3a3a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.dl-calc-key:active {
  opacity: 0.85;
}

.dl-icon-btn {
  text-decoration: none;
  color: inherit;
}
