/* Colors */
:root {
  --primary-color: #003554;
  --secondary-color: #006494;
  /* CSS HEX */
  --picton-blue: #00a6fbff;
  --steel-blue: #0582caff;
  --lapis-lazuli: #006494ff;
  --prussian-blue: #003554ff;
  --rich-black: #051923ff;

  /* SCSS Gradient */
  --gradient-top: linear-gradient(
    0deg,
    #00a6fbff,
    #0582caff,
    #006494ff,
    #003554ff,
    #051923ff
  );
  --gradient-right: linear-gradient(
    90deg,
    #00a6fbff,
    #0582caff,
    #006494ff,
    #003554ff,
    #051923ff
  );
  --gradient-bottom: linear-gradient(180deg, #0582caff, #006494ff);
  --gradient-left: linear-gradient(
    270deg,
    #00a6fbff,
    #0582caff,
    #006494ff,
    #003554ff,
    #051923ff
  );
  --gradient-top-right: linear-gradient(
    45deg,
    #00a6fbff,
    #0582caff,
    #006494ff,
    #003554ff,
    #051923ff
  );
  --gradient-bottom-right: linear-gradient(
    135deg,
    #00a6fbff,
    #0582caff,
    #006494ff,
    #003554ff,
    #051923ff
  );
  --gradient-top-left: linear-gradient(
    225deg,
    #00a6fbff,
    #0582caff,
    #006494ff,
    #003554ff,
    #051923ff
  );
  --gradient-bottom-left: linear-gradient(
    315deg,
    #00a6fbff,
    #0582caff,
    #006494ff,
    #003554ff,
    #051923ff
  );
  --gradient-radial: radial-gradient(
    #00a6fbff,
    #0582caff,
    #006494ff,
    #003554ff,
    #051923ff
  );
}
/* Load Montserrat local fonts */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat/static/Montserrat-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat/static/Montserrat-Medium.ttf")
    format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat/static/Montserrat-SemiBold.ttf")
    format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat/static/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat/static/Montserrat-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
html {
  font-family: "Montserrat", Arial, sans-serif;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", Arial, sans-serif;
  height: 100vh;
  overflow: hidden;
}
/* Ensure form controls and buttons inherit the Montserrat font (some browsers use
   a native UI font for buttons unless explicitly set) */
button,
input,
select,
textarea {
  font-family: inherit;
}
select {
  cursor: pointer;
}
.nav-btn {
  font-family: inherit;
}
.site-header {
  background: var(--primary-color);
  padding: 10px 20px;
  border-bottom: 1px solid var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-brand img {
  height: 36px;
}
.site-brand span {
  font-weight: 700;
  color: #ffffff;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
}
.site-nav a {
  background: #e7e7e7;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s ease;
}
/* Login Page Styles - Scoped to .login-page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: linear-gradient(180deg, #f6f8fb 0%, #fff 60%); */
  background-image: url(../pictures/Home\ Page\ Image.webp);
  background-size: cover;
  background-position: center;
  /* padding: 40px 16px; */
}
.login-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  /* border-radius: 14px; */
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: saturate(110%) contrast(180%) blur(3px);
}
.login-left {
  flex: 2.8;
  background: linear-gradient(180deg, #ffffff00 0%, #fffaf6 100%);
  /* background-color: transparent; */
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px 56px;
  text-align: left;
}
.login-left h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 8px 0 12px 0;
  letter-spacing: 1px;
  color: #111827;
}
.login-logo {
  width: 140px;
  height: 140px;
  border-radius: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  filter: drop-shadow(0 6px 24px rgba(31, 41, 55, 0.06));
}
.login-logo img {
  width: 98px;
  height: auto;
}
.login-right {
  flex: 1;
  background: #0b1220; /* dark panel */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 36px;
}

.login-panel {
  width: 100%;
  max-width: 360px;
}
.login-panel h2 {
  margin: 0 0 12px 0;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
}
.login-panel p {
  margin: 0 0 18px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}
.login-form input + input {
  margin-top: 8px;
}
.login-form .login-button {
  margin-top: 12px;
}
.login-form {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-form input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  font-size: 1em;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition:
    border-color 0.12s,
    box-shadow 0.12s,
    background 0.12s;
}
.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}
.login-form input:focus {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 18px rgba(11, 17, 32, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.login-form .password-field-wrap {
  position: relative;
  width: 100%;
}

.login-form .password-field-wrap #password {
  width: 100%;
  box-sizing: border-box;
  padding-right: 44px;
}

.login-form .password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.login-form .password-toggle:hover {
  color: #0f172a;
}

.login-form .password-toggle.is-visible {
  color: #0f766e;
}

.login-form .password-toggle:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
  border-radius: 6px;
}

.login-form input.shake {
  animation: shake 0.3s;
  border-color: #ff6b6b;
}
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  75% {
    transform: translateX(-8px);
  }
  100% {
    transform: translateX(0);
  }
}
.login-form .login-button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: #f44336;
  color: #fff;
  font-size: 1.05em;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 10px 30px rgba(244, 67, 54, 0.16);
  transition:
    transform 0.08s ease,
    box-shadow 0.12s ease;
}
.login-form .login-button:active {
  transform: translateY(1px);
}
.login-form .login-button:hover {
  filter: brightness(0.96);
  box-shadow: 0 14px 40px rgba(244, 67, 54, 0.18);
}
.login-form {
  position: relative;
}
.login-message {
  margin-top: 6px;
  min-width: 100%;
  font-size: 0.95em;
  color: #fff;
  background: transparent;
  padding: 0;
  border-radius: 6px;
  display: none;
  text-align: left;
}
.login-message.error {
  background: transparent;
  color: #ffb4b4;
}

/* Deleted / deactivated user row styling */
.user-deleted td {
  color: #b91c1c; /* red */
  text-decoration: line-through;
}

/* Splash screen styles */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}
#splash-screen h1 {
  font-size: 3vw;
  color: #222;
  text-align: center;
}

.splash-logo img {
  max-width: 150px;
}

/* Splash fade animations */
.splash-fade-in {
  animation: splashIn 600ms ease forwards;
}
.splash-fade-out {
  animation: splashOut 600ms ease forwards;
}
@keyframes splashIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes splashOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

/* User form specific styles (scoped) */
.user-form-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
  padding: 40px 16px;
}
.user-form-card {
  width: 820px;
  max-width: 96vw;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(22, 38, 63, 0.25);
  padding: 28px;
}
.user-form-card h2 {
  margin: 0 0 14px;
  font-size: 1.6rem;
  color: #1f2937;
}
.user-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.row {
  display: flex;
  gap: 16px;
}
.field {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.field label {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #333;
}
.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e6eef6;
  background: #fafbff;
  font-size: 1rem;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: #60b0f7;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.06);
}

/* Header user menu */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.session-user-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-right: 6px;
}
.session-user-name {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}
.session-user-name:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.session-user-name:focus {
  outline: 2px solid rgba(255, 255, 255, 0.12);
}
.session-user-name .caret {
  font-size: 0.85em;
  opacity: 0.9;
}
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 140px;
  background: #fff;
  color: #222;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(8, 12, 20, 0.16);
  padding: 8px 6px;
  display: none;
  z-index: 60;
  font-weight: 600;
}
.user-dropdown.open {
  display: block;
}
.user-dropdown a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 6px;
  color: #333;
}
.user-dropdown a:hover {
  background: #ff2b2b;
  color: #fff;
}
.password-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-password {
  background: transparent;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-weight: 600;
}
.strength {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #666;
}
.actions {
  align-items: center;
  justify-content: space-between;
}
.client-form-actions {
  flex-direction: row;
  justify-content: center;
}
.btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}
.generate-pdf-btn {
  /* keep base button appearance but ensure icon+label layout */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #e6eef6;
  color: #b91010;
}
.generate-pdf-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.generate-pdf-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.primary {
  background: #2563eb;
  color: #fff;
}
.btn.secondary {
  background: #e6eef6;
  color: #333;
}
.inventory-form-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.inventory-form-actions .btn {
  text-decoration: none;
}
#formMessage {
  /* Make the shared form message act like a fixed toast just below the site header
     so it stays visible even when the page content scrolls. The element is still
     the same DOM node used by scripts (id="formMessage"), we only change
     presentation here. */
  position: fixed;
  top: 30%; /* adjusted to sit beneath the header; tweak if your header height differs */
  right: 20px;
  width: 340px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
  font-weight: 500;
  z-index: 1200;
  box-shadow: 0 8px 24px rgba(6, 10, 20, 0.82);
}
.form-message.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
}
.form-message.error {
  display: block;
  background: #fff1f2;
  color: #9f1239;
}

/* Divider between autopopulated job items and manual job-pack rows */
.job-autopop-sep {
  border-top: 1px solid #e9eef3;
  margin: 32px 0;
}

@media (max-width: 480px) {
  .form-message {
    right: 8px;
    left: 8px;
    width: auto;
    top: 64px;
  }
}
.form-message .form-message-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
}
.form-message .form-message-close:focus {
  outline: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}
.form-message .form-message-text {
  display: block;
  margin-right: 28px; /* leave space for close button */
}
.switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.switch input {
  display: none;
}

/* Loading spinner (small, reused by forms) */
.loading-wrapper {
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}
.loading-wrapper.active {
  display: flex;
}
.loading-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: #2563eb;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.switch-label {
  margin-left: 6px;
}

@media (max-width: 800px) {
  .row {
    flex-direction: column;
  }
  .actions {
    flex-direction: column;
    gap: 10px;
  }
}
#docket-version {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 12px;
}
.main-menu-temporary {
  height: 100vh;
  width: 100vw;
  display: flex;
  background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
  overflow: hidden;
  flex-direction: column;
}

.main-menu-temporary h1 {
  font-size: 2.5rem;
  color: #111827;
}

.main-menu-temporary a {
  display: inline-block;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.2s ease;
}

/* Generate Docket App Shell */
.app-shell {
  display: flex;
  height: calc(100vh - 57px);
}
.sidebar {
  width: 120px;
  background: var(--primary-color);
  color: #fff;
  padding: 18px 8px;
  z-index: 99;
  box-shadow: 0px 6px 10px #161616ab;
}
.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar a {
  text-decoration: none;
}
.sidebar .nav-btn {
  width: 100%;
  display: block;
  margin: 8px 0;
  padding: 10px 8px;
  background: white;
  color: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  text-align: left;
  font-weight: 600;
}
.sidebar .nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}
.sidebar .nav-btn.active {
  background: var(--steel-blue);
  color: #fff;
}
.sidebar .nav-btn.active:hover {
  background: var(--lapis-lazuli);
}
.sidebar .nav-btn:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}
.sidebar .nav-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}
.docket-sections {
  margin: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.generate-docket {
  flex: 1;
  padding: 18px 28px;
  overflow: auto;
  background: linear-gradient(180deg, #f1f1f1 0%, #f3f7fb 100%);
}
.gd-header,
.ld-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  justify-content: space-between;
  background: var(--secondary-color);
  padding: 20px 20px;
  border-radius: 5px;
}
.gd-header .field-inline,
.ld-header .field-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}
.gd-header .field-inline label,
.ld-header .field-inline label {
  font-size: 0.95rem;
  color: #f0f0f0;
  text-align: center;
  font-weight: 600;
}
.gd-header .field-inline input,
.gd-header .field-inline select,
.ld-header .field-inline input,
.ld-header .field-inline select {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1dfe8;
  background: #fafbff;
  font-size: 0.95rem;
}
.gd-header .field-inline input:focus,
.gd-header .field-inline select:focus,
.ld-header .field-inline input:focus,
.ld-header .field-inline select:focus {
  outline: none;
  border-color: var(--steel-blue);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.06);
  box-shadow: 0 0px 1px 1px hsl(200deg 100% 49% / 78%);
}
.gd-header .field-inline input:disabled,
.gd-header .field-inline select:disabled,
.ld-header .field-inline input:disabled,
.ld-header .field-inline select:disabled {
  background: #eeeeee;
  /* cursor: not-allowed; */
}
input:disabled {
  background: #eeeeee;
  /* cursor: not-allowed; */
}
.gd-header #docketnumber,
.ld-header #docketnumber {
  font-weight: 600;
}
.customer-info {
  gap: 18px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 3fr 0.8fr 1.5fr;
  grid-template-rows: 1fr 2.5fr;
  gap: 0 50px;
  grid-template-areas:
    "meta-fields meta-fields toggles"
    "info-box docket-files-panel toggles";
  position: relative; /* allow absolute badge positioning */
}
.info-box {
  grid-area: info-box;
  min-height: 120px;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  border: 1px solid #e6eef6;
  margin-top: 35px;
}
.meta-fields {
  grid-area: meta-fields;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 99;
}
.meta-fields label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}
.meta-fields label input,
.meta-fields label select,
.toggle-group label input {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1dfe8;
  background: #fafbff;
  font-size: 0.85rem;
}
.meta-fields label input:focus,
.meta-fields label select:focus,
.toggle-group label input:focus {
  outline: none;
  border-color: #60b0f7;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.06);
}
.meta-fields label input:disabled,
.meta-fields label select:disabled,
.toggle-group label input:disabled {
  background: #eeeeee;
  /* cursor: not-allowed; */
}
.meta-fields input#status {
  /* width: 39px; */
}
.toggles {
  grid-area: toggles;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  z-index: 98;
}
.toggle-group {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
}
.toggle-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}
.toggle-group label input {
  margin: 0;
  accent-color: #2563eb;
}
.items-setup {
  margin: 14px 0;
}
.items-jobs-setup {
  display: flex;
  align-items: center;
}
.item-block {
  background: #fff;
  border: 2px solid #c7d9e9;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: 0.2s ease;
}
.item-block:hover {
  /* border-color: #61abed; */
  box-shadow: 0px 0px 10px #7373734a;
}
.item-block h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: #1f2937;
}
.job-section,
.stock-section {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.job-section {
  /* border-bottom: 1px solid #e6eef6;
  padding-bottom: 22px;
  margin-bottom: 22px; */
}
.job-section label,
.stock-section label {
  display: flex;
  flex-direction: column;
  width: 100px;
  height: auto;
}
.stock-section label {
  width: 120px;
}
.job-section label,
.job-section label,
.stock-section label,
.stock-section label {
  font-size: 0.7rem;
  color: #333;
  text-align: center;
  text-transform: uppercase;
}

.generate-docket label input,
.generate-docket label select,
.generate-docket input,
.generate-docket select {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1dfe8;
  background: #fafbff;
  font-size: 0.85rem;
}
.generate-docket label input:focus,
.generate-docket label select:focus,
.generate-docket input:focus,
.generate-docket select:focus {
  outline: none;
  border-color: #60b0f7;
  box-shadow: 0px 0px 5px hsl(200deg 100% 49% / 30%) inset;
}
.job-section .job-description {
  flex: 3;
}
.job-section .job-type {
  flex: 1;
}
.stock-section .stock-name {
  flex: 0;
}
.item-counter {
  padding: 3px;
  border: none;
  border-radius: 5px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none;
  text-align: center;
  cursor: auto;
  font-size: 1rem;
}
.item-counter:disabled {
  background: transparent;
  color: #000000;
  filter: none;
  border: none;
  margin: 0;
}
.item-counter:focus {
  outline: none;
  border-color: #60b0f7;
}
.item-counter:focus-visible {
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.06);
}
.class-box {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-direction: column;
}
.class-box label {
  flex-direction: column-reverse;
  /* font-size: 0.9rem; */
  width: auto;
  justify-content: flex-end;
}
.class-box .class-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  text-transform: uppercase;
  margin-top: -20px;
}
.class-options {
  display: flex;
  gap: 8px;
}
.form-actions {
  display: flex;
  position: fixed;
  gap: 12px;
  margin-top: 12px;
  justify-content: end;
  bottom: 12px;
  right: 12px;
  padding: 10px 60px;
  border-radius: 10px 0px 0px 10px;
  background: transparent;
  backdrop-filter: blur(10px);
  border: 1px solid #0000001a;
  border-right: none;
}
.delete-docket-container {
  display: flex;
  position: fixed;
  gap: 12px;
  margin-top: 12px;
  justify-content: start;
  bottom: 12px;
  left: 122px;
  padding: 10px 60px;
  border-radius: 0px 10px 10px 0px;
  background: transparent;
  backdrop-filter: blur(10px);
  border: 1px solid #0000001a;
}
.job-versions-header {
  align-items: center;
  display: flex;
}
.job-versions {
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid #e6eef6;
}
.job-versions-list {
  display: flex;
  gap: 6px;
  flex-direction: column;
}
.version-row {
  display: flex;
  align-items: flex-end;
  justify-content: start;
  gap: 8px;
  margin-left: 45px;
}
.version-row label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  color: #333;
}
.version-row .version-letter {
  margin-bottom: 8px;
}
.version-row .version-quantity input {
  width: 60px;
}
.version-row .version-description input {
  width: 390px;
}
.version-row .version-finalqty input {
  width: 70px;
}
@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    display: flex;
    overflow: auto;
  }
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* Modal for adding TypeOfJob */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
}
.modal.open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.modal-panel {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  min-width: 320px;
  max-width: 560px;
  box-shadow: 0 20px 60px rgba(6, 10, 20, 0.2);
  z-index: 10;
}
.modal-panel h3 {
  margin: 0 0 10px 0;
}
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-body input[type="text"] {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #e6eef6;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}
.modal-actions .btn {
  padding: 8px 12px;
  border-radius: 6px;
}
.add-type-option {
  cursor: pointer;
  color: var(--steel-blue);
  font-weight: 600;
  margin-top: 6px;
}
.add-type-option:hover {
  text-decoration: underline;
}
.item-delete {
  background: transparent;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  font-size: 1.2rem;
  align-self: flex-start;
}
.item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* PrePress page specific styles */
.prepress-fields {
  background: #fff;
  border: 1px solid #e6eef6;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.prepress-fields .field-row {
  display: block;
  margin-bottom: 12px;
}
.prepress-fields label {
  display: block;
  font-weight: 600;
  color: #223;
  margin-bottom: 6px;
}
.prepress-fields textarea {
  width: calc(100% - 27px);
  min-height: 110px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1dfe8;
  background: #fafbff;
  resize: vertical;
  font-size: 0.95rem;
}

#operatorArea {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #e6eef6;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}
/* Legend under ITEM header showing job classes */
.job-legend {
  display: flex;
  flex-direction: column;
}
.job-legend .legend-item {
  font-size: 0.75rem;
  color: #333;
  border-radius: 4px;
  width: max-content;
}
#operatorArea h3 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  color: #1f2937;
}
.operator-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.operator-row input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1dfe8;
  background: #fafbff;
  font-size: 0.95rem;
}
.operator-row .op-name {
  flex: 1 1 220px;
}
.operator-row .op-time {
  width: 120px;
}
.operator-row .op-workdone {
  flex: 1 1 260px;
}
.operator-row .remove-op {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}
.operator-row .remove-op:hover {
  background: rgba(239, 68, 68, 0.06);
}

/* Make PrePress actions align like Generate Docket form actions */
.prepress-fields .form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .operator-row {
    flex-direction: column;
    align-items: stretch;
  }
  .operator-row .op-time {
    width: 100%;
  }
  .operator-row .remove-op {
    align-self: flex-end;
  }
}
.top-checkboxes {
  display: flex;
}
.prepress-groups {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0;
}
#prepressCheckboxes {
  display: flex;
  gap: 28px;
  height: 50px;
  align-items: center;
}
#prepressCheckboxes2 {
  display: flex;
  gap: 28px;
  height: 50px;
  align-items: center;
}
div#pressApprovalContainer {
  display: flex;
  margin-left: 190px;
}
div#pressApprovalContainer label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column-reverse;
}
.prepress-main-content {
  display: flex;
  margin-top: 14px;
}
.prepress-fields {
  flex: 5;
  margin-right: 18px;
}
.prepress-proof-checkboxes {
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 25px;
}
#proof-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#proof-checkboxes .checkbox-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-direction: column-reverse;
}

.line-screen-container {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
}

/* Pending-delete visual state for operator rows */
.operator-row.pending-delete {
  background: rgba(254, 226, 226, 0.6);
  border-radius: 6px;
  padding: 6px;
  opacity: 0.95;
}
.operator-row.pending-delete input {
  text-decoration: line-through;
  opacity: 0.8;
}
.operator-row.pending-delete .undo-op {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #05445e;
}

/* Custom delete confirmation modal for PrePress */
.pp-delete-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1400;
}
.pp-delete-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.pp-delete-panel {
  position: relative;
  z-index: 1401;
  min-width: 320px;
  max-width: 560px;
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(6, 10, 20, 0.2);
}
.pp-delete-panel h3 {
  margin: 0 0 10px 0;
}
.pp-delete-body {
  margin-bottom: 12px;
  color: #222;
}
.pp-delete-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.pp-delete-actions .btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
}
.pp-delete-actions .btn {
  padding: 8px 12px;
  border-radius: 6px;
}
/* Docket Files Panel Styles */
.docket-files-panel {
  grid-area: docket-files-panel;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
#docketFilesTable {
  overflow: auto;
  border: 1px solid #ddd;
  padding: 6px;
  background: #fff;
  height: 182px;
  max-height: 320px;
  border: 1px solid #e6eef6;
  border-radius: 8px;
  min-width: 220px;
}

#docketFilesTable .empty {
  color: #666;
  padding: 12px;
  text-align: center;
}

.docket-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}
.docket-file-row:last-child {
  border-bottom: none;
}

.docket-file-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.docket-file-left .file-icon {
  font-size: 18px;
}
.docket-file-left .file-name {
  cursor: pointer;
  color: #053b4a;
}

.docket-file-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.docket-file-actions .btn {
  padding: 1px 1px;
  border-radius: 6px;
}
/* .docket-file-actions .btn[download] {
  background: #e6f6ff;
  border: 1px solid #cfeffb;
} */
.docket-file-actions .btn.delete {
  background: transparent;
  /* border: 1px solid #ffd6d6; */
}
.docket-file-actions img {
  height: 18px;
}
.docket-file-pending {
  opacity: 0.9;
  background: rgba(255, 249, 230, 0.8);
}
.docket-file-failed {
  background: rgba(255, 230, 230, 0.9);
}

.docket-file-status {
  margin-right: 8px;
  color: #666;
  font-size: 13px;
}
.main-menu-sidebar {
  width: 180px;
  padding: 18px 0px;
}
.main-menu-sidebar h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 2px;
  padding-left: 10px;
  cursor: default;
}
.main-menu-sidebar a {
  display: inline-block;
  margin-top: 0px;
  padding: 12px 24px;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.2s ease;
  width: 130px;
  font-weight: 500;
  border-radius: 0;
}
.main-menu-sidebar li:hover {
  background: var(--picton-blue);
}
.app-shell main {
  flex: 1;
  padding: 18px 28px;
}
.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.litho-digital-fields {
  /* background: #fff;
  border: 1px solid #e6eef6;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 18px; */
}
.litho-digital-button-wrapper {
  display: flex;
  justify-content: start;
  margin-bottom: 3px;
  gap: 16px;
  align-items: center;
}
.litho-digital-button-wrapper button {
  height: 30px;
  width: 30px;
  border: none;
  background: var(--lapis-lazuli);
  color: #fff;
  border-radius: 99px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: 0.2s ease-in;
}
.litho-digital-button-wrapper button:hover {
  background: var(--steel-blue);
}
.litho-digital-fields-section,
.largeformat-fields-section {
  display: flex;
  gap: 12px;
  flex-direction: row;
}
.litho-digital-fields .row,
.largeformat-fields .row {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6eef6;
  padding: 7px 14px;
  border-radius: 10px;
  align-items: center;
}
.litho-digital-fields .field-row,
.largeformat-fields .field-row {
  display: block;
  margin-bottom: 12px;
}
.litho-digital-fields label,
.largeformat-fields label {
  display: flex;
  color: #223;
  font-size: 0.7rem;
  margin-bottom: 6px;
  flex-direction: column;
  align-items: center;
}
.litho-digital-fields label input,
.litho-digital-fields label select,
.largeformat-fields label input,
.largeformat-fields label select {
  font-size: 0.8rem;
  max-width: 90px;
  height: 35px;
}
.litho-digital-fields label select,
.largeformat-fields label select {
  height: 53px;
}
.litho-digital-fields textarea,
.largeformat-fields textarea,
.bindery-container textarea,
.packaging-page textarea {
  width: calc(100% - 27px);
  min-height: 45px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1dfe8;
  background: #fafbff;
  resize: vertical;
  font-size: 0.95rem;
}
.litho-digital-fields .multiple-fields-section,
.largeformat-fields .multiple-fields-section {
  display: flex;
  gap: 5px;
  flex-direction: column;
  align-items: center;
  border-left: solid 1px #e6eef6;
  border-right: solid 1px #e6eef6;
  padding: 0 12px 0 12px;
}
.litho-digital-fields .multiple-fields,
.largeformat-fields .multiple-fields {
  display: flex;
  gap: 12px;
  align-items: end;
}
.litho-digital-notes,
.largeformat-notes {
  /* background: #fff;
  border: 1px solid #e6eef6;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 18px; */
  display: flex;
  flex-direction: column;
}
.litho-digital-notes label,
.largeformat-notes label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
  align-items: start;
  gap: 6px;
}
.litho-digital-notes textarea:focus,
.largeformat-notes textarea:focus,
.inks-fields textarea:focus,
.bindery-container textarea:focus,
.packaging-page textarea:focus {
  outline: none;
  border-color: #60b0f7;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.06);
}
.item-header-grid {
  display: grid;
  grid-auto-columns: 1fr;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 2fr;
  gap: 0px 12px;
  grid-template-areas:
    "ld-item-header job-legend"
    "ld-item-description ld-item-description";
  width: 200px;
  margin-left: 10px;
}
.ld-item-header {
  grid-area: ld-item-header;
  justify-content: center;
}
.job-legend {
  grid-area: job-legend;
  justify-content: center;
}
.ld-item-description {
  grid-area: ld-item-description;
  justify-content: center;
  text-wrap: wrap;
}
.ld-item-header,
.lf-item-header {
  display: flex;
  flex-direction: column;
}
.ld-item-header h3,
.lf-item-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #1f2937;
}
.ld-item-description {
  margin: 4px 0 0 0;
  font-size: 0.75rem;
  color: #555;
}
.inks-fields textarea {
  max-width: 90px;
  min-height: 20px;
  height: 30px;
}
.section-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}
.approved-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  justify-content: center;
}
.approved-checkbox label {
  font-size: 0.8rem;
  font-weight: 800;
}
.approved-checkbox input {
  align-self: center;
  width: 26px;
  height: 26px;
  accent-color: var(--picton-blue);
  cursor: pointer;
  transition: 0.2s ease;
}
.stock-litho-section {
  margin-bottom: 10px;
}
.rows-container {
  display: flex;
  gap: 10px;
  flex-direction: column;
}
.row-fields {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  justify-content: start;
}
.row-fields [name="Forms"] {
  width: 80px;
  max-width: 80px;
}
.row-fields [name="GrossQuantityLD"],
.row-fields [name="NetQuantity"],
.row-fields [name="Time"] {
  width: 60px;
  max-width: 60px;
}
.row-fields [name="PMS"] {
  max-width: none;
}
.row-fields [name="Format"] {
  width: 120px;
  max-width: none;
}
.row-actions {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 54px;
}
.row-actions button {
  border: none;
  background: none;
  width: none;
  transition: 0.2s ease-in;
  filter: opacity(0.7);
  cursor: pointer;
  height: 100%;
  max-height: 54px;
}
.row-actions button:hover {
  filter: opacity(1);
  transform: scale(1.1);
  cursor: pointer;
}
.main-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  /* border-bottom: 2px solid #ffffff; */
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
.main-table thead th {
  text-align: left;
  padding: 10px;
  background: var(--lapis-lazuli);
  color: #fff;
  border-bottom: 1px solid #e6eef6;
  font-weight: 600;
}
.main-table thead th:first-child {
  border-top-left-radius: 5px;
}
.main-table thead th:last-child {
  border-top-right-radius: 5px;
}
.main-table tbody td {
  padding: 8px 8px;
  border-bottom: 1px solid #efefef;
  font-size: 0.95rem;
}
.main-table tbody tr:not(.jobs-subrow):hover {
  background: #f0f6ff;
}
.main-table .row-link a {
  color: var(--steel-blue);
  font-weight: 600;
}
.main-table .sort-indicator {
  margin-left: 6px;
  font-size: 0.9rem;
  color: #fff;
}
.main-table .no-data {
  text-align: center;
  color: #666;
  padding: 20px 0;
}
.main-table select.docket-status-select,
.main-table select.job-status-select {
  padding: 7px 3px;
  border-radius: 4px;
  border: none;
}
.main-table select.job-status-select {
  padding: 3px 3px;
  box-shadow: none;
}
#listPager {
  display: flex;
  gap: 110px;
}
#listPager select {
  padding: 6px;
  border: 2px solid var(--lapis-lazuli);
  border-radius: 3px;
}
button.toggle-jobs {
  background: var(--steel-blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 9px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
#listPager button {
  background: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 0px;
  transition: 0.1s ease;
}
.pages-controls button:hover {
  background: var(--lapis-lazuli) !important;
  /* transition: 0.2s ease; */
  color: white;
}
.pages-controls button.active {
  background: var(--lapis-lazuli) !important;
  color: #fff;
}
#dateFrom,
#dateTo {
  padding: 5px 10px;
}
.list-header {
  padding: 0px 20px;
  background-color: #003554;
}
.list-header h2 {
  font-size: 1.5rem;
  color: #ffffff;
}
.list-header .btn {
  background: #00a6fb;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  margin-top: 6px;
}
.list-header input {
  margin-top: 0px;
  padding: 5px 10px;
}
#saveCloseBtn {
  background: #b91010;
  color: #fff;
}
.save-button {
  box-shadow: 2px 2px 4px #00000026;
}
.save-button:hover {
  box-shadow: 4px 4px 8px #00000013;
  /* box-shadow: none; */
}
table.main-table td {
  font-size: 0.93rem;
}
.row-edit .edit-link,
.edit-link {
  text-decoration: none;
  color: var(--picton-blue);
  transition: 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}
.row-edit .edit-link:hover,
.edit-link:hover {
  color: var(--steel-blue);
}
.row-action-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 3px;
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
  transition: opacity 0.2s ease;
}
.row-action-icon:hover {
  opacity: 0.75;
}
.save-icon {
  color: var(--lapis-lazuli);
  font-weight: 600;
  margin-right: 10px;
}
.cancel-icon {
  color: #d32f2f;
  font-weight: 600;
}
/* Keep the actions column from expanding during inline edit */
#inventoryTable td:last-child,
#inventoryTable th:last-child {
  width: 1%;
  white-space: nowrap;
}
#docketsTable tbody td {
  padding: 2px 8px;
}
.jobs-table tbody td {
  padding: 5px 8px;
}
.pages-controls {
  display: flex;
  gap: 0;
  align-items: center;
  border: 2px solid var(--lapis-lazuli);
  border-radius: 4px;
  background: white;
}
/* Bindery page specific layout and controls */
.bindery-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 18px 0;
}
.bindery-left {
  flex: 4 1 0%;
  background: #fff;
  padding: 18px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(3, 11, 22, 0.06);
}
.bindery-right {
  flex: 1 1 0%;
  background: #fff;
  padding: 18px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(3, 11, 22, 0.06);
}
.bindery-left h3,
.bindery-right h3 {
  margin-top: 0;
  margin-bottom: 12px;
}
.bindery-top-fields {
  display: flex;
  align-items: start;
  gap: 15px;
}
.three-checkbox-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-direction: column;
  width: fit-content;
}
.three-checkbox-row label {
  flex: 1 1 0%;
  display: flex;
  align-items: start;
  flex-direction: column;
  border-radius: 4px;
}
.three-checkbox-row div,
.other-list div,
.three-text-row div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.three-checkbox-row input[type="checkbox"],
.three-text-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.three-checkbox-row input[type="text"],
.three-checkbox-row input[type="number"] {
  flex: 1 1 0%;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.three-text-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-direction: column;
}
.three-text-row label {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
}
.three-text-row input {
  padding: 8px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
}
.final-qty-section {
  margin-top: 14px;
}
#finalQtyTable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}
#finalQtyTable th,
#finalQtyTable td {
  padding: 6px 8px;
  border: 1px solid #f0f0f0;
}
#finalQtyTable input[type="number"] {
  width: calc(100% - 12px);
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #e6e6e6;
}
.shipping-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.shipping-fields label {
  display: flex;
  flex-direction: column;
}
.other-list label {
  display: flex;
  align-items: start;
  gap: 8px;
  margin-bottom: 8px;
  flex-direction: column;
}
.other-list div {
  gap: 6px;
}
.other-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
.other-list input[type="text"] {
  flex: 1 1 0%;
  padding: 6px 8px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
}
.bindery-notes {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .bindery-container {
    flex-direction: column;
  }
  .bindery-left,
  .bindery-right {
    flex: 1 1 auto;
  }
  .three-checkbox-row,
  .three-text-row {
    flex-direction: column;
  }
  .shipping-fields {
    grid-template-columns: 1fr;
  }
}
/* Bindery 5-column layout */
.bindery-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}
.bindery-column {
  /* background: #fafafa; */
  border: 1px solid #e6e6e6;
  padding: 8px;
  border-radius: 6px;
}
.bindery-column .col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bindery-column .col-header h4 {
  margin: 0;
  font-size: 13px;
}
.bindery-column .col-header label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bindery-column .rows {
  gap: 8px;
  display: flex;
  flex-direction: column;
}
.bindery-column .row-item {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bindery-column .row-item input[type="text"] {
  flex: 1;
  width: 100%;
  padding: 6px;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1dfe8;
  background: #fafbff;
}
.bindery-column .row-item button.delete-row {
  background: none;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  transition: 0.2s ease-in;
}
.bindery-column .small-plus {
  /* margin-top: 8px;
  background: #f4f4f4;
  border: 1px solid #ddd;
  padding: 6px 8px;
  cursor: pointer; */
  margin-top: 8px;
  margin-left: 30%;
}

@media (max-width: 900px) {
  .bindery-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .bindery-columns {
    grid-template-columns: 1fr;
  }
}
.packaging-container {
  padding: 18px 0;
}
.packaging-container label {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
.packaging-top-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.packaging-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.packaging-left label {
  max-width: 150px;
  justify-content: center;
}
.packaging-left-top,
.packaging-left-bottom {
  display: flex;
  gap: 12px;
}
.glueoption-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.glueoption-manual-input {
  min-width: 170px;
}
.packaging-right {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-right: 10px;
}
.packaging-right-left,
.packaging-right-right {
  display: flex;
  flex-direction: column;
}
.packaging-top,
.forms-section,
.job-packaging,
.packaging-notes {
  background: #fff;
  border: 1px solid #e6eef6;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  max-width: 1410px;
}
.packaging-container h2,
h3 {
  margin-top: 0;
}
.packaging-notes label {
  gap: 8px;
}

/* Packaging forms and jobs styling */
.forms-section {
  margin: 18px 0;
}
.inventory-toolbar {
  margin-bottom: 10px;
}
.forms-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pack-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pack-form-row input {
  padding: 8px 10px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  min-width: 120px;
}
.pack-form-row .form-delete {
  background: #ff6b6b;
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.pack-form-row select {
  padding: 8px 10px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  min-width: 140px;
}
.job-pack {
  border: 1px solid #e6eef8;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  background: #fbfdff;
  display: flex;
  flex-wrap: wrap;
  max-width: fit-content;
}
button.delete-row {
  border: none;
  background: none;
  width: none;
  transition: 0.2s ease-in;
  filter: opacity(0.7);
  cursor: pointer;
  height: 100%;
  max-height: 54px;
  align-self: center;
}
button.delete-row:hover {
  filter: opacity(1);
  transform: scale(1.1);
  cursor: pointer;
}
.job-pack label {
  display: flex;
  flex-direction: column;
  width: 100px;
  margin-right: 16px;
  font-weight: 600;
}
.job-pack label.job-pack-gluer-machine {
  width: 85px;
}
.job-pack label.job-pack-box-size {
  width: 155px;
}
.job-pack input {
  padding: 6px 8px;
  border: 1px solid #dfe7ef;
  border-radius: 6px;
}
.readonly-field {
  background: #f5f7fb;
  color: #333;
}
.job-item-label {
  font-weight: bold;
  text-transform: uppercase;
}
.job-item .job-item-label,
.job-item .job-item-meta {
  margin-left: 10px;
}
.job-item label [name="GrossQuantityLD"] {
}
/* subtle creation date badge in the customer-info top-right */
.creation-date-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.35);
  background: transparent;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}
.pj-description-label {
  width: 290px !important;
}
.pj-quantity-label {
  width: 170px !important;
}
.pj-gluer-label {
  width: 120px !important;
}
#addFormBtn {
  margin-top: 8px;
}
.job-packaging {
  max-width: fit-content;
}
.inventory-row {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #e6eef8;
  padding: 10px;
  border-radius: 8px;
  background: #fbfdff;
  max-width: fit-content;
}
.inventory-row label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
}
.inventory-row select,
.inventory-row input {
  padding: 8px 10px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
}
.inventory-row .inv-description-label {
  width: 360px;
}
.inventory-row .inv-quantity-label {
  width: 170px;
}
.inventory-empty {
  color: #666;
  font-size: 0.95rem;
}
.final-section {
  margin-bottom: 64px;
}
.plus-button-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  align-items: center;
}
.plus-button-container-top {
  display: flex;
  align-items: center;
}
.button-help {
  font-size: 0.75rem;
  color: #666;
  margin-left: 8px;
}
button.small-plus {
  height: 28px;
  width: 28px;
  border: none;
  background: var(--lapis-lazuli);
  color: #fff;
  border-radius: 99px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: 0.2s ease-in;
  padding: 0;
}
button.small-plus:hover {
  background: var(--steel-blue);
}
button.jobversion-delete {
  align-self: end;
}
.search-result .search-codes {
  font-size: 0.9rem;
  color: #666;
}
/* Mode toggle styles (docket list) */
.ld-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ld-header .status-toggle,
.ld-header .class-toggle,
.ld-header .class-switcher {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0 8px;
  border: 4px solid white;
  border-radius: 20px;
  background: white;
}
.status-toggle .mode-btn,
.class-toggle .mode-btn,
.class-switcher .mode-btn {
  padding: 6px 8px;
  font-size: 13px;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: #333;
  cursor: pointer;
  transition: 0.2s ease;
}
.class-toggle .mode-btn {
  min-width: 45px;
  font-weight: bold;
}

.status-toggle .mode-btn:hover,
.class-toggle .mode-btn:hover,
.class-switcher .mode-btn:hover {
  filter: brightness(0.98);
}
.status-toggle .mode-btn.selected,
.status-toggle .mode-btn[aria-pressed="true"] {
  background: var(--steel-blue);
  color: #fff;
}
.class-toggle .mode-btn.selected,
.class-toggle .mode-btn[aria-pressed="true"],
.class-switcher .mode-btn.selected,
.class-switcher .mode-btn[aria-pressed="true"] {
  background: var(--steel-blue) !important;
  color: #fff !important;
}
.class-switcher .mode-btn {
  font-weight: 600;
}
.class-switcher .mode-btn.active {
  font-weight: 600;
  background: var(--steel-blue) !important;
  color: #fff !important;
}
.mode-sup {
  font-weight: 300;
  font-size: 11px;
  margin-left: -4px;
  vertical-align: super;
  color: #f3f3f3;
}
/* Status badge used in docket list */
.status-badge {
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  display: inline-block;
  min-width: 56px;
  text-align: center;
  color: #111;
}
.generate-pdf-div {
  position: absolute;
  margin-left: -28px;
  bottom: 58px;
  background: #ffffff14;
  padding: 10px;
  border-radius: 0px 10px 10px 0px;
  backdrop-filter: blur(10px);
  border: 1px solid #0000001a;
  border-left: none;
}
.form-actions .generate-pdf-btn {
  background: #fff;
  font-weight: 600;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 2px 2px 4px #00000026;
}
.form-actions .generate-pdf-btn:hover {
  background: var(--rich-black);
  color: #fff;
}

/* Styles scoped to the Import/Export modal shown on Client List page */
#importExportModal,
#inventoryImportExportModal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1200;
  padding: 24px;
}
#importExportModal.open,
#inventoryImportExportModal.open {
  display: flex;
}
#importExportModal .modal-content,
#inventoryImportExportModal .modal-content {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(3, 11, 22, 0.2);
  /* width: 100%; */
  max-width: 820px;
  max-height: 85vh;
  overflow: auto;
  padding: 18px;
}
#importExportModal .modal-content h3,
#inventoryImportExportModal .modal-content h3 {
  margin: 0 0 12px 0;
  font-size: 1.15rem;
  color: black;
}
#importExportModal .modal-content .btn,
#inventoryImportExportModal .modal-content .btn {
  margin-right: 8px;
}
#importExportModal .btn.secondary,
#inventoryImportExportModal .btn.secondary {
  background: #f3f4f6;
  color: #333;
  border: 1px solid #e2e8f0;
}
#importPreview,
#importSummary {
  box-sizing: border-box;
  width: 100%;
  background: #fff;
}
#importPreview table {
  width: 100%;
  border-collapse: collapse;
}
#importPreview th,
#importPreview td {
  border: 1px solid #eef2f6;
  padding: 6px;
  text-align: left;
  font-size: 0.95rem;
}
#importPreview thead th {
  background: #f8fafc;
  font-weight: 600;
}
#importSummary {
  white-space: normal;
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  #importExportModal .modal-content {
    padding: 12px;
    max-width: 95%;
  }
}

/* Import / Export modal styles */
.modal.import-export {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1200;
  padding: 24px;
}
.modal.import-export.open {
  display: flex;
}
.modal.import-export .modal-content {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(3, 11, 22, 0.2);
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  overflow: auto;
  padding: 18px;
}
.modal.import-export .modal-content h3 {
  margin: 0 0 12px 0;
  font-size: 1.15rem;
  color: var(--steel-blue);
}
.modal.import-export .modal-content .btn {
  margin-right: 8px;
}
.modal.import-export .btn.secondary {
  background: #f3f4f6;
  color: #333;
  border: 1px solid #e2e8f0;
}
#importPreview,
#importSummary {
  box-sizing: border-box;
  width: 100%;
  background: #fff;
}
#importPreview table {
  width: 100%;
  border-collapse: collapse;
}
#importPreview th,
#importPreview td {
  border: 1px solid #eef2f6;
  padding: 6px;
  text-align: left;
  font-size: 0.85rem;
}
#importPreview thead th {
  background: #f8fafc;
  font-weight: 600;
}
#importSummary {
  white-space: normal;
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  .modal.import-export .modal-content {
    padding: 12px;
    max-width: 95%;
  }
}
.import-btn {
  background: var(--lapis-lazuli);
  color: white;
}
.import-instructions {
  box-sizing: border-box;
  width: 100%;
  background: #fff;
  max-height: 320px;
  overflow: auto;
  border: 1px solid #ddd;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.import-instructions h4 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rich-black);
}
.import-instructions ul {
  margin: 0;
  padding-left: 18px;
}
.import-instructions li {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 5px;
  line-height: 1.45;
}
.import-instructions li strong {
  color: #222;
}
.inventory-form-card-packaging {
  width: 450px;
}
.inventory-form-card-packaging .field input {
  width: stretch;
}
#bulkDeleteBtn {
  background: #b91010;
  color: white;
}
#bulkDeleteBtn:hover {
  background: #ff3838;
}
#deleteDocketTyped {
  border: 1px solid #d1dfe8;
}
#deleteDocketBtn {
  background: #b91010;
  color: #fff;
  margin-left: 16px;
}
#deleteDocketBtn:hover {
  background: #ff3838;
}
.konsberg-cut-field {
  height: stretch;
  display: flex;
  align-items: center;
}
.job-flat-size {
  width: 155px !important;
}
.job-finish-size {
  width: 155px !important;
}
