/*=============================================================
    Purchase Requisition — Modern Gradient UI Design System
    Typography: Inter (Input & Body) + Plus Jakarta Sans (Headings)
    Theme: Deep Ocean Slate & Electric Blue-Cyan Gradient
=============================================================*/

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Gradients */
    --grad-brand: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
    --grad-sidebar: linear-gradient(180deg, #0f172a 0%, #162447 55%, #0c2340 100%);
    --grad-primary: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --grad-primary-hover: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
    --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-info: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --grad-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --grad-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --grad-canvas: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    --grad-panel-header: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --grad-hero: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0284c7 100%);

    /* Surfaces & Borders */
    --bg-surface: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-muted: #f1f5f9;
    --border-color: #e2e8f0;
    --border-input: #cbd5e1;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-placeholder: #94a3b8;

    /* Accents */
    --accent-blue: #2563eb;
    --accent-cyan: #0ea5e9;

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-card-hover: 0 10px 28px rgba(15, 23, 42, 0.09);
    --shadow-focus: 0 0 0 3.5px rgba(37, 99, 235, 0.16);
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --sidebar-width: 260px;
}

/*==============================================
    BASE & TYPOGRAPHY
==============================================*/
* {
    box-sizing: border-box;
}

html, body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: #eef2f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.panel-heading,
.box-title {
    font-family: var(--font-display);
    letter-spacing: -0.015em;
}

h2 {
    margin: 0 0 6px 0;
    padding: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

h4 {
    padding-top: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

h5 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
}

a {
    color: var(--accent-blue);
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

a:hover, a:focus {
    color: #1d4ed8;
    text-decoration: none;
}

/*==============================================
    LAYOUT SHELL
==============================================*/
#wrapper {
    width: 100%;
    min-height: 100vh;
    background: var(--grad-canvas);
    position: relative;
    display: flex;
    flex-direction: column;
}

.app-body {
    flex: 1 1 auto;
    width: 100%;
    position: relative;
}

#page-wrapper {
    padding: 20px;
    min-height: calc(100vh - 64px);
    background: var(--grad-canvas);
    min-width: 0;
}

#page-inner {
    width: 100%;
    margin: 0;
    background-color: transparent !important;
    padding: 4px;
    min-height: calc(100vh - 104px);
}

.text-center {
    text-align: center;
}

.no-boder {
    border: 1px solid var(--border-color);
}

/*==============================================
    TOP NAVIGATION BAR
==============================================*/
.navbar-default {
    border: none;
    margin-bottom: 0;
}

.navbar-cls-top {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    min-height: 64px;
    position: relative;
    z-index: 10;
}

.navbar-header {
    background: var(--grad-brand);
}

.navbar-cls-top .navbar-brand {
    color: #ffffff;
    background: var(--grad-brand);
    width: var(--sidebar-width);
    text-align: left;
    height: 64px;
    line-height: 34px;
    padding: 15px 22px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: filter 0.2s ease;
}

.navbar-cls-top .navbar-brand .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.navbar-cls-top .navbar-brand:hover,
.navbar-cls-top .navbar-brand:focus {
    background: var(--grad-brand);
    color: #ffffff;
    filter: brightness(1.06);
}

.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding: 12px 24px;
    float: right;
    min-height: 64px;
}

.topbar-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.topbar-date i {
    color: var(--accent-blue);
}

.navbar-default .navbar-toggle {
    border-color: rgba(255, 255, 255, 0.45);
    margin-top: 15px;
    margin-right: 16px;
    border-radius: 8px;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: rgba(255, 255, 255, 0.18);
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #ffffff;
}

.square-btn-adjust {
    border: none;
    border-radius: var(--radius-sm) !important;
}

/*==============================================
    SIDEBAR NAVIGATION
==============================================*/
.navbar-default.navbar-side,
.navbar-side {
    border: none;
    background: var(--grad-sidebar) !important;
    background-color: #0f172a !important;
    margin-bottom: 0;
    border-radius: 0;
}

.sidebar-collapse,
.sidebar-collapse .nav,
#main-menu,
#main-menu .nav-second-level {
    background: transparent !important;
    background-color: transparent !important;
}

#main-menu {
    padding: 10px 12px 28px 12px;
}

/* Sidebar User Profile Card */
.sidebar-profile {
    padding: 20px 14px 18px 14px !important;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15) !important;
    text-align: center;
}

.sidebar-profile .user-avatar-wrap {
    width: 78px;
    height: 78px;
    margin: 0 auto 12px auto;
    padding: 3px;
    border-radius: 50%;
    background: var(--grad-primary);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.28);
}

.user-image {
    margin: 0 auto;
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    object-fit: cover;
    border-radius: 50% !important;
    border: 2px solid #0f172a;
    background: #ffffff;
    display: block;
}

.sidebar-user-name {
    margin: 0 0 6px 0;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.01em;
}

.sidebar-user-role {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Menu Links */
#main-menu > li {
    border-bottom: none;
    margin-bottom: 4px;
}

#main-menu > li > a {
    color: #cbd5e1 !important;
    background: transparent !important;
    background-color: transparent !important;
    text-shadow: none;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#main-menu > li > a:hover,
#main-menu > li > a:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    outline: 0;
}

#main-menu > li.active > a,
#main-menu > li.active > a:hover,
#main-menu > li.active > a:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-weight: 600;
}

#main-menu > li > a.active-menu,
#main-menu > li > a.active-menu:hover,
#main-menu > li > a.active-menu:focus,
#main-menu .nav-second-level > li > a.active-menu,
#main-menu .nav-second-level > li > a.active-menu:hover,
#main-menu .nav-second-level > li > a.active-menu:focus {
    background: var(--grad-primary) !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.36);
}

.nav > li > a > i {
    width: 20px;
    text-align: center;
    margin-right: 11px;
    font-size: 15px;
    opacity: 0.9;
}

.arrow {
    margin-left: auto;
    float: right;
    font-size: 13px;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.fa.arrow:before {
    content: "\f104";
}

.active > a > .fa.arrow:before {
    content: "\f107";
}

/* Submenu */
#main-menu .nav-second-level {
    padding: 4px 0 6px 0 !important;
    margin-top: 2px;
}

#main-menu .nav-second-level li,
#main-menu .nav-third-level li {
    border-bottom: none !important;
    margin-bottom: 3px;
}

#main-menu .nav-second-level > li > a {
    padding: 9px 14px 9px 38px !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: var(--radius-sm) !important;
    display: flex;
    align-items: center;
    position: relative;
}

#main-menu .nav-second-level > li > a:hover,
#main-menu .nav-second-level > li > a:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

#main-menu .nav-second-level > li > a:before {
    content: "";
    display: block;
    position: absolute;
    left: 22px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.55);
    top: 50%;
    transform: translateY(-50%);
}

#main-menu .nav-second-level > li > a.active-menu:before {
    background: #ffffff;
}

#main-menu .nav-second-level > li > a:after,
#main-menu .nav-third-level > li > a:after {
    display: none;
}

/*==============================================
    DASHBOARD HERO & QUICK CARDS
==============================================*/
.dashboard-hero {
    background: var(--grad-hero);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    margin-bottom: 22px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.dashboard-hero:before {
    content: "";
    position: absolute;
    top: -60px;
    right: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(56, 189, 248, 0) 70%);
    pointer-events: none;
}

.dashboard-hero:after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: 140px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
}

.dashboard-hero h2 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px 0;
    position: relative;
    z-index: 1;
}

.dashboard-hero h5 {
    color: rgba(226, 232, 240, 0.88);
    font-size: 14.5px;
    font-weight: 400;
    margin: 0;
    position: relative;
    z-index: 1;
}

.dashboard-hero .hero-meta {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.dashboard-hero .hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12.5px;
    font-weight: 500;
    color: #f1f5f9;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: #93c5fd;
    color: var(--text-primary);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

.quick-action-icon.grad-blue { background: var(--grad-primary); }
.quick-action-icon.grad-green { background: var(--grad-success); }
.quick-action-icon.grad-amber { background: var(--grad-warning); }
.quick-action-icon.grad-cyan { background: var(--grad-info); }

.quick-action-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.quick-action-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
}

/*==============================================
    PANELS & BOXES (CARDS)
==============================================*/
.panel,
.box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 22px;
    overflow: hidden;
}

.panel-default {
    border-color: var(--border-color);
}

.panel-default > .panel-heading,
.box-header {
    background: var(--grad-panel-header);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 22px;
    color: var(--text-primary);
    font-size: 15.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-default > .panel-heading + .panel-heading {
    background: #ffffff;
    padding: 12px 22px;
    border-bottom: 1px solid var(--border-color);
}

.box > hr {
    display: none;
}

.box-header .box-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-header .box-title:before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: var(--grad-primary);
}

.panel-body,
.box-body {
    padding: 22px;
}

.panel-footer,
.box-footer {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    padding: 14px 22px;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

/*==============================================
    COMFORTABLE USER INPUTS & FORMS
==============================================*/
.form-group {
    margin-bottom: 16px;
}

.form-group > label,
label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    letter-spacing: 0.005em;
}

.form-control,
.form-controli,
form select:not(.select2-hidden-accessible) {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: #ffffff;
    background-image: none;
    border: 1.5px solid var(--border-input);
    border-radius: var(--radius-md);
    height: 41px;
    padding: 8px 14px;
    box-shadow: var(--shadow-sm);
    font-variant-numeric: tabular-nums;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

textarea.form-control {
    height: auto;
    min-height: 92px;
}

input[type="file"].form-control {
    height: auto;
    padding: 8px 12px;
    background: var(--bg-subtle);
}

.form-control::placeholder,
.form-controli::placeholder {
    color: var(--text-placeholder);
    font-weight: 400;
}

.form-control:hover:not([readonly]):not([disabled]),
.form-controli:hover:not([readonly]):not([disabled]),
form select:hover:not([disabled]) {
    border-color: #94a3b8;
}

.form-control:focus,
.form-controli:focus,
form select:focus {
    border-color: var(--accent-blue);
    outline: 0;
    background-color: #ffffff;
    box-shadow: var(--shadow-focus);
}

.form-control[readonly],
.form-control[disabled],
.form-controli[readonly],
.form-controli[disabled] {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
    font-weight: 500;
    cursor: default;
    opacity: 1;
    box-shadow: none;
}

/* Validation states */
.has-error .form-control,
.has-error .select2-container--default .select2-selection--single {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.has-error label {
    color: #dc2626;
}

/* Standalone select inside form (e.g. tambahadmin.php) */
form select:not(.form-control):not(.select2-hidden-accessible) {
    display: block;
    width: 100%;
}

/* Radio & Checkbox Ergonomics */
input[type="radio"],
input[type="checkbox"] {
    accent-color: #2563eb;
    width: 18px;
    height: 18px;
    cursor: pointer;
    vertical-align: middle;
}

/*==============================================
    SELECT2 MODERN OVERRIDE
==============================================*/
.select2-container {
    width: 100% !important;
    font-family: var(--font-sans);
}

.select2-container--default .select2-selection--single {
    height: 41px !important;
    border: 1.5px solid var(--border-input) !important;
    border-radius: var(--radius-md) !important;
    background-color: #ffffff !important;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
    padding-left: 14px !important;
    padding-right: 34px !important;
    color: var(--text-primary) !important;
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 39px !important;
    right: 8px !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--accent-blue) !important;
    box-shadow: var(--shadow-focus);
}

.select2-dropdown {
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
    overflow: hidden;
    margin-top: 4px;
}

.select2-container--default .select2-search--dropdown {
    padding: 8px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid var(--border-input) !important;
    border-radius: var(--radius-sm) !important;
    padding: 7px 12px !important;
    font-family: var(--font-sans);
    font-size: 13.5px;
    outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: var(--shadow-focus);
}

.select2-results__option {
    padding: 8px 14px !important;
    font-size: 13.5px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--grad-primary) !important;
    color: #ffffff !important;
}

/*==============================================
    BUTTONS (GRADIENT & MICRO-INTERACTIONS)
==============================================*/
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 16px;
    border-radius: 9px;
    border: none;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}

.btn:hover, .btn:focus {
    transform: translateY(-1px);
    filter: brightness(1.04);
    outline: none !important;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--grad-primary-hover);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.36);
}

.btn-success {
    background: var(--grad-success);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}
.btn-success:hover, .btn-success:focus, .btn-success:active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.36);
}

.btn-info {
    background: var(--grad-info);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.28);
}
.btn-info:hover, .btn-info:focus, .btn-info:active {
    background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.36);
}

.btn-warning {
    background: var(--grad-warning);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
}
.btn-warning:hover, .btn-warning:focus, .btn-warning:active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.36);
}

.btn-danger {
    background: var(--grad-danger);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.28);
}
.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.36);
}

.btn-default {
    background: #ffffff;
    color: var(--text-primary);
    border: 1.5px solid var(--border-input);
    box-shadow: var(--shadow-sm);
}
.btn-default:hover, .btn-default:focus {
    background: var(--bg-muted);
    color: var(--text-primary);
    border-color: #94a3b8;
}

.btn-xs {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 7px;
    margin: 2px 2px 2px 0;
}

.btn[disabled],
.btn.disabled {
    opacity: 0.55;
    transform: none !important;
    box-shadow: none !important;
}

/*==============================================
    TABLES & DATATABLES
==============================================*/
.table-responsive {
    border: none;
    border-radius: var(--radius-md);
}

.table {
    margin-bottom: 0;
    background-color: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.table > thead > tr > th,
.table > tbody > tr > th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    padding: 12px 14px;
    border-bottom: 2px solid #e2e8f0 !important;
    border-color: #e2e8f0;
    vertical-align: middle;
    white-space: nowrap;
}

.table > tbody > tr > td {
    padding: 11px 14px;
    vertical-align: middle;
    color: #1e293b;
    font-size: 13.5px;
    border-color: #edf2f7;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fafcff;
}

.table-hover > tbody > tr:hover {
    background-color: #eff6ff !important;
}

.table-bordered {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* DataTables Controls */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    height: 36px;
    padding: 6px 12px;
    border: 1.5px solid var(--border-input);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 13.5px;
    color: var(--text-primary);
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-focus);
    outline: none;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 8px;
}

.pagination > li > a,
.pagination > li > span {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    margin: 0 2px;
    border-radius: var(--radius-sm) !important;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
}

.pagination > li > a:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--accent-blue);
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span {
    background: var(--grad-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}

/*==============================================
    STATUS BADGES / LABELS
==============================================*/
.label {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.label-success {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.label-info {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
    border: 1px solid rgba(14, 165, 233, 0.28);
}

.label-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.label-danger {
    background: rgba(239, 68, 68, 0.13);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.label-primary {
    background: rgba(37, 99, 235, 0.13);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.28);
}

/*==============================================
    ALERTS & BOOTBOX MODALS
==============================================*/
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 13px 18px;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    color: #0369a1;
    border-left: 4px solid #0284c7;
}

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.modal-header {
    background: var(--grad-panel-header);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 22px;
}

.modal-body {
    padding: 22px;
    font-size: 14.5px;
    color: var(--text-primary);
}

.modal-footer {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    padding: 14px 22px;
}

/*==============================================
    LEGACY HELPER CLASSES (PRESERVED SAFELY)
==============================================*/
.btn-circle {
    width: 48px;
    height: 48px;
    padding: 6px 0;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 1.428571429;
}

/*==============================================
    RESPONSIVE MEDIA QUERIES
==============================================*/
@media (min-width: 768px) {
    .app-body {
        display: flex;
        align-items: stretch;
        min-height: calc(100vh - 64px);
    }

    .navbar-side {
        flex: 0 0 var(--sidebar-width);
        width: var(--sidebar-width);
        min-height: 100%;
        position: relative;
        z-index: 5;
    }

    #page-wrapper {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        padding: 22px 26px;
        min-height: calc(100vh - 64px);
    }

    .navbar {
        border-radius: 0;
    }
}

@media (max-width: 767px) {
    .navbar-cls-top .navbar-brand {
        width: auto;
    }

    .topbar-right {
        float: none;
        justify-content: space-between;
        padding: 10px 16px;
        background: #ffffff;
        border-top: 1px solid var(--border-color);
        min-height: auto;
    }

    #page-wrapper {
        padding: 14px;
    }

    .panel-body,
    .box-body {
        padding: 16px;
    }

    .dashboard-hero {
        padding: 22px 20px;
    }
}
