﻿html, body, h1, h2, h3, h4, h5 {
    font-family: Calibri,sans-serif;
}

.ui-widget {
    font-family: Calibri,sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #0080a0 !important;
    letter-spacing: 4px;
}

@media print {

    @page {
        margin-top: 120px !important;
        margin-bottom: 80px !important;
        margin-left: 100px !important;
        margin-right: 100px !important;
        size: A4;
        width: 21cm;
        height: 29.7cm;
        zoom: 100%;
    }

    #impressao span {
        font-family: Arial !important;
        font-size: 14px !important;
        color: #000 !important;
        letter-spacing: 0px !important;
        font-weight: bold;
    }

    #impressao h5 {
        font-family: Arial !important;
        font-size: 14px !important;
        color: #000 !important;
        letter-spacing: 0px !important;
        font-weight: bold;
    }

    #impressao thead span, #impressao thead br {
        line-height: 0 !important;
    }

    .impressaoSpan {
        display: inline-block !important;
        width: 130px !important;
    }

    .impressaoMarginTop {
        margin-top: 80px !important;
    }

    .impressaoBR {
        display: block !important;
    }
}

@media (max-width:600px) {
    .imgHMD {
        width: 250px !important
    }

    .w3-left-small {
        float: left !important;
    }

    .btnVerPedido {
        margin-top: 45px !important;
    }
}

@media (min-width:601px) {
    .w3-show-small {
        display: none !important;
    }

    #footer {
        border-left: 1px solid #cedae3;
        border-right: 1px solid #cedae3;
    }

    header {
        border-left: 1px solid #cedae3;
        border-right: 1px solid #cedae3;
    }
}

label, span {
    color: #0080a0 !important;
    font-size: 16px !important;
    letter-spacing: 2px;
}


header {
    border-bottom: 1px solid #cedae3;
}

#footer {
    border-top: 1px solid #cedae3;
    width: 100%;
    max-width: 1600px;
    padding-top: 5px;
    background-color: #fff;
    text-align: center;
    position: fixed;
}

#overlayWhite {
    background-color: #fff !important;
    z-index: 9;
}

#login {
    background-color: rgba(255, 255, 255, 0.98);
    padding-top: 25px;
    padding-bottom: 25px;
    z-index: 10;
}

    #login .w3-modal-content {
        box-shadow: 0 8px 20px 0 rgba(0,0,0,0.4), 0 8px 40px 0 rgba(0,0,0,0.40) !important;
    }

#divContentLaudo {
    display: none;
}

    #divContentLaudo h4 {
        color: #fff !important
    }

    #divContentLaudo b {
        color: #0080a0 !important
    }

    #divContentLaudo h5, #divContentLaudo span {
        color: #e9e9e9 !important
    }

.arrow:after, .tooltip {
    background-color: #0080a0 !important;
    opacity: 0.8;
    border-color: #fff !important;
    color: #fff !important;
}

.fas {
    margin-left: 5px;
}

#divContent .w3-ul li:first-child {
    border-bottom: none !important;
}

.w3-light-grey {
    background-color: #e8e8e8 !important
}

.w3-button {
    background-color: #0080a0 !important;
    color: #fff !important;
    font-size: 20px !important;
}

    .w3-button i {
        margin-left: 5px;
    }

    .w3-button:hover {
        background-color: #004b5e !important;
        color: #fff !important;
        transition: all .5s;
        -webkit-transition: 0.5s;
    }

.liItem:hover, .liItemExterno:hover {
    cursor: pointer;
    background-color: #0080a0 !important;
    color: #fff !important;
    transition: all 0.8s;
    -webkit-transition: 0.8s;
}

    .liItem:hover span, .liItemExterno:hover span{
        color: #fff !important;
        transition: all 0.7s;
        -webkit-transition: 0.7s;
    }

.liItemLaudo div {
    display: none;
    padding-top: 10px;
    padding-bottom: 10px;
}

    .liItemLaudo div:hover {
        background-color: #004b5e !important;
        padding-left: 20px;
        color: #fff !important;
        border: 1px solid #fff !important;
        transition: all 0.5s;
        -webkit-transition: 0.5s;
    }

.despesquisa {
    text-decoration: underline;
}

    .despesquisa:hover {
        color: #0080a0 !important
    }

.btnVerPedido {
    font-size: 16px !important;
    margin-top: 25px;
    margin-left: 2px;
}

.datepick {
    width: 200px;
    text-align: center;
}

.w3-input {
    outline: none;
    transition: all .5s;
    -webkit-transition: 0.5s;
    letter-spacing: 1px;
}

    .w3-input:hover {
        border: 1px solid #0080a0 !important;
        transition: all .5s;
        -webkit-transition: 0.5s;
    }

    .w3-input:focus {
        border: 1px solid #004b5e !important;
        transition: all .5s;
        -webkit-transition: 0.5s;
    }

.w3-underline {
    text-decoration: underline;
    cursor: pointer;
}

    .w3-underline:hover {
        color: #004b5e !important;
    }

span.w3-btn:hover {
    color: #fff !important;
    background-color: #0080a0 !important;
    transition: all .5s;
    -webkit-transition: 0.5s;
}

.w3-btnClose {
    background-color: #fff !important;
    color: #0080a0 !important;
    font-size: 32px !important;
}

.w3-clear-both {
    clear: both;
}

.w3-font-color {
    color: #0080a0 !important;
}

    .w3-font-color:hover {
        color: #004b5e !important;
        cursor: pointer !important;
        transition: all .5s;
        -webkit-transition: 0.5s;
    }

.w3-text-color {
    color: #004b5e !important;
}

.w3-background {
    background-color: #004b5e !important;
}

.ui-datepicker {
    width: 22em !important;
}

.ui-datepicker-month, .ui-datepicker-year {
    color: #0080a0 !important;
}

.ui-datepicker-header {
    background-color: #0080a0 !important;
    color: #fff !important;
}

    .ui-datepicker-header span {
        color: #fff !important;
    }

.ui-datepicker-today .ui-state-highlight {
    border: 1px solid #0080a0 !important;
    background: #bbe3ed !important;
    color: #0080a0 !important;
}

.ui-icon-circle-triangle-w, .ui-icon-circle-triangle-e {
    background-image: url(../js/jquery-ui/images/ui-icons_ffffff_256x240.png) !important;
}

.ui-state-active {
    border: 1px solid #bbe3ed !important;
    background: #0080a0 !important;
    font-weight: normal;
    color: #ffffff;
}

.ui-slider-handle {
    background: #bbe3ed !important;
    border: 1px solid #bbe3ed !important;
    width: 2em !important;
}

.ui-state-hover {
    background-color: #bbe3ed !important;
}

.ui-visual-focus {
    box-shadow: none !important;
}

.ui-checkboxradio-label i {
    font-size: 20px;
}

.ui-checkboxradio-label b {
    margin-left: 5px;
}

.ui-checkboxradio-radio-label, .ui-checkboxradio-label {
    margin: 3px;
}

.ui-button.ui-checkboxradio-label, .w3-checkbox {
    border: 1px solid #ccc !important;
    border-radius: 0px !important;
    background: #fff !important;
    font-weight: normal !important;
    color: #0080a0 !important;
    outline: none !important;
}

    .ui-button.ui-checkboxradio-label.ui-state-active {
        border: 1px solid #004b5e !important;
        background: #0080a0 !important;
        font-weight: normal !important;
        color: #ffffff !important;
        outline: none !important;
        -webkit-transition: 0.5s;
    }

        .ui-button.ui-checkboxradio-label.ui-state-active:hover, .ui-button.ui-checkboxradio-label:hover {
            border: 1px solid #004b5e !important;
            background: #004b5e !important;
            font-weight: normal !important;
            color: #ffffff !important;
            outline: none !important;
            -webkit-transition: 0.5s;
        }

section.alertify {
    border: 4px solid #0080a0;
}

.alertify-button-ok {
    background-color: #0080a0 !important;
    border: 1px solid #004b5e !important;
}

#rc-imageselect {
    transform: scale(0.77) !important;
    -webkit-transform: scale(0.77) !important;
    transform-origin: 0 0 !important;
    -webkit-transform-origin: 0 0 !important;
}

/* =================================================================
   MODAL VIP — PACIENTE CONFIDENCIAL
   ================================================================= */

/* ---- Overlay ---- */
.vip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 20, 30, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: vipOverlayIn 0.25s ease;
}

    .vip-overlay.vip-closing {
        animation: vipOverlayOut 0.28s ease forwards;
    }

@keyframes vipOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes vipOverlayOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ---- Card ---- */
.vip-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    margin: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.06), 0 20px 60px rgba(0,0,0,0.22), 0 0 0 1px rgba(200,220,230,0.4);
    overflow: hidden;
    animation: vipCardIn 0.30s cubic-bezier(0.34, 1.46, 0.64, 1);
}

.vip-overlay.vip-closing .vip-modal {
    animation: vipCardOut 0.28s ease forwards;
}

@keyframes vipCardIn {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes vipCardOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-16px) scale(0.97);
    }
}

/* ---- Faixa lateral ---- */
.vip-accent-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #c0392b 0%, #922b21 100%);
    border-radius: 20px 0 0 20px;
}

/* ---- Cabeçalho ---- */
.vip-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 22px 18px 26px;
    background: linear-gradient(135deg, #fdeded 0%, #fff5f5 100%);
    border-bottom: 1px solid #f5c6c6;
}

.vip-icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, #e74c3c 0%, #c0392b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(192,57,43,0.35);
}

.vip-icon {
    width: 26px;
    height: 26px;
    color: #fff;
}

.vip-header-text {
    flex: 1;
    min-width: 0;
}

.vip-badge {
    display: inline-block;
    font-family: 'Calibri', sans-serif;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: 2px !important;
    color: #c0392b !important;
    background: rgba(192,57,43,0.10);
    border: 1px solid rgba(192,57,43,0.25);
    border-radius: 4px;
    padding: 2px 7px;
    margin-bottom: 4px;
}

.vip-title {
    font-family: 'Calibri', sans-serif;
    font-size: 18px !important;
    font-weight: 700;
    color: #7b1c14 !important;
    margin: 0 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2;
}

.vip-close {
    flex-shrink: 0;
    background: rgba(192,57,43,0.08);
    border: none;
    border-radius: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    color: #c0392b;
    padding: 0;
}

    .vip-close svg {
        width: 16px;
        height: 16px;
    }

    .vip-close:hover {
        background: rgba(192,57,43,0.16);
        transform: scale(1.08);
    }

/* ---- Corpo ---- */
.vip-body {
    padding: 22px 26px 18px 26px;
}

.vip-desc {
    font-family: 'Calibri', sans-serif;
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.55;
    margin: 0 0 18px 0;
    letter-spacing: 0.2px !important;
}

    .vip-desc strong {
        color: #7b1c14 !important;
    }

/* ---- Campo senha ---- */
.vip-field {
    margin-bottom: 14px;
}

.vip-label {
    display: block;
    font-family: 'Calibri', sans-serif;
    font-size: 11px !important;
    font-weight: 700;
    color: #888 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.vip-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.vip-input-icon {
    position: absolute;
    left: 12px;
    width: 17px;
    height: 17px;
    color: #aaa;
    pointer-events: none;
    flex-shrink: 0;
}

.vip-input {
    width: 100%;
    padding: 11px 42px 11px 38px;
    border: 1.5px solid #dde3e8;
    border-radius: 10px;
    font-family: 'Calibri', sans-serif;
    font-size: 15px !important;
    color: #222 !important;
    background: #f9fbfc;
    letter-spacing: 3px !important;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

    .vip-input:focus {
        border-color: #0080a0 !important;
        background: #fff !important;
        box-shadow: 0 0 0 3px rgba(0,128,160,0.12);
    }

.vip-input-error {
    animation: vipShake 0.5s ease;
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.15) !important;
}

@keyframes vipShake {
    0%,100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.vip-toggle-pw {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #aaa;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

    .vip-toggle-pw svg {
        width: 17px;
        height: 17px;
    }

    .vip-toggle-pw:hover {
        color: #0080a0;
    }

/* ---- Mensagem de erro ---- */
.vip-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 14px;
    animation: vipFadeIn 0.2s ease;
}

    .vip-error svg {
        width: 16px;
        height: 16px;
        color: #dc2626;
        flex-shrink: 0;
    }

.vip-error-msg {
    font-family: 'Calibri', sans-serif;
    font-size: 13px !important;
    color: #b91c1c !important;
    letter-spacing: 0.2px !important;
}

@keyframes vipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Botões de ação ---- */
.vip-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 6px;
}

.vip-btn {
    font-family: 'Calibri', sans-serif;
    font-size: 14px !important;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.5px !important;
    transition: all 0.2s;
    white-space: nowrap;
}

    .vip-btn svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

.vip-btn-cancel {
    background: #f1f4f7;
    color: #666 !important;
}

    .vip-btn-cancel:hover {
        background: #e4e9ee;
        color: #333 !important;
    }

.vip-btn-confirm {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(192,57,43,0.35);
}

    .vip-btn-confirm:hover {
        background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
        box-shadow: 0 6px 18px rgba(192,57,43,0.45);
        transform: translateY(-1px);
    }

    .vip-btn-confirm:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(192,57,43,0.3);
    }

/* ---- Rodapé decorativo ---- */
.vip-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 26px 14px 26px;
    font-family: 'Calibri', sans-serif;
    font-size: 11px !important;
    color: #bbb !important;
    letter-spacing: 0.5px !important;
    border-top: 1px solid #f0f3f5;
}

    .vip-footer svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
        color: #ccc;
    }

/* ---- Responsivo mobile ---- */
@media (max-width: 600px) {
    .vip-modal {
        margin: 12px;
        border-radius: 16px;
    }

    .vip-header {
        padding: 18px 16px 14px 20px;
    }

    .vip-body {
        padding: 18px 20px 14px 20px;
    }

    .vip-footer {
        padding: 10px 20px 12px 20px;
    }

    .vip-actions {
        flex-direction: column-reverse;
    }

    .vip-btn {
        justify-content: center;
        width: 100%;
    }
}