@import url('https://fonts.googleapis.com/css?family=Roboto:200,300,400,500,700');
@import url('https://fonts.googleapis.com/css?family=Lobster');

/* Main Theme */

#content {
    padding: 0;
    overflow: auto;
    background: #f9f9f9;
    height: calc( 100% - 60px );
    width: calc( 100% - 60px );
    position: absolute;
    left: 60px;
    top: 60px;
}

.checkbox label * {
    margin: 0;
}

.input-group-sm {
    display: inline-flex;
}
.input-group-sm > span {
    padding: 4px 6px 0 6px !important;
    background-color: #e7e7e7;
}
.input-group-sm > span:nth-child(1) {
    border-top-left-radius: .4rem;
    border-bottom-left-radius: .4rem;
}
.input-group-sm > span:nth-child(2) {
    border-top-right-radius: .4rem;
    border-bottom-right-radius: .4rem;
}
.input-group-sm > input:nth-child(2) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.input-group-sm > input:nth-child(1) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.blank-slate {
	margin: 30px 0 0;
	padding: 35px;
	text-align: center;
	width: 100%;
}

/* **[ BLANK STATE ]************************************************************************* */
.blank-state {
    position: relative;
}

.blank-state .blank-state-content {
    width: min(100%, 700px);
    overflow: auto;
    display: table;
    margin: auto;
}

.blank-state .blank-state-content > * {
    float: left;
}

.blank-state .blank-state-content > .wrapped-content {
    max-width: 500px;
    padding: 20px;
}

@media (max-width:900px) {
    .blank-state .blank-state-content .image {
        display: none;
    }
    .blank-state .blank-state-content > .wrapped-content {
        padding: 0px;
    }
}

.blank-state .blank-state-content > .image > [class^="icon-"],
.blank-state .blank-state-content > .image > [class*=" icon-"] {
    display: inline-block;
    margin: 20px;
}

.blank-state .blank-state-content > .image > [class^="icon-"]:before,
.blank-state .blank-state-content > .image > [class*=" icon-"]:before {
    font-size: 96px;
    padding: 0;
    margin: 0;
    line-height: 120px;
    height: 120px;
    width: 120px;
}

.right { text-align: right; }
.center { text-align: center; }

.input-group-addon{
	padding-top: 0px !important;
	padding-bottom: 0px !important;
}

@page { size: a4; }
@media print {
    menu, .breadcrumb, .no-print, .header-elements {
    	display: none !important;
  	}
  	#content {
        position: unset;
        display: block;
        margin: 0 !important;
        width: 100%;
    }
    .view-content, .view-content > fieldset {
        padding: 0 !important;
        border: 0 !important;
        margin: 0 !important;
    }
    .view-content > fieldset {
        display: contents;
        position: unset;
    }
}
.printer-block{
	text-align: center;
	margin-bottom: 35px;
}
a#printer{
    color: #999999;
    text-decoration: none;
    background-image: url("/imgs/ic_printer_1.png");
	background-repeat: no-repeat;
}
a#printer:HOVER{
    color: #555555;
    background-image: url("/imgs/ic_printer_2.png");
}

/* **[ SIMPLE LIST ]************************************************************************* */
ul.list { height: 100%; overflow: hidden; }
ul.list.horizontal { height: auto; }
ul.list, ul.list > li { list-style: none; margin: 0; padding: 0; }
ul.list.horizontal > li { float: left; height: 100%; }

/* **[ VIEW ]******************************************************************************** */
.view .view-content > label.context ~ .panel.expanded {
    height: calc( 100% - 24px );
}
.view { height: 100%; }
.view .view-content {
    animation: expand 0.5s ease-in;
    transition: height 500ms ease-in;
    height: calc( 100% - 47px );
    overflow: auto;
    padding: 20px;
}

.view .breadcrumb {
    position: sticky; top: 0;
    width: 100%;
    overflow: auto;
    border-bottom: 1px solid #ededed;
    margin: 0;
    background: white;
}

.view .breadcrumb > li {
    padding: 10px 10px 10px 0px;
    list-style: circle;
    list-style-position: outside;
    margin-left: 20px;
}

.view .breadcrumb > li:first-child {
    list-style: none;
}

.view-content.with-button-bar-at-bottom {
    height: calc( 100% - 106px );
}

.view-content.with-button-bar-at-bottom .button-bar {
    position: absolute;
    bottom: 0;
    border-top: 1px solid #dedede;
    background: #f9f9f9;
    margin-left: -20px;
    width: 100%; height: 60px;
    overflow: hidden;
}

.view-content.with-button-bar-at-bottom .button-bar > ul.list.horizontal {
    margin: 10px 20px 10px;
}

.view .view-content > .expanded {
    min-height: 100%;
    margin: 0 0 -2px 0;
}

/* **[ TABLES ]****************************************************************************** */
table tr > td,
table tr > th {
    padding: 5px 10px;
    border-collapse: collapse;
}

table tr > th {
    color: black;
    font-weight: 500;
}

table tr > td:first-child, table tr > th:first-child {
    padding-left: 5px;
}

table tr > td > button {
    margin: -5px -10px -5px!important;
    padding: 0 !important;
}

table.expanded {
    height: auto !important;
    padding: 0 !important;
}

table.expanded button.icon-button {
    color: black;
}

table.expanded tr > td:first-child,
table.expanded tr > th:first-child {
    padding-left: 15px;
}

table.expanded tr:last-child > td {
    border-width: 0;
}

/* **[ BUTTONS ]***************************************************************************** */

::placeholder { color: #ccc; }
:-ms-input-placeholder { color: #ccc; }
::-ms-input-placeholder { color: #ccc; }

button.icon-button { color: white; }

button.icon-button,
button.icon-button:hover {
    display: block;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 24px;
    background: transparent;
    border-color: transparent;
}

button.icon-button:hover,
button.icon-button:hover > span {
    color: #9b4dca;
    cursor: pointer;
}

button.icon-button > span.icon-menu {
    font-size: 1.5em;
}

button.green { background-color: green; border-color: green; }
button.green:hover { background-color: #5e7f5e; border-color: #5e7f5e; }

button.red, button.red:hover { color: white; background-color: red; border-color: red; }
button.red:hover { background-color: #901c1c; border-color: #901c1c; }

button.green:hover > span,
button.red:hover > span { color: white; }


input[type='date'], input[type='datetime'], input[type='datetime-local'], input[type='time'],
input[type='email'], input[type='number'], input[type='password'],
input[type='search'], input[type='tel'], input[type='text'],
input[type='url'], textarea, select  {
    border: 1px solid #efefef;
}

.button-small {
    font-size: .8rem;
    height: 2.8rem;
    line-height: 2.8rem;
    padding: 0 1.5rem;
}

/* **[ FORM ]******************************************************************************** */

.form {
    margin: 0;
    height: 100%;
}

fieldset {
    margin: 0; padding: 0; position: relative;
}

fieldset > legend {
    font-size: 2em;
    padding-top: 20px;
    display: block;
}

fieldset.panel {
    border: 1px solid #cdcdcd;
    background: white;
}

fieldset.panel .header {
    border-bottom: 1px solid #eee;
    overflow: visible;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /*padding: 20px 30px;*/
    height: 60px;
}

fieldset.panel.form-panel {
    padding: 20px 30px 20px;
    min-height: 100%;
}

fieldset.panel .header input,
fieldset.panel .header button,
fieldset.panel .header select { margin-bottom: 0; }

fieldset.panel .header > h1 {
    font-size: 1.3em;
    padding: 18px 15px 15px;
    margin: 0px;
    display: inline-block;
}

fieldset.panel .header > h1 > small.counter {
    display: inline-block;
    padding: 3px 2px 2px;
    background: gray;
    color: white;
    border-radius: 100px;
    min-width: 25px;
    text-align: center;
    font-size: 0.7em;
}

fieldset.panel .header button,
fieldset.panel .header input {
    margin-bottom: 0;
}

fieldset.panel .header .header-elements {
    float: right;
    display: block;
    height: 60px;
    margin-right: 25px
}

fieldset.panel .header .header-elements > * {
    top: 15px;
    float: left;
    margin-left: 10px;
}

fieldset.panel .header .header-elements button.icon-button {
    color: black !important;
}

fieldset.panel .header ~ * {
    margin-top: 60px;
}

fieldset.panel .header ~ *.expanded {
    height: calc( 100% - 24px );
}

fieldset.panel.expanded .header ~ *.expanded {
    margin: 0;
    margin-top: 60px;
    padding: 20px 30px;
}

.view .view-content > label.context ~ .panel.expanded {
    height: calc( 100% - 24px );
}

fieldset.panel .header > .list.horizontal {
    padding: 10px 20px;
    height: 100%;
}

.panel .header > .list.horizontal > li {
    padding-right: 10px;
}

.panel .header > .list.horizontal > li > .icon-button {
    width: 40px;
}

.form-item-sm > label, label.label-sm {
    font-size: 14px;
    margin-top: 3px;
    text-align: right;
}
.form-item-sm > div > input, input.input-sm, select.input-sm {
    height: 32px;
}
.form-item > label {
    text-align: right;
}
/* **[ DROPDOWN BUTTON ]********************************************************************* */
.align-center > .dropdown-button {
    margin-left: auto;
    margin-right: auto;
}

.dropdown-button {
    position: relative;
    border: 0px solid red;
    display: table;
}

.dropdown-button > .dropdown-content {
    display: grid;
    grid-template-columns: 24px 12px;
    grid-template-rows: 24px;
    border: 0px solid blue;
}

.dropdown-button > .dropdown-content [class^="icon-"],
.dropdown-button > .dropdown-content [class*=" icon-"] {
    height: 100%;
    width: 100%;
    line-height: 24px;
}

.dropdown-button > .dropdown-content .icon-down-dir {
    position: relative;
    left: -3px;
}

.dropdown-button > .dropdown-content span.icon-menu:before { font-size: 16px !important; }

.dropdown-button > .dropdown-content span[class^="icon-"],
.dropdown-button > .dropdown-content span[class*=" icon-"] {/* height: 100%; *//* width: 100%; */}

.dropdown-button > .dropdown-content span[class^="icon-"]:before,
.dropdown-button > .dropdown-content span[class*=" icon-"]:before {
    font-size: 12px;
    border: 0px solid red;
}

.dropdown-button > .dropdown-content > button > span[class^="icon-"],
.dropdown-button > .dropdown-content > button > span[class*=" icon-"] {
    border: 0px solid green;
}

.dropdown-button > .dropdown-content > button {
    text-align: center;
    padding: 0;
    margin: 0;
    border: 0px solid green;
}

.dropdown-button > .dropdown-options {
    position: absolute;
    top: calc( 100% - 5px );
    right: 0;
    display: none;
    overflow: visible;
    background: white;
    z-index: 1;
}

.dropdown-button:hover {
    cursor: pointer;
}

.dropdown-button:hover .dropdown-options {
    display: table;
}

.dropdown-button:hover .dropdown-content [class^="icon-"],
.dropdown-button:hover .dropdown-content [class*=" icon-"] {
    color: #9b4dca;
}

.dropdown-button > .dropdown-options > li {
    display: block;
    white-space: nowrap;
    padding: 2.5px 8px;
    text-align: left;
    border: 1px solid #dedede;
    border-top-width: 0;
    border-bottom-width: 0;
    font-size: 14px;
}

.dropdown-button > .dropdown-options > li:first-child {
    border-top-width: 1px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    padding-top: 5px;
}

.dropdown-button > .dropdown-options > li:last-child {
    border-bottom-width: 1px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    padding-bottom: 5px;
}

.dropdown-button > .dropdown-options > li:hover {
    background: #efefef;
    color: #9b4dca;
}

.dropdown-button > .dropdown-options > li > span {
    font-size: 12px;
    margin-right: 4px;
}

/* **[ MODAL ]******************************************************************************** */

.modal {
    display: none;
    background: white;
    top: 0px;
    left: 50%;
    width: 600px;
    padding: 20px;
    opacity: 1;
    transform: translateX( -50% );
    position: absolute;
    border: 1px solid #a7a4a4;
}
.modal-bg {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(196, 196, 196, 0.2);
}
.modal-header {
    padding-bottom: 7px;
    border-bottom: 1px solid #dfd8d8;
}
.modal-header h4 {
    margin: 0;
}
.modal-body {
    padding-top: 15px;
}
.modal-header a {
    float: right;
    cursor: pointer;
}
.modal-footer {
    border-top: 1px solid #dfd8d8;
    padding-top: 10px;
}
.modal-footer * {
    margin: 0;
    float: right;
}
.modal-footer button {
    margin-left: 6px;
}

.modal h5 {
    margin-bottom: 5px;
}

/* **[ TABS ]******************************************************************************** */
.tab {
    display: block;
    width: 100%;
    height: 100%;
}

.tab .tabs {
    width: 100%;
    overflow: visible;
    display: table;
    position: relative;
}

.tab .tabs > li {
    padding: 5px 10px 0;
    font-size: 1.5rem;
    line-height: 2.5rem;
}

.tab .tabs > li:hover {
    cursor: pointer;
}

.tab .tabs > li.selected {
    background: white;
    border: 1px solid #cdcdcd;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
    z-index: 1;
    position: relative;
}

.tab .tabs-container {
    border-top: 1px solid #cdcdcd;
    overflow: auto;
    border: 1px solid #cdcdcd;
    background: white;
    display: block;
    padding: 20px 30px;
    height: calc( 100% - 31px );
    position: relative;
}

.tab .tabs-container > * {
    border-width: 0;
}

.tab .tabs-container > .expanded {
    position: absolute;
    height: 100%; width: 100%;
    top: 0; left: 0;
    margin: 0;
}
