
.visible-md {
    display: none !important;
}
@media (max-width:1024px){
    #hq > .patient_all {
        min-width: unset;
    }
    #hq > .patient_dashboard {
        min-width: unset;
    }
    .patient_all .box_gray3 .tagbox {flex-wrap: wrap;}
    .patient_all .mb10.w100.flex.gap5 {flex-wrap: wrap}
    .patient_dashboard .grid_v2{grid-template-columns:1fr;width: 100%;margin: 0;}
    .patient_dashboard .left_side{top: 55px;display:flex;flex-direction:row;gap:0px;width:100%;box-shadow:none;margin-bottom:10px;z-index: 3}
    .patient_dashboard .left_side li{flex:1;}
    .patient_dashboard .left_side li a{padding:10px 0;font-size:11px;flex-direction: row;justify-content: center;gap: 5px}
    .patient_dashboard .left_side li h6{padding:10px 0;}
    .hidden-md {
        display: none !important;
    }
    .visible-md {
        display: block !important;
    }
    .visible-md.flex {
        display: flex !important;
    }
}
@media (max-width:640px){
    .patient_dashboard .grid_v2{padding:0 10px;}
    .patient_dashboard .grid{grid-template-columns:1fr;gap:15px;}
    .patient_dashboard .left_side{top: 55px;display:flex;flex-direction:row;gap:0;margin-bottom:10px;}
    .patient_dashboard .left_side li{flex:1;}
    .patient_dashboard .left_side li a{padding:10px 0;font-size:10px;height: 100%;}
    .patient_dashboard .left_side li a p{display:none;}
    .patient_dashboard .left_side li h6{font-size:10px;padding:8px 0;}
    .patient_dashboard .table{overflow-x:auto;}
    .hidden-xs {display: none !important;}
    .patient_dashboard .table colgroup {display: none !important;}
    .patient_dashboard .table {min-height: unset; width: 100%}
    .patient_dashboard .table table {min-height: unset; width: 100%}
    .patient_dashboard .table table,
    .patient_dashboard .table table tbody {display:block;width:100%;max-width: unset!important;border-radius: 0!important; }
    .patient_dashboard .table table tr {display:block;width:100%;max-width: unset!important;border-radius: 0!important; border: 2px solid #00000015!important;}
    .patient_dashboard .table table th,
    .patient_dashboard .table table td{display:block;width:100%;max-width: unset!important;border-radius: 0!important;border: 0!important;}
    .patient_dashboard .table table td{border-bottom:1px solid #00000015!important;}
    .patient_dashboard .table table thead{display:none;}
    .patient_dashboard .table tr{border:1px solid #e5e5e5;border-radius:5px;padding:5px;margin-bottom:10px;}
    .patient_dashboard .table td{text-align:left;white-space:normal;max-width:none;}
    .patient_dashboard .table td::before{content:attr(data-label);display:block;font-size:11px;color:#888;margin-bottom:2px;}
    .patient_dashboard #patientFix {width: 90%; padding: 10px}
    .patient_dashboard .box_line table td.txt_gray {display: none}
    .patient_dashboard div.profile {flex-direction: column}

    .patient_all .right_patient thead {display: none}
    .patient_all .right_patient table,
    .patient_all .right_patient tbody{display:block;}
    .patient_all .right_patient tr{
        display:grid;
        grid-template-columns:70px 1fr;
        gap:4px 8px;
        border:1px solid #e5e5e5;
        border-radius:6px;
        padding:10px;
        margin-bottom:10px;
        background:#fff;
    }
    .patient_all .right_patient td{
        display:contents;
        white-space:normal;
        border:0;
    }
    .patient_all .right_patient td::before{
        content:attr(data-label);
        font-size:11px;
        color:#888;
        text-align: left!important;
    }
    .patient_all .right_patient td:empty::before{
        display: none;
    }
    .patient_all .right_patient td[data-label="관리"]::before{content:'';}
    .patient_all .right_patient td[data-label="이름"]{
        grid-column:1/3;
        font-size:15px;
        font-weight:700;
        margin-bottom:4px;
    }
    .patient_all .right_patient td[data-label="관리"]{
        grid-column:2/3;
        text-align:right;
        margin-top:6px;
    }
}