/* =====================================================
   BASE HTML
===================================================== */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}


/* =====================================================
   RESPONSIVE BASE FONT SIZE
===================================================== */

@media (min-width: 768px) {

    html {
        font-size: 16px;
    }
}


/* =====================================================
   BOOTSTRAP FOCUS STYLES
===================================================== */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


/* =====================================================
   BODY
===================================================== */

body {
    margin-bottom: 60px;
}


/* =====================================================
   FORM PLACEHOLDERS
===================================================== */

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* =====================================================
   LABEL PREVIEW
   BROTHER QL-820NWB
   DK-11201
   PHYSICAL SIZE: 90mm x 29mm
===================================================== */

.repair-label-preview {
    width: 90mm;
    height: 29mm;
    max-width: 100%;
    margin: 0 auto;
    padding: 2mm 3mm;
    border: 1px solid #222;
    background: #ffffff;
    color: #000000;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: Arial, Helvetica, sans-serif;
}


/* =====================================================
   CUSTOMER NAME
===================================================== */

.repair-label-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =====================================================
   PHONE NUMBER
===================================================== */

.repair-label-phone {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =====================================================
   DEVICE / MODEL
===================================================== */

.repair-label-line {
    font-size: 11px;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =====================================================
   DATE / PRICE
===================================================== */

.repair-label-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}


/* =====================================================
   PRINT SETTINGS
   BROTHER DK-11201
   29mm x 90mm LABEL
===================================================== */

/* =====================================================
   PRINT SETTINGS
   IPHONE / IPAD AIRPRINT FIX
   BROTHER DK-11201 - 29mm x 90mm
===================================================== */

@media print {

    /* =================================================
       AIRPRINT USES THE LABEL AS:
       WIDTH  = 29mm
       HEIGHT = 90mm

       WE ROTATE THE LABEL CONTENT 90 DEGREES.
    ================================================= */

    @page {
        size: 29mm 90mm;
        margin: 0;
    }


    /* =================================================
       RESET PRINT DOCUMENT
    ================================================= */

    html,
    body {
        width: 29mm !important;
        height: 90mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }


    /* =================================================
       REMOVE NORMAL BODY MARGIN
    ================================================= */

    body {
        margin: 0 !important;
    }


        /* =================================================
       HIDE EVERYTHING
    ================================================= */

        body * {
            visibility: hidden !important;
        }


    /* =================================================
       SHOW LABEL ONLY
    ================================================= */

    #repairLabel,
    #repairLabel * {
        visibility: visible !important;
    }


    /* =================================================
       ROTATE 90mm x 29mm LABEL
       TO FIT 29mm x 90mm AIRPRINT PAGE
    ================================================= */

    #repairLabel {
        position: fixed !important;
        top: 0 !important;
        left: 29mm !important;
        width: 90mm !important;
        height: 29mm !important;
        margin: 0 !important;
        padding: 2mm 3mm !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        overflow: hidden !important;
        transform-origin: top left !important;
        transform: rotate(90deg) !important;
    }


    /* =================================================
       CUSTOMER NAME
    ================================================= */

    .repair-label-name {
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.05 !important;
        color: #000000 !important;
        white-space: nowrap !important;
    }


    /* =================================================
       PHONE NUMBER
    ================================================= */

    .repair-label-phone {
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.05 !important;
        color: #000000 !important;
        white-space: nowrap !important;
    }


    /* =================================================
       DEVICE / MODEL
    ================================================= */

    .repair-label-line {
        font-size: 11px !important;
        line-height: 1.05 !important;
        color: #000000 !important;
        white-space: nowrap !important;
    }


    /* =================================================
       DATE / PRICE
    ================================================= */

    .repair-label-bottom {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-size: 11px !important;
        line-height: 1 !important;
        color: #000000 !important;
        white-space: nowrap !important;
    }
}