html,
body {
    height: 100%;
    font-size: 12px;
}

/* turn off numeric spinner */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.money-input {
    width: 110px !important;
    float: left;
}

.money-input-right {
    width: 110px !important;
    float: right;
}

.date-input {
    width: 130px !important;
}

.input-2-char {
    width: 50px !important;
}

.input-3-char {
    width: 60px;
}

.input-5-char {
    width: 80px;
}

.input-crop {
    width: 70px;
}

.full-width {
    width: 100% !important;
}

.edit-dropdown {
    padding: 2px;
    border-radius: 2px;
}

.edit-input {
    padding: 7px;
    border-radius: 5px;
    border: 1px solid #bbb;
}

/**
Progress bar on Policy Create
 */


.progress-container {
    margin: 0px auto;
    height: 95px;
}

.progressbar-4step {
    width: 25%;
}

.progressbar-3step {
    width: 33.33%;
}

.progressbar-5step {
    width: 160px;
}

.progressbar-6step {
    width: 133px;
}

.progressbar {
    counter-reset: step;
}

.progressbar li {
    list-style-type: none;
    float: left;
    font-size: 12px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    color: #7d7d7d;
    height: 50px;
    padding-top: 40px;
    margin-left: 0px;
    cursor: pointer;
}

.progressbar li:before {
    width: 30px;
    height: 30px;
    content: counter(step);
    counter-increment: step;
    line-height: 30px;
    border: 2px solid #7d7d7d;
    display: block;
    text-align: center;
    border-radius: 50%;
    background-color: white;
    z-index: 100;
    position: absolute;
    top: 0px;
    left: 65px;
}

.progressbar li:after {
    width: 100%;
    height: 2px;
    content: '';
    position: absolute;
    background-color: #7d7d7d;
    top: 15px;
    left: -50%;
    z-index: 5;
}

.progressbar li:first-child:after {
    content: none;
}

.progressbar li.active {
    color: green;
}

.progressbar li.active:before {
    border-color: #55b776;
    background-color: #55b776;
    color: white;
}

.progressbar li.active + li:after {
    background-color: #55b776;
}

/**
sitewide inputs
 */
input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
}

select {
    appearance: none;
    -webkit-appearance: none;
    moz-appearance: none;
}

/**
Policy Crop Rows Grid
 */
#policy-crop-rows .data-row-group div {
    padding: 2px;
}

#policy-crop-rows .data-row input {
    padding: 2px;
}

#policy-crop-rows div.row.data-row div.col-lg-3 div.row div.col-lg-2
#policy-crop-rows .pcrop-line-message {
    color: #960000;
    font-size: 20px;
}

#policy-crop-rows .pcrop-line-error {
    background: #f1dcdc;
}

.highlight {
    background-color: yellow !important;
}


.dialog-ajax-wait {
    width: 100%;
    height: 5000px;
    display: none;
    background: rgba(240, 240, 240, 0.8);
    position: absolute;
    top: 0;
    left: 0;
}


.div-ajax-wait {
    width: 200px;
    height: 100px;
    position: relative;
    top: 50%;
    left: 50%;
}

img.ajax-loader {
    display: block;
    margin: 12px auto 3px auto;
}

.has-error {
    border: #a94442 1px solid !important;
    padding: 5px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

/**/
.form-control-label {
    padding-top: 7px;
    display: inline-block;
}

.form-control {
    padding: 6px;
}

.calendar-text {
    width: 130px;
    margin-right: 5px;
    display: inline-block;
}

.div-section {
    display: inline-block;
}

.table-button {
    padding-top: 20px;
}

.form-row {
    padding-top: 10px;
}

tr.spaceUnder > td {
    padding-bottom: 1em;
}

.div-row-label {
    padding-right: 10px;
}

.address-box {
    height: 100px !important;
}

.accounting-param {
    margin-top: 0 !important;
    margin-right: 10px;
}

.save-icon {
    float: left;
    padding: 5px;
    cursor: pointer;
}

.link-icon {
    cursor: pointer;
}

.div-status {
    padding: 5px;
    margin: 10px;
}

.tab-content {
    padding: 20px;
}

.scroll-dialog-div {
    height: 600px;
    overflow-y: scroll;
}

.div-ye-entries {
    margin: 20px;
    padding: 20px;
    border: 1px solid blue;
}

.div-link {
    cursor: pointer;
    color: #4E8946 !important;
    display: inline-block;
    text-decoration: underline;
}

.policy-num-lookup {
    width: 125px;
    display: inline;
    margin-right: 5px;
}

/**
Policy step 6
 */
.text-bold-underline-red {
    color: #cc5555;
    font-weight: bolder;
    text-decoration: underline;
}

.pnl-payment-type dt {
    float: left;
    width: 25%;
}

.pnl-payment-type dd {
    float: left;
    width: 75%;
}


/** text/font utilities */
.text-strikethrough {
    text-decoration: line-through
}

/** Policy Status Colours */
.status-in-progress {
    background-color: #e9f6ff
}

.status-submitted {
    background-color: #fee6b6
}

.status-paid {
    background-color: #f0fea6
}

.status-cancelled {
    background-color: #e2e2e2
}

.status-quote {
    background-color: #fdfeb2
}

/** Claim Statuses */
.status-pending-payment {
    background-color: #e2e2e2
}

.claim-status-pending {
    background-color: #e2e2e2;
    padding: 5px 10px !important;
}

.claim-status-open {
    background-color: #ffffe2;
    padding: 5px 10px !important;
}

.claim-status-withdrawn {
    background-color: #ffe2e2;
    padding: 5px 10px !important;
}

.claim-status-closed {
    background-color: #e2ffe2;
    padding: 5px 10px !important;
}

.claim-status-pending-payment {
    background-color: #e2ffe2;
    padding: 5px 10px !important;
}

.claim-status-deleted {
    background-color: #ffe2e2;
    padding: 5px 10px !important;
}

.claim-status-deferred {
    background-color: #ffffe2;
    padding: 5px 10px !important;
}

.claim-status-duplicate {
    background-color: #ffe2e2;
    padding: 5px 10px !important;
}

.pmt-type-label {
    display: inline;
    margin-right: 15px;
    margin-left: 5px;
}


/** Claim Crops/Policy Crops header rotation */
th.rotate {
    /* Something you can count on */
    height: 100px;
    white-space: nowrap;
}

/* 45 is really 360 - 45 */
th.rotate > div {
    transform: translate(0px, -10px) rotate(315deg);
    width: 30px;
}

th.rotate > div > span {
    border-bottom: 1px solid #ccc;
    padding: 5px 10px;
}

.table-bordered > thead > tr > th.rotate,
.table-bordered > tbody > tr > th.rotate,
.table-bordered > tfoot > tr > th.rotate /*,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td */
{
    border: 0px;
}

.capitalize {
    text-transform: capitalize;
}

/**
File Claim Form indentation on Claimants
 */
.claim-payment-claimant {
    padding-left: 5%;
}

/*.claim-payment-claimant-1{padding-left: 5%;}*/
/*.claim-payment-claimant-2{padding-left: 5%;}*/
/*.claim-payment-claimant-3{padding-left: 5%;}*/

/* reports */
.filter {
    margin: 20px 0;
}

/**
Dummy - hidden default action button - hidden
 */
.default-submit-button {
    overflow: visible !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/**
Policies Grid - nested crops with smaller font
 */
#grid-policies-list .table-policy-form-fields-ro thead,
#grid-policies-list .table-policy-form-fields-ro tbody {
    /*font-family:"Courier New", Courier, monospace; */
    font-size: 80%;
}

/**
Highlight Crop Rows that have been claimed
 */
.is-claim-crop {
    background-color: #FFFF00 !important;
}

/**
Highlight Crop Rows that have been cancelled
 */
.is-cancelled-crop {
    background-color: #FFCCCC !important;
}


/**
Policies Grid - Radio Buttone for Acceptance
 */

/*input[type="radio"]:checked+label { font-weight: bold; }*/
/*input.radio-acceptance-status:checked+label { font-weight: bold; }*/
input.radio-acceptance-status + label {
    opacity: 25%;
}

input.radio-acceptance-status:checked + label {
    opacity: 100%;
}

/**
Select option disabled
 */
option.disabled {
    color: dimgrey;
    background-color: lightgrey;
}

.nav-tabs > li > a.active {
    border: 1px solid #ddd;
    border-bottom: transparent;
    background-color: #fff;
}

.page-content {
    background-color: #fff;
}

/* policy refunds */
.refund-total-row {
    border-bottom: solid 1px black;
}

.refund-amount {
    font-weight: bold;
    text-align: right;
    width: 80px;
}

.payment-type {
    -webkit-appearance: listbox;
    padding: 5px;
    width: 120px;
}

.div-left {
    float: left;
    display: inline-block;
}

.div-right {
    float: right;
    display: inline-block;
}

.space-left {
    margin-left: 10px !important;
}

.space-right {
    margin-right: 10px;
}

.butn-space-right {
    margin-right: 20px;
}

.text-red {
    color: red;
}

.text-policy-note {
    width: 100%;
    padding: 5px;
}

.ui-dialog {
    z-index: 2000;
}

.claim-notes {
    width: 100%;
    padding: 5px;
}

.claim-loss-set {
    background-color: #88ff88; 
}

.tab-selected {
    background-color: #efefef !important;
}

/**
Allow headers to wrap on some really wide grids
 */
#table-user-reserved-liability th {
    white-space: normal;
}

.table-township-grid {
    width: 100%;
}

.cell-township-grid {
    padding: 15px;
    border: solid 1px black;
}

.butn-twp-grid-navigate {
    margin: 10px;
    background-color: green;
    color: white;
    border-radius: 5px;
    border: solid 1px grey;
    padding: 5px 10px;
}

.btn-small {
    padding: 3px 5px 0 5px;
}

.div-table-row {
    margin: 0 2px;
}

.div-table-last-row {
    border-bottom: solid 1px #dddddd;
}

.div-table-col {
    border-top: solid 1px #dddddd;
    border-left: solid 1px #dddddd;
    padding: 6px;
}

.div-table-last-col {
    border-right: solid 1px #dddddd;
}

.col-link {
    margin: 0 5px;
}
/** Negative numbers red and in braces */
.number-negative {
    color: red;
    display: flex;
}
.number-negative::before{content: "(";}
.number-negative::after{content: ")";}

/* when Kartik gridview has FloatHeader and FloatOverflowContainer both set the height of the grid is only 300px */
.kv-grid-wrapper {
    height: 650px !important;
}

.kv-thead-float {
    z-index: 100;
}

.dropdown-menu {
    z-index: 2000 !important;
}

.cheque-amount {
    width: 120px;
    font-weight: bold;
    border: none;
    font-size: 14px;
}

.cheque-amount:focus {
    outline: none;
}

.radio-button-label {
    margin-left: 5px;
    margin-right: 10px;
}

.no-border {
    border: none;
}
.col-no-show {
    width: 0px;
}

.inactive {
    background-color: #eee;
}

.legend-div {
    float: right;
    margin-top: -45px;
}

.report-header {
    background-color: #eee;
}
 .report-header th {
     padding: 5px;
 }

 .report-row {
     border-bottom: 1px solid #ccc;
 }

 .status-col {
     width: 90px;
 }

.td-history {
    padding: 5px;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }