.add-stable-services .horizontal-wrapper {
    height: auto;
}

.add-stable-services .horizontal-wrapper + .horizontal-wrapper {
    margin-top: 28px;
}

.add-stable-services .section-header {
    margin-bottom: 14px;
}

.add-stable-services .tab-content {
    min-height: 0;
}

.add-stable-services .profile__header {
    margin-bottom: 16px;
}

.add-stable-services .profile__header .navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 8px;
}

.stable-edit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.stable-edit-head__info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.stable-edit-head__action {
    flex: none;
    width: fit-content !important;
    white-space: nowrap;
}

.stable-edit-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e6ecf5;
    flex: none;
}

.stable-edit-meta,
.stable-edit-intro {
    color: #5a6b86;
    font-size: 14px;
}

.stable-edit-intro {
    font-size: 13px;
    margin-top: 4px;
}

.add-stable-services .main-form.custom-form .form-control,
.add-stable-services .main-form.custom-form .form-select {
    background-color: #fff;
    text-align: start;
}

.coupon-relations {
    margin-bottom: 8px;
}

.coupon-check-card {
    border: 1px solid #eadfb8;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 20px rgba(12, 71, 69, .04);
}

.coupon-check-card__head .main-button.btn-sm {
    padding: 0.35rem 0.75rem;
    min-height: 0;
    font-size: 0.82rem;
}

.coupon-check-card__title {
    margin: 0;
    font-size: 15px;
    color: #0c4745;
    font-weight: 700;
}

.coupon-check-card__body {
    padding: 10px;
    max-height: 220px;
    overflow: auto;
}

.coupon-check-item.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    padding: 10px 12px;
    min-height: 0;
    border: 1px solid #e6ecf5;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.coupon-check-item:last-child {
    margin-bottom: 0;
}

.coupon-check-item:hover {
    border-color: #dbab33;
    background: #fffdf6;
}

.coupon-check-item:has(.form-check-input:checked) {
    border-color: #0c4745;
    background: #f3f8f7;
}

.coupon-check-item .form-check-input {
    position: static;
    float: none;
    margin: 0;
    flex: none;
    accent-color: #0c4745;
}

.coupon-check-item .form-check-label {
    margin: 0;
    cursor: pointer;
    color: #1d2b3a;
}

.coupon-check-empty {
    font-size: 13px;
    color: #5a6b86;
    padding: 8px 4px;
}

.add-stable-services .main-form.custom-form .form-control[dir="ltr"] {
    text-align: left;
    direction: ltr;
}

.stable-package-dropzone,
.stable-dropzone {
    border: 1px dashed #d6c48a;
    border-radius: 12px;
    background: #fff;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s;
}

.stable-package-dropzone:hover,
.stable-package-dropzone.dz-drag-hover,
.stable-dropzone:hover,
.stable-dropzone.dz-drag-hover {
    border-color: #dbab33;
    background: #fffdf6;
}

.existing-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.existing-media-card {
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
}

.existing-media-card img,
.existing-media-card video {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.existing-media-remove {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b42318;
    font-size: .8rem;
}

.stable-repeat-item {
    border: 1px solid #e6ecf5;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    margin-bottom: 12px;
}

.add-stable-services .main-card {
    height: 100%;
}

.add-stable-services .section-empty {
    color: #5a6b86;
    margin: 8px 0 16px;
}

.add-stable-services .main-table {
    margin-bottom: 16px;
}

.add-stable-services .main-table .table-responsive {
    overflow: auto;
}

.add-stable-services .main-table .table-responsive:has(.dataTable) {
    overflow: hidden;
}

.add-stable-services .main-table:not(:has(.dataTable)) th:last-child,
.add-stable-services .main-table:not(:has(.dataTable)) td:last-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #f6f6f6;
    min-width: 170px;
    white-space: nowrap;
}

.add-stable-services .main-table table.dataTable th:last-child,
.add-stable-services .main-table table.dataTable td:last-child {
    position: static !important;
    left: auto;
    min-width: 0;
    background: transparent;
}

.stable-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stable-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.stable-action-btn.edit {
    border: 1px solid #0c4745;
    color: #0c4745;
    background: #fff;
}

.stable-action-btn.delete {
    border: 1px solid #0c4745;
    background: #0c4745;
    color: #fff;
}

.add-stable-services .main-modal .modal-header {
    border: 0;
    padding: 0 0 16px;
}

.add-stable-services .main-modal .modal-body {
    padding: 0;
}

.add-stable-services .main-modal .modal-footer {
    border: 0;
    padding: 20px 0 0;
    gap: 12px;
    justify-content: flex-start;
}

.stable-modal-field {
    margin-bottom: 16px;
}

.add-stable-services .main-modal .form-control,
.add-stable-services .main-modal textarea.form-control {
    background: #f6f6f6;
    height: auto;
    min-height: 48px;
}

.stable-modal-warn {
    text-align: center;
    font-size: 16px;
    color: #363636;
    line-height: 1.8;
}

.add-stable-services .main-table .table {
    margin-bottom: 0;
}

.add-stable-services .main-table td {
    vertical-align: middle;
}

.add-stable-services .main-table .form-control {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 110px;
}

.add-stable-services .main-table textarea.form-control {
    height: auto;
    min-height: 64px;
}

.add-stable-services .main-table .section-buttons {
    gap: 8px;
    flex-wrap: wrap;
}

.add-stable-services .stable-thumb {
    width: 64px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 8px;
}

.stable-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #fff;
    padding-top: 16px;
    padding-bottom: 8px;
    box-shadow: 0 -8px 24px rgba(22, 48, 95, .06);
}

.appointment-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    padding: 10px 12px;
    border: 1px solid #e6ecf5;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.appointment-check-item.is-visible {
    display: flex !important;
}

.appointment-check-item input {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    width: 18px;
    height: 18px;
    flex: none;
    pointer-events: auto;
    accent-color: #0c4745;
}

.appointment-check-item span {
    cursor: pointer;
    color: #1d2b3a;
}

.appointment-check-item:hover {
    border-color: #dbab33;
    background: #fffdf6;
}

.appointment-check-item:has(input:checked) {
    border-color: #0c4745;
    background: #f3f8f7;
}

@media (max-width: 767px) {
    .stable-edit-head {
        flex-direction: column;
        align-items: stretch;
    }

    .stable-edit-head__action {
        width: 100% !important;
        text-align: center;
    }
}

.stable-appointment-weekdays {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.stable-appointment-weekdays .appointment-check-item {
    margin: 0;
}

.stable-appointment-preview {
    color: #0c4745;
    font-size: 14px;
    font-weight: 600;
}

.coupon-schedules-row > td {
    background: #f8faf9;
    border-top: 0;
    padding-top: 0;
    padding-bottom: 18px;
}

.stable-coupons-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 1rem;
    background:
        radial-gradient(circle at top left, rgba(219, 171, 51, 0.18), transparent 42%),
        linear-gradient(135deg, #fff 0%, #faf7ef 100%);
}

.stable-coupons-section__help {
    color: #5a6b86;
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 40rem;
}

.stable-coupons-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

@media (max-width: 767.98px) {
    .stable-coupons-stats {
        grid-template-columns: 1fr;
    }
}

.stable-coupons-stat {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 1rem;
    background: #fff;
    padding: 1rem 1.1rem;
}

.stable-coupons-stat::after {
    content: "";
    position: absolute;
    inset-inline-end: -16px;
    top: -16px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(219, 171, 51, 0.12);
}

.stable-coupons-stat--total {
    background: linear-gradient(135deg, #fff 0%, #fff8e8 100%);
    border-color: rgba(219, 171, 51, 0.28);
}

.stable-coupons-stat--schedules {
    background: linear-gradient(135deg, #fff 0%, #f1faf5 100%);
    border-color: rgba(25, 135, 84, 0.18);
}

.stable-coupons-stat--draft {
    background: linear-gradient(135deg, #fff 0%, #fff8f0 100%);
    border-color: rgba(253, 126, 20, 0.2);
}

.stable-coupons-stat__label {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #5a6b86;
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
}

.stable-coupons-stat__value {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0c4745;
    line-height: 1.2;
}

.stable-coupons-list__body {
    display: grid;
    gap: 1.15rem;
}

.sc-coupon-card {
    position: relative;
    display: grid;
    grid-template-columns: 6px 1fr;
    border: 1px solid rgba(12, 71, 69, 0.12);
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(12, 71, 69, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sc-coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(12, 71, 69, 0.1);
}

.sc-coupon-card--new {
    border-color: rgba(253, 126, 20, 0.28);
}

.sc-coupon-card__accent {
    background: linear-gradient(180deg, #dbab33 0%, #0c4745 100%);
}

.sc-coupon-card--new .sc-coupon-card__accent {
    background: linear-gradient(180deg, #fd7e14 0%, #dbab33 100%);
}

.sc-coupon-card__content {
    padding: 1.15rem 1.25rem;
}

.sc-coupon-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.sc-coupon-card__identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.sc-coupon-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(219, 171, 51, 0.16);
    color: #8a6d1a;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sc-coupon-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.sc-coupon-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0c4745;
}

.sc-coupon-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #fff4e8;
    color: #b35a00;
    border: 1px solid rgba(253, 126, 20, 0.35);
    font-size: 0.72rem;
    font-weight: 800;
}

.sc-coupon-card__price {
    margin: 0.25rem 0 0;
    color: #5a6b86;
    font-size: 0.92rem;
    font-weight: 700;
}

.sc-coupon-card__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.95rem;
}

.sc-coupon-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #f3f8f7;
    border: 1px solid rgba(12, 71, 69, 0.12);
    color: #0c4745;
    font-size: 0.78rem;
    font-weight: 700;
}

.sc-coupon-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

@media (max-width: 767.98px) {
    .sc-coupon-card__meta {
        grid-template-columns: 1fr;
    }
}

.sc-coupon-card__meta-block,
.sc-coupon-card__features {
    padding: 0.8rem 0.9rem;
    border-radius: 0.85rem;
    background: #f8faf9;
    border: 1px solid #e4ebe9;
}

.sc-coupon-card__meta-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #5a6b86;
    font-size: 0.8rem;
    font-weight: 700;
}

.sc-coupon-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sc-coupon-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #eadfb8;
    background: #f7f4ea;
    color: #0c4745;
    font-size: 0.78rem;
    font-weight: 700;
}

.sc-coupon-chip--muted {
    background: #f8f9fa;
    border-color: #e5e7eb;
    color: #6c757d;
}

.sc-coupon-chip--feature {
    background: #fff;
    border-color: rgba(12, 71, 69, 0.16);
}

.sc-coupon-card__desc {
    margin: 0 0 1rem;
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.55;
}

.sc-coupon-card__features {
    margin-bottom: 1rem;
}

.stable-coupons-empty {
    text-align: center;
    border: 1px dashed rgba(12, 71, 69, 0.2);
    border-radius: 1rem;
    background:
        radial-gradient(circle at top, rgba(219, 171, 51, 0.12), transparent 55%),
        #fafafa;
    padding: 2.5rem 1.25rem;
    color: #5a6b86;
    margin-bottom: 0.5rem;
}

.stable-coupons-empty__icon {
    width: 3.4rem;
    height: 3.4rem;
    margin: 0 auto 0.85rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(219, 171, 51, 0.16);
    color: #8a6d1a;
    font-size: 1.55rem;
}

.stable-coupons-empty__title {
    margin: 0 0 0.4rem;
    color: #0c4745;
    font-size: 1.1rem;
    font-weight: 800;
}

.stable-coupons-empty__text {
    max-width: 28rem;
    margin-inline: auto;
    line-height: 1.55;
}

.sc-coupon-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.sc-coupon-status.is-active {
    background: #f1faf5;
    color: #0f6848;
}

.sc-coupon-status.is-inactive {
    background: #f8f9fa;
    color: #6c757d;
}

.coupon-appointments-modal-body .coupon-schedules {
    margin: 0;
    background: #fff;
    border: 0;
    padding: 0;
}

.coupon-appointments-modal-body .coupon-schedules__head {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #eef2f1;
}

.coupon-schedules--pending {
    background: #fffdf6;
    border-color: #eadfb8;
}

.coupon-schedules__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.coupon-schedules__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0c4745;
}

.coupon-schedules__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coupon-schedules__hint {
    color: #5a6b86;
    font-size: 0.9rem;
    line-height: 1.5;
}

.coupon-schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (max-width: 991.98px) {
    .coupon-schedule-grid {
        grid-template-columns: 1fr;
    }
}

.coupon-schedule-card {
    border: 1px solid #e4ebe9;
    border-radius: 12px;
    background: #fff;
    padding: 0.9rem 1rem;
}

.coupon-schedule-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.coupon-schedule-card__name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0c4745;
}

.coupon-schedule-card__facts {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.coupon-schedule-fact {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: #495057;
    font-size: 0.84rem;
    line-height: 1.4;
}

.coupon-schedule-fact i {
    color: #8a6d1a;
    margin-top: 0.1rem;
}

.coupon-schedule-card__actions {
    padding-top: 0.65rem;
    border-top: 1px solid #eef2f1;
}

.coupon-schedules__table {
    margin-bottom: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.coupon-schedules__table .stable-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.coupon-schedules__table form {
    margin: 0;
}

.coupon-schedules__empty-row td {
    text-align: center;
    padding: 1.25rem 0.75rem;
}
