/* =========================================================
   xD NETWORK
   Yii 2 / Bootstrap 3
   ========================================================= */


/* =========================================================
   BASE
   ========================================================= */

html,
body {
    height: 100%;
}

html {
    background: #f4f6fa;
}

body {
    margin: 0;

    background: #f4f6fa;

    color: #273142;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 14px;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #246bfd;
}

a:hover,
a:focus {
    color: #175ce5;
}


/* =========================================================
   APPLICATION
   ========================================================= */

.xd-app {
    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.xd-sidebar {
    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;

    width: 255px;

    display: flex;
    flex-direction: column;

    background: #171b23;

    z-index: 1000;

    box-shadow:
        3px 0 18px rgba(20, 30, 45, 0.08);
}


/* =========================================================
   SIDEBAR LOGO
   ========================================================= */

.xd-sidebar-logo {
    height: 76px;

    display: flex;
    align-items: center;

    padding: 0 25px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.055);
}

.xd-sidebar-logo a {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.xd-sidebar-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 180px;
    max-height: 40px;
}


/* =========================================================
   SIDEBAR LABELS
   ========================================================= */

.xd-sidebar-label {
    padding:
        25px
        22px
        10px;

    color: #626b79;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.xd-sidebar-section {
    padding-top: 27px;
}


/* =========================================================
   SIDEBAR MENU
   ========================================================= */

.xd-sidebar-menu {
    padding: 0 12px;
}

.xd-menu-item {
    position: relative;

    min-height: 45px;

    display: flex;
    align-items: center;

    padding: 0 13px;

    margin: 2px 0;

    border-radius: 7px;

    color: #9ca5b4;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none !important;

    transition:
        background-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.xd-menu-item:hover,
.xd-menu-item:focus {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.055);

    text-decoration: none;
}


/* ACTIVE MENU ITEM */

.xd-menu-item.active {
    color: #ffffff;

    background: #246bfd;

    box-shadow:
        0 3px 10px
        rgba(36, 107, 253, .18);
}

.xd-menu-item.active:before {
    content: "";

    position: absolute;

    left: -12px;

    top: 10px;
    bottom: 10px;

    width: 3px;

    background: #72a0ff;

    border-radius: 0 3px 3px 0;
}


/* =========================================================
   SIDEBAR ICONS
   ========================================================= */

.xd-menu-icon {
    width: 27px;
    height: 20px;

    margin-right: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.xd-menu-icon svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.xd-menu-label {
    white-space: nowrap;
}


/* =========================================================
   SIDEBAR BOTTOM
   ========================================================= */

.xd-sidebar-bottom {
    margin-top: auto;

    padding:
        15px
        12px
        18px;

    border-top:
        1px solid rgba(255, 255, 255, 0.055);
}


/* =========================================================
   MAIN
   ========================================================= */

.xd-main {
    min-height: 100vh;

    margin-left: 255px;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.xd-topbar {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;

    background: #ffffff;

    border-bottom: 1px solid #e6e9ef;
}

.xd-topbar-left {
    display: flex;
    align-items: center;
}

.xd-page-title {
    color: #1f2937;

    font-size: 16px;
    font-weight: 600;
}


/* =========================================================
   USER
   ========================================================= */

.xd-topbar-user {
    display: flex;
    align-items: center;
}

.xd-user-avatar {
    width: 38px;
    height: 38px;

    margin-right: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #edf3ff;

    color: #246bfd;

    font-size: 13px;
    font-weight: 700;
}

.xd-user-info {
    min-width: 90px;

    line-height: 1.25;
}

.xd-user-name {
    color: #202631;

    font-size: 13px;
    font-weight: 600;
}

.xd-user-role {
    margin-top: 3px;

    color: #929aa7;

    font-size: 10px;
}


/* =========================================================
   CONTENT
   ========================================================= */

.xd-content {
    flex: 1;

    padding:
        30px
        32px
        45px;
}

.xd-content-inner {
    width: 100%;
}


/* =========================================================
   HEADINGS
   ========================================================= */

.xd-content h1 {
    margin-top: 0;
    margin-bottom: 20px;

    color: #202938;

    font-size: 25px;
    font-weight: 600;

    line-height: 1.25;

    letter-spacing: -0.3px;
}

.xd-content h2 {
    color: #273142;

    font-size: 20px;
    font-weight: 600;
}

.xd-content h3 {
    color: #273142;

    font-size: 17px;
    font-weight: 600;
}


/* =========================================================
   BREADCRUMBS
   ========================================================= */

.xd-breadcrumbs {
    margin-bottom: 18px;
}

.xd-breadcrumbs .breadcrumb {
    padding: 0;

    margin: 0;

    background: transparent;

    color: #929aa7;

    font-size: 11px;
}

.xd-breadcrumbs .breadcrumb > li + li:before {
    color: #bcc2cb;
}

.xd-breadcrumbs a {
    color: #246bfd;

    text-decoration: none;
}

.xd-breadcrumbs a:hover {
    color: #175ce5;
}


/* =========================================================
   GRID VIEW
   ========================================================= */

.xd-content .grid-view {
    margin-top: 10px;

    background: #ffffff;

    border: 1px solid #e4e8ee;

    border-radius: 9px;

    overflow: hidden;

    box-shadow:
        0 1px 2px rgba(20, 30, 50, .025),
        0 4px 12px rgba(20, 30, 50, .025);
}


/* GRID SUMMARY */

.xd-content .grid-view .summary {
    padding: 12px 16px;

    color: #89919e;

    font-size: 12px;
    line-height: 1.4;

    border-bottom: 1px solid #edf0f4;
}


/* =========================================================
   TABLES
   ========================================================= */

.xd-content .table {
    width: 100%;

    margin: 0;

    background: #ffffff;

    border: 0;
}

.xd-content .table-bordered {
    border: 0;
}


/* TABLE HEADER */

.xd-content .table > thead > tr > th {
    padding: 13px 15px;

    background: #fafbfc;

    color: #667085;

    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid #e6e9ee;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.4;
    vertical-align: middle;

    white-space: nowrap;
}


/* TABLE BODY */

.xd-content .table > tbody > tr > td {
    padding: 14px 15px;

    color: #343c49;

    border-left: 0;
    border-right: 0;
    border-top: 1px solid #edf0f3;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.45;
    vertical-align: middle;
}


.xd-content table td {
    font-variant-numeric: tabular-nums;
}

.xd-content .table > tbody > tr:first-child > td {
    border-top: 0;
}

.xd-content .table > tbody > tr {
    transition:
        background-color .1s ease;
}

.xd-content .table > tbody > tr:hover {
    background: #f8faff;
}


/* TABLE LINKS */

.xd-content .grid-view a {
    color: #2470dc;
}

.xd-content .grid-view th a {
    color: #596474;

    text-decoration: none;
}

.xd-content .grid-view th a:hover {
    color: #246bfd;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.xd-content .btn {
    min-height: 34px;

    padding:
        7px
        13px;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 500;

    box-shadow: none;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}


/* PRIMARY */

.xd-content .btn-primary {
    color: #ffffff;

    background: #246bfd;

    border-color: #246bfd;
}

.xd-content .btn-primary:hover,
.xd-content .btn-primary:focus,
.xd-content .btn-primary:active {
    color: #ffffff;

    background: #175ce5;

    border-color: #175ce5;

    box-shadow:
        0 3px 9px
        rgba(36, 107, 253, .18);
}


/* SUCCESS */

.xd-content .btn-success {
    color: #ffffff;

    background: #28a76f;

    border-color: #28a76f;
}

.xd-content .btn-success:hover,
.xd-content .btn-success:focus {
    color: #ffffff;

    background: #239462;

    border-color: #239462;
}


/* WARNING */

.xd-content .btn-warning {
    color: #ffffff;

    background: #f1a536;

    border-color: #f1a536;
}

.xd-content .btn-warning:hover,
.xd-content .btn-warning:focus {
    color: #ffffff;

    background: #dc9228;

    border-color: #dc9228;
}


/* DANGER */

.xd-content .btn-danger {
    color: #ffffff;

    background: #e2545e;

    border-color: #e2545e;
}


/* DEFAULT */

.xd-content .btn-default {
    color: #4f5968;

    background: #ffffff;

    border-color: #dce1e8;
}

.xd-content .btn-default:hover {
    background: #f7f8fa;

    border-color: #cfd5dd;
}


/* =========================================================
   FORMS
   ========================================================= */

.xd-content label {
    margin-bottom: 6px;

    color: #555f6e;

    font-size: 12px;
    font-weight: 600;
}

.xd-content .form-group {
    margin-bottom: 18px;
}

.xd-content .form-control {
    height: 38px;

    padding:
        8px
        11px;

    background: #ffffff;

    border:
        1px solid #dce1e8;

    border-radius: 6px;

    color: #303846;

    font-size: 13px;

    box-shadow: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.xd-content textarea.form-control {
    height: auto;
}

.xd-content .form-control:focus {
    border-color: #8db2fa;

    outline: 0;

    box-shadow:
        0 0 0 3px
        rgba(36, 107, 253, .08);
}

.xd-content .help-block {
    font-size: 11px;
}


/* =========================================================
   PANELS
   ========================================================= */

.xd-content .panel {
    margin-bottom: 22px;

    background: #ffffff;

    border:
        1px solid #e4e8ee;

    border-radius: 9px;

    box-shadow:
        0 1px 2px rgba(20, 30, 50, .025),
        0 4px 12px rgba(20, 30, 50, .025);
}

.xd-content .panel-heading {
    padding:
        15px
        18px;

    background: #ffffff;

    color: #293241;

    border-bottom:
        1px solid #edf0f3;

    border-radius:
        9px
        9px
        0
        0;

    font-size: 13px;
    font-weight: 600;
}

.xd-content .panel-body {
    padding: 18px;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.xd-content .pagination {
    margin: 16px;
}

.xd-content .pagination > li > a,
.xd-content .pagination > li > span {
    margin-right: 4px;

    color: #566171;

    border:
        1px solid #e1e5eb;

    border-radius: 5px;

    font-size: 11px;
}

.xd-content .pagination > li > a:hover {
    background: #f5f7fa;

    border-color: #d7dce4;
}

.xd-content .pagination > .active > a,
.xd-content .pagination > .active > span,
.xd-content .pagination > .active > a:hover,
.xd-content .pagination > .active > span:hover {
    color: #ffffff;

    background: #246bfd;

    border-color: #246bfd;
}


/* =========================================================
   ALERTS
   ========================================================= */

.xd-content .alert {
    padding:
        12px
        15px;

    border-radius: 7px;

    font-size: 12px;
}


/* =========================================================
   LABELS
   ========================================================= */

.xd-content .label {
    padding:
        4px
        7px;

    border-radius: 4px;

    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   ACTION ICONS
   ========================================================= */

.xd-content .glyphicon {
    font-size: 12px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.xd-footer {
    padding:
        18px
        32px;

    color: #a0a7b2;

    border-top:
        1px solid #e7eaf0;

    font-size: 10px;
}


/* =========================================================
   GUEST / LOGIN
   ========================================================= */

.xd-guest-layout {
    min-height: 100vh;

    padding-top: 60px;

    background: #f4f6fa;
}

.xd-guest-logo {
    margin-bottom: 28px;

    text-align: center;
}

.xd-guest-logo img {
    width: auto;
    height: auto;

    max-width: 190px;
    max-height: 50px;
}

.xd-guest-content {
    max-width: 450px;

    margin: 0 auto;

    padding: 30px;

    background: #ffffff;

    border:
        1px solid #e4e8ee;

    border-radius: 10px;

    box-shadow:
        0 8px 30px
        rgba(20, 30, 50, .07);
}


/* LOGIN FORM */

.xd-guest-content h1 {
    margin-top: 0;

    color: #202938;

    font-size: 25px;
    font-weight: 600;
}

.xd-guest-content .form-control {
    height: 40px;

    border:
        1px solid #dce1e8;

    border-radius: 6px;

    box-shadow: none;
}

.xd-guest-content .form-control:focus {
    border-color: #8db2fa;

    box-shadow:
        0 0 0 3px
        rgba(36, 107, 253, .08);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.xd-mobile-menu {
    display: none;

    margin-right: 15px;

    padding:
        5px
        8px;

    background: transparent;

    border: 0;

    color: #333333;

    font-size: 22px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .xd-sidebar {
        transform:
            translateX(-100%);

        transition:
            transform .2s ease;
    }


    .xd-sidebar-open .xd-sidebar {
        transform:
            translateX(0);
    }


    .xd-main {
        margin-left: 0;
    }


    .xd-mobile-menu {
        display: block;
    }


    .xd-topbar {
        padding:
            0
            20px;
    }


    .xd-content {
        padding:
            22px
            20px
            35px;

        overflow-x: auto;
    }


    .xd-user-info {
        display: none;
    }


    .xd-user-avatar {
        margin-right: 0;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 500px) {

    .xd-topbar {
        height: 64px;
    }


    .xd-page-title {
        font-size: 14px;
    }


    .xd-content {
        padding:
            18px
            14px
            30px;
    }


    .xd-content h1 {
        font-size: 22px;
    }


    .xd-footer {
        padding:
            16px
            14px;
    }


    .xd-guest-layout {
        padding:
            30px
            15px;
    }


    .xd-guest-content {
        padding: 22px;
    }

}
