.payment-advice-shell {
  --ink: #142033;
  --muted: #64748b;
  --line: #d7e2ee;
  --panel: #ffffff;
  --surface: #eef5f7;
  --soft: #f7fafc;
  --teal: #0f766e;
  --cyan: #0891b2;
  --blue: #2563eb;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --danger: #c2410c;
  --shadow: 0 18px 42px rgba(20, 32, 51, 0.11);
}

.payment-advice-shell {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(130deg, rgba(15, 118, 110, 0.16), transparent 34%),
    linear-gradient(245deg, rgba(37, 99, 235, 0.13), transparent 36%),
    linear-gradient(20deg, rgba(245, 158, 11, 0.1), transparent 38%),
    var(--surface);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.payment-advice-shell,
.payment-advice-shell * {
  box-sizing: border-box;
}

.payment-advice-shell button,
.payment-advice-shell input,
.payment-advice-shell select,
.payment-advice-shell textarea {
  font: inherit;
}

.payment-advice-shell button {
  cursor: pointer;
}

.payment-advice-mark,
.payment-advice-paper-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  font-weight: 950;
  letter-spacing: 0;
}
.payment-advice-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}

.payment-advice-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(160deg, #0f766e 0%, #0e7490 45%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 12px 0 34px rgba(20, 32, 51, 0.14);
}

.payment-advice-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 16px;
}

.payment-advice-sidebar-brand strong,
.payment-advice-sidebar-brand span,
.payment-advice-sidebar-footer span,
.payment-advice-sidebar-footer strong {
  display: block;
}

.payment-advice-sidebar-brand strong {
  font-size: 17px;
  line-height: 1.1;
}

.payment-advice-sidebar-brand span,
.payment-advice-sidebar-footer span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.payment-advice-mark {
  background: linear-gradient(135deg, #22c55e, var(--amber));
}

.payment-advice-side-nav {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.payment-advice-side-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  padding: 0 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 900;
}

.payment-advice-side-nav button span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
}

.payment-advice-side-nav button.active,
.payment-advice-side-nav button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.payment-advice-side-nav button.active {
  box-shadow: inset 4px 0 0 var(--amber);
}

.payment-advice-sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 13px;
}

.payment-advice-sidebar-footer strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-advice-logout-button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 900;
}

.payment-advice-main {
  min-width: 0;
  padding: 10px 12px;
}

.payment-advice-topbar,
.payment-advice-workspace {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.payment-advice-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 10px;
  border: 1px solid rgba(215, 226, 238, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(20, 32, 51, 0.08);
  padding: 10px 16px;
}

.payment-advice-shell h1,
.payment-advice-shell h2 {
  margin: 0;
  letter-spacing: 0;
}

.payment-advice-shell h1 {
  font-size: 22px;
  line-height: 1.1;
}

.payment-advice-shell h2 {
  font-size: 18px;
  line-height: 1.2;
}

.payment-advice-topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.payment-advice-primary-button,
.payment-advice-secondary-button,
.payment-advice-ghost-button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 15px;
  font-weight: 950;
}

.payment-advice-primary-button {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.22);
}

.payment-advice-secondary-button {
  align-self: end;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  color: #fff;
}

.payment-advice-ghost-button {
  border-color: var(--line);
  background: #fff;
  color: #364255;
}

.payment-advice-primary-button:hover,
.payment-advice-secondary-button:hover,
.payment-advice-ghost-button:hover {
  transform: translateY(-1px);
}

.payment-advice-view-panel {
  display: none;
  animation: panel-in 180ms ease-out;
}

.payment-advice-view-panel.active {
  display: block;
}

.payment-advice-preview-panel.active {
  display: block;
}

.payment-advice-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.payment-advice-entry-panel,
.payment-advice-master-panel,
.payment-advice-paper {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.payment-advice-entry-panel,
.payment-advice-master-panel {
  padding: 17px;
}

.payment-advice-entry-panel {
  min-height: auto;
}

.payment-advice-master-panel {
  width: 100%;
}

.payment-advice-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 15px;
}

.payment-advice-section-heading:not(:first-child) {
  margin-top: 20px;
}

.payment-advice-section-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-advice-section-heading span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8fff9, #eef5ff);
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.payment-advice-section-heading.compact {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.payment-advice-section-heading.compact strong {
  color: var(--muted);
  font-size: 13px;
}

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

.payment-advice-master-add {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px;
  gap: 14px;
  align-items: end;
}

.payment-advice-shell label {
  display: grid;
  gap: 7px;
  color: #3f4856;
  font-size: 13px;
  font-weight: 950;
}

.payment-advice-shell input,
.payment-advice-shell select,
.payment-advice-shell textarea {
  width: 100%;
  border: 1px solid #c9d5e3;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 850;
}

.payment-advice-shell input,
.payment-advice-shell select {
  min-height: 43px;
}

.payment-advice-shell textarea {
  min-height: 76px;
  resize: vertical;
}

.payment-advice-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.payment-advice-save-message {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.payment-advice-save-message[data-tone="success"] {
  color: var(--teal);
}

.payment-advice-save-message[data-tone="error"] {
  color: var(--danger);
}

.payment-advice-form-actions .payment-advice-secondary-button {
  min-width: 150px;
}

.payment-advice-shell input:focus,
.payment-advice-shell select:focus,
.payment-advice-shell textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.14);
  outline: none;
}

.payment-advice-wide-field {
  grid-column: span 2;
}

.payment-advice-net-preview {
  display: grid;
  align-content: center;
  min-height: 43px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 7px;
  background: linear-gradient(135deg, #e8fff9, #fff);
  padding: 10px 12px;
}

.payment-advice-net-preview span,
.payment-advice-summary-strip span,
.payment-advice-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.payment-advice-net-preview strong {
  margin-top: 4px;
  color: var(--teal);
  font-size: 17px;
}

.payment-advice-bank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.payment-advice-bank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(135deg, #ffffff, var(--soft));
  padding: 9px 10px;
}

.payment-advice-bank-item:hover {
  border-color: rgba(8, 145, 178, 0.34);
  box-shadow: 0 10px 22px rgba(20, 32, 51, 0.06);
}

.payment-advice-bank-item span {
  overflow-wrap: anywhere;
  font-weight: 950;
}

.payment-advice-bank-item button {
  min-height: 30px;
  border: 1px solid rgba(194, 65, 12, 0.22);
  border-radius: 6px;
  background: rgba(194, 65, 12, 0.08);
  color: var(--danger);
  font-size: 12px;
  font-weight: 950;
}

.payment-advice-record-list {
  display: grid;
  gap: 10px;
}

.payment-advice-record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

.payment-advice-record-load {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 4px 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(135deg, #ffffff, var(--soft));
  padding: 12px;
  text-align: left;
}

.payment-advice-record-load:hover {
  border-color: rgba(8, 145, 178, 0.34);
  box-shadow: 0 10px 22px rgba(20, 32, 51, 0.06);
}

.payment-advice-record-load strong,
.payment-advice-record-load span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-advice-record-load strong {
  font-size: 15px;
  font-weight: 950;
}

.payment-advice-record-load span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.payment-advice-record-load b {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--teal);
  text-align: right;
}

.payment-advice-record-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.payment-advice-record-view,
.payment-advice-record-remove {
  border: 1px solid rgba(194, 65, 12, 0.22);
  border-radius: 7px;
  background: rgba(194, 65, 12, 0.08);
  color: var(--danger);
  font-weight: 950;
}

.payment-advice-record-view {
  border-color: rgba(8, 145, 178, 0.24);
  background: rgba(8, 145, 178, 0.1);
  color: var(--teal);
}

.payment-advice-empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  padding: 18px;
  text-align: center;
  font-weight: 850;
}

.payment-advice-paper {
  width: 100%;
  min-height: 940px;
  overflow: hidden;
  background: #fff;
}

.payment-advice-paper-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-height: 120px;
  padding: 28px 34px 22px;
  border-bottom: 3px solid var(--teal);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 42%),
    linear-gradient(35deg, rgba(37, 99, 235, 0.07), transparent 42%),
    #fff;
}

.payment-advice-paper-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.payment-advice-paper-logo {
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.payment-advice-paper-header p {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.payment-advice-paper-header h2 {
  color: var(--teal);
  font-size: 30px;
}

.payment-advice-meta {
  min-width: 152px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  text-align: right;
}

.payment-advice-meta strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.payment-advice-paper-copy {
  padding: 20px 34px 8px;
  color: #283343;
  line-height: 1.55;
}

.payment-advice-paper-copy p {
  margin: 0 0 12px;
}

.payment-advice-subject {
  color: var(--ink);
}

.payment-advice-summary-strip {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 12px;
  padding: 0 34px 14px;
}

.payment-advice-summary-strip > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 13px;
}

.payment-advice-summary-strip strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.payment-advice-details-table {
  width: calc(100% - 68px);
  margin: 0 34px;
  border-collapse: collapse;
  table-layout: fixed;
}

.payment-advice-details-table th,
.payment-advice-details-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.payment-advice-details-table th {
  width: 36%;
  background: #f4f7fa;
  color: #344052;
  font-weight: 950;
}

.payment-advice-details-table td {
  overflow-wrap: anywhere;
}

.payment-advice-net-row th,
.payment-advice-net-row td {
  background: #e8fff9;
  color: var(--teal);
  font-size: 16px;
  font-weight: 950;
}

.payment-advice-acknowledgement {
  margin: 20px 34px 0;
  border-left: 4px solid var(--amber);
  padding: 2px 0 2px 14px;
  color: #3c4654;
  line-height: 1.5;
}

.payment-advice-paper-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding: 0 34px 34px;
}

.payment-advice-paper-footer strong,
.payment-advice-paper-footer span {
  display: block;
}

.payment-advice-paper-footer span {
  margin-top: 7px;
}

.payment-advice-signature-line {
  min-width: 210px;
  border-top: 1px solid var(--ink);
  padding-top: 9px;
  text-align: center;
}

@media (max-width: 1180px) {
  .payment-advice-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

  .payment-advice-entry-panel {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .payment-advice-shell {
    grid-template-columns: 1fr;
  }

  .payment-advice-sidebar {
    position: static;
    height: auto;
    padding: 13px;
  }

  .payment-advice-sidebar-brand {
    padding-bottom: 12px;
  }

  .payment-advice-side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
  }

  .payment-advice-side-nav button {
    justify-content: center;
    min-height: 42px;
    padding: 0 8px;
    text-align: center;
  }

  .payment-advice-side-nav button span {
    display: none;
  }

  .payment-advice-sidebar-footer {
    display: none;
  }

  .payment-advice-main {
    padding: 13px;
  }

  .payment-advice-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-advice-topbar-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .payment-advice-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-advice-preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-advice-form-actions .payment-advice-ghost-button,
  .payment-advice-form-actions .payment-advice-secondary-button {
    width: 100%;
  }

  .payment-advice-form-grid,
  .payment-advice-master-add,
  .payment-advice-bank-list,
  .payment-advice-summary-strip,
  .payment-advice-record-item,
  .payment-advice-record-load {
    grid-template-columns: 1fr;
  }

  .payment-advice-record-load b {
    grid-column: auto;
    grid-row: auto;
    text-align: left;
  }

  .payment-advice-record-actions {
    grid-template-columns: 1fr;
  }

  .payment-advice-wide-field {
    grid-column: auto;
  }

  .payment-advice-secondary-button {
    width: 100%;
  }

  .payment-advice-paper-header,
  .payment-advice-paper-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-advice-paper-header,
  .payment-advice-paper-copy,
  .payment-advice-summary-strip,
  .payment-advice-paper-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .payment-advice-details-table {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .payment-advice-acknowledgement {
    margin-left: 20px;
    margin-right: 20px;
  }

  .payment-advice-meta {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .payment-advice-shell h1 {
    font-size: 22px;
  }

  .payment-advice-topbar-actions > * {
    flex: 1 1 100%;
    justify-content: center;
  }

  .payment-advice-entry-panel,
  .payment-advice-master-panel {
    padding: 16px;
  }

  .payment-advice-paper-brand {
    align-items: flex-start;
  }

  .payment-advice-paper-header h2 {
    font-size: 24px;
  }

  .payment-advice-details-table th,
  .payment-advice-details-table td {
    display: block;
    width: 100%;
  }
}

@media print {
  .payment-advice-shell {
    background: #fff;
  }

  .payment-advice-shell,
  .payment-advice-main,
  .payment-advice-workspace {
    display: block;
    padding: 0;
    max-width: none;
  }

  .payment-advice-sidebar,
  .payment-advice-topbar,
  .payment-advice-preview-actions,
  .payment-advice-view-panel:not(.payment-advice-preview-panel) {
    display: none;
  }

  .payment-advice-preview-panel,
  .payment-advice-preview-panel.active {
    display: block;
  }

  .payment-advice-paper {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media screen {
  /* Asset app embed polish: keep Payment Advice as a clean module, not a second app shell. */
  .app-content .payment-advice-shell {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 145px);
    border: 1px solid rgba(220, 231, 221, 0.9);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(20, 32, 51, 0.08);
  }

  .app-content .payment-advice-sidebar {
    position: relative;
    top: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 88px;
    padding: 16px 20px;
    box-shadow: none;
  }

  .app-content .payment-advice-sidebar-brand {
    min-height: 0;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .app-content .payment-advice-side-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    gap: 8px;
    margin: 0 18px;
  }

  .app-content .payment-advice-side-nav button {
    width: auto;
    min-height: 42px;
    border-color: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    padding: 0 14px 0 10px;
    white-space: nowrap;
  }

  .app-content .payment-advice-side-nav button span {
    width: 26px;
    height: 26px;
    border-radius: 999px;
  }

  .app-content .payment-advice-sidebar-footer {
    flex: 0 1 220px;
    margin-top: 0;
    padding: 10px 12px;
  }

  .app-content .payment-advice-main {
    padding: 20px;
  }

  .app-content .payment-advice-topbar {
    border-radius: 14px;
  }

  .app-content .payment-advice-workspace {
    min-height: auto;
  }
}

@media screen and (max-width: 1180px) {
  .app-content .payment-advice-sidebar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .app-content .payment-advice-side-nav {
    justify-content: flex-start;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .app-content .payment-advice-sidebar-footer {
    display: none;
  }
}

@media screen {
  .app-content .payment-advice-shell {
    background:
      linear-gradient(180deg, rgba(227, 239, 231, 0.85), rgba(247, 251, 249, 0.95)),
      #f3f7f4;
  }

  .app-content .payment-advice-sidebar {
    border-bottom: 1px solid #dce7dd;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 249, 0.94)),
      #ffffff;
    color: #143b35;
  }

  .app-content .payment-advice-sidebar-brand strong {
    color: #10251f;
  }

  .app-content .payment-advice-sidebar-brand span,
  .app-content .payment-advice-sidebar-footer span {
    color: #526359;
  }

  .app-content .payment-advice-mark {
    background: linear-gradient(135deg, #0b4a4f, #f2b134);
  }

  .app-content .payment-advice-side-nav button {
    border-color: #dce7dd;
    background: #ffffff;
    color: #33443b;
    box-shadow: 0 8px 18px rgba(20, 32, 51, 0.05);
  }

  .app-content .payment-advice-side-nav button span {
    background: #eaf4ee;
    color: #0b4a4f;
  }

  .app-content .payment-advice-side-nav button.active,
  .app-content .payment-advice-side-nav button:hover {
    border-color: #b8d6c6;
    background: #eef8f2;
    color: #0b4a4f;
  }

  .app-content .payment-advice-side-nav button.active {
    box-shadow: inset 0 -3px 0 #f2b134, 0 10px 22px rgba(20, 32, 51, 0.07);
  }

  .app-content .payment-advice-sidebar-footer {
    border-color: #dce7dd;
    background: #f8fbf9;
    color: #10251f;
  }

  .app-content .payment-advice-topbar,
  .app-content .payment-advice-entry-panel,
  .app-content .payment-advice-master-panel,
  .app-content .payment-advice-paper {
    border-color: #dce7dd;
    box-shadow: 0 12px 28px rgba(20, 32, 51, 0.06);
  }

  .app-content .payment-advice-secondary-button {
    background: #0b4a4f;
    color: #ffffff;
  }

  .app-content .payment-advice-primary-button {
    background: #f2b134;
    color: #1d261f;
  }

  .app-content .payment-advice-ghost-button {
    border-color: #cbded2;
    color: #33443b;
  }

  .app-content .payment-advice-save-message[data-tone="success"] {
    border: 1px solid #b8d6c6;
    border-radius: 999px;
    background: #eef8f2;
    padding: 8px 12px;
  }

  .app-content .payment-advice-save-message[data-tone="error"] {
    border: 1px solid #f5b8b8;
    border-radius: 999px;
    background: #fff5f5;
    padding: 8px 12px;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
/*


 */

:root {
  --font-main: 'Outfit', sans-serif;
  --font-alt: 'Inter', sans-serif;
  --shell-bg: #f3f7f4;
  --surface: #ffffff;
  --surface-soft: #f8fbf9;
  --border-soft: #dce7dd;
  --brand-deep: #0b4a4f;
  --brand-mid: #3d6b4d;
  --brand-accent: #f2b134;
  --text-main: #141e18;
  --text-soft: #526359;
}

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

body {
  margin: 0;
  font-family: var(--font-main);
  background:
    radial-gradient(circle at top left, rgba(61, 107, 77, 0.08), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(11, 74, 79, 0.08), transparent 30%),
    var(--shell-bg);
  color: var(--text-main);
  font-size: 1.05rem; /* Increased from 1rem */
  -webkit-font-smoothing: antialiased;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.auth-page-body {
  min-height: 100vh;
}

.app-navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px rgba(33, 58, 43, 0.06);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1050; /* Ensure navbar is above main content */
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.app-brand img, .app-logo-img {
  width: auto;
  max-width: 250px;
  height: auto;
  max-height: 90px;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.2s;
}

.app-brand img:hover, .app-logo-img:hover {
  transform: scale(1.03);
}

.app-brand-text {
  display: flex;
  flex-direction: column;
}

.app-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.app-brand-subtitle {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.app-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-deep);
  font-weight: 600;
}

.app-user-icon,
.app-logout-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.app-shell {
  display: grid;
  grid-template-columns: Clamp(230px, 16vw, 280px) minmax(0, 1fr);
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem;
  width: 100%;
  height: calc(100vh - 6.5rem);
  max-width: 100vw;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.app-sidebar {
  width: 100%;
  min-width: 0;
  max-height: calc(100vh - 7rem);
  position: sticky;
  top: 6rem; /* Align with navbar height + spacing */
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border-soft);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.99)),
    var(--surface);
  box-shadow: 0 30px 60px rgba(11, 74, 79, 0.08);
  transition: all 0.3s ease;
}

.app-sidebar::-webkit-scrollbar {
  width: 4px;
}

.app-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-soft);
  border-radius: 4px;
}

.app-sidebar-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.app-sidebar-header h5 {
  margin: 0;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brand-deep);
  letter-spacing: -0.03em;
}

.app-sidebar-header p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: 700;
}

.app-sidebar .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 22px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-link-wrap,
.app-link-label {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.app-link-wrap {
  min-width: 0;
}

.app-link-label {
  line-height: 1.3;
  white-space: normal;
  text-align: left;
}

.app-menu-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--brand-deep);
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link:focus {
  background: rgba(11, 74, 79, 0.08);
  color: var(--brand-deep);
  transform: translateX(4px);
}

.app-sidebar .nav-link.dropdown-toggle-link::after {
  content: "▾";
  font-size: 0.8rem;
  color: var(--text-soft);
}

.app-sidebar .submenu {
  margin: 0 0 0.6rem 0.7rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(13, 92, 99, 0.12);
}

.app-sidebar .submenu .nav-link {
  margin-bottom: 0.2rem;
  padding: 0.72rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.app-main {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
}

.app-content {
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 40px 100px rgba(11, 74, 79, 0.05);
  backdrop-filter: blur(10px);
}

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

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .app-sidebar {
    position: relative;
    top: auto;
    max-height: 340px;
    border-radius: 24px;
  }
}

.app-section-note {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

.app-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-mid));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.app-primary-btn:hover {
  color: #fff;
  opacity: 0.96;
}

.app-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(44, 69, 54, 0.05);
}

.app-table-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 0.8rem;
}

.app-table-search-input {
  width: 100%;
  max-width: 320px;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cfe0d2;
  border-radius: 14px;
  background: #fff;
  color: var(--text-main);
}

.app-table {
  width: 100%;
  margin: 0;
}

.app-table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(44, 69, 54, 0.04);
}

.app-table-pagination-info,
.app-pagination-pages {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.app-table-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.app-pagination-btn,
.app-form-pager-btn {
  min-width: 96px;
  border-radius: 10px;
}

.app-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--brand-deep);
  font-weight: 800;
}

.app-pagination-btn:disabled,
.app-form-pager-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.app-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  background: #f4faf6;
  color: var(--brand-deep);
  font-weight: 700;
}

.app-table-sort-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.app-table-sort-trigger::after {
  content: "<>";
  font-size: 0.7rem;
  line-height: 1;
  opacity: 0.45;
}

.app-table thead th[data-sort-direction="asc"] .app-table-sort-trigger::after {
  content: "^";
  opacity: 1;
}

.app-table thead th[data-sort-direction="desc"] .app-table-sort-trigger::after {
  content: "v";
  opacity: 1;
}

.app-table tbody td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-top: 1px solid #eef4ef;
  overflow-wrap: anywhere;
}

.app-table tbody tr:hover {
  background: rgba(13, 92, 99, 0.03);
}

.app-row-actions a {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: none;
}

.app-row-actions a:last-child {
  color: #b43c31;
}

.app-row-actions form {
  display: inline;
}

.app-row-actions .app-action-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font-weight: 600;
}

.app-row-actions .app-action-button.app-delete-button {
  color: #b43c31;
}

/* Action Icons */
.app-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11, 74, 79, 0.08);
  color: var(--brand-deep);
  transition: all 0.2s;
  text-decoration: none !important;
  border: none;
}

.app-action-icon:hover {
  background: var(--brand-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(11, 74, 79, 0.15);
}

.app-action-icon.text-primary {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.app-action-icon.text-primary:hover {
  background: #0d6efd;
  color: #fff;
}

.app-action-icon.text-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.app-action-icon.text-warning:hover {
  background: #ffc107;
  color: #fff;
}

.app-action-icon.text-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.app-action-icon.text-danger:hover {
  background: #dc3545;
  color: #fff;
}

.app-stakeholder-logo-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #fff;
}

.app-logo-preview {
  margin-top: 1rem;
}

.app-stakeholder-logo-preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: #fff;
}

.app-notification-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  text-decoration: none;
}

.app-notification-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #b43c31;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.app-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.app-page-header h2,
.app-page-header h1 {
  margin: 0;
}

.app-page-header h3 {
  margin: 0;
  color: var(--brand-deep);
}

.app-page-header-top {
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.app-page-header-center {
  align-items: center;
}

.app-page-title {
  margin: 0;
  font-size: 1.8rem;
  color: #1a3a2a;
}

.app-page-subtitle {
  margin: 0.5rem 0 0;
  color: #6b8e7f;
  font-size: 0.95rem;
}

.app-subsection-header {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.app-subsection-header-spacious {
  margin-top: 1.5rem;
}

.app-subsection-header-tight {
  margin-bottom: 1rem;
}

.app-back-link {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: none;
}

.app-form-card {
  max-width: 1363px;
  overflow: visible;
  padding: 1.15rem;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 247, 0.96));
  box-shadow: 0 18px 40px rgba(44, 69, 54, 0.06);
}

.app-form-card-paged,
.app-page-paged {
  max-height: calc(100vh - 190px);
  overflow: hidden;
}

.app-form-card-paged {
  display: flex;
  flex-direction: column;
}

.app-page-paged {
  display: flex;
  flex-direction: column;
}

.app-page-paged > .app-page-header,
.app-page-paged > .app-detail-actions,
.app-page-paged > .app-form-pager {
  flex: 0 0 auto;
}

.app-page-paged > :not(.app-page-header):not(.app-detail-actions):not(.app-form-pager) {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.app-hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(242, 177, 52, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 247, 0.98));
  box-shadow: 0 22px 48px rgba(11, 74, 79, 0.06);
}

.app-hero-copy {
  max-width: 760px;
}

.app-hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--brand-mid);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-hero-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  color: #1a2d22;
}

.app-hero-text {
  margin: 0.65rem 0 0;
  max-width: 720px;
  color: var(--text-soft);
}

.app-hero-meta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-hero-stat {
  min-width: 120px;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.app-hero-stat strong {
  display: block;
  color: var(--brand-deep);
  font-size: 1.35rem;
}

.app-hero-stat span {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.app-admin-panel {
  padding: 1.35rem;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fcf9);
  box-shadow: 0 18px 38px rgba(44, 69, 54, 0.05);
}

.app-admin-panel + .app-admin-panel {
  margin-top: 1.25rem;
}

.app-admin-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-admin-panel-title {
  margin: 0;
  color: var(--brand-deep);
  font-size: 1.25rem;
}

.app-context-banner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.app-context-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
}

.app-context-pill-success {
  border-color: rgba(25, 135, 84, 0.18);
  background: rgba(25, 135, 84, 0.08);
  color: #198754;
}

.app-context-pill-info {
  border-color: rgba(13, 202, 240, 0.18);
  background: rgba(13, 202, 240, 0.08);
  color: #0b7285;
}

.app-context-note {
  margin-left: auto;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.app-permission-list {
  display: grid;
  gap: 1rem;
}

.app-permission-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
}

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

.app-permission-main {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--brand-deep);
  font-weight: 800;
}

.app-permission-tag {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-permission-subgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.app-permission-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #dfeae2;
  border-radius: 14px;
  background: #fbfdfb;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
}

.app-form-actions-sticky {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: 1rem;
  padding-top: 1rem;
  background: linear-gradient(180deg, rgba(248, 252, 249, 0), rgba(248, 252, 249, 0.96) 28%, rgba(248, 252, 249, 1));
}

.app-filter-pills {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.app-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.app-filter-pill.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-mid));
  color: #fff;
  box-shadow: 0 14px 26px rgba(11, 74, 79, 0.18);
}

.app-empty-state {
  padding: 2.2rem 1.5rem;
  border: 1px dashed #cddfd1;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f9fcfa);
  text-align: center;
}

.app-empty-state h3 {
  margin: 0.2rem 0 0.5rem;
  color: var(--brand-deep);
}

.app-empty-state p {
  margin: 0;
  color: var(--text-soft);
}

.app-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: rgba(11, 74, 79, 0.08);
  color: var(--brand-deep);
}

@media (max-width: 980px) {
  .app-hero-card {
    flex-direction: column;
  }

  .app-hero-meta {
    justify-content: flex-start;
  }

  .app-context-note {
    margin-left: 0;
    width: 100%;
  }
}

.app-form-card.app-form-card-wide {
  max-width: 100%;
}

.app-rfp-page-header {
  margin-bottom: 1rem;
  padding: 0.2rem 0.1rem 0;
}

.app-rfp-page-header .app-page-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: #064f45;
}

.app-rfp-page-header .app-page-subtitle {
  color: #647871;
}

.app-rfp-page-header .app-back-link {
  padding: 0.45rem 0.8rem;
  border: 1px solid #d9e7df;
  border-radius: 999px;
  background: #fff;
}

.app-rfp-form {
  overflow: visible;
  color: #163d35;
}

.app-rfp-card {
  display: grid;
  gap: 0.85rem;
  overflow: visible;
  padding: Clamp(1rem, 1.3vw, 1.25rem);
  border-color: #dce9e2;
  border-radius: 18px;
  background: #fbfdfc;
  box-shadow: 0 18px 44px rgba(20, 56, 43, 0.08);
}

.app-rfp-form .app-subsection-header {
  margin: 0.35rem 0 0.75rem;
  padding: 0.1rem 0 0;
}

.app-rfp-form .app-subsection-header h3 {
  font-size: 1.18rem;
  font-weight: 900;
  color: #064f45;
}

.app-rfp-form .app-section-note {
  color: #6f7f79;
}

.app-rfp-meta-grid,
.app-rfp-vendor-field,
.app-rfp-section-panel {
  padding: 1rem;
  border: 1px solid #dbe8e1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 58, 43, 0.05);
}

.app-rfp-meta-grid {
  gap: 0.9rem;
  align-items: start;
}

.app-rfp-form .app-form-field label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #064f45;
  letter-spacing: 0;
}

.app-rfp-form .app-form-field input:not([type="checkbox"]):not([type="radio"]),
.app-rfp-form .app-form-field select,
.app-rfp-form .app-form-field textarea,
.app-rfp-form .app-form-card .form-control {
  border-color: #d3e1d8;
  border-radius: 10px;
  background: #fcfefd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.app-rfp-form .app-form-field input:not([type="checkbox"]):not([type="radio"]):hover,
.app-rfp-form .app-form-field select:hover,
.app-rfp-form .app-form-field textarea:hover,
.app-rfp-form .app-form-card .form-control:hover {
  border-color: #b9d0c3;
  background: #fff;
}

.app-rfp-form .app-form-field textarea {
  min-height: 82px;
}

.app-rfp-vendor-field {
  gap: 0.55rem;
}

.app-rfp-vendor-field > label {
  margin-bottom: 0;
}

.app-rfp-section-panel {
  display: grid;
  gap: 1rem;
}

.app-rfp-criteria-panel {
  gap: 0.95rem;
}

.app-rfp-criteria-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-rfp-criteria-toolbar-copy {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.app-rfp-criteria-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.app-rfp-criteria-search {
  width: 100%;
  max-width: 260px;
  margin: 0;
}

.app-rfp-criteria-search .form-control {
  border-radius: 14px;
}

.app-rfp-criteria-selected-preview {
  margin: 0;
  color: #5f6d68;
  font-size: 0.9rem;
}

.app-rfp-criteria-toggle {
  min-width: 150px;
  white-space: nowrap;
}

.app-rfp-criteria-toggle.is-hidden {
  display: none;
}

.app-rfp-criteria-grid-wrap {
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.35rem 0.35rem 0 0;
  border-top: 1px solid #edf3ef;
}

.app-rfp-criteria-grid-wrap.is-collapsed {
  display: none;
}

.app-rfp-criteria-grid-wrap.is-hidden {
  display: none;
}

.app-rfp-criteria-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
}

.app-rfp-criteria-option {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: 24rem;
  min-height: auto;
  padding: 0.58rem 0.8rem;
  border: 1px solid #d8e6df;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.app-rfp-criteria-option:hover {
  border-color: #b8d0c2;
  box-shadow: 0 10px 20px rgba(15, 74, 79, 0.06);
  transform: translateY(-1px);
}

.app-rfp-criteria-option input[type="checkbox"] {
  margin-top: 0;
  accent-color: #0f5f52;
  flex-shrink: 0;
}

.app-rfp-criteria-option span {
  display: block;
  min-width: 0;
  max-width: 30ch;
}

.app-rfp-criteria-option strong {
  display: block;
  color: #183f36;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.app-rfp-criteria-option:has(input[type="checkbox"]:checked) {
  border-color: #0f5f52;
  background: linear-gradient(180deg, #eef8f3 0%, #f9fcfa 100%);
  box-shadow: 0 12px 24px rgba(15, 95, 82, 0.1);
}

.app-rfp-criteria-option.is-hidden,
.app-rfp-criteria-empty.is-hidden {
  display: none;
}

.app-rfp-criteria-empty,
.app-rfp-criteria-summary {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.app-form-section {
  margin: 1.35rem 0 0.85rem;
}

.app-form-section:first-child {
  margin-top: 0;
}

.app-form-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.app-form-section-note {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.app-form-errors {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e5b9b4;
  border-radius: 16px;
  background: #fff5f4;
  color: #8f2f25;
}

.app-form-errors h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.app-form-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.app-form-grid {
  display: grid;
  gap: 1rem;
}

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

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

.app-form-grid.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-form-grid.five-col {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.app-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.app-form-field label,
.app-form-card .form-label {
  margin: 0;
  font-weight: 600;
  color: var(--brand-deep);
}

.app-form-field input:not([type="checkbox"]):not([type="radio"]),
.app-form-field select,
.app-form-field textarea,
.app-form-card .form-control {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cfe0d2;
  border-radius: 14px;
  background: #fff;
  color: var(--text-main);
}

.app-form-field textarea,
.app-form-card textarea.form-control {
  min-height: 110px;
}

.app-form-field input:focus,
.app-form-field select:focus,
.app-form-field textarea:focus,
.app-form-card .form-control:focus {
  border-color: rgba(13, 92, 99, 0.4);
  box-shadow: 0 0 0 0.2rem rgba(13, 92, 99, 0.12);
  outline: 0;
}

.app-form-field.has-error input:not([type="checkbox"]):not([type="radio"]),
.app-form-field.has-error select,
.app-form-field.has-error textarea,
.app-form-field.has-error .form-control,
.app-form-field.has-error .app-multiselect-trigger {
  border-color: #d64545;
  background: #fff8f8;
}

.app-form-field.has-error input:focus,
.app-form-field.has-error select:focus,
.app-form-field.has-error textarea:focus,
.app-form-field.has-error .form-control:focus,
.app-form-field.has-error .app-multiselect-trigger:focus {
  border-color: #d64545;
  box-shadow: 0 0 0 0.2rem rgba(214, 69, 69, 0.12);
}

.app-form-error {
  color: #c03535;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.app-form-error-client {
  display: none;
}

.app-form-error-client.is-visible {
  display: block;
}

.app-action-button:disabled,
.app-delete-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.app-multiselect {
  min-height: 220px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: #fff;
}

.app-multiselect-dropdown {
  position: relative;
}

.app-selected-vendors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 auto;
  margin: 0;
}

.app-selected-vendors:empty {
  display: none;
}

.app-selected-vendor-chip {
  padding: 0.45rem 0.8rem;
  border: 1px solid #cfe2d2;
  border-radius: 999px;
  background: #f3faf5;
  color: var(--brand-deep);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.app-rfp-form .app-selected-vendor-chip {
  padding: 0.34rem 0.65rem;
  border-color: #c9dfd4;
  border-radius: 6px;
  background: #eef7f2;
  font-size: 0.82rem;
  box-shadow: 0 1px 2px rgba(24, 67, 49, 0.06);
}

.app-selected-vendor-chip::after {
  content: " x";
  font-weight: 700;
}

.app-multiselect-trigger {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: #fff;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.app-rfp-form .app-multiselect-trigger {
  min-height: 46px;
  border-color: #d3e1d8;
  border-radius: 10px;
  background: #fcfefd;
}

.app-rfp-form .app-multiselect-dropdown.is-open .app-multiselect-trigger {
  border-color: rgba(13, 92, 99, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(13, 92, 99, 0.1);
}

.app-multiselect-placeholder {
  flex: 1 1 auto;
  color: var(--text-soft);
}

.app-multiselect-placeholder:empty {
  display: none;
}

.app-multiselect-trigger::after {
  content: "▾";
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.app-multiselect-panel {
  display: none;
  position: absolute;
  z-index: 20;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0;
  border: 1px solid #8f8f8f;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 28, 24, 0.12);
  overflow: hidden;
}

.app-rfp-form .app-multiselect-panel {
  margin-top: 0.35rem;
  border-color: #c9d8d0;
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(25, 45, 37, 0.16);
}

.app-multiselect-dropdown.is-open .app-multiselect-panel {
  display: block;
}

.app-multiselect-panel::before {
  content: "Select Vendors";
  display: block;
  padding: 0.8rem 1rem 0.65rem;
  color: #2f3b3a;
  font-size: 1rem;
  font-weight: 500;
}

.app-multiselect-search {
  width: calc(100% - 1.4rem);
  min-height: 38px;
  margin: 0 0.7rem 0.35rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c9d8cd;
  border-radius: 4px;
}

.app-multiselect-options {
  display: block;
  max-height: 250px;
  overflow-y: auto;
}

.app-multiselect-option {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 38px;
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}

.app-multiselect-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.app-multiselect-option span {
  display: block;
  width: 100%;
}

.app-multiselect-option strong {
  font-size: 0.95rem;
  font-weight: 500;
}

.app-multiselect-option small {
  display: none;
}

.app-multiselect-option:hover {
  background: #e4e4e4;
}

.app-multiselect-option:has(input[type="checkbox"]:checked) {
  background: #4f86ed;
  color: #fff;
  box-shadow: none;
}

.app-multiselect-option.is-hidden,
.app-multiselect-empty.is-hidden {
  display: none;
}

.app-multiselect-empty {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  text-align: center;
}

.app-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.app-form-page {
  flex: 1 1 auto;
  display: grid;
  gap: 1rem;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.app-form-page[hidden] {
  display: none !important;
}

.app-form-pager {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2ece6;
  background: rgba(255, 255, 255, 0.96);
}

.app-form-pager-status {
  color: var(--brand-deep);
  font-size: 0.94rem;
  font-weight: 800;
}

.app-form-pager-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.app-form-pager-btn[hidden] {
  display: none !important;
}

.app-page-section-pager {
  margin-top: auto;
}

.app-static-paged-form {
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
}

.app-static-page-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.app-static-page {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.app-static-pager-nav {
  flex: 0 0 auto;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2ece6;
  background: rgba(255, 255, 255, 0.98);
}

.app-static-pager-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.app-static-pager-status {
  color: var(--brand-deep);
  font-weight: 800;
}

.app-static-pager-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.app-static-pager-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  color: var(--brand-deep);
  font-weight: 800;
  cursor: pointer;
}

.app-static-pager-button-primary {
  border-color: #0f5f52;
  background: #0f5f52;
  color: #fff;
}

#vendor-step-1:checked ~ .vendor-page-1,
#vendor-step-2:checked ~ .vendor-page-2,
#vendor-step-3:checked ~ .vendor-page-3,
#vendor-step-4:checked ~ .vendor-page-4,
#vendor-step-5:checked ~ .vendor-page-5,
#vendor-step-6:checked ~ .vendor-page-6,
#quotation-step-1:checked ~ .quotation-page-1,
#quotation-step-2:checked ~ .quotation-page-2,
#quotation-step-3:checked ~ .quotation-page-3,
#quotation-step-4:checked ~ .quotation-page-4,
#quotation-step-5:checked ~ .quotation-page-5 {
  display: block;
}

#vendor-step-1:checked ~ .app-static-pager-nav .vendor-nav-1,
#vendor-step-2:checked ~ .app-static-pager-nav .vendor-nav-2,
#vendor-step-3:checked ~ .app-static-pager-nav .vendor-nav-3,
#vendor-step-4:checked ~ .app-static-pager-nav .vendor-nav-4,
#vendor-step-5:checked ~ .app-static-pager-nav .vendor-nav-5,
#vendor-step-6:checked ~ .app-static-pager-nav .vendor-nav-6,
#quotation-step-1:checked ~ .app-static-pager-nav .quotation-nav-1,
#quotation-step-2:checked ~ .app-static-pager-nav .quotation-nav-2,
#quotation-step-3:checked ~ .app-static-pager-nav .quotation-nav-3,
#quotation-step-4:checked ~ .app-static-pager-nav .quotation-nav-4,
#quotation-step-5:checked ~ .app-static-pager-nav .quotation-nav-5 {
  display: flex;
}

.app-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-field-hint {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.app-form-submit {
  min-width: 140px;
  padding: 0.75rem 1.1rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-mid));
  color: #fff;
  font-weight: 700;
}

.app-form-submit:hover {
  color: #fff;
  opacity: 0.96;
}

.app-detail-card {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  padding: 1.15rem;
  border: 1px solid #d4e8df;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 247, 0.98));
  box-shadow: 0 10px 30px rgba(26, 58, 42, 0.08);
}

.app-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.app-detail-item {
  height: 104px;
  min-width: 0;
  overflow: hidden;
  padding: 0.85rem 0.95rem;
  border: 1px solid #d4e8df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 58, 42, 0.04);
  transition: all 0.3s ease;
}

.app-detail-item:hover {
  border-color: #6b8e7f;
  box-shadow: 0 4px 12px rgba(26, 58, 42, 0.08);
}

.app-detail-label {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #778d85;
}

.app-detail-value {
  display: -webkit-box;
  max-height: 4.8em;
  overflow: hidden;
  color: #1a3a2a;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  word-break: break-word;
}

.app-detail-item-full {
  grid-column: 1 / -1;
  height: 128px;
  overflow: hidden;
}

.app-detail-item-full .app-detail-value {
  max-height: 6.4em;
  -webkit-line-clamp: 4;
}

.app-detail-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.app-detail-actions-spread {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.app-stack-gap-lg {
  margin-top: 1.5rem;
}

.app-detail-item-full {
  grid-column: 1 / -1;
}

.assets-page {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-content > .assets-page {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
}

.assets-page > * {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.assets-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
  width: 100%;
  min-width: 0;
  padding: 0.15rem 0.1rem 0.35rem;
}

.assets-toolbar-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.assets-page-title {
  margin: 0;
  color: #1f2a2f;
  font-size: Clamp(1.75rem, 2.4vw, 2.15rem);
  line-height: 1.05;
}

.assets-page-note,
.assets-section-note {
  margin-bottom: 0;
}

.assets-toolbar-controls,
.assets-filter-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.assets-toolbar-controls {
  flex: 1 1 auto;
  justify-content: flex-end;
  max-width: 100%;
}

.assets-toolbar-search {
  flex: 0 1 320px;
  min-width: 220px;
}

.assets-toolbar-search .app-table-search {
  margin: 0;
}

.assets-filter-form {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  margin: 0;
}

.assets-filter-select {
  width: 180px;
  min-width: 180px;
  min-height: 40px;
  border-radius: 12px;
}

.assets-filter-submit {
  min-width: 92px;
  min-height: 40px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.assets-workspace-card,
.assets-list-card {
  display: block;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.9rem;
  overflow: hidden;
}

.assets-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.assets-section-title {
  margin: 0 0 0.25rem;
  color: var(--brand-deep);
  font-size: 1.45rem;
}

.assets-workspace-meta {
  margin-bottom: 1rem;
}

.assets-inline-note {
  padding: 0.95rem 1rem;
  border: 1px dashed #cfe0d2;
  border-radius: 16px;
  background: #f9fcfa;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.assets-table-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border: 1px solid #d4e1db;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.assets-workspace-table,
.assets-list-table {
  width: 100%;
  max-width: 100%;
  margin-top: 0.75rem;
  overflow-x: auto;
  background: #fff;
}

.assets-workspace-table {
  max-height: 46vh;
  overflow: auto;
  overscroll-behavior: contain;
}

.assets-list-table {
  max-height: calc(100vh - 10.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.assets-list-table .app-table-search {
  display: none;
}

.assets-list-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.7rem 0.75rem;
  background: #f8fcf9;
  border-bottom: 2px solid #eef3ef;
  line-height: 1.25;
}

.assets-workspace-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fcf9;
}

.assets-table {
  min-width: 1320px;
  table-layout: fixed;
  font-size: 0.92rem;
}

.assets-workspace-entry-table {
  min-width: 2300px;
}

.assets-insurance-workspace-table {
  min-width: 1200px;
}

.assets-table th,
.assets-table td {
  width: auto;
}

.assets-records-table th:first-child,
.assets-records-table td:first-child,
.assets-insurance-overview-table th:first-child,
.assets-insurance-overview-table td:first-child {
  width: 22%;
}

.assets-table th:last-child,
.assets-table td:last-child {
  width: 120px;
}

.assets-workspace-entry-table th:first-child,
.assets-workspace-entry-table td:first-child,
.assets-insurance-workspace-table th:first-child,
.assets-insurance-workspace-table td:first-child {
  width: 64px;
}

.assets-workspace-entry-table th:last-child,
.assets-workspace-entry-table td:last-child {
  width: 220px;
}

.assets-workspace-entry-table th:nth-child(2),
.assets-workspace-entry-table td:nth-child(2) {
  width: 170px;
}

.assets-workspace-entry-table th:nth-child(3),
.assets-workspace-entry-table td:nth-child(3) {
  width: 180px;
}

.assets-workspace-entry-table th:nth-child(4),
.assets-workspace-entry-table td:nth-child(4) {
  width: 90px;
}

.assets-workspace-entry-table th:nth-child(5),
.assets-workspace-entry-table td:nth-child(5) {
  width: 230px;
}

.assets-workspace-entry-table th:nth-child(6),
.assets-workspace-entry-table td:nth-child(6),
.assets-workspace-entry-table th:nth-child(7),
.assets-workspace-entry-table td:nth-child(7) {
  width: 340px;
}

.assets-workspace-entry-table th:nth-child(8),
.assets-workspace-entry-table td:nth-child(8) {
  width: 190px;
}

.assets-workspace-entry-table th:nth-child(9),
.assets-workspace-entry-table td:nth-child(9) {
  width: 160px;
}

.assets-workspace-entry-table th:nth-child(10),
.assets-workspace-entry-table td:nth-child(10) {
  width: 230px;
}

.assets-table tbody td {
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
}

.assets-table .app-row-actions,
.assets-table .app-row-actions * {
  overflow-wrap: normal;
}

.assets-table .app-row-actions > .d-flex {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.assets-table-input {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
}

.assets-table-date-input {
  min-width: 190px;
  width: 100%;
}

.assets-table-select {
  min-width: 0;
  width: 100%;
}

.assets-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.assets-rate-value {
  font-weight: 700;
}

@media (max-width: 991px) {
  .app-shell {
    flex-direction: column;
    padding: 1rem;
  }

  .app-sidebar {
    position: relative;
    top: auto;
    width: 100%;
    flex-basis: auto;
    max-height: none;
    border-radius: 24px;
  }

  .app-content {
    padding: 1.25rem;
    border-radius: 28px;
  }

  .assets-toolbar,
  .assets-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .assets-toolbar-controls {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 0.75rem;
  }

  .app-content {
    padding: 1rem;
    border-radius: 22px;
  }

  .assets-workspace-card,
  .assets-list-card {
    padding: 1.15rem;
  }

  .assets-filter-form,
  .assets-toolbar-controls {
    width: 100%;
  }

  .assets-filter-form > *,
  .assets-toolbar-controls > .app-primary-btn {
    width: 100%;
  }

  .assets-filter-select,
  .assets-filter-submit {
    width: 100%;
  }
}

.quotation-proposal-show {
  display: grid;
  gap: 0.85rem;
  overflow: visible;
  padding: Clamp(0.8rem, 1.2vw, 1.1rem);
  border: 1px solid #dbe6df;
  border-radius: 22px;
  background: #f7faf8;
  box-shadow: 0 18px 40px rgba(21, 62, 39, 0.05);
}

.quotation-proposal-show__hero {
  position: relative;
  padding: 1rem 1.15rem;
  border: 1px solid #dbe6df;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(18, 67, 42, 0.05);
}

.quotation-proposal-show__hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 24px 0 0 24px;
  background: #177245;
}

.quotation-proposal-show__title {
  font-size: Clamp(1.55rem, 2.2vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #136437;
}

.quotation-proposal-show__subtitle {
  margin-top: 0.35rem;
  max-width: 760px;
  color: #1b221d;
  font-size: 1rem;
  font-weight: 500;
}

.quotation-proposal-show__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid #cfe1d4;
  border-radius: 999px;
  background: #ffffff;
  color: #136437;
  box-shadow: 0 6px 16px rgba(19, 67, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.quotation-proposal-show__back-link:hover {
  color: #0f7a45;
  border-color: #9fc6ad;
  box-shadow: 0 10px 20px rgba(19, 67, 42, 0.08);
}

.quotation-proposal-show__status-bar {
  margin-top: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #dbe6df;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(19, 67, 42, 0.04);
}

.quotation-proposal-show__status-bar--single {
  justify-content: flex-start;
}

.quotation-proposal-show .app-detail-card,
.quotation-proposal-show .app-form-card,
.quotation-proposal-show .app-card {
  overflow: visible;
  border: 1px solid #dbe6df;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 67, 42, 0.05);
}

.quotation-proposal-show .app-page-header h3,
.quotation-proposal-show .app-page-header h2,
.quotation-proposal-show h4 {
  color: #136437;
  font-weight: 800;
}

.quotation-proposal-show .app-section-note,
.quotation-proposal-show .small.text-muted,
.quotation-proposal-show .text-muted {
  color: #47584d !important;
}

.quotation-proposal-show .app-detail-item {
  height: 104px;
  overflow: hidden;
  border: 1px solid #ddebe1;
  border-radius: 18px;
  background: #fcfefd;
  box-shadow: none;
}

.quotation-proposal-show .app-detail-item-full {
  height: 128px;
}

.quotation-proposal-show .quotation-proposal-show__detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quotation-proposal-show__overview-card {
  display: grid;
  gap: 0.75rem;
}

.quotation-proposal-show__detail-grid--primary,
.quotation-proposal-show__detail-grid--secondary {
  gap: 1rem;
}

.quotation-proposal-show .app-detail-item:hover {
  border-color: #74ad84;
  box-shadow: none;
}

.quotation-proposal-show .app-detail-label {
  color: #4c7c59;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.quotation-proposal-show .app-detail-value {
  color: #151c17;
  font-weight: 600;
}

.quotation-proposal-show .badge.border {
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.quotation-proposal-show .app-secondary-btn {
  border-color: #cfe0d3;
  background: #ffffff;
  color: #136437;
  box-shadow: none;
}

.quotation-proposal-show .app-form-submit {
  background: linear-gradient(135deg, #0f7a45 0%, #1e9f5b 100%);
  box-shadow: 0 10px 20px rgba(15, 122, 69, 0.18);
}

.quotation-proposal-show .app-danger-btn {
  box-shadow: 0 10px 20px rgba(180, 60, 49, 0.16);
}

.quotation-proposal-show .app-table-wrap {
  max-height: calc(100vh - 17rem);
  overflow: auto;
  border: 1px solid #d8e8dc;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 67, 42, 0.05);
}

.quotation-proposal-show .app-table {
  margin-bottom: 0;
}

.quotation-proposal-show .app-table thead th {
  background: linear-gradient(180deg, #edf7f0 0%, #f9fcfa 100%);
  color: #136437;
  font-weight: 800;
  border-bottom-color: #d8e8dc;
}

.quotation-proposal-show .app-table tbody td {
  color: #141a16;
  border-color: #e3eee6;
}

.quotation-proposal-show .app-table tbody tr:hover {
  background: #f6fbf7;
}

.quotation-proposal-show__section-body,
.quotation-proposal-show__nested-body,
.quotation-proposal-show__invoice-request-list,
.quotation-proposal-show__timeline-block,
.quotation-proposal-show__criteria-panel,
.quotation-proposal-show__finance-panel {
  overflow: visible;
}

.quotation-proposal-show__section-header {
  margin-bottom: 0;
}

.quotation-proposal-show__prewrap {
  white-space: pre-wrap;
}

.quotation-proposal-show__invoice-card-title,
.quotation-proposal-show__timeline-actor {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #173c28;
}

.quotation-proposal-show__tag-list {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.quotation-proposal-show__section-details {
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdfc 0%, #f6faf7 100%);
}

.quotation-proposal-show__section-summary {
  align-items: center;
}

.quotation-proposal-show__section-summary::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 0.4rem;
  border-right: 2px solid #1a6a3f;
  border-bottom: 2px solid #1a6a3f;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}

.quotation-proposal-show__section-details[open] > .quotation-proposal-show__section-summary::after {
  transform: rotate(-135deg);
}

.quotation-proposal-show__summary-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.quotation-proposal-show__summary-title {
  color: #136437;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.quotation-proposal-show__summary-note {
  color: #55665c;
  font-size: 0.88rem;
  line-height: 1.4;
}

.quotation-proposal-show__summary-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.quotation-proposal-show__section-body {
  padding: 1rem;
}

.quotation-proposal-show__section-body--workflow {
  padding-top: 1.1rem;
}

.quotation-proposal-show__criteria-panel {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid #dbe7df;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdfc 0%, #f5faf7 100%);
}

.quotation-proposal-show__criteria-title {
  margin: 0;
  color: #1a4f31;
  font-size: 1rem;
  font-weight: 800;
}

.quotation-proposal-show__criteria-note {
  margin: 0.25rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.quotation-proposal-show__criteria-help {
  padding: 0.8rem 0.95rem;
  border: 1px solid #d9e6de;
  border-radius: 14px;
  background: #ffffff;
  color: #4f645b;
  font-size: 0.9rem;
}

.quotation-proposal-show__criteria-list {
  display: grid;
  gap: 0.65rem;
}

.quotation-proposal-show__criteria-checklist {
  display: grid;
  gap: 0.55rem;
  max-height: 16rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.quotation-proposal-show__criteria-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e0ebe3;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
}

.quotation-proposal-show__criteria-check--score {
  align-items: center;
}

.quotation-proposal-show__criteria-check-label {
  display: block;
  flex: 1 1 auto;
  color: #173c28;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  min-width: 0;
}

.quotation-proposal-show__criteria-score-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  flex: 0 0 auto;
  padding: 0.22rem;
  border: 1px solid #dbe9e1;
  border-radius: 12px;
  background: #f7fbf8;
}

.quotation-proposal-show__criteria-score-input {
  width: 64px !important;
  min-width: 64px !important;
  min-height: 36px !important;
  padding: 0.3rem 0.4rem !important;
  border-radius: 10px !important;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: none;
}

.quotation-proposal-show__criteria-score-input::-webkit-outer-spin-button,
.quotation-proposal-show__criteria-score-input::-webkit-inner-spin-button {
  margin: 0;
}

.quotation-proposal-show__criteria-score-scale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #e6f3ed;
  color: #0f5f52;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.quotation-proposal-show__criteria-score-wrap--manual {
  padding-right: 0.28rem;
}

.quotation-proposal-show__criteria-score-input--manual {
  width: 82px !important;
  min-width: 82px !important;
}

.quotation-proposal-show__criteria-score-scale--manual {
  min-width: 48px;
}

.quotation-proposal-show__criteria-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #eef7f2;
  color: #0f5f52;
  font-size: 0.82rem;
  font-weight: 800;
}

.quotation-proposal-show__criteria-remark {
  margin-top: 0.65rem;
}

.quotation-proposal-show__criteria-remark-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #4f645b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.quotation-proposal-show__criteria-remark-input {
  min-height: 84px;
  resize: vertical;
}

.quotation-proposal-show__criteria-remarks-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.quotation-proposal-show__criteria-remark-card {
  display: grid;
  gap: 0.22rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e0ebe3;
  border-radius: 12px;
  background: #ffffff;
}

.quotation-proposal-show__criteria-remark-card strong {
  color: #173c28;
  font-size: 0.83rem;
}

.quotation-proposal-show__criteria-remark-card span {
  color: #5f6d68;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.quotation-proposal-show__pending-score-members {
  margin-top: 0.25rem;
  color: #7a4d00;
  font-size: 0.82rem;
  line-height: 1.35;
}

.quotation-proposal-show__pending-score-members strong {
  color: #5c3a00;
}

.quotation-proposal-show__comparison-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fdfefe;
  box-shadow: 8px 0 18px rgba(26, 58, 42, 0.03);
}

.quotation-proposal-show__comparison-sticky--head {
  z-index: 3;
  background: #f7fbf8;
  box-shadow: 8px 0 18px rgba(26, 58, 42, 0.04);
}

.quotation-proposal-show__invoice-inline-action {
  min-width: auto;
  padding: 0.48rem 0.85rem;
  font-size: 0.84rem;
}

.quotation-proposal-show__nested-details,
.quotation-proposal-show__timeline-details {
  border: 1px solid #dbe7df;
  border-radius: 18px;
  background: #fbfdfc;
  overflow: hidden;
}

.quotation-proposal-show__nested-summary,
.quotation-proposal-show__timeline-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  list-style: none;
  background: #f3f8f4;
  color: #1b5a38;
  font-weight: 700;
}

.quotation-proposal-show__nested-summary::-webkit-details-marker,
.quotation-proposal-show__timeline-summary::-webkit-details-marker {
  display: none;
}

.quotation-proposal-show__workflow-card {
  padding: 0;
  border-top: 3px solid #dceae0;
}

.quotation-proposal-show__workflow-header-copy {
  max-width: 680px;
}

.quotation-proposal-show__finance-panel {
  padding: 1rem 1.05rem;
  border: 1px solid #dbe7df;
  border-radius: 18px;
  background: #f9fcfa;
  margin-bottom: 1rem;
}

.quotation-proposal-show__finance-panel-title,
.quotation-proposal-show__invoice-section-title {
  margin: 0;
  font-weight: 800;
  color: #1a4f31;
}

.quotation-proposal-show__finance-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #d4e2d8;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.quotation-proposal-show__invoice-request-list {
  margin-top: 0.5rem;
}

.quotation-proposal-show__invoice-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid #dbe7df;
  border-radius: 20px;
  background: #fbfdfc;
  box-shadow: 0 8px 20px rgba(19, 67, 42, 0.04);
}

.quotation-proposal-show__invoice-card-header,
.quotation-proposal-show__invoice-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.quotation-proposal-show__invoice-badges,
.quotation-proposal-show__workflow-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.quotation-proposal-show__invoice-metrics,
.quotation-proposal-show__invoice-advice-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.quotation-proposal-show__invoice-advice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quotation-proposal-show__invoice-metric {
  padding: 0.8rem 0.9rem;
  border: 1px solid #deebe4;
  border-radius: 14px;
  background: #ffffff;
}

.quotation-proposal-show__invoice-metric strong {
  display: block;
  margin-top: 0.2rem;
  color: #1d251f;
}

.quotation-proposal-show__invoice-metric-label {
  display: block;
  color: #6b7d71;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quotation-proposal-show__invoice-section {
  padding: 1rem;
  border: 1px solid #deebe4;
  border-radius: 16px;
  background: #ffffff;
}

.quotation-proposal-show__invoice-section--form {
  background: #f9fcfa;
}

.quotation-proposal-show__invoice-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.quotation-proposal-show__tag {
  padding: 0.42rem 0.72rem;
}

.quotation-proposal-show__tag-list--compact {
  justify-content: flex-end;
}

.quotation-proposal-show__invoice-copy {
  margin-top: 0.55rem;
  color: #1d251f;
  line-height: 1.65;
  white-space: pre-wrap;
}

.quotation-proposal-show__invoice-copy--strong {
  font-weight: 600;
}

.quotation-proposal-show__file-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.quotation-proposal-show__file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.quotation-proposal-show__file-name {
  opacity: 0.7;
}

.quotation-proposal-show__nested-body {
  padding: 0.95rem 1rem 1rem;
}

.quotation-proposal-show__table-inline-wrap {
  overflow-x: auto;
}

.quotation-proposal-show__nested-table {
  font-size: 0.92rem;
}

.quotation-proposal-show__timeline-grid {
  grid-template-columns: minmax(150px, 1.05fr) minmax(110px, 0.7fr) minmax(170px, 1fr) minmax(150px, 0.9fr) minmax(320px, 1.65fr);
  gap: 1rem;
  align-items: start;
}

.quotation-proposal-show__timeline-grid--head {
  padding: 0.95rem 1rem;
  background: #f3f8f4;
  border-top: 1px solid #dbe7df;
  border-bottom: 1px solid #dbe7df;
  color: #1b5a38;
  font-weight: 700;
}

.quotation-proposal-show__timeline-row {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #e3ece7;
}

.quotation-proposal-show__timeline-row--last {
  border-bottom: 0;
}

.quotation-proposal-show__timeline-cell {
  min-width: 0;
}

.quotation-proposal-show__timeline-status {
  white-space: normal;
  text-align: left;
  line-height: 1.35;
  padding: 0.4rem 0.55rem;
}

.quotation-proposal-show__timeline-date {
  font-weight: 600;
}

.quotation-proposal-show__timeline-note {
  min-height: 56px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e3ece7;
  border-radius: 12px;
  background: #ffffff;
}

.quotation-proposal-show__timeline-note-text {
  line-height: 1.6;
  word-break: break-word;
  text-align: left;
}

@media (max-width: 768px) {
  .quotation-proposal-show {
    padding: 0.9rem;
    border-radius: 24px;
  }

  .quotation-proposal-show__hero,
  .quotation-proposal-show__status-bar {
    padding: 1.1rem;
    border-radius: 22px;
  }

  .quotation-proposal-show__back-link {
    width: 100%;
    justify-content: center;
  }

  .app-rfp-criteria-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-rfp-criteria-search {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .quotation-proposal-show .quotation-proposal-show__detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quotation-proposal-show__invoice-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quotation-proposal-show__invoice-advice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .quotation-proposal-show .quotation-proposal-show__detail-grid {
    grid-template-columns: 1fr;
  }

  .quotation-proposal-show__section-summary {
    align-items: flex-start;
  }

  .quotation-proposal-show__summary-meta {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .quotation-proposal-show__invoice-metrics,
  .quotation-proposal-show__invoice-advice-grid,
  .quotation-proposal-show__invoice-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .quotation-proposal-show__timeline-grid {
    grid-template-columns: 1fr;
  }
}

.app-approval-timeline-card {
  margin-top: 1.25rem;
}

.app-approval-timeline {
  display: grid;
  gap: 1rem;
}

.app-approval-step {
  padding: 1rem 1.1rem;
  border: 1px solid #dde9df;
  border-left: 5px solid #b7cab9;
  border-radius: 18px;
  background: #fff;
}

.app-approval-step--approved {
  border-left-color: #3f8c5a;
  background: #f6fcf7;
}

.app-approval-step--rejected {
  border-left-color: #c85a4f;
  background: #fff7f6;
}

.app-approval-step--pending {
  border-left-color: #0d5c63;
  background: #f4fbfb;
}

.app-approval-step--waiting {
  border-left-color: #c7d4c8;
  background: #fbfdfb;
}

.app-approval-step-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.app-approval-step-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(13, 92, 99, 0.12);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.app-approval-step-name {
  font-weight: 700;
  color: var(--text-main);
}

.app-approval-step-status {
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: #eef3ef;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.app-approval-step--approved .app-approval-step-status { background: #e6f4ea; color: #1e7e34; }
.app-approval-step--pending .app-approval-step-status { background: #e8f0fe; color: #1967d2; }
.app-approval-step--rejected .app-approval-step-status { background: #fce8e6; color: #d93025; }
.app-approval-step--waiting .app-approval-step-status { background: #f1f3f4; color: #5f6368; }

.app-approval-step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.app-approval-step-remark {
  margin-top: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: #f8faf8;
  color: var(--text-main);
}

.app-approval-step-row {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dfeae1;
  border-radius: 20px;
  background: #fff;
}

.app-quotation-item-row {
  margin-bottom: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid #dbe9df;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  box-shadow: 0 12px 28px rgba(26, 58, 42, 0.04);
}

.app-rfp-form .app-quotation-item-row {
  margin-bottom: 0;
  padding: 1rem;
  border-color: #dce8e2;
  border-radius: 16px;
  background: #fbfdfc;
  box-shadow: none;
}

.app-quotation-item-row:last-child {
  margin-bottom: 0;
}

.app-quotation-item-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.app-rfp-form .app-quotation-item-row-head {
  margin-bottom: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e8f0eb;
}

.app-quotation-item-row-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: #064f45;
}

.app-quotation-item-row-note {
  margin: 0.2rem 0 0;
  color: #6f8577;
  font-size: 0.88rem;
}

.app-quotation-item-grid {
  align-items: end;
}

.app-rfp-form .app-rfp-item-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 0.85rem;
}

.app-rfp-form .app-rfp-item-grid .app-form-field {
  min-width: 0;
}

.app-approval-step-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.app-approval-step-row-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.app-rfp-form .app-approval-step-row-actions {
  margin-top: 0.65rem;
}

.app-rfp-form [data-quotation-committee-row] {
  padding: 0.85rem;
  border: 1px solid #e2ece6;
  border-radius: 14px;
  background: #fbfdfc;
}

.app-rfp-form [data-quotation-committee-row] .app-approval-step-row-actions {
  justify-content: stretch;
}

.app-rfp-form [data-quotation-committee-row] .app-action-button {
  width: 100%;
  min-width: 0;
}

.app-rfp-form .app-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.55rem 0.9rem;
  border: 1px solid #e7a39b;
  border-radius: 8px;
  background: #fff5f3;
  color: #b42318;
  font-weight: 800;
  line-height: 1;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.app-rfp-form .app-action-button:not(:disabled):hover {
  border-color: #d34a3d;
  background: #d9473f;
  color: #fff;
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.16);
}

.app-rfp-form .app-action-button:disabled {
  border-color: #f0c7c2;
  background: #fff8f7;
  color: #c9857e;
  opacity: 0.85;
}

.app-secondary-btn,
.app-danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
}

.app-secondary-btn {
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--brand-deep);
}

.app-secondary-btn-soft {
  border-color: #cfe0d2;
  background: linear-gradient(180deg, #ffffff 0%, #f5faf6 100%);
  box-shadow: 0 8px 18px rgba(26, 58, 42, 0.06);
}

.app-delete-button-soft {
  border-color: #efd2ce;
  background: #fff7f5;
}

.app-quotation-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}

.app-rfp-form .app-quotation-toolbar {
  margin-top: 0;
}

.app-rfp-form .app-form-grid,
.app-rfp-form .app-rfp-section-panel,
.app-rfp-form .app-rfp-criteria-panel,
.app-rfp-form .app-quotation-item-row {
  overflow: visible;
}

.app-rfp-form .app-secondary-btn-soft,
.app-rfp-form .app-form-submit {
  border-radius: 10px;
}

.app-rfp-form .app-secondary-btn-soft {
  border-color: #0f5f52;
  background: #0f5f52;
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 95, 82, 0.18);
}

.app-rfp-form .app-secondary-btn-soft:hover {
  border-color: #0b4f45;
  background: #0b4f45;
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 95, 82, 0.22);
}

.app-rfp-form .app-form-actions {
  margin-top: 0;
  padding-top: 0.25rem;
}

.app-quotation-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}

.app-danger-btn {
  border: 0;
  background: linear-gradient(135deg, #d85f52, #b43c31);
  color: #fff;
}

.btn {
  border-radius: 12px;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-mid));
  border: none;
  box-shadow: 0 4px 12px rgba(11, 74, 79, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 74, 79, 0.25);
  background: linear-gradient(135deg, #0e5b62, #477d59);
}

.app-checkbox-note {
  margin: -0.15rem 0 0.35rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

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

.app-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #d9e8dc;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.app-checkbox-card input[type="checkbox"] {
  margin-top: 0.2rem;
}

.app-checkbox-card:hover {
  border-color: #b9d3be;
  background: #f8fcf8;
}

.app-checkbox-card:has(input[type="checkbox"]:checked) {
  border-color: rgba(13, 92, 99, 0.38);
  background: rgba(13, 92, 99, 0.05);
  box-shadow: 0 10px 24px rgba(13, 92, 99, 0.08);
}

.app-checkbox-card.is-hidden {
  display: none;
}

.po-page {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: visible;
}

.po-page-header {
  margin-bottom: 0;
}

.po-preview-banner {
  padding: 0.15rem 0.15rem 0;
}

.po-preview-head--standalone {
  margin-bottom: 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid #d9e6df;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 247, 0.98));
  box-shadow: 0 18px 36px rgba(11, 74, 79, 0.05);
}

.po-preview-head--standalone .po-preview-title {
  margin: 0;
}

.po-preview-head--standalone .po-preview-note {
  margin-top: 0.35rem;
}

.po-page-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--brand-mid);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.po-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(11, 74, 79, 0.06);
}

.po-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid #d9e6df;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(242, 177, 52, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(11, 74, 79, 0.1), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 248, 0.98));
  box-shadow: 0 24px 50px rgba(11, 74, 79, 0.06);
}

.po-hero-copy {
  max-width: 760px;
}

.po-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(11, 74, 79, 0.08);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.po-hero-title {
  margin: 0.9rem 0 0;
  font-size: 2rem;
  line-height: 1.05;
  color: #163529;
}

.po-hero-text {
  margin: 0.75rem 0 0;
  max-width: 720px;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.po-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  min-width: 360px;
}

.po-hero-stat {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(217, 230, 223, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(11, 74, 79, 0.05);
}

.po-hero-stat-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.po-hero-stat strong {
  display: block;
  color: var(--brand-deep);
  font-size: 1.05rem;
  line-height: 1.35;
}

.po-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.po-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid #d9e6df;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 248, 0.98));
  box-shadow: 0 18px 36px rgba(11, 74, 79, 0.05);
}

.po-panel-header h3 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 1.2rem;
}

.po-panel-note {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.po-control-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.po-control-field {
  gap: 0.5rem;
}

.po-control-field label {
  font-size: 0.92rem;
  font-weight: 700;
}

.po-form-input {
  min-height: 48px;
}

.po-form-input:disabled {
  background: #f3f7f5;
  color: #81968b;
}

.po-field-hint {
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.po-control-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.po-control-actions .app-form-submit {
  width: 100%;
}

.po-quick-actions {
  justify-content: space-between;
}

.po-quick-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.po-quick-action-buttons .app-form-submit,
.po-quick-action-buttons .app-secondary-btn {
  width: 100%;
}

.po-quick-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.po-status-panel {
  padding: 1.25rem 1.35rem;
  border: 1px solid #d8e5de;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 247, 0.97));
  box-shadow: 0 18px 36px rgba(11, 74, 79, 0.05);
}

.po-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.po-status-label {
  color: #1b3025;
  font-weight: 800;
}

.po-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.po-status-badge--draft {
  border-color: #d7e1da;
  background: #f3f6f4;
  color: #5d7266;
}

.po-status-badge--sent {
  border-color: #c9dff0;
  background: #eef6fc;
  color: #1f658d;
}

.po-status-badge--accepted {
  border-color: #cfe3d7;
  background: #ecf8f0;
  color: #25724d;
}

.po-status-badge--returned {
  border-color: #f0ddb0;
  background: #fff7e6;
  color: #9a6a0c;
}

.po-status-badge--rejected {
  border-color: #edc7c3;
  background: #fff1f0;
  color: #a23d34;
}

.po-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(11, 74, 79, 0.06);
  color: #3d554a;
  font-size: 0.86rem;
  font-weight: 600;
}

.po-status-remark {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d8e5de;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
}

.po-status-remark-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-deep);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.po-status-remark p {
  margin: 0;
  color: #22352b;
  line-height: 1.6;
  white-space: pre-wrap;
}

.po-preview-frame {
  padding: 1.25rem;
  border: 1px solid #d9e6df;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 247, 0.98)),
    var(--surface);
  box-shadow: 0 24px 48px rgba(11, 74, 79, 0.06);
}

.po-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0 0.2rem;
}

.po-preview-title {
  margin: 0;
  color: #18372b;
  font-size: 1.25rem;
}

.po-preview-note {
  margin: 0.3rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.po-preview-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid #d4e1db;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.po-preview-sheet {
  overflow-x: auto;
  padding: 1.35rem;
  border: 1px dashed #d1ddd7;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 246, 0.92)),
    radial-gradient(circle at top left, rgba(61, 107, 77, 0.06), transparent 32%);
}

.po-preview-sheet .po-sheet {
  margin: 0 auto;
}

@media print {
  .po-page {
    gap: 0;
  }

  .po-preview-frame,
  .po-preview-sheet {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 991px) {
  .app-shell {
    flex-direction: column;
    padding: 1rem;
  }

  .app-sidebar {
    width: 100%;
    min-height: auto;
  }

  .app-form-grid.two-col,
  .app-form-grid.three-col,
  .app-form-grid.four-col,
  .app-form-grid.five-col {
    grid-template-columns: 1fr;
  }

  .app-rfp-card {
    padding: 1rem;
    border-radius: 18px;
  }

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

  .app-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .app-content {
    min-height: auto;
  }

  .app-form-grid.two-col {
    grid-template-columns: 1fr;
  }

  .app-page-header {
    align-items: flex-start;
  }

  .app-detail-actions-spread {
    align-items: stretch;
  }

  .po-hero {
    flex-direction: column;
  }

  .po-hero-meta {
    width: 100%;
    min-width: 0;
  }

  .po-actions-grid {
    grid-template-columns: 1fr;
  }

  .po-preview-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .po-hero,
  .po-panel,
  .po-status-panel,
  .po-preview-frame {
    padding: 1rem;
    border-radius: 24px;
  }

  .po-hero-title {
    font-size: 1.65rem;
  }

  .po-hero-meta {
    grid-template-columns: 1fr;
  }

  .po-preview-sheet {
    padding: 0.8rem;
  }
}

/* Compact purchase order preview workspace */
.po-page {
  gap: 0.8rem;
}

.po-page-header {
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(217, 230, 223, 0.85);
}

.po-page-header .app-page-title {
  font-size: 1.45rem;
  line-height: 1.15;
}

.po-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  color: #526359;
  font-size: 0.86rem;
  font-weight: 600;
}

.po-page-meta > span:not(.po-status-badge) {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.28rem 0.65rem;
  border: 1px solid #dbe7df;
  border-radius: 999px;
  background: #f8fbf9;
}

.po-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.po-header-actions .app-form-submit,
.po-back-link {
  min-width: 0;
  min-height: 42px;
  padding: 0.62rem 0.95rem;
  border-radius: 12px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.po-back-link {
  box-shadow: none;
}

.po-control-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #d9e6df;
  border-radius: 18px;
  background: #fbfdfb;
  box-shadow: 0 12px 28px rgba(11, 74, 79, 0.04);
}

.po-toolbar-form {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  min-width: 0;
}

.po-toolbar-field {
  flex: 1 1 auto;
  min-width: 180px;
  gap: 0.32rem;
}

.po-toolbar-field label {
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.po-form-input {
  min-height: 42px;
  padding: 0.58rem 0.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.po-control-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(11, 74, 79, 0.08);
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.po-toolbar-form .app-form-submit {
  min-width: 160px;
  min-height: 42px;
  padding: 0.62rem 0.9rem;
  border-radius: 12px;
  white-space: nowrap;
}

.po-status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d9e6df;
  border-radius: 16px;
  background: #ffffff;
}

.po-status-pill {
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.po-status-remark--compact {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
}

.po-preview-frame {
  padding: 0.75rem;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(11, 74, 79, 0.05);
}

.po-preview-sheet {
  padding: 0.75rem;
  border-radius: 16px;
  background: #f8faf8;
}

.po-preview-sheet .po-sheet {
  margin: 0 auto;
}

@media print {
  .po-page {
    gap: 0;
  }

  .po-preview-frame,
  .po-preview-sheet {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 991px) {
  .po-page-header {
    align-items: flex-start;
  }

  .po-control-strip {
    grid-template-columns: 1fr;
  }

  .po-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .po-page-header,
  .po-header-actions,
  .po-toolbar-form {
    flex-direction: column;
    align-items: stretch;
  }

  .po-header-actions .app-form-submit,
  .po-back-link,
  .po-toolbar-form .app-form-submit {
    width: 100%;
  }

  .po-control-strip,
  .po-preview-frame {
    padding: 0.7rem;
    border-radius: 16px;
  }
}
/* --- Modern Auth Pages (Split Screen) --- */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 2rem 1rem;
  background: #ffffff;
}

.auth-split-card {
  width: 100%;
  max-width: 1200px;
  min-height: auto;
  display: flex;
  background: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.12);
}

.auth-card {
  width: 100%;
  max-width: 560px;
  padding: 3rem;
  border-radius: 32px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.auth-image-side {
  flex: 1 1 50%;
  min-width: 360px;
  position: relative;
  min-height: 560px;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 55%, #f8fafc 100%);
  overflow: hidden;
}

.auth-image-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.auth-image-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.08) brightness(0.92);
  transform: scale(1.03);
}

.auth-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8, 17, 13, 0.18), rgba(8, 17, 13, 0.72));
  z-index: 1;
}

.auth-hero-panel {
  position: relative;
  z-index: 2;
  max-width: 420px;
  padding: 2.2rem 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.auth-hero-panel h2 {
  margin: 0 0 1rem;
  color: #111827;
  font-size: Clamp(2rem, 2.7vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.auth-hero-panel p {
  margin: 0;
  color: #475569;
  font-size: 1.03rem;
  line-height: 1.7;
}

.auth-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.auth-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
  animation: authSlideCycle 12s infinite;
  overflow: hidden;
}

.auth-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.auth-slide:nth-child(1) {
  animation-delay: 0s;
}

.auth-slide:nth-child(2) {
  animation-delay: 4s;
}

.auth-slide:nth-child(3) {
  animation-delay: 8s;
}

.auth-slide::before,
.auth-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.auth-slide::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 18%),
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 60% 75%, rgba(242, 177, 52, 0.16), transparent 26%);
  mix-blend-mode: screen;
  z-index: 0;
}

.auth-slide::after {
  background: linear-gradient(180deg, rgba(3, 10, 7, 0.08), rgba(3, 10, 7, 0.5));
  z-index: 0;
}

.auth-slide-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-slide-media-image {
  display: grid;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(6, 18, 13, 0.9), rgba(10, 33, 27, 0.62));
}

.auth-slide-media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.02);
}

.auth-slide-content {
  position: absolute;
  left: 3rem;
  right: 3rem;
  bottom: 4rem;
  z-index: 2;
  max-width: 440px;
  color: #fff;
}

.auth-slide-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.auth-slide-content h2 {
  margin: 0 0 0.9rem;
  font-size: Clamp(2rem, 3vw, 3.3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.auth-slide-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.6;
}

.auth-slide-forest {
  background: linear-gradient(135deg, #08140f, #143328 58%, #1b4236);
}

.auth-slider-dots {
  position: absolute;
  left: 3rem;
  bottom: 1.75rem;
  z-index: 3;
  display: flex;
  gap: 0.7rem;
}

.auth-slider-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: none;
  transition: transform 0.25s ease, background 0.25s ease;
  animation: authDotCycle 12s infinite;
}

.auth-slider-dot.is-active {
  background: var(--brand-accent);
  transform: scale(1.15);
}

.auth-slider-dot:nth-child(1) {
  animation-delay: 0s;
}

.auth-slider-dot:nth-child(2) {
  animation-delay: 4s;
}

.auth-slider-dot:nth-child(3) {
  animation-delay: 8s;
}

.auth-slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

@keyframes authSlideCycle {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }
  6% {
    opacity: 1;
    transform: scale(1);
  }
  28% {
    opacity: 1;
    transform: scale(1);
  }
  38% {
    opacity: 0;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes authDotCycle {
  0% {
    background: rgba(255, 255, 255, 0.34);
    transform: scale(1);
  }
  6% {
    background: var(--brand-accent);
    transform: scale(1.15);
  }
  28% {
    background: var(--brand-accent);
    transform: scale(1.15);
  }
  38% {
    background: rgba(255, 255, 255, 0.34);
    transform: scale(1);
  }
  100% {
    background: rgba(255, 255, 255, 0.34);
    transform: scale(1);
  }
}

.auth-form-side {
  flex: 1 1 50%;
  min-width: 360px;
  max-width: 600px;
  padding: 4.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #111827;
  background: #ffffff;
}

.auth-header {
  margin-bottom: 3rem;
  text-align: left;
}

.auth-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.auth-subtitle {
  color: #475569;
  font-size: 1.05rem;
}

.auth-form .form-group {
  margin-bottom: 1.75rem;
}

.auth-form .form-label {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  opacity: 0.8;
}

.auth-form .small,
.auth-form .text-brand-accent,
.auth-footer p,
.auth-footer,
.auth-form-side .small {
  color: #475569 !important;
}

.auth-form .form-check-label {
  color: #0f172a !important;
}

.auth-form .form-control {
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  caret-color: #0f172a;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form .form-control:focus {
  border-color: #facc15;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
  outline: none;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

.auth-form .form-control::placeholder {
  color: rgba(15, 23, 42, 0.4);
}

.auth-form input.form-control,
.auth-form input.form-control:hover,
.auth-form input.form-control:active,
.auth-form input.form-control:focus,
.auth-form input.form-control:not(:placeholder-shown) {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.auth-form input.form-control:-webkit-autofill,
.auth-form input.form-control:-webkit-autofill:hover,
.auth-form input.form-control:-webkit-autofill:focus,
.auth-form input.form-control:-webkit-autofill:active {
  -webkit-text-fill-color: #0f172a !important;
  caret-color: #0f172a;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 9999s ease-out 0s;
}

.password-visibility-wrapper {
  position: relative;
  width: 100%;
}

.password-visibility-wrapper .password-visibility-input {
  padding-right: 3.25rem !important;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0f172a;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus {
  background: rgba(15, 23, 42, 0.08);
  outline: none;
}

.password-visibility-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-auth-submit {
  width: 100%;
  padding: 1.1rem;
  border-radius: 18px;
  font-weight: 800;
  background: var(--brand-accent);
  border: none;
  color: #101a14;
  font-size: 1.15rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 30px rgba(242, 177, 52, 0.3);
  transition: all 0.3s ease;
}

.btn-auth-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(242, 177, 52, 0.4);
  background: #fbc149;
  color: #101a14;
}

.auth-footer {
  margin-top: 2.5rem;
  font-size: 1rem;
  color: #475569;
}

.auth-footer a {
  color: var(--brand-accent);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 900px) {
  .auth-image-side { display: none; }
  .auth-split-card { min-height: 100vh; }
  .auth-form-side { width: 100%; min-height: 100vh; padding: 3rem 2rem; flex-basis: 100%; }
  .auth-card { width: calc(100% - 2rem); padding: 2rem; }
}

.auth-footer a:hover {
  text-decoration: underline;
}

.account-settings-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.account-settings-shell {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.account-settings-hero {
  padding: 2.5rem;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(242, 177, 52, 0.2), transparent 30%),
    linear-gradient(145deg, var(--brand-deep), #123c40 55%, var(--brand-mid));
  color: #fff;
  box-shadow: 0 30px 80px rgba(11, 74, 79, 0.18);
}

.account-settings-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.account-settings-hero h1 {
  margin: 0 0 1rem;
  font-size: Clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.account-settings-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.7;
}

.account-settings-card {
  padding: 2.5rem;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-soft);
  box-shadow: 0 35px 90px rgba(11, 74, 79, 0.08);
}

.account-settings-form {
  display: grid;
  gap: 1.75rem;
}

.account-settings-section {
  padding: 1.5rem;
  border-radius: 28px;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
}

.account-field + .account-field {
  margin-top: 1.2rem;
}

.account-field .form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.account-field-hint,
.account-field-meta,
.account-settings-note {
  margin: 0 0 0.6rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.account-field-meta {
  margin-top: 0.55rem;
  margin-bottom: 0;
}

.account-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.account-danger-zone {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 28px;
  border: 1px solid rgba(216, 95, 82, 0.22);
  background: linear-gradient(180deg, rgba(255, 246, 245, 0.95), rgba(255, 251, 250, 0.95));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.account-delete-btn {
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #d85f52, #b43c31);
  color: #fff;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(216, 95, 82, 0.22);
}

.account-delete-btn:hover {
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .account-settings-shell {
    grid-template-columns: 1fr;
  }

  .account-settings-page {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .account-settings-card,
  .account-settings-hero {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .account-settings-section,
  .account-danger-zone {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .account-danger-zone {
    flex-direction: column;
    align-items: stretch;
  }

  .app-detail-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-page {
  display: grid;
  gap: 1.75rem;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
}

.dashboard-hero-copy,
.dashboard-live-card,
.dashboard-panel,
.dashboard-stat-card {
  border: 1px solid var(--border-soft);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 25px 60px rgba(11, 74, 79, 0.06);
}

.dashboard-hero-copy {
  padding: 2.25rem;
  background:
    radial-gradient(circle at top right, rgba(242, 177, 52, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(11, 74, 79, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.96));
}

.dashboard-kicker,
.dashboard-panel-eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--brand-mid);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.dashboard-hero-copy h1 {
  margin: 0 0 0.8rem;
  font-size: Clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--brand-deep);
}

.dashboard-hero-copy p {
  max-width: 780px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.dashboard-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.dashboard-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-soft);
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-action-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(11, 74, 79, 0.08);
}

.dashboard-live-card {
  padding: 2rem;
  background: linear-gradient(145deg, #0b4a4f, #173d31 60%, #205140);
  color: #fff;
}

.dashboard-live-label {
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-live-card h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.dashboard-live-time {
  margin: 1rem 0 0.8rem;
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.dashboard-live-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

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

.dashboard-stat-card {
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(11, 74, 79, 0.09);
}

.dashboard-stat-card--teal {
  background: linear-gradient(180deg, rgba(11, 74, 79, 0.08), rgba(255, 255, 255, 0.96));
}

.dashboard-stat-card--gold {
  background: linear-gradient(180deg, rgba(242, 177, 52, 0.14), rgba(255, 255, 255, 0.96));
}

.dashboard-stat-card--emerald {
  background: linear-gradient(180deg, rgba(61, 107, 77, 0.14), rgba(255, 255, 255, 0.96));
}

.dashboard-stat-card--slate {
  background: linear-gradient(180deg, rgba(20, 30, 24, 0.09), rgba(255, 255, 255, 0.96));
}

.dashboard-stat-label,
.dashboard-stat-link {
  display: block;
}

.dashboard-stat-label {
  color: var(--text-soft);
  font-weight: 700;
}

.dashboard-stat-value {
  display: block;
  margin: 0.6rem 0 0.35rem;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--brand-deep);
}

.dashboard-stat-link {
  color: var(--brand-mid);
  font-size: 0.92rem;
  font-weight: 700;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
}

.dashboard-panel {
  padding: 1.6rem;
}

.dashboard-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.dashboard-panel-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: -0.03em;
}

.dashboard-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-module-card {
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
}

.dashboard-module-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.dashboard-module-card p {
  margin: 0 0 1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.dashboard-inline-link {
  color: var(--brand-mid);
  text-decoration: none;
  font-weight: 800;
}

.dashboard-health-stack {
  display: grid;
  gap: 0.9rem;
}

.dashboard-health-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
  text-decoration: none;
  color: var(--brand-deep);
  font-weight: 700;
}

.dashboard-health-card strong {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

@media (max-width: 1200px) {
  .dashboard-stats-grid,
  .dashboard-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .dashboard-hero,
  .dashboard-content-grid,
  .dashboard-stats-grid,
  .dashboard-module-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-hero-copy,
  .dashboard-live-card,
  .dashboard-panel,
  .dashboard-stat-card {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .dashboard-hero-copy h1 {
    font-size: 2rem;
  }
}

/* --- Navbar Profile Dropdown --- */
.app-navbar-avatar-wrapper {
  display: flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  transition: all 0.2s;
}

.app-navbar-avatar-wrapper:hover {
  transform: scale(1.05);
}

.app-avatar-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: 0 8px 25px rgba(13, 92, 99, 0.18);
}

.avatar-chevron {
  display: none;
}

.app-profile-dropdown {
  min-width: 340px;
  border-radius: 20px;
  margin-top: 1.25rem;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(13, 92, 99, 0.2) !important;
  z-index: 2000 !important; /* Extremely high to stay on top */
}

.icon-sm {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.profile-dropdown-header .fw-bold {
  font-size: 1.15rem;
  color: var(--brand-deep);
  letter-spacing: -0.01em;
}

.profile-dropdown-header .small {
  font-size: 0.9rem;
  color: var(--text-soft);
  word-break: break-all;
}

.app-profile-dropdown .dropdown-item {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  transition: all 0.2s;
  padding: 0.85rem 1.5rem !important;
}

.app-profile-dropdown .dropdown-item:hover {
  background: var(--surface-soft);
  padding-left: 1.75rem !important;
  color: var(--brand-deep);
}

/* --- Profile Page Styling --- */
.profile-page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.profile-content-card {
  background: white;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 45px 120px rgba(44, 69, 54, 0.08);
  border: 1px solid var(--border-soft);
}

.profile-header-banner {
  position: relative;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-mid));
  height: 240px;
}

.profile-cover {
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.profile-avatar-large {
  position: absolute;
  bottom: -60px;
  left: 60px;
  padding: 10px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.profile-avatar-large img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-body {
  margin-top: 50px;
}

.profile-name {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
}

.profile-role {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.profile-data-card {
  border-radius: 28px;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
}

.section-title {
  font-weight: 800;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--brand-mid);
}

.profile-form-control {
  border-radius: 16px;
  padding: 0.9rem 1.25rem;
  background: white;
}

.btn-brand-outline {
  border: 2.5px solid var(--brand-mid);
  color: var(--brand-mid);
  border-radius: 18px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-brand-outline:hover {
  background: var(--brand-mid);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(74, 124, 89, 0.2);
}

@media (max-width: 768px) {
  .profile-header-banner { height: 160px; }
  .profile-avatar-large { left: 50%; transform: translateX(-50%); bottom: -45px; }
  .profile-avatar-large img { width: 100px; height: 100px; }
  .profile-body { margin-top: 60px; text-align: center; }
  .profile-body .d-flex { flex-direction: column; align-items: center !important; gap: 1.5rem; }
}

.asa-vendor-terms {
  padding: 1rem 1.05rem;
  border: 1px solid #d7e5de;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(15, 95, 56, 0.08), transparent 7rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 247, 0.98));
  color: #173426;
}

.asa-vendor-terms__title {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.asa-vendor-terms__list {
  margin: 0;
  padding-left: 1.2rem;
}

.asa-vendor-terms__list li + li {
  margin-top: 0.45rem;
}

.asa-vendor-terms__email {
  margin-top: 0.7rem;
  font-weight: 700;
  color: #18543c;
  word-break: break-word;
}

.asa-vendor-terms__acceptance {
  margin-top: 0.95rem;
  padding-top: 0.9rem;
  border-top: 1px solid #d8e7df;
}

.asa-vendor-terms__acceptance-control {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
}

.asa-vendor-terms__checkbox {
  margin-top: 0.2rem;
  accent-color: #12643c;
  cursor: pointer;
  flex-shrink: 0;
}

.asset-insurance-grid {
  display: grid;
  gap: 1.25rem;
}

.asset-insurance-card {
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(11, 114, 133, 0.08), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 250, 0.98));
  box-shadow: 0 18px 45px rgba(12, 78, 83, 0.06);
}

.asset-insurance-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.asset-insurance-card__title {
  margin: 0;
  color: var(--brand-deep);
  font-size: 1.2rem;
}

.asset-insurance-card__subtitle {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  word-break: break-word;
}

.asset-insurance-card__meta {
  margin-bottom: 1rem;
}

.asset-insurance-card__errors {
  margin-bottom: 1rem;
}

.asset-insurance-bulk-panel {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.asset-insurance-bulk-panel__title {
  font-weight: 800;
  color: var(--brand-deep);
}

.asset-insurance-page .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid #0b4a4f;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(11, 74, 79, 0.08);
  cursor: pointer;
}

.asset-insurance-page .form-check-input:hover {
  border-color: #06383c;
  box-shadow: 0 0 0 3px rgba(11, 74, 79, 0.14);
}

.asset-insurance-page .form-check-input:focus {
  border-color: #0b4a4f;
  box-shadow: 0 0 0 0.22rem rgba(11, 74, 79, 0.18);
}

.asset-insurance-page .form-check-input:checked {
  border-color: #0b4a4f;
  background-color: #0b4a4f;
}

.asset-insurance-card__help {
  min-height: 48px;
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(13, 92, 99, 0.2);
  border-radius: 18px;
  background: rgba(13, 92, 99, 0.04);
  color: var(--text-soft);
  line-height: 1.5;
}

.asset-insurance-extra-fields.is-hidden {
  display: none;
}

.asset-insurance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.asset-insurance-badge--yes {
  border-color: rgba(25, 135, 84, 0.18);
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.asset-insurance-badge--no {
  border-color: rgba(220, 53, 69, 0.16);
  background: rgba(220, 53, 69, 0.1);
  color: #b42318;
}

.asset-insurance-badge--pending {
  border-color: rgba(217, 119, 6, 0.16);
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.vendor-registration-show-page {
  gap: 0.75rem;
  padding-bottom: 1rem;
}

.vendor-show-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0;
}

.vendor-show-header h2 {
  margin: 0;
  font-size: Clamp(1.45rem, 2vw, 1.8rem);
  color: #1a3a2a;
}

.vendor-show-header p {
  margin: 0.3rem 0 0;
  color: #6b8e7f;
  font-size: 0.95rem;
}

.vendor-show-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.vendor-show-actions .app-primary-btn,
.vendor-show-actions .app-danger-btn {
  padding: 0.58rem 1.05rem;
  font-weight: 700;
}

.vendor-detail-card {
  flex: 0 0 auto;
  max-height: none !important;
  overflow: visible !important;
  padding: 0.95rem;
}

.vendor-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.7rem;
}

.vendor-detail-card .app-detail-item {
  height: auto;
  min-height: 82px;
  overflow: visible;
  padding: 0.72rem 0.78rem;
}

.vendor-detail-card .app-detail-item-full {
  min-height: 92px;
}

.vendor-detail-card .vendor-approval-trail {
  height: auto;
  min-height: 128px;
}

.vendor-detail-card .vendor-approval-trail > .app-detail-value {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.vendor-approval-trail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.55rem;
  margin-top: 0.5rem;
  width: 100%;
}

.vendor-approval-step {
  width: 100%;
  min-width: 0;
  min-height: 78px;
  justify-content: center;
  font-size: 0.84rem;
  line-height: 1.2;
}

.vendor-detail-card .app-detail-label {
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.vendor-detail-card .app-detail-value {
  display: block;
  max-height: none;
  overflow: visible;
  font-size: 0.88rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
}

.vendor-detail-section {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 0.78rem;
  border: 1px solid #d4e8df;
  border-radius: 12px;
  background: #fbfdfc;
}

.vendor-detail-section > .app-detail-value {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.vendor-bank-section,
.vendor-documents-section {
  background: #fbfdfc;
}

.vendor-bank-list,
.vendor-document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.vendor-bank-card {
  padding: 0.7rem;
  border: 1px solid #d4e8df;
  border-radius: 12px;
  background: #fff;
}

.vendor-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.55rem;
}

.vendor-bank-card .app-detail-item,
.vendor-document-grid > .app-detail-item {
  height: auto;
  min-height: 86px;
}

.vendor-bank-card .app-detail-value,
.vendor-document-grid > .app-detail-item > .app-detail-value {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.vendor-bank-card .app-detail-item:has(.vendor-document-preview),
.vendor-document-grid > .app-detail-item:has(.vendor-document-preview) {
  min-height: 180px;
}

.vendor-document-preview {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.vendor-document-thumb {
  width: 140px;
  max-width: 100%;
  height: 82px;
  object-fit: contain;
  border: 1px solid #d8e8dc;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.vendor-document-frame {
  width: 160px;
  max-width: 100%;
  height: 96px;
  border: 1px solid #d8e8dc;
  border-radius: 10px;
  pointer-events: none;
}

.vendor-document-preview a {
  overflow-wrap: anywhere;
}

.vendor-approval-action-card {
  flex: 0 0 auto;
  margin-top: 0 !important;
  padding: 0.95rem;
}

.vendor-approval-action-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.18rem;
}

.vendor-approval-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

@media (max-width: 768px) {
  .asset-insurance-card {
    padding: 1.15rem;
  }

  .asset-insurance-card__header {
    flex-direction: column;
  }
}

/* Full-height workspaces for paged forms, list pages, and paged show pages. */
.app-content > form[data-ui-form-pager],
.app-content > .quotation-proposal-show,
.app-content > .app-page-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.app-content {
  display: flex;
  flex-direction: column;
}

.app-content > form[data-ui-form-pager] > .app-static-paged-form {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
}

.app-content > .quotation-proposal-show.app-page-paged {
  flex: 0 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: visible;
}

.quotation-proposal-show.app-page-paged > :not(.app-page-header):not(.app-detail-actions):not(.app-form-pager) {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.app-content > .quotation-proposal-show {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: visible;
}

.quotation-proposal-show.app-page-paged {
  overflow-y: hidden;
}

.quotation-proposal-show.app-page-paged > .app-detail-card,
.quotation-proposal-show.app-page-paged > .app-form-card,
.quotation-proposal-show.app-page-paged > .app-card,
.quotation-proposal-show.app-page-paged > details {
  height: auto;
  max-height: none;
}

.app-static-page {
  flex-direction: column;
}

#vendor-step-1:checked ~ .vendor-page-1,
#vendor-step-2:checked ~ .vendor-page-2,
#vendor-step-3:checked ~ .vendor-page-3,
#vendor-step-4:checked ~ .vendor-page-4,
#vendor-step-5:checked ~ .vendor-page-5,
#vendor-step-6:checked ~ .vendor-page-6,
#quotation-step-1:checked ~ .quotation-page-1,
#quotation-step-2:checked ~ .quotation-page-2,
#quotation-step-3:checked ~ .quotation-page-3,
#quotation-step-4:checked ~ .quotation-page-4,
#quotation-step-5:checked ~ .quotation-page-5 {
  display: flex;
}

.app-content > .app-table-search,
.app-content > .app-table-pagination,
.app-content > .quotation-inline-pager {
  flex: 0 0 auto;
}

.app-content:has(> .app-table-wrap),
.app-content:has(> .app-table-search + .app-table-wrap),
.app-content:has(> .app-form-card + .app-form-actions + .app-table-wrap),
.app-content:has(> .app-form-card + .app-form-actions + .app-table-search + .app-table-wrap) {
  overflow: auto;
}

.app-content > .app-table-wrap {
  flex: 0 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: auto;
}

.app-content > .app-toolbar + .app-table-wrap,
.app-content > .app-table-search + .app-table-wrap {
  height: auto;
  max-height: none;
}

.app-content > .app-form-card + .app-form-actions + .app-table-search + .app-table-wrap,
.app-content > .app-form-card + .app-form-actions + .app-table-wrap {
  height: auto;
  max-height: none;
}

.app-page-shell > .app-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.app-page-shell > .app-card form,
.app-page-shell > .app-card .app-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.app-page-shell > .app-card form {
  display: flex;
  flex-direction: column;
}

/* Mobile responsiveness layer: layout-only overrides, no application behavior changes. */
@media (max-width: 991px) {
  body {
    font-size: 0.98rem;
  }

  .app-navbar {
    position: sticky;
    padding: 0.55rem 0.75rem !important;
  }

  .app-brand img,
  .app-logo-img {
    max-width: Min(52vw, 180px);
    max-height: 54px;
  }

  .app-navbar .ms-auto {
    min-width: 0;
  }

  .app-notification-link {
    width: 38px;
    height: 38px;
  }

  .app-navbar-avatar-wrapper .app-avatar-img,
  .app-navbar-avatar-wrapper img {
    width: 44px !important;
    height: 44px !important;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.65rem;
    height: auto;
    min-height: 0;
    max-height: none;
    max-width: 100%;
    overflow: visible;
  }

  .app-sidebar {
    position: relative;
    top: auto;
    width: 100%;
    max-height: 34vh;
    padding: 0.65rem;
    border-radius: 18px;
    overflow-y: auto;
  }

  .app-sidebar .nav-link {
    margin-bottom: 0.25rem;
    padding: 0.62rem 0.7rem;
    border-radius: 14px;
    font-size: 0.92rem;
  }

  .app-sidebar .submenu {
    margin-left: 0.35rem;
    padding-left: 0.45rem;
  }

  .app-menu-icon {
    width: 19px;
    height: 19px;
  }

  .app-main,
  .app-content {
    width: 100%;
    min-width: 0;
  }

  .app-content {
    height: auto;
    min-height: calc(100vh - 132px);
    max-height: none;
    padding: 0.75rem;
    border-radius: 18px;
    overflow: visible;
    display: block;
  }

  .app-content > form[data-ui-form-pager],
  .app-content > .quotation-proposal-show,
  .app-content > .app-page-shell,
  .app-content > .quotation-proposal-show.app-page-paged,
  .app-content > .app-table-wrap,
  .app-content > .app-toolbar + .app-table-wrap,
  .app-content > .app-table-search + .app-table-wrap,
  .app-content > .app-form-card + .app-form-actions + .app-table-search + .app-table-wrap,
  .app-content > .app-form-card + .app-form-actions + .app-table-wrap {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .app-toolbar,
  .app-page-header,
  .app-admin-panel-header,
  .app-hero-card,
  .app-detail-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
  }

  .app-toolbar h1,
  .app-page-header h1,
  .app-page-header h2,
  .app-page-title {
    font-size: 1.35rem;
    line-height: 1.18;
  }

  .app-toolbar-actions,
  .app-detail-actions,
  .app-form-actions,
  .app-table-pagination,
  .app-table-pagination-actions {
    width: 100%;
    justify-content: stretch;
  }

  .app-toolbar-actions,
  .app-detail-actions,
  .app-form-actions {
    flex-wrap: wrap;
  }

  .app-primary-btn,
  .app-secondary-btn,
  .app-danger-btn,
  .app-form-submit,
  .app-action-button,
  .btn-auth-submit,
  .app-pagination-btn,
  .app-form-pager-btn {
    min-height: 42px;
  }

  .app-toolbar-actions > *,
  .app-detail-actions > *,
  .app-form-actions > *,
  .app-table-pagination-actions > * {
    flex: 1 1 160px;
  }

  .app-form-card,
  .app-card,
  .app-admin-panel,
  .app-detail-card {
    max-width: 100%;
    padding: 0.85rem;
    border-radius: 16px;
  }

  .app-form-card-paged,
  .app-page-paged,
  form[data-ui-form-pager],
  .app-static-paged-form {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .app-form-grid,
  .app-form-grid.two-col,
  .app-form-grid.three-col,
  .app-form-grid.four-col,
  .app-form-grid.five-col,
  .app-detail-grid,
  .vendor-detail-grid,
  .vendor-bank-grid,
  .vendor-document-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }

  .app-form-field,
  .app-form-field-full,
  .vendor-detail-section {
    grid-column: 1 / -1 !important;
    min-width: 0;
  }

  .app-form-card input,
  .app-form-card select,
  .app-form-card textarea,
  .form-control,
  .form-select {
    max-width: 100%;
    font-size: 16px;
  }

  .app-table-search {
    justify-content: stretch;
    margin-bottom: 0.6rem;
  }

  .app-table-search-input {
    max-width: none;
    min-height: 42px;
  }

  .app-table-wrap {
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-table {
    min-width: 760px;
    font-size: 0.88rem;
  }

  .app-table thead th,
  .app-table tbody td {
    padding: 0.62rem 0.7rem;
  }

  .app-row-actions,
  .app-row-actions * {
    overflow-wrap: normal;
  }

  .app-action-icon {
    width: 34px;
    height: 34px;
  }

  .assets-page,
  .quotation-proposal-show,
  .employee-master-workspace {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .assets-list-table,
  .quotation-proposal-show .app-table,
  .employee-master-table-wrap .app-table {
    min-width: 980px;
  }

  .profile-header-banner {
    height: 150px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 0.94rem;
  }

  .app-shell {
    padding: 0.45rem;
  }

  .app-content {
    min-height: calc(100vh - 108px);
    padding: 0.55rem;
    border-radius: 14px;
    border-left: 0;
    border-right: 0;
  }

  .app-brand img,
  .app-logo-img {
    max-width: 44vw;
    max-height: 46px;
  }

  .app-notification-link {
    width: 34px;
    height: 34px;
  }

  .app-sidebar {
    max-height: 30vh;
    padding: 0.5rem;
    border-radius: 14px;
  }

  .app-sidebar .nav-link {
    padding: 0.55rem 0.6rem;
    font-size: 0.86rem;
  }

  .app-link-wrap,
  .app-link-label {
    gap: 0.55rem;
  }

  .app-toolbar,
  .app-page-header {
    margin-bottom: 0.65rem;
  }

  .app-toolbar h1,
  .app-page-header h1,
  .app-page-header h2,
  .app-page-title {
    font-size: 1.2rem;
  }

  .app-section-note,
  .app-page-subtitle,
  .app-hero-text {
    font-size: 0.88rem;
  }

  .app-form-card,
  .app-card,
  .app-admin-panel,
  .app-detail-card {
    padding: 0.7rem;
    border-radius: 14px;
  }

  .app-primary-btn,
  .app-secondary-btn,
  .app-danger-btn,
  .app-form-submit,
  .btn-auth-submit,
  .app-pagination-btn,
  .app-form-pager-btn {
    width: 100%;
  }

  .app-table {
    min-width: 680px;
  }

  .assets-list-table,
  .quotation-proposal-show .app-table,
  .employee-master-table-wrap .app-table {
    min-width: 900px;
  }

  .app-table-pagination {
    padding: 0.65rem;
  }

  .app-table-pagination-info,
  .app-pagination-pages {
    width: 100%;
    text-align: center;
  }

  .auth-wrapper {
    padding: 0;
    align-items: stretch;
  }

  .auth-split-card,
  .auth-card {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-form-side,
  .auth-card {
    min-width: 0;
    padding: 1.4rem 1rem !important;
  }

  .auth-title {
    font-size: 1.55rem;
    line-height: 1.15;
  }

  .auth-subtitle {
    font-size: 0.95rem;
  }

  .profile-avatar-large {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 420px) {
  .app-content {
    padding: 0.45rem;
  }

  .app-table {
    min-width: 620px;
  }

  .assets-list-table,
  .quotation-proposal-show .app-table,
  .employee-master-table-wrap .app-table {
    min-width: 840px;
  }

  .app-action-icon {
    width: 32px;
    height: 32px;
  }
}
.app-bulk-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  white-space: nowrap;
  cursor: pointer;
}

.app-bulk-select-all input[type="checkbox"] {
  margin: 0;
}

.app-list-controls {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(44, 69, 54, 0.04);
  overflow: hidden;
}

.app-list-controls form,
.app-list-control-upload,
.app-list-control-action,
.app-list-control-search,
.app-list-control-search .app-table-search {
  min-width: 0;
}

.app-list-controls form {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 !important;
}

.app-list-control-upload {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
}

.app-list-control-action {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
}

.app-list-control-search {
  display: inline-flex !important;
  flex: 0 1 380px !important;
  width: 380px !important;
  margin-left: 0 !important;
}

.app-list-upload-inline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem;
  min-width: 0;
  width: auto !important;
}

.app-list-controls .app-form-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}

.app-list-controls .app-form-field label {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.15;
  white-space: nowrap;
}

.app-list-controls input[type="file"],
.app-list-controls .app-list-file-input {
  flex: 0 0 170px !important;
  width: 170px !important;
  max-width: 170px !important;
  min-height: 36px;
  padding: 0.34rem 0.42rem;
  font-size: 0.82rem;
}

.app-list-controls .app-form-submit,
.app-list-controls .app-danger-btn,
.app-list-controls .app-pagination-btn {
  min-height: 36px;
  padding: 0.38rem 0.68rem;
  font-size: 0.86rem;
  white-space: nowrap;
}

.app-list-controls .app-table-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: stretch;
  margin: 0;
  width: 100%;
}

.app-list-controls .app-table-search-input {
  flex: 1 1 auto;
  max-width: none;
  min-height: 36px;
  padding: 0.42rem 0.65rem;
  font-size: 0.88rem;
}

.app-list-controls .app-table-search-btn {
  flex: 0 0 auto;
}

.app-row-actions .app-delete-button,
.app-row-actions .app-action-button.app-delete-button {
  display: inline;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #b43c31;
  font-weight: 700;
  line-height: inherit;
  vertical-align: baseline;
}

.app-row-actions form {
  margin: 0;
}

/* App-wide visual polish layer. UI-only overrides; no behavior or data changes. */
:root {
  --ui-navy: #12343b;
  --ui-emerald: #1f7a5a;
  --ui-teal: #0f6f78;
  --ui-gold: #e5a936;
  --ui-red: #c84b45;
  --ui-ink: #17211b;
  --ui-muted: #65756c;
  --ui-line: #dbe7df;
  --ui-panel: rgba(255, 255, 255, 0.94);
  --ui-panel-solid: #ffffff;
  --ui-page: #eef5f1;
  --ui-shadow-sm: 0 8px 20px rgba(16, 58, 44, 0.07);
  --ui-shadow-md: 0 18px 42px rgba(16, 58, 44, 0.1);
  --ui-shadow-lg: 0 28px 70px rgba(14, 43, 51, 0.14);
  --ui-radius-sm: 8px;
  --ui-radius-md: 14px;
  --ui-radius-lg: 20px;
  --ui-speed: 180ms;
}

@keyframes ui-soft-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ui-row-enter {
  from {
    opacity: 0;
    transform: translateX(6px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

html {
  scrollbar-color: rgba(15, 111, 120, 0.45) rgba(219, 231, 223, 0.6);
}

body {
  background:
    linear-gradient(135deg, rgba(18, 52, 59, 0.06), transparent 34%),
    linear-gradient(45deg, rgba(229, 169, 54, 0.08), transparent 28%),
    var(--ui-page);
  color: var(--ui-ink);
}

.app-navbar {
  border-bottom: 1px solid rgba(219, 231, 223, 0.85);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 30px rgba(18, 52, 59, 0.08);
}

.app-shell {
  gap: 1rem;
}

.app-sidebar,
.app-content,
.app-form-card,
.app-card,
.app-admin-panel,
.app-detail-card,
.app-table-wrap,
.quotation-proposal-show {
  border-color: rgba(219, 231, 223, 0.92);
  background: var(--ui-panel);
  box-shadow: var(--ui-shadow-sm);
  backdrop-filter: blur(12px);
}

.app-content {
  animation: ui-soft-enter 240ms ease-out;
  border-radius: var(--ui-radius-lg);
}

.app-sidebar {
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-md);
}

.app-sidebar .nav-link {
  border: 1px solid transparent;
  border-radius: var(--ui-radius-md);
  transition:
    background-color var(--ui-speed) ease,
    border-color var(--ui-speed) ease,
    color var(--ui-speed) ease,
    transform var(--ui-speed) ease,
    box-shadow var(--ui-speed) ease;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link:focus {
  border-color: rgba(15, 111, 120, 0.16);
  background: rgba(15, 111, 120, 0.09);
  box-shadow: 0 8px 18px rgba(15, 111, 120, 0.08);
  transform: translateX(3px);
}

.app-toolbar,
.app-page-header,
.app-admin-panel-header {
  padding: 0.15rem 0.05rem 0.65rem;
  border-bottom: 1px solid rgba(219, 231, 223, 0.78);
}

.app-toolbar h1,
.app-page-header h1,
.app-page-header h2,
.app-page-title {
  margin: 0;
  color: var(--ui-navy);
  letter-spacing: 0;
}

.app-section-note,
.app-page-subtitle,
.app-hero-text {
  color: var(--ui-muted);
}

.app-form-card,
.app-card,
.app-admin-panel,
.app-detail-card {
  border-radius: var(--ui-radius-lg);
  transition:
    border-color var(--ui-speed) ease,
    box-shadow var(--ui-speed) ease,
    transform var(--ui-speed) ease;
}

.app-form-card:hover,
.app-card:hover,
.app-admin-panel:hover,
.app-detail-card:hover {
  border-color: rgba(15, 111, 120, 0.22);
  box-shadow: var(--ui-shadow-md);
}

.app-primary-btn,
.app-secondary-btn,
.app-danger-btn,
.app-form-submit,
.btn-auth-submit,
.app-pagination-btn,
.app-form-pager-btn {
  border-radius: var(--ui-radius-md);
  box-shadow: 0 10px 22px rgba(18, 52, 59, 0.08);
  transition:
    background-color var(--ui-speed) ease,
    border-color var(--ui-speed) ease,
    color var(--ui-speed) ease,
    box-shadow var(--ui-speed) ease,
    transform var(--ui-speed) ease;
}

.app-primary-btn,
.app-form-submit,
.btn-auth-submit {
  border: 1px solid rgba(18, 52, 59, 0.08);
  background: linear-gradient(135deg, var(--ui-teal), var(--ui-emerald));
}

.app-primary-btn:hover,
.app-form-submit:hover,
.btn-auth-submit:hover,
.app-pagination-btn:not(:disabled):hover,
.app-form-pager-btn:not(:disabled):hover {
  box-shadow: var(--ui-shadow-md);
  transform: translateY(-1px);
}

.app-secondary-btn,
.app-pagination-btn,
.app-form-pager-btn {
  border: 1px solid rgba(15, 111, 120, 0.18);
  background: #fff;
  color: var(--ui-teal);
}

.app-danger-btn,
.app-delete-button {
  color: #fff;
  border-color: rgba(200, 75, 69, 0.2);
  background: linear-gradient(135deg, var(--ui-red), #a93430);
}

.app-form-card label,
.app-form-field label,
.form-label {
  color: var(--ui-navy);
  font-weight: 700;
}

.app-form-card input,
.app-form-card select,
.app-form-card textarea,
.form-control,
.form-select {
  border-radius: var(--ui-radius-md);
  border-color: #cfded5;
  background-color: rgba(255, 255, 255, 0.96);
  transition:
    border-color var(--ui-speed) ease,
    box-shadow var(--ui-speed) ease,
    background-color var(--ui-speed) ease;
}

.app-form-card input:focus,
.app-form-card select:focus,
.app-form-card textarea:focus,
.form-control:focus,
.form-select:focus,
.app-table-search-input:focus {
  border-color: rgba(15, 111, 120, 0.58);
  box-shadow: 0 0 0 0.2rem rgba(15, 111, 120, 0.12);
  background-color: #fff;
}

.app-table-wrap {
  border-radius: var(--ui-radius-md);
  box-shadow: var(--ui-shadow-sm);
}

.app-table {
  border-collapse: separate;
  border-spacing: 0;
}

.app-table thead th {
  background: linear-gradient(180deg, #f7fbf8, #edf6f0);
  color: var(--ui-navy);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.app-table tbody tr {
  animation: ui-row-enter 180ms ease-out;
  transition:
    background-color var(--ui-speed) ease,
    box-shadow var(--ui-speed) ease;
}

.app-table tbody tr:nth-child(even) {
  background: rgba(246, 250, 247, 0.72);
}

.app-table tbody tr:hover {
  background: rgba(15, 111, 120, 0.06);
}

.app-row-actions a,
.app-action-button {
  transition:
    color var(--ui-speed) ease,
    opacity var(--ui-speed) ease,
    transform var(--ui-speed) ease;
}

.app-row-actions a:hover,
.app-action-button:hover {
  opacity: 0.86;
}

.app-table-pagination {
  border-radius: var(--ui-radius-md);
  background: var(--ui-panel-solid);
  box-shadow: var(--ui-shadow-sm);
}

.alert {
  border: 0;
  border-radius: var(--ui-radius-md);
  box-shadow: var(--ui-shadow-sm);
  transition: opacity 220ms ease, transform 220ms ease, margin 220ms ease, padding 220ms ease;
}

.alert.is-dismissing {
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.alert-success {
  background: #e9f7ee;
  color: #1f6b45;
}

.alert-danger {
  background: #fbeceb;
  color: #9b312e;
}

@media (max-width: 991px) {
  .app-shell {
    gap: 0.75rem;
  }

  .app-sidebar,
  .app-content,
  .app-form-card,
  .app-card,
  .app-admin-panel,
  .app-detail-card {
    border-radius: var(--ui-radius-md);
  }

  .app-toolbar,
  .app-page-header,
  .app-admin-panel-header {
    padding-bottom: 0.55rem;
  }

  .app-table-pagination {
    gap: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Contained page layout: keep every app screen inside the app scrollbar. */
@media (min-width: 992px) {
  html,
  body:not(.auth-page-body) {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden !important;
  }

  body:not(.auth-page-body) {
    display: block;
    position: fixed;
    inset: 0;
  }

  body:not(.auth-page-body) > .app-navbar {
    position: fixed;
    inset: 0 0 auto 0;
    min-height: 72px;
    z-index: 1050;
  }

  body:not(.auth-page-body) > .app-shell {
    position: fixed;
    inset: 74px 0 0 0;
    display: grid;
    height: auto;
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 0.85rem;
    overflow: hidden;
  }

  body:not(.auth-page-body) > .app-shell::after {
    content: none;
  }

  .app-sidebar {
    position: relative;
    top: auto;
    height: 100%;
    max-height: none;
  }

  .app-main {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .app-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .app-content > * {
    min-width: 0;
    max-width: 100%;
  }

  .app-content > .app-toolbar,
  .app-content > .app-page-header,
  .app-content > .alert,
  .app-content > .app-list-controls,
  .app-content > .app-table-search,
  .app-content > .app-table-pagination,
  .app-content > .app-form-actions {
    flex: 0 0 auto;
  }

  .app-content > .app-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
  }

  .app-content > .app-form-card.app-form-card-wide {
    flex: 0 0 auto;
    margin-bottom: 0.65rem !important;
    padding: 0.85rem;
  }

  .app-content > .app-form-card.app-form-card-wide .app-form-grid {
    align-items: end;
  }

  .app-content > .app-list-controls {
    flex: 0 0 auto;
  }

  .app-content > form,
  .app-content > .app-form-card,
  .app-content > .app-card,
  .app-content > .app-page-shell,
  .app-content > .assets-page,
  .app-content > .asset-insurance-page,
  .app-content > .employee-master-workspace,
  .app-content > .quotation-proposal-show {
    min-height: 0;
    max-height: 100%;
  }

  .app-content > form,
  .app-content > .app-page-shell,
  .app-content > .assets-page,
  .app-content > .asset-insurance-page,
  .app-content > .employee-master-workspace,
  .app-content > .quotation-proposal-show {
    overflow: auto;
  }

  .app-form-card,
  .app-card,
  .app-detail-card,
  .app-admin-panel,
  .quotation-proposal-show {
    max-width: 100%;
  }

  .app-content > .app-form-actions {
    margin-bottom: 0.55rem !important;
  }

  .app-content > .app-table-pagination {
    margin-top: 0.55rem;
  }

  .app-table {
    table-layout: fixed;
  }

  .app-table thead th,
  .app-table tbody td {
    padding: 0.68rem 1rem;
    line-height: 1.35;
  }

  .app-table tbody td {
    max-width: 260px;
    vertical-align: middle;
  }

  .app-table tbody td:not(.app-row-actions) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .app-table tbody td.app-row-actions {
    width: 120px;
    white-space: normal;
  }

  .app-content:has(> .app-form-card.app-form-card-wide) .app-table-wrap {
    min-height: 0;
  }
}

@media (max-width: 991px) {
  .app-list-controls {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .app-list-control-upload,
  .app-list-control-action,
  .app-list-control-search {
    flex: 1 1 100%;
  }

  .app-list-upload-inline {
    flex-wrap: wrap;
  }

  .app-list-controls .app-form-field {
    flex-wrap: wrap;
  }
}

@media (min-width: 992px) {
  html:has(body.public-qr-page),
  body.public-qr-page {
    height: auto;
    max-height: none;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.public-qr-page {
    position: static;
    inset: auto;
    display: block;
  }
}

@media print {
  html,
  body {
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
  }

  body {
    position: static !important;
    inset: auto !important;
    display: block !important;
  }

  body > .app-navbar {
    display: none !important;
  }

  body > .app-shell {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body > .app-shell > .app-sidebar {
    display: none !important;
  }

  body > .app-shell > .app-main {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body > .app-shell > .app-main > .app-content {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body > .app-shell > .app-main > .app-content > *:not(.po-page),
  .print-hide,
  .alert {
    display: none !important;
  }

  .po-page {
    margin: 0 !important;
    padding: 0 !important;
  }

  .po-preview-frame,
  .po-preview-sheet {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .po-sheet {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

@media screen and (min-width: 992px) {
  html,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) {
    display: block;
    position: fixed;
    inset: 0;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-navbar {
    position: fixed !important;
    inset: 0 0 auto 0;
    min-height: 72px;
    z-index: 1050;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell {
    position: fixed;
    inset: 74px 0 0 0;
    display: grid;
    grid-template-columns: Clamp(230px, 16vw, 280px) minmax(0, 1fr);
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100vw;
    padding: 0.85rem;
    overflow: hidden;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell > .app-sidebar {
    position: relative;
    top: auto;
    height: 100%;
    max-height: none;
    overflow-y: auto;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell > .app-main {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell > .app-main > .app-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    padding: 1.25rem;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .app-toolbar,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .app-page-header,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .alert,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .app-list-controls,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .app-table-search,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .app-table-pagination,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .app-form-actions {
    flex: 0 0 auto;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .quotation-proposal-show,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > form[data-ui-form-pager],
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .app-page-shell,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .assets-page,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .asset-insurance-page,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .employee-master-workspace {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .quotation-proposal-show {
    height: 100%;
    overflow: auto;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .quotation-proposal-show[data-ui-page-pager="true"] {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .quotation-proposal-show[data-ui-page-pager="true"] > :not(.app-page-header):not(.app-detail-actions):not(.app-form-pager) {
    overflow-y: auto !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-form-card-paged,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-page-paged,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-static-paged-form {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-detail-item,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-detail-item-full {
    height: auto;
    min-height: 104px;
    overflow: visible;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-detail-value {
    display: block;
    max-height: none;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
  }
}

@media screen and (min-width: 992px) {
  html,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) {
    width: 100%;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) {
    position: fixed !important;
    inset: 0 !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-navbar {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    height: 96px !important;
    min-height: 96px !important;
    padding: 0.55rem 1.25rem !important;
    z-index: 1100 !important;
    background: #ffffff !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-brand,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-logo-img {
    flex: 0 0 auto !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-logo-img {
    width: auto !important;
    max-width: 220px !important;
    max-height: 78px !important;
    object-fit: contain !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell {
    position: fixed !important;
    inset: 96px 0 0 0 !important;
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 0.75rem !important;
    width: 100vw !important;
    height: calc(100vh - 96px) !important;
    min-height: 0 !important;
    padding: 0.75rem !important;
    overflow: hidden !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell > .app-sidebar {
    position: relative !important;
    top: auto !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 20px !important;
    padding: 1rem 0.9rem !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell > .app-main {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell > .app-main > .app-content {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0.75rem !important;
    border-radius: 20px !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .quotation-proposal-show {
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media screen and (max-width: 991px) {
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1100 !important;
  }
}

@media screen and (min-width: 992px) {
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > form[data-ui-form-pager] {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > form[data-ui-form-pager] > .app-static-paged-form {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-static-page {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 0.85rem !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-static-pager-nav {
    position: relative !important;
    z-index: 4 !important;
    flex: 0 0 auto !important;
    margin-top: 0.65rem !important;
    padding-top: 0.65rem !important;
  }
}


/* Approval request desk: presentation-only table polish. */
.approval-requests-table-wrap {
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(28, 64, 48, 0.06);
}

.approval-requests-table {
  min-width: 1320px;
  table-layout: fixed;
}

.approval-requests-table thead th {
  padding: 0.82rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: normal;
}

.approval-requests-table tbody td {
  padding: 0.9rem;
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.45;
}

.approval-requests-table__form {
  width: 10rem;
  font-weight: 700;
  color: var(--text-main);
}

.approval-requests-table__reference {
  width: 8rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.approval-requests-table__status {
  width: 12rem;
}

.approval-requests-table__level {
  width: 9rem;
  color: var(--text-main);
}

.approval-requests-table__approver {
  width: 12rem;
}

.approval-requests-table__current-action {
  width: 9rem;
}

.approval-requests-table__trail {
  width: 25rem;
}

.approval-requests-table__view {
  width: 6rem;
  text-align: center;
  vertical-align: middle !important;
}

.approval-requests-table__actions {
  width: 12rem;
}

.approval-status-chip,
.approval-you-chip,
.approval-status-chip--plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  border-radius: 999px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.approval-status-chip--plain {
  padding: 0.35rem 0.7rem;
  border: 1px solid #cfe0d2;
  background: #f6fbf7;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.approval-trail-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: none;
  overflow: visible;
  padding: 0.65rem 0.65rem 0.65rem 1.15rem;
  border: 1px solid #dce9df;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
  color: #22362f;
  font-size: 0.8rem;
  line-height: 1.3;
}

.approval-trail-summary::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  bottom: 1.15rem;
  left: 1rem;
  width: 2px;
  border-radius: 999px;
  background: #d9e8dd;
}

.approval-trail-summary__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(4.6rem, auto) minmax(0, 1fr) auto;
  gap: 0.22rem 0.55rem;
  align-items: center;
  padding: 0.5rem 0.58rem 0.5rem 0.8rem;
  margin-left: 0.35rem;
  border: 1px solid #e2eee5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 16px rgba(11, 74, 79, 0.04);
}

.approval-trail-summary__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.58rem;
  width: 0.58rem;
  height: 0.58rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #8bad9a;
  box-shadow: 0 0 0 2px #d9e8dd;
  transform: translateY(-50%);
}

.approval-trail-summary__level {
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.approval-trail-summary__name {
  min-width: 0;
  color: var(--text-main);
  font-weight: 700;
}

.approval-trail-summary__status {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  justify-self: end;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: #f3f8f5;
  text-align: right;
  white-space: nowrap;
}

.approval-trail-summary__item--approved::before { background: #237a3d; }
.approval-trail-summary__item--pending::before { background: #0d5c63; }
.approval-trail-summary__item--returned::before { background: #d49a17; }
.approval-trail-summary__item--rejected::before { background: #b42318; }

.approval-trail-summary__item--approved .approval-trail-summary__status {
  background: #ecf8ef;
  color: #237a3d;
}

.approval-trail-summary__item--pending .approval-trail-summary__status {
  background: #eafcff;
  color: #0d5c63;
}

.approval-trail-summary__item--returned .approval-trail-summary__status {
  background: #fff7e5;
  color: #9a6700;
}

.approval-trail-summary__item--rejected .approval-trail-summary__status {
  background: #fff0ef;
  color: #b42318;
}

.approval-action-stack {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.approval-action-stack .approval-you-chip {
  flex-basis: 100%;
  justify-content: flex-start;
  padding: 0.26rem 0.45rem !important;
  font-size: 0.68rem;
  font-weight: 800;
}

.approval-action-stack .approval-action-btn,
.approval-view-link {
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding: 0.34rem 0.58rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.1;
}

.approval-action-stack .app-danger-btn {
  min-width: 4rem;
}

.approval-view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

@media (max-width: 900px) {
  .approval-requests-table {
    min-width: 980px;
  }

  .approval-requests-table tbody td,
  .approval-requests-table thead th {
    padding: 0.72rem;
  }

  .approval-requests-table__trail {
    width: 20rem;
  }

  .approval-requests-table__actions {
    width: 12rem;
  }
}

@media (max-width: 640px) {
  .approval-trail-summary {
    padding-left: 0.9rem;
  }

  .approval-trail-summary::before,
  .approval-trail-summary__item::before {
    display: none;
  }

  .approval-trail-summary__item {
    grid-template-columns: minmax(0, 1fr);
    margin-left: 0;
  }

  .approval-trail-summary__status {
    justify-self: start;
    text-align: left;
  }
}


/* Keep vendor approval view readable inside the fixed app shell. */
body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > .vendor-registration-show-page {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
}

.vendor-registration-show-page .vendor-detail-card,
.vendor-registration-show-page .vendor-approval-action-card {
  flex: 0 0 auto;
}

.vendor-registration-show-page .app-detail-item,
.vendor-registration-show-page .vendor-detail-section,
.vendor-registration-show-page .vendor-bank-card,
.vendor-registration-show-page .vendor-document-card {
  min-width: 0;
}

.vendor-registration-show-page .badge,
.vendor-registration-show-page .app-detail-value,
.vendor-registration-show-page .vendor-approval-step {
  white-space: normal;
  overflow-wrap: anywhere;
}

.vendor-approval-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.vendor-approval-action-buttons .app-primary-btn,
.vendor-approval-action-buttons .app-secondary-btn,
.vendor-approval-action-buttons .app-danger-btn,
.approval-action-stack .approval-action-btn,
.approval-action-stack .app-form-submit.approval-action-btn,
.approval-action-stack .app-secondary-btn.approval-action-btn,
.approval-action-stack .app-danger-btn.approval-action-btn {
  width: auto !important;
  min-width: 0 !important;
  min-height: 30px !important;
  height: auto !important;
  padding: 0.28rem 0.52rem !important;
  border-radius: 9px !important;
  font-size: 0.76rem !important;
  line-height: 1.1 !important;
  box-shadow: none !important;
}

.approval-action-stack .approval-action-btn {
  flex: 0 0 auto;
}

/* Refined app shell: visual-only polish for a cleaner, responsive workspace. */
:root {
  --polish-ink: #13201c;
  --polish-muted: #5f6f68;
  --polish-line: #d8e4dd;
  --polish-panel: #ffffff;
  --polish-panel-soft: #f8fbf9;
  --polish-page: #edf4f1;
  --polish-teal: #0c6f6a;
  --polish-green: #27744e;
  --polish-gold: #bf8124;
  --polish-blue: #255c7a;
  --polish-red: #b94743;
  --polish-shadow-sm: 0 8px 24px rgba(19, 32, 28, 0.07);
  --polish-shadow-md: 0 18px 44px rgba(19, 32, 28, 0.11);
  --polish-radius: 8px;
  --polish-speed: 170ms;
}

body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) {
  background:
    linear-gradient(180deg, #f8fbf9 0%, var(--polish-page) 100%);
  color: var(--polish-ink);
  font-size: 1rem;
}

body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-navbar {
  border-bottom: 1px solid rgba(216, 228, 221, 0.95);
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 26px rgba(19, 32, 28, 0.06);
}

.app-logo-img {
  filter: drop-shadow(0 6px 12px rgba(19, 32, 28, 0.08));
}

.app-notification-link,
.app-profile-toggle,
.app-navbar-avatar-wrapper {
  border-radius: var(--polish-radius);
}

.app-notification-link {
  border-color: var(--polish-line);
  background: var(--polish-panel-soft);
  transition: background-color var(--polish-speed) ease, border-color var(--polish-speed) ease, transform var(--polish-speed) ease;
}

.app-notification-link:hover {
  border-color: rgba(12, 111, 106, 0.28);
  background: #fff;
  transform: translateY(-1px);
}

.app-profile-dropdown {
  overflow: hidden;
  border: 1px solid var(--polish-line) !important;
  border-radius: var(--polish-radius) !important;
}

.app-sidebar {
  border-radius: var(--polish-radius) !important;
  border-color: rgba(216, 228, 221, 0.96) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.98)) !important;
  box-shadow: var(--polish-shadow-sm) !important;
}

.app-sidebar .nav {
  gap: 0.18rem;
}

.app-sidebar .nav-link {
  min-height: 42px;
  margin-bottom: 0.2rem;
  padding: 0.62rem 0.7rem;
  border-radius: var(--polish-radius) !important;
  color: #20342f;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.22;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link:focus {
  border-color: rgba(12, 111, 106, 0.18);
  background: rgba(12, 111, 106, 0.08);
  box-shadow: none;
  color: var(--polish-teal);
  transform: translateX(2px);
}

.app-sidebar .nav-link.is-active {
  border-color: rgba(12, 111, 106, 0.26);
  background:
    linear-gradient(90deg, rgba(12, 111, 106, 0.13), rgba(191, 129, 36, 0.1));
  box-shadow: inset 3px 0 0 var(--polish-gold);
  color: var(--polish-teal);
}

.app-sidebar .nav-link.is-active .app-menu-icon {
  color: var(--polish-teal);
}

.app-sidebar .submenu {
  margin-left: 0.45rem;
  padding-left: 0.55rem;
  border-left-color: rgba(12, 111, 106, 0.16);
}

.app-content {
  border-radius: var(--polish-radius) !important;
  border-color: rgba(216, 228, 221, 0.96) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: var(--polish-shadow-sm) !important;
}

.app-toolbar,
.app-page-header,
.app-admin-panel-header {
  min-height: 48px;
  margin-bottom: 0.75rem;
  padding: 0 0 0.7rem;
  border-bottom-color: rgba(216, 228, 221, 0.9);
}

.app-toolbar h1,
.app-page-header h1,
.app-page-header h2,
.app-page-title {
  color: #163830;
  font-size: Clamp(1.28rem, 1.8vw, 1.72rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
}

.app-section-note,
.app-page-subtitle {
  color: var(--polish-muted);
}

.app-primary-btn,
.app-secondary-btn,
.app-danger-btn,
.app-form-submit,
.app-pagination-btn,
.app-form-pager-btn,
.btn-auth-submit {
  min-height: 40px;
  border-radius: var(--polish-radius) !important;
  padding: 0.58rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none;
}

.app-primary-btn,
.app-form-submit,
.btn-auth-submit {
  background: linear-gradient(135deg, var(--polish-teal), var(--polish-green));
}

.app-primary-btn:hover,
.app-secondary-btn:hover,
.app-danger-btn:hover,
.app-form-submit:hover,
.app-pagination-btn:not(:disabled):hover,
.app-form-pager-btn:not(:disabled):hover,
.btn-auth-submit:hover {
  box-shadow: var(--polish-shadow-sm);
  transform: translateY(-1px);
}

.app-secondary-btn,
.app-pagination-btn,
.app-form-pager-btn {
  border-color: rgba(12, 111, 106, 0.22);
  color: var(--polish-teal);
}

.app-danger-btn {
  background: linear-gradient(135deg, var(--polish-red), #963431);
}

.app-form-card,
.app-card,
.app-admin-panel,
.app-detail-card,
.app-table-wrap,
.quotation-proposal-show {
  border-radius: var(--polish-radius) !important;
  border-color: rgba(216, 228, 221, 0.96) !important;
  box-shadow: var(--polish-shadow-sm) !important;
}

.app-form-card,
.app-card,
.app-admin-panel,
.app-detail-card {
  background: linear-gradient(180deg, #ffffff, var(--polish-panel-soft)) !important;
}

.app-form-card:hover,
.app-card:hover,
.app-admin-panel:hover,
.app-detail-card:hover {
  border-color: rgba(12, 111, 106, 0.2) !important;
  box-shadow: var(--polish-shadow-md) !important;
}

.app-form-card input,
.app-form-card select,
.app-form-card textarea,
.form-control,
.form-select,
.app-table-search-input {
  border-radius: var(--polish-radius) !important;
  border-color: #cfddd5;
  color: var(--polish-ink);
  font-size: 0.94rem;
}

.app-form-card input:focus,
.app-form-card select:focus,
.app-form-card textarea:focus,
.form-control:focus,
.form-select:focus,
.app-table-search-input:focus {
  border-color: rgba(12, 111, 106, 0.58);
  box-shadow: 0 0 0 0.2rem rgba(12, 111, 106, 0.12);
}

.app-table-search {
  margin-bottom: 0.65rem;
}

.app-table-search-input {
  min-height: 40px;
  max-width: 360px;
  padding: 0.58rem 0.8rem;
  background: #fff;
}

.app-table-wrap {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%) !important;
}

.app-table {
  color: var(--polish-ink);
  font-size: 0.92rem;
}

.app-table thead th {
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid #d7e3dc;
  background: linear-gradient(180deg, #f2f8f5, #e7f1ec);
  color: #123c35;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-table tbody td {
  padding: 0.7rem 0.9rem;
  border-top-color: #edf3ef;
  line-height: 1.35;
}

.app-table tbody tr:nth-child(even) {
  background: rgba(248, 251, 249, 0.85);
}

.app-table tbody tr:hover {
  background: rgba(12, 111, 106, 0.06);
}

.app-row-actions {
  color: var(--polish-muted);
}

.app-row-actions a,
.app-row-actions .app-action-button {
  color: var(--polish-blue);
  font-weight: 800;
}

.app-row-actions .app-delete-button,
.app-row-actions .app-action-button.app-delete-button {
  color: var(--polish-red);
}

.app-table-pagination {
  border-radius: var(--polish-radius) !important;
  border-color: rgba(216, 228, 221, 0.96);
  background: #fff;
}

.catalog-index-page {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.catalog-index-page .app-table-search {
  justify-content: flex-end;
}

.catalog-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.catalog-table {
  table-layout: auto;
}

.catalog-table thead th:first-child,
.catalog-table tbody td:first-child {
  width: 34%;
}

.catalog-table tbody td:not(.app-row-actions) {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

@media screen and (max-width: 991px) {
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) {
    position: static !important;
    height: auto !important;
    min-height: 100dvh;
    max-height: none !important;
    overflow-y: auto !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    height: auto !important;
    max-height: none !important;
    padding: 0.65rem !important;
    overflow: visible !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell > .app-sidebar {
    max-height: Min(42dvh, 390px) !important;
    padding: 0.65rem !important;
    overflow-y: auto !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell > .app-main,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell > .app-main > .app-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .app-content {
    padding: 0.85rem !important;
  }

  .app-toolbar,
  .app-page-header,
  .app-admin-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .app-table-search,
  .catalog-index-page .app-table-search {
    justify-content: stretch;
  }

  .app-table-search-input {
    max-width: none;
  }

  .app-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-index-page {
    display: block;
  }

  .catalog-table {
    min-width: 720px;
  }
}

@media screen and (max-width: 640px) {
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-navbar {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }

  .app-logo-img {
    max-width: 46vw !important;
    max-height: 48px !important;
  }

  .app-content {
    padding: 0.65rem !important;
    border-left: 1px solid rgba(216, 228, 221, 0.96);
    border-right: 1px solid rgba(216, 228, 221, 0.96);
  }

  .app-sidebar .nav-link {
    min-height: 38px;
    padding: 0.52rem 0.58rem;
    font-size: 0.82rem;
  }

  .app-primary-btn,
  .app-secondary-btn,
  .app-danger-btn,
  .app-form-submit,
  .app-pagination-btn,
  .app-form-pager-btn,
  .btn-auth-submit {
    width: 100%;
  }

  .catalog-table {
    min-width: 660px;
  }
}

@media screen and (max-width: 900px) {
  body.auth-page-body {
    min-width: 0;
    overflow-x: hidden;
  }

  .auth-wrapper {
    width: 100%;
    max-width: 100vw;
    min-height: 100dvh;
    padding: 0;
    overflow-x: hidden;
  }

  .auth-split-card {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-form-side {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 100dvh;
    padding: 2.4rem 1.25rem;
  }

  .auth-header {
    width: 100%;
    max-width: 520px;
    margin-bottom: 2rem;
  }

  .auth-title {
    max-width: 100%;
    font-size: 1.65rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .auth-subtitle {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .auth-form,
  .auth-form .form-group,
  .auth-form .form-control,
  .password-visibility-wrapper,
  .btn-auth-submit {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .auth-form {
    max-width: 520px;
  }
}

@media screen and (max-width: 420px) {
  .auth-form-side {
    padding: 2rem 1rem;
  }

  .auth-header,
  .auth-form {
    max-width: 340px;
  }

  .auth-title {
    font-size: 1.32rem;
    line-height: 1.2;
  }

  .auth-subtitle {
    font-size: 0.9rem;
  }

  .auth-form .form-control {
    min-height: 48px;
    padding: 0.82rem 1rem;
  }

  .btn-auth-submit {
    min-height: 52px;
  }
}

@media screen and (max-width: 640px) {
  .auth-form-side {
    align-items: flex-start;
  }

  .auth-header,
  .auth-form {
    width: 100%;
    max-width: 340px;
  }

  .auth-title {
    font-size: 1.32rem !important;
    line-height: 1.2;
  }

  .auth-subtitle {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

.user-manual-page {
  display: grid;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  color: var(--text-main);
}

.user-manual-page * {
  min-width: 0;
}

.user-manual-page.is-hindi {
  line-height: 1.72;
}

.user-manual-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid #dce7dd;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f6faf7);
}

.user-manual-hero-copy {
  max-width: 820px;
}

.user-manual-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(242, 177, 52, 0.55);
  border-radius: 999px;
  background: #fff8e8;
  color: #76531c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.user-manual-hero h1,
.user-manual-flow h2,
.user-manual-toc h2,
.user-manual-section h2,
.user-manual-intro-card h2 {
  letter-spacing: 0;
}

.user-manual-hero h1 {
  margin: 0.55rem 0 0;
  color: var(--brand-deep);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.user-manual-hero p {
  max-width: 70ch;
  margin: 0.65rem 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.62;
}

.user-manual-language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid #dce7dd;
  border-radius: 8px;
  background: #ffffff;
}

.user-manual-language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 38px;
  padding: 0.48rem 0.75rem;
  border-radius: 6px;
  color: var(--brand-deep);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.user-manual-language-link.is-active {
  background: var(--brand-deep);
  color: #ffffff;
}

.user-manual-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.user-manual-intro-card {
  padding: 1rem;
  border: 1px solid #dce7dd;
  border-radius: 8px;
  background: #ffffff;
}

.user-manual-intro-card h2 {
  margin: 0 0 0.45rem;
  color: var(--brand-deep);
  font-size: 1rem;
  font-weight: 900;
}

.user-manual-intro-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.user-manual-flow {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #dce7dd;
  border-radius: 8px;
  background: #f8fbf9;
}

.user-manual-flow h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 1.08rem;
  font-weight: 900;
}

.user-manual-flow-list {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.user-manual-flow-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.6rem;
  border: 1px solid #dce7dd;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 800;
}

.user-manual-flow-arrow {
  color: #7a8d84;
  font-size: 1rem;
  font-weight: 900;
}

.user-manual-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.user-manual-toc {
  position: sticky;
  top: 0;
  display: grid;
  gap: 0.75rem;
  max-height: calc(100vh - 130px);
  padding: 1rem;
  overflow: auto;
  border: 1px solid #dce7dd;
  border-radius: 8px;
  background: #ffffff;
}

.user-manual-toc h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 1rem;
  font-weight: 900;
}

.user-manual-toc ol {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding-left: 1.15rem;
}

.user-manual-toc li {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.user-manual-toc a {
  color: var(--text-main);
  font-weight: 750;
  text-decoration: none;
}

.user-manual-toc a:hover,
.user-manual-toc a:focus {
  color: var(--brand-deep);
  text-decoration: underline;
}

.user-manual-sections {
  display: grid;
  gap: 1rem;
}

.user-manual-section {
  scroll-margin-top: 1rem;
  padding: 1.15rem 0 1.2rem;
  border-bottom: 1px solid #dce7dd;
}

.user-manual-section:first-child {
  padding-top: 0;
}

.user-manual-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 1rem;
  align-items: start;
}

.user-manual-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.7rem;
  border-radius: 8px;
  background: var(--brand-deep);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
}

.user-manual-section h2 {
  margin: 0 0 0.8rem;
  color: var(--brand-deep);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.user-manual-steps {
  display: grid;
  gap: 0.58rem;
  margin: 0;
  padding-left: 1.2rem;
}

.user-manual-steps li {
  padding-left: 0.2rem;
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.user-manual-note {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding: 0.85rem;
  border-left: 4px solid #f2b134;
  border-radius: 8px;
  background: #fff8e8;
  color: #76531c;
  font-size: 0.94rem;
  line-height: 1.55;
}

.user-manual-note strong {
  flex: 0 0 auto;
}

.user-manual-shot {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

.user-manual-shot-frame {
  overflow: hidden;
  border: 1px solid #dce7dd;
  border-radius: 8px;
  background: #ffffff;
}

.user-manual-shot-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.user-manual-shot figcaption {
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.48;
}

.user-manual-shot figcaption strong {
  color: var(--brand-deep);
}

.user-manual-shot figcaption span {
  display: block;
  margin-top: 0.25rem;
}

@media screen and (max-width: 1100px) {
  .user-manual-layout,
  .user-manual-section-grid {
    grid-template-columns: 1fr;
  }

  .user-manual-toc {
    position: static;
    max-height: none;
  }
}

@media screen and (max-width: 820px) {
  .user-manual-hero,
  .user-manual-note {
    flex-direction: column;
  }

  .user-manual-language-switch {
    width: 100%;
  }

  .user-manual-language-link {
    flex: 1 1 0;
  }

  .user-manual-intro-grid {
    grid-template-columns: 1fr;
  }

  .user-manual-hero h1 {
    font-size: 1.65rem;
  }

  .user-manual-section h2 {
    font-size: 1.22rem;
  }
}

.product-batch-card {
  padding: 0;
  overflow: hidden;
  border-color: rgba(11, 74, 79, 0.18);
  background: #ffffff;
}

.product-batch-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(11, 74, 79, 0.12);
  background: #f8fbf9;
}

.product-batch-toolbar-title {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.product-batch-toolbar-title strong {
  color: var(--brand-deep);
  font-size: 1rem;
  font-weight: 800;
}

.product-batch-toolbar-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.85rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: rgba(242, 177, 52, 0.18);
  color: #6b4500;
  font-size: 0.86rem;
  font-weight: 800;
}

.product-batch-add-button {
  min-height: 2.45rem;
  padding: 0.62rem 1rem;
  border-color: rgba(11, 74, 79, 0.24);
  background: #ffffff;
  color: var(--brand-deep);
  white-space: nowrap;
}

.product-batch-rows {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: #fbfdfc;
}

.product-batch-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(11, 74, 79, 0.1);
  background: #ffffff;
}

.product-batch-row {
  position: relative;
  display: grid;
  gap: 0.72rem;
  border: 1px solid rgba(11, 74, 79, 0.14);
  border-left: 4px solid var(--brand-accent);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(11, 74, 79, 0.05);
}

.product-batch-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-batch-row-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: var(--brand-deep);
  font-weight: 800;
}

.product-batch-row-title span {
  font-size: 0.98rem;
}

.product-batch-row-title strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(11, 74, 79, 0.1);
  color: var(--brand-deep);
  font-size: 0.9rem;
}

.product-batch-remove-button {
  border: 1px solid rgba(185, 28, 28, 0.18);
  border-radius: 8px;
  padding: 0.58rem 0.85rem;
  background: #fff7f7;
  color: #9f1d1d;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.product-batch-remove-button:hover {
  background: #fee2e2;
  color: #7f1d1d;
}

.product-batch-rows > .product-batch-row:only-child .product-batch-remove-button,
.product-batch-remove-button[hidden] {
  display: none;
}

.product-batch-row .app-form-grid.two-col {
  gap: 0.65rem 1rem;
}

.product-batch-description-field {
  grid-column: 1 / -1;
}

.product-batch-description-field textarea.form-control {
  height: 58px;
  min-height: 58px;
  max-height: 90px;
  resize: vertical;
}

.product-batch-row .form-control {
  background-color: #ffffff;
}

.product-batch-row .form-control:hover {
  border-color: rgba(11, 74, 79, 0.26);
}

.product-batch-row-errors {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(185, 28, 28, 0.22);
  border-radius: 8px;
  background: rgba(254, 242, 242, 0.88);
  color: #991b1b;
  font-size: 0.95rem;
  font-weight: 700;
}

.product-batch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(11, 74, 79, 0.12);
  background: #ffffff;
}

@media screen and (max-width: 820px) {
  .product-batch-toolbar,
  .product-batch-row-header {
    align-items: stretch;
    flex-direction: column;
  }

  .product-batch-add-button,
  .product-batch-remove-button,
  .product-batch-actions .app-form-submit {
    width: 100%;
  }

  .product-batch-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-batch-context {
    grid-template-columns: 1fr;
  }

  .product-batch-description-field {
    grid-column: auto;
  }
}

/* ==========================================================================
   Quotation stage status — who a request is waiting on
   The sidebar badge and the show-page strip pulse only for the person who
   actually has to act; everyone else sees the same status without the nudge.
   ========================================================================== */

/* A hard on/off flip, not a soft pulse - this has to be noticed. */
@keyframes quotation-blink {
  from {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 0 0.28rem rgba(192, 57, 43, 0.32);
  }
  to {
    opacity: 0.15;
    transform: scale(0.88);
    box-shadow: 0 0 0 0 rgba(192, 57, 43, 0);
  }
}

.app-nav-badge-live {
  display: inline-block;
  animation: quotation-blink 0.7s steps(1, end) infinite alternate;
}

/* The whole menu row alerts, not just the small badge, so pending work is
   obvious from any page without opening the record. */
.app-nav-link-alert {
  position: relative;
  border-radius: 12px;
  background: #fdeced;
  box-shadow: inset 3px 0 0 #c0392b;
  animation: quotation-nav-alert 1.4s ease-in-out infinite;
}

.app-nav-link-alert .app-link-label {
  color: #a32424 !important;
  font-weight: 800;
}

.app-nav-link-alert svg,
.app-nav-link-alert .app-link-wrap > svg {
  color: #c0392b !important;
}

@keyframes quotation-nav-alert {
  0%, 100% { background: #fdeced; }
  50% { background: #f9d2d4; }
}

@media (prefers-reduced-motion: reduce) {
  .app-nav-badge-live,
  .app-nav-link-alert { animation: none; }
}

.quotation-stage-progress {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.quotation-stage-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid #dfe8e3;
  border-left: 4px solid #8a6316;
  border-radius: 14px;
  background: #fdfaf2;
}

.quotation-stage-strip--mine {
  border-color: #e9adad;
  border-left-color: #c0392b;
  background: linear-gradient(180deg, #fff7f7, #fdeeee);
}

.quotation-stage-strip--done {
  border-color: #c9e6d4;
  border-left-color: #1f6b43;
  background: #f3faf5;
}

.quotation-stage-strip__main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quotation-stage-strip__label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7d8b84;
}

.quotation-stage-strip__stage {
  font-size: 1.02rem;
  font-weight: 800;
  color: #16352a;
}

.quotation-stage-strip__who {
  font-size: 0.87rem;
  color: #4c5f57;
  overflow-wrap: anywhere;
}

.quotation-stage-strip__cta {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: #c0392b;
  font-weight: 800;
  color: #fff;
  animation: quotation-blink 1.1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .quotation-stage-strip__cta { animation: none; }
}

@media (max-width: 640px) {
  .quotation-stage-strip {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.75rem 0.9rem;
  }
}

/* ==========================================================================
   Overflow readability
   Wide tables already scrolled, but the scrollbar stayed hidden until hover,
   so the last columns read as cut off. Keep the bar visible and fade the edge
   so there is a visible hint that more columns follow.
   ========================================================================== */

.app-table-wrap {
  position: relative;
  scrollbar-color: #c3d5cb transparent;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

.app-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.app-table-wrap::-webkit-scrollbar-track {
  margin: 0 22px;
  border-radius: 999px;
  background: #f1f6f3;
}

.app-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #f1f6f3;
  border-radius: 999px;
  background: #b9cdc2;
}

.app-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #91ac9e;
}

/* Long single-line values should wrap instead of pushing the table wider. */
.app-table tbody td,
.app-table thead th {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* A paged card capped to the viewport hides its overflow by design, but on a
   short or small screen that silently swallows content. Let it grow there. */
@media (max-width: 991px), (max-height: 720px) {
  .app-form-card-paged,
  .app-page-paged {
    max-height: none;
    overflow: visible;
  }

  .app-page-paged > :not(.app-page-header):not(.app-detail-actions):not(.app-form-pager) {
    overflow-y: visible;
  }

  .quotation-proposal-show.app-page-paged {
    overflow-y: visible;
  }
}

/* --------------------------------------------------------------------------
   Clipped table cells
   Columns stay compact, so anything too long is cut to an ellipsis. A script
   gives those cells a title attribute; this marks them as hoverable.
   -------------------------------------------------------------------------- */

.app-table td.is-truncated,
.app-table th.is-truncated,
.app-table .is-truncated {
  cursor: help;
}

/* --------------------------------------------------------------------------
   Small laptop refinements
   Form cells hold inputs, hints and errors, so they must wrap rather than be
   clipped to an ellipsis like read-only list values.
   -------------------------------------------------------------------------- */

.app-table tbody td:has(input, select, textarea, .app-form-field),
.app-table tbody td:has(input, select, textarea, .app-form-field) .app-field-hint {
  max-width: none;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

.app-field-hint {
  white-space: normal;
}

@media (max-width: 767px) {
  .app-rfp-form-table .app-rfp-table-label {
    width: auto;
    white-space: normal;
  }
}

/* Small laptops (992-1199px wide): a slimmer sidebar gives the working area
   room for tables and forms. */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell {
    grid-template-columns: 232px minmax(0, 1fr) !important;
    gap: 0.6rem !important;
    padding: 0.6rem !important;
  }
}

/* Short screens (768px-high laptops, zoomed browsers): slimmer header, and
   paged forms scroll with the page instead of inside a tiny nested pane. */
@media screen and (min-width: 992px) and (max-height: 820px) {
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-navbar {
    height: 68px !important;
    min-height: 68px !important;
    padding: 0.3rem 1rem !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-logo-img {
    max-height: 52px !important;
    max-width: 180px !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-navbar .app-avatar-img {
    width: 48px !important;
    height: 48px !important;
    border-width: 3px !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell {
    inset: 68px 0 0 0 !important;
    height: calc(100vh - 68px) !important;
    padding: 0.6rem !important;
    gap: 0.6rem !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell > .app-sidebar {
    padding: 0.75rem 0.7rem !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > form[data-ui-form-pager],
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > form[data-ui-form-pager] > .app-static-paged-form,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-content > form.app-rfp-form,
  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-static-paged-form {
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-static-page {
    flex: 0 0 auto !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-static-paged-form .app-rfp-table-wrap {
    max-height: none;
  }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) .app-static-pager-nav {
    position: sticky !important;
    bottom: -0.75rem !important;
    z-index: 5 !important;
    padding-bottom: 0.75rem !important;
    box-shadow: 0 -12px 18px -16px rgba(6, 79, 69, 0.4) !important;
  }
}

/* --------------------------------------------------------------------------
   Tablet and phone
   -------------------------------------------------------------------------- */

.app-sidebar-toggle {
  display: none;
}

/* Column headings are short labels: never break them letter by letter. */
.app-table thead th {
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 991px) {
  .app-sidebar-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    margin-right: 0.6rem;
    padding: 0 10px;
    border: 1px solid var(--border-soft, #dce8e2);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
  }

  .app-sidebar-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #0f5f52;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  body.app-sidebar-open .app-sidebar-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.app-sidebar-open .app-sidebar-toggle span:nth-child(2) { opacity: 0; }
  body.app-sidebar-open .app-sidebar-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  body:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell > .app-sidebar {
    display: none;
  }

  body.app-sidebar-open:not(.auth-page-body):not(.public-qr-page):not(.print-layout) > .app-shell > .app-sidebar {
    display: block;
    max-height: calc(100vh - 110px);
    box-shadow: 0 18px 40px rgba(6, 79, 69, 0.16);
  }

  /* Wide tables scroll sideways inside their card instead of crushing
     columns until every heading wraps one letter per line. */
  .app-content .app-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .app-table:not(.app-rfp-form-table):not(.app-committee-policy-table) {
    table-layout: auto;
  }

  .app-table:not(.app-rfp-form-table):not(.app-committee-policy-table) thead th {
    white-space: nowrap;
  }

  .app-table:not(.app-rfp-form-table):not(.app-committee-policy-table) tbody td {
    min-width: 7rem;
    overflow-wrap: break-word;
  }

  .app-table tbody td.app-row-actions,
  .app-table tbody td:has(input[type="checkbox"]) {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .app-list-control-search,
  .app-list-controls .app-list-control-search form.app-table-search {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  .app-table-search {
    min-width: 0;
  }

  .app-table-search .app-table-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .app-table-search .app-table-search-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
}
