body.foodresso-dairy-checker-page{background:#e5f0ff;}
.fr-card{background:#ffffff;border-radius:16px;padding:14px 18px 18px;box-shadow:0 10px 35px rgba(15,23,42,.06);margin-bottom:10px;border:1px solid #e5e7eb;}
.fr-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-bottom:6px;}
.fr-toggle-row{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;}
.fr-toggle-row label{display:flex;align-items:center;gap:6px;margin:0;cursor:pointer;}
.fr-pill{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;font-size:10px;background:#e5e7eb;color:#111827;margin-left:4px;}
.fr-pill-mini{display:inline-flex;align-items:center;padding:1px 6px;border-radius:999px;font-size:10px;margin-right:4px;}
.fr-pill-ok{background:#dcfce7;color:#166534;}
.fr-pill-warn{background:#fef9c3;color:#854d0e;}
.fr-pill-fail{background:#fee2e2;color:#b91c1c;}
.fr-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px;}
.fr-btn{font-size:12px;border-radius:999px;border:none;padding:7px 12px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;background:#0ea5e9;color:#fff;box-shadow:0 8px 18px rgba(14,165,233,.35);}
.fr-btn.secondary{background:#e5e7eb;color:#111827;box-shadow:none;}
.fr-label-preview{border-radius:8px;border:1px dashed #cbd5e1;padding:8px;font-size:11px;display:grid;grid-template-columns:1.2fr 1.6fr;gap:8px;}
@media (max-width:640px){.fr-label-preview{grid-template-columns:1fr;}}
.fr-label-box{border-radius:6px;padding:6px;background:#f9fafb;min-height:60px;}
.fr-label-title{font-weight:600;margin-bottom:4px;font-size:11px;}
.fr-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px;}
.fr-chip{border-radius:999px;padding:2px 6px;font-size:10px;background:#e5e7eb;}
.fr-small-note{font-size:10px;color:#6b7280;margin-top:4px;}
.fr-juris-tag{font-size:10px;border-radius:999px;padding:1px 6px;background:#e0f2fe;color:#075985;}
.fr-rule-id{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:10px;color:#6b7280;}
.fr-results-wrap{max-height:380px;overflow:auto;margin-top:6px;border:1px solid #e5e7eb;border-radius:8px;}
.fr-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.55);display:none;align-items:center;justify-content:center;z-index:9999;}
.fr-modal{background:#fff;border-radius:10px;max-width:420px;width:90%;padding:14px 16px;box-shadow:0 10px 30px rgba(15,23,42,.35);}
.fr-modal h3{margin-top:0;font-size:15px;}
.fr-modal-close{border:none;background:transparent;float:right;cursor:pointer;font-size:16px;}
.fr-history-table{width:100%;border-collapse:collapse;font-size:12px;}
.fr-history-table th,.fr-history-table td{border:1px solid #e5e7eb;padding:4px 6px;}
.fr-history-table th{background:#f9fafb;font-weight:600;}

.fr-buttons-top{margin-top:6px;}
.fr-btn-icon{display:inline-flex;align-items:center;margin-right:4px;}

.foodresso-dairy-checker{
  max-width:1180px;
  margin:0 auto;
  padding:10px 8px 20px;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:13px;
  color:#111827;
}
.foodresso-dairy-checker h1{
  margin:0 0 2px;
  font-size:15px;
  font-weight:600;
}
.fr-lab-header{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  padding:14px 18px;
  border-radius:18px;
  background:linear-gradient(135deg,#eff6ff,#e0f2fe);
  border:1px solid #bfdbfe;
  box-shadow:0 18px 45px rgba(15,23,42,.08);
}
.fr-lab-kicker{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#1d4ed8;
  margin-bottom:4px;
}
.fr-lab-header p{
  margin:0;
  font-size:12px;
  color:#4b5563;
}
.fr-lab-badge{
  font-size:11px;
  padding:3px 9px;
  border-radius:999px;
  background:rgba(59,130,246,.12);
  color:#1d4ed8;
}
.foodresso-dairy-checker label{
  display:block;
  font-size:11px;
  font-weight:500;
  color:#4b5563;
  margin-bottom:4px;
}
.foodresso-dairy-checker input[type=text],
.foodresso-dairy-checker input[type=number],
.foodresso-dairy-checker input[type=date],
.foodresso-dairy-checker select,
.foodresso-dairy-checker textarea{
  width:100%;
  box-sizing:border-box;
  font-size:12px;
  padding:7px 9px;
  border-radius:10px;
  border:1px solid #d1d5db;
  background:#f9fafb;
  color:#111827;
}
.foodresso-dairy-checker textarea{
  min-height:64px;
}
.foodresso-dairy-checker input[type=text]:focus,
.foodresso-dairy-checker input[type=number]:focus,
.foodresso-dairy-checker input[type=date]:focus,
.foodresso-dairy-checker select:focus,
.foodresso-dairy-checker textarea:focus{
  outline:none;
  border-color:#0ea5e9;
  box-shadow:0 0 0 1px #0ea5e9;
  background:#ffffff;
}

.fr-card { margin-bottom:6px !important; }

.foodresso-dairy-checker h2{font-size:15px;margin-top:0;margin-bottom:4px;font-weight:600;}
.foodresso-dairy-checker h3{font-size:15px;margin-top:0;margin-bottom:4px;font-weight:600;}
/* Tighter header banner spacing */
.fr-lab-header{
  margin-bottom:6px;
  padding:10px 14px;
}
/* Make cards more compact inside */
.fr-card{
  padding:10px 12px 10px 12px;
}
