﻿/****  @ FNizam.com Framework @2008 *****/
body {
    margin: 0;
}

img {
    border: none;
}

fieldset {
    margin: 0.5em;
}

table.fwPanel {
    border-collapse: collapse;
    /*border: 0;*/
    /*padding: 0;*/
    /*border-spacing: 0;*/
}

.fwPanel .fld select {
    width: 12.5em;
}

.fwPanel .textbox, .fwPanel input, .fwPanel select, .fwPanel textarea {
    border: 1px solid #c3c3c3;
    /*border-collapse: collapse;*/
    line-height: normal; /*sovle issue in some cases of input variant height*/
}

input[type='button'], input[type='submit'], a.btn {
    min-height: 2em;
    border: 1px solid #c3c3c3;
    cursor: pointer;
    font-weight: bold;
}

.fwPanel input[readonly], .fwPanel input[disabled], .fwPanel .gray {
    background-color: #D0D0D0; /*!important*/
}

.fwPanel .fld .input:focus {
    border: 1px solid black !important;
    background-color: lightcyan;
}

.fwPanel {
    width: 100%;
}

    .fwPanel .fld, .fwPanel .caption {
        padding: 2px;
        /*vertical-align: baseline;*/
    }

    .fwPanel .textbox, .fwPanel input, .fwPanel textarea, .fwPanel select {
        /*font-weight: normal;*/
        /*min-width: 20em;*/
        margin: 0px;
        display: inline-block;
        padding: 0.2em;
    }

    .fwPanel .input.code {
        width: 4em;
        /*min-width: auto;*/
    }

    .fwPanel .ac_input {
        /*width: 252px;*/
    }

        .fwPanel .ac_input.gray {
            background-image: none;
        }

    .fwPanel input.ac_input.textbox {
        /*width: 300px;*/
    }

    .fwPanel .fld textarea {
        /*width: 100%;*/
    }

    .fwPanel .fld input.date {
        /*width: 284px;*/
    }

    .fwPanel .Combo, .fwPanel select {
        /*width: 300px;*/
    }

    .fwPanel input[type="button"], .fwPanel input[type="submit"], a.btn {
        /*width: auto;*/
    }

    .fwPanel .fld .input::placeholder {
        /*opacity: 0.4;*/
        color: #BBB;
    }

.ac_input, .ac_loading {
    background-position: right;
}
/*****************Grid **************/
table.Grid td, table.Grid th /*, table.Grid tr*/ {
    border: solid 1px black;
    padding: .2em;
}

table.Grid table td, table.Grid table th, table.Grid table tr {
    /* pager part in grid */
    border: 0;
    padding: 0.2em;
}

table.Grid th {
    text-align: center;
}

table.Grid tr:hover td {
    background-color: #0002;
}

table.Grid > tbody > tr:nth-child(odd) {
    background-color: #0002;
}

table.Grid {
    border: thin 1px solid #9aeeb2;
    width: 100%;
    max-width: 100vw;
}

    table.Grid tr.head {
        /*text-indent: 3px; */ /*padding-left was not working, therefore text-indent has been used 						  just to sync the heading text of both type of grids (asp:gridview and componentart:grid)*/
        font-weight: bold; /*background: #E0DFE3 url(../../static/img/header_rowBg.gif) repeat-x bottom;*/
        /*height: 24px; */ /*border-color: #9eaab2;*/
        /*background-color: khaki;*/
    }

    table.Grid tr {
        /*text-decoration: none;*/
    }

        table.Grid tr.foot {
        }
/* end grid */
.fwPanel .MandatoryAsterisk {
    color: Red;
}

.modalBackground {
    background-color: Gray; /*filter: alpha(opacity=70); 	opacity: 0.7;*/
    z-index: 10000 !important;
}

.modalPopup {
    background-color: White;
    border: Solid 3px #AACCFF;
    padding: 0px;
    width: 100%;
    z-index: 11000 !important;
}

.right {
    text-align: right;
}

.float {
    float: left;
}

.floatOpp {
    float: right;
}

.tab {
}

.mandatory {
    color: Red;
}

.english {
    direction: ltr;
}

.rtl {
    direction: rtl;
}

.ltr {
    direction: ltr;
}

.wrnMsg {
    padding: 0 10px;
    color: Red;
}

.btnCancel {
    background: url("../../static/img/btn/btnCancel.gif") no-repeat scroll 4px 4px transparent;
    padding: 0 8px 0 30px !important;
    text-align: right;
}

.btnAdd {
    background: url("../../static/img/btn/btnAdd.gif") no-repeat scroll 4px 4px transparent;
    padding: 0 8px 0 30px !important;
    text-align: right;
}

.btnPrint {
    background: url("../../static/img/btn/btnPrint.gif") no-repeat scroll 4px 4px transparent;
    padding: 0 8px 0 30px !important;
    text-align: right;
}

.btnSave {
    background: url("../../static/img/btn/btnSave.gif") no-repeat scroll 4px 4px transparent;
    padding: 0 8px 0 30px !important;
    text-align: right;
}

.btnSearch {
    background: url("../../static/img/btn/btnSearch.gif") no-repeat scroll 4px 4px transparent;
    padding: 0 8px 0 30px !important;
    text-align: right;
}

.btnAccept {
    background: url("../../static/img/btn/btnAccept.gif") no-repeat scroll 4px 4px transparent;
    padding: 0 8px 0 30px !important;
    text-align: right;
}

.btnReject {
    background: url("../../static/img/btn/btnReject.gif") no-repeat scroll 4px 4px transparent;
    padding: 0 8px 0 30px !important;
    text-align: right;
}

.btnSubmit {
    background: url("../../static/img/btn/btnSubmit.gif") no-repeat scroll 4px 4px transparent;
    padding: 0 8px 0 30px !important;
    text-align: right;
}

.btnUpload {
    background: url("../../static/img/btn/btnUpload.gif") no-repeat scroll 4px 4px transparent;
    padding: 0 8px 0 30px !important;
    text-align: right;
}

.btnDelete {
    background: url("../../static/img/btn/btnReject.gif") no-repeat scroll 4px 4px transparent;
    padding: 0 8px 0 30px !important;
    text-align: right;
}
/******************************* popup *******************************/
.grayPanel {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(../../static/img/trans.gif);
}

div.grayPanel div {
    position: absolute;
    width: 27px;
    height: 38px;
    background-image: url(../../static/img/hour-glass-s.png);
}

.popupBG {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-image: url(../../static/img/trans.gif);
}

.popup {
    /*position: relative;*/
}

    .popup .panel {
        padding: 10px;
        background-color: #ffffff;
        width: 100%;
    }

    .popup .dragme {
        cursor: move;
        background-color: cornflowerblue;
        color: white;
        font-weight: bold;
        height: 20px;
        padding: 1px 5px;
    }

    .popup .window {
        position: absolute;
        border-style: solid;
        border-color: black;
        border-width: 1px 2px 2px 1px;
        visibility: hidden;
        width: auto;
        /*z-index:1;*/
    }

    .popup #scroll {
        /*overflow: auto;*/
    }
/******************************* end popup *******************************/
.tab_button {
    background-color: #dddddd;
    border: 1px solid #888888;
    border-bottom: 1px solid #000000;
    cursor: pointer;
    padding: 5px;
}

    .tab_button:hover {
        background-color: #eeeeee;
    }

.tab_pressed {
    background-color: white;
    border: 1px solid black;
    border-bottom: 1px solid white;
    font-weight: bold;
    padding: 5px;
}

div[id$="tabButtons"] table td {
    display: inline-block;
    padding: 0;
    padding-top: 4px;
}

    div [id$="tabButtons"] table td label {
        height: 100%;
        display: inline-block;
        /*width: 100%;*/
        margin-bottom: 0;
    }

    div [id$="tabButtons"] table td:nth-child(even) label {
        border-top: 1px solid transparent;
    }

.smry {
    color: Red;
    background-color: #ffffaa;
    border: 1px solid #ff11ff;
    padding: 4px;
}

    .smry ul {
        margin: 3px;
    }

/************************** mobile responsive **************************/
.fwPanel .fld .grp {
    /*white-space: nowrap;*/
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    min-width: 20em;
}

.fwPanel .fld.wide[colspan='3'] {
    display: table-cell;
}

.fwPanel .fld.wide textarea {
    width: 100%;
}

.fwPanel .fld {
    max-width: 100%;
    min-width: min(100%,20em);
}

    .fwPanel .fld > label {
        display: none;
    }

    .fwPanel .fld .input, .fwPanel .fld .textbox {
        flex-grow: 1;
    }

        .fwPanel .fld .input.code {
            flex-grow: 0;
            margin-inline-end: 3px;
        }

    .fwPanel .fld .ac_input {
        flex: auto;
    }

    .fwPanel .fld span.input {
        /*display: none;*/
    }

    .fwPanel .fld img.tcalIcon {
        margin-inline-start: 2px;
    }

    .fwPanel .fld:nth-child(4n+2) {
        /*margin-inline-end: 2em;*/
    }

.fwPanel .caption:nth-child(4n+3) {
    padding-inline-start: 2rem;
}

@media (max-width: 900px) {
    .fwPanel > * > tr {
        display: flex;
    }

    .fwPanel .fld {
        flex-basis: 50%;
    }

    .fwPanel .caption {
        /*display: none;*/
        font-size: 0; /*hide only text and keep padding*/
        /*flex-basis: 10%;*/
    }
}

@media (max-width: 620px) {
    :root {
        --input-padding-y: 0.75rem;
    }

    .fwPanel .caption {
        display: none;
    }

    .fwPanel .fld {
        /*position: relative;*/
        margin-bottom: 1rem;
    }

        .fwPanel .fld > label {
            display: block;
        }

        .fwPanel .fld > input,
        .fwPanel .fld > label {
            /*padding: var(--input-padding-y) 0.75rem;*/
        }

        .fwPanel .fld > label {
            /*position: absolute;*/
            /*top: 0;*/
            /*display: block;*/
            /*width: fit-content;*/
            width: 100%;
            margin-bottom: 0; /* Override default `<label>` margin */
            line-height: 1.5;
            color: #495057;
            border: 1px solid transparent;
            border-radius: .25rem;
            transition: all .1s ease-in-out;
            order: -1;
        }

        .fwPanel .fld .input::placeholder {
            color: transparent;
        }

        .fwPanel .fld :not(select).input:not(:placeholder-shown), .fwPanel .fld select:not(.empty), .fwPanel .fld .input:focus, .fwPanel .fld .input:not(:placeholder-shown) ~ img.tcalIcon, .fwPanel .fld .input:focus ~ img.tcalIcon, .fwPanel .fld span.textbox {
            /*padding-top: calc(var(--input-padding-y) * 4 / 3);*/
            margin-top: 0 !important; /* for drop down and entered data to expand input height */
            padding-bottom: calc(var(--input-padding-y) / 3);
        }

            .fwPanel .fld :not(select).input:not(:placeholder-shown) ~ label, .fwPanel .fld select:not(.empty) ~ label {
                padding-top: calc(var(--input-padding-y) / 3);
                padding-bottom: calc(var(--input-padding-y) / 3);
                font-size: 12px;
                color: #777;
            }

        .fwPanel .fld .input, .fwPanel .fld span.textbox, .fwPanel .fld .ac_input {
            border: none !important;
            outline: none;
            background-color: transparent;
        }

    .fwPanel .fld {
        border: 1px solid;
        border-radius: 4px;
        margin: 4px;
        /*display: inline-block;*/
        display: flex !important;
        flex-flow: row wrap;
        flex-grow: 1;
    }

        .fwPanel .fld:nth-child(4n+2) {
            margin-inline-end: auto;
        }

    .fwPanel > * > tr {
        /*display: flex;*/
        align-items: stretch;
        display: block;
    }

    .fwPanel .fld .input, .fwPanel .fld span.textbox, .fwPanel .fld img.tcalIcon {
        margin-top: -1.7em;
        transition: margin .5s;
    }

    .fwPanel span.wrnMsg {
        /*float: right;*/
        width: 100%;
    }

    .fwPanel input[type="text"], .fwPanel input[type="password"], .fwPanel select, .fwPanel textarea, .fwPanel span.textbox {
        /*width: 98%;*/
        width: auto;
        flex-grow: 1;
        padding: 2px 4px;
        border-radius: 5px;
        border: 1px solid black;
    }

    .fwPanel .fld,
    .fwPanel .caption {
        display: block;
    }

    .fwPanel .fld {
        width: 100%;
        min-width: none;
    }

    .fwPanel .radio td {
        padding: 0;
    }
}

.Grid_container {
    width: 100%;
    overflow-x: auto;
}
/************************** end mobile responsive **************************/

/*** start theme, this should be overrider on peroject level and must be in same order ***/
/*
input[type='button'], input[type='submit'], a.btn {
    background-color: #E5F5C4;
}

.popup .dragme {
    background-color: #A17205;
}

table.Grid > tbody > tr:nth-child(odd) {
    background-color: #eaeaea;
}

table.Grid > tbody > tr.head {
    background-color: khaki;
}

table.Grid tr.head a {
    color: saddlebrown;
}

table.Grid > tbody > tr.selected {
    background-color: #eeffee;
}

table.Grid > tbody > tr:hover td {
    background-color: #BFFF8C;
}
*/
/*** end theme ***/
table.Grid .dtl {
    background-image: url("../../Framework/static/details.svg");
    min-width: 2em;
}
