/* ============================================================
   ROWAAD - Custom WHMCS Theme
   Brand Identity: Navy #0F172A | Lime #D8FF00 | White #FFFFFF
   Font: Cairo (Google Fonts)
   ============================================================ */

/* ===========================================
   1. TYPOGRAPHY - Cairo Font Override
   =========================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* Apply Cairo to body — inherits to ALL children naturally.
   Font Awesome's rules apply DIRECTLY to icon elements,
   so they always win over inherited values. */
body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
}

/* Override WHMCS default Open Sans on common elements */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
p,
a,
li,
td,
th,
label,
legend,
div,
button,
input,
select,
textarea,
optgroup,
.btn,
.navbar-brand,
.nav-link,
.dropdown-item,
.card-title,
.card-header,
.card-body,
.card-footer,
.list-group-item,
.breadcrumb-item,
.badge,
.label,
.modal-title,
.modal-body,
.alert,
.form-control,
.input-group-text,
.custom-file-label,
.table,
.dataTables_wrapper {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
}

/* Font Awesome: no override needed.
   FA's own CSS applies font-family DIRECTLY to .fas/.far etc.
   which always beats the inherited Cairo value from body. */

body {
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================================
   2. COLOR SYSTEM & BACKGROUNDS
   =========================================== */
body {
    background-color: #F8FAFC !important;
    color: #4B5563 !important;
}

.primary-bg-color {
    background-color: #F8FAFC !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: #0F172A !important;
    font-weight: 700 !important;
}

a {
    color: #0F172A;
    transition: all 0.2s ease;
}

a:hover {
    color: #1E293B;
    text-decoration: none;
}

.text-primary {
    color: #0F172A !important;
}

/* ===========================================
   3. BUTTONS - All Variants
   =========================================== */
.btn {
    border-radius: 50px !important;
    font-weight: 600 !important;
    padding: 8px 22px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    font-size: 13px !important;
    letter-spacing: 0.01em;
}

/* Primary Button */
.btn-primary,
.btn.btn-primary,
a.btn-primary {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

.btn-primary:hover,
.btn.btn-primary:hover,
a.btn-primary:hover {
    background-color: #1E293B !important;
    color: #D8FF00 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25) !important;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15) !important;
}

/* Success Button */
.btn-success,
.btn.btn-success,
a.btn-success {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

.btn-success:hover,
.btn.btn-success:hover {
    background-color: #1E293B !important;
    color: #D8FF00 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25) !important;
}

/* Info Button */
.btn-info,
.btn.btn-info,
a.btn-info {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

.btn-info:hover,
.btn.btn-info:hover {
    background-color: #1E293B !important;
    color: #D8FF00 !important;
    transform: translateY(-1px);
}

/* Default / Secondary Button */
.btn-default,
.btn.btn-default,
a.btn-default,
.btn-secondary,
.btn.btn-secondary {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border: 1.5px solid #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.btn-default:hover,
.btn.btn-default:hover,
.btn-secondary:hover {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
    border-color: #CBD5E1 !important;
}

/* Danger Button */
.btn-danger,
.btn.btn-danger {
    background-color: #DC2626 !important;
    color: #FFFFFF !important;
    border-radius: 50px !important;
}

.btn-danger:hover {
    background-color: #B91C1C !important;
    transform: translateY(-1px);
}

/* Warning Button */
.btn-warning,
.btn.btn-warning {
    background-color: #F59E0B !important;
    color: #0F172A !important;
    border-radius: 50px !important;
}

/* Link Button */
.btn-link {
    color: #0F172A !important;
    text-decoration: none !important;
}

.btn-link:hover {
    color: #D8FF00 !important;
}

/* Small Button adjustments */
.btn-sm,
.btn-group-sm>.btn {
    padding: 5px 16px !important;
    font-size: 12px !important;
}

.btn-xs {
    padding: 3px 12px !important;
    font-size: 11px !important;
    border-radius: 50px !important;
}

/* ===========================================
   4. CARDS & PANELS
   =========================================== */
.card,
.panel {
    border-radius: 16px !important;
    border: 1px solid #E2E8F0 !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.card:hover,
.panel:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

.card-header,
.panel-heading {
    background-color: #FAFBFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
    font-weight: 700 !important;
    padding: 16px 20px !important;
}

.card-body,
.panel-body {
    padding: 20px !important;
}

.card-footer,
.panel-footer {
    background-color: #FAFBFC !important;
    border-top: 1px solid #E2E8F0 !important;
    padding: 12px 20px !important;
}

.card-title {
    font-weight: 700 !important;
    color: #0F172A !important;
    margin-bottom: 8px;
    font-size: 14px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar cards */
.card-sidebar {
    border-radius: 16px !important;
    overflow: hidden;
}

.card-sidebar .card-header {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
    border: none !important;
}

.card-sidebar .card-header .card-title {
    color: #D8FF00 !important;
}

.card-sidebar .card-header .card-minimise {
    color: #D8FF00 !important;
}

/* ===========================================
   5. HEADER & NAVBAR - Frosted Glass
   =========================================== */
#header,
.header {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04) !important;
    border-bottom: none !important;
}

.header .navbar,
.navbar.navbar-light {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    padding: 8px 0 !important;
}

.main-navbar-wrapper {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

.navbar-nav .nav-link {
    color: #0F172A !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #0F172A !important;
    background-color: #F1F5F9 !important;
}

.navbar-brand {
    font-weight: 800 !important;
    color: #0F172A !important;
}

.logo-img {
    max-height: 42px !important;
}

/* Top bar (logged in user bar) */
.topbar {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
    padding: 6px 0 !important;
    font-size: 13px !important;
}

.topbar .btn {
    color: #D8FF00 !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
}

.topbar .btn:hover {
    color: #FFFFFF !important;
}

.topbar .input-group-text {
    background-color: transparent !important;
    border: none !important;
    color: rgba(216, 255, 0, 0.7) !important;
    font-size: 12px !important;
}

.topbar .btn-active-client {
    color: #D8FF00 !important;
    font-weight: 600 !important;
}

.topbar .active-client {
    border: none !important;
}

.topbar .active-client .btn {
    background-color: transparent !important;
    border: none !important;
}

/* Cart badge */
.badge-info,
#cartItemCount {
    background-color: #D8FF00 !important;
    color: #0F172A !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    font-size: 10px !important;
}

/* Search bar in navbar */
.navbar .search .form-control {
    border-radius: 50px !important;
    border: 1px solid #E2E8F0 !important;
    padding: 6px 16px !important;
    background-color: #F8FAFC !important;
}

.navbar .search .btn {
    border-radius: 50px 0 0 50px !important;
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-right: none !important;
    color: #94A3B8 !important;
}

/* ===========================================
   6. FOOTER — Compact & Clean
   =========================================== */
.footer,
#footer {
    background-color: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    color: #94A3B8 !important;
    padding: 12px 0 !important;
    font-size: 12px !important;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer p,
.footer a,
.footer .nav-link,
.footer .copyright {
    color: #94A3B8 !important;
    font-size: 12px !important;
    margin: 0 !important;
    padding: 2px 8px !important;
}

.footer .nav {
    margin: 0 !important;
    padding: 0 !important;
}

.footer a:hover,
.footer .nav-link:hover {
    color: #0F172A !important;
}

.footer img.country-flag,
.footer .language-btn {
    height: 16px !important;
    width: auto !important;
}

/* ===========================================
   7. DASHBOARD TILES
   =========================================== */
.tiles {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.tile {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border: none !important;
    padding: 24px 16px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    position: relative;
}

.tile:hover {
    background-color: #F8FAFC !important;
    transform: translateY(-2px);
}

.tile .stat {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
}

.tile .title {
    color: #64748B !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

.tile i {
    color: #0F172A !important;
    font-size: 24px !important;
    opacity: 0.15;
}

/* Override default highlight colors with brand */
.tile .highlight {
    height: 4px !important;
}

.tile .highlight.bg-color-blue {
    background-color: #0F172A !important;
}

.tile .highlight.bg-color-green {
    background-color: #D8FF00 !important;
}

.tile .highlight.bg-color-red {
    background-color: #0F172A !important;
}

.tile .highlight.bg-color-gold {
    background-color: #D8FF00 !important;
}

/* ===========================================
   8. SIDEBAR & LIST GROUPS
   =========================================== */
.sidebar .list-group-item {
    border: none !important;
    padding: 10px 16px !important;
    color: #334155 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
    font-size: 13px !important;
    border-radius: 0 !important;
}

.sidebar .list-group-item:hover {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
}

.sidebar .list-group-item.active {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
    border: none !important;
}

.sidebar .list-group-item.active .badge {
    background-color: #D8FF00 !important;
    color: #0F172A !important;
}

.sidebar .list-group-item .sidebar-menu-item-icon {
    width: 20px;
    text-align: center;
}

/* Client home cards accent colors */
.card-accent-blue {
    border-top: 3px solid #0F172A !important;
}

.card-accent-green {
    border-top: 3px solid #D8FF00 !important;
}

.card-accent-red {
    border-top: 3px solid #0F172A !important;
}

.card-accent-gold,
.card-accent-orange,
.card-accent-asbestos {
    border-top: 3px solid #0F172A !important;
}

/* bg-color overrides for card header buttons */
.bg-color-blue {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
}

.bg-color-green {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
}

.bg-color-red {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
}

.bg-color-gold,
.bg-color-orange,
.bg-color-asbestos {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
}

/* ===========================================
   9. FORMS & INPUTS
   =========================================== */
.form-control {
    border-radius: 12px !important;
    border: 1.5px solid #E2E8F0 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #334155 !important;
    background-color: #FFFFFF !important;
    transition: all 0.2s ease !important;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
    border-color: #0F172A !important;
    outline: none !important;
}

select.form-control {
    border-radius: 12px !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    padding: 6px 12px !important;
    height: auto !important;
    line-height: 1.5 !important;
}

textarea.form-control {
    border-radius: 12px !important;
}

.input-group .form-control {
    border-radius: 0 !important;
}

.input-group .form-control:first-child {
    border-radius: 0 12px 12px 0 !important;
}

.input-group .form-control:last-child {
    border-radius: 12px 0 0 12px !important;
}

.input-group-prepend .input-group-text,
.input-group-prepend .btn {
    border-radius: 0 12px 12px 0 !important;
    border: 1.5px solid #E2E8F0 !important;
    background-color: #F8FAFC !important;
    color: #64748B !important;
}

.input-group-append .input-group-text,
.input-group-append .btn,
.input-group-btn .btn {
    border-radius: 12px 0 0 12px !important;
    border: 1.5px solid #E2E8F0 !important;
    background-color: #F8FAFC !important;
    color: #64748B !important;
}

.input-group-merge .input-group-prepend .input-group-text {
    border-right: none !important;
}

/* DataTables inline select */
.custom-select,
.custom-select-sm {
    border-radius: 8px !important;
    border: 1.5px solid #E2E8F0 !important;
    padding: 4px 8px 4px 24px !important;
    background-color: #FFFFFF !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    font-size: 13px !important;
    background-position: left 0.75rem center !important;
}

/* Select arrow on LEFT for RTL */
[dir="rtl"] select.form-control,
[dir="rtl"] .custom-select {
    background-position: left 0.75rem center !important;
    padding-left: 28px !important;
    padding-right: 12px !important;
}

.custom-file-label {
    border-radius: 12px !important;
    border: 1.5px solid #E2E8F0 !important;
    padding: 10px 16px !important;
}

.custom-file-label::after {
    border-radius: 0 12px 12px 0 !important;
    background-color: #0F172A !important;
    color: #D8FF00 !important;
    border: none !important;
}

label,
.form-control-label {
    font-weight: 600 !important;
    color: #334155 !important;
    font-size: 13px !important;
    margin-bottom: 6px !important;
}

/* ===========================================
   10. TABLES
   =========================================== */
.table {
    border-radius: 12px !important;
    overflow: hidden;
    width: 100% !important;
    table-layout: auto !important;
}

.table thead th {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    width: auto !important;
}

.table tbody td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    color: #334155 !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    word-wrap: break-word;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: #F8FAFC !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #FAFBFC !important;
}

.table-list thead th {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
}

/* DataTables overrides */
.dataTables_wrapper {
    width: 100% !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px !important;
    border: 1.5px solid #E2E8F0 !important;
    padding: 4px 10px !important;
}

/* ===========================================
   11. BADGES & LABELS (Ticket Statuses)
   =========================================== */
.label,
.badge {
    border-radius: 50px !important;
    padding: 5px 14px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    letter-spacing: 0.02em;
    display: inline-block;
}

.badge-success,
.label-success,
.status-Active,
.status-open {
    background-color: #D8FF00 !important;
    color: #0F172A !important;
}

.status-Answered {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
}

.status-Open {
    background-color: #D8FF00 !important;
    color: #0F172A !important;
}

.badge-danger,
.label-danger,
.status-Closed,
.status-closed {
    background-color: #64748B !important;
    color: #FFFFFF !important;
}

.badge-warning,
.label-warning,
.status-Customer-Reply,
.status-In-Progress {
    background-color: #F59E0B !important;
    color: #0F172A !important;
}

.badge-primary,
.label-primary {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
}

.badge-info,
.label-info {
    background-color: #D8FF00 !important;
    color: #0F172A !important;
}

.badge-default,
.label-default {
    background-color: #E2E8F0 !important;
    color: #334155 !important;
}

/* Requestor badges in tickets */
.requestor-badge {
    border-radius: 50px !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
}

.requestor-type-owner {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
}

.requestor-type-operator {
    background-color: #D8FF00 !important;
    color: #0F172A !important;
}

/* ===========================================
   12. TICKET VIEW - Chat Bubbles
   =========================================== */
.view-ticket {
    border-radius: 16px !important;
    overflow: hidden;
}

.ticket-reply {
    border-radius: 12px !important;
    margin-bottom: 16px;
    padding: 16px 20px !important;
    border: 1px solid #E2E8F0 !important;
    background-color: #FFFFFF !important;
    position: relative;
}

.ticket-reply.staff {
    background-color: #F0FDF0 !important;
    border-left: 4px solid #0F172A !important;
}

.ticket-reply .posted-by {
    font-size: 12px !important;
    color: #64748B !important;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
}

.ticket-reply .posted-by-name {
    font-weight: 700 !important;
    color: #0F172A !important;
}

.ticket-reply .message {
    color: #334155 !important;
    line-height: 1.8 !important;
    font-size: 14px !important;
}

.ticket-reply .attachments {
    background-color: #F8FAFC !important;
    border-radius: 8px;
    margin-top: 12px;
}

.ticket-number {
    color: #64748B !important;
    font-weight: 500 !important;
}

.ticket-subject {
    font-weight: 600 !important;
    color: #0F172A !important;
}

.ticket-subject.unread {
    color: #0F172A !important;
    font-weight: 800 !important;
}

/* Ticket actions */
.ticket-actions .btn {
    margin-left: 8px;
}

/* ===========================================
   13. BREADCRUMB
   =========================================== */
.master-breadcrumb {
    background-color: transparent !important;
    padding: 8px 0 !important;
}

.breadcrumb {
    background-color: transparent !important;
    padding: 8px 0 !important;
    margin-bottom: 0 !important;
    font-size: 13px !important;
}

.breadcrumb-item a {
    color: #64748B !important;
}

.breadcrumb-item.active {
    color: #0F172A !important;
    font-weight: 600 !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #CBD5E1 !important;
}

/* ===========================================
   14. ALERTS & NOTIFICATIONS
   =========================================== */
.alert {
    border-radius: 12px !important;
    border: none !important;
    font-weight: 500 !important;
    padding: 14px 20px !important;
}

.alert-success {
    background-color: #F0FDF4 !important;
    color: #166534 !important;
    border-left: 4px solid #22C55E !important;
}

.alert-danger {
    background-color: #FEF2F2 !important;
    color: #991B1B !important;
    border-left: 4px solid #EF4444 !important;
}

.alert-warning {
    background-color: #FFFBEB !important;
    color: #92400E !important;
    border-left: 4px solid #F59E0B !important;
}

.alert-info {
    background-color: #EFF6FF !important;
    color: #1E40AF !important;
    border-left: 4px solid #3B82F6 !important;
}

/* Client alerts dropdown */
.client-alerts li a {
    padding: 8px 12px !important;
    border-bottom: 1px solid #F1F5F9;
}

.client-alerts li a:hover {
    background-color: #F8FAFC !important;
}

/* ===========================================
   15. MODALS
   =========================================== */
.modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

.modal-header {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
    border-bottom: none !important;
    padding: 16px 24px !important;
}

.modal-header .modal-title {
    color: #D8FF00 !important;
    font-weight: 700 !important;
}

.modal-header .close {
    color: #D8FF00 !important;
    opacity: 0.8;
    text-shadow: none !important;
}

.modal-body {
    padding: 24px !important;
}

.modal-footer {
    border-top: 1px solid #E2E8F0 !important;
    padding: 16px 24px !important;
}

/* Language modal */
.modal-localisation .modal-content {
    background-color: #0F172A !important;
}

.modal-localisation .item {
    border-radius: 12px !important;
    color: #FFFFFF !important;
}

.modal-localisation .item.active,
.modal-localisation .item:hover {
    background-color: #D8FF00 !important;
    color: #0F172A !important;
}

/* ===========================================
   16. DROPDOWN MENUS
   =========================================== */
.dropdown-menu {
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    padding: 8px !important;
    overflow: hidden;
}

.dropdown-item,
.dropdown-item a {
    border-radius: 8px !important;
    padding: 8px 14px !important;
    color: #334155 !important;
    font-size: 13px !important;
    transition: all 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item a:hover,
.dropdown-item.active {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
}

.dropdown-divider {
    border-color: #E2E8F0 !important;
    margin: 4px 0 !important;
}

/* ===========================================
   17. PAGINATION
   =========================================== */
.pagination .page-item .page-link {
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #E2E8F0 !important;
    color: #334155 !important;
    padding: 6px 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background-color: #0F172A !important;
    color: #D8FF00 !important;
    border-color: #0F172A !important;
}

.pagination .page-item .page-link:hover {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
}

.dataTables_paginate .paginate_button {
    border-radius: 8px !important;
}

.dataTables_paginate .paginate_button.current {
    background: #0F172A !important;
    color: #D8FF00 !important;
    border-color: #0F172A !important;
}

/* ===========================================
   18. LOGIN PAGE
   =========================================== */
.login-form .card {
    border-radius: 20px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #E2E8F0 !important;
}

.login-form .card-body {
    padding: 40px !important;
}

.login-form .card-footer {
    background-color: #F8FAFC !important;
    border-top: 1px solid #E2E8F0 !important;
    padding: 16px 40px !important;
}

.login-form .input-group-merge .input-group-prepend .input-group-text {
    background-color: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-left: none !important;
    color: #94A3B8 !important;
}

.login-form .form-control {
    border: 1.5px solid #E2E8F0 !important;
}

.login-form .btn-reveal-pw {
    border: 1.5px solid #E2E8F0 !important;
    border-right: none !important;
    background-color: #F8FAFC !important;
}

/* ===========================================
   19. DOMAIN SEARCH (Homepage)
   =========================================== */
.domain-search-container {
    background-color: #0F172A !important;
    border-radius: 0 !important;
}

.domain-search-container .form-control {
    border-radius: 0 50px 50px 0 !important;
    font-size: 16px !important;
}

.domain-search-container .btn {
    border-radius: 50px 0 0 50px !important;
}

/* ===========================================
   20. KNOWLEDGEBASE
   =========================================== */
.kb-cat-link {
    border-radius: 12px !important;
    transition: all 0.2s ease;
}

.kb-cat-link:hover {
    background-color: #F8FAFC !important;
}

/* ===========================================
   21. INVOICE & QUOTE
   =========================================== */
.invoice-container {
    border-radius: 16px !important;
}

/* ===========================================
   22. SCROLLBAR STYLING
   =========================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* ===========================================
   23. MISC UTILITIES
   =========================================== */
.popover {
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.tooltip-inner {
    background-color: #0F172A !important;
    border-radius: 8px !important;
    font-size: 12px !important;
}

/* Loading spinner */
.fas.fa-spinner.fa-spin,
.fas.fa-circle-notch.fa-spin {
    color: #0F172A !important;
}

/* Highlight text */
::selection {
    background-color: #D8FF00;
    color: #0F172A;
}

/* Border-left accent for ticket title */
.table-list .border-left {
    border-left: 3px solid #0F172A !important;
    padding-left: 12px;
}

/* Star rating */
.rating .star,
.rating-done .star {
    color: #E2E8F0;
}

.rating .star:hover,
.rating .star:hover~.star,
.rating-done .star.active {
    color: #D8FF00 !important;
}

/* Return to admin button */
.btn-return-to-admin {
    background-color: #D8FF00 !important;
    color: #0F172A !important;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Fullpage overlay */
#fullpage-overlay {
    background-color: rgba(15, 23, 42, 0.6) !important;
}

/* ===========================================
   24. RTL (Arabic) COMPREHENSIVE FIX
   =========================================== */
[dir="rtl"] body {
    text-align: right;
}

/* RTL: Flip margins */
[dir="rtl"] .ml-auto {
    margin-right: auto !important;
    margin-left: unset !important;
}

[dir="rtl"] .mr-auto {
    margin-left: auto !important;
    margin-right: unset !important;
}

[dir="rtl"] .ml-1 {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .mr-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ml-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .mr-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ml-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .mr-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ml-4 {
    margin-right: 1.5rem !important;
    margin-left: 0 !important;
}

/* RTL: Flip padding */
[dir="rtl"] .pl-1 {
    padding-right: 0.25rem !important;
    padding-left: 0 !important;
}

[dir="rtl"] .pr-1 {
    padding-left: 0.25rem !important;
    padding-right: 0 !important;
}

[dir="rtl"] .pl-2 {
    padding-right: 0.5rem !important;
    padding-left: 0 !important;
}

[dir="rtl"] .pr-2 {
    padding-left: 0.5rem !important;
    padding-right: 0 !important;
}

[dir="rtl"] .pl-3 {
    padding-right: 1rem !important;
    padding-left: 0 !important;
}

[dir="rtl"] .pr-3 {
    padding-left: 1rem !important;
    padding-right: 0 !important;
}

[dir="rtl"] .pl-4 {
    padding-right: 1.5rem !important;
    padding-left: 0 !important;
}

[dir="rtl"] .pr-4 {
    padding-left: 1.5rem !important;
    padding-right: 0 !important;
}

[dir="rtl"] .px-sm-5 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

/* RTL: Flip floats */
[dir="rtl"] .float-left {
    float: right !important;
}

[dir="rtl"] .float-right {
    float: left !important;
}

[dir="rtl"] .float-sm-right {
    float: left !important;
}

[dir="rtl"] .float-md-right {
    float: left !important;
}

[dir="rtl"] .float-lg-right {
    float: left !important;
}

/* RTL: Flip text alignment */
[dir="rtl"] .text-left {
    text-align: right !important;
}

[dir="rtl"] .text-right {
    text-align: left !important;
}

/* RTL: Input groups flip */
[dir="rtl"] .input-group .form-control:first-child {
    border-radius: 12px 0 0 12px !important;
}

[dir="rtl"] .input-group .form-control:last-child {
    border-radius: 0 12px 12px 0 !important;
}

[dir="rtl"] .input-group-prepend .input-group-text,
[dir="rtl"] .input-group-prepend .btn {
    border-radius: 0 12px 12px 0 !important;
}

[dir="rtl"] .input-group-append .input-group-text,
[dir="rtl"] .input-group-append .btn {
    border-radius: 12px 0 0 12px !important;
}

[dir="rtl"] .input-group-merge .input-group-prepend .input-group-text {
    border-left: 1.5px solid #E2E8F0 !important;
    border-right: none !important;
}

/* RTL: Breadcrumbs */
[dir="rtl"] .breadcrumb-item+.breadcrumb-item::before {
    content: "\f053" !important;
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free" !important;
    font-weight: 900;
    font-size: 9px;
    padding-left: 8px;
    padding-right: 0;
}

/* RTL: Dropdown */
[dir="rtl"] .dropdown-menu-right {
    left: 0 !important;
    right: auto !important;
}

/* RTL: Ticket reply staff border */
[dir="rtl"] .ticket-reply.staff {
    border-left: none !important;
    border-right: 4px solid #0F172A !important;
}

/* RTL: Table border-left on tickets */
[dir="rtl"] .table-list .border-left {
    border-left: none !important;
    border-right: 3px solid #0F172A !important;
    padding-right: 12px;
    padding-left: 0;
}

/* RTL: Login page */
[dir="rtl"] .login-form .input-group-merge .input-group-prepend .input-group-text {
    border-right: none !important;
    border-left: 1.5px solid #E2E8F0 !important;
}

[dir="rtl"] .login-form .btn-reveal-pw {
    border-left: none !important;
    border-right: 1.5px solid #E2E8F0 !important;
}

/* RTL: Custom file label */
[dir="rtl"] .custom-file-label::after {
    border-radius: 12px 0 0 12px !important;
    left: 0;
    right: auto;
}

/* RTL: Sidebar chevron */
[dir="rtl"] .card-minimise {
    float: left !important;
}

/* RTL: Badge floats */
[dir="rtl"] .badge.float-right,
[dir="rtl"] .badge.float-md-right {
    float: left !important;
}

/* RTL: Navbar */
[dir="rtl"] .navbar .search .btn {
    border-radius: 0 50px 50px 0 !important;
}

[dir="rtl"] .navbar .search .form-control {
    border-radius: 50px 0 0 50px !important;
}

/* RTL: Domain search */
[dir="rtl"] .domain-search-container .form-control {
    border-radius: 50px 0 0 50px !important;
}

[dir="rtl"] .domain-search-container .btn {
    border-radius: 0 50px 50px 0 !important;
}

/* RTL: Alerts border */
[dir="rtl"] .alert-success {
    border-left: none !important;
    border-right: 4px solid #22C55E !important;
}

[dir="rtl"] .alert-danger {
    border-left: none !important;
    border-right: 4px solid #EF4444 !important;
}

[dir="rtl"] .alert-warning {
    border-left: none !important;
    border-right: 4px solid #F59E0B !important;
}

[dir="rtl"] .alert-info {
    border-left: none !important;
    border-right: 4px solid #3B82F6 !important;
}

/* RTL: Return to admin button */
[dir="rtl"] .btn-return-to-admin {
    left: auto;
    right: 20px;
}

/* ===========================================
   25. SMOOTH TRANSITIONS & ANIMATIONS
   =========================================== */
.card,
.btn,
.form-control,
.nav-link,
.list-group-item,
.tile,
.badge,
.alert {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Fade-in animation for main content */
#main-body {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
   26. Z-INDEX FIXES
   =========================================== */
.navbar {
    position: relative;
    z-index: 1030 !important;
}

.dropdown-menu {
    z-index: 1050 !important;
}

.main-navbar-wrapper {
    z-index: 1030 !important;
    position: relative;
}

.header {
    z-index: 1030 !important;
    position: relative;
}

.topbar {
    z-index: 1031 !important;
    position: relative;
}

.card,
.panel,
.tiles {
    z-index: 1;
    position: relative;
}

.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1055 !important;
}

/* ===========================================
   27. LOGIN PAGE RTL FIXES
   =========================================== */
.form-check {
    padding-left: 0 !important;
    padding-right: 1.25rem;
}

[dir="rtl"] .form-check {
    padding-right: 0 !important;
    padding-left: 1.25rem;
}

.form-check-input {
    margin-left: 0 !important;
}

[dir="rtl"] .form-check-input {
    margin-right: -1.25rem !important;
    margin-left: 0 !important;
}

.forgot-pw {
    text-align: left;
}

[dir="rtl"] .forgot-pw {
    text-align: right;
}

/* ===========================================
   28. CONTRAST & READABILITY FIXES
   =========================================== */
.text-muted,
.small,
small {
    color: #64748B !important;
}

.sidebar .card-body {
    color: #334155 !important;
}

.sidebar .list-group-item {
    color: #334155 !important;
}

.sidebar .list-group-item-heading {
    color: #0F172A !important;
    font-weight: 600;
}

/* ===========================================
   29. RTL CART & MISC ICON FIXES
   =========================================== */
[dir="rtl"] .fa-arrow-right::before {
    content: "\f060" !important;
}

[dir="rtl"] .fa-arrow-left::before {
    content: "\f061" !important;
}

[dir="rtl"] .fa-chevron-right::before {
    content: "\f053" !important;
}

[dir="rtl"] .fa-chevron-left::before {
    content: "\f054" !important;
}

/* ===========================================
   30. DISABLED / READONLY FIELDS
   =========================================== */
.form-control[disabled],
.form-control[readonly],
.form-control.disabled,
input[disabled],
input[readonly],
select[disabled],
textarea[disabled],
textarea[readonly] {
    background-color: #F1F5F9 !important;
    color: #94A3B8 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    border-color: #E2E8F0 !important;
}

/* ===========================================
   31. SIDEBAR CC EMAIL INPUT COMPACT
   =========================================== */
.card-sidebar .input-group .form-control,
.card-sidebar .input-group .btn,
#containerAddCcEmail .form-control,
#containerAddCcEmail .btn {
    padding: 5px 10px !important;
    font-size: 12px !important;
    height: 34px !important;
    border-radius: 8px !important;
}

#containerAddCcEmail .input-group-btn .btn,
#containerAddCcEmail .input-group-append .btn {
    border-radius: 8px 0 0 8px !important;
}

#containerAddCcEmail .form-control {
    border-radius: 0 8px 8px 0 !important;
}

[dir="rtl"] #containerAddCcEmail .input-group-btn .btn,
[dir="rtl"] #containerAddCcEmail .input-group-append .btn {
    border-radius: 0 8px 8px 0 !important;
}

[dir="rtl"] #containerAddCcEmail .form-control {
    border-radius: 8px 0 0 8px !important;
}

/* ===========================================
   32. SIDEBAR RECENT TICKETS — TRUNCATE LONG TITLES
   =========================================== */
.card-sidebar .list-group-item,
.card-sidebar .list-group a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.card-sidebar .list-group-item .text-truncate,
.card-sidebar .ticket-info {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===========================================
   33. ATTACHMENT LIST STYLING
   =========================================== */
.attachment-list {
    list-style: none !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.attachment-list li {
    flex: 0 0 auto;
}

.attachment-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    max-width: 140px;
}

.attachment-list li a:hover {
    background-color: #F1F5F9 !important;
    border-color: #CBD5E1;
}

.attachment-list li a figure {
    margin: 0 0 8px 0;
}

.attachment-list li a figure i {
    font-size: 28px;
    color: #64748B;
}

.attachment-list li a .caption {
    font-size: 11px !important;
    color: #334155;
    word-break: break-all;
    text-align: center;
    line-height: 1.3;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===========================================
   34. STAR RATING STYLING
   =========================================== */
.rating .star {
    cursor: pointer;
    font-size: 20px;
    color: #E2E8F0;
    transition: color 0.2s ease;
}

.rating .star:hover,
.rating .star.active {
    color: #D8FF00;
}

.rating .star::before {
    content: "\2605";
    font-family: inherit;
}

/* ===========================================
   35. FORM FIELDS — FULL WIDTH ON SINGLE COLUMN
   =========================================== */
/* Ensure selects/inputs take full width when in single-column layout */
.form-group select.form-control,
.form-group .form-control {
    width: 100% !important;
}

/* Client details page — bottom fields full width */
.main-content .form-group {
    width: 100%;
}

.main-content .col-md-6 .form-group select.form-control,
.main-content .col-md-6 .form-group input.form-control {
    max-width: 100% !important;
}

/* ===========================================
   36. PHONE NUMBER FIELD — RTL FIX
   =========================================== */
/* intl-tel-input flag overlap fix for RTL */
.iti--allow-dropdown input,
.iti--allow-dropdown input.form-control,
input[name="phonenumber"],
input#inputPhone,
.iti input {
    padding-right: 52px !important;
    padding-left: 12px !important;
    text-align: right !important;
}

[dir="rtl"] .iti--allow-dropdown input,
[dir="rtl"] .iti input {
    padding-right: 52px !important;
    padding-left: 12px !important;
}

.iti__flag-container {
    right: 0 !important;
    left: auto !important;
}

[dir="rtl"] .iti__flag-container {
    right: 0 !important;
    left: auto !important;
}

.iti {
    width: 100% !important;
}

/* ===========================================
   37. CHECKBOXES — RTL POSITION FIX
   =========================================== */
/* Each checkbox on its OWN LINE (block), with checkbox on RIGHT of label */
[dir="rtl"] .form-check,
.form-check {
    display: flex !important;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-bottom: 10px !important;
    width: 100%;
}

.form-check-input {
    margin: 3px 0 0 0 !important;
    position: static !important;
    flex-shrink: 0;
}

.form-check-label {
    margin: 0 !important;
    cursor: pointer;
    white-space: normal;
    text-align: right;
}

/* ===========================================
   38. PHONE COUNTRY DROPDOWN — RTL FIX
   =========================================== */
/* Country list dropdown opens from right in RTL */
[dir="rtl"] .iti__country-list,
.iti__country-list {
    text-align: right !important;
    direction: rtl;
}

[dir="rtl"] .iti__country-list .iti__country {
    display: flex;
    flex-direction: row-reverse;
    padding: 5px 10px !important;
}

[dir="rtl"] .iti__country-list .iti__country-name {
    margin-right: 6px;
    margin-left: 0;
}

[dir="rtl"] .iti__country-list .iti__dial-code {
    direction: ltr;
}

/* Arrow/dropdown button position for RTL */
[dir="rtl"] .iti__selected-flag {
    padding: 0 8px 0 6px !important;
    direction: ltr;
}

/* ===========================================
   39. FORM-CHECK-INLINE FIX (Permissions page)
   =========================================== */
/* Override Bootstrap's inline-flex so each option stays on its own line */
.form-check-inline {
    display: flex !important;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 8px;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    margin-bottom: 8px !important;
    width: 100%;
}

.form-check-inline .form-check-input {
    margin: 3px 0 0 0 !important;
    position: static !important;
    flex-shrink: 0;
}

.form-check-inline .form-check-label,
.form-check-inline label {
    text-align: right;
    white-space: normal;
    flex: 1;
}

/* ===========================================
   40. BREADCRUMB SEPARATORS FIX
   =========================================== */
/* Ensure breadcrumb separators don't use icon fonts */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›" !important;
    font-family: Cairo, sans-serif !important;
    font-size: 16px;
    color: #94A3B8;
    padding: 0 8px;
}

/* For RTL, flip the separator */
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    content: "‹" !important;
}

/* ===========================================
   41. MOBILE RESPONSIVE CSS
   =========================================== */
@media (max-width: 768px) {
    /* --- Layout --- */
    .main-content {
        padding: 10px !important;
    }

    .card {
        margin-bottom: 12px !important;
    }

    .card-body {
        padding: 12px !important;
    }

    /* --- Sidebar collapses nicely --- */
    .sidebar .card {
        margin-bottom: 8px !important;
    }

    /* --- Forms stack vertically --- */
    .form-group {
        margin-bottom: 12px;
    }

    .form-control {
        font-size: 14px !important;
    }

    select.form-control {
        font-size: 14px !important;
    }

    /* --- Tables scroll horizontally --- */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table.table {
        min-width: 500px;
    }

    /* --- Buttons --- */
    .btn {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }

    /* --- Checkboxes / Radio on mobile --- */
    .form-check,
    .form-check-inline {
        gap: 6px;
    }

    .form-check-label {
        font-size: 13px;
    }

    /* --- Navbar mobile --- */
    .navbar-nav .nav-link {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    /* --- Footer compact on mobile --- */
    .main-footer {
        padding: 8px 12px !important;
        font-size: 11px !important;
    }

    .main-footer .footer-links {
        flex-direction: column;
        gap: 4px;
    }

    /* --- Dashboard tiles --- */
    .stats-tile {
        padding: 10px !important;
    }

    /* --- Input groups --- */
    .input-group {
        flex-wrap: nowrap;
    }

    /* --- Modal dialogs --- */
    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    body {
        font-size: 13px !important;
    }

    h1, .h1 { font-size: 20px !important; }
    h2, .h2 { font-size: 18px !important; }
    h3, .h3 { font-size: 16px !important; }

    .card-title {
        font-size: 13px !important;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 4px;
    }
}

/* ===========================================
   42. LOGIN FORM — INPUT GROUP ICONS FIX
   =========================================== */
/* Force input-group to stay inline (no vertical stacking) */
.login-form .input-group,
.login-form .input-group-merge {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

.login-form .input-group .form-control {
    flex: 1 1 auto !important;
    width: 1% !important;
}

.login-form .input-group-prepend {
    display: flex !important;
    order: 2;
}

.login-form .input-group-append,
.login-form .btn-reveal-pw {
    display: flex !important;
    align-items: center;
}

/* Fix eye icon for password reveal */
.login-form .btn-reveal-pw {
    border-radius: 12px 0 0 12px !important;
    border: 1.5px solid #E2E8F0 !important;
    border-right: none !important;
    background-color: #F8FAFC !important;
    padding: 0 12px !important;
    z-index: 3;
}

/* ===========================================
   43. DETAILS PAGE — SINGLE-COLUMN FIELDS FULL WIDTH  
   =========================================== */
/* When a col-md-6 has no sibling, make it full width */
/* These fields sit alone in their row: postcode, country, phone, payment, account, language, tax */
#containerClientDetails .row .col-md-6:only-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Force bottom fields to full width regardless */
#containerClientDetails .form-group[id*="payment"],
#containerClientDetails .form-group select[name="paymentmethod"],
#containerClientDetails .form-group select[name="billingcontact"],
#containerClientDetails .form-group select[name="language"] {
    width: 100% !important;
}

/* Ensure the select fields inside are full width */
#containerClientDetails select.form-control,
#containerClientDetails .custom-select {
    width: 100% !important;
    max-width: 100% !important;
}

/* ===========================================
   44. CART ICON — HEADER FIX
   =========================================== */
/* Make sure cart icon is visible and not behind badge */
.cart-btn,
a.cart-btn,
.header-cart-btn {
    position: relative !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px;
}

.cart-btn i,
.cart-btn .fas,
.cart-btn .fa,
.cart-btn svg {
    position: relative !important;
    z-index: 11 !important;
    font-size: 18px;
}

.cart-btn .badge {
    position: relative !important;
    z-index: 12 !important;
}

/* ===========================================
   45. PHONE INPUT — INTL-TEL-INPUT FLAG VISIBILITY
   =========================================== */
/* Ensure flag is visible inside phone input */
.iti__flag-container {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    z-index: 5;
}

.iti__selected-flag {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 8px !important;
}

.iti__flag {
    display: inline-block !important;
    width: 20px !important;
    height: 15px !important;
}

.iti {
    display: block !important;
    width: 100% !important;
    position: relative !important;
}

.iti input,
.iti input.form-control {
    width: 100% !important;
    padding-right: 52px !important;
}