﻿/* Begin base custom theme */
:root {
    --background-color-ford: #003478;
    --background-color-ford-1: #081534; /*Maastricht Blue: */
    --background-color-ford-2: #133A7C; /*Dark Cerulean:  */
    --background-color-ford-3: #2A6BAC; /*Lapis Lazuli:   */
    --background-color-ford-4: #47A8E5; /*Picton Blue:    */
}

@font-face {
    font-family: 'Digital7';
    src: url('/theme/plugins/fonts/digital-7.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.sidebar-dark-primary {
    background-color: var(--background-color-ford-1);
}

    .sidebar-dark-primary p {
        color: white;
    }

.container-fluid .card-header {
    padding: .5rem 1rem;
}

.container-fluid .content-wrapper > .content {
    padding: 0 0rem;
}
/* End base custom theme */
#example2 tbody td img {
    width: 230px;
    height: 150px;
}

#example2 tbody td:first-child {
    text-align: center;
}

.content-header {
    padding: 7px .5rem;
}

table tbody img.table-img {
    width: 89px;
    height: 89px;
}

table tbody img.table-img {
    border-radius: 5px;
}

table tbody td:first-child {
    text-align: center;
    vertical-align: middle;
}

.production-operation table tbody img {
    width: 150px;
}

.production-operation .main-operation {
    width: 100%;
    min-height: calc(100vh - 200px);
    background-color: gray;
    border: 1px solid gray;
}

    .production-operation .main-operation .name-product {
        min-height: 50px;
        background-color: white;
        padding: 10px;
    }

    .production-operation .main-operation .item .view-img {
        margin-bottom: 1rem;
        flex: 1;
    }

        .production-operation .main-operation .item .view-img img {
            width: -webkit-fill-available;
            height: 326px;
            border: 3px outset var(--background-color-ford);
        }

    .production-operation .main-operation .item .head {
        color: white;
        padding: 3px;
        background-color: var(--background-color-ford-2);
        text-transform: uppercase;
    }

    .production-operation .main-operation .view-detail {
        flex: 1;
    }

    .production-operation .main-operation .item-detail img {
        width: 100%;
        max-height: calc(100vh - 272px);
    }

    .production-operation .main-operation .view-detail {
        background-color: white;
        height: 100%;
    }

.production-operation .jobcard-scroll {
    overflow-y: scroll;
    overflow-x: hidden;
    height: calc(100vh - 250px);
}

    .production-operation .jobcard-scroll .head .left,
    .production-operation .jobcard-scroll .head .right {
        display: inline-block;
        padding: 0 10px 0 10px;
    }

    .production-operation .jobcard-scroll .head .right {
        float: right;
        color: #fbe431;
    }


    .production-operation .jobcard-scroll .code {
        color: red;
    }

.product-control .machine-img {
    width: 80px;
    height: 80px;
}

.machine-control .machine-img {
    width: 150px;
    height: 130px;
}

.machine-control .employee-img {
    width: 100px;
    height: 100px;
}

.btn.custom-action {
    background-color: transparent;
    font-size: .875rem;
    margin: -.75rem 0;
    padding: .25rem .5rem;
}

.login-background {
    background-color: var(--background-color-ford)
}

.red {
    color: red;
}

img.table-product-image {
    width: 77px;
    height: 77px;
    border: 1px solid gray;
    color: #ababab;
}

#productDetailTabsContent img.table-product-image {
    width: 100px;
    height: 100px;
}

.table-product-image-btn {
    padding: .025rem .5rem;
}

img.table-product-image.small {
    width: 57px;
    height: 57px;
}

#product_add_modal .detail-scroll {
    overflow-y: scroll;
    overflow-x: hidden;
    height: calc(100vh - 350px);
}

.cursor {
    cursor: pointer;
}

.img-form-add {
    width: 150px;
    height: 150px;
    border: 1px solid #d7d7d7;
    border-radius: 5%;
    box-shadow: 3px 4px 5px 2px #cfcfcf;
}

.view-detail-count {
    height: 100%;
}

    .view-detail-count .digital-clock-success {
        color: var( --background-color-ford-1);
    }

        .view-detail-count .digital-clock-success i {
            font-size: 13rem;
        }

    .view-detail-count .digital-clock {
        font-family: 'Digital7', monospace;
        font-size: 11rem;
        color: var( --background-color-ford-1);
        background-color: #e9e9e9;
    }

.woking-btn-success {
    height: 80px;
    font-size: 3rem;
    text-transform: uppercase;
}

.modal-80-width {
    max-width: 80vw !important;
}

.btn-back {
    height: 80px;
    font-size: 2rem;
}

.product-detail-group-img {
    text-align: center;
    font-weight: bold;
}

.nav-logout-btn {
    position: fixed;
    bottom: 0;
}

.user-panel .info {
    width: 100%;
}

    .user-panel .info [data-widget="pushmenu"] {
        float: right;
    }
/* iPad mini A17 Pro — PORTRAIT (khoảng 720–780 viewport width) */
@media only screen and (orientation: portrait) and (min-width: 700px) and (max-width: 780px) and (-webkit-min-device-pixel-ratio: 2), only screen and (orientation: portrait) and (min-width: 700px) and (max-width: 780px) and (min-resolution: 2dppx) {
    body {
        font-size: 6rem;
    }

    .btn-back .lbl-title {
        display: none;
    }

    .woking-btn-success {
        font-size: 2rem;
    }

    .production-operation .main-operation .item .view-img img {
        height: 230px;
    }

    .production-operation .main-operation .item-detail img {
        width: 100%;
        max-height: calc(100vh - 272px);
    }
}
/* iPad mini A17 Pro — LANDSCAPE (khoảng 1080–1160 viewport width) */
@media only screen and (orientation: landscape) and (min-width: 1080px) and (max-width: 1160px) and (-webkit-min-device-pixel-ratio: 2), only screen and (orientation: landscape) and (min-width: 1080px) and (max-width: 1160px) and (min-resolution: 2dppx) {

    .view-detail-count .digital-clock {
        font-size: 6rem;
    }

    .btn-back .lbl-title {
        display: none;
    }

    .woking-btn-success {
        font-size: 2rem;
    }

    .production-operation .main-operation .item .view-img img {
        height: 230px;
    }

    .production-operation .main-operation .item-detail img {
        width: 100%;
        max-height: calc(100vh - 272px);
    }
}

.view-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .view-img img {
        width: 100%;
        display: block;
    }

    .view-img .right {
        position: absolute;
        bottom: 10px;
        text-align: center;
        color: #fff;
        font-weight: bold;
        background: var(--background-color-ford-2);
        padding: 4px 10px;
        border-radius: 4px;
    }
