.ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

body {
    background: #fbf7fa;
    color: #3b3440;
}

html,
body {
    min-height: 100%;
}

.app-header.navbar {
    background: #fff;
    border-bottom: 1px solid rgba(95, 75, 139, .12);
    box-shadow: 0 8px 24px rgba(70, 47, 82, .08);
}

.app-header .navbar-brand {
    background: #fff;
    color: var(--salon-primary);
    gap: 8px;
    justify-content: center;
}

.salon-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 8px;
}

.sidebar {
    background: linear-gradient(180deg, #3b2f45 0%, #201a29 100%);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, .78);
    border-left: 3px solid transparent;
    margin: 2px 8px;
    border-radius: 6px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-left-color: var(--salon-accent);
}

.sidebar .nav-icon {
    color: var(--salon-accent);
}

.main .container-fluid {
    flex: 1 0 auto;
    padding: 24px;
}

.app-body .main {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 55px);
}

.card,
.beauty-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(83, 57, 91, .1);
    overflow: hidden;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid rgba(95, 75, 139, .1);
    color: #3b3440;
    font-weight: 700;
}

.btn {
    border-radius: 6px;
    font-weight: 600;
}

.btn-primary,
.btn-success {
    background: var(--salon-primary);
    border-color: var(--salon-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-success:hover {
    background: var(--salon-secondary);
    border-color: var(--salon-secondary);
}

.btn-info {
    background: #4d8b91;
    border-color: #4d8b91;
}

.btn-danger {
    background: #c74f68;
    border-color: #c74f68;
}

.btn-default,
.dt-buttons .btn {
    background: #fff;
    border: 1px solid rgba(95, 75, 139, .18);
    color: #4c4055;
    border-radius: 6px;
}

.table {
    background: #fff;
}

.table thead th,
table.dataTable thead th {
    background: #f6eef4;
    color: #4b3a56;
    border: 0;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.badge {
    border-radius: 999px;
    padding: .38rem .55rem;
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-color: rgba(95, 75, 139, .18);
    border-radius: 6px;
}

.form-control:focus {
    border-color: var(--salon-primary);
    box-shadow: 0 0 0 .2rem rgba(184, 92, 142, .16);
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 12px;
}

.language-pill,
.login-language-switch a {
    border: 1px solid rgba(95, 75, 139, .2);
    border-radius: 999px;
    color: var(--salon-secondary);
    font-weight: 700;
    padding: 6px 10px;
    text-decoration: none;
}

.language-pill.active,
.login-language-switch a.active {
    background: var(--salon-primary);
    border-color: var(--salon-primary);
    color: #fff;
}

.login-page {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.login-shell {
    flex: 1 0 auto;
    min-height: calc(100vh - 58px);
    padding: 24px;
}

.login-language-switch {
    position: fixed;
    right: 20px;
    top: 18px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.login-language-switch a {
    background: rgba(255, 255, 255, .86);
}

.login-panel-wrap {
    width: min(1050px, 100%);
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    background: rgba(255, 255, 255, .92);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(32, 26, 41, .32);
    overflow: hidden;
}

.login-story {
    padding: 56px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(246, 238, 244, .88));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 16px 38px rgba(83, 57, 91, .18);
    margin-bottom: 22px;
}

.login-kicker,
.page-kicker {
    color: var(--salon-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.login-story h1,
.dashboard-hero h1,
.page-heading h1 {
    color: #2f2637;
    font-weight: 800;
    margin: 8px 0 12px;
}

.login-story p,
.dashboard-hero p,
.page-heading p {
    color: #665c6f;
    font-size: 16px;
}

.login-feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.login-feature-row span {
    background: #fff;
    color: #4b3a56;
    border: 1px solid rgba(95, 75, 139, .12);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
}

.login-card {
    padding: 48px;
    display: flex;
    align-items: center;
    background: #fff;
}

.login-card form {
    width: 100%;
}

.login-card-heading {
    margin-bottom: 24px;
}

.login-card-heading span {
    display: block;
    color: var(--salon-primary);
    font-weight: 700;
}

.login-card-heading strong {
    color: #2f2637;
    font-size: 24px;
}

.beauty-input {
    position: relative;
}

.beauty-input i {
    position: absolute;
    top: 13px;
    left: 14px;
    color: var(--salon-primary);
    z-index: 2;
}

.beauty-input .form-control {
    padding-left: 42px;
    min-height: 46px;
}

.salon-login-btn {
    min-height: 46px;
    margin-top: 10px;
}

.login-back-link {
    color: var(--salon-secondary);
}

.demo-box {
    border-top: 1px solid rgba(95, 75, 139, .12);
    margin-top: 18px;
    padding-top: 18px;
}

.demo-box span {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
}

.demo-credential {
    background: #f6eef4;
    color: #4b3a56;
    margin-right: 6px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 12px 32px rgba(83, 57, 91, .1);
    margin-bottom: 22px;
}

.dashboard-hero img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 8px;
    background: #f6eef4;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.salon-metrics .metric-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(83, 57, 91, .1);
    padding: 18px;
    margin-bottom: 20px;
}

.metric-card i {
    color: var(--salon-primary);
    font-size: 24px;
}

.metric-card span {
    display: block;
    margin-top: 12px;
    color: #665c6f;
    font-weight: 700;
}

.metric-card strong {
    color: #2f2637;
    font-size: 30px;
}

.dashboard-message {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-message i {
    color: var(--salon-accent);
    font-size: 28px;
}

.dashboard-message p {
    margin: 0;
    color: #4b3a56;
    font-size: 16px;
}

.dashboard-chart-grid .beauty-card {
    margin-bottom: 22px;
}

.chart-card .card-header {
    background: #fff;
    color: #2f2637;
    font-weight: 800;
}

.chart-card .card-body {
    height: 320px;
    position: relative;
}

.chart-card canvas {
    max-width: 100%;
}

.page-heading {
    background: #fff;
    border-radius: 8px;
    padding: 22px 24px;
    box-shadow: 0 12px 32px rgba(83, 57, 91, .1);
    margin-bottom: 20px;
}

.color-input {
    height: 42px;
    padding: 4px;
}

.compact-textarea {
    min-height: 86px;
}

.sticky-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(251, 247, 250, .94);
    border-top: 1px solid rgba(95, 75, 139, .12);
    padding: 14px 0;
    text-align: right;
}

.settings-image-preview {
    background: #fbf7fa;
    border: 1px solid rgba(95, 75, 139, .12);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    max-width: 260px;
}

.settings-image-preview span {
    color: #665c6f;
    font-size: 12px;
    font-weight: 700;
}

.settings-image-preview img {
    width: 220px;
    max-width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    background: #fff;
}

.settings-days-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.settings-day-option {
    background: #fbf7fa;
    border: 1px solid rgba(95, 75, 139, .12);
    border-radius: 8px;
    color: #4b3a56;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    font-weight: 700;
}

.settings-day-option input {
    accent-color: var(--salon-primary);
}

@media (max-width: 991px) {
    .login-panel-wrap,
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .login-story,
    .login-card {
        padding: 32px;
    }

    .dashboard-hero img {
        height: 180px;
    }
}

@media (max-width: 575px) {
    .main .container-fluid,
    .login-shell {
        padding: 14px;
    }

    .login-panel-wrap {
        min-height: auto;
    }

    .login-story,
    .login-card {
        padding: 24px;
    }

    .login-story h1,
    .dashboard-hero h1,
    .page-heading h1 {
        font-size: 26px;
    }

    .login-language-switch {
        position: static;
        justify-content: flex-end;
        padding: 12px 14px 0;
    }

    .table-responsive,
    .dataTables_wrapper {
        overflow-x: auto;
    }
}

.public-salon-page {
    min-height: 100vh;
    background: #fbf7fa;
    display: flex;
    flex-direction: column;
}

.public-salon-page > main {
    flex: 1 0 auto;
}

.public-navbar {
    background: #fff;
    box-shadow: 0 8px 24px rgba(70, 47, 82, .08);
    padding: 12px 28px;
}

.public-navbar .navbar-brand {
    color: var(--salon-primary);
    font-weight: 800;
}

.public-navbar .nav-link {
    color: #4b3a56;
    font-weight: 700;
}

.public-navbar .nav-link:hover {
    color: var(--salon-primary);
}

.public-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44%;
    gap: 32px;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 45px rgba(83, 57, 91, .12);
    padding: 34px;
}

.public-hero h1 {
    color: #2f2637;
    font-size: 44px;
    font-weight: 800;
    margin: 8px 0 14px;
}

.public-hero p {
    color: #665c6f;
    font-size: 18px;
    max-width: 620px;
}

.public-hero img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    border-radius: 8px;
    background: #f6eef4;
}

.public-card-row {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.public-card-row div {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(83, 57, 91, .1);
    padding: 20px;
}

.public-card-row i {
    color: var(--salon-primary);
    font-size: 24px;
}

.public-card-row strong,
.public-card-row span {
    display: block;
}

.public-card-row strong {
    margin: 10px 0 6px;
    color: #2f2637;
}

.public-card-row span {
    color: #665c6f;
}

.manual-page {
    width: min(1100px, calc(100% - 32px));
    margin: 32px auto;
}

.manual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.manual-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(83, 57, 91, .1);
    padding: 22px;
}

.manual-card i {
    color: var(--salon-primary);
    font-size: 26px;
    margin-bottom: 12px;
}

.manual-card h2 {
    color: #2f2637;
    font-size: 20px;
    font-weight: 800;
}

.manual-card p {
    color: #665c6f;
    margin-bottom: 0;
}

.salon-service-carousel {
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(83, 57, 91, .18);
    margin: 0 auto 32px;
    overflow: hidden;
    width: min(1100px, calc(100% - 32px));
}

.salon-service-carousel .carousel-item {
    background: #fbf7fa;
    aspect-ratio: 16 / 9;
    height: auto;
}

.salon-service-carousel .carousel-item img {
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transform: scale(1);
    transition: transform 5s ease;
    width: 100%;
}

.salon-service-carousel .carousel-item.active img {
    transform: scale(1.015);
}

.salon-service-carousel .carousel-caption {
    background: linear-gradient(90deg, rgba(47, 38, 55, .78), rgba(47, 38, 55, .18));
    border-radius: 8px;
    bottom: 34px;
    left: 34px;
    padding: 18px 22px;
    right: auto;
    text-align: left;
    width: min(460px, calc(100% - 68px));
}

.salon-service-carousel .carousel-caption span {
    color: var(--salon-accent);
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.salon-service-carousel .carousel-caption strong {
    color: #fff;
    display: block;
    font-size: 24px;
    line-height: 1.2;
    margin-top: 6px;
}

.salon-service-carousel .carousel-control-prev,
.salon-service-carousel .carousel-control-next {
    width: 8%;
}

.settings-section-title {
    color: #2f2637;
    font-size: 18px;
    font-weight: 800;
    margin-top: 12px;
}

.service-gallery-manager {
    display: grid;
    gap: 18px;
}

.service-gallery-manager-item {
    background: #fbf7fa;
    border: 1px solid rgba(95, 75, 139, .12);
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: 260px minmax(0, 1fr);
    padding: 14px;
}

.service-gallery-manager-item img {
    aspect-ratio: 16 / 9;
    background: #fff;
    border-radius: 8px;
    height: auto;
    object-fit: contain;
    width: 100%;
}

.service-gallery-manager-body {
    min-width: 0;
}

.gallery-remove-option {
    border-color: rgba(220, 53, 69, .24);
    color: #8b1f2d;
}

.professionals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.professional-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(83, 57, 91, .1);
    overflow: hidden;
}

.professional-photo img,
.professional-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.professional-photo img {
    background: #f6eef4;
    display: block;
    object-fit: contain;
}

.professional-placeholder {
    background: linear-gradient(135deg, #f6eef4, #fff);
    color: var(--salon-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
}

.professional-placeholder i {
    font-size: 38px;
}

.professional-body {
    padding: 18px;
}

.professional-body h2 {
    color: #2f2637;
    font-size: 21px;
    font-weight: 800;
}

.professional-contact {
    color: #665c6f;
    margin-bottom: 14px;
}

.professional-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.professional-services span {
    background: #f6eef4;
    color: #4b3a56;
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 700;
}

.about-hero {
    width: 100%;
    margin: 0 0 22px;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.salon-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.reservation-form .beauty-card {
    margin-bottom: 22px;
}

.beauty-alert {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(83, 57, 91, .1);
}

.reservation-total {
    background: #f6eef4;
    border: 1px solid rgba(95, 75, 139, .12);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.reservation-total span {
    color: #665c6f;
    font-weight: 700;
}

.reservation-total strong {
    color: var(--salon-primary);
    font-size: 22px;
}

.reservation-services-select {
    min-height: 150px;
}

.reservation-services-select option {
    padding: 8px;
}

.payment-inline-form {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 110px minmax(160px, 1fr) auto;
    gap: 6px;
    align-items: center;
}

.salon-footer {
    background: #fbf7fa;
    border-top: 1px solid rgba(47, 38, 55, .1);
    color: #161219;
    flex-shrink: 0;
    margin-top: auto;
    padding: 14px 18px;
    text-align: center;
}

.login-page .salon-footer {
    flex-shrink: 0;
    margin-top: auto;
}

.salon-footer .inner-wrapper {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.salon-footer-credit::before {
    content: "❤";
    color: var(--salon-accent);
    margin-right: 6px;
}

.salon-footer img {
    background: #2f2637;
    border-radius: 4px;
    height: 22px;
    margin-left: 2px;
    object-fit: contain;
    padding: 2px 4px;
    vertical-align: middle;
}

.salon-footer-logo-link {
    display: inline-flex;
    line-height: 1;
}

.beauty-metric-card {
    background: #fff;
    border: 1px solid rgba(184, 92, 142, .12);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(83, 57, 91, .08);
    margin-bottom: 18px;
    padding: 18px;
}

.beauty-metric-card span {
    color: #776b80;
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.beauty-metric-card strong {
    color: #2f2637;
    display: block;
    font-size: 24px;
    margin-top: 6px;
}

.cash-summary-list {
    display: grid;
    grid-template-columns: 130px 1fr;
    margin-bottom: 18px;
    row-gap: 8px;
}

.cash-summary-list dt {
    color: #776b80;
    font-weight: 700;
}

.cash-summary-list dd {
    color: #2f2637;
    margin-bottom: 0;
}

.cash-method-row {
    align-items: center;
    border-bottom: 1px solid rgba(47, 38, 55, .08);
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.cash-method-row:last-child {
    border-bottom: 0;
}

.cash-method-row span {
    color: #4b3a56;
    font-weight: 700;
}

.cash-method-row strong {
    color: var(--salon-primary);
}

.salon-table td,
.salon-table th {
    vertical-align: middle;
}

.health-alert-card {
    align-items: center;
    background: #fff5f7;
    border: 1px solid rgba(220, 53, 69, .22);
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(83, 57, 91, .08);
    color: #4b1f2c;
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.health-alert-card i {
    color: #dc3545;
    font-size: 24px;
}

.health-alert-card strong,
.health-alert-card span {
    display: block;
}

.health-record-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.success-heading h1 {
    color: var(--salon-primary);
}

.booking-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.booking-summary div {
    background: #fbf7fa;
    border-radius: 8px;
    padding: 12px;
}

.booking-summary strong,
.booking-summary span {
    display: block;
}

.booking-summary strong {
    color: #665c6f;
    font-size: 13px;
}

.booking-summary span {
    color: #2f2637;
    font-weight: 700;
}

@media (max-width: 991px) {
    .public-hero,
    .public-card-row,
    .manual-grid,
    .professionals-grid,
    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .booking-summary {
        grid-template-columns: 1fr;
    }

    .public-hero img {
        height: 240px;
    }

    .salon-service-carousel .carousel-item {
        aspect-ratio: 16 / 9;
    }

    .service-gallery-manager-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .salon-service-carousel .carousel-item {
        aspect-ratio: 16 / 9;
    }

    .salon-service-carousel .carousel-caption {
        bottom: 18px;
        left: 18px;
        padding: 12px 14px;
        width: calc(100% - 36px);
    }

    .salon-service-carousel .carousel-caption strong {
        font-size: 18px;
    }
}
