/*
 * watermelonsugar portal: small layer on top of Metronic 8.2 + hub-theme.css
 * (hub-theme.css is a snapshot of the TDS Admin Hub's UI layer, so both portals look and behave alike).
 * Only portal-specific pieces live here.
 */
:root { --ws-melon: #e8505b; --ws-rind: #2f6b4f; }

/* Wordmark (sidebar, mobile header, login) */
.ws-wordmark { font-weight: 800; letter-spacing: -0.03em; text-decoration: none; line-height: 1; }
.ws-wordmark span { color: var(--ws-melon); }
.ws-wordmark-sidebar { color: #ffffff; font-size: 1.45rem; display: inline-block; }
.app-sidebar-logo-minimize.ws-wordmark-sidebar { font-size: 1.6rem; }
.ws-avatar { background: #FFEC91 !important; color: #181818 !important; }
[data-bs-theme="dark"] .ws-avatar { background: #5541C9 !important; color: #fff !important; }

/* Login: same structure as the TDS Hub sign-in (gradient band + form) */
.ws-auth-band { height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 60% 120% at 50% 70%, #8a2a33 0%, #3a1418 55%, #1a0c0e 100%); }
.ws-auth-band .ws-wordmark { color: #fff; font-size: 2.6rem; }
.ws-auth-band .tag { color: rgba(255,255,255,.7); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; margin-top: 14px; }
.ws-auth-form { max-width: 470px; margin: 0 auto; padding: 56px 0 24px; }
.ws-auth-form h1 { font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; }
.ws-auth-form .form-control-solid { height: 46px; }
.ws-auth-form .btn-primary { height: 46px; }

/* Dashboard */
.ws-stage { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--hub-line); }
.ws-stage:last-child { border-bottom: 0; }
.ws-stage .n { font-size: 1.35rem; font-weight: 700; min-width: 42px; text-align: right; color: var(--bs-gray-900); }
.ws-stage .lbl { flex: 1; min-width: 0; }
.ws-stage .lbl b { display: block; color: var(--bs-gray-900); font-weight: 600; }
.ws-stage .lbl small { color: var(--hub-soft); }
.ws-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ws-flow .hub-tile .v { font-size: 1.5rem; }
@media (max-width: 991.98px) { .ws-flow { grid-template-columns: repeat(2, 1fr); } }

/* Shrinkage calculator */
.ws-calc-result { font-variant-numeric: tabular-nums; }
.ws-calc-box { border: 1px dashed var(--bs-gray-300); border-radius: .625rem; padding: 18px; text-align: center; background: var(--hub-surface-2); }
.ws-calc-box .v { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.table td.ws-num, .table th.ws-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Cutting floor board */
.ws-col { background: var(--hub-surface-2); border: 1px solid var(--hub-line); border-radius: .625rem; min-height: 55vh; }
.ws-col-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--hub-line); }
.ws-col-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ws-cut { background: var(--bs-body-bg); border: 1px solid var(--hub-line); border-radius: .625rem; padding: 14px 16px; }
[data-bs-theme="light"] .ws-cut { background: #fff; }
.ws-cut .code { font-weight: 700; color: var(--bs-gray-900); }

/* Pattern list */
.ws-pick { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--hub-line); border-radius: .625rem;
  color: var(--bs-gray-800); cursor: pointer; transition: border-color .15s; }
.ws-pick:hover, .ws-pick.active { border-color: var(--bs-gray-900); }

/* Toasts fallback stack */
#ws_toasts { z-index: 2000; }
