/* =========================================
   Кабінет — створення / редагування
   Спокійний, великий, в одну колонку
========================================= */

.cabinet-form-page {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Карточка форми --- */

.cabinet-form-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    padding: 26px 28px;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.10);
    position: relative;
    overflow: hidden;
}

.cabinet-form-inner {
    position: relative;
    z-index: 1;
}

/* --- Хедер --- */

.cabinet-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.cabinet-form-header-left {
    max-width: 560px;
}

.cabinet-form-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
    margin-bottom: 6px;
}

.cabinet-form-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.cabinet-form-subtitle {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

.cabinet-form-tag {
    font-size: 13px;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 6px 14px;
    color: #4b5563;
    white-space: nowrap;
}

.cabinet-form-tag span {
    font-weight: 600;
}

/* --- Секції --- */

.cabinet-form-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.cabinet-form-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.cabinet-form-section-header {
    margin-bottom: 14px;
}

.cabinet-form-section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cabinet-form-section-subtitle {
    font-size: 13px;
    color: #6b7280;
}

/* --- Групи полів --- */

.cabinet-form-grid {
    display: block; /* ВСЕ В ОДНУ КОЛОНКУ */
}

.cabinet-form-group {
    margin-bottom: 14px;
}

.cabinet-form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.cabinet-form-group .form-control {
    border-radius: 10px;
    border-color: #d1d5db;
    font-size: 15px;
    padding: 10px 11px;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.cabinet-form-group .form-control::placeholder {
    color: #9ca3af;
}

.cabinet-form-group .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59,130,246,0.45);
}

/* --- Блоки змін: все вертикально, великі картки --- */

.cabinet-form-shifts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
}

.cabinet-shift-card {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 14px 14px 12px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.cabinet-shift-card:hover {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.10);
}

.cabinet-shift-header {
    margin-bottom: 10px;
}

.cabinet-shift-title {
    font-size: 14px;
    font-weight: 600;
}

.cabinet-shift-label {
    font-size: 12px;
    color: #6b7280;
}

/* відступи між полями в картці зміни */
.cabinet-shift-card .cabinet-form-group + .cabinet-form-group {
    margin-top: 10px;
}

/* --- Кнопки --- */

.cabinet-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.cabinet-form-actions .btn-primary {
    border-radius: 999px;
    padding-inline: 20px;
    font-weight: 500;
}

.cabinet-form-actions .btn-outline-secondary,
.cabinet-form-actions .btn-light {
    border-radius: 999px;
}

/* --- Адаптив --- */

@media (max-width: 991.98px) {
    .cabinet-form-card {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .cabinet-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cabinet-form-tag {
        align-self: flex-start;
    }
}

@media (max-width: 575.98px) {

    .cabinet-form-card {
        padding: 16px 12px;
    }

    .cabinet-form-title {
        font-size: 20px;
    }

    .cabinet-form-subtitle {
        font-size: 13px;
    }

    .cabinet-form-group .form-control {
        font-size: 14px;
        padding: 9px 10px;
    }

    .cabinet-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cabinet-form-actions .btn {
        width: 100%;
    }
}
