:root {
    --ktvr-ink: #15171d;
    --ktvr-ink-2: #24262d;
    --ktvr-charcoal: #0f1116;
    --ktvr-burgundy: #481c24;
    --ktvr-red: #ef1c24;
    --ktvr-red-dark: #ba1119;
    --ktvr-red-soft: #fff0f1;
    --ktvr-silver: #a5abb3;
    --ktvr-muted: #667085;
    --ktvr-line: #dfe4ea;
    --ktvr-soft: #f3f5f8;
    --ktvr-panel: #ffffff;
    --ktvr-green: #138a63;
    --ktvr-blue: #2f6fec;
    --ktvr-shadow: 0 18px 45px rgba(15, 17, 22, .12);
    --ktvr-shadow-sm: 0 8px 24px rgba(15, 17, 22, .07);
    --sidebar-width: 276px;
    --bs-primary: var(--ktvr-red);
    --bs-primary-rgb: 239, 28, 36;
    --bs-danger: var(--ktvr-red);
    --bs-danger-rgb: 239, 28, 36;
    --bs-link-color: var(--ktvr-red);
    --bs-link-hover-color: var(--ktvr-red-dark);
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ktvr-ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(243, 245, 248, .94) 280px),
        var(--ktvr-soft);
    font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: .94rem;
    letter-spacing: 0;
}

.procurex-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 17, 22, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 17, 22, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .48), transparent 520px);
}

.px-app {
    position: relative;
    min-height: 100vh;
}

.px-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem;
    color: #fff;
    background:
        radial-gradient(circle at 16% 0, rgba(239, 28, 36, .28), transparent 28%),
        linear-gradient(165deg, #101218 0%, #171920 46%, #411922 100%);
    box-shadow: 18px 0 45px rgba(15, 17, 22, .18);
}

.px-sidebar-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 72px;
    padding: .8rem .75rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .06);
}

.px-sidebar-brand:hover {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.ktvr-logo,
.px-sidebar-brand img,
.px-topbar-title img {
    display: block;
    width: 126px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.px-sidebar-brand span,
.px-topbar-title span {
    min-width: 0;
}

.px-sidebar-brand strong,
.px-topbar-title strong {
    display: block;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.px-sidebar-brand small,
.px-topbar-title small {
    display: block;
    margin-top: .22rem;
    color: rgba(255, 255, 255, .62);
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.px-module-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: .45rem;
    margin-left: .25rem;
    padding: .48rem .72rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: #fff;
    background: rgba(239, 28, 36, .22);
    font-size: .73rem;
    font-weight: 900;
    text-transform: uppercase;
}

.px-side-nav {
    display: grid;
    gap: 1.2rem;
    overflow-y: auto;
    padding: .2rem .1rem .8rem;
}

.px-nav-group {
    display: grid;
    gap: .42rem;
}

.px-nav-heading {
    padding-inline: .55rem;
    color: rgba(255, 255, 255, .45);
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.px-nav-link {
    display: flex;
    align-items: center;
    gap: .62rem;
    min-height: 42px;
    padding: .58rem .68rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, .76);
    text-decoration: none;
    font-size: .86rem;
    font-weight: 850;
}

.px-nav-link i {
    width: 1.15rem;
    color: rgba(255, 255, 255, .55);
    font-size: 1rem;
}

.px-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.px-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--ktvr-red), var(--ktvr-red-dark));
    box-shadow: 0 14px 30px rgba(239, 28, 36, .28);
}

.px-nav-link.active i {
    color: #fff;
}

.px-sidebar-footer {
    display: grid;
    gap: .8rem;
    margin-top: auto;
    padding: .85rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.px-user-mini {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.px-user-mini strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.px-user-mini small {
    display: block;
    color: rgba(255, 255, 255, .55);
    font-size: .7rem;
    font-weight: 800;
}

.px-avatar {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--ktvr-red), #8f1017);
    font-size: .82rem;
    font-weight: 950;
}

.px-avatar-sm {
    width: 30px;
    height: 30px;
    font-size: .74rem;
}

.px-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.px-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(260px, 430px) auto;
    align-items: center;
    gap: 1rem;
    min-height: 78px;
    padding: .9rem clamp(1rem, 2vw, 1.75rem);
    color: #fff;
    background:
        linear-gradient(120deg, rgba(15, 17, 22, .98), rgba(47, 20, 26, .98) 55%, rgba(113, 20, 29, .95));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 14px 32px rgba(15, 17, 22, .12);
}

.px-topbar-title {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.px-topbar-title img {
    width: 98px;
}

.px-search {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    min-height: 42px;
    padding: 0 .82rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
}

.px-search i {
    color: rgba(255, 255, 255, .62);
}

.px-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: .86rem;
    font-weight: 700;
}

.px-search input::placeholder {
    color: rgba(255, 255, 255, .55);
}

.px-content {
    width: min(100%, 1440px);
    margin-inline: auto;
    padding: clamp(1rem, 2vw, 1.8rem);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 42px;
    max-width: 250px;
    padding: .38rem .62rem .38rem .4rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.user-chip-text {
    display: grid;
    min-width: 0;
    overflow: hidden;
    font-size: .8rem;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip .role {
    margin-top: .18rem;
    color: rgba(255, 255, 255, .62);
    font-size: .68rem;
    font-weight: 800;
}

.page-header,
.ktvr-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.eyebrow {
    margin-bottom: .32rem;
    color: var(--ktvr-red-dark);
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

h1,
.h1,
.h2,
.h3,
.h4,
h3 {
    color: var(--ktvr-ink);
    font-weight: 950;
    letter-spacing: 0;
}

.page-header h1,
.ktvr-page-header h1 {
    margin: 0;
    font-size: clamp(1.7rem, 2.3vw, 2.45rem);
    line-height: 1.05;
}

.text-muted {
    color: var(--ktvr-muted) !important;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
    margin-bottom: 1rem;
}

.stat-card,
.summary-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    min-height: 104px;
    padding: 1rem;
    border: 1px solid var(--ktvr-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--ktvr-shadow-sm);
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -26px -38px auto;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: rgba(239, 28, 36, .07);
}

.stat-copy {
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--ktvr-muted);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.stat-value,
.summary-card .fs-3 {
    margin-top: .18rem;
    color: var(--ktvr-ink);
    font-size: 1.7rem;
    font-weight: 950;
    line-height: 1;
}

.stat-note {
    margin-top: .35rem;
    color: #8a94a3;
    font-size: .75rem;
    font-weight: 750;
}

.stat-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: var(--ktvr-red);
    background: var(--ktvr-red-soft);
    font-size: 1.18rem;
}

.card,
.filters-panel {
    border: 1px solid var(--ktvr-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--ktvr-shadow-sm);
}

.card-header {
    border-bottom: 1px solid var(--ktvr-line);
    background: linear-gradient(180deg, #fff, #f7f9fc);
    color: var(--ktvr-ink);
    font-weight: 900;
}

.form-label {
    color: #344054;
    font-size: .8rem;
    font-weight: 900;
}

.form-control,
.form-select {
    min-height: 40px;
    border-color: #cbd5e1;
    border-radius: 8px;
    color: var(--ktvr-ink);
    background-color: #fff;
    font-weight: 650;
}

.form-control-sm,
.form-select-sm {
    min-height: 36px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(239, 28, 36, .7);
    box-shadow: 0 0 0 .22rem rgba(239, 28, 36, .12);
}

.btn {
    border-radius: 8px;
    font-weight: 850;
    letter-spacing: 0;
}

.btn-sm {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
}

.btn-primary,
.btn-danger,
.btn-logout {
    background: var(--ktvr-red);
    border-color: var(--ktvr-red);
    color: #fff;
    box-shadow: 0 10px 18px rgba(239, 28, 36, .2);
}

.btn-primary:hover,
.btn-danger:hover,
.btn-logout:hover {
    background: var(--ktvr-red-dark);
    border-color: var(--ktvr-red-dark);
    color: #fff;
}

.btn-outline-primary {
    color: var(--ktvr-red);
    border-color: rgba(239, 28, 36, .46);
}

.btn-outline-primary:hover {
    background: var(--ktvr-red);
    border-color: var(--ktvr-red);
    color: #fff;
}

.btn-outline-secondary {
    color: #344054;
    border-color: #cbd5e1;
}

.btn-outline-secondary:hover {
    background: #eef2f6;
    border-color: #b8c4d3;
    color: var(--ktvr-ink);
}

.btn-dark {
    background: var(--ktvr-ink);
    border-color: var(--ktvr-ink);
}

.btn-success,
.btn-approval-approve {
    background: var(--ktvr-green);
    border-color: #0d6d4d;
    color: #fff;
}

.btn-success:hover,
.btn-approval-approve:hover {
    background: #0f7554;
    border-color: #0b6045;
    color: #fff;
}

.btn-approval {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: .42rem .85rem;
    font-size: .84rem;
    font-weight: 900;
}

.approval-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    flex-wrap: wrap;
}

.btn-approval-reject {
    background: var(--ktvr-red);
    border-color: var(--ktvr-red-dark);
    color: #fff;
}

.btn-approval-reject:hover {
    background: var(--ktvr-red-dark);
    border-color: var(--ktvr-red-dark);
    color: #fff;
}

.table {
    margin-bottom: 0;
    color: #344054;
}

.table > :not(caption) > * > * {
    padding: .88rem 1rem;
    border-bottom-color: #e4e9f0;
    vertical-align: middle;
}

.table thead th,
.table-light th {
    background: #f8fafc !important;
    color: #475467;
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.table tbody tr:hover > * {
    background: #fff8f8;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: rgba(248, 250, 252, .78);
}

.badge {
    border-radius: 999px;
    padding: .42rem .65rem;
    font-weight: 900;
}

.bg-secondary {
    background-color: #667085 !important;
}

.bg-info {
    background-color: #dbeafe !important;
    color: #1e3a8a !important;
}

.bg-warning {
    background-color: #fff4d6 !important;
    color: #7a4b00 !important;
}

.bg-success {
    background-color: #dcfce7 !important;
    color: #14532d !important;
}

.bg-danger {
    background-color: var(--ktvr-red) !important;
}

.alert {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 17, 22, .08);
}

.alert-success {
    background: #ecfdf3;
    color: #05603a;
}

.alert-danger {
    background: #fff1f3;
    color: #9f1239;
}

.modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: var(--ktvr-shadow);
}

.modal-header,
.modal-footer {
    border-color: var(--ktvr-line);
}

.pagination {
    gap: .25rem;
}

.page-link {
    border-radius: 8px;
    color: var(--ktvr-red);
}

.active > .page-link,
.page-link.active {
    background: var(--ktvr-red);
    border-color: var(--ktvr-red);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem 1.4rem;
}

.detail-item span {
    display: block;
    color: var(--ktvr-muted);
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.detail-item strong {
    display: block;
    margin-top: .15rem;
    color: var(--ktvr-ink);
}

.requisition-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    padding: 1.2rem;
    border-radius: 8px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(239, 28, 36, .36), transparent 28%),
        linear-gradient(135deg, var(--ktvr-charcoal), #23171b 55%, var(--ktvr-burgundy));
    box-shadow: var(--ktvr-shadow);
}

.requisition-hero::after {
    content: "";
    position: absolute;
    inset: auto -54px -70px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.requisition-hero .page-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.requisition-hero .eyebrow,
.requisition-hero h1,
.requisition-hero .text-muted {
    color: #fff !important;
}

.requisition-hero .text-muted {
    opacity: .65;
}

.requisition-hero .detail-item span {
    color: rgba(255, 255, 255, .62);
}

.requisition-hero .detail-item strong {
    color: #fff;
}

.requisition-hero .detail-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: .9rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.requisition-hero .btn-outline-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .08);
}

.requisition-hero .btn-outline-secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .52);
    background: rgba(255, 255, 255, .16);
}

.signature-preview,
.soft-box {
    border: 1px dashed #cbd5e1 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
}

.signature-card {
    overflow: hidden;
}

.signature-stage {
    position: relative;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .96)),
        repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(203, 213, 225, .38) 32px);
}

.signature-stage::after,
.signature-pad::after {
    content: "";
    position: absolute;
    right: 1rem;
    bottom: 2.15rem;
    left: 1rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1 12%, #cbd5e1 88%, transparent);
}

.signature-stage svg,
.signature-stage img,
.signature-pad-preview svg,
.signature-pad-preview img,
.approval-signature-card svg,
.approval-signature-card img {
    max-width: 100%;
    max-height: 92px;
}

.signature-stage-empty {
    color: var(--ktvr-muted);
    font-weight: 800;
}

.signature-method-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .35rem;
    border: 1px solid var(--ktvr-line);
    border-radius: 8px;
    background: #f8fafc;
}

.signature-method-tabs .nav-link {
    border: 0;
    border-radius: 8px;
    color: #475467;
    font-size: .82rem;
    font-weight: 900;
}

.signature-method-tabs .nav-link.active {
    color: #fff;
    background: var(--ktvr-red);
    box-shadow: 0 10px 20px rgba(239, 28, 36, .18);
}

.signature-workspace {
    border: 1px solid var(--ktvr-line);
    border-radius: 8px;
    background: #fff;
}

.signature-pad {
    position: relative;
    overflow: hidden;
    height: 174px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #fff, #fbfcfe),
        repeating-linear-gradient(0deg, transparent 0, transparent 35px, rgba(203, 213, 225, .3) 36px);
}

.signature-pad canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 174px;
    cursor: crosshair;
    touch-action: none;
}

.signature-pad-label {
    position: absolute;
    right: 1rem;
    bottom: .65rem;
    z-index: 0;
    color: #98a2b3;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.signature-pad-preview {
    min-height: 122px;
    display: grid;
    place-items: center;
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.signature-style-preview {
    min-height: 122px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.signature-helper {
    color: var(--ktvr-muted);
    font-size: .78rem;
    font-weight: 750;
}

.approval-signature-card {
    padding: 1rem;
    border: 1px solid var(--ktvr-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, #fff, #f8fafc);
}

.approval-signature-preview {
    min-height: 126px;
    display: grid;
    place-items: center;
    margin-top: .6rem;
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.approval-attestation {
    border-left: 4px solid var(--ktvr-red);
    padding: .75rem .9rem;
    border-radius: 8px;
    background: var(--ktvr-red-soft);
    color: #621018;
    font-size: .84rem;
    font-weight: 750;
}

.support-note {
    position: relative;
    padding: .9rem 1rem .9rem 3rem;
    border: 1px solid #dfe4ea;
    border-left: 4px solid var(--ktvr-red);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--ktvr-shadow-sm);
}

.support-note::before {
    content: "\F431";
    position: absolute;
    top: .92rem;
    left: .95rem;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--ktvr-red);
    background: var(--ktvr-red-soft);
    font-family: "bootstrap-icons";
    font-size: .95rem;
}

.support-note-title {
    margin-bottom: .18rem;
    color: var(--ktvr-ink);
    font-size: .86rem;
    font-weight: 950;
}

.support-note p,
.support-note ul {
    margin-bottom: 0;
    color: var(--ktvr-muted);
    font-size: .84rem;
    font-weight: 650;
}

.support-note ul {
    padding-left: 1rem;
}

.support-note-list {
    display: grid;
    gap: .35rem;
}

.control-check-panel {
    overflow: hidden;
    border: 1px solid var(--ktvr-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--ktvr-shadow-sm);
}

.control-check-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    padding: .78rem 1rem;
    border-bottom: 1px solid #eef2f6;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.control-check-panel-head span {
    color: var(--ktvr-ink);
    font-size: .86rem;
    font-weight: 950;
}

.control-check-panel-head small {
    color: var(--ktvr-muted);
    font-size: .72rem;
    font-weight: 800;
    text-align: right;
}

.control-check-list {
    display: grid;
}

.control-check-row,
.control-check-tile {
    display: flex;
    align-items: flex-start;
    gap: .78rem;
    margin: 0;
    color: var(--ktvr-ink);
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.35;
    cursor: pointer;
}

.control-check-row {
    min-height: 48px;
    padding: .8rem 1rem;
    border-bottom: 1px solid #eef2f6;
}

.control-check-row:last-child {
    border-bottom: 0;
}

.control-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    padding: .85rem;
}

.control-check-tile {
    min-height: 78px;
    padding: .92rem 1rem;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    background: #fbfcfe;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.control-check-row:hover,
.control-check-tile:hover {
    background: #fff;
}

.control-check-tile:hover {
    border-color: rgba(239, 28, 36, .26);
    box-shadow: 0 10px 24px rgba(15, 17, 22, .06);
}

.control-check-row .form-check-input,
.control-check-tile .form-check-input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    border-color: #bdc6d2;
    border-radius: 6px;
    box-shadow: none;
}

.control-check-row .form-check-input:checked,
.control-check-tile .form-check-input:checked {
    border-color: var(--ktvr-red);
    background-color: var(--ktvr-red);
}

.control-check-row .form-check-input:focus,
.control-check-tile .form-check-input:focus {
    border-color: var(--ktvr-red);
    box-shadow: 0 0 0 .18rem rgba(239, 28, 36, .16);
}

.control-check-row span,
.control-check-tile span {
    min-width: 0;
}

.control-check-row:has(.form-check-input:checked),
.control-check-tile:has(.form-check-input:checked) {
    background: linear-gradient(180deg, #fff, #fff7f7);
}

.control-check-row .form-check-input:disabled,
.control-check-tile .form-check-input:disabled {
    opacity: .72;
}

.control-check-row:has(.form-check-input:disabled),
.control-check-tile:has(.form-check-input:disabled) {
    cursor: default;
}

.flow-note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.flow-step-note {
    padding: .85rem;
    border: 1px solid var(--ktvr-line);
    border-radius: 8px;
    background: #fff;
}

.flow-step-note strong {
    display: block;
    margin-bottom: .2rem;
    color: var(--ktvr-ink);
    font-size: .84rem;
}

.flow-step-note span {
    color: var(--ktvr-muted);
    font-size: .78rem;
    font-weight: 650;
}

.nav-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    color: #475467;
    font-weight: 850;
}

.nav-tabs .nav-link.active {
    color: var(--ktvr-red-dark);
}

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0, rgba(239, 28, 36, .32), transparent 30%),
        linear-gradient(140deg, rgba(15, 17, 22, .96), rgba(72, 28, 36, .92)),
        var(--ktvr-ink);
}

.auth-body::before {
    opacity: .4;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent 680px);
}

.app-navbar.auth-navbar {
    background: rgba(255, 255, 255, .98);
    border-bottom: 3px solid var(--ktvr-red);
}

.ktvr-container {
    max-width: 1320px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.brand-subtitle {
    display: flex;
    flex-direction: column;
    padding-left: .75rem;
    border-left: 1px solid var(--ktvr-line);
    line-height: 1.1;
}

.brand-subtitle strong {
    font-size: .86rem;
    font-weight: 900;
    color: var(--ktvr-ink);
}

.brand-subtitle span {
    margin-top: .15rem;
    font-size: .66rem;
    font-weight: 850;
    color: var(--ktvr-muted);
    text-transform: uppercase;
}

.login-wrapper {
    min-height: calc(100vh - 75px);
    display: grid;
    place-items: center;
    padding: 3rem 1rem;
}

.login-card {
    width: min(100%, 460px);
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.login-card .card-body {
    padding: 2rem;
}

.login-mark {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.login-mark img {
    width: 188px;
}

.login-title {
    font-size: 1.45rem;
    font-weight: 950;
    text-align: center;
}

.login-copy {
    max-width: 32rem;
    margin-inline: auto;
    text-align: center;
}

.ktvr-form-panel {
    max-width: 980px;
}

@media (max-width: 1180px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flow-note-grid {
        grid-template-columns: 1fr;
    }

    .control-check-grid {
        grid-template-columns: 1fr;
    }

    .px-topbar {
        grid-template-columns: 1fr auto;
    }

    .px-search {
        grid-column: 1 / -1;
        order: 3;
    }
}

@media (max-width: 991.98px) {
    .px-sidebar {
        position: relative;
        width: auto;
        min-height: auto;
        border-radius: 0;
    }

    .px-main {
        margin-left: 0;
    }

    .px-side-nav {
        display: flex;
        gap: .75rem;
        overflow-x: auto;
        padding-bottom: .2rem;
    }

    .px-nav-group {
        min-width: 210px;
    }

    .px-sidebar-footer {
        display: none;
    }

    .px-topbar {
        position: relative;
    }

    .page-header,
    .ktvr-page-header {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .px-sidebar {
        padding: .9rem;
    }

    .px-sidebar-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .px-topbar {
        grid-template-columns: 1fr;
    }

    .px-side-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .px-nav-group {
        min-width: 0;
    }

    .user-chip {
        justify-self: start;
    }

    .dashboard-stats,
    .detail-grid,
    .requisition-hero .detail-grid {
        grid-template-columns: 1fr;
    }

    .table > :not(caption) > * > * {
        padding: .78rem .75rem;
    }
}
