/* 
    Created on : Jan 3, 2014, 10:32:29 AM
    Author     : abumuhammad
*/

$biru: #0b62a4;
$biru-muda: #7a92a3;
$hijau: #4da74d;
$toska: #00bcd4;
$oranye: #edc240;
$merah: #b71c1c;
$violet: #9440ed;
$warna-text: #212121;
$warning-color: #f57c00;

@mixin animasi($param) {
    -webkit-animation: $param;
    -moz-animation: $param;
    -ms-animation: $param;
    animation: $param;
}

body {
    color: #eee;
    background: #dddcd6 url(../img/bg-b.jpg) repeat repeat center fixed;
    padding: 0;
    margin: 0;
    font-family: Ubuntu, "Open Sans", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !important;
    font-style: normal;
    /*font-weight: 300;*/
    line-height: 1;
    position: relative;
    cursor: default;
}

.delete,
.angka-negatif {
    color: $merah;
}

// Tambahin garis di bawah
nav.top-bar {
    box-shadow: 0 1px #4e4e4e;
}

// Font Override
nav .top-bar-section ul li > a {
    font-family: "Open Sans", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Open Sans", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
    color: #fff;
}

// eo font override
select {
    color: $warna-text;
    font-family: Ubuntu, "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
}

option {
    &.option-head {
        text-transform: uppercase;
        font-weight: bold;
    }
}

/*------------------*/

#content {
    margin: 0px 0px 30px;
    padding-top: 15px;
}

.getar {
    @include animasi(tada 1s infinite);
}

table {
    background: #1e2021;
    thead {
        background: #17191a;
        tr {
            th {
                color: #f8f4ec;
            }
        }
    }
    tr {
        &.even,
        &.alt,
        &:nth-of-type(2n) {
            background: #17191a;
        }
        td {
            color: #f8f4ec;
        }
    }
}

table {
    background: #1e2021;
    thead {
        background: #17191a;
        tr {
            th {
                color: #f8f4ec;
            }
        }
    }
    tr {
        &.even,
        &.alt,
        &:nth-of-type(2n) {
            background: #17191a;
        }
        th {
            color: #fff;
        }
        td {
            color: #f8f4ec;
        }
    }
}

.tabel-index {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 0;

    label {
        color: #222;
    }
    input,
    select {
        margin-bottom: 0px;
    }

    th {
        //text-align: center;
    }

    td {
        font-size: 0.825em;
    }

    tr.baru,
    tr.manual,
    tr.inaktif {
        background-color: #f57c00;
        font-weight: bold;

        td {
            color: #fff;

            a.editable {
                color: #fff;
                border-bottom-color: #fff;
            }
        }
    }

    tr.hj-berubah {
        background-color: #388e3c;
        font-weight: bold;

        td {
            color: #fff;

            a.editable {
                color: #fff;
                border-bottom-color: #fff;
            }
        }
    }

    tr.margin-min {
        background-color: #d32f2f;
        font-weight: bold;

        td {
            color: #fff;

            a.editable {
                color: #fff;
                border-bottom-color: #fff;
            }
        }
    }
}

input,
select {
    &.error {
        margin-bottom: 0px;
    }
}

nav {
    .title-area {
        img {
            margin-top: -5px;
        }
    }
}

.summary {
    font-size: 0.85em;
    margin-bottom: 10px;
    text-align: right;
    color: #eee;
}

span.required {
    color: $merah;
}

li.active > a {
    background-color: $biru;
    color: #fff;
}

.row {
    max-width: 100%;
}

.block {
    border: 1px solid #3e4144;
    margin-bottom: 10px;
    //background: url(../img/bg-av.png) top fixed; //rgba(#000, 0.5)
    background-color: rgba(#000, 0.5); //rgba(34, 45, 45, 0.7);//rgba(14, 39, 40, 0.7);//rgba(0,0,0,0.7);
}

.block-header {
    overflow: visible;
    background: #333 url(../img/bg3.png) repeat-y left;

    //border-bottom: 1px solid #222;
    ul {
        &.title-area {
            width: auto;
            float: left;
        }

        &.right {
            width: auto;
        }
    }

    li {
        &.name > h1 {
            color: #fff;
            margin-left: 15px;
            margin-right: 15px;
        }

        &.name > h6 {
            color: #fff;
            margin-left: 15px;
            margin-right: 15px;
            margin-top: 10px;
        }
    }

    .has-form {
        padding: 0px 15px;
        //border-bottom: 1px solid #222;
    }

    .button {
        font-size: 0.875rem;
        position: relative;
        top: 7px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

.button.tiny.bigfont {
    font-size: 0.875rem;
}

a.button.micro.bigfont {
    font-size: 0.875rem;
    padding: 0.3rem;
    margin-bottom: 0;
}

.block-content {
    padding: 15px 0 1px;
    //background: #373b3e;
    border-top: 1px solid #515356;

    & > table {
        //margin: 0;
        tr td {
            font-size: 0.75rem;
        }
    }

    div.panel {
        // padding override
        padding: 0.75rem;
        padding-bottom: 0;

        //margin: 0 15px 15px;
        form {
            margin: 0 -15px;
        }
    }

    .prefix .fa-2x {
        padding-top: 4px;
    }
}

// Add box shadow to panel
.panel {
    //box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(0, 0, 0, 0.15), inset 1px 0 2px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.15);
    //background-color: #505F69;
    border-color: #515356;
    background: rgba(#000, 0.3);

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    li,
    dl {
        color: #fff;

        small {
            color: #efefef;
        }
    }

    .detail-view {
        margin-bottom: 20px;
    }
}

// tombol disebelah kanan input
.postfix.button {
    margin-bottom: 0;

    .fa-2x {
        padding-top: 4px;
    }
}

span.prefix, span.postfix {
    background: #282b2c;
    color: #fff;
    border-color: #444c4e;
}

div.error {
    display: block;
    padding: 0.33333rem 0.5rem 0.5rem;
    margin-top: -1px;
    margin-bottom: 0.88889rem;
    font-size: 0.66667rem;
    font-weight: normal;
    font-style: italic;
    background: #f04124;
    color: white;

    &.alone {
        font-size: 0.875rem;
        margin: 0 15px;
        margin-top: -1px;
        margin-bottom: 0.88889rem;
    }
}

#input-pemb-detail {
    input {
        text-align: right;
    }
}

th.rata-kanan,
td.rata-kanan,
.rata-kanan {
    text-align: right;
}

th.rata-tengah,
td.rata-tengah,
.rata-tengah {
    text-align: center;
}

/* Style untuk accesskey */
.ak {
    text-decoration: underline;
    font-weight: bold;
}

tr {
    transition: background-color 0.5s ease;

    &.pilih,
    &.selected {
        background-color: $toska !important;

        a {
            //color: $oranye;
            &.delete {
                color: $violet;
            }
        }
    }
}

.total {
    float: right;
    /*font-weight: bold;*/
    /*font-size: 1.125rem;*/
}

footer {
    text-align: right;
    background-color: #333;
    color: white;
    line-height: 20px;
    font-size: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    //padding: 0 15px;
    z-index: 3;
    box-shadow: 0 -1px #4e4e4e;

    span {
        padding: 0 15px;

        &.left {
            border-right: 1px solid #3e4144;
        }

        &.right {
            border-left: 1px solid #3e4144;
        }
    }
}

.jqstooltip-ovr {
    position: absolute;
    left: 0px;
    top: 0px;
    visibility: hidden;
    background: rgb(0, 0, 0) transparent;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    text-align: left;
    white-space: nowrap;
    padding: 3px 0;
    height: 30px;
    width: auto;
    border: 1px solid white;
}

.jqsfield {
    color: #fff;
    font: 10px;
    text-align: left;
}

.input-toogle {
    cursor: pointer;
}

.detail-view {
    width: 100%;
    border-collapse: separate;
    border-spacing: 1px;
    border: 0;

    tr {
        th {
            text-align: right;
        }
    }
}

.f-dropdown {
    &.box-menu {
        a {
            top: 0;
        }
    }

    &.content {
        padding: 0;

        span {
            display: block;
            padding: 0.5rem;
            color: #555;
        }
    }
}

label {
    color: #e6e8f0;
}

.datepicker.dropdown-menu {
    background-color: #34383b;
    border-color: #515356;
}

.datepicker table {
    th {
        background-color: #34383b;
    }

    td {
        background-color: #34383b;

        &.day {
            color: #fff;
        }

        &.old,
        &.new {
            color: #999;
        }

        span.hour {
            color: #fff;
        }

        span.minute {
            color: #fff;
        }
    }
}

.header {
    .label {
        font-size: 0.85rem;
        margin-bottom: 3px;
        font-family: "Open Sans", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
    }
    .label-total {
        font-size: 1.3rem;
    }
}

.label-total {
    font-size: 1rem;
}

.label.secondary {
    background-color: rgb(40, 43, 44);
    color: rgb(235, 229, 221);
}

.top-bar-section {
    .dropdown {
        border: 1px solid #3e4144;
    }

    .divider {
        //border-top: 0;
    }
}

input:not([type]),
input[type="text"],
input[type="password"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type="url"],
input[type="color"],
textarea {
    // color: $warna-text;
    color: #f8f4ec;
    background-color: #17191a;
    border-color: #444c4e;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px inset;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="color"]:focus,
textarea:focus {
    //glow effect on focus
    background-color: #17191a;
    box-shadow: 0px 0px 15px $toska;
    border: 1px solid $toska;
}

input:not([type])[disabled],
input:not([type])[readonly],
fieldset[disabled] input:not([type]),
input[type="text"][disabled],
input[type="text"][readonly],
fieldset[disabled] input[type="text"],
input[type="password"][disabled],
input[type="password"][readonly],
fieldset[disabled] input[type="password"],
input[type="date"][disabled],
input[type="date"][readonly],
fieldset[disabled] input[type="date"],
input[type="datetime"][disabled],
input[type="datetime"][readonly],
fieldset[disabled] input[type="datetime"],
input[type="datetime-local"][disabled],
input[type="datetime-local"][readonly],
fieldset[disabled] input[type="datetime-local"],
input[type="month"][disabled],
input[type="month"][readonly],
fieldset[disabled] input[type="month"],
input[type="week"][disabled],
input[type="week"][readonly],
fieldset[disabled] input[type="week"],
input[type="email"][disabled],
input[type="email"][readonly],
fieldset[disabled] input[type="email"],
input[type="number"][disabled],
input[type="number"][readonly],
fieldset[disabled] input[type="number"],
input[type="search"][disabled],
input[type="search"][readonly],
fieldset[disabled] input[type="search"],
input[type="tel"][disabled],
input[type="tel"][readonly],
fieldset[disabled] input[type="tel"],
input[type="time"][disabled],
input[type="time"][readonly],
fieldset[disabled] input[type="time"],
input[type="url"][disabled],
input[type="url"][readonly],
fieldset[disabled] input[type="url"],
input[type="color"][disabled],
input[type="color"][readonly],
fieldset[disabled] input[type="color"],
textarea[disabled],
textarea[readonly],
fieldset[disabled] textarea {
    color: #aaa;
    background-color: #313131;
    cursor: default;
}

.alert-box.warning {
    background-color: $violet;
    border-color: darken($violet, 10);
}

select {
    -moz-appearance: none;
    text-indent: 0.01px;
    text-overflow: "";
    color: #f8f4ec;
    background-color: #1f2124;
    border-color: #575e61;
    background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgdmVyc2lvbj0iMS4xIgogICB4PSIxMnB4IgogICB5PSIwcHgiCiAgIHdpZHRoPSIyNHB4IgogICBoZWlnaHQ9IjNweCIKICAgdmlld0JveD0iMCAwIDYgMyIKICAgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgNiAzIgogICB4bWw6c3BhY2U9InByZXNlcnZlIgogICBpZD0ic3ZnMSIKICAgc29kaXBvZGk6ZG9jbmFtZT0iaW1hZ2Uuc3ZnIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjMuMiAoMDkxZTIwZWYwZiwgMjAyMy0xMS0yNSwgY3VzdG9tKSIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcwogICAgIGlkPSJkZWZzMSIgLz48c29kaXBvZGk6bmFtZWR2aWV3CiAgICAgaWQ9Im5hbWVkdmlldzEiCiAgICAgcGFnZWNvbG9yPSIjZmZmZmZmIgogICAgIGJvcmRlcmNvbG9yPSIjNjY2NjY2IgogICAgIGJvcmRlcm9wYWNpdHk9IjEuMCIKICAgICBpbmtzY2FwZTpzaG93cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMC4wIgogICAgIGlua3NjYXBlOnBhZ2VjaGVja2VyYm9hcmQ9IjAiCiAgICAgaW5rc2NhcGU6ZGVza2NvbG9yPSIjZDFkMWQxIgogICAgIGlua3NjYXBlOnpvb209IjMyLjM3NSIKICAgICBpbmtzY2FwZTpjeD0iMTIiCiAgICAgaW5rc2NhcGU6Y3k9IjEuNTEzNTEzNSIKICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjE5MjAiCiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iMTA0OCIKICAgICBpbmtzY2FwZTp3aW5kb3cteD0iMCIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9InN2ZzEiIC8+PHBvbHlnb24KICAgICBwb2ludHM9IjUuOTkyLDAgMi45OTIsMyAtMC4wMDgsMCAiCiAgICAgaWQ9InBvbHlnb24xIgogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmYiIC8+PC9zdmc+Cg==");
    &:focus {
        color: #f8f4ec;
        background-color: #1f2124;
        border-color: #575e61;
    }
}

.select2-container--default .select2-selection--multiple,
.select2-results {
    color: #f8f4ec;
    background-color: #1f2124;
}

.grid-loading {
    background: url(3.gif) no-repeat;

    th {
        animation: bgpulse 0.5s infinite;
    }
}

@keyframes bgpulse {
    0% {
        background-color: inherit;
    }

    50% {
        background-color: $warning-color;
    }

    100% {
        background-color: inherit;
    }
}

//jquery-editable overwrite
.editable-clear-x {
    margin-top: -15px;
}

.ui-autocomplete {
    background-color: #fff;
    border: 1px solid #dddcd6;
    max-height: 400px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
}

.ui-menu-item {
    a {
        color: #333;
        font-size: 0.9rem;

        small {
            font-size: 0.75rem;
        }
    }

    &.ui-state-focus {
        box-shadow: 0px 0px 15px #afd8f8;
        border: 1px solid #afd8f8;
        margin: 0;
        background-color: #00b7f3;
    }
}

.file-upload {
    position: relative;
    overflow: hidden;
    margin: 10px;
}

.file-upload input.file-input {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
}

.select2-container {
    margin-bottom: 20px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: $biru;
    border-color: darken($biru, 10%);
    color: #fff;
    font-size: 0.9rem;
}

.select2-results__options {
    // color: $warna-text;
    color: #f8f4ec;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: $biru;
}

.text-total {
    font-weight: bold;
}

.reveal-modal {
    background-color: rgba(0, 0, 0, 0.5);
}

input[type="checkbox"] + label,
input[type="radio"] + label {
    vertical-align: middle;
    // margin-top: -0.5rem;
}

pre {
    color: #eee;
    padding-bottom: 1rem;
}

.small-only {
    display: none;
}

@media only screen and (max-width: 640px) {
    .small-only {
        display: table-cell;
    }
}
