input[type=date].form-control, input[type=time].form-control, input[type=datetime-local].form-control, input[type=month].form-control {
    line-height: 19px;
}

.h1, h1 {
    font-size: 24px;
}

span#application-title {
    font-size: 25px;
    font-weight: 600;
    font-style: oblique;
}

.timeline-body {
    word-wrap: break-word;
}

.timeline-footer {
    display: flex;
    flex-flow: row wrap;
}

.timeline-footer label {
    padding: 0.5rem 0.6rem;
}

textarea {
    max-width: 100%;
    max-height: 100%;
    resize: vertical;
}

.dropzone {
    border: 2px dashed #0087F7
}

@media only screen and (max-width: 768px) {
    .select-user {
        width: 220px
    }
}
@media only screen and (max-width: 768px) {
    .select-contacts-list {
        width: 125px
    }
}

/* Global font override to Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* Exclude icon fonts from global override to prevent missing icons (Glyphicons, FontAwesome, Ionicons) */
html, body, body *:not(i):not(.fa):not(.glyphicon):not([class^="ion-"]):not([class*=" ion-"]){
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}
/* Re-assert original icon font families */
.glyphicon { font-family: 'Glyphicons Halflings' !important; }
[class^="ion-"], [class*=" ion-"] { font-family: 'Ionicons' !important; }

/* Integration page tab content (removed .box wrappers) */
.integration-tab-content { padding:15px 5px 25px; }
.integration-tab-content > :first-child { margin-top:0; }

/* Carrier routing tab select2 compact styling */
#tab-carrier-routing .select2-container--default .select2-selection--multiple {
    min-height: 36px;
    padding: 2px 2px 4px;
    border-radius: 4px;
}
#tab-carrier-routing .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: block;
    max-height: 96px; /* limit visual height */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#tab-carrier-routing .select2-container--default .select2-selection--multiple .select2-selection__choice {
    font-size: 11px;
    padding: 2px 5px;
    margin: 2px 3px 2px 0;
    line-height: 1.2;
}
#tab-carrier-routing .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    font-size: 14px;
    margin-right: 3px;
}

/* Carrier routing bulk action links */
#tab-carrier-routing .carrier-bulk-actions { font-size:11px; color:#666; }
#tab-carrier-routing .carrier-bulk-actions.inside-select { position:absolute; top:50%; right:8px; transform:translateY(-50%); background:rgba(255,255,255,0.85); padding:2px 6px; border-radius:12px; line-height:1; display:flex; gap:4px; align-items:center; font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,0.1); }
#tab-carrier-routing .carrier-bulk-actions.inside-select span { display:none; }
#tab-carrier-routing .carrier-bulk-actions.inside-select a { font-size:10px; }
#tab-carrier-routing .carrier-bulk-actions.inside-select a.carrier-select-clear { color:#d9534f; }
#tab-carrier-routing .select2-container { position:relative; }
#tab-carrier-routing .carrier-bulk-actions a { color:#337ab7; text-decoration:none; }
#tab-carrier-routing .carrier-bulk-actions a:hover { text-decoration:underline; }

/* Tooltip padding tweak for carrier prefix hints */
.tooltip-inner {
    padding: 6px 10px !important;
    line-height: 1.3;
    white-space: normal; /* allow wrapping */
    word-break: break-word;
    max-width: 260px;
}

/* Reply button styling */
.reply-message.btn-outline-primary {
    border: 1px solid #1d6fd8;
    color: #1d6fd8;
    background: #f0f7ff;
    font-weight: 500;
    padding: 2px 6px 2px 6px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    transition: background .15s, color .15s, border-color .15s;
}
.reply-message.btn-outline-primary i { font-size: 11px; }
.reply-message.btn-outline-primary:hover, .reply-message.btn-outline-primary:focus {
    background: #1d6fd8;
    color: #fff;
    text-decoration: none;
}
/* Hide reply button until row (timeline item header) hovered */
.timeline-item .reply-message { opacity:0; pointer-events:none; }
.timeline-item:hover .reply-message { opacity:1; pointer-events:auto; }
/* Smooth fade */
.timeline-item .reply-message { transition: opacity .15s ease-in-out; }

/* Animated sale badge for pricing duration tabs */
.pricing-filters .pricing-filter {
    position: relative;
}
.pricing-filters .pricing-filter .sale-badge {
    position: absolute;
    top: -8px;
    right: -6px;
    background: linear-gradient(135deg,#ff5f2e,#ff9d00);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px 2px 5px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    animation: salePulse 1.6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes salePulse {
    0% { transform: scale(1); box-shadow:0 0 0 0 rgba(255,95,46,0.6); }
    55% { transform: scale(1.12); box-shadow:0 0 0 6px rgba(255,95,46,0); }
    100% { transform: scale(1); box-shadow:0 0 0 0 rgba(255,95,46,0); }
}
