﻿/* NOTE: shared grid styling (accent bar colour variables, grid header
   gradient, command button muting, capture grid rules) lives in
   iw-grids.css, which BOTH layouts load. Site.css is _Layout-only. */

body {
    padding: 0px;
    font-size: 14px;
}

html, body {
    height:100%;
}

.k-widget {
    font-size: 14px;
}

.k-button, .btn {
    font-size: 14px;
}

/* Set width on the form input elements since they're 100% wide by default */
input, select {
    max-width: 280px;
}

/* styles for validation helpers */
.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}

.fill{    
    height:100%;
}

#navcontainer{
    max-width: 1600px;
    padding: 0px 5px;
}

#irr-navbar {
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.farmitem.active {
    background-color: rgb(23, 138, 204);
} 

#wrap {
    min-height: calc(100% - 48px);
    margin-bottom: 0px;
}

#body {
    height: 100%;
    padding: 4px 0px 0px 0px;
    margin: 0 auto;    
    width: 100%;
    max-width: 1600px;
}

#irr-footer{
    background:#6cf;
    background-image: linear-gradient(#54b4eb,#2fa4e7 60%,#1d9ce5);
    background-image: -moz-linear-gradient(top,#54b4eb,#2fa4e7 60%,#1d9ce5);
    background-color: #2fa4e7;
    background-repeat: no-repeat;
    height: 48px;
}


#footercontainer {
    max-width: 1600px;
    padding-top: 11px;
}

.irr-sidebar {
    margin: 0px;
}

#collapse-sidebar {
    font-size: 14px;
}

#maincontainer {
    padding: 0px;    
}

#push{
    height:46px;
}

.navbar-fixed-bottom {
    height: 46px;
}

.irr-footer-text{
    color:white !important;
    padding-left:0px;
}

#irr-chart-grid{
    padding-right: 5px;
}


.chart_header_div{    
    background-color: #033C73;
    border: 1px solid black;
    padding-left: 15px;
    margin-bottom: 8px;
    color: white;
    height: 46px;
}

.chart_form_group{
    height:100%;    
    margin-left:0px;  
    margin-top:6px;
    margin-right:0px;
    margin-bottom:0px;
    width:100%;  
}

.chart_label {
    padding-top:3px !important;
    padding-right:5px;
    height:100%;
}

.height_hack{
    height:100%;    
    padding-left:5px;
}

#addRule-div .k-multiselect
{
    display: inline-block;
    vertical-align: top;
}

/* No horizontal scrollbars in popups, but allow vertical scrolling: Kendo 2026
   clamps window height to the viewport, so tall popup content (e.g. Paddock
   Details on a phone) must be scrollable or fields below the fold are
   unreachable. Kendo <=2025 let windows grow past the viewport instead. */
.k-window  div.k-window-content
{
    overflow-x: hidden;
    overflow-y: auto;
}

.wizard > .content {
    height: auto;
}

span.subitem a.list-group-item {
    padding-left: 45px;
}

.iw-placeholder{
    position: absolute;
}

.iw-placeholder:disabled{
    background-color: #EBEBE4;
}

.fontred{
    color: red;
}

.fontgreen{
    color: green;
}

h5 {
    font-size: 18px;
    margin-bottom: 0px;
}

#radarcontainer {
    position:absolute;
    padding: 0px;
    margin: 0 auto;
    margin-top: 10px;
    background-color: transparent !important;
    z-index: -6;
    display: block;
}

#radarwrapper {
    height: 575px;
}

.radardiv{
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color:transparent !important;
}

#legend {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: auto;
    background-color:transparent !important;
}

.nopadding {
    padding:0px !important;
}

.nopaddingright{
    padding-right:0px;
}

#lastdatatable{    
    margin-bottom:auto;    
}

#forecast-table {
    table-layout: fixed;    
    margin: 0 auto;    
}

#forecast-table td {
    padding: 4px;
    text-align: center;    
    color:   #606060;
    font-size: 12px;    
    width: 109px;
    border: 1px solid #cbd2d8;
    background-color: #E6F9FF;
    vertical-align: top;    
}

.widget-div{
    white-space: nowrap;
    overflow: hidden;
    border:solid 1px #C8C8C8;    
    text-align: center;    
    color: white;
    width: 48px;
    margin: 0 auto;
    background-color: #00cc00;
    border-radius: 4px;
}

.temp-widget-div {
    white-space: nowrap;
    overflow: hidden;
    border:solid 1px #C8C8C8;    
    text-align: center;
    width: 90px;
    margin: 0 auto;
    border-radius: 4px;
}

.mintemp{
    color: white;
    background-color: blue;
}

.maxtemp{
    color: white;
    background-color: red;
}

.rain-list{
    list-style-type:none;
    padding:0px;
    margin:0px;
}

.temp-list{
    list-style-type:none;
    padding:0px;
    margin:0px;
}

.rain-list-item{
    text-align: center;
    float: left;
    width: 47px;
}

.temp-list-item{
    text-align: center;
    float: left;
    width: 44px;
}

.probability{
    border-left: solid 1px #C8C8C8;
}

.weather-icon{
    display:block;
    width: 32px;
    height: 32px;
    margin-top: 0px;
    margin-bottom: 3px;
    margin-left: auto;
    margin-right: auto;  
}

.precis {
    width: 100px;
}

#forecast-div{    
    display: block;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;        
    z-index: 100;
    padding-left: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
}

.iw-card {
    margin:5px;
}

.iw-card .card-header {
    padding-top: 8px;
    padding-bottom: 2px;
}

.iw-card .card-body {
    padding: 5px;
}

.iw-card .table {
    line-height: 20px;
}

.iw-card .table th, .iw-card .table td {
    padding-top: 8px;
    padding-bottom: 8px;
}

.iw-card .table th {
    border-top: none;
}

.iw-div {
    padding-left: 0px;
    padding-right: 0px;
}

#maincontainer > .row{
    width: 98%;
    margin: 0 auto;    
}

#chartcontainer > .row{
    width: 98%;
    margin: 0 auto;    
}

#report-container{
    width: 98%;
    margin: 0 auto;
}

#sidebar-head {
    padding: 0px;
    height:44px;
    line-height: 44px;
    padding-left: 12px;
    background-image: linear-gradient(to bottom, var(--iw-bar-top) 0%, var(--iw-bar-bottom) 60%);
}

#sidebar .list-group {
    margin-bottom: 0px;
}

#sb-collapse-btn {
    display: none;
    margin-top: 3px;
    margin-right: 3px;
}

#sb-collapse-btn svg {
    font-size: 22px;
}

    @media (max-width: 991px) {
        #sb-collapse-btn {
        display: inline-block;        
    }

    #sidebar-head {
        padding-right: 12px;
    }

    #body {
        padding-top: 0px;
    }
    
   #body, #navcontainer {
        width: 100% !important;     
    }

   #maincontainer > .row{
        width: 99%;        
    }

    #chartcontainer > .row{
        width: 99%;        
    }

    #report-container{
        width: 99%;    
    }

    #weather-vars {
        display: none;
    }

}

.iw-header-row{
    background: none repeat scroll 0 0 #FFFFFF;
    border: 1px solid #E9E9E9;
    margin: 0px 0px 0px 0px;
    padding: 0;
    width: 100%;
    background-image: linear-gradient(to bottom, var(--iw-bar-top) 0%, var(--iw-bar-bottom) 60%);
    background-repeat: no-repeat;
    color: white !important;
    min-height: 50px;
    border-radius: 6px;
}

    .iw-header-row .k-combobox, .iw-header-row .k-dropdown, .iw-header-row .k-dropdownlist, .iw-header-row .btn, .iw-header-row .k-multiselect {
        width: 100% !important;
    }

    .iw-header-row .k-combobox, .iw-header-row .k-dropdown, .iw-header-row .k-dropdownlist, .iw-header-row .k-multiselect, .iw-header-row .btn, .iw-header-row .help-inline, .iw-header-row .k-widget {
        margin: 10px 0px;
    }

.iw-header-row .btn {
    min-width: 100px;
    text-align: left;
}

#iw-sidebar {
    margin-bottom: 4px;
}

#iw-sidebar .list-group-item {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 21px;
}

#userlogin {
    padding-left: 15px;
}

#mainrow{
    margin: 0px;
}

.k-tabstrip > .k-tabstrip-content{
    padding: 0px !important;
}

.iw-command {
    text-align: center;
    padding: 0px !important;
    margin: 0 auto !important;
}

.iw-command > .k-button {
    padding: 0px;
    margin: 0 auto !important;
    font-size: 1.2em;
}

 .k-customcopy {
    background-image: url(../images/copy.png);    
    background-position: 0 0;        
}

.k-window .k-edit-form-container {
    min-width: 320px;
    width: 100%;
}

.k-window > div.k-popup-edit-form {
    padding: 1em 0;
    box-sizing: border-box;
}

.k-edit-form-container .editor-label {
    box-sizing: content-box;
}

.k-edit-form-container .editor-label, .k-edit-label {
    float: left !important;
    clear: both !important;
    width: auto !important;
    padding: .65em 0 1em !important;
    margin-left: 2% !important;
    margin-right: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px!important;
    text-align: right !important;
}

.k-edit-form-container .k-edit-field {
    float: right !important;
    clear: right !important;
    width: 60% !important;
    margin-right: 2% !important;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-top : 0px;
    padding: 0 0 .6em !important;
    font-size: 14px !important;
}

.k-edit-form-container .k-input.k-textbox, .k-textarea, .k-textbox, .k-autocomplete, .k-combobox, .k-dateinput, .k-datepicker, .k-datetimepicker, .k-dropdown, .k-dropdowntree, .k-maskedtextbox, .k-multiselect, .k-numerictextbox, .k-timepicker, .k-dropdownlist {
    width: 13.5em;
    font-size: 14px;
}

.k-grid .k-textarea, .k-grid .k-textbox, .k-grid .k-autocomplete, .k-grid .k-combobox, .k-grid .k-dateinput, .k-grid .k-datepicker, .k-grid .k-datetimepicker, .k-grid .k-dropdown, .k-grid .k-dropdowntree, .k-grid .k-maskedtextbox, .k-grid .k-multiselect, .k-grid .k-numerictextbox, .k-grid .k-timepicker,
.k-grid .k-dropdownlist {
    width: inherit;
}

.k-edit-form-container .k-checkbox-label {
    font-size: 0px !important;
}

.k-edit-form-container .k-checkbox {
    margin-top: 0px !important;
}

.k-edit-form-container .k-edit-buttons {
    clear: both;
    text-align: right;
    border-width: 1px 0 0;
    border-style: solid;
    position: relative;
    bottom: -1em;
    padding: .6em;
    background: #f5f5f5;
    margin: 0;
}

#SCImgList img 
{
    cursor: pointer;
}

#helpjumbo {
    background: #358CCE;
    color: #FFF;
    border-radius: 0px;
    background-color: rgb(53, 140, 206) !important;
    margin-bottom: 24px;
    width: 100%;
    padding-top: 36px;
    padding-bottom: 36px;
}

.jumbotron-sm { 
    padding-top: 24px;
    padding-bottom: 24px; 
}

.jumbotron small {
    color: #FFF;
}

.h1 small {
    font-size: 24px;
}

#SQRContactInfo
{
    padding-right: 0px;
}

#iw-brand{
    margin-right: 5px;
}

#iw-brand > img{
    margin-top: 2px;
}

@media (max-width: 783px) {
    #iw-brand > img{
    margin-top: 5px;
}
}

.k-grid tbody td>.k-grid-CustomCopy {
    margin-left : 0.16em;
    margin-right: 0.16em;
    margin-top: -0.20em;
    margin-bottom: -0.20em;
}

#adminUsersGridSubContainer{
    width: 99%;
    margin: 0 auto;
}


.k-grid .k-table {
    font-size: small;
}

.k-tabstrip, .k-tabstrip-item {
    font-size: 14px !important;
}

.k-tabstrip-item  .k-link-text {
    font-size: 14px !important;
}

#irrSchedGridRow .k-grid .k-table {
    font-size: 100% !important;
}


#captureform0 {
    background-image: linear-gradient(to bottom, var(--iw-bar-top) 0%, var(--iw-bar-bottom) 60%);
    background-repeat: no-repeat;
    color: white;
    border-radius: 6px;
}

#captureform0 .input-group-text {
    background-image: linear-gradient(to bottom, var(--iw-bar-top) 0%, var(--iw-bar-bottom) 60%);
    background-repeat: no-repeat;
    color: white;
    border: none;
}

.input-group-text {
    font-size: 14px;
}

.form-control.k-widget {
    padding: 0;
    width: 100%;
    height: auto;
}

.form-control.k-widget:not(.k-autocomplete) {
    border-width: 0;
}

#captureform1 {
    border: 1px solid rgba(0, 0, 0, 0.175); /* card-style border, not harsh text-colour */
    border-radius: 6px;
    overflow: hidden; /* clips the inner grid's square corners to the radius */
    width: 98%;
    margin-top: 5px;
    margin-right: 4px;
    padding-top: 4px;
    padding-left: 2px;
    padding-right: 2px;
}

#captureform1 > .form-group {
    margin-bottom: 5px;
}

#captureform1 > .form-group .btn-primary {
    margin-top : 5px;
    width: 174px;
}

.left-text {
    text-align: left;
}

#captureStatus {
    color: red;
}

#captureform2 {
    width: 98%;
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto;
    margin-top: 5px;
    padding-top: 4px;
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 4px;
}

/* Read-only flag checkbox in detail popups (e.g. Auto-Irrigate on Paddock
   Details): disabled so it can't be toggled, but rendered at full contrast
   and slightly larger so the on/off state is obvious at a glance. */
.iw-flag-checkbox {
    width: 22px;
    height: 22px;
}

.iw-flag-checkbox:disabled {
    opacity: 1;
    filter: none;
}

.iw-flag-checkbox:checked,
.iw-flag-checkbox:disabled:checked {
    background-color: #2fa4e7;
    border-color: #2fa4e7;
}

/* Square icon buttons on the Charts header - fixed size with the
   FontAwesome icon flex-centered. The !important widths are needed to beat
   the .iw-header-row .btn { width:100% !important } rule. */
#excelBtn, #wbBtn {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#reportViewer1 {
    position: relative;
    width: 1300px;
    height: 900px;
    font-family: Verdana, Arial;
    padding-left: 10px;
}

#HomeImage{
    display:block;
    margin-left:auto;
    margin-right:auto;
}

#FldHeader .k-combobox, #FldHeader .k-dropdown, #FldHeader input.k-input {
    width: 160px !important;
}

#FldHeader2 .k-combobox, #FldHeader2 .k-dropdown, #FldHeader2 input.k-input {
    width: 168px !important;
}

#FldHeader3 .k-combobox, #FldHeader3 .k-dropdown, #FldHeader3 input.k-input {
    width: 168px !important;
}

#NewFldBtn {
    width: auto !important;
}

#irrigCapture, #rainCapture {
    padding: 15px;
    -webkit-box-shadow: 0px 1px 1px 1px rgba(0,0,0,0.15);
    -moz-box-shadow: 0px 1px 1px 1px rgba(0,0,0,0.15);
    box-shadow: 0px 1px 1px 1px rgba(0,0,0,0.15);
}

.k-window-titlebar {
    background-color: #2FA4E7 !important;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
    color: white;
}

.k-window-content {
    padding: 12px;
}

#IrrigWizardWindow {
    padding: 0;
}

.k-grid td {
    padding-top: 0.5em !important;
    padding-bottom: 0.5em !important;
    padding-left: 0.6em !important;
    padding-right: 0.6em !important;
}

.k-multiselect .k-button {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    font-size: 14px !important;
}

.k-multiselect {
    margin-bottom: 8px;
}

.k-dropdown-wrap {
    background-color: white !important;
}

#helpjumbo h1 {
    color:white;
    font-size: 63px;
}

#editor .container-fluid {
    padding: 0 12px 0 12px;
}

#editor .k-tabstrip-wrapper {
    margin: 0;
}

#editor .k-tabstrip .k-content {
    border-width: 0 1px 1px 1px;
    /* Bootstrap .row negative margins overhang the m-3 tab body by 12px per
       side (padding-only overhang, no content) - clip it rather than letting
       the tab content grow a horizontal scrollbar. */
    overflow-x: hidden;
}

#editor .k-checkbox-label {
    display: none;
}

#editor .row {
    font-size: 14px !important;
}

#irreditor .row {
    font-size: 14px !important;
}


.k-window .row {
    font-size: 14px;
}

.k-window-content label {
    font-size: 14px;
}

#editor label {
    margin-bottom: 4px;
}

.k-widget {
    font-size: 14px !important;
}

.k-reset {
    font-size: 14px !important;
}

.fieldwizcontrol {    
    width: 250px !important;    
    line-height: 21px;
    font-size: 14px;
}

.fieldwiztextbox {
    width: 246px; /*plus 2 pixel text border either side = 250px*/
}

.fieldwizcb {
    width: auto;
}

#AdminTabStrip .k-tabstrip-items {
    padding-top: 0px;
}

.k-window .fa-question-circle {
    color: #2FA4E7;
}

h4.markerMapSelectionLabel, h4.markerMapSelectionItem {
    font-size: 20px;
}

.slimPadding {
    padding-left: 5px;
    padding-right: 5px;
}

.k-window-titlebar, .k-window-title {
    font-size: 14px;
}

#editor .k-dropdownlist {
    font-size: 14px !important;
    /* Fluid within the form column - a fixed 250px overflowed the column at
       narrower popup widths, causing a horizontal scrollbar. Capped at the
       same 280px as the global input/select max-width so all controls in
       the form line up. */
    width: 100%;
    max-width: 280px;
}

#editor label {
    font-size: 14px;
}

#editor .k-tabstrip-items {
    font-size: 14px;
}

#adminUsersGridContainer {
    padding-left: 15px;
    padding-right: 15px;
}

.k-dropdownlist {
    background-color: white !important;
}

.k-popup li {
    font-size: 14px;
}

#window.k-window-content {
    padding: 8px;
}

#filtbtn {
    margin-left: 10px;
    padding-left: 2px;
    padding-right: 4px;
}

/* Prevent the flash of the raw key value (e.g. "3") in the Capture page
   pickers before Kendo initializes them: the MVC helper renders a plain
   input first; Kendo stamps data-role on it at init (and hides it inside
   the widget wrapper), so this only applies pre-init. visibility (not
   display) keeps the layout space so nothing jumps. */
input#farmscb:not([data-role]),
input#fieldscb:not([data-role]),
input#raingaugecb:not([data-role]) {
    visibility: hidden;
}

.no-data-text {
    font-size: 14px;
}

#navbarToggleBtn {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 18px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5); /* Subtle focus ring */
}

.input-group-text {
    border-bottom-left-radius: 6px !important;
    border-top-left-radius: 6px !important;
    display: inline-block;
    height: calc(2.25rem - 2px); /* Match input height */
}

/* Kendo pickers inside Bootstrap input-groups: Bootstrap flattens child
   corners; keep the outer-right corners rounded so the label+combo pair
   reads as one rounded control. */
.input-group > .k-dropdownlist,
.input-group > .k-combobox,
.input-group > .k-picker {
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* In the gradient farm bar the label is gradient-on-gradient (invisible),
   so the picker reads as a standalone control - round all its corners. */
#captureform0 .input-group > .k-dropdownlist {
    border-radius: 6px !important;
}

form .k-dropdownlist {
    height: calc(2.25rem - 2px); /* Match input height */
}

.k-grid-toolbar {
    padding: 6px;
    line-height: 19.5px;
    min-height: 33px;
    max-height: 45.9px;
}

.navbar-nav .k-dropdownlist {
    color: black;
}

.navbar-nav .k-dropdownlist {
    padding: 2px;
}

