/*select:has(option[value=""]:checked){*/
/*    color:#999*/
/*}*/
.form-select:focus {
    outline: none !important;
    border-color: #d63384 !important;
    box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.1) !important;
}
.form-control:focus {
    outline: none !important;
    border-color: #d63384 !important;
    box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.1) !important;
}
.form-check-input:focus {
    outline: none !important;
    border-color: #d63384 !important;
    box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.1) !important;
}
.form-switch .form-check-input:focus {
    /*background-image: none !important;*/
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ba3382'/%3e%3c/svg%3e") !important
}
.form-switch .form-check-input:checked {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important
}
option{
    color: rgb(255, 255, 255);
}
nav{
    background-color: #d63384;
}
.mobile-card-footer{
    background-color: rgb(0 0 0 / 0%) !important;
    padding: 0 !important;
}
.btn_pink{
    background-color: #d63384 !important;
    border: none !important; 
}
.btn_pink:hover{
    background-color: #d63384 !important;
    border: none !important; 
}
.btn_pink:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ffacdf;
}
#card_dol{
    border: 1px  solid #d63384;
    border-radius: 5px;
    padding: 5px;
    background-color: #d6338461
}
#add_card{
    border-radius: 5px;
    background-color: #80808030
}
#add_card:hover{
    background-color: #80808063;
}
#del_card{
    padding: 2px;
}
#del_card:focus {
  outline: none;
}
#calendar, #repeat_before{
    border-radius: 0.375rem;
    background-color: #00000000;
    border-width: 1px;
    border-color: #495057;
    border-style: solid;
    padding-left: .375rem;
    padding-right: .375rem;
    width: 100%;
    height: 100%;
    padding-top: .375rem;
    padding-bottom: .375rem;
}

.dropdown-toggle::after {
    content: '' !important;
    border: none !important;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid white !important;
    border-right: 2px solid white !important;
    transform: rotate(45deg);
    margin-left: 0 !important;
    transition: transform 0.2s;
}

/* Когда дропдаун открыт */
.dropdown-toggle.show::after {
    transform: rotate(-135deg);
}
.dropdown-divider {
    border-top: 0 !important;
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .day{
        display: none;
    }
    .day.active{
        display: table-cell;
    }
    /*#change_week{*/
    /*    display: none;*/
    /*}*/
}

/* десктоп */
@media (min-width: 769px) {   
    .day{
        display: table-cell;
    }
    /*#change_day{*/
    /*    display: none;*/
    /*}*/
}

@supports (-webkit-touch-callout: none) {

    /* ---- Отключаем iOS авто-увеличение текста форм ---- */
    html {
        -webkit-text-size-adjust: 100%;
    }

    /* ---- Нормализуем нативные контролы iOS ---- */
    input,
    select,
    textarea,
    button {
        -webkit-appearance: none;
        appearance: none;
        font-size: 16px !important;   /* КРИТИЧНО: убирает zoom iOS */
        line-height: normal;
    }

    /* ---- Фикс высоты select (главный баг) ---- */
    select.form-control,
    select {
        height: 44px !important;
        min-height: 44px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        padding-left: 12px !important;
        padding-right: 36px !important; /* место под стрелку */
        border-radius: 0.375rem;
        background-position: right 12px center;
        background-repeat: no-repeat;
        background-size: 12px;
    }

    /* ---- Рисуем свою стрелку select (чтобы iOS не ломал) ---- */
    select {
        background-image: url("data:image/svg+xml;utf8,\
        <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'>\
        <polyline points='5,7 10,12 15,7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/>\
        </svg>");
    }

    /* ---- Placeholder цвет для select ---- */
    select:invalid {
        color: #999 !important;
    }

    select option {
        color: #000;
    }

    /* ---- Фикс input date ---- */
    input[type="date"] {
        height: 44px !important;
        min-height: 44px !important;
        padding: 10px 12px !important;
    }

    /* ---- Убираем внутренние iOS отступы кнопок ---- */
    button,
    .btn,
    .btn_pink {
        height: 44px;
        min-height: 44px;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        line-height: normal !important;
    }

    /* ---- Твой календарь (второй источник кривизны) ---- */
    #calendar,
    #repeat_before {
        height: 44px !important;
        min-height: 44px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* ---- Убираем iOS скругление и внутреннюю тень ---- */
    input,
    select,
    textarea {
        border-radius: 0.375rem;
        box-shadow: none;
    }
}

#clientsColumn {
    height: calc(100vh - 120px);
    overflow-y: auto;
}

#clientList .list-group-item {
    cursor: pointer;
    transition: background .15s;
}

#clientList .list-group-item:hover {
    background: rgba(214,51,132,.08);
}

/* Добавьте стиль для уведомлений об ошибках */
.alert-notification.error {
    background-color: #dc3545;
    color: white;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 768px) {

    #clientsColumn {
        height: auto;
        border-right: none !important;
    }

    #cardColumn {
        padding-top: 0;
    }

    #clientCard {
        margin-top: 15px;
    }
}
