:root {
  --bg-top: #0B0F1A;
  --bg-bottom: #111A2B;
  --card-bg: #151C2B;
  --card-border: #2A3448;
  --claim-text: #FFFFFF;
  --appliance-text: #B9C4D4;
  --status-text: #AAB4C5;
  --section-text: #98A3B5;
  --pass: #39D67A;
  --ready: #2FAE66;
  --wait: #D6A52B;
  --fail: #FF5A64;
  --info: #5997F2;
  --neutral: #D9DEE7;
  --cyan: #43C6D9;
  --button-disabled: #454D5B;
  --button-disabled-text: #8E97A6;
  --input-bg: #0E1523;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--claim-text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  font-family: "Segoe UI", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.monitor-header {
  width: 100%;
  padding: 20px 38px 0;
  background: var(--bg-top);
}

.brand-row {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wm-logo {
  display: block;
  width: 50px;
  height: 47px;
  object-fit: contain;
}

.wm-name {
  display: block;
  width: 158px;
  height: 21px;
  object-fit: contain;
}

.header-subtitle {
  margin-top: 5px;
  color: var(--appliance-text);
  text-align: center;
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  font-size: 11px;
}

.header-line {
  height: 1px;
  margin-top: 12px;
  background: var(--card-border);
}

.site-content {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 34px 22px 60px;
}

.monitor-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.main-card {
  width: min(760px, 100%);
  padding: 20px 20px 18px;
}

.login-content {
  padding-top: 72px;
}

.login-card {
  width: min(430px, 100%);
  padding: 24px 24px 22px;
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

h1 {
  margin: 4px 0 0;
  color: var(--claim-text);
  font-family: "Arial Black", "Segoe UI Black", "Segoe UI", Arial, sans-serif;
  font-size: 26px;
  line-height: 1.08;
}

.section-label {
  color: var(--section-text);
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  font-size: 9px;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.flow-title {
  margin-top: 5px;
  color: var(--pass);
  font-family: "Arial Black", "Segoe UI Black", "Segoe UI", Arial, sans-serif;
  font-size: 20px;
}

.login-title {
  color: var(--claim-text);
  font-size: 23px;
}

.separator {
  height: 1px;
  margin: 15px 0;
  background: var(--card-border);
}

.session-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

#signed-user {
  color: var(--appliance-text);
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
}

.mini-button {
  border: 0;
  padding: 6px 9px;
  color: #171717;
  background: #F4C542;
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  font-size: 9px;
  cursor: pointer;
}

.mini-button:hover {
  background: #FFD85E;
}

.claim-search {
  display: flex;
  align-items: end;
  gap: 9px;
}

.grow {
  flex: 1;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  color: var(--section-text);
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  font-size: 9px;
  letter-spacing: .035em;
}

.field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--claim-text);
  background: var(--input-bg);
  border: 1px solid #33405A;
  outline: none;
}

.field input::placeholder {
  color: #6D788C;
}

.field input:focus {
  border-color: var(--info);
  box-shadow: 0 0 0 1px var(--info);
}

.info-button,
.green-button {
  border: 0;
  color: var(--claim-text);
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  cursor: pointer;
}

.info-button {
  height: 42px;
  min-width: 118px;
  padding: 0 14px;
  background: var(--info);
}

.info-button:hover {
  background: var(--cyan);
}

.green-button {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  background: var(--ready);
}

.green-button:hover {
  background: var(--pass);
}

.info-button:disabled,
.green-button:disabled {
  color: var(--button-disabled-text);
  background: var(--button-disabled);
  cursor: not-allowed;
}

.claim-data,
.reorder-section {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--card-border);
  background: #121928;
}

.claim-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.claim-title {
  margin-top: 3px;
  color: var(--claim-text);
  font-family: "Segoe UI Bold", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  font-size: 20px;
}

.appliance-name {
  color: var(--appliance-text);
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  font-size: 11px;
}

.parts-label {
  margin-bottom: 9px;
}

.parts-list {
  display: grid;
  gap: 7px;
}

.part-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 11px;
  background: #101725;
  border: 1px solid #34405A;
  cursor: pointer;
}

.part-row:hover {
  border-color: var(--info);
}

.part-name {
  color: var(--claim-text);
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  font-size: 11px;
}

.part-number {
  margin-top: 3px;
  color: var(--appliance-text);
  font-size: 10px;
}

.supplier-badge {
  padding: 5px 7px;
  color: var(--neutral);
  background: #243047;
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  font-size: 8px;
  text-align: center;
}

.message {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid var(--card-border);
  font-size: 10px;
  line-height: 1.35;
}

.message.error {
  color: #FFDADD;
  border-color: rgba(255, 90, 100, .45);
  background: rgba(255, 90, 100, .08);
}

.message.ok {
  color: #D8FFE7;
  border-color: rgba(57, 214, 122, .4);
  background: rgba(57, 214, 122, .08);
}

.message.info {
  color: #D8E8FF;
  border-color: rgba(89, 151, 242, .4);
  background: rgba(89, 151, 242, .08);
}

.login-form {
  display: grid;
  gap: 16px;
}

.full-button {
  width: 100%;
  margin-top: 2px;
}

.login-note {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--card-border);
  color: var(--status-text);
  font-size: 10px;
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

@media (max-width: 620px) {
  .monitor-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .main-card {
    padding: 16px 13px;
  }

  .card-topline,
  .claim-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .claim-search {
    display: grid;
  }

  .info-button {
    width: 100%;
  }

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

  .supplier-badge {
    justify-self: start;
  }
}


/* ==========================================================================
   WM REORDER UI V2.5
   ========================================================================== */

.monitor-header {
  position: relative;
}

.language-switch {
  position: absolute;
  top: 20px;
  right: 38px;
  display: flex;
  gap: 5px;
}

.lang-button {
  height: 26px;
  padding: 0 9px;
  border: 1px solid #2A3448;
  color: #AAB4C5;
  background: #151C2B;
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  font-size: 9px;
  cursor: pointer;
}

.lang-button:hover {
  border-color: #5997F2;
  color: #FFFFFF;
}

.lang-button.active {
  color: #FFFFFF;
  border-color: #5997F2;
  background: #243047;
}

.selection-help {
  margin: 8px 0 12px;
  color: #AAB4C5;
  font-size: 10px;
}

.selected-part-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field input[readonly] {
  color: #D9DEE7;
  background: #111827;
  cursor: default;
}

.reason-block {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #2A3448;
}

.reason-title {
  margin-bottom: 8px;
}

.reason-options {
  display: grid;
  gap: 6px;
}

.reason-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #303C51;
  background: #101725;
  cursor: pointer;
}

.reason-option:hover {
  border-color: #5997F2;
}

.reason-option.selected {
  border-color: #5997F2;
  background: #142039;
}

.reason-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reason-circle {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 1px;
  border: 2px solid #98A3B5;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.reason-option.selected .reason-circle {
  border-color: #39D67A;
}

.reason-option.selected .reason-circle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #39D67A;
}

.reason-text {
  color: #D9DEE7;
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.35;
}

.build-marker {
  margin-top: 12px;
  color: #566173;
  text-align: right;
  font-size: 8px;
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
}

@media (max-width: 700px) {
  .language-switch {
    position: static;
    justify-content: center;
    margin-top: 8px;
  }

  .selected-part-grid {
    grid-template-columns: 1fr;
  }
}


/* V2.10 - SELECT CLAIM state */
.claim-selected-lock {
  border-color: #39D67A !important;
}

#manual-part-mode .field {
  width: 100%;
}


/* =============================================================================
   PASSWORD VISIBILITY TOGGLE
   ============================================================================= */

.password-input-wrap {
  position: relative;
  width: 100%;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 34px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #98A3B5;
  background: transparent;
  border: 0;
  outline: none;
  cursor: pointer;
}

.password-toggle:hover {
  color: #D9DEE7;
  background: rgba(89, 151, 242, 0.08);
}

.password-toggle:focus-visible {
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px #5997F2;
}

.password-eye-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye-icon.hidden {
  display: none;
}
