body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Slab', 'Roboto', sans-serif;
}
.admin .message {
    padding: 1rem;
    background-color: #e0ffe0;
    border: 1px solid #8bc34a;
    color: #2e7d32;
    border-radius: 4px;
}

header {
    border-bottom: solid 1px #cac8c3;
    background-color: #fdfdfd;
    display: block;
    line-height: 40px !important;
    position: sticky;
    top: 0;
    margin-bottom: 30px;
    z-index: 1;
}

/* Основная обёртка */
header .header-inner {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;      /* По умолчанию — в колонку */
    align-items: center;         /* Горизонтальное выравнивание по центру */
    text-align: center;          /* Текст по центру */
    padding: 10px 0;
}

.button-primary,
.button[disabled]:focus, .button[disabled]:hover, button[disabled]:focus, button[disabled]:hover, input[type='button'][disabled]:focus, input[type='button'][disabled]:hover, input[type='reset'][disabled]:focus, input[type='reset'][disabled]:hover, input[type='submit'][disabled]:focus, input[type='submit'][disabled]:hover
{
    background-color: #fce000;
    border-color: #fce000;
    color: #000;
}

/* При ширине более 600px — в строку и по центру */
@media (min-width: 600px) {
    header .header-inner {
        flex-direction: row;
        justify-content: center;
    }
}

/* Сброс и оформление списков внутри header */
header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    font-family: 'YS Text', Helvetica, Arial, sans-serif;
    margin-bottom: 0;
}

/* Ссылки-кнопки */
header .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'YS Text', Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: #000;
    background-color: #fce000;
    border: none;
    border-radius: 16px;
    padding: 0 15px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.115s ease-out;
    margin: 5px;
}

header .btn:hover {
    background-color: #ffef6b;
}

/* Телефонная ссылка */
header .phone {
    box-sizing: border-box;
    width: 100%;
    white-space: nowrap;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    color: #252525;
    font-weight: 500;
    font-size: 16px;
    margin: 5px;
}

/* Меню в header */
header nav {
    margin-top: auto;
    margin-bottom: auto;
}

/* Текст в header (например, p внутри .header-inner) */
header p {
    margin: 0;
}

/* Логотип (если используется) */
header img {
    width: 248px;
    height: 48px;
}

.loading {
    border: 2px solid #ffef6b;
    border-top: 2px solid #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shift-cards{
    flex-wrap: wrap;
}

.shift-card {
    background: #f8f3f4;
    border: 1px solid #ececec;
    border-radius: 4px;
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: 100%;
}

.card-header {
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #d5cdcf;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    padding-bottom: 1rem;
}
.card-header img {
    border-radius: 10px;
    max-width: 64px;
    max-height: 64px;
    margin-right: 1.5rem;
}
.card-header h4 {
    margin: 0;
    font-weight: 600;
}

.card-header .location {
    color: #666;
    margin-top: 0.25rem;
    margin-bottom: 0;
}
.card-body {
    display: flex;
    justify-content: space-between;
    font-size: 1.8rem;
    margin: 5px;
    align-items: center;
    font-weight: bold;
}
.card-body p {
    margin: 0.25rem 0;
}

.card-body .time {
    font-weight: 600;
    text-align: right;
}
.card-body .duration {
    text-align: end;
    font-weight: normal;
}

.card-body .rate {
    font-size: 2rem;
}

.card-footer {
    margin: 1rem 1rem 0 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap !important;
}

.shift-card-wrapper{
    padding: 1rem !important;
}
@media (min-width: 1120px) {
    .shift-card-wrapper{
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .card-footer {
        justify-content: space-between;
    }
}
.shift-card .date {
    font-size: 1.8rem;
    font-weight: bold;
}
.card-header h4 {
    font-size: 2.0rem !important;
}
@media (max-width: 40rem) {
    .column-25, .column-50 {
        max-width: 100% !important;
    }
}



#loaderOverlay {
    display: none;                   /* скрыт по умолчанию */
    position: relative;              /* влияет только на свою область */
    min-height: 120px;               /* чтобы место не «схлопывалось» */
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    font-size: .9rem;
    color: #666;
}

/* Показываем (добавляется класс .active) */
#loaderOverlay.active { display: flex; }

/* Спиннер */
#loaderOverlay .spinner {
    width: 44px; height: 44px;
    border: 5px solid #eee;
    border-top: 5px solid #008cff;
    border-radius: 50%;
    animation: spin .9s linear infinite;
    margin-right: .8rem;
}
@keyframes spin { to { transform: rotate(360deg); } }