/*
 * مشط ومقص (mosht) brand overrides for the public site, shop pages,
 * booking flow and customer/staff panels.
 *
 * Loaded after template.min.css and style-over.php / style-company-over.php,
 * and before the admin "custom CSS" setting and dark.css, so both still win.
 *
 * --brand-primary is set inline in application/views/include/header.php:
 * the shop's own color on shop pages, the platform color elsewhere
 * (default teal #0F4C5C). Copper, charcoal and cream are fixed brand colors.
 */
:root {
    --brand-primary: #0F4C5C;
    --brand-primary-rgb: 15, 76, 92;
    --brand-primary-dark: color-mix(in srgb, var(--brand-primary) 78%, #000);
    --brand-accent: #C8963E;
    --brand-accent-rgb: 200, 150, 62;
    --brand-ink: #1F2328;
    --brand-cream: #F5EFE6;
    --brand-cream-light: #FBF8F3;
}

/* ---------- Base: charcoal text on cream ---------- */
body {
    color: var(--brand-ink);
    background-color: var(--brand-cream) !important;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.text-dark {
    color: var(--brand-ink) !important;
}
.bg-light,
.bg-gray,
.get_started {
    background-color: var(--brand-cream-light) !important;
}
.tab_info_box,
.dept-item {
    background-color: var(--brand-cream-light);
}
.bg-dark,
.footer-dark {
    background-color: var(--brand-ink) !important;
}

/* ---------- Primary buttons: keep the hover in the brand color ---------- */
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-primary-dark) !important;
    border-color: var(--brand-primary-dark) !important;
    color: #fff !important;
}
.btn:focus,
.btn.focus,
.form-control:focus,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 .2rem rgba(var(--brand-primary-rgb), .25) !important;
}

/* ---------- Secondary buttons (booking Back / Continue, sign in) ---------- */
.btn-secondary {
    background-color: var(--brand-ink);
    border-color: var(--brand-ink);
    color: #fff;
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:not(:disabled):not(.disabled):active {
    background-color: transparent;
    border-color: var(--brand-ink);
    color: var(--brand-ink);
}

/* ---------- Stock blues that the color setting does not reach ---------- */
.border-primary {
    border-color: var(--brand-primary) !important;
}
span.count,
.cart-num {
    background-color: var(--brand-primary) !important;
}
.page-link {
    color: var(--brand-primary);
}
.page-item.active .page-link,
.pagination > .active > a,
.pagination > .active > span {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}
.nav .nav-link:hover,
.nav .nav-link.active,
.navbar-vertical .nav-tabs .nav-link.active,
.navbar-vertical .nav-tabs .nav-link:hover,
.nav-classic .nav-link.active,
.nav-classic .nav-link:hover,
.nav-box .nav-link.active,
.nav-white .nav-link.active {
    color: var(--brand-primary) !important;
}
.navbar-vertical .nav-tabs .nav-link.active,
.nav-classic .nav-link.active {
    border-color: var(--brand-primary) !important;
}
.nav-box .nav-link.active,
.nav-segment .nav-link.active {
    color: #fff !important;
    background-color: var(--brand-primary) !important;
}
.nav-pills .tbtn.active,
.nav-pills .nav-link.active {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
}
.owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--brand-primary) !important;
}
.team-card:hover,
.owlstyle-3:hover {
    border-color: var(--brand-primary) !important;
}
.dept-item-icon,
.icon-style-small .icon {
    color: var(--brand-primary) !important;
    background-color: rgba(var(--brand-primary-rgb), .1) !important;
}
.cbtn-fill {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}
.titlebar:before {
    background: var(--brand-accent) !important;
}
.icon-yes {
    color: var(--brand-primary) !important;
}

/* Pricing page ("purple" pricing table) */
.purple .price-button,
.purple .price-button:hover {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
}
.purple .pricing-label {
    background: rgba(var(--brand-accent-rgb), .18) !important;
    color: var(--brand-ink) !important;
}

/* ---------- Copper highlights ---------- */
.text-gradnt {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.mribbon,
.badge-warning {
    background-color: var(--brand-accent) !important;
    color: #fff !important;
}

/* Booking: time slots (were green) */
.btn.btn-light-success {
    background: rgba(var(--brand-primary-rgb), .08);
    color: var(--brand-primary);
}
.btn.btn-light-success:hover {
    background-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 11px rgba(var(--brand-primary-rgb), .3);
}
.time_btn.active,
.btn.btn-light-success.time_btn.active {
    background-color: var(--brand-accent) !important;
    color: #fff !important;
}
.time_btn.active:before {
    background-color: var(--brand-accent) !important;
}

/* Booking: date picker */
.ui-datepicker-calendar thead tr th span {
    color: var(--brand-primary) !important;
}
.ui-datepicker-prev:hover,
.ui-datepicker-next:hover,
.ui-datepicker-prev:hover:after,
.ui-datepicker-next:hover:after {
    border-color: var(--brand-primary) !important;
}
.ui-datepicker-today .ui-state-default:not(.ui-state-active) {
    color: var(--brand-accent) !important;
    font-weight: 700;
}

/* ---------- Home layout 2 feature tiles ---------- */
.bg-blue { background-color: var(--brand-primary) !important; }
.bg-navy { background-color: var(--brand-primary-dark) !important; }
.bg-blue-soft { background-color: rgba(var(--brand-primary-rgb), .12) !important; }
.bg-purple-soft,
.bg-mgd { background-color: rgba(var(--brand-accent-rgb), .14) !important; }
.bg-lgreen { background-color: var(--brand-primary) !important; }
.bg-warning { background-color: var(--brand-accent) !important; }
.bg-warning-soft { background-color: rgba(var(--brand-accent-rgb), .14) !important; }
.text-dblue { color: var(--brand-primary) !important; }

/* Text selection */
::selection {
    background: rgba(var(--brand-accent-rgb), .35);
    color: var(--brand-ink);
}

/* ---------- Exact overrides for the stock blue / green rules in template.min.css ----------
 * Generated from the Aoxio custom section of template.min.css (blue -> brand primary,
 * green time slots / extras / ribbons -> copper). Success badges stay green on purpose.
 */
.time_btn.active {
    background-color: var(--brand-accent) !important;
}
.time_btn.active:before {
    background-color: var(--brand-accent) !important;
}
.ui-datepicker-header {
    background: var(--brand-primary) !important;
}
.ui-state-default:hover {
    background: rgba(var(--brand-primary-rgb), .1) !important;
    color: var(--brand-primary) !important;
}
.ui-state-active {
    background: rgba(var(--brand-primary-rgb), .1) !important;
    color: var(--brand-primary) !important;
}
.staff-rdo > input + div:hover {
    border: 2px solid var(--brand-primary) !important;
}
.staff-rdo > input:checked + div {
    border: 2px solid var(--brand-primary) !important;
}
.service-rdo > input + div:hover {
    border: 2px solid var(--brand-primary) !important;
}
.service-rdo > input:checked + div {
    border: 2px solid var(--brand-primary) !important;
}
form .textfield.error {
    border-color: var(--brand-primary) !important;
}
ul.style3#pills-tab li a.nav-link:hover {
    color: var(--brand-primary) !important;
    border: 1px solid var(--brand-primary) !important;
}
ul.style3#pills-tab li a.nav-link.active {
    background-color: var(--brand-primary) !important;
}
ul.style3#pills-tab li a.nav-link.active p.icon-style-small i {
    color: var(--brand-primary) !important;
}
.navbar-vertical .nav-tabs .active .nav-link,
.navbar-vertical .nav-tabs .active.nav-link {
    border-left-color: var(--brand-primary) !important;
    background: rgba(var(--brand-primary-rgb), .1) !important;
}
.nav .nav-link:not(.active):hover {
    border-left-color: var(--brand-primary) !important;
    background: rgba(var(--brand-primary-rgb), .1) !important;
    color: var(--brand-primary) !important;
}
.nav:not(.nav-pills) .nav-item.active .nav-link,
.nav:not(.nav-pills) .nav-link.active {
    color: var(--brand-primary) !important;
    border-left: 3px solid var(--brand-primary) !important;
}
.service-tab a.nav-item.nav-link.active {
    color: var(--brand-primary) !important;
    border-left: 0px solid var(--brand-primary) !important;
}
.nav-classic .nav-link:hover {
    color: var(--brand-primary) !important;
}
.nav-classic .nav-link.active {
    color: var(--brand-primary) !important;
    border-bottom-color: var(--brand-primary) !important;
}
.nav-white .nav-link.active {
    color: var(--brand-primary) !important;
}
.nav-box .nav-link.active {
    color: var(--brand-primary) !important;
}
.nav-segment .nav-link:hover {
    color: var(--brand-primary) !important;
}
.nav-tabs .nav-item.active .nav-link {
    border-color: transparent transparent var(--brand-primary) !important;
}
span.count {
    background: rgba(var(--brand-primary-rgb), .1) !important;
    color: var(--brand-primary) !important;
}
.bg-primary-soft {
    background-color: rgba(var(--brand-primary-rgb), .1) !important;
    color: var(--brand-primary) !important;
}
.ui-timepicker-standard .ui-state-hover {
    background-color: rgba(var(--brand-primary-rgb), .1) !important;
    color: var(--brand-primary) !important;
}
.icon-yes {
    background: rgba(var(--brand-primary-rgb), .1) !important;
}
.learn-more {
    color: var(--brand-primary) !important;
}
.learn-more:hover {
    color: var(--brand-primary) !important;
}
.btn-aceptar {
    color: var(--brand-primary) !important;
    border: 1px solid var(--brand-primary) !important;
}
.btn-aceptar:hover {
    border: 1px solid var(--brand-primary) !important;
    background-color: var(--brand-primary) !important;
}
.mribbon {
    background: var(--brand-accent) !important;
}
.mribbon:before,
.mribbon:after {
    background: var(--brand-accent) !important;
}
.team-card:hover .team_info {
    background-color: var(--brand-primary) !important;
}
.team-card:hover .docitem-footer,
.team-card:hover .docitem-footer h6,
.team-card:hover .docitem-footer p {
    background-color: var(--brand-primary) !important;
}
.dept-item-icon {
    color: var(--brand-primary) !important;
    border: 1px solid var(--brand-primary) !important;
}
.dept-item:hover .dept-item-icon {
    background-color: var(--brand-primary) !important;
}
.emargency-contact {
    background-color: var(--brand-primary)87 !important;
}
.emargency_contact_btn:hover {
    color: var(--brand-primary)87 !important;
}
.emargency-appointment {
    background-color: var(--brand-primary)ab !important;
}
.icon-style-small .icon {
    background-color: rgba(var(--brand-primary-rgb), .1) !important;
    color: var(--brand-primary) !important;
}
.cbtn-fill {
    background: var(--brand-primary) !important;
}
.service_extra_checkbox:checked + .service_extra_checkbox_label:before {
    background-color: var(--brand-accent) !important;
}
.nav-pills .nav-link.tbtn.active,
.nav-pills .show>.nav-link.tbtn {
    background: rgba(var(--brand-primary-rgb), .2) !important;
    border: 1px solid rgba(var(--brand-primary-rgb), .3) !important;
}
.thumbnail:hover .thumbnail-image,
.selected .thumbnail-image {
    border: 2px solid var(--brand-primary) !important;
}
.cart-num {
    background-color: var(--brand-primary) !important;
}
