/* Input group — rectangle middle, rounded only on ends */
.author-input-group,
.input-group.author-input-group {
    border-radius: 0.65rem !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    border: 2px solid #e2e8f0 !important;
    background: #ffffff !important;
}

/* Kill individual rounding on all children */
.author-input-group > *,
.author-input-group .form-control,
.author-input-group .form-select,
.author-input-group .input-group-text,
.author-input-group .btn,
.author-input-group select,
.author-input-group input {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Left icon chip — square right edge */
.author-input-group > .input-group-text:first-child,
.author-input-group .input-group-text:first-child {
    border-radius: 0 !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    border-right: 1px solid #e2e8f0 !important;
}

/* Middle select — perfect rectangle */
.author-input-group .form-select,
.author-input-group select,
.author-input-group .form-control {
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

/* Right button — square left edge */
.author-input-group > .btn:last-child,
.author-input-group .btn,
.author-input-group .add-author-btn {
    border-radius: 0 !important;
    border-left: 1px solid transparent !important;
}

/* Generic input-groups used on forms — same rule */
.input-group:not(.has-validation) > :not(:first-child):not(:last-child),
.input-group > .form-control:not(:first-child):not(:last-child),
.input-group > .form-select:not(:first-child):not(:last-child) {
    border-radius: 0 !important;
}

.input-group > :first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group > :last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* When only select is middle of 3 parts */
.input-group > .form-select:not(:first-child):not(:last-child),
.input-group > .form-control:not(:first-child):not(:last-child) {
    border-radius: 0 !important;
}
