﻿/****  @ 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 .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'], .buttons a.btn {
    min-height: 2em;
    border: 1px solid #c3c3c3;
    cursor: pointer;
    background-color: #E5F5C4;
    font-weight: bold;
}

.buttons a.btn {
    margin-inline-start: 0.3em;
}

.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 > * > td {
        padding: .25em;
        /*vertical-align: baseline;*/
    }

    .fwPanel .textbox, .fwPanel input, .fwPanel textarea, .fwPanel select {
        /*font-weight: normal;*/
        /*width: 300px;*/
        margin: 0px;
        display: inline-block;
        padding: 0.2em;
    }

    .fwPanel .input.code {
        width: 4em;
    }

    .fwPanel .ac_input {
        /*width: 252px;*/
    }

        .fwPanel .ac_input.gray {
            background-image: none;
        }

    .fwPanel input.ac_input.textbox {
        /*width: 300px;*/
    }

    .fwPanel textarea {
        /*width: 100%;*/
    }

    .fwPanel .fld input.date {
        /*width: 284px;*/
    }

    .fwPanel .Combo, .fwPanel select {
        /*width: 300px;*/
    }


    .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 th a {
        color: inherit;
    }

table.Grid td {
    /*color: #000000; 	background-color: #ffffff;*/
}

table.Grid tr:hover td {
    /*background-color: #BFFF8C;*/
    /*cursor: pointer;*/
}

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-image: url("../../static/img/btn/btnCancel.gif");
}

.btnAdd {
    background-image: url("../../static/img/btn/btnAdd.gif");
}

.btnPrint {
    background-image: url("../../static/img/btn/btnPrint.gif");
}

.btnSave {
    background-image: url("../../static/img/btn/btnSave.gif");
}

.btnSearch {
    background-image: url("../../static/img/btn/btnSearch.gif");
}

.btnAccept {
    background-image: url("../../static/img/btn/btnAccept.gif");
}

.btnReject {
    background-image: url("../../static/img/btn/btnReject.gif");
}

.btnSubmit {
    background-image: url("../../static/img/btn/btnSubmit.gif");
}

.btnUpload {
    background-image: url("../../static/img/btn/btnUpload.gif");
}

.btnDelete {
    background-image: url("../../static/img/btn/btnReject.gif");
}

.btnCancel,
.btnAdd,
.btnPrint,
.btnSave,
.btnSearch,
.btnAccept,
.btnReject,
.btnSubmit,
.btnUpload,
.btnDelete {
    padding-right: 8px;
    padding-left: 30px;
    text-align: right;
    background-position: 4px center;
    background-repeat: no-repeat;
}

a.btn {
    display: inline-flex;
    justify-content: space-around;
    align-items: center;
}

    a.btn i {
        padding-inline-end: .5em;
        font-size: 1.5em;
    }

/******************************* 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: 2em;
        padding: .5em;
    }

    .popup .window {
        position: absolute;
        border-style: solid;
        border-color: black;
        border-width: 1px 2px 2px 1px;
        visibility: hidden;
        width: auto;
    }

    .popup #scroll {
        /*overflow: auto;*/
    }

    .popup .window, .popupBG {
        z-index: 1;
    }
/******************************* 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;
    }

.RedBackGround {
    background: #ff9999;
}

.smry {
    color: Red;
    background-color: #ffffaa;
    border: 1px solid #ff11ff;
    padding: 4px;
}

    .smry ul {
        margin: 3px;
    }

/************************** mobile responsive **************************/
/*
@media (min-width: 620px) {
    .fwPanel .fld.wide[colspan='3'] {
        display: revert;
        flex-grow: 1;
    }    
}*/

.fwPanel .fld {
    /*white-space: nowrap;*/
    /*display: flex;*/
    /*flex-wrap: nowrap;*/
    /*justify-content: space-between;*/
    /*align-items: center;*/
    max-width: 100%;
    min-width: 20em;
}

    .fwPanel .fld .grp {
        display: flex;
        align-items: center;
        flex-grow: 1;
    }

    /*.fwPanel .fld.wide textarea {
        width: 100%;
    }*/

    .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:not(.wide):nth-child(4n+2) {
        margin-inline-end: 2em;
    }*/

.fwPanel .caption:nth-child(2n+3) {
    padding-inline-start: 2em;
}

@media (max-width: 900px) {
    .fwPanel .caption {
        display: none;
    }
}

@media (max-width: 900px) and (min-width: 621px) {
    .fwPanel .fld:nth-child(2n+4) {
        padding-inline-start: 2em;
    }
}

@media (max-width: 620px) {
    :root {
        --input-padding-y: 0.75rem;
    }

    .fwPanel .fld {
        /*position: relative;*/
        margin-bottom: 1rem;
    }

        .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;
            display: block;
            padding-inline-start: .5em;
        }

        .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;
        flex-flow: row wrap;
        flex-grow: 1;
    }

    .fwPanel > * > tr {
        display: flex;
        align-items: stretch;
    }

    /*.fwPanel .fld:nth-child(4n+2) {
        margin-inline-end: auto;
    }*/

    .fwPanel > * > tr {
        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 .fld {
        /*margin: 0 !important;*/
    }

    .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 > * > td {
        display: block;
    }

    .fwPanel .fld {
        width: 100%;
        min-width: none;
    }

        .fwPanel .fld > label {
            /*z-index: -1;*/
        }

    .fwPanel .radio td {
        padding: 0;
    }
}
/************************** end mobile responsive **************************/
.fwPanel tr.sep td {
    padding: 1em 0 0 0;
}

    .fwPanel tr.sep td div {
        font-weight: bold;
        background: white;
        display: inline-block;
        padding: .3em .6em;
        position: absolute;
        /*margin: 0em 1em;*/
        margin-inline-end: 1em;
    }

.Grid_container {
    overflow-x: auto;
    width: 100%;
}

.fwFrame {
    display: inline-block;
    width: 100%;
}
/*** start theme, this should be overrider on peroject level and must be in same order ***/
input[type='button'], input[type='submit'] {
    /*background-color: ?;*/
}

.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 ***/
