#west {
    height: min-content;
}

/* Call Log Custom Configuration Dashboard Styling */

.call-config-dashboard {
    background-color: #f8fafc;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

.call-config-dashboard p {
    max-width: 100% !important;
}

/* Eliminate default blue focus rings and set matching color glows */
.call-config-dashboard button:focus,
.call-config-dashboard .btn:focus,
.call-config-dashboard .btn:active,
.call-config-dashboard .btn:hover,
.call-config-dashboard .custom-nav-pill:focus {
    outline: none !important;
    box-shadow: none !important;
}

.call-config-dashboard .btn-danger:focus,
.call-config-dashboard .btn-danger:active,
.call-config-dashboard .btn-outline-danger:focus,
.call-config-dashboard .btn-outline-danger:active {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.call-config-dashboard .btn-success:focus,
.call-config-dashboard .btn-success:active,
.call-config-dashboard .btn-outline-success:focus,
.call-config-dashboard .btn-outline-success:active {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

.call-config-dashboard .btn-secondary:focus,
.call-config-dashboard .btn-secondary:active,
.call-config-dashboard .btn-outline-secondary:focus,
.call-config-dashboard .btn-outline-secondary:active {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25) !important;
}

.call-config-dashboard .btn-info:focus,
.call-config-dashboard .btn-info:active,
.call-config-dashboard .btn-outline-info:focus,
.call-config-dashboard .btn-outline-info:active {
    box-shadow: 0 0 0 0.2rem rgba(13, 202, 240, 0.25) !important;
}

/* Yellow Reset Button with Smooth Contrast Hover */
.btn-warning-reset {
    color: #78350f !important;
    background-color: #fef3c7 !important;
    border: 1px solid #f59e0b !important;
    font-weight: 500;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out !important;
}

.btn-warning-reset:hover,
.btn-warning-reset:focus {
    color: #ffffff !important;
    background-color: #d97706 !important;
    border-color: #b45309 !important;
}

.btn-warning-reset:hover i,
.btn-warning-reset:focus i {
    color: #ffffff !important;
}

.btn-warning-reset:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Custom Navigation Pills */
.custom-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 24px;
    list-style: none;
    padding-left: 0;
}

.custom-nav-pill {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
}

.custom-nav-pill:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.custom-nav-pill.active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.25) !important;
}

/* Headings & Typography */
.call-config-dashboard h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.25rem;
}

.call-config-dashboard h4 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.call-config-dashboard h5 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.call-config-dashboard h6 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.call-config-dashboard label,
.call-config-dashboard .form-label {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: #0f172a !important;
    margin-bottom: 6px;
    display: block;
}

.call-config-dashboard .setting-blurb {
    font-size: 0.875rem !important;
    font-weight: 500;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Card Containers & Headers - Visible Overflow for Floating Menus */
.call-config-dashboard .card {
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    overflow: visible !important;
}

.call-config-dashboard .card-header {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background-color: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    padding: 12px 20px !important;
}

.call-config-dashboard .card-body {
    padding: 20px !important;
    overflow: visible !important;
}

/* Custom Multi-Select Container & Dropdown Styling */
.custom-multiselect-container,
.searchable-field-select {
    max-width: 650px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.custom-multiselect-container.is-open,
.searchable-field-select.is-open {
    z-index: 1000 !important;
}

.custom-multiselect-box {
    min-height: 38px !important;
    height: auto;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 12px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-multiselect-box:hover,
.custom-multiselect-box.is-open {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15) !important;
}

.custom-multiselect-menu,
.searchable-field-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1050 !important;
    margin-top: 6px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.custom-multiselect-item,
.searchable-field-item {
    padding: 10px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    transition: background-color 0.12s ease-in-out;
}

.custom-multiselect-item:hover,
.searchable-field-item:hover,
.searchable-field-item.active {
    background-color: #f1f5f9;
    color: #0f172a;
}

.multiselect-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.825rem;
    font-weight: 600;
    margin-right: 6px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.multiselect-chip.chip-blue {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.multiselect-chip.chip-green {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.multiselect-chip .close-icon {
    margin-left: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease-in-out;
}

.multiselect-chip .close-icon:hover {
    opacity: 1;
}

/* Holiday Switch Cards */
.holiday-card {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.holiday-card:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

.holiday-card .holiday-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.holiday-card .form-check-input {
    cursor: pointer;
    width: 2.2em;
    height: 1.2em;
    margin: 0;
}

/* Form Control & Select Height & Spacing - Uniform 38px */
.call-config-dashboard select.form-select,
.call-config-dashboard select.form-select-sm,
.call-config-dashboard input.form-control,
.call-config-dashboard input.form-control-sm,
.call-config-dashboard input[type="text"],
.call-config-dashboard input[type="number"],
.call-config-dashboard .searchable-field-select .form-select {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    padding: 6px 12px !important;
    line-height: 1.5 !important;
    background-color: #ffffff;
    color: #0f172a;
    box-sizing: border-box !important;
}

.call-config-dashboard .searchable-field-select .form-select {
    background-image: none !important;
    padding-right: 12px !important;
}

.call-config-dashboard select.form-select:focus,
.call-config-dashboard input.form-control:focus,
.call-config-dashboard textarea.form-control:focus,
.call-config-dashboard .searchable-field-select.is-open .form-select {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15) !important;
}

.call-config-dashboard textarea.form-control,
.call-config-dashboard textarea.form-control-sm {
    height: auto !important;
    min-height: 90px !important;
    max-height: none !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    padding: 8px 12px !important;
    line-height: 1.5 !important;
    background-color: #ffffff;
    color: #0f172a;
    box-sizing: border-box !important;
}

/* Drag and Drop Tab Reordering Grab Handles */
.call-config-dashboard .drag-handle,
.call-config-dashboard .cursor-grab {
    cursor: grab !important;
    cursor: -webkit-grab !important;
}

.call-config-dashboard .drag-handle:hover,
.call-config-dashboard .cursor-grab:hover {
    color: #0f172a !important;
}

.call-config-dashboard .drag-handle:active,
.call-config-dashboard .cursor-grab:active,
.call-config-dashboard .call-tab-card.dragging .drag-handle {
    cursor: grabbing !important;
    cursor: -webkit-grabbing !important;
}

/* Uniform width for setup checklist badges */
.call-config-dashboard .checklist-badge {
    width: 130px;
    min-width: 130px;
    text-align: center;
    display: inline-block;
    flex-shrink: 0;
}

/* Call Script & Talking Points Section */
.call-config-dashboard .call-script-section {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.call-config-dashboard .call-script-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 10px;
}

.call-config-dashboard .script-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 0.775rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
}

.call-config-dashboard .script-tag-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.call-config-dashboard .script-tag-chip:active {
    transform: translateY(0);
}

.call-config-dashboard .chip-custom {
    background-color: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

.call-config-dashboard .chip-custom:hover {
    background-color: #ede9fe;
    border-color: #c4b5fd;
    color: #5b21b6;
}

.call-config-dashboard .chip-smart {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.call-config-dashboard .chip-smart:hover {
    background-color: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.call-config-dashboard .chip-field-btn {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.775rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
}

.call-config-dashboard .chip-field-btn:hover {
    background-color: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

/* Script Action Buttons (Starter Script, Tag Guide) */
.call-config-dashboard .btn-script-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 31px;
    padding: 0 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease-in-out;
}

.call-config-dashboard .btn-script-action:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.call-config-dashboard .btn-script-action:active {
    transform: translateY(0);
    background-color: #f1f5f9;
}

.call-config-dashboard .btn-script-starter {
    border-color: #cbd5e1;
    color: #334155;
}

.call-config-dashboard .btn-script-starter i {
    color: #2563eb;
}

.call-config-dashboard .btn-script-starter:hover i {
    color: #1d4ed8;
}

.call-config-dashboard .btn-script-guide {
    border-color: #cbd5e1;
    color: #475569;
}

.call-config-dashboard .btn-script-guide i {
    color: #0284c7;
}

.call-config-dashboard .btn-script-guide.active {
    background-color: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
    font-weight: 700 !important;
}

.call-config-dashboard .btn-script-guide.active i {
    color: #1d4ed8 !important;
}

/* TinyMCE Editor Wrapper Polish */
.call-config-dashboard .call-script-section .tox.tox-tinymce {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden;
}

.call-config-dashboard .call-script-section .tox.tox-tinymce.tox-edit-focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15) !important;
}

.call-config-dashboard .call-script-section .tox .tox-toolbar-overlord,
.call-config-dashboard .call-script-section .tox .tox-toolbar,
.call-config-dashboard .call-script-section .tox .tox-toolbar__primary {
    background-color: #f8fafc !important;
}

/* Call Script Guide Card */
.call-config-dashboard .call-script-guide-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.8125rem;
    color: #475569;
}

.call-config-dashboard .call-script-guide-table {
    width: 100%;
    margin-bottom: 0;
}

.call-config-dashboard .call-script-guide-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    padding: 6px 8px;
}

.call-config-dashboard .call-script-guide-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}