/*==== for new configuration page ====*/
.config-page {
    min-height: 100vh;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%); */
    background-color: #f3f4f6;
    padding: 0;
}

.config-header {
    /* background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%); */
    padding: 40px 30px;
    color: #000;
}

.config-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    font-family: 'Poppins', sans-serif;
}

.config-header p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.config-content {
    padding: 0 30px 40px;
}

.config-section {
    margin-bottom: 40px;
}

.config-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-left: 4px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1400px) {
    .config-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .config-grid {
        grid-template-columns: 1fr;
    }
}

.config-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.config-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color) 0%, var(--card-color-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.config-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.config-card:hover::before {
    opacity: 1;
}

.config-card--blue { --card-color: #3b82f6; --card-color-light: #60a5fa; }
.config-card--green { --card-color: #10b981; --card-color-light: #34d399; }
.config-card--purple { --card-color: #8b5cf6; --card-color-light: #a78bfa; }
.config-card--orange { --card-color: #f59e0b; --card-color-light: #fbbf24; }
.config-card--red { --card-color: #ef4444; --card-color-light: #f87171; }
.config-card--teal { --card-color: #14b8a6; --card-color-light: #2dd4bf; }
.config-card--indigo { --card-color: #6366f1; --card-color-light: #818cf8; }
.config-card--pink { --card-color: #ec4899; --card-color-light: #f472b6; }
.config-card--cyan { --card-color: #06b6d4; --card-color-light: #22d3ee; }

.config-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.config-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.config-card-icon i {
    font-size: 24px;
    color: #00B36C;
}

.config-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.config-card-status--connected {
    background: #ecfdf5;
    color: #059669;
}

.config-card-status--pending {
    background: #fffbeb;
    color: #d97706;
}

.config-card-status--coming {
    background: #f3f4f6;
    color: #6b7280;
}

.config-card--disabled {
    opacity: 0.9;
    pointer-events: none;
    cursor: default;
}

.config-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.3;
}

.config-card-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.config-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.config-card-link {
    font-size: 14px;
    font-weight: 600;
    /* color: var(--card-color); */
    color: #00B36C;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-card-link i {
    transition: transform 0.2s ease;
}

.config-card:hover .config-card-link i {
    transform: translateX(4px);
}

.config-card-meta {
    font-size: 12px;
    color: #9ca3af;
}

/* Quick Stats Section */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon--blue { background: #eff6ff; color: #3b82f6; }
.stat-icon--green { background: #ecfdf5; color: #10b981; }
.stat-icon--purple { background: #f5f3ff; color: #8b5cf6; }
.stat-icon--orange { background: #fffbeb; color: #f59e0b; }

.stat-info h4 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}

.stat-info p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/*==== for the agency configuration detail page ====*/

.agency-page * {
    box-sizing: border-box;
}

.agency-page {
    min-height: 100vh;
    background: #f8f9fb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.agency-header {
    background: #ffffff;
    padding: 20px 32px;
    border-bottom: 1px solid #eaedf3;
}

.agency-header .back-arrow {
    color: #1a1a2e;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
}

.agency-header .back-arrow:hover {
    color: #4a7dff;
}

.agency-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

.agency-header .subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Content area */
.agency-content {
    padding: 24px 32px 100px 32px;
    max-width: none;
}


/* Grid layout */
.cards-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.cards-row .card {
    flex: 1;
    min-width: 0;
}

/* Increase Agency Details width */
.cards-row .agency-details-card {
    flex: 1;
}
.cards-row .customization-card {
    flex: 2;
}

/* Keep Headquarters smaller */
.cards-row .card:not(.agency-details-card) {
    flex: 1;
}

@media (max-width: 992px) {
    .cards-row {
        flex-direction: column;
    }
}

/* Card styling */
.config-page .card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.card-title-section {
    margin-bottom: 24px;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.card-icon {
    font-size: 16px;
    color: #6b7280;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    /* color: #1a1a2e; */
    color: #1F2937;
    margin: 0;
}
.input-heading {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 7px;
}

.card-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* Form elements */
.field-group {
    margin-bottom: 16px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.field-input {
    width: 100%;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a2e;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease;
}

.field-input:focus {
    border-color: #00B36C;
}

.field-input::placeholder {
    color: #9ca3af;
}

/* Two column row */
.field-row {
    display: flex;
    gap: 16px;
}

.field-row .field-group {
    flex: 1;
}

/* Input with trailing icon */
.input-wrapper {
    position: relative;
}

.input-wrapper .field-input {
    padding-right: 42px;
}

.input-wrapper .trailing-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
}

/* Timezone box */
.timezone-box {
    background: #dde4eb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
    text-align: center;
}

.timezone-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.timezone-value {
    font-size: 14px;
    color: #1a1a2e;
}

/* Policy Divisions */
.policy-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

.policy-cards {
    display: flex;
    gap: 12px;
}

.policy-card {
    flex: 1;
    border: 2px solid #00B36C;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    background: rgba(74, 125, 255, 0.03);
}

.policy-card:hover {
    /* background: rgba(74, 125, 255, 0.06); */
    background: rgb(46 228 145 / 6%);
}

.policy-card.inactive {
    border-color: #e5e7eb;
    background: #ffffff;
}

.policy-card.inactive:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.policy-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px auto;
    background: rgba(74, 125, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.policy-icon i {
    font-size: 18px;
    color: #00B36C;
}

.policy-card.inactive .policy-icon {
    background: #f3f4f6;
}

.policy-card.inactive .policy-icon i {
    color: #9ca3af;
}

.policy-text {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
}

/* Checkbox row */
.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #4a7dff;
}

.checkbox-field label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

/* Sync button */
.sync-btn {
    width: 100%;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.15s ease;
}

.sync-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.sync-btn i {
    font-size: 14px;
    color: #6b7280;
}

/* Logo upload area */
.logo-upload {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fafbfc;
}

.logo-upload:hover {
    border-color: #00B36C;
    background: rgba(74, 125, 255, 0.02);
}

.logo-upload.has-logo {
    padding: 10px;
}

.logo-upload img {
    max-width: 160px;
    max-height: 40px;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.logo-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px auto;
    background: #e8f0fe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 22px;
    color: #4a7dff;
}

.logo-text {
    font-size: 14px;
    color: #9ca3af;
}

/* API Key section */
.api-field {
    position: relative;
}

.api-input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    color: #374151;
    background: #dde4eb;
    outline: none;
}

.api-copy-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.api-copy-btn:hover {
    color: #4a7dff;
}

.api-note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
}

/* Footer */
.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #eaedf3;
    padding: 16px 32px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    z-index: 1000;
}

.btn-cancel {
    height: 40px;
    padding: 0 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-cancel:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    text-decoration: none;
}

.btn-save {
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background: #4a7dff;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
}

.btn-save:hover {
    background: #3a6df0;
}

.hash_text{
    width: 90%;
    border: 1px solid #ebebea;
    padding-right: 5px;
    border-radius: 4px 0px 0px 4px;
    line-height: 37px;
    padding-left: 11px;
    background-color: #e9ecef;
} 

.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-container .tooltip-content {
    visibility: hidden;
    opacity: 0;
    width: 300px;
    background-color: #fff;
    color: #111827;
    text-align: left;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: absolute;
    z-index: 1;
    top: -316%; /* adjust as needed */
    left: 690%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    height: 205px;
}

.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.tooltip-content ul li{
    font-size: 12px;
    font-weight: 500;
}

/*==== for ams configuration page ====*/
.ams-config-page {
    min-height: 100vh;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%); */
}

.ams-config-header {
    /* background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%); */
    padding: 30px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.ams-config-header-content h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.ams-config-header-content p {
    font-size: 14px;
    opacity: 0.85;
    margin: 0;
}

.ams-config-content {
    padding: 30px;
    max-width: none;
}

/* Form Section */
.form-section {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.form-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.form-section-icon--green { background: #ecfdf5; color: #10b981; }
.form-section-icon--blue { background: #eff6ff; color: #3b82f6; }
.form-section-icon--purple { background: #f5f3ff; color: #8b5cf6; }
.form-section-icon--orange { background: #fffbeb; color: #f59e0b; }

.form-section-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.form-section-title p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Override existing form styles */
.form-section .form-control {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
}

.form-section .form-control:focus {
    border-color: #00B36C;
    box-shadow: 0 0 0 3px rgba(0, 179, 108, 0.1);
}

.form-section .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
}

.form-section .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    border-radius: 10px !important;
}

/* Current Integration Banner */
.current-integration {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.current-integration-icon {
    width: 56px;
    height: 56px;
    background: #10b981;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.current-integration-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #065f46;
    margin: 0 0 4px 0;
}

.current-integration-details p {
    font-size: 14px;
    color: #047857;
    margin: 0;
}

/*==== for team configuration page ====*/
.team-config-page {
    min-height: 100vh;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%); */
}

.config-header {
    /* background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%); */
    /* background: linear-gradient(12deg, #2e416c 0%, #6cbd8a 100%); */
    padding: 30px;
    color: #111827;
    /* display: flex; */
    align-items: center;
    justify-content: space-between;
    border-radius: 14px;
}

.config-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.config-header-content h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.config-header-content p {
    font-size: 14px;
    opacity: 0.85;
    margin: 0;
}

.add-member-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.add-member-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #1e3a5f;
    text-decoration: none;
}

.config-content {
    padding: 30px;
}

/* Stats Cards */
.team-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .team-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .team-stats { grid-template-columns: 1fr; }
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon--purple { background: #f5f3ff; color: #8b5cf6; }
.stat-icon--blue { background: #eff6ff; color: #3b82f6; }
.stat-icon--green { background: #ecfdf5; color: #10b981; }
.stat-icon--orange { background: #fffbeb; color: #f59e0b; }

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    margin: 4px 0 0 0;
}

/* Team Section */
.team-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/*Override existing table styles in manage users*/
.team-section .panel {
    margin-bottom: 0;
    box-shadow: none;
}

.team-section .panel-heading {
    display: none;
}

.team-section .panel-content {
    padding: 0;
}

.team-section .agency-nav-tab {
    background: #fafafa;
    padding: 0 24px;
    border-bottom: 1px solid #f3f4f6;
}

.team-section .nav-tabs .nav-link {
    padding: 20px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    border: none;
    border-radius: 0;
}

.team-section .nav-tabs .nav-link.active {
    color: #3b82f6;
    background: transparent;
    border-bottom: 3px solid #3b82f6;
}

.team-section .table thead th {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
}

.team-section .table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.team-section .table tbody tr:hover {
    background: #f9fafb;
}

.team-section .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    border-radius: 8px !important;
}

.team-section .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    border-radius: 8px !important;
}

.team-section .agency-tab {
    padding: 24px;
}

/* Filter buttons */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-bar .btn-default {
    background: #f3f4f6;
    border: none;
    color: #374151;
    border-radius: 8px;
    padding: 10px 16px;
}

.filter-bar .btn-default:hover {
    background: #e5e7eb;
}

.team-tab-wrapper, .active-inactive-tab-wrapper {
    /* background-color: #eef3f9;  */
    /* background-color: #dde4eb;  */
    padding: 6px;
    border-radius: 14px;
    display: inline-block;
}

.personal-commercial-lines-pills, .pl-cl-tab-wrapper {
    background-color: #dde4eb; 
    border-radius: 14px;
    padding: 6px;
}

.team-custom-pills, .team-type-pills, .bc-tab-pills {
    gap: 4px;
    background: #dde4eb;
    padding: 8px;
    border-radius: 16px;
}

.team-custom-pills .nav-link, .team-type-pills .nav-link {
    color: #64748b;
    font-weight: 500;
    border-radius: 10px;
    padding: 8px 18px;
}

.team-custom-pills .nav-link.active, .team-type-pills .nav-link.active, .bc-tab-pills .nav-link.active {
    background-color: #ffffff;
    color: #00B36C;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid #00B36C;
}

.admin-card {
    border-radius: 14px;
}

.team-member-heading {
    font-weight: bold;
    color: #111827;
}

.config-back-button {
    color: #111827;
}

.team-input-border-radius {
    border-radius: 14px;
}

.active-inactive-member a:hover, .personal-commercial-routing a:hover, .notification-settings:hover, .message-settings:hover{
    cursor: pointer;
}

.team-member-table-tr td {
    padding-top: 20px !important;
}

section.main--content {
    overflow-x: unset;
}

/* Manage agency details */
#gmb-link-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.email-sync-btn:hover i {
   color: #00B36C;
}
.automation-radio-btn {
    margin-bottom: 7px;
    width: 20px;
}

.automation-radio-btn {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #9ca3af;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    margin-right: 7px;
}

.automation-radio-btn:checked {
    background: #00B36C;
    border-color: #00B36C;
}

.automation-radio-btn:checked::after {
    content: "";
    position: absolute;
    inset: 2px 5px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.automation-radio-btn:hover,
.automation-radio-btn:focus {
    border-color: #00B36C;
}

.automation-radio-btn:focus {
    outline: none;
}

/* Config communication css start here */

.action-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    height: 250px;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.action-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.action-icon--email { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.action-icon--sms { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
/* .action-icon--templates { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; } */
.action-icon--templates { background: #ecfdf5; color: #00B36C; }
.action-icon--time { background: #ecfdf5; color: #00B36C; }
.action-icon--settings { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
/* .action-icon--time { background: linear-gradient(135deg, #06b6d4, #0891b2); color: #fff; } */
.action-icon--broadcast { background: linear-gradient(135deg, #ec4899, #be185d); color: #fff; }

.action-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.action-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.action-link {
    font-size: 13px;
    font-weight: 600;
    color: #00B36C;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* CSS for communication section */
.config-communication-card:hover, .config-contact-card:hover {
    border-top: 4px solid #00B36C;
}

.connect-email-provider-btn {
    padding-top: 16px;
}

.gmail-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #16a34a;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
}

.gmail-status-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.connected-gmail-bottom {
    border-top: 1px solid #e4e7ed;
    margin-left: 65px;
}

.connection-actions {
    display: flex;
    gap: 12px;
    border-top: 1px solid #e4e7ed;
}

.connection-actions .connection-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s ease;
}

.connection-actions .reconnect-btn {
    color: #111827;
    border-color: #e5e7eb;
}

.connection-actions .reconnect-btn:hover {
    background-color: #f9fafb;
}

.connection-actions .disconnect-btn {
    color: #ef4444;
    border-color: #fecaca;
}

.connection-actions .disconnect-btn:hover {
    background-color: #fef2f2;
}

.email-statistics-col {
    border: 1px solid #f3f4f6;
    padding: 10px 0px 0px 25px;
    border-radius: 15px;
    background: #f3f4f6;
    margin-left: 15px;
    flex: 0 0 23%;
    max-width: 23%;
}

.stats-value {
    font-size: 18px;
    font-weight: bold;
    color: #111827;
}
.stats-key {
    margin-bottom: 10px;
}

.configured-email-cards {
    display: block;
}

.step-indicator {
    position: relative;
    margin-right: 16px;
}

.step-one.active .step-indicator::before, .step-two.active .step-indicator::before, .step-three.active .step-indicator::before{
    content: "";
    position: absolute;
    left: 10%;
    top: 12px;
    bottom: -22px;
    width: 3px;
    background-color: #dcfce7;
    border-radius: 999px;
    transform: translateX(-50%);
}

.step-one.active .step-icon, .step-two.active .step-icon, .step-three.active .step-icon {
    width: 40px;
    height: 40px;
    background-color: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.step-one .step-indicator::before, .step-two .step-indicator::before, .step-three .step-indicator::before{
    content: "";
    position: absolute;
    left: 10%;
    top: 12px;
    bottom: -27px;
    width: 3px;
    background-color: #f3f4f6;
    border-radius: 999px;
    transform: translateX(-50%);
}

.step-one .step-icon, .step-two .step-icon, .step-three .step-icon {
    width: 40px;
    height: 40px;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.step-icon svg {
    width: 18px;
    height: 18px;
}
.step-icon svg circle,
.step-icon svg path {
   stroke: #c4c8ce;
}
.step-icon.active svg circle,
.step-icon.active svg path {
   stroke: #22c55e;
}

.tcr-about-col {
    border: 1px solid #f3f4f6;
    padding: 10px 0px 10px 25px;
    border-radius: 10px;
    background: #f3f4f6;
    margin-left: 15px;
    max-width: 45%;
}

.step-one.active .sms-status, .step-two.active .sms-status, .step-three.active .sms-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #16a34a;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
}
.step-one .sms-status, .step-two .sms-status, .step-three .sms-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #c4c8ce;
    background-color: #f3f4f6;
    border: 1px solid #c4c8ce;
    border-radius: 999px;
}

.tcr-success-error {
    position: relative;
}
.custom-flash-box {
    position: absolute;
    top: 20px;
    right: -450px;
}
/* Config communication css ends here */
/* Config commission css starts here */
#carrier-content hr{
    border-top: 1px solid #ECECEC;
}
#carrier-content h2{
    color: #111827;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
}

.carriers-section p {
    /* line-height: 45px; */
    /* display: flex;
    align-items: center; */
    /* margin-top: 10px;
    margin-left: 5px; */
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    color: #6b7280;
}

.carriers-section .add-btn a {
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 30px;
    text-transform: uppercase;
    color: #00B36C;
    cursor: pointer;
}
.carriers-section i {
    font-size: 19px;
    line-height: 41px;
    margin-left: -14px;
    color: #C4C4C4;
}

.delete-lob .fa-trash:hover {
    color: #FF0000;
    cursor: pointer;
}

.tab-sub-heading-right a.edit-pencil-btn {
    border: 1px solid #ccc;
    color: #00B36C;
    width: 46px;
    text-align: center;
    border-radius: 6px;
    height: 28px;
    line-height: 26px;
}

.tab-sub-heading-right p {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6b7280;
    margin-right: 25px;
}

/* div.input-block input {
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    padding: 10px 18px;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
    outline: none;
    height: 43px;
    width: 100%;
    margin-bottom: 15px;
} */

div.input-block span.placeholder {
    position: absolute;
    margin: 17px 0;
    padding: 0 4px;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 15px;
    display: flex;
    align-items: center;
    color: rgba(58, 53, 65, 0.54);
    top: 0;
    left: 17px;
    transition: all 0.2s;
    transform-origin: 0% 0%;
    background: none;
    pointer-events: none;
}

div.input-block input {
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    padding: 10px 18px;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
    outline: none;
    height: 43px;
    width: 100%;
    margin-bottom: 15px;
}
.non-edited-input {
    color: rgba(58, 53, 65, 0.54);
}

div.input-block input:valid+span.placeholder, div.input-block input:focus+span.placeholder {
    transform: scale(0.8) translateY(-30px);
    background: #fff;
}

.add-carrier-btn{
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
}

.drop-down-custom-icon {
    position: absolute;
    right: 34px;
    z-index: 1;
    top: 52px;
}

.aarp {
    background: #FFFFFF;
    border: 1px solid #00B36C;
    box-shadow: 0px 2px 10px rgb(58 53 65 / 10%);
    border-radius: 6px;
    padding: 0px 0px 0px 16px;
    margin-top: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    height: 56px;
}

.aarp i.carrier-ico {
    font-size: 23px !important;
    margin-left: 0px !important;
    color: #C4C4C4;
}
.inactive-aarp i.carrier-ico {
    font-size: 23px !important;
    margin-left: 0px !important;
    color: #C4C4C4;
}

.inactive-aarp {
    background: #FFFFFF;
    border: 1px solid rgba(58, 53, 65, 0.12);
    box-shadow: 0px 2px 10px rgb(58 53 65 / 10%);
    border-radius: 6px;
    padding: 0px 0px 0px 16px;
    margin-top: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    height: 56px;
    cursor: pointer;
}

.carriers-section span {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    color: #111827;
    margin-left: 6px;
}

#rendered-commission-element {
    min-height: 700px;
}

#rendered-commission-element .load-main-tabs img {
    margin-top: 70px;
}

#select2-select_carrier-results .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #00B36C !important;
    color: #fff !important;
}

#select2-select_carrier-results .select2-results__option[aria-disabled=true] {
    color: #6b7280;
    font-size: 18px;
    line-height: 28px;
    padding: 10px 15px;
}
#select2-select_carrier-results .select2-results__option[aria-selected=false] {
    color: #111827;
    font-size: 18px;
    line-height: 28px;
    padding: 10px 15px;
}

.btn-add-popup { background: #00B36C; border-radius: 5px; color:#fff; }
#all-carriers .select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #111827;
    font-size: 13px;
    margin-right: 5px;
    border: 1px solid #D9D9D9 !important;
    padding: 10px 10px 10px 10px !important;
    background: #fff;
    border-radius: 20px;
}

#all-carriers .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin-right: 2px;
    background-color: #c5c5c5;
    font-size: 20px;
    border-radius: 20px;
    padding: 0px 6px;
}

.dlt-btn {
    width: 100%;
    text-align: right;
    margin-right: 10px;
    cursor: pointer;
}
.dlt-btn a{
    border-radius: 10px;
    color: #DC2626FF !important;
}
/* #all-carriers .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    border: 1px solid #D9D9D9 !important;
    max-height: 112px;
    padding: 0 10px;
    overflow-y: auto;
} */
/* Config commission css ends here */

/* CSS for broadcast new design */
/* .select2-container--open span {
    width: 153px !important;
}

* {
    box-sizing: border-box;
    font-family: Inter, system-ui, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    font-family: Inter, system-ui, sans-serif;
} */

.bc-container {
    background: #f6f8fb;
    padding: 24px;
    min-height: 100vh;
}

.bc-logo {
    width: 36px;
    height: 36px;
    background: #00B36C;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.bc-nav-tabs .nav-link {
    border-radius: 10px;
    color: #6b7280;
}


.bc-cards .bc-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-right: 10px;
    text-align: left;
    border: 1px solid #dde4eb;
}

.bc-card span {
    font-size: 12px;
    color: #6b7280;
}

.bc-card b {
    display: block;
    font-size: 24px;
}

.bc-list {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.bc-row {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.bc-metrics span {
    margin-left: 15px;
    font-weight: 600;
}

.bc-row-details {
    background: #fafafa;
    padding: 16px;
}

.bc-row-details b {
    display: block;
    margin-top: 5px;
}
  
.make-disabled .config-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.make-disabled .config-card-icon i {
    font-size: 24px;
    color: #6b7280;
}
.make-disabled .config-card-link {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}
.make-disabled.config-card--green {
    --card-color: #6b7280;
    --card-color-light: #6b7280;
}

.make-disabled.config-contact-card:hover {
    border-top: 4px solid #6b7280;
}

/* Premium primary button – rounded-xl, font-medium, emerald (use with .btn.btn-success) */
.btn.btn-success.btn-premium,
a.btn.btn-success.btn-premium {
    border-radius: 12px !important;
    padding: 8px 24px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    border: none !important;
    background: #059669 !important;
    color: #fff !important;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    font-family: "Inter", "SF Pro Display", "Segoe UI", sans-serif;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn.btn-success.btn-premium:hover,
a.btn.btn-success.btn-premium:hover {
    background: #047857 !important;
    color: #fff !important;
}
.btn.btn-success.btn-premium.btn-sm,
a.btn.btn-success.btn-premium.btn-sm {
    padding: 6px 18px !important;
    font-size: 13px !important;
}
.ams-loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #00B36C;      /* Outer color */
    border-top: 3px solid transparent; 
    border-radius: 50%;
    animation: ams-spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes ams-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ams-coverages-error span {
    color: #DC2626FF;
    background-color: #fbe1e1;
    padding: 10px;
    border-radius: 10px;
}

.referral-custom-pills {
    gap: 4px;
    background: #dde4eb;
    padding: 8px;
    border-radius: 16px;
}
.referral-custom-pills .nav-link.active {
    background-color: #ffffff;
    color: #00B36C;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid #00B36C;
    border-radius: 10px;
}

.referral-config-content .manage_status {
    color: #fff !important;
}

.annual-personal-policies, .annual-commercial-policies {
    margin-top: 43px;
}

.agency-details-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #111827;
}

.agency-content .form-control {
    color: #111827;
}

.disconnect-btn {
    padding: 11px 24px !important;
}
.integration-btn {
    width: 230px !important;
    height: 35px !important;
    margin: 5px;
    font-size: 13px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .integration-btn {
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }
}
.account-custom-pill-top, .account-custom-pill-bottom{
    gap: 4px;
    background: rgb(221, 228, 235);
    padding: 8px;
    border-radius: 16px;
}
.account-custom-pill-top .nav-link.active, .account-custom-pill-bottom .nav-link.active {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 179, 108);
    box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 2px;
    border-bottom: 2px solid rgb(0, 179, 108);
}

.account-custom-pill-top .nav-link, .account-custom-pill-bottom .nav-link {
    color: rgb(100, 116, 139);
    font-weight: 500;
    border-radius: 10px;
    padding: 8px 18px;
}
.ezlynx-main-head{
    border-bottom: 1px solid #eff2f5;
}