@charset "UTF-8";

html, body {
    height: 100%;
}
.hide1C {
    display: none !important;
}
body {
    font-size: 100%;
    line-height: 1.5;
    font-family: sans-serif;
    background: #2c2c2f;
    color: #595656;
    margin: 0px;  
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */
  user-select: none; /* Стандартный синтаксис */
}

*, *:before, *:after {
    box-sizing: border-box;
}

.group:after {
    content: "";
    display: table;
    clear: both;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: baseline;
}

a {
    text-decoration: none;
}

.calendar-wrapper {
    margin: auto;
    width: 360px;
    /* margin: 3em auto; */
    /* padding: 2em; */
    border: 1px solid #dcdcff;
    border-radius: 5px;
    background: #fff;
    /* height: 300px; */
}

table {
    clear: both;
    width: 100%;
    border: 1px solid #dcdcff;
    border-radius: 3px;
    border-collapse: collapse;
    color: #444;
}

td {
    height: 2em;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #dcdcff;
    border-top: 1px solid #dcdcff;
    width: 10.28571429%;
}

td.not-current, td.last-day {
    color: #a49a9a;
}

td.today {
    /* font-weight: 700; */
    outline: dotted 1px blue;
    /* font-size: 1.5em; */
    text-decoration: underline;
    text-decoration-color: #687694;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

thead td {
    border: none;
    color: #54547d;
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 600;
}

#btnPrev {
    float: left;
    /* margin-bottom: 20px; */
}

#btnPrev:before {
    content: '<<';
    padding-right: 4px;
}

#btnNext {
    float: right;
    /* margin-bottom: 20px; */
}

#btnNext:after {
    content: '>>';
    padding-left: 4px;
}

#btnPrev, #btnNext, #btnToDay {
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #c0c0c0;
    cursor: pointer;
    font-family: sans-serif;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

#btnPrev:hover, #btnNext:hover {
    color: #28283b;
    /* font-weight: bold; */
}

#btnToDay:hover {
    font-weight: bold;
}
tr:nth-child(n+2) td.last-day {
    cursor: not-allowed;
    opacity: 0.7;
    /* color: white; */
}

tr:nth-child(n+2) td {
    cursor: pointer;
    /* text-transform: uppercase; */
    transition: all 0.3s ease;
}

tr:nth-child(n+2) td:hover {
    color: #28283b;
    font-weight: bold;
    /* font-size: 1.3em; */
    /* background-color: #99e0a5; */
}

tr:nth-child(n+2) td:nth-child(n+6) {
    color: red;
}

tr:nth-child(n+2) td.not-current:nth-child(n+6),
tr:nth-child(n+2) td.last-day:nth-child(n+6){
    color: #d28787;
}

#page-calend td.select-day {
    background-color: #646468;
    color: white;
}

td.work-day {
    background-color: #30f51b;
    color: white;
}

td.work-day.select-day {
    background-color: #646468;
    color: white;
    outline: #30f51b solid 2px;
}
thead {
    font-size: 12px;
}

button#btnToDay {
    margin: auto;
    font-size: 0.8em;
    text-transform: none;
    color: #f4f4f5;
    /* border-bottom: solid 1px; */
    cursor: pointer;
}

.calendar-month {
    background-color: #62686f;
    display: flex;
}


div#calendTime {
    display: flex;
    justify-content: center;
    background-color: #434343;
    padding: 4px;
    align-items: center;
    flex-direction: row;
}

input#calendHour {
    width: 5em;
}

input#calendMin {
    width: 5em;
    text-align: center;
}

  input[type="number"] {
    -moz-appearance: textfield; /* убирает стрелки в Firefox */
    background: #434343;
    border: 1.5px solid #cbc2c2;
    color: #fff;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 1rem;
    font-weight: bold;
    transition: border-color 0.3s, box-shadow 0.3s;
    text-align: center;
  }

  /* Сохраняем колесико и стрелки */
  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
    opacity: 1; /* делаем стрелочки видимыми */
    cursor: pointer;
    height: auto;
  }
  input#calendHour:hover, input#calendMin:hover {
    border-color: #64b5f6;
    /* font-size: 110%; */
  }

  input#calendHour:focus, input#calendMin:focus {
    outline: none;
    border-color: #90caf9;
    box-shadow: 0 0 8px #64b5f6;
  }


label {align-content: center;color: white;padding-right: 5px;}

.time-wrapper {
    /* outline: red solid 1px; */
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    background-color: 1;
}
.time-wrapper > div {
    width: 100%;
}
/* .time-wrapper > div,  .time-wrapper > div >div,  */
.time-wrapper > div {
     text-align: center;
    color: #dedcdc; 
}
.time-wrapper > div >div >div    {
    outline: black solid 1px;
    text-align: center;
    color: #dedcdc;
    padding-top: 5px;
    padding-bottom: 5px;
}
/* .morning {
    grid-area: m;
}

.day {
    grid-area: d;
}

.evening {
    grid-area: e;
}
.time-wrapper > div[data-time] {
     grid-area: t;
} */

.time-select {
    background-color: #58738b;
    font-weight: bold;
}

div#btnRecServ, div#cmd-bottom {
    /* outline: red solid 1px; */
    text-align: center;
    width: 60%;
    margin: auto;
    margin-top: 5px;
    border: azure;
    border-style: solid;
    border-radius: 10px;
    padding: 3px;
    font-size: large;
    font-weight: bold;
    background-color: #475e73;
}

#btnRecServ > span, #cmd-bottom > span {
    color: white;
}

#page-calend #divCal thead tr {
    display: none;
}

div#top-calendar {
    background-color: #bdd0e1;
    font-weight: 600;
    text-align: center;
}

div#top-calendar span b{
    color: #485c95
}

button#btnPrev, button#btnNext {
    margin: unset;
}

div#divCal {
    background-color: #c0c8cf;
}

td.day.master {
    background-color: #b0c3d3;
    color: #1000e3 !important;
    font-weight: 600;
    border-color: #ffca00;
}

div#not-calend {
    color: #bfbebe;
    text-align: center;
    font-size: 1.2em;
    margin: 15px;
}

.time-wrapper:has(div div) + div#not-calend {
    display:none;
}

@media (min-width: 768px) {
    #page-calend.page-active {
        /* календарь и время — всегда стопкой (вертикально), без двухколоночной сетки */
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 16px;
    }
    .calendar-wrapper {
        width: auto;
        max-width: 100%;
    }
    .time-wrapper {
        flex-direction: row; /* утро/день/вечер в ряд во всю ширину под календарём */
        gap: 12px;
    }
    .time-wrapper > div {
        width: 100%;
    }
    div#top-calendar,
    div#not-calend,
    div#btnRecServ {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    #page-calend.page-active {
        gap: 32px;
        padding: 24px;
    }
}
