/* .limited-water-body{
  height: calc(100vh - 130px); 
  min-height: 0;
  padding-top: 6px;
} */

/* ---------------------------------------------------------
   3) Scrollable body (ONLY scrolling region)
   - Takes remaining height under header
   - Scrolls vertically
   - Never scrolls horizontally
   --------------------------------------------------------- */
.limited-water-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  height: 90vh;

  display: block;                 /* ✅ important */
  overflow-y: auto !important;
  overflow-x: hidden !important;

  padding-top: 3px;
  padding-bottom: 3px;
  scroll-padding-bottom: 3px;
  overscroll-behavior: contain;
}

/* ===================== Table & Column Widths ===================== */
.limited-water-table col.col-plot-day        { width: 17rem; }
.limited-water-table col.col-phen-stage      { width: 16rem; }  /* widen if needed */
.limited-water-table col.col-expected-yield  { width: 11rem; }
.limited-water-table col.col-day             { width: 9rem; }   /* each day column */
.limited-water-table col.col-plus-all        { width: 3rem; }
.limited-water-table col.col-minus-all       { width: 3rem; }

/* Full table container */
.limited-water-table-body{
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* Table */
.limited-water-table{
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    background-color: #fff;
    text-align: left;
    box-sizing: border-box;
    table-layout: fixed;           /* lock column widths */
}

/* Base cells */
.limited-water-table th,
.limited-water-table td{
    overflow: hidden;              /* default clipping (overridden for dropdown cells) */
    vertical-align: middle;
    text-overflow: ellipsis;
    position: relative;            /* baseline stacking context */
    z-index: 0;
}

/* Header row */
.limited-water-table .header-cell{
    background-color: #bdbbbb;
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #ccc;
}

/* headers for past days */
.limited-water-table .header-cell.past-day {
    color: rgb(22, 5, 250);
    font-weight: bold;
}

/* Row labels like 'Recommended' and 'Planned' */
.limited-water-table .row-label{
    background-color: #f9f9f9;
    font-weight: bold;
    padding: 0.5rem;
    border: 1px solid #ccc;
}

/* General cell styling */
.limited-water-table td{
    padding: 0.3rem;
    border: 1px solid #ddd;
    vertical-align: middle;
    text-align: center;
}

/* Fixed-size day columns (helpers) */
.limited-water-table .day-col,
.limited-water-table .day-cell{
    width: 9rem;   /* keep in sync with col.col-day */
}
.limited-water-table .day-cell{
    height: 44px;
    padding: 0.25rem;
}

/* ===================== Dropdown Cells (Dash dcc.Dropdown v3) ===================== */
/* Host TD: allow menu to escape and stack above neighbors */
.limited-water-table .dropdown-cell{
    position: relative;
    overflow: visible !important;  /* override base td overflow */
    z-index: 1;
    min-width: 280px;              /* baseline width for the control */
}

/* Control fills the cell */
.limited-water-table .dropdown-cell .Select{
    width: 100%;
}

/* When open, lift the control above other rows */
.limited-water-table .dropdown-cell .Select.is-open{
    position: relative;
    z-index: 30000;
}

/* Menu container (react-select v1; here it is portaled to <body>) */
.Select-menu-outer{
    z-index: 200000;               /* ensure portaled menus float above app */
}

/* If for some reason the menu is still inside the cell, keep these too */
.limited-water-table .dropdown-cell .Select-menu-outer{
    position: absolute;
    left: 0;
    z-index: 40000;       
    width: max-content;
    min-width: 100%;
    max-width: 80vw;
    white-space: nowrap;
    box-sizing: border-box;

    max-height: 120px !important;
    overflow-y: auto !important;
}

/* Inner menu follows outer width when not portaled */
.limited-water-table .dropdown-cell .Select-menu{
    width: 100%;
}

/* Options: single line (virtualized & non-virtualized) */
.limited-water-table .dropdown-cell .Select-option,
.limited-water-table .dropdown-cell .VirtualizedSelectOption,
.limited-water-table .dropdown-cell .VirtualizedSelectFocusedOption{
    white-space: nowrap;
}

/* Scope for phenological stage if you want extra control */
.limited-water-table .phenological-stage-cell .Select{ width: 100%; }

/* ===================== Weather Widget Cell ===================== */
.limited-water-table .weather-widget-cell{ padding: 0; }
.limited-water-table .weather-widget-cell > div{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin; /* Firefox */
}
.weather-pill{ line-height: 1.1; }

/* ===================== Graphs / Misc ===================== */
.limited-water-graphs-body{
    width: 100%;
    height: auto;
    box-sizing: border-box;
}
/* .get_limited_water_graphs{
    width: 100%;    
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: auto;
} */

.limited-water-gauge-graphs{
    width: 100%;    
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0px;
    margin: 0.5px;
    box-sizing: border-box;
    /* overflow-y: auto;
    overflow-x: auto; */
}

#limited-water-date-picker input{ padding: 0px; }

/* ===================== Floating Divs / Messages ===================== */
.limited-water-floating-div-show{
    display: block;
    position: fixed;
    top: 40%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    min-height: 10vh;
    min-width: 15vw;
    max-width: 35vw;
    max-height: 80vh;
    background: var(--div-body-background-color);
    border: var(--div-border);
    border-radius: 5px;
    box-shadow: var(--floating-selected-box-shadow);
    z-index: 1000;
    text-align: center;
    box-sizing: border-box;
}

.limited-water-new-program-name-input-div{
    width: 100%;
    height: 4.5vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    padding: 2px;
    gap: 2px; 
    font-size: auto;
    color: var(--text-color);
    font-weight: bold;
    box-sizing: border-box;
    border-bottom: var(--div-border);
}



/* ===================== Buttons / Helpers ===================== */
.btn-plus,
.btn-minus{
    font-weight: bold;
    font-size: 150%;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: auto;
}
.btn-plus{ color: rgb(10, 110, 6); }
.btn-minus{ color: rgb(223, 16, 16); }

.centered-cell{
    text-align: center;
    vertical-align: middle;
}

/* ===================== Weather widget fallback (older rules) ===================== */
.weather-widget-cell{
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}
.weather-widget-cell > div{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Popup: shrink-wrap content, but cap overall height */
.limited-water-duplicated-allocations-floating-div-show{
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48vw; max-width: 90vw;
  height: auto;                /* ⬅️ was a fixed vh; now auto */
  max-height: 80vh;            /* ⬅️ prevents runaway growth */
  background: var(--div-body-background-color);
  border: var(--div-border); border-radius: 6px;
  box-shadow: var(--floating-selected-box-shadow);
  z-index: 1000; box-sizing: border-box;
  display: flex; flex-direction: column;
  overflow: visible;            /* table has its own internal scroll */
}

.floating-div-head-first-div{ flex: 0 0 auto; }

/* Report container: do NOT fill leftover space */
.limited-water-duplicated-allocations-report-div{
  flex: 0 0 auto;              /* ⬅️ was flex:1; stop stretching */
  height: auto;                /* just fit the table */
  padding: 6px;
  overflow: visible;           /* table handles its own scrolling */
}

.limited-water-duplicated-allocations-table-container{
  width: 100%;
  /* no height needed — DataTable's style_table[maxHeight] makes it scroll */
}


/* Wrapper behaves like a Bootstrap input */
.sg-datepicker-wrap {
  display: inline-flex;
  align-items: center;
  height: 38px;          /* Bootstrap input-group height */
}

/* The visible input inside DatePickerSingle */
.sg-datepicker-wrap .DateInput,
.sg-datepicker-wrap .DateInput_input {
  height: 38px !important;
  line-height: 38px !important;
  padding: 0 12px !important;
  box-sizing: border-box;
}

/* Make the whole picker align nicely */
.sg-datepicker-wrap .SingleDatePicker,
.sg-datepicker-wrap .SingleDatePickerInput,
.sg-datepicker-wrap .SingleDatePickerInput__withBorder {
  height: 38px !important;
}

/* Optional: match Bootstrap border radius + font */
.sg-datepicker-wrap .DateInput_input {  
  border-radius: 0.375rem !important;
}

.sg-datepicker-wrap .DateInput,
.sg-datepicker-wrap .DateInput_input {
  width: 120px !important;
}



/* =========================================================
   PROFESSIONAL POLISH — matching agro insights style
   ========================================================= */

/* Unit label next to inputs */
.lw-unit-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

/* lw-area-badge → defined globally in app.css */

/* Table header: cleaner, modern */
.limited-water-table .header-cell {
  background-color: #e8f0f7 !important;
  color: #1f2a37 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  border: 1px solid #c9d2e0 !important;
  padding: 0.5rem !important;
}

.limited-water-table .header-cell.past-day {
  color: #177da5 !important;
}

/* Row labels */
.limited-water-table .row-label {
  background-color: #f4f6f9 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #1f2a37 !important;
  border: 1px solid #c9d2e0 !important;
}

/* General cells */
.limited-water-table td {
  border: 1px solid #dde2ea !important;
  font-size: 0.85rem;
}

/* Table background */
.limited-water-table {
  background-color: #ffffff !important;
  border-radius: 8px;
  overflow: hidden;
}

/* Gauge graph cards */
.limited-water-gauge-graphs > div {
  border: 1px solid #dde2ea !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(15,23,42,0.07) !important;
  overflow: hidden;
}

/* Bar chart graph cards */
#limited-water-planned-vs-recommended-plant-units-graphs > div,
#limited-water-planned-vs-recommended-days-graphs > div {
  border: 1px solid #dde2ea !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(15,23,42,0.07) !important;
  overflow: hidden;
}

/* Plus/minus buttons */
.btn-plus {
  color: #177da5 !important;
  border-color: #177da5 !important;
}
.btn-minus {
  color: #e05252 !important;
  border-color: #e05252 !important;
}

/* Gap between Start datepicker and Days input */
.sg-datepicker-wrap {
  margin-right: 0.5rem;
}


/* =========================================================
   ADDITIONAL PROFESSIONAL POLISH
   ========================================================= */

/* Recommended input cells */
.form-control.readonly-input {
  background-color: #d6eaf8 !important;
  border-color: #aed6f1 !important;
  color: #1a3a5c !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
}

/* Planned input cells */
.form-control.editable-input {
  background-color: #d5f5e3 !important;
  border-color: #a9dfbf !important;
  color: #1a4731 !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
}

/* Weather row label */
.limited-water-table .row-label {
  font-size: 0.88rem !important;
}

/* Graph containers: consistent white card look */
.limited-water-gauge-graphs > div,
#limited-water-planned-vs-recommended-plant-units-graphs > div,
#limited-water-planned-vs-recommended-days-graphs > div {
  border-radius: 10px !important;
  box-shadow: 0 1px 6px rgba(15,23,42,0.08) !important;
  background: #ffffff !important;
}
/* =========================================================
   LIMITED WATER — PROFESSIONAL PAGE THEME
   Visual-only overrides. Scoped to .limited-water-page so no
   other SensiGrow page is affected.
   ========================================================= */

.limited-water-page {
  --lw-text: #1f2937;
  --lw-muted: #64748b;
  --lw-border: #dce4ed;
  --lw-border-strong: #cbd6e2;
  --lw-surface: #ffffff;
  --lw-surface-soft: #f8fafc;
  --lw-page: #f3f6fa;
  --lw-blue: #2f80c1;
  --lw-blue-soft: #edf6fc;
  --lw-green: #3b9b64;
  --lw-green-soft: #edf8f1;
  --lw-orange: #d99035;

  background: var(--lw-page);
  color: var(--lw-text);
  font-family: Arial, sans-serif;
}

/* ---------- Top toolbar ---------- */
.limited-water-page .limited-water-top-navbar {
  flex: 0 0 auto;
  padding: 7px 10px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--lw-border) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.limited-water-page .limited-water-top-navbar > .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.limited-water-page .agro-toolbar {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.limited-water-page .agro-toolbar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.limited-water-page .agro-toolbar-section-label {
  padding-left: 3px;
  color: #718096;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.limited-water-page .agro-toolbar-pill {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: var(--lw-surface-soft);
  border: 1px solid var(--lw-border);
  border-radius: 10px;
}

.limited-water-page .agro-toolbar-divider {
  width: 1px;
  height: 35px;
  align-self: flex-end;
  margin: 0 1px 1px;
  background: #d8e0e9;
}

.limited-water-page .agro-toolbar .input-group {
  flex-wrap: nowrap;
}

.limited-water-page .agro-toolbar .input-group-text,
.limited-water-page .agro-toolbar .form-control,
.limited-water-page .agro-toolbar .form-select {
  min-height: 30px;
  height: 30px;
  border-color: #cfd9e5;
  font-size: 0.79rem;
  box-shadow: none !important;
}

.limited-water-page .agro-toolbar .input-group-text {
  padding: 0 8px;
  background: #eef3f8;
  color: #526174;
  font-weight: 600;
}

.limited-water-page .agro-toolbar .form-control,
.limited-water-page .agro-toolbar .form-select {
  background: #ffffff;
  color: #263548;
}

.limited-water-page #limited-water-program-selector {
  min-width: 185px !important;
  max-width: 260px;
}

.limited-water-page .agro-toolbar input:focus,
.limited-water-page .agro-toolbar select:focus,
.limited-water-page .DateInput_input__focused {
  border-color: #7ab5dd !important;
  box-shadow: 0 0 0 2px rgba(47, 128, 193, 0.12) !important;
}

.limited-water-page .agro-toolbar .form-control:disabled,
.limited-water-page .agro-toolbar .form-select:disabled,
.limited-water-page .agro-toolbar input:disabled {
  color: #8491a2;
  background: #f2f4f7 !important;
  opacity: 1;
}

.limited-water-page .sg-datepicker-wrap {
  height: 30px !important;
  margin-right: 0 !important;
}

.limited-water-page .sg-datepicker-wrap .DateInput,
.limited-water-page .sg-datepicker-wrap .DateInput_input,
.limited-water-page .sg-datepicker-wrap .SingleDatePicker,
.limited-water-page .sg-datepicker-wrap .SingleDatePickerInput,
.limited-water-page .sg-datepicker-wrap .SingleDatePickerInput__withBorder {
  height: 30px !important;
  line-height: 30px !important;
}

.limited-water-page .sg-datepicker-wrap .DateInput,
.limited-water-page .sg-datepicker-wrap .DateInput_input {
  width: 120px !important;
}

.limited-water-page .sg-datepicker-wrap .DateInput_input {
  padding: 0 8px !important;
  color: #263548;
  font-size: 0.79rem;
  border-radius: 0 !important;
}

/* Toolbar action buttons: compact and visually meaningful. */
.limited-water-page .agro-toolbar .sg-btns {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px !important;
  font-size: 0.85rem;
  box-shadow: none !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.limited-water-page #limited-water-add-program-btn {
  color: #237a49 !important;
  background: #eaf7ef !important;
  border-color: #b8dfc7 !important;
}

.limited-water-page #limited-water-remove-program-btn {
  color: #b64343 !important;
  background: #fff0f0 !important;
  border-color: #efc4c4 !important;
}

.limited-water-page #limited-water-rename-program-btn {
  color: #566477 !important;
  background: #f1f4f7 !important;
  border-color: #d7dfe8 !important;
}

.limited-water-page #limited-water-save-program-btn {
  color: #237a49 !important;
  background: #e8f7ed !important;
  border-color: #add9be !important;
}

.limited-water-page .agro-toolbar .sg-btns:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.10) !important;
}

.limited-water-page .agro-toolbar .sg-btns:disabled {
  filter: grayscale(0.25);
  opacity: 0.45;
}

.limited-water-page #limited-water-plan-as-recommendation-checkbox {
  margin-right: 3px;
}

.limited-water-page #limited-water-plan-as-recommendation-checkbox + label,
.limited-water-page .form-check-label {
  color: #3f4e61;
  font-size: 0.79rem;
  font-weight: 600;
  white-space: nowrap;
}

.limited-water-page .lw-area-badge {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #cfe0d5;
  border-radius: 9px;
  background: #eef8f1;
  color: #2e7048;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Main content ---------- */
.limited-water-page .limited-water-body {
  padding: 10px 12px 14px !important;
  background: var(--lw-page);
  scrollbar-color: #b7c4d3 transparent;
  scrollbar-width: thin;
}

.limited-water-page .limited-water-body::-webkit-scrollbar {
  width: 8px;
}

.limited-water-page .limited-water-body::-webkit-scrollbar-thumb {
  background: #b7c4d3;
  border-radius: 10px;
}

.limited-water-page .limited-water-table-body {
  width: 100%;
  margin-bottom: 12px;
  background: var(--lw-surface);
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.045);
}

/* ---------- Allocation table ---------- */
.limited-water-page .limited-water-table {
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
  background: #ffffff !important;
  border-radius: 12px;
  overflow: visible;
  color: #27364a;
  font-family: Arial, sans-serif;
}

.limited-water-page .limited-water-table th,
.limited-water-page .limited-water-table td {
  border-color: #e0e7ef !important;
}

.limited-water-page .limited-water-table .header-cell {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 42px;
  padding: 7px 8px !important;
  background: #eaf0f6 !important;
  color: #304056 !important;
  border-color: #d5dee8 !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -1px 0 #ccd7e3;
}

.limited-water-page .limited-water-table .header-cell.past-day {
  color: #785319 !important;
  background: #fff0cc !important;
}

.limited-water-page .limited-water-table .header-cell:first-child {
  text-align: left;
}

.limited-water-page #limited-water-leader-only-checkbox + label,
.limited-water-page .limited-water-table .header-cell .form-check-label {
  color: #526174;
  font-size: 0.72rem;
  font-weight: 600;
}

.limited-water-page .limited-water-table td,
.limited-water-page .limited-water-table .row-label {
  padding: 5px 6px !important;
  font-size: 0.80rem !important;
}

.limited-water-page .limited-water-table .row-label {
  background: #f7f9fb !important;
  color: #334155 !important;
  font-weight: 650 !important;
  border-color: #dce4ed !important;
}

.limited-water-page .limited-water-table .row-label > span > img {
  height: 1.35rem !important;
}

.limited-water-page .limited-water-table .row-label > span > span:last-child {
  margin-left: 7px !important;
  color: #263548;
  font-size: 0.90rem !important;
  font-weight: 700 !important;
}

/* Give each plant unit a clear visual start without adding new UI. */
.limited-water-page .limited-water-table tbody.limited-water-leader-rows > tr:first-child > * {
  border-top: 2px solid #a8d4b6 !important;
}

.limited-water-page .limited-water-table tbody.limited-water-leader-rows > tr:first-child > th:first-child {
  border-left: 4px solid #55a874 !important;
}

.limited-water-page .limited-water-table tbody.limited-water-follower-rows > tr:first-child > * {
  border-top: 2px solid #ead1ad !important;
}

.limited-water-page .limited-water-table tbody.limited-water-follower-rows > tr:first-child > th:first-child {
  border-left: 4px solid #d99a49 !important;
}

.limited-water-page .limited-water-table .weather-widget-cell,
.limited-water-page .limited-water-table .weather-widget-cell > div,
.limited-water-page .limited-water-table .empty-cell {
  background: #f8fafc !important;
}

.limited-water-page .limited-water-table .weather-widget-cell > div {
  gap: 5px;
  padding: 4px 6px;
}

/* Recommended / Planned are differentiated by gentle, readable tints. */
.limited-water-page [id^="limited-water-recommended-plant-unit-"] {
  background: #eaf5fb !important;
  color: #2d6f98 !important;
}

.limited-water-page [id^="limited-water-planned-plant-unit-"] {
  background: #edf8f1 !important;
  color: #34744d !important;
}

.limited-water-page .form-control.readonly-input,
.limited-water-page .form-control.editable-input {
  width: 100% !important;
  height: 32px;
  padding: 4px 7px !important;
  border-radius: 6px !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  text-align: center;
  box-shadow: none !important;
}

.limited-water-page .form-control.readonly-input {
  background: var(--lw-blue-soft) !important;
  border-color: #c5deee !important;
  color: #2f6f98 !important;
}

.limited-water-page .form-control.editable-input {
  background: var(--lw-green-soft) !important;
  border-color: #c4e2ce !important;
  color: #326d49 !important;
}

.limited-water-page .form-control.editable-input:hover {
  border-color: #93c9a5 !important;
}

.limited-water-page .form-control.editable-input:focus {
  border-color: #60a879 !important;
  box-shadow: 0 0 0 2px rgba(59, 155, 100, 0.11) !important;
}

/* Dropdowns in the first editable line of each plant unit. */
.limited-water-page .limited-water-table .dropdown-cell .Select-control {
  min-height: 32px;
  height: 32px;
  border-color: #ccd7e2;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.limited-water-page .limited-water-table .dropdown-cell .Select-placeholder,
.limited-water-page .limited-water-table .dropdown-cell .Select-value,
.limited-water-page .limited-water-table .dropdown-cell .Select-input {
  height: 30px;
  line-height: 30px;
  font-size: 0.79rem;
}

.limited-water-page .limited-water-table .dropdown-cell .Select-control:hover {
  border-color: #9eb5ca;
}

.limited-water-page .limited-water-table .dropdown-cell .Select.is-disabled > .Select-control {
  background: #f2f4f7;
  color: #8b97a6;
}

/* Adjustment buttons are light-weight controls, not visual focal points. */
.limited-water-page .btn-plus,
.limited-water-page .btn-minus {
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: #ffffff;
  font-size: 1rem;
  line-height: 1;
  box-shadow: none;
  transition: background-color 0.12s ease, transform 0.12s ease;
}

.limited-water-page .btn-plus {
  color: #34865a !important;
  border-color: #a9d4b8 !important;
  background: #f1faf4 !important;
}

.limited-water-page .btn-minus {
  color: #bd5151 !important;
  border-color: #e5bcbc !important;
  background: #fff5f5 !important;
}

.limited-water-page .btn-plus:hover,
.limited-water-page .btn-minus:hover {
  transform: translateY(-1px);
}

/* ---------- Graphs ---------- */
.limited-water-page .limited-water-graphs-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 2px;
}

.limited-water-page .limited-water-gauge-graphs {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  margin: 0 !important;
}

.limited-water-page .limited-water-gauge-graphs > div,
.limited-water-page #limited-water-planned-vs-recommended-plant-units-graphs > div,
.limited-water-page #limited-water-planned-vs-recommended-days-graphs > div {
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--lw-border) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.045) !important;
  overflow: hidden;
}

.limited-water-page .limited-water-gauge-graphs > div {
  width: calc(50% - 5px) !important;
}

.limited-water-page #limited-water-planned-vs-recommended-plant-units-graphs,
.limited-water-page #limited-water-planned-vs-recommended-days-graphs {
  width: 100%;
}

.limited-water-page .js-plotly-plot .plotly .modebar {
  opacity: 1;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #dbe5df;
  border-radius: 6px;
}

.limited-water-page .js-plotly-plot:hover .plotly .modebar {
  opacity: 1;
}

/* ---------- Empty/error page messages ---------- */
.limited-water-page .sg-in-body-message {
  max-width: 720px;
  margin: 34px auto;
  padding: 18px 22px;
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  background: #ffffff;
  color: #526174;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

@media (max-width: 1450px) {
  .limited-water-page .agro-toolbar-divider {
    display: none;
  }

  .limited-water-page .agro-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .limited-water-page .limited-water-gauge-graphs {
    flex-direction: column;
  }

  .limited-water-page .limited-water-gauge-graphs > div {
    width: 100% !important;
  }

  .limited-water-page .agro-toolbar-section.ms-auto {
    margin-left: 0 !important;
  }
}

/* Readable toolbar and grouped planning rows; Limited Water only. */
.limited-water-page { font-family: "Segoe UI", Arial, "Noto Sans Hebrew", sans-serif; }
.limited-water-top-navbar { background: #f1f6f3 !important; border-bottom: 1px solid #d5e1d9; }
.limited-water-top-navbar .agro-toolbar { flex-wrap: wrap; gap: 10px 14px; padding: 6px 0; }
.limited-water-top-navbar .agro-toolbar-section { gap: 6px; min-width: 0; }
.limited-water-top-navbar .agro-toolbar-section-label { font-size: 12px !important; color: #405b4b;
 text-transform: none; letter-spacing: normal; font-weight: 600; }
.limited-water-top-navbar .agro-toolbar-pill { background: #fff; border: 1px solid #d7e1da;
 border-radius: 7px; padding: 6px 8px; gap: 6px; }
.limited-water-top-navbar :is(.form-control,.form-select,.input-group-text) { font-size: 13px !important; min-height: 32px; }
.limited-water-top-navbar .form-check-label { font-size: 13px !important; }
.limited-water-top-navbar .sg-btns { min-width: 32px; min-height: 32px; border-radius: 6px; }
.limited-water-top-navbar #limited-water-save-program-btn { width: auto !important; height: auto !important;
 display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px !important; white-space: nowrap; font-size: 13px; }
.limited-water-top-navbar .lw-area-badge { font-size: 13px; padding: 7px 10px; }
.limited-water-page .limited-water-table { font-size: 13px; color: #294735; }
.limited-water-page .limited-water-table .header-cell { font-size: 13px !important; line-height: 1.35;
 padding: 10px 8px !important; color: #365640; }
.limited-water-page .limited-water-table .lw-unit-heading-row > * { border-top: 3px solid #cbdcd0;
 padding-top: 8px !important; padding-bottom: 8px !important; }
.limited-water-page .lw-unit-heading-row .row-label > span { display: flex; align-items: flex-start; gap: 6px; }
.limited-water-page .lw-unit-identity { display: block; min-width: 0; }
.limited-water-page .lw-unit-name { display: block; font-size: 15px; font-weight: 700; line-height: 1.35;
 color: #203e2d; white-space: normal; overflow-wrap: anywhere; }
.limited-water-page .lw-unit-location { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4;
 color: #60766a; font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
.limited-water-page .limited-water-table :is(.lw-recommended-row,.lw-planned-row) > * {
 padding: 5px 7px !important; border-color: #e3eae6; }
.limited-water-page .limited-water-table .row-label { font-size: 12px !important; }
.limited-water-page .limited-water-table :is(input,select,.Select-control) { font-size: 13px !important; min-height: 32px; }
.limited-water-page .limited-water-table :is(.Select-value-label,.Select-placeholder) { font-size: 12px !important; }
.limited-water-page .limited-water-table .day-cell { border-inline-start-color: #cbd9d0; }
.limited-water-page .limited-water-table :is(.btn-plus,.btn-minus) { min-width: 28px; min-height: 28px; font-size: 15px; }
.limited-water-page :is(button,input,select):focus-visible { outline: 2px solid #287749; outline-offset: 2px; }
@media (max-width: 900px) {
 .limited-water-top-navbar .agro-toolbar-section { flex-wrap: wrap; }
 .limited-water-top-navbar .agro-toolbar-pill { flex-wrap: wrap; }
}


.lw-budget-summary { margin: 8px 0 12px; padding: 12px 14px; border: 1px solid #d5e2d9;
 border-radius: 9px; background: #fff; color: #294735; }
.lw-budget-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.lw-budget-label { display: block; font-size: 12px; color: #60766a; margin-bottom: 4px; }
.lw-budget-value { font-size: 18px; font-variant-numeric: tabular-nums; }
.lw-budget-track { margin-top: 10px; height: 7px; background: #eaf1ec; border-radius: 6px; overflow: hidden; }
.lw-budget-track > div { height: 100%; border-radius: inherit; transition: width .15s; }
.lw-budget-note { display: block; margin-top: 5px; font-size: 12px; color: #60766a; }
.lw-budget-exceeded { border-color: #dfa69d; }
.lw-budget-exceeded .lw-budget-note { color: #a83930; font-weight: 600; }
@media (max-width: 767px) { .lw-budget-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }


/* Compare displayed plan and recommendation without changing input values. */
.limited-water-page .limited-water-table .lw-plan-different {
 border: 2px solid #be8730 !important; box-shadow: inset 0 0 0 1px rgba(190,135,48,.08);
}
.limited-water-page .limited-water-table .lw-plan-invalid { border: 2px solid #bd5147 !important; }
.lw-comparison-key { color: #7d5b28; font-size: 12px; margin: 0 0 8px; padding-inline-start: 3px; }
.lw-comparison-key::before { content: ""; display: inline-block; width: 12px; height: 12px;
 border: 2px solid #be8730; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; }
.limited-water-page .limited-water-table .header-cell.current-day {
 background: #e4f2e8 !important; box-shadow: inset 0 3px 0 #3d8b5c; color: #205033 !important;
}


/* Daily totals cover the full program, including units hidden by Leader only. */
.limited-water-page #limited-water-daily-summary { border-top: 3px solid #93b69f; }
.limited-water-page #limited-water-daily-summary th,
.limited-water-page #limited-water-daily-summary td { background: #f0f6f2; padding: 8px !important;
 font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 600; }
.limited-water-page #limited-water-daily-summary td { text-align: center; }
.limited-water-page #limited-water-daily-summary th { color: #365640; }
.limited-water-page #limited-water-daily-summary .lw-daily-exceeded { color: #a83930; background: #fff0ed; }


/* Keep Leader only square: table input sizing must not stretch the checkbox. */
.limited-water-page .limited-water-table #limited-water-leader-only-checkbox {
 width: 15px !important; min-width: 15px !important; max-width: 15px !important;
 height: 15px !important; min-height: 15px !important; max-height: 15px !important;
 padding: 0 !important; margin: 0 !important; float: none !important;
 position: static !important; flex: 0 0 15px; border-radius: 3px !important;
 vertical-align: middle; cursor: pointer;
}
.limited-water-page .limited-water-table .form-check:has(#limited-water-leader-only-checkbox) {
 display: inline-flex; align-items: center; gap: 6px; padding: 0 !important;
 margin: 0 !important; min-height: 0 !important; white-space: nowrap;
}
.limited-water-page .limited-water-table label[for="limited-water-leader-only-checkbox"] {
 font-size: 12px; line-height: 1.3; font-weight: 500; margin: 0; cursor: pointer;
}

/* Match the clear graph controls used on the other improved pages. */
.limited-water-page .js-plotly-plot .plotly .modebar-group {
  background: transparent !important;
}
.limited-water-page .js-plotly-plot .plotly .modebar-btn path {
  fill: #52665b !important;
}
.limited-water-page .js-plotly-plot .plotly .modebar-btn:hover path,
.limited-water-page .js-plotly-plot .plotly .modebar-btn.active path {
  fill: #2d7a46 !important;
}
