.ui-datepicker {
    margin-left: 220px;
    margin-top: -50px;
}

#modalSchedule input {
    width: 173px;
}

@media (min-width: 1023px) and (max-width: 1025px) {
    .planificador {
        padding: 0 0 20px 0 !important;
    }
}

h1 {
    margin-bottom: 20px;
}

.text-danger {
    font-weight: bold;
    color: red !important;
}

.save {
    text-align: right;
}

.messages {
    margin: 20px 0;
}

#schedule_main {
    border: 1px dotted #CCC;
    margin: 5px;
    padding: 5px;
    text-align: left;
    overflow-x: auto;
}

#formChangeDate {
    text-align: left;
    display: inline;
}

#formChangeDate input {
    margin-right: 20px;
}

#formChangeDate input#gotodate, #formChangeDate input#date {
    width: auto !important;
    text-align: center;
    display: inline;
}

#formChangeDate input#last_button, #formChangeDate input#date {
    margin-right: 0;
}

#formChangeDate select {
    display: inline;
    width: 213px;
    margin-left: 7px;
}

div#week_header {
    margin: 40px 0 10px 0;
    display: inline;
}

div#week_header form {
    display: inline;
}

div#week_header form.formSave {
    float: right;
    clear: both;
}

div#week_header input {
    display: inline;
    margin-right: 10px;
}

div#schedule {
}

div#schedule div.day_schedule {
    padding: 40px 0 40px 0;
    border-bottom: 1px solid #CCC;
    display: block;
    text-align: right;
    font-size: 10px;
}

div#schedule div.closed {
    display: block;
    border: none;
}

div#schedule div.closed div.day_header {
    border-bottom: 2px solid #CCC;
    padding: 0 0 40px 0;
}

div#schedule div.last_schedule, div#schedule div.last_schedule div.day_header {
    border-bottom: none;
}

div#schedule div.day_header {
    text-align: left;
    font-size: 14px;
}

div#schedule span.current_day_message {
    display: inline-block;
    text-align: left;
    width: 160px !important;
}

div#schedule span.current_day_message span {
    font-weight: bold;
}

div#schedule div.day_header form.formCopyDay {
    display: inline;
}

div#schedule button {
    width: 30px;
    height: 35px !important;
    background-size: 100%;
    margin: 0 0 0 2px;
    border: none;
}

div#schedule button[disabled] {
    cursor: not-allowed;
}

div#schedule button.btn-copy-resource {
    background: url(../img/copy.png) no-repeat;
    border: 1px solid #2e6da4;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background-size: 100%;
}

div#schedule button.btn-paste-resource {
    background: url(../img/paste.png) no-repeat;
    border: 1px solid #2e6da4;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background-size: 100%;
}

div#schedule button.btn-paste-resource[disabled] {
    opacity: 0.65;
}

button.btn:not(.btn-default) {
    background-color: #E2E2E2;
    border: 1px solid #2e6da4 !important;
    color: #000;
    background-size: 100%;
}

button.btn:not(.dropdown-toggle):not(.btn-default):hover, button.btn-copy-resource:hover, button.btn-paste-resource:hover {
    background-color: #286090 !important; /* 4880C0*/
    border: 1px solid black !important;
    color: white;
}

button.btn img {
    width: 30px;
    height: 30px;
    margin-top: -5px;
}

div#schedule div.day_header button {
    width: auto;
    display: inline;
    height: 30px;
}

div#schedule tr td {
    height: 35px;
}

div#schedule tr td .resource_name {
    margin-right: 3px;
    /*word-break: break-all;*/
    width: 72px;
    display: block;
    word-wrap: break-word;
}

.bartime {
    color: #0033CC;
    height: 20px;
    position: relative;
    font-size: 10px;
}

.bartime td:first-child {
    width: 72px;
}

.bartime td:first-child span {
    margin-right: 10px;
    color: red;
}

.bartime td div.hours {
    display: inline-block;
    float: left;
    clear: both;
}

.bartime td div.hour_work_day {
    font-size: 12px;
    width: 60px;
    height: 18px;
    padding: 0;
    margin-top: 0;
    border: 1px solid #0033CC;
    border-right: none;
    color: #0033CC;
    background-color: #FFFFFF;
    text-align: left;
    float: left;
}

.bartime td div.last {
    border-right: 1px solid #0033CC;
}

.bartime td.total {
    width: 25px;
    color: #000;
}

.bartime td.total2 {
    width: 42px;
}

.bartime td.buttons {
    width: 68px;
}

div#schedule table tr.machines td {
    background-color: #DDE;
}

div#schedule table td div.machines {
    border-bottom: 1px solid #DDD;
    height: 16px;
    text-align: center;
    color: #000;
    font-size: 14px;
}

div#schedule table td div a span, div#schedule table td div a span div {
    cursor: pointer;
}

div.schedule_one_day table td a, div.schedule_one_day table td div a span, div.schedule_one_day table td div a span div {
    cursor: default !important;
}

div#schedule table td.bar_resource_schedule {
    border: 1px solid #7b1867;
    background-color: #e050c4;
    height: 23px;
}

table .resource_grid {
    position: relative;
    height: 20px;
}

table .resource_grid div.modal {
    text-align: left;
}

table .bar_center_location_background {
    border: 0 solid #33CC00;
    background-color: #CCFFCC;
    height: 23px;
    padding: 1px;
}

table .resource_grid .bar_center_location_background, table .resource_grid .bar_resource_schedule, table .resource_grid .bar_citas_previas_schedule, table .resource_grid .bar_cita {
    position: absolute;
    float: left;
    text-align: center;
}

table .bar_resource_schedule {
    display: inline;
    border: 1px solid #7b1867;
    background-color: #e050c4;
    height: 23px;
    padding: 1px;
}

table .bar_citas_previas_schedule {
    display: inline;
    border: 1px solid #0022a4;
    background-color: #5e7fff;
    height: 23px;
    padding: 1px;
}

table .bar_cita {
    display: inline;
    border: 1px solid #FF0000;
    background: #FFCECE url(../img/coche.png) no-repeat 50% 0;
    margin: 0;
    height: 23px;
    padding: 1px;
}

div#schedule form.formSave input {
    display: inline;
}

.legend table {
    margin: 60px auto 0 auto;
    text-align: left;
}

.legend td {
    color: #0033CC;
    font-size: 10px;
    line-height: 25px;
    width: 300px;
}

.legend td.left {
    width: 200px;
}

.legend td span {
    display: inline-block;
    width: 30px;
    height: 20px;
}

.legend td span.bar_center_location_background {
    border: 1px solid #33CC00;
}

.legend td .non_work_day, .non_work_day {
    border: 1px solid #FFCC00;
    background-color: #FFFFCC;
    padding: 1px;
}

div.addSchedule {
    margin-top: 40px;
}

div.addSchedule span {
    font-weight: bold;
    display: block;
    border-bottom: 1px solid gray;
    margin-bottom: 10px;
}

div.addSchedule span input[type="checkbox"] {
    margin-left: 10px !important;
}

.modal-footer button {
    margin-bottom: 0;
}
