/*
    ui-shape.css: the app's corner radius scale (owner 2026-11-19) and the theme components put on it.
    Loaded right after the AdminLTE skin in both layouts, so every page stylesheet can use the variables and
    a page rule still wins over these theme overrides.

    Corners softened but not rounded: the 2–4 px range (Fluent: 2 px controls / 4 px surfaces; AdminLTE boxes 3 px).
    The radius grows with the element, and an inner element is never rounder than its container.
      --tu-radius-control  2px   buttons, inputs, selects, input-group addons, chips, small tiles
      --tu-radius-box      3px   cards, boxes, tabs, alerts, callouts, dropdown menus, toasts
      --tu-radius-dialog   4px   modals (the largest surface)
    NOT on the scale, unchanged on purpose: pills and flags (.label, .badge, .iq-tag, counts), circles (50%).
*/
:root {
    --tu-radius-control: 2px;
    --tu-radius-box: 3px;
    --tu-radius-dialog: 4px;
}

/* ── Controls ── AdminLTE: .btn 3px, inputs / select2 / addons flat 0. Group / flat rules keep their own corners:
   Bootstrap's .btn-group and .input-group corner resets and AdminLTE's .btn-flat are more specific. */
.btn,
.btn-lg,
.btn-sm,
.btn-xs,
.btn-group-lg > .btn,
.btn-group-sm > .btn,
.btn-group-xs > .btn,
.form-control,
.input-group .input-group-addon,
.input-group-addon,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-dropdown {
    border-radius: var(--tu-radius-control);
}

/* A select2 dropdown that is open sits flush against its box: the joined corners stay square */
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* ── Boxes ── AdminLTE boxes / tabs / alerts / callouts are already 3 px; Bootstrap panels, wells, dropdowns 4 px */
.box,
.nav-tabs-custom,
.alert,
.callout,
.panel,
.well,
.small-box,
.info-box,
.dropdown-menu,
.popover {
    border-radius: var(--tu-radius-box);
}

/* ── Dialogs ── AdminLTE flattens .modal-content to 0 */
.modal-content {
    border-radius: var(--tu-radius-dialog);
}

/* ── Button categories (owner 2026-11-24, solution-root Design-Audit-2026-11-24.md) ──
   Grey btn-default: view / navigate, edits inside a step, dismiss. btn-primary: the ONE step that commits or sends
   (SAP, HODI, offer, create) — on the page button and on its modal confirm. Destructive (cancel, delete, block,
   overwrite): this red outline on the page, solid btn-danger only on the modal confirm. No orange / green buttons. */
.btn-danger-outline {
    color: #dd4b39;
    background-color: #fff;
    border-color: #dd4b39;
}

.btn-danger-outline:hover,
.btn-danger-outline:focus,
.btn-danger-outline.focus,
.btn-danger-outline:active,
.btn-danger-outline.active {
    color: #c23321;
    background-color: #fdf1ef;
    border-color: #c23321;
}

.btn-danger-outline[disabled],
.btn-danger-outline.disabled {
    color: #dd4b39;
    background-color: #fff;
}
