:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#15243e;background:#f3f6fc}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}[hidden]{display:none!important}.muted{color:#73819a;font-size:.92rem}.auth{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,#2454ad,#0c1932 65%);padding:18px}.login-card{background:white;border-radius:20px;padding:32px;width:min(100%,370px);box-shadow:0 20px 60px #0004;animation:enter .4s ease}.login-card h1{margin:8px 0 2px;font-size:1.55rem}.brand-mark{font-size:36px;color:#3164d8}.login-card form{margin-top:24px}label{display:block;font-weight:600;font-size:.9rem;margin-bottom:14px}label input,select{display:block;margin-top:7px;width:100%;border:1px solid #d5deee;border-radius:10px;padding:11px 12px;background:white;outline:none}label input:focus,select:focus{border-color:#3765d4;box-shadow:0 0 0 3px #3765d420}.password-wrap{position:relative}.password-wrap input{padding-right:44px}.eye{position:absolute;right:5px;top:5px;border:0;background:transparent;padding:8px;color:#60718e}.between{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:14px 0 22px}.check{display:flex;align-items:center;gap:6px;margin:0;font-weight:400;white-space:nowrap}.check input{width:auto;margin:0}.link{border:0;background:none;color:#2857b5;padding:4px}.primary,.secondary{border:0;border-radius:10px;padding:11px 16px;font-weight:650}.primary{background:#2e5fce;color:white}.primary:hover{background:#244fb0}.secondary{background:#e7edfa;color:#224482}.full{width:100%}#app{display:flex;min-height:100vh}.sidebar{width:225px;flex-shrink:0;background:#12213e;color:white;padding:22px 12px;display:flex;flex-direction:column;gap:7px}.side-brand{font-weight:800;font-size:1.15rem;padding:12px 10px 26px}.nav{border:0;text-align:left;background:transparent;color:#c8d5ef;padding:12px 14px;border-radius:10px}.nav:hover,.nav.active{background:#294b86;color:white}.workspace{min-width:0;flex:1}.workspace header{display:flex;align-items:center;gap:16px;background:white;padding:18px 30px;border-bottom:1px solid #e4e9f2}.workspace header h2{margin:0}.workspace header p{margin:4px 0 0}#roleBadge{margin-left:auto;background:#e7eefc;color:#244f9d;padding:6px 12px;border-radius:999px;text-transform:capitalize}.content{padding:28px;max-width:1450px;margin:auto}.hero{background:linear-gradient(120deg,#21458d,#497fe0);border-radius:18px;color:white;padding:35px}.hero h2{margin:0}.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-top:18px}.tiles button,.panel{background:white;border:1px solid #e3e8f2;border-radius:14px;padding:24px;box-shadow:0 5px 18px #12213e09}.tiles button{text-align:left;font-weight:700;color:#284e95}.toolbar,.actions{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}.toolbar input{flex:1;min-width:170px;border:1px solid #d5deee;border-radius:10px;padding:11px}.table-scroll{overflow:auto;background:white;border:1px solid #e2e8f1;border-radius:13px}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{padding:12px 14px;text-align:left;border-bottom:1px solid #edf0f6;white-space:nowrap}th{background:#f7f9fe;color:#4c5e7a;position:sticky;top:0}td button{margin-right:6px}td img{width:50px;height:50px;object-fit:cover;border-radius:6px}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.fields label{margin:0}.panel{margin-bottom:18px}.panel h3{margin-top:0}#toast{position:fixed;top:16px;right:16px;background:#172d52;color:white;border-radius:10px;padding:12px 18px;z-index:99;max-width:400px;box-shadow:0 8px 24px #0003;display:none}#toast.show{display:block}#menu{display:none;background:none;border:0;font-size:22px}@keyframes enter{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@media(max-width:760px){#menu{display:block}.sidebar{position:fixed;z-index:10;top:0;bottom:0;left:0;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.workspace header{padding:14px}.content{padding:14px}.hero{padding:22px}.login-card{padding:24px}}



/* =========================================
   MERCY SEARCH INVENTORY - PREMIUM RESULTS
   ========================================= */

#searchInventoryPage {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#searchInventoryPage .panel {
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 24px;
}

#searchInventoryPage h3 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

#searchInventoryPage .fields input {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 15px;
}

#searchInventoryPage .fields label {
  font-size: 15px;
  font-weight: 700;
}

#siStatus {
  font-size: 15px;
  font-weight: 700;
  margin-top: 16px;
}

/* Results cards */

#siResults {
  display: block;
}

#siResults tr {
  display: block;
  background: #ffffff;
  border: 1px solid #dce4ee;
  border-left: 5px solid #2563eb;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

#siResults td {
  display: block;
  border: 0;
  padding: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Inventory signature */

#siResults td:nth-child(1) {
  font-size: 18px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 14px;
}

/* Size */

#siResults td:nth-child(2) {
  font-size: 22px;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 12px;
}

/* Main Box Tag */

#siResults td:nth-child(3) {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #0f172a;
  line-height: 1.3;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

/* Add labels above values */

#siResults tr:has(td:nth-child(3))
td:nth-child(1)::before {
  content: "INVENTORY SIGNATURE";
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 6px;
}

#siResults tr:has(td:nth-child(3))
td:nth-child(2)::before {
  content: "SIZE";
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 6px;
}

#siResults tr:has(td:nth-child(3))
td:nth-child(3)::before {
  content: "BOX TAG";
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 8px;
}

/* Hide old table headings */

#searchInventoryPage .table-scroll
table:has(#siResults) thead {
  display: none;
}

/* Allow card layout */

#searchInventoryPage .table-scroll:has(#siResults) {
  overflow: visible;
}

#searchInventoryPage table:has(#siResults) {
  display: block;
  width: 100%;
}

/* Mobile responsive */

@media (max-width: 600px) {
  #searchInventoryPage .panel {
    padding: 18px;
  }

  #siResults tr {
    padding: 18px;
  }

  #siResults td:nth-child(3) {
    font-size: 27px;
  }

  #siResults td:nth-child(1) {
    font-size: 16px;
  }
}
