/**
 * ==========================================================================
 * ZERO RADIUS ON EVERYTHING EXCEPT BUTTONS
 * "hilangkan semua radius , kecuali di button"
 * ==========================================================================
 */

/* ── 1. RESET ALL RADIUS VARIABLES TO 0px (EXCEPT BUTTONS) ── */
:root {
    --border-radius-xs: 0px !important;
    --border-radius-sm: 0px !important;
    --border-radius-md: 0px !important;
    --border-radius-lg: 0px !important;
    --border-radius-xl: 0px !important;
    --bs-border-radius: 0px !important;
    --bs-border-radius-sm: 0px !important;
    --bs-border-radius-lg: 0px !important;
    --bs-border-radius-xl: 0px !important;
    --bs-border-radius-2xl: 0px !important;
    --bs-border-radius-pill: 0px !important;
    --bs-badge-border-radius: 0px !important;
    --radius: 0px !important;
    --radius-sm: 0px !important;
    --radius-md: 0px !important;
    --radius-lg: 0px !important;
    --radius-xl: 0px !important;
    --m3-radius-sm: 0px !important;
    --m3-radius-md: 0px !important;
    --m3-radius-lg: 0px !important;
    --app-bottom-nav-radius: 0px !important;

    /* Standard button radius */
    --bs-btn-border-radius: 10px;
}

/* ── 2. REMOVE RADIUS FROM EVERYTHING (AREAS, CONTAINERS, LABELS, BADGES, INPUTS) ── */
/* Containers, Cards, Sections, & Wrappers */
.card,
.card-header,
.card-body,
.card-footer,
[class*="card-"],
.modal,
.modal-dialog,
.modal-content,
.modal-header,
.modal-body,
.modal-footer,
.box,
[class*="box-"],
.panel,
[class*="panel-"],
.container,
.container-fluid,
.section,
[class*="section-"],
.wrapper,
[class*="wrapper-"],
.login-wrapper,
.summary-card,
.transactions-card,
.trx-card-item,
.period-summary-box,
.period-metric-item,
.widget,
[class*="widget-"],
.alert,
[class*="alert-"],
table,
thead,
tbody,
tr,
th,
td,
.table,
.table-responsive,
.dropdown-menu,
.offcanvas,
.drawer,
.sidebar,
.top-header,
.top-header-datetime > div,
.list-group,
.list-group-item,
.bm-cart,
.bm-cart__sticky,
.bm-cart-input-group,
.input-group,
.input-group-text,
fieldset,
legend,
.popover,
.tooltip,
.toast,
/* Inputs */
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.form-control,
.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.select2-dropdown,
/* Labels, Badges, Tags (Not buttons) */
label,
.badge,
[class*="badge-"],
.tag,
[class*="tag-"],
.label,
[class*="label-"],
.pm-debt-badge,
.pm-badge-unconfirmed,
.badge-category,
.badge-type,
.badge-cat-mini,
.trx-period-mini,
span.pill,
span.chip,
.profile-avatar,
.m3-drawer-avatar,
.aa-profile-avatar,
.akun-profile-avatar,
.admin-profile-avatar,
/* Non-button rounded utility classes */
div.rounded,
div.rounded-0,
div.rounded-1,
div.rounded-2,
div.rounded-3,
div.rounded-4,
div.rounded-5,
div.rounded-top,
div.rounded-bottom,
div.rounded-start,
div.rounded-end,
div.rounded-pill,
div.rounded-circle,
span.rounded,
span.rounded-0,
span.rounded-1,
span.rounded-2,
span.rounded-3,
span.rounded-4,
span.rounded-5,
span.rounded-top,
span.rounded-bottom,
span.rounded-start,
span.rounded-end,
span.rounded-pill:not(.btn):not(button),
span.rounded-circle:not(.btn):not(button):not(.pm-chip__icon),
section.rounded,
section.rounded-1,
section.rounded-2,
section.rounded-3,
section.rounded-4,
section.rounded-5,
article.rounded,
main.rounded,
aside.rounded {
    border-radius: 0px !important;
}

/* ── 3. STRICT PRESERVATION OF RADIUS ON BUTTONS ONLY ── */

/* Standard Buttons: Rounded (10px) */
button:not(.btn-close),
.btn,
[class*="btn-"],
[class*="-btn"],
a.btn,
a[class*="btn-"],
a[class*="-btn"],
input[type="button"],
input[type="submit"],
input[type="reset"] {
    border-radius: 10px;
}

/* Pill-shaped Buttons */
button.rounded-pill,
.btn.rounded-pill,
a.btn.rounded-pill,
a.rounded-pill.btn,
.pm-chip,
.iw-pill,
.iw-btn-lingkungan,
.iw-btn-tambah-iuran,
.btn-page,
.paginate_button,
.iw-page-btn,
.trx-pagebtn,
.bm-mode-btn,
.bm-pay-btn,
.period-tab-btn,
.iw-subnav-btn,
.pm-tab,
.cpk-fab {
    border-radius: 9999px !important;
}

/* Circular Buttons, Button Icons & Spinners */
button.rounded-circle,
.btn.rounded-circle,
a.btn.rounded-circle,
.pm-chip__icon,
.pm-btn-edit-nominal,
.spinner,
.spinner-border,
.spinner-grow,
.trx-infinite-spinner,
.loading-spinner {
    border-radius: 50% !important;
}
