/* This file contains styles for desktop screens (larger than 992px) */

:root {
    --sidebar-width: 280px;
}

body {
    background-color: #f8f9fa;
    overflow-x: hidden;
}
.center-col {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px; /* adjust as needed */
}

.profile-photo-wrapper {
    position: relative;
    display: inline-block;
}
.position-sticky {

    overflow-y: visible;
}

.download-photo-btn {
    position: absolute;
    bottom: 14px;
    right: -8px;
    background-color: #1bba70;
    color: white;
    padding: 8px 13px;
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-photo-btn:hover {
    opacity: 1;
    background-color: #ffc107;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1032;
    background-color: #212529 !important;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge */
    /* Mobile: hidden off-screen by default */
    transform: translateX(calc(-1 * var(--sidebar-width) - 1px));
}
.sidebar::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* Sidebar visible on desktop always */
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0) !important;
    }
}

/* Mobile: slide in when active */
.sidebar.active {
    transform: translateX(0);
}

/* RTL: sidebar from right */
html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    transform: translateX(calc(var(--sidebar-width) + 1px));
}
html[dir="rtl"] .sidebar.active {
    transform: translateX(0);
}
@media (min-width: 992px) {
    html[dir="rtl"] .sidebar {
        transform: translateX(0) !important;
    }
}

.sticky-notes-wrapper {
  display: grid;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.sticky-note {
  background: #fff9b1;
  padding: 20px 25px;
  box-shadow:
    5px 5px 10px rgba(0,0,0,0.15),
    inset 0 0 10px rgba(255,255,255,0.7);
  border: 1px solid #f0e68c;
  border-radius: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #5a4d00;
  position: relative;
  transform: rotate(-2deg);
  transition: transform 0.2s ease;
  cursor: default;
  user-select: text;
  box-sizing: border-box;
  min-width: 280px;
  max-width: 320px;
}

.sticky-note:hover {
  transform: rotate(0deg);
  box-shadow:
    7px 7px 15px rgba(0,0,0,0.25),
    inset 0 0 15px rgba(255,255,255,0.8);
}

.sticky-note h6 {
  margin-top: 0;
  font-weight: 700;
  font-size: 1.2rem;
  color: #826b00;
  text-shadow: 1px 1px 0 #fff;
}

.sticky-note hr {
  border: none;
  border-top: 1.5px dashed #c7b85f;
  margin: 10px 0 15px;
}

.sticky-note p {
  margin: 5px 0 0 0;
  line-height: 1.4;
  font-size: 0.95rem;
}



.ltr-force {
  direction: ltr !important;
  text-align: left !important;
}


.main-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Desktop: push content beside the always-visible sidebar */
@media (min-width: 992px) {
    .main-panel {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
    html[dir="rtl"] .main-panel {
        margin-left: 0;
        margin-right: var(--sidebar-width);
    }
}

.top-navbar {
    background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.content-wrapper {
    flex-grow: 1;
}

.main-footer {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-top: 1px solid #e3e6f0;
    text-align: center;
}

.main-signature {
    margin: 0;
    font-size: 0.78rem;
    color: #adb5bd;
    letter-spacing: 0.03em;
}

.main-signature span {
    color: #e74c3c;
}

.main-signature a {
    color: #D4AF37;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.main-signature a:hover {
    color: #b8860b;
    text-decoration: underline;
}

/* Styles for the mobile menu overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1029; /* Sit just below the sidebar */
}

/* This CSS rule automatically shows the overlay when the sidebar is active */
.sidebar.active + .sidebar-overlay {
    display: block;
}


/* --- Sidebar Navigation Styling --- */
.sidebar .nav {
    --bs-nav-link-padding-y: 0.25rem;
}
.sidebar .nav-link {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link .bi {
    margin-right: 0.75rem;
}
html[dir="rtl"] .sidebar .nav-link .bi {
    margin-right: 0;
    margin-left: 0.75rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #fff;
    background-color: #495057;
}

.sidebar .nav-item-header {
    padding-top: 1rem;
    padding-bottom: .25rem;
    color: #c0e7fae8;
}


/* --- Helper Classes for Cards and Text --- */
.card {
    border: none;
    border-radius: 0.5rem;
}

.border-left-primary { border-left: .25rem solid #4e73df!important; }
.border-left-success { border-left: .25rem solid #1cc88a!important; }
.border-left-info { border-left: .25rem solid #36b9cc!important; }
.border-left-warning { border-left: .25rem solid #f6c23e!important; }
.border-left-danger { border-left: .25rem solid #e74a3b!important; }

html[dir="rtl"] .border-left-primary { border-left: 0 !important; border-right: .25rem solid #4e73df!important; }
html[dir="rtl"] .border-left-success { border-left: 0 !important; border-right: .25rem solid #1cc88a!important; }
html[dir="rtl"] .border-left-info { border-left: 0 !important; border-right: .25rem solid #36b9cc!important; }
html[dir="rtl"] .border-left-warning { border-left: 0 !important; border-right: .25rem solid #f6c23e!important; }
html[dir="rtl"] .border-left-danger { border-left: 0 !important; border-right: .25rem solid #e74a3b!important; }


.text-gray-300 { color: #dddfeb !important; }
.text-gray-800 { color: #5a5c69 !important; }
.text-xs { font-size: .7rem; }
.font-weight-bold { font-weight: 700!important; }

/* --- Arabic Font for better readability --- */
html[lang="ar"] body,
html[lang="ar"] .btn,
html[lang="ar"] .form-control,
html[lang="ar"] .form-select,
html[lang="ar"] .nav-link,
html[lang="ar"] .nav-item-header {
    font-family: "Tajawal", sans-serif !important;
}


/* --- Sidebar Icon Colors --- */
.sidebar .nav-link .bi-speedometer2 { color: #4e73df; }
.sidebar .nav-link .bi-people { color: #1cc88a; }
.sidebar .nav-link .bi-people-fill { color: #36b9cc; }
.sidebar .nav-link .bi-tv { color: #f6c23e; }
.sidebar .nav-link .bi-calendar-event { color: #e74a3b; }
.sidebar .nav-link .bi-journal-richtext { color: #fd7e14; }
.sidebar .nav-link .bi-envelope-heart { color: #e83e8c; }
.sidebar .nav-link .bi-receipt-cutoff { color: #6f42c1; }
.sidebar .nav-link .bi-upload.icon-import-customers { color: #20c997; }
.sidebar .nav-link .bi-upload.icon-import-channels { color: #17a2b8; }
.sidebar .nav-link .bi-wordpress { color: #21759b; }
.sidebar .nav-link .bi-shield-check { color: #1cc88a; }
.sidebar .nav-link .bi-clipboard2-data { color: #858796; }
.sidebar .nav-link .bi-sliders { color: #5a5c69; }

/* Reset icon color to white on active nav-link */
.sidebar .nav-pills .nav-link.active i { color: #fff !important; }

/* Sidebar Logo */
.sidebar-logo { height: 75px; }

/* ── Tasks dropdown: responsive sizing ───────────────────── */
.tasks-dropdown {
    min-width: 280px;
}
@media (max-width: 575.98px) {
    .tasks-dropdown {
        position: fixed !important;
        top: 60px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        min-width: unset;
        width: calc(100vw - 32px);
    }
}

/* =============================================================
   Contact Customer Modal — all rules scoped under #contactModal
   ============================================================= */

/* ── Dialog positioning ───────────────────────────────────── */
#contactModal .modal-dialog {
    max-width: 400px;
    width: calc(100% - 2rem);
}

/* ── Card shell ───────────────────────────────────────────── */
#contactModal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

/* ── Header ───────────────────────────────────────────────── */
#contactModal .cm-header {
    background: linear-gradient(145deg, #2563eb 0%, #1e40af 100%);
    padding: 32px 24px 24px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}
#contactModal .cm-close-btn {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    cursor: pointer;
    transition: background .2s;
}
#contactModal .cm-close-btn:hover { background: rgba(255,255,255,.28); }
#contactModal .cm-header-icon {
    width: 56px; height: 56px;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin: 0 auto 12px;
    border: 2px solid rgba(255,255,255,.3);
}
#contactModal .cm-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: .01em;
}
#contactModal .cm-subtitle {
    color: rgba(255,255,255,.78);
    font-size: .83rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Body ─────────────────────────────────────────────────── */
#contactModal .modal-body {
    padding: 24px 24px 8px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

/* ── View mode ────────────────────────────────────────────── */
#contactModal .cm-view-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 8px;
}
#contactModal .cm-avatar-ring {
    width: 80px; height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(37,99,235,.35);
}
#contactModal .cm-avatar-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    display: block;
}
#contactModal .cm-avatar-fallback {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex; align-items: center; justify-content: center;
    border: 3px solid #fff;
    color: #fff;
    font-size: 1.8rem;
}
#contactModal .cm-view-name-block {
    margin-bottom: 8px;
    line-height: 1.4;
}
#contactModal .cm-label-pre {
    display: block;
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 2px;
}
#contactModal .cm-agent-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
#contactModal .cm-view-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .76rem;
    color: #64748b;
    margin-top: 4px;
}
#contactModal .cm-notes-card {
    background: #f8faff;
    border: 1.5px solid #dbeafe;
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 16px;
}
#contactModal .cm-notes-header {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
#contactModal .cm-notes-body {
    font-size: .9rem;
    color: #374151;
    line-height: 1.65;
    white-space: pre-wrap;
}

/* ── Edit mode: previous contact banner ───────────────────── */
#contactModal .cm-prev-banner {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
}
#contactModal .cm-prev-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}
#contactModal .cm-prev-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fbbf24;
    flex-shrink: 0;
}
#contactModal .cm-prev-name {
    font-size: .88rem;
    font-weight: 700;
    color: #92400e;
    line-height: 1.2;
}
#contactModal .cm-prev-time {
    font-size: .74rem;
    color: #b45309;
}
#contactModal .cm-prev-badge {
    margin-inline-start: auto;
    background: #fde68a;
    color: #78350f;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ── Edit mode: question & toggle cards ───────────────────── */
#contactModal .cm-question {
    font-size: .92rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}
#contactModal .cm-toggle-group {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}
#contactModal .cm-opt-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
}
#contactModal .cm-opt-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.07);
}
#contactModal .cm-opt-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
#contactModal .cm-opt-yes { background: #dcfce7; color: #16a34a; }
#contactModal .cm-opt-no  { background: #fee2e2; color: #dc2626; }
#contactModal .cm-opt-label {
    font-size: .88rem;
    font-weight: 600;
    color: #475569;
}
#contactModal .cm-opt-card.cm-active-yes {
    border-color: #16a34a;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(22,163,74,.12), 0 4px 12px rgba(22,163,74,.1);
}
#contactModal .cm-opt-card.cm-active-yes .cm-opt-label { color: #15803d; }
#contactModal .cm-opt-card.cm-active-no {
    border-color: #dc2626;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(220,38,38,.12), 0 4px 12px rgba(220,38,38,.08);
}
#contactModal .cm-opt-card.cm-active-no .cm-opt-label { color: #b91c1c; }

/* ── Edit mode: notes textarea ────────────────────────────── */
#contactModal .cm-notes-input-wrap { margin-top: 16px; }
#contactModal .cm-notes-input-label {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}
#contactModal .cm-notes-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 13px;
    font-size: .9rem;
    resize: vertical;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: inherit;
}
#contactModal .cm-notes-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ── Footer ───────────────────────────────────────────────── */
#contactModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 24px 20px;
    background: #fff;
    border-top: none;
    flex-shrink: 0;
}
#contactModal .cm-btn-cancel {
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    border-radius: 10px;
    padding: 7px 18px;
    font-size: .88rem;
    transition: all .2s;
    background: #fff;
}
#contactModal .cm-btn-cancel:hover { background: #f1f5f9; border-color: #cbd5e1; }
#contactModal .cm-btn-save {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    font-weight: 700;
    border-radius: 10px;
    padding: 7px 22px;
    font-size: .88rem;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
#contactModal .cm-btn-save:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    box-shadow: 0 4px 14px rgba(37,99,235,.45);
    transform: translateY(-1px);
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    #contactModal .modal-dialog {
        width: calc(100% - 1rem);
        max-width: 100%;
    }
    #contactModal .modal-content    { max-height: 85vh; }
    #contactModal .cm-header          { padding: 22px 18px 18px; }
    #contactModal .cm-header-icon     { width: 46px; height: 46px; font-size: 1.15rem; margin-bottom: 8px; }
    #contactModal .cm-title           { font-size: .92rem; }
    #contactModal .cm-subtitle        { font-size: .78rem; }
    #contactModal .modal-body         { padding: 18px 16px 6px; }
    #contactModal .cm-avatar-ring     { width: 64px; height: 64px; margin-bottom: 10px; }
    #contactModal .cm-agent-name      { font-size: .95rem; }
    #contactModal .cm-view-time       { font-size: .72rem; }
    #contactModal .cm-toggle-group    { gap: 8px; }
    #contactModal .cm-opt-card        { padding: 12px 8px; border-radius: 12px; }
    #contactModal .cm-opt-icon        { width: 36px; height: 36px; font-size: .95rem; }
    #contactModal .cm-opt-label       { font-size: .82rem; }
    #contactModal .cm-prev-banner     { padding: 10px 12px; }
    #contactModal .cm-prev-name       { font-size: .82rem; }
    #contactModal .cm-prev-time       { font-size: .7rem; }
    #contactModal .modal-footer       { padding: 10px 16px 16px; }
    #contactModal .cm-btn-cancel,
    #contactModal .cm-btn-save        { flex: 1; text-align: center; padding: 9px 10px; }
}

/* ══════════════════════════════════════════════════════════
   FORM FIELDS — Simple unified style
   ══════════════════════════════════════════════════════════ */
:root {
    --f-r: 8px;
    --f-b: #ced4da;
    --f-focus: #4e73df;
    --f-ring: rgba(78,115,223,.2);
}

/* inputs & textareas */
.form-control {
    border-radius: var(--f-r) !important;
    border-color: var(--f-b) !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}
.form-control:focus {
    border-color: var(--f-focus) !important;
    box-shadow: 0 0 0 3px var(--f-ring) !important;
}

/* native <select> */
.form-select {
    border-radius: var(--f-r) !important;
    border-color: var(--f-b) !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}
.form-select:focus {
    border-color: var(--f-focus) !important;
    box-shadow: 0 0 0 3px var(--f-ring) !important;
}

/* label-type select inside input-group: shrink to content width */
.form-select.select-fit    { width: auto !important; flex: 0 0 auto !important; min-width: 0; }

/* input-group: match border color on the addon, keep its own icon colors */
.input-group               { flex-wrap: nowrap !important; }
.input-group .form-control,
.input-group .form-select  { border-color: var(--f-b) !important; }
.input-group-text          { border-color: var(--f-b) !important; background-color: #f8f9fa; flex-shrink: 0; }

/* outer radius for the group edges — LTR */
.input-group > :first-child,
.input-group > .iti:first-child .form-control {
    border-top-left-radius: var(--f-r) !important;
    border-bottom-left-radius: var(--f-r) !important;
}
.input-group > :last-child,
.input-group > .iti:last-child .form-control {
    border-top-right-radius: var(--f-r) !important;
    border-bottom-right-radius: var(--f-r) !important;
}
/* outer radius — RTL */
[dir="rtl"] .input-group > :first-child,
[dir="rtl"] .input-group > .iti:first-child .form-control {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: var(--f-r) !important;
    border-bottom-right-radius: var(--f-r) !important;
}
[dir="rtl"] .input-group > :last-child,
[dir="rtl"] .input-group > .iti:last-child .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: var(--f-r) !important;
    border-bottom-left-radius: var(--f-r) !important;
}
/* the .iti wrapper itself must not clip or add extra border */
.input-group > .iti { border-radius: 0 !important; border: none !important; padding: 0 !important; }

/* Select2: contain inside its column, no overflow */
.select2-container                    { width: 100% !important; max-width: 100% !important; }
.select2-container .select2-selection--single {
    border-radius: var(--f-r) !important;
    border: 1px solid var(--f-b) !important;
    height: 38px !important;
}
.select2-container--open  .select2-selection--single,
.select2-container--focus .select2-selection--single {
    border-color: var(--f-focus) !important;
    box-shadow: 0 0 0 3px var(--f-ring) !important;
    outline: none !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 12px !important;
    padding-right: 28px !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
[dir="rtl"] .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 28px !important;
    padding-right: 12px !important;
}
.select2-container .select2-selection__arrow {
    height: 36px !important; top: 0 !important; right: 4px !important; left: auto !important;
}
[dir="rtl"] .select2-container .select2-selection__arrow { right: auto !important; left: 4px !important; }

/* dropdown: stays in viewport */
.select2-dropdown {
    border-color: var(--f-focus) !important;
    border-radius: 0 0 var(--f-r) var(--f-r) !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}
.select2-dropdown .select2-results__options { max-height: 220px; overflow-y: auto; overflow-x: hidden; }
.select2-results__option { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* hover: blue, no purple */
.select2-results__option--highlighted { background-color: #4e73df !important; color: #fff !important; }
.select2-results__option[aria-selected="true"] { background-color: #dce6fb !important; color: #2e59d9 !important; font-weight: 600; }

/* responsive: clamp dropdown on small screens */
@media (max-width: 576px) {
    .select2-dropdown  { max-width: calc(100vw - 1rem) !important; }
    .iti__country-list { max-width: calc(100vw - 1rem) !important; }
}

/* ITI country list: show ~6 rows then scroll */
.iti__country-list { max-height: 210px !important; overflow-y: auto !important; }

/* Global phone input: keep digits LTR regardless of page direction */
.phone-input { direction: ltr !important; text-align: left !important; }
/* ITI wrapper fills its Bootstrap column like every other form-control */
.iti { width: 100%; }
/* Inside Bootstrap input-group the wrapper must flex-grow instead of being 100% wide */
.input-group > .iti { flex: 1 1 auto; width: 1% !important; min-width: 0; }

/* Syria custom flag — global */
.iti__flag.iti__sy { background-image: url("/assets/img/new-syria-flag.png") !important; background-position: center !important; background-size: contain !important; background-repeat: no-repeat !important; }

/* ── Global input-group RTL border-radius fix ───────────────────────────────
   Bootstrap RTL reverses the physical border-radius properties, which makes
   icons/buttons appear disconnected from the input field.
   Using logical CSS properties fixes it for both LTR and RTL automatically. */
.input-group > * {
    border-radius: 0 !important;
}
.input-group > :first-child {
    border-start-start-radius: var(--bs-border-radius) !important;
    border-end-start-radius:   var(--bs-border-radius) !important;
}
.input-group > :last-child {
    border-start-end-radius: var(--bs-border-radius) !important;
    border-end-end-radius:   var(--bs-border-radius) !important;
}
/* sm / lg variants */
.input-group-sm > :first-child {
    border-start-start-radius: var(--bs-border-radius-sm) !important;
    border-end-start-radius:   var(--bs-border-radius-sm) !important;
}
.input-group-sm > :last-child {
    border-start-end-radius: var(--bs-border-radius-sm) !important;
    border-end-end-radius:   var(--bs-border-radius-sm) !important;
}
.input-group-lg > :first-child {
    border-start-start-radius: var(--bs-border-radius-lg) !important;
    border-end-start-radius:   var(--bs-border-radius-lg) !important;
}
.input-group-lg > :last-child {
    border-start-end-radius: var(--bs-border-radius-lg) !important;
    border-end-end-radius:   var(--bs-border-radius-lg) !important;
}

/* ── Customer show page – info row label column ─────────────────────────────
   Fixed 160px on md+, shrinks to 110px on small screens so the value
   side has enough room for phone + badge + WhatsApp button.              */
.info-row-label { width: 160px; min-width: 160px; }
@media (max-width: 575.98px) {
    .info-row-label { width: 110px; min-width: 110px; }
}
