/* ==========================================================================
   WATER INTAKE CALCULATOR STYLESHEET
   Matches Calculator Archive Classic Layout & Color Archetype (#003366 & #2e7d32)
   ========================================================================== */

/* --- PAGE CONTAINER & TOP BAR --- */
.wic-page-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px 36px 16px;
  font-family: Arial, Helvetica, sans-serif;
  color: #1e293b;
}

.wic-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.wic-breadcrumb {
  font-size: 12px;
  color: #64748b;
}

.wic-breadcrumb a {
  color: #003366;
  text-decoration: none;
}

.wic-breadcrumb a:hover {
  text-decoration: underline;
}

.wic-breadcrumb span.sep {
  margin: 0 5px;
  color: #94a3b8;
}

.wic-breadcrumb span.current {
  color: #334155;
  font-weight: bold;
}

.wic-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wic-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.wic-search-input {
  padding: 5px 28px 5px 10px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  width: 170px;
  outline: none;
  transition: border-color 0.15s;
}

.wic-search-input:focus {
  border-color: #003366;
}

.wic-search-btn {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #64748b;
  display: flex;
  align-items: center;
}

/* Dropdown Autocomplete for Both Top Bar and Sidebar */
.wic-search-dropdown {
  display: none;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
}

.wic-search-box .wic-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 260px;
}

.wic-side-search-wrap .wic-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #003366;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.wic-search-dropdown.active {
  display: block;
}

.wic-search-item {
  padding: 8px 10px;
  font-size: 12.5px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.12s, color 0.12s;
  color: #1e293b;
  text-decoration: none;
  text-align: left;
}

.wic-search-item:last-child {
  border-bottom: none;
}

.wic-search-item:hover,
.wic-search-item.wic-item-selected {
  background-color: #e9edf2;
  color: #003366;
}

.wic-search-item-title {
  font-weight: 500;
  flex: 1;
}

.wic-search-item-cat {
  font-size: 10.5px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  margin-left: 8px;
}

.wic-search-no-results {
  padding: 10px 12px;
  font-size: 12px;
  color: #64748b;
  font-style: italic;
  text-align: center;
}

/* Sidebar Search Form */
.wic-side-search-form {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
}

.wic-side-search-wrap {
  flex: 1;
  position: relative;
}

.wic-side-search-input {
  width: 100%;
  height: 28px;
  padding: 2px 8px;
  font-size: 13px;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}

.wic-side-search-input:focus {
  border-color: #003366;
}

.wic-side-search-btn {
  background-color: #2c5f88;
  color: #ffffff;
  border: 1px solid #1a4263;
  border-radius: 2px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s;
}

.wic-side-search-btn:hover {
  background-color: #234d70;
}

.wic-action-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #003366;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 6px;
  border-radius: 4px;
}

.wic-action-link:hover {
  background-color: #f1f5f9;
  text-decoration: underline;
}

.wic-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: bold;
  background: #2e7d32;
  color: #ffffff;
  border-radius: 10px;
  margin-left: 2px;
}

/* --- TITLE & INTRO --- */
.wic-page-title {
  font-size: 24px;
  color: #003366;
  margin: 0 0 6px 0;
  font-weight: bold;
}

.wic-intro-text {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

/* --- MAIN GRID LAYOUT --- */
.wic-main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .wic-main-grid {
    grid-template-columns: 1fr;
  }
}

.wic-content-col {
  min-width: 0;
}

/* --- CALC ROW (FORM + RESULTS) --- */
.wic-calc-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .wic-calc-row {
    grid-template-columns: 1fr;
  }
}

/* --- CALCULATOR FORM CONTAINER --- */
.wic-calc-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wic-calc-header {
  background-color: #003366;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tabs */
.wic-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
}

.wic-tab {
  flex: 1;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  border: none;
  background: none;
  cursor: pointer;
  color: #475569;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.wic-tab:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.wic-tab.active {
  background: #ffffff;
  color: #003366;
  border-bottom: 2px solid #003366;
  font-weight: bold;
}

/* Form Inner */
.wic-form-body {
  padding: 14px;
}

.wic-form-table {
  width: 100%;
  border-collapse: collapse;
}

.wic-form-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.wic-form-table tr:last-child {
  border-bottom: none;
}

.wic-form-table td {
  padding: 8px 4px;
  vertical-align: middle;
  font-size: 13px;
}

.wic-label-col {
  width: 36%;
  color: #334155;
  font-weight: 600;
}

.wic-input-col {
  width: 64%;
}

.wic-input-text {
  width: 100px;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
}

.wic-input-text:focus {
  border-color: #003366;
  box-shadow: 0 0 0 1px #003366;
}

.wic-select {
  width: 100%;
  padding: 6px 8px;
  font-size: 12.5px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
}

.wic-select:focus {
  border-color: #003366;
}

.wic-radio-group {
  display: flex;
  gap: 14px;
  align-items: center;
}

.wic-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  cursor: pointer;
}

.wic-help-link {
  font-size: 11.5px;
  color: #003366;
  cursor: pointer;
  margin-left: 4px;
  text-decoration: none;
}

.wic-help-link:hover {
  text-decoration: underline;
}

.wic-unit-hint {
  font-size: 11px;
  color: #64748b;
  margin-left: 6px;
}

/* Action Buttons */
.wic-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.wic-btn-calc {
  background: #2e7d32;
  color: #ffffff;
  border: 1px solid #256029;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.wic-btn-calc:hover {
  background: #256029;
}

.wic-btn-clear {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.wic-btn-clear:hover {
  background: #e2e8f0;
}

.wic-btn-save {
  background: #f8fafc;
  color: #003366;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  transition: all 0.15s;
}

.wic-btn-save:hover {
  background: #eef5fb;
  border-color: #003366;
}

/* --- RESULTS CONTAINER --- */
.wic-results-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.wic-results-header {
  background-color: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: bold;
  color: #003366;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wic-results-body {
  padding: 14px;
  flex: 1;
}

.wic-hero-metric {
  background: linear-gradient(135deg, #eef5fb 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
}

.wic-hero-title {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0369a1;
  font-weight: bold;
  margin-bottom: 4px;
}

.wic-hero-value {
  font-size: 32px;
  font-weight: 800;
  color: #003366;
  line-height: 1.1;
}

.wic-hero-unit {
  font-size: 14px;
  font-weight: normal;
  color: #0284c7;
}

.wic-hero-sub {
  font-size: 13px;
  color: #334155;
  margin-top: 4px;
  font-weight: 600;
}

.wic-cups-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.wic-cup-icon {
  width: 22px;
  height: 26px;
  color: #0284c7;
  transition: transform 0.15s;
}

.wic-cup-icon:hover {
  transform: scale(1.15);
}

.wic-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.wic-metric-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 8px 10px;
  text-align: center;
}

.wic-metric-box.beverage {
  border-left: 3px solid #0284c7;
}

.wic-metric-box.food {
  border-left: 3px solid #16a34a;
}

.wic-metric-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.wic-metric-val {
  font-size: 16px;
  font-weight: bold;
  color: #1e293b;
  margin-top: 2px;
}

.wic-metric-desc {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 2px;
}

.wic-results-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.wic-btn-action {
  flex: 1;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.wic-btn-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* --- CHARTS & VISUALIZATIONS SECTION --- */
.wic-charts-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wic-section-header {
  background: #f8fafc;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  font-weight: bold;
  color: #003366;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wic-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
}

@media (max-width: 768px) {
  .wic-charts-grid {
    grid-template-columns: 1fr;
  }
}

.wic-chart-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.wic-chart-title {
  font-size: 13px;
  font-weight: bold;
  color: #003366;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wic-svg-container {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wic-chart-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 11.5px;
}

.wic-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wic-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* --- URINE COLOR / DEHYDRATION SCALE --- */
.wic-urine-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wic-urine-body {
  padding: 14px 16px;
}

.wic-urine-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  margin: 12px 0 8px 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.wic-urine-step {
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.65);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wic-urine-step:hover,
.wic-urine-step.active {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.wic-urine-status-card {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12.5px;
  line-height: 1.45;
}

.wic-urine-status-title {
  font-weight: bold;
  margin-bottom: 3px;
}

/* --- SCHEDULE TABLE --- */
.wic-schedule-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wic-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.wic-schedule-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: bold;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #cbd5e1;
}

.wic-schedule-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.wic-schedule-table tr:hover {
  background: #f8fafc;
}

/* --- SIDEBAR --- */
.wic-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wic-side-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wic-side-header {
  background: #f8fafc;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: bold;
  color: #003366;
  border-bottom: 1px solid #e2e8f0;
}

.wic-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wic-side-item {
  border-bottom: 1px solid #f1f5f9;
}

.wic-side-item:last-child {
  border-bottom: none;
}

.wic-side-link {
  display: block;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s;
}

.wic-side-link:hover {
  background: #f1f5f9;
  color: #003366;
  padding-left: 15px;
}

.wic-quick-fact {
  padding: 10px 12px;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  border-bottom: 1px solid #f1f5f9;
}

.wic-quick-fact strong {
  color: #003366;
}

/* --- MODALS (PRINT, SAVED, INFO) --- */
.wic-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.wic-modal-overlay.active {
  display: flex !important;
}

.wic-modal-dialog {
  background: #ffffff;
  border-radius: 6px;
  width: 92%;
  max-width: 550px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
}

.wic-print-modal-dialog {
  max-width: 780px;
  width: 94%;
  max-height: 90vh;
}

.wic-modal-header {
  background: #003366;
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wic-modal-title {
  font-size: 14px;
  font-weight: bold;
}

.wic-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.wic-modal-body {
  padding: 16px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
}

.wic-print-toolbar {
  padding: 10px 16px;
  background-color: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wic-print-sheet {
  padding: 20px;
  overflow-y: auto;
  font-family: Arial, Helvetica, sans-serif;
  color: #1e293b;
  font-size: 13px;
  background: #ffffff;
  line-height: 1.5;
}

.wic-print-footer-tip {
  padding: 10px 16px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #64748b;
}

/* --- TOAST --- */
.wic-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.wic-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- SEO EDITORIAL SECTION STYLING --- */
.calc-seo-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 2px solid #e2e8f0;
  color: #334155;
  line-height: 1.65;
  font-size: 13.5px;
}

.calc-seo-section h2 {
  color: #003366;
  font-size: 20px;
  margin: 20px 0 10px 0;
}

.calc-seo-section h3 {
  color: #003366;
  font-size: 16px;
  margin: 18px 0 8px 0;
}

.calc-seo-section h4 {
  color: #003366;
  font-size: 14px;
  margin: 14px 0 6px 0;
}

.calc-seo-section p {
  margin: 0 0 12px 0;
}

.calc-seo-section ul,
.calc-seo-section ol {
  margin: 0 0 14px 20px;
  padding: 0;
}

.calc-seo-section li {
  margin-bottom: 6px;
}

.seo-formula-box {
  background: #f8fafc;
  border-left: 4px solid #003366;
  padding: 12px 16px;
  margin: 14px 0;
  font-family: monospace, Courier, monospace;
  font-size: 12.5px;
  color: #1e293b;
  border-radius: 0 4px 4px 0;
}

.seo-aeo-card {
  background: #eef5fb;
  border: 1px solid #bdd7ee;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0;
}

.seo-aeo-card .aeo-q {
  font-size: 14px;
  font-weight: bold;
  color: #003366;
  margin-bottom: 6px;
}

.seo-aeo-card .aeo-a {
  font-size: 13px;
  color: #1e293b;
  line-height: 1.55;
}

.geo-insight-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0;
}

.geo-insight-box .geo-title {
  font-size: 14px;
  font-weight: bold;
  color: #166534;
  margin-bottom: 6px;
}

/* --- PRINT MEDIA STYLES --- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  header, footer, .wic-top-bar, .wic-btn-row, .wic-sidebar-col, .wic-results-actions, .wic-toast, .wic-print-toolbar, .wic-print-footer-tip, .wic-modal-close, .wic-modal-header {
    display: none !important;
  }

  /* When printing from modal */
  body.wic-printing-modal .wic-page-container {
    display: none !important;
  }
  body.wic-printing-modal .wic-modal-overlay {
    position: static !important;
    display: block !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  body.wic-printing-modal .wic-modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.wic-printing-modal .wic-print-sheet {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    width: 100% !important;
  }

  /* When printing standard page without modal */
  body:not(.wic-printing-modal) .wic-modal-overlay {
    display: none !important;
  }
  body:not(.wic-printing-modal) .wic-main-grid {
    display: block !important;
  }
  body:not(.wic-printing-modal) .wic-page-container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  body:not(.wic-printing-modal) .wic-calc-box,
  body:not(.wic-printing-modal) .wic-results-card,
  body:not(.wic-printing-modal) .wic-charts-section,
  body:not(.wic-printing-modal) .wic-urine-section,
  body:not(.wic-printing-modal) .wic-schedule-section {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    break-inside: avoid;
    margin-bottom: 15px !important;
  }
}

/* --- RTL SUPPORT FOR ARABIC --- */
html[dir="rtl"] .wic-search-input {
  padding: 5px 10px 5px 28px;
}
html[dir="rtl"] .wic-search-btn {
  right: auto;
  left: 6px;
}
html[dir="rtl"] .wic-search-box .wic-search-dropdown {
  right: auto;
  left: 0;
}
html[dir="rtl"] .wic-search-item {
  text-align: right;
}
html[dir="rtl"] .wic-search-item-cat {
  margin-left: 0;
  margin-right: 8px;
}
html[dir="rtl"] .wic-side-search-form {
  flex-direction: row;
}
html[dir="rtl"] .wic-btn-save {
  margin-left: 0;
  margin-right: auto;
}
html[dir="rtl"] .wic-side-link:hover {
  padding-left: 12px;
  padding-right: 15px;
}
html[dir="rtl"] .seo-formula-box {
  border-left: none;
  border-right: 4px solid #003366;
  border-radius: 4px 0 0 4px;
}
html[dir="rtl"] .wic-metric-box.beverage {
  border-left: 1px solid #e2e8f0;
  border-right: 3px solid #0284c7;
}
html[dir="rtl"] .wic-metric-box.food {
  border-left: 1px solid #e2e8f0;
  border-right: 3px solid #16a34a;
}
