html{position: relative;min-height: 100%;}
body{padding: 0px;margin: 0px;font-family: 'Open Sans', sans-serif;}
.clear {
    clear: both;
}
.sign-wrapper {display: flex;}
.sign-col {
    flex: 1 1 auto;
    height: 100vh;
}
.sing-img {
    position: relative;
    height: 100%;
    background-image: url('../img/login.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.sign-box {
    position: relative;
    margin: 0 auto;
    width: 60%;
    padding: 3rem 1rem;
}
.form-group {
    margin: 15px 0px;
}
label {display:block;}
input {
    margin: 6px 0px;
    font-size: 15px;
    display: block;
    width: 300px;
    padding: 5px;
}
.btn {
    font-size: 14px;
    outline: none;
    padding: 0.625rem 1rem;
    min-width: 120px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    border: 1px solid transparent;
    line-height: 1.5;
    border-radius: .25rem;
    cursor: pointer;
}
.btn-sign {
    color: #fff;
    background-color: #009efb;
    border-color: #009efb;
    width: 315px;
    margin: 10px 0px;
}
.btn-sign:hover {
    background-color: #047cc3;
    border-color: #047cc3;
}
.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
    width: 315px;
    margin: 10px 0px;
}
.btn-danger:hover {
    background-color: #b72c39;
    border-color: #b72c39;
}
.btn-notice {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
    width: 315px;
    margin: 10px 0px;
}
.btn-notice:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}
.fpass {margin: 20px 0px;}
.racc {margin: 40px 0px 20px;}
.emsg {
    font-size: 17px;
    background: #ffd1d1;
    padding: 10px;
    margin-bottom: 11px;
    color: #ea2a2a;
    font-weight: 700;
    display: inline-block;
}

/* Top */
.page-header {
    background-image: linear-gradient(120deg, #009fb9, #5983e8) !important;
    color: #fff;
    min-height: 60px;
}
.fixed {
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    z-index: 5;
}
.logo {
    width: 251px;
    display: block;
    padding: 5px 0px 0px 10px;
    float: left;
}
#mobilemenu {
    display: none;
    float: right;
    margin: 10px;
}
.wraplist {
    list-style-type: none;
    padding: 0px;
}
#main-menu-wrapper li a {
    display: block;
    line-height: 42px;
    min-height: 42px;
    height: auto;
    color: #f1f1f1;
    color: #424242;
    text-decoration: none;
    padding-left: 5px;
    clear: both;
    border-left: 4px solid transparent;
    white-space: nowrap;
}
#main-menu-wrapper li a:hover {
    background-color: rgba(33, 33, 33, 0.1);
    border-left: 4px solid #4d9cf8;
}
#main-menu-wrapper li a i {
    display: inline-block;
    width: 45px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    top: 0px;
    position: relative;
}
#main-menu-wrapper li a i img,#main-menu-wrapper li a span {
    vertical-align: middle;
}
.page-content {
    margin-bottom: 80px;
}

.quick-access {
    font-size:20px;
    line-height: 60px;
}

/* Dashboard */
.page-sidebar {
  height: auto;
  width: 260px;
  position: fixed;
  padding: 0px;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 0 10px 0 rgba(33,33,33,.2);
  -webkit-box-shadow: 0 0 10px 0 rgba(33,33,33,.2);
  -moz-box-shadow: 0 0 10px 0 rgba(33,33,33,.2);
  -o-box-shadow: 0 0 10px 0 rgba(33,33,33,.2);
  -ms-box-shadow: 0 0 10px 0 rgba(33,33,33,.2);
  min-height: 100%;
  height: auto;
}
.maketop { top: 0; }
.page-sidebar #main-menu-wrapper {
  padding-top: 0px;
  overflow: hidden;
  position: relative;
}
#main-content {
  margin-left: 260px;
  display: block;
}
.main-wrapper {
  display: block;
  padding: 15px 0 0 15px;
  margin-left: 0px;
  margin-right: 0px;
}

/*Footer*/
.page-footer {
    padding: 8px 0px 5px;
    font-size: 13px;
    height: 25px;
    background-color: #2b3643;
    text-align: center;
    color:#fff;
    position: absolute;
    bottom: 0;
    height: 25px;
    width: 100%;
}

/* Calendar */
#external-events {
    position: fixed;
    left: 280px;
    top: 80px;
    width: 200px;
    padding: 0 10px;
    border: 1px solid #ccc;
    background: #eee;
    text-align: left;
}

#external-events h4 {
    font-size: 16px;
    padding: 15px 2px 5px;
    margin: 0px;
}

#external-events .fc-event {
    margin: 3px 0;
    cursor: move;
}

#external-events p {
    margin: 1.5em 0;
    font-size: 11px;
    color: #666;
}

#external-events p input {
    margin: 0;
    vertical-align: middle;
}

#calendar-wrap {
    margin-left: 210px;
}
#calendar {
    max-width: calc(100% - 60px);
    margin: 0 auto 100px;
}
.fc-h-event .fc-event-main {
    padding: 4px;
    font-size: 13px;
}
.fc-v-event .fc-event-title {
    white-space: nowrap;
    font-size: 11px;
}
.fc-v-event .fc-event-time,.fc-event-title-container {
    line-height: 20px;
}
.fc-event-done {
    opacity: 0.4;
}
#event_p_manage img {
    vertical-align: middle;
}

/* Form */
#visit_form, #status_move_form {
    display: none;
    width: 700px;
/*    
    position: absolute;
    background: #fff;
    z-index: 10;
    left: 50%;
    transform: translate(-50%, 0);
*/
}
#visit_form.modal, #status_move_form.modal {
    max-width: 700px;
}
.form_panel {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.form_panel_title {
    font-weight: bold;
    font-size: 19px;
}
.form_container {
    padding: 20px;
}
.form_container_title {
    margin: 10px 0px;
    font-weight: bold;
}
.form-row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.form-item {
    width: 50%;
}
.form-item.full {
    width: 100%;
}
.form-item label {
    margin-bottom: 5px;
}
.form-item input {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    margin-bottom: 10px;
    width: 84%;
}
.form-item.full input {
    width: 90%;
}
.form-item select {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 89%;
    margin: 6px 0px 10px;
    font-size: 15px;
    display: block;
    padding: 5px;
}
.form-multi input{
    display: inline-block;
}
.form-multi .mini {
    width: 60px;
    margin: 6px 3px;
}
.form-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 15px auto 20px;
}
.form-buttons .btn {
    width: 215px;
    margin: 0px 10px;
}
#form-error-msg, #form-error-msg-move {
    margin-top: 20px;
    color: red;
    font-size: 14px;
    text-align: center;
}
#status_event_form {
    display: none;
    /*
    position: absolute;
    background: #fff;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    */
    font-size: 15px;
}
/*
#form_status_event {
    width: 400px;
    border: 1px solid #ccc;
}
*/
#status_event_form .form-buttons {
    margin: 25px auto 0px;
}
#status_event_form .btn {
    width: 125px;
    margin: 0px 10px;
    padding: 5px;
}
.bold { font-weight:bold; }

/* 404 */
body#page404{
    background: #f7fafc;
}
.notfound {
    position: absolute;
    left: 50%;
    top: 50%;
    color: #a0aec0;
    font-size: 20px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.notfound .code {
    float: left;
    border-right: 1px solid;
    padding: 0px 10px;
}
.notfound .msg {
    padding: 0px 10px;
    float: left;
}


/* patients */
table#patients {
    text-align: center;
    width: 90%;
    margin: 0 auto;
    border-radius: 5px;
    border-collapse:collapse;
    background:#fff;
    overflow:hidden;
    position:relative
}
.center {
  text-align: center;
}
table#patients *{
    position:relative
}
table#patients td, table#patients th{
    padding-left:8px
}
table#patients thead tr{
    height:60px;
    background-image: linear-gradient(120deg, #009fb9, #5983e8) !important;
    color: #fff;
}
table#patients tbody tr{
    height:50px
}
table#patients tbody tr:last-child{
    border:0
}
table#patients td, table#patients th{
    text-align:left
}
table#patients td.l, table#patients th.l{
    text-align:right
}
table#patients td.c, table#patients th.c{
    text-align:center
}
table#patients td.r, table#patients th.r{
    text-align:center
}
table#patients th {
    font-size:18px;
    color:#fff;
    line-height:1.2;
    font-weight:unset
}
table#patients tbody tr:nth-child(even){
    background-color:#f5f5f5
}
table#patients tbody tr {
    font-size:15px;
}
table#patients tbody tr:hover{
    color:#555;
    background-color:#e1e1e1;
    cursor:pointer
}
.column1{
    width:260px;
    padding-left:40px
}
.column2{
    width:160px
}
.column3{
    width:245px
}
.column4{
    width:110px;
    text-align:right
}
.column5{
    width:170px;
    text-align:right
}
.column6{
    width:222px;
    text-align:right;
    padding-right:62px
}
.patient_edit { filter: brightness(0) invert(1); }
.pagination {
    display: inline-block;
    margin: 50px auto 20px;
}
.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  border: 1px solid #ddd;
  margin: 0 4px;
}
.pagination li a {
  text-decoration: none;
  color: #000;
}
.pagination a.active{
  background-color: #009efb;
  color: #fff;
}
.pagination a:hover:not(.active) {background-color: #ddd;}
#patients-item {
    text-align: center;
    margin: 20px;
}
#patients-item label {
    display: inline-block;
    vertical-align: middle;
}
#patients-item input {
    display: inline-block;
    vertical-align: middle;
}
#patients-item input.btn {
    display: inline-block;
    padding: 4px;
    vertical-align: middle;
    width: 180px;
    margin: 6px;
}

/* patient */
#patient_form {
    width: 640px;
    margin: 10px auto 50px;
}
#patient_form form {
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}
#patient_events ul, #patient_events li{
  list-style: none;
  padding: 0;
}
.patient-wrapper {
    width: 500px;
    margin: 0 auto 100px;
    max-width: 90%
}
#patient_events {
  margin-top: 30px;
  position: relative;
  padding-left: 0px;
}
#patient_events li{
  padding-bottom: 30px;
  border-left: 1px solid #abaaed;
  position: relative;
  padding-left: 20px;
  margin-left: 10px;
}
#patient_events li:last-child{
    border: 0px;
    padding-bottom: 0;
}
#patient_events li:before{
    content: '';
    width: 15px;
    height: 15px;
    background: white;
    border: 1px solid #4e5ed3;
    box-shadow: 3px 3px 0px #bab5f8;
    box-shadow: 3px 3px 0px #bab5f8;
    border-radius: 50%;
    position: absolute;
    left: -10px;
    top: 0px;
}
#patient_events .time {
    color: #2a2839;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    width:100px;
    margin-top: -5px;
}
#patient_events p{
  color: #4f4f4f;
  line-height: 1.5;
  margin-top:0.4rem;
}
#patient_events .patient_event {
    font-size: 13px;
    padding: 7px;
    display: inline-block;
    vertical-align: middle;
    margin-top: -5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 170px;
    text-align: center;
}


/* services */
table#services {
    text-align: center;
    width: 800px;
    margin: 0 auto;
    border-spacing: 0;
    border-collapse: collapse;
}
table#services .ui-icon {
    transform: scale(1.5);
}
table#services th {
    padding: 10px;
    border-bottom: 2px solid #ddd;
}
table#services tr td {
    border-color: #eaeaea;
    padding: 10px;
    border-top: 1px solid #ddd;
}
table#services input {
    width: 60px;
    margin: auto;
    padding: 2px;
    font-size: 13px;
    display: inline-block;
}
table#services input.sduration {
    width: 40px;
}
table#services input.sname {
    width: auto;
}
table#services .minicolors-theme-default .minicolors-input {
    padding-left: 26px;
}
.spreview {
    width: 100px;
    display: block;
    font-size: 13px;
    padding: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.message {
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
}
.success-message {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

@media only screen and (max-width: 1300px) {
    .page-sidebar{
        display:none;
        position: relative;
        width: 100%;
        background: #f3f3f3;
    }
    #main-content{margin: 0px;}
    #external-events{left: 10px;top:126px;}
    #external-events.mobilemenuopen{top: 378px;}
    .logo {
        width:auto;
    }
    #mobilemenu {display: block;}
    .quick-access {
        text-align: center;
        line-height: 26px;
        padding: 10px 10px;
        clear: both;
    }
}

@media only screen and (max-width: 1010px) {
    #calendar-wrap{margin: 0px;}
    #external-events{display:none;}
    .fc .fc-button.fc-dayGridMonth-button,
    .fc .fc-button.fc-timeGridWeek-button,
    .fc .fc-button.fc-timeGridDay-button,
    .fc .fc-button.fc-listWeek-button,
    .fc .fc-button.fc-today-button {display:none;}
    .fc .fc-toolbar-title {font-size: 16px;}
    .main-wrapper {padding-left:0px;}
}

@media only screen and (max-width: 800px) {
    #visit_form.modal, #status_move_form.modal {
        max-width: 350px;
        font-size: 14px;
        padding: 5px;
    }
    .form_panel {
        padding: 8px 15px;
    }
    .form_panel_title {
        font-weight: bold;
        font-size: 16px;
    }
    .form_container {
        padding: 5px 15px;
    }
    .form-item input,.form-item select {
        padding: 2px;
    }
    .form-multi {
        font-size: 13px;
    }
    .form-multi .mini {
        width: 37px;
        margin: 6px 0px
    }
    #form-error-msg,#form-error-msg-move {
        margin-top: 0px;
    }
    .form-buttons .btn {
        width: 120px;
        margin: 0px 10px;
        font-size: 13px;
        height: 37px;
    }
    .sign-box {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }
    .sing-img {
        display: none;
    }

    table#services,table#patients { width: auto;}
    table.res_table,
    .res_table thead,
    .res_table tbody,
    .res_table th,
    .res_table td,
    .res_table tr { 
		display: block; 
	}
    .res_table thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	.res_table tr { border: 1px solid #ccc; }
	table#services.res_table tr td,
	table#patients.res_table tr td,
	.res_table td {
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%; 
		white-space: normal;
		text-align:left;
	}
	.res_table td:before {
		position: absolute;
		top: 13px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
		text-align:left;
		font-weight: bold;
	}
    .res_table td:before { content: attr(data-title); }
    .message { font-size: 15px; }

    table#patients.res_table tr td { padding: 10px 10px 10px 50%; }
    table#patients tbody tr {height: auto;}
    .pagination a { padding: 8px 12px; }

    #patient_form { width: 100%; }
    .res_table td.patient_edit_row:before { top:18px; }
}