:root {
    /* Brand & UI Colors */
    --color-brand-menu: #0B1F33;
    --color-breadcrumb: #0B1F33;
    --color-menu-link: #2E3192;
    --color-active-highlight: #2F80ED;
    --color-table-header: #34516C;
    --color-add-btn: #3F3DC4;
    --color-add-btn-hover: #3230a0;
    --color-status: #2F80ED;

    /* Base & Surface */
    --color-bg-body: #f4f5f7;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-border-subtle: #f1f5f9;

    /* Typography & Neutral Colors */
    --color-text-heading: #1A1A1A;
    --color-text-body: #333333;
    --color-text-muted: #555555;
    --color-text-secondary: #64748b;
    --color-text-nav: #cbd5e1;
    --color-breadcrumb-muted: #B0B8C4;
    --color-dark: #1e293b;

    /* Fonts */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-body, 'Inter', sans-serif);
    background-color: var(--color-bg-body);
    color: var(--color-dark);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

h1,
.h1 {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--color-text-heading);
    line-height: 1.3;
}

h2,
.h2 {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-heading);
}

h3,
h4,
h5,
h6,
.h3,
.h4,
.h5,
.h6,
.modal-title,
.card-title {
    font-family: 'Mulish', var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 500;
}

/* Top Navbar (Light Theme) */
.top-navbar {
    background-color: #ffffff;
    color: #1e293b;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    padding: 10px 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 140x50 logo: at 48px tall the wordmark is ~134px wide, fits the 60px bar */
.top-navbar .sidebar-logo {
    height: 48px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

/* Icon Buttons (Notification & Moon Box) */
.topbar-icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 0px;
    color: #475569;
    background-color: #ffffff;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    padding: 0;
}

.topbar-icon-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.topbar-icon-btn i {
    font-size: 15px;
}

/* User Avatar Circle */
.user-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Profile Trigger */
.dropdown-toggle-custom {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    max-width: 260px;
    min-width: 0;
}

.dropdown-toggle-custom:hover {
    background-color: #f8fafc;
}

.user-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.user-role {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 400;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.user-dropdown-caret {
    font-size: 11px;
    color: #64748b;
    margin-left: 2px;
    flex-shrink: 0;
}

/* Standalone Logout Button */
.btn-topbar-logout {
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    background-color: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 0px;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    line-height: 1.5;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-topbar-logout:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Dropdown Menu */
.top-navbar .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 6px 0;
}

.top-navbar .dropdown-item {
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.15s ease-in-out;
}

.top-navbar .dropdown-item:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

/* ==========================================================================
   GLOBAL BREADCRUMB BAR
   ========================================================================== */
.cobalt-breadcrumb-bar {
    background-color: var(--color-breadcrumb);
    padding: 10px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 400;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.cobalt-breadcrumb-inner {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 400;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.cobalt-breadcrumb-inner span {
    font-size: 12.5px;
    font-weight: 400;
}

.cobalt-breadcrumb-inner .breadcrumb-separator {
    color: var(--color-breadcrumb-muted);
    font-size: 12.5px;
    font-weight: 400;
    margin: 0 8px;
}

.cobalt-breadcrumb-inner .breadcrumb-item-parent {
    font-size: 12.5px;
    font-weight: 400;
    color: var(--color-breadcrumb-muted);
}

.cobalt-breadcrumb-inner>span:last-child,
.cobalt-breadcrumb-inner .breadcrumb-item-active {
    font-size: 12.5px;
    font-weight: 500;
    color: #ffffff;
}

/* ==========================================================================
   COBALT UNIFIED SIDEBAR NAVIGATION
   ========================================================================== */
.cobalt-sidebar {
    width: 240px;
    height: calc(100vh - 60px);
    background-color: var(--color-brand-menu);
    color: #ffffff;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    position: fixed;
    top: 60px;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding: 16px 10px;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.25);
}

/* Custom scrollbar for sidebar */
.cobalt-sidebar::-webkit-scrollbar {
    width: 5px;
}

.cobalt-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.cobalt-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cobalt-nav-group {
    margin-bottom: 3px;
}

/* Parent Navigation Items - Figma: Montserrat 400 @ 14px, active 700 */
.cobalt-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    min-height: 44px;
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    user-select: none;
    border-left: 4px solid transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hover & Click on top-level items: active pill */
.cobalt-nav-item:hover,
.cobalt-nav-item:focus,
.cobalt-nav-item:active {
    background-color: var(--color-menu-link);
    color: #ffffff;
    text-decoration: none;
}

/* Active or open parent item ("HRMS") */
.cobalt-nav-item.active {
    background-color: var(--color-menu-link);
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
    border-left: 4px solid var(--color-active-highlight);
    text-decoration: none;
}

.cobalt-nav-group.open>.cobalt-nav-item,
.cobalt-nav-group.open>.cobalt-accordion-toggle {
    background-color: var(--color-menu-link);
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px 4px 0 0;
    border-left: 4px solid var(--color-active-highlight);
    text-decoration: none;
}

.cobalt-nav-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cobalt-nav-label span {
    font-size: 14px;
    font-weight: inherit;
    letter-spacing: 0.2px;
    color: inherit;
}

.cobalt-nav-icon {
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
}

.cobalt-chevron {
    font-size: 12px;
    transition: transform 0.2s ease;
    color: #ffffff;
    opacity: 0.9;
}

.cobalt-nav-group.open .cobalt-chevron {
    transform: rotate(180deg);
    color: #ffffff;
    opacity: 1;
}

/* Submenu container */
.cobalt-submenu {
    display: none;
    background-color: var(--color-table-header);
    border-radius: 0 0 4px 4px;
    padding: 6px 6px 8px 6px;
    margin: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cobalt-nav-group.open .cobalt-submenu {
    display: block;
}

/* Submenu items - Montserrat @ 12px, regular weight */
.cobalt-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: background-color 0.15s ease, color 0.15s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cobalt-sub-item span {
    font-size: 12px;
    font-weight: inherit;
}

/* Active state inside submenu: persistent blue selection highlight */
.cobalt-sub-item.active {
    color: #ffffff;
    font-weight: 600;
    background-color: var(--color-menu-link);
    border-radius: 4px;
    text-decoration: none;
}

/* Hover & Click states: ONLY where mouse pointer is */
.cobalt-sub-item:hover,
.cobalt-sub-item:focus,
.cobalt-sub-item:active {
    color: #ffffff;
    background-color: var(--color-menu-link);
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
}

.cobalt-nav-icon rect,
.cobalt-sub-icon rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 2px;
}

.cobalt-sub-icon {
    font-size: 13px;
    width: 16px;
    height: 16px;
    text-align: center;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Underline prevention across navigation elements */
.cobalt-sidebar a,
.cobalt-sidebar a:hover,
.cobalt-sidebar a:focus,
.cobalt-sidebar a:active,
.cobalt-breadcrumb-bar a,
.cobalt-breadcrumb-bar a:hover,
.cobalt-breadcrumb-bar a:focus,
.cobalt-breadcrumb-bar a:active,
.cobalt-header-row a,
.cobalt-header-row a:hover,
.cobalt-header-row a:focus,
.cobalt-header-row a:active {
    text-decoration: none;
}

/* ==========================================================================
   MAIN CONTENT & LAYOUT CONTAINER
   ========================================================================== */
.main-content {
    margin-left: 240px;
    margin-top: 60px;
    padding: 0;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    width: calc(100% - 240px);
}

.container-fluid {
    width: 100%;
    max-width: 100%;
    padding-right: 24px;
    padding-left: 24px;
    flex: 1;
}

/* ==========================================================================
   EMPLOYEE DIRECTORY & DATA TABLES
   ========================================================================== */
.employee-directory-page {
    padding-top: 10px;
}

.cobalt-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.cobalt-page-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--color-text-heading);
    margin: 0 0 4px 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cobalt-page-subtitle {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0;
    font-weight: 400;
    font-family: var(--font-body, 'Inter', sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header-action-group {
    gap: 12px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--color-text-secondary);
    font-size: 14px;
    pointer-events: none;
}

.search-input {
    width: 280px;
    height: 38px;
    padding: 6px 14px 6px 36px;
    border: 1.5px solid #94a3b8;
    border-radius: 0;
    font-size: 13.5px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 400;
    color: var(--color-text-body);
    background-color: var(--color-surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-add-btn);
    box-shadow: 0 0 0 3px rgba(63, 61, 196, 0.15);
}

.btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: var(--color-add-btn);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    height: 38px;
    padding: 0 18px;
    border-radius: 0;
    border: none;
    text-decoration: none;
    transition: background-color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.btn-add:hover {
    background-color: var(--color-add-btn-hover);
    color: #ffffff;
    text-decoration: none;
}

.btn-outline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: var(--color-surface, #ffffff);
    color: var(--color-dark, #1e293b);
    border: 1px solid var(--color-border, #cbd5e1);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13.5px;
    font-weight: 500;
    height: 38px;
    padding: 0 18px;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-outline-action:hover,
.btn-outline-action:focus,
.btn-outline-action:active {
    background-color: var(--color-add-btn, #3F3DC4);
    border-color: var(--color-add-btn, #3F3DC4);
    color: #ffffff;
    text-decoration: none;
}

.btn-outline-action.btn-sm {
    height: 30px;
    padding: 0 16px;
    font-size: 12.5px;
}

/* View/Edit buttons inside table cards: no link underline, white text on
   hover (beats the generic table-link and Bootstrap a:hover rules). Covers
   both action-button families: btn-outline-action (MR list, supplier
   prices) and btn-view/btn-edit (inventory materials list). */
.table-card .table tbody td a.btn-outline-action,
.table-card .table tbody td a.btn-view,
.table-card .table tbody td a.btn-edit {
    text-decoration: none;
}

.table-card .table tbody td a.btn-outline-action:hover,
.table-card .table tbody td a.btn-outline-action:focus,
.table-card .table tbody td a.btn-outline-action:active,
.table-card .table tbody td a.btn-view:hover,
.table-card .table tbody td a.btn-view:focus,
.table-card .table tbody td a.btn-view:active,
.table-card .table tbody td a.btn-edit:hover,
.table-card .table tbody td a.btn-edit:focus,
.table-card .table tbody td a.btn-edit:active {
    color: #ffffff;
    text-decoration: none;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 28px;
    margin-bottom: 16px;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Table Card & Header */
.table-card {
    background: var(--color-surface);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
}

.table-card .table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-card .table thead th {
    background-color: var(--color-table-header);
    color: #ffffff;
    font-weight: 500;
    font-size: 14.5px;
    padding: 12px 18px;
    height: 46px;
    border: none;
    font-family: var(--font-body, 'Inter', sans-serif);
    letter-spacing: 0.2px;
}

.table-card .table tbody td {
    padding: 10px 18px;
    height: 42px;
    font-size: 15px;
    color: var(--color-text-body);
    border-top: 1px solid var(--color-border-subtle);
    vertical-align: middle;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 400;
}

.table-card .table tbody td a:not(.btn-outline-action):not(.btn-add):not(.btn-view):not(.btn-edit) {
    color: var(--color-dark, #1e293b);
    font-weight: 500;
    text-decoration: none;
}

.table-card .table tbody td a:not(.btn-outline-action):not(.btn-add):not(.btn-view):not(.btn-edit):hover {
    color: var(--color-menu-link, #2E3192);
    text-decoration: underline;
}

/* Status Badge - box ≈ 68×24px, 12px 500 #FFF on #3B82F6 */
.badge-status-blue {
    background-color: var(--color-status);
    color: #ffffff;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 500;
    font-size: 12px;
    min-width: 68px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 0;
    border: none;
    line-height: 24px;
    white-space: nowrap;
}


.employee-table-link {
    color: var(--color-text-body);
    font-weight: 400;
    text-decoration: none;
}

.employee-table-link:hover,
.employee-table-link:focus,
.table-card a,
.table-card a:hover,
.table-card a:focus {
    text-decoration: none;
}

/* Empty Table Message */
.empty-table-message {
    padding: 32px 16px;
    color: var(--color-text-muted);
    text-align: center;
}

.empty-table-message i {
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

/* Workflow Cycle Card (e.g. Material Request Cycle, PO Cycle) */
.workflow-cycle-card {
    background-color: var(--color-surface, #ffffff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 6px;
    padding: 24px 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.workflow-cycle-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-heading, #1A1A1A);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.workflow-cycle-stepper {
    display: flex;
    align-items: center;
    width: 100%;
}

.cycle-step {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cycle-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--color-brand-menu, #0B1F33);
    color: #ffffff !important;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.cycle-step-num:hover {
    background-color: #2563eb;
    color: #ffffff !important;
    transform: scale(1.12);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    text-decoration: none !important;
}

.cycle-step-num.active {
    background-color: #2563eb;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: scale(1.08);
}

.cycle-step-text {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-dark, #1e293b);
    white-space: nowrap;
    user-select: none;
    transition: color 0.2s ease-in-out;
}

.cycle-step.active .cycle-step-text {
    font-weight: 700;
    color: var(--color-brand-menu, #0B1F33);
}

.btn-clear-filter {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: #000000 !important;
    text-decoration: none !important;
    padding: 6px 14px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.btn-clear-filter:hover {
    background-color: var(--color-add-btn, #3F3DC4);
    border-color: var(--color-add-btn, #3F3DC4);
    color: #ffffff !important;
}

.cycle-step-arrow {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary, #64748b);
    font-size: 18px;
    user-select: none;
    padding: 0 16px;
}

/* Status Pills — semantic modifiers usable on any list:
   status-success / status-pending / status-info / status-neutral /
   status-cancelled / status-rejected */
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    height: 28px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0;
    text-align: center;
    white-space: nowrap;
    width: 120px;
    box-sizing: border-box;
}

.status-pill.status-pending {
    background-color: #f5a25d;
    color: var(--color-dark, #1e293b);
}

.status-pill.status-success {
    background-color: #8ce29f;
    color: var(--color-dark, #1e293b);
}

.status-pill.status-neutral {
    background-color: #778b9d;
    color: var(--color-dark, #1e293b);
}

.status-pill.status-info {
    background-color: #90c5f9;
    color: var(--color-dark, #1e293b);
}

.status-pill.status-cancelled {
    background-color: #fca5a5;
    color: #7f1d1d;
}

.status-pill.status-rejected {
    background-color: var(--color-text-nav, #cbd5e1);
    color: #334155;
}

.empty-table-message h4,
.empty-table-message h5 {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.empty-table-message p {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* Pagination Container & Info */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination-info {
    font-size: 13px;
    color: var(--color-text-secondary, #64748b);
    font-family: var(--font-body, 'Inter', sans-serif);
}


/* Action Buttons: View & Edit */
.btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
    border: 1.5px solid var(--color-dark);
    color: var(--color-dark);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13.5px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

/* View button HOVER effect */
.btn-view:hover,
.btn-view:active {
    background-color: var(--color-add-btn);
    border-color: var(--color-add-btn);
    color: #ffffff;
}

.btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-add-btn);
    border: 1.5px solid var(--color-add-btn);
    color: #ffffff;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13.5px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 0;
    text-decoration: none;
    margin-left: 8px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.btn-edit:hover,
.btn-edit:active {
    background-color: var(--color-add-btn-hover);
    border-color: var(--color-add-btn-hover);
    color: #ffffff;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    list-style: none;
    padding: 0;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-table-header);
    border-radius: 0;
    background-color: var(--color-surface);
    color: var(--color-text-body);
    font-size: 13.5px;
    font-weight: 500;
    font-family: var(--font-body, 'Inter', sans-serif);
    transition: all 0.15s ease;
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background-color: var(--color-table-header);
    border-color: var(--color-table-header);
    color: #ffffff;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    background-color: var(--color-surface);
    border: 1px solid var(--color-table-header);
    color: var(--color-text-body);
    cursor: default;
}

.pagination .page-link:hover:not(.active) {
    background-color: var(--color-border-subtle);
    border-color: var(--color-table-header);
    color: #000000;
}

/* ==========================================================================
   FORMS STYLE
   ========================================================================== */
.form-page-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 40px;
}

.form-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.form-wizard-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.form-wizard-card-header {
    background-color: var(--color-table-header);
    color: #ffffff;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 15px;
    font-weight: 500;
    padding: 13px 22px;
    letter-spacing: 0.2px;
}

.form-wizard-card-body {
    padding: 24px;
    background-color: var(--color-surface);
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    row-gap: 20px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.form-field-label {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.form-field-label .required-star {
    color: #ef4444;
    margin-left: 2px;
    font-weight: 600;
}

.form-field-help-text {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    display: block;
}

/* Read-only display box for the form-field family (values you show, not edit) */
.form-field-box {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #000000;
    border-radius: 0;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    display: flex;
    align-items: center;
    word-break: break-word;
}

.form-control-custom {
    width: 100%;
    height: 42px;
    padding: 8px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 0;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-body);
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--color-add-btn);
    box-shadow: 0 0 0 3px rgba(63, 61, 196, 0.12);
}

.form-control-custom::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

select.form-control-custom,
.form-select-custom {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
    padding-right: 38px;
    cursor: pointer;
}

/* Selectize integration with custom form controls */
.selectize-control {
    padding: 0;
    height: auto;
    min-height: 0;
    border: none;
    outline: none;
    background: transparent;
    background-image: none;
    box-shadow: none;
    width: 100%;
}

.selectize-control.single .selectize-input,
.selectize-control .selectize-input {
    min-height: 42px;
    padding: 8px 38px 8px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 0;
    font-size: 14px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 400;
    color: var(--color-text-body);
    background-color: var(--color-surface);
    box-shadow: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.selectize-control.single .selectize-input:after {
    display: none;
}

.selectize-control.single .selectize-input .item {
    font-size: 14px;
    font-family: var(--font-body, 'Inter', sans-serif);
    color: var(--color-text-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 20px);
}

.selectize-control .selectize-input.focus,
.selectize-control.single .selectize-input.dropdown-active {
    border-color: var(--color-add-btn);
    box-shadow: 0 0 0 3px rgba(63, 61, 196, 0.12);
}

.has-error .selectize-control .selectize-input {
    border-color: #ef4444;
}

.selectize-control .selectize-input>input {
    font-size: 14px;
    font-family: var(--font-body, 'Inter', sans-serif);
    color: var(--color-text-body);
}

.selectize-control .selectize-input>input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.selectize-dropdown {
    position: absolute;
    height: auto;
    max-height: none;
    padding: 0;
    background: var(--color-surface);
    background-image: none;
    border: 1.5px solid #94a3b8;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-size: 13.5px;
    font-family: var(--font-body, 'Inter', sans-serif);
    z-index: 99999;
    margin-top: 4px;
    box-sizing: border-box;
}

.selectize-dropdown .selectize-dropdown-content {
    max-height: 240px;
    overflow-y: auto;
    background-color: var(--color-surface);
    padding: 4px 0;
}

.selectize-dropdown .option,
.selectize-dropdown .create {
    padding: 8px 14px;
    color: var(--color-dark);
    background-color: var(--color-surface);
    cursor: pointer;
    display: block;
    border-bottom: 1px solid var(--color-border-subtle);
    font-size: 13.5px;
    font-weight: 400;
}

.selectize-dropdown .option:last-child {
    border-bottom: none;
}

.selectize-dropdown .active,
.selectize-dropdown .option:hover {
    background-color: var(--color-border-subtle);
    color: #0f172a;
}

.selectize-dropdown .highlight {
    background: rgba(63, 61, 196, 0.12);
    font-weight: 600;
    color: var(--color-add-btn);
}

textarea.form-control-custom {
    height: auto;
    min-height: 80px;
    resize: vertical;
}

/* Wizard Steps & Navigation */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-wizard-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    margin-top: 32px;
    margin-bottom: 48px;
    min-height: 42px;
}

.form-step-pagination {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-page-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-table-header);
    background-color: #ffffff;
    color: var(--color-text-body);
    font-size: 13.5px;
    font-weight: 500;
    font-family: var(--font-body, 'Inter', sans-serif);
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.step-page-btn.active {
    background-color: var(--color-table-header);
    border-color: var(--color-table-header);
    color: #ffffff;
    font-weight: 600;
}

.step-page-btn:hover:not(.active) {
    background-color: var(--color-border-subtle);
    border-color: var(--color-table-header);
    color: #000000;
}

.form-wizard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-form-next,
.btn-form-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-add-btn);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    height: 38px;
    padding: 0 24px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    font-family: var(--font-body, 'Inter', sans-serif);
    transition: background-color 0.15s ease;
    text-decoration: none;
}

.btn-form-next:hover,
.btn-form-save:hover {
    background-color: var(--color-add-btn-hover);
    color: #ffffff;
}

a.btn-form-cancel,
.btn-form-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1.5px solid #94a3b8;
    color: var(--color-text-body);
    font-size: 13.5px;
    font-weight: 500;
    height: 38px;
    padding: 0 20px;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body, 'Inter', sans-serif);
    transition: all 0.2s ease;
}

a.btn-form-cancel:hover,
a.btn-form-cancel:focus,
a.btn-form-cancel:active,
.btn-form-cancel:hover,
.btn-form-cancel:focus,
.btn-form-cancel:active {
    background-color: var(--color-add-btn);
    border-color: var(--color-add-btn);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(63, 61, 196, 0.25);
}

.form-field-error {
    color: #ef4444;
    font-size: 12px;
    font-family: var(--font-body, 'Inter', sans-serif);
    margin-top: 4px;
    display: block;
}

.form-field-group.has-error .form-control-custom {
    border-color: #ef4444;
}

.form-field-group.has-error .form-field-label {
    color: #ef4444;
}

.auth-card-scroll {
    max-height: 90vh;
    overflow-y: auto;
}

/* ==========================================================================
   MODERN CALENDAR POPUP (Bootstrap Datepicker)
   ========================================================================== */
.datepicker {
    padding: 14px 16px;
    border-radius: 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    font-family: var(--font-body, 'Inter', sans-serif);
    z-index: 1060;
}

.datepicker-dropdown {
    top: 0;
    left: 0;
}

.datepicker-dropdown:before {
    border-bottom-color: #e2e8f0;
}

.datepicker-dropdown:after {
    border-bottom-color: #ffffff;
}

.datepicker table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 3px;
}

/* Header Month & Year, Next/Prev Arrows */
.datepicker table tr th {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 600;
    color: var(--color-text-heading);
    height: 34px;
    border-radius: 0;
    transition: all 0.15s ease;
}

.datepicker table tr th.datepicker-switch {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-heading);
    text-align: center;
    cursor: pointer;
}

.datepicker table tr th.datepicker-switch:hover,
.datepicker table tr th.prev:hover,
.datepicker table tr th.next:hover {
    background-color: #f1f5f9;
    color: var(--color-table-header);
}

.datepicker table tr th.prev,
.datepicker table tr th.next {
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    text-align: center;
    color: #64748b;
}

/* Day of Week Headers (Su, Mo, Tu, We, Th, Fr, Sa) */
.datepicker table tr th.dow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    height: 28px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 4px;
}

/* Day Cells */
.datepicker table tr td {
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    color: #334155;
    border-radius: 0;
    border: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.datepicker table tr td.day:hover {
    background-color: #f1f5f9;
    color: var(--color-table-header);
    font-weight: 500;
}

/* Past & Future Month Days */
.datepicker table tr td.old,
.datepicker table tr td.new {
    color: #cbd5e1;
}

.datepicker table tr td.old:hover,
.datepicker table tr td.new:hover {
    color: #94a3b8;
    background-color: #f8fafc;
}

/* Today's Date - Slate Blue Theme */
.datepicker table tr td.today,
.datepicker table tr td.today:hover,
.datepicker table tr td.today:focus,
.datepicker table tr td.today.disabled,
.datepicker table tr td.today.disabled:hover {
    background: var(--color-table-header);
    background-image: none;
    color: #ffffff;
    border: 1.5px solid var(--color-table-header);
    font-weight: 700;
}

.datepicker table tr td.today:hover {
    background: #314a60;
    background-image: none;
    color: #ffffff;
}

/* Today's Date when also Selected/Active */
.datepicker table tr td.today.active,
.datepicker table tr td.today.active:hover,
.datepicker table tr td.today.active:focus {
    background: var(--color-table-header);
    background-image: none;
    border-color: var(--color-table-header);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(61, 90, 115, 0.4);
}

/* Selected / Active Date */
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active:focus,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
    background: var(--color-table-header);
    background-image: none;
    border-color: var(--color-table-header);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(61, 90, 115, 0.4);
}

/* Disabled Dates */
.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover {
    color: #e2e8f0;
    background: transparent;
    background-image: none;
    cursor: not-allowed;
}

/* Month & Year Selection View */
.datepicker table tr td span {
    display: block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    float: left;
    margin: 2px;
    cursor: pointer;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    transition: all 0.15s ease;
}

.datepicker table tr td span:hover {
    background: #f1f5f9;
    background-image: none;
    color: var(--color-table-header);
}

.datepicker table tr td span.today,
.datepicker table tr td span.today:hover {
    background: var(--color-table-header);
    background-image: none;
    color: #ffffff;
    border: 1.5px solid var(--color-table-header);
}

.datepicker table tr td span.active,
.datepicker table tr td span.active:hover {
    background: var(--color-table-header);
    background-image: none;
    color: #ffffff;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 991px) {
    .cobalt-sidebar {
        width: 70px;
        padding: 12px 6px;
    }

    .cobalt-nav-label span,
    .cobalt-chevron,
    .cobalt-submenu,
    .cobalt-nav-group.open .cobalt-submenu {
        display: none;
    }

    .cobalt-nav-item {
        justify-content: center;
        padding: 10px 0;
    }

    .cobalt-nav-icon {
        margin: 0;
        font-size: 18px;
    }

    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
}

@media (max-width: 576px) {
    .cobalt-sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 10px;
    }

    .form-container {
        padding: 0;
    }

    .form-wizard-card-body {
        padding: 16px;
    }

    .form-grid-2col {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }

    .workflow-cycle-stepper {
        flex-wrap: wrap;
        gap: 16px;
    }

    .cycle-step-arrow {
        flex: none;
        padding: 0;
    }

    .form-wizard-footer {
        flex-direction: column-reverse;
        gap: 16px;
        align-items: stretch;
    }

    .form-step-pagination {
        position: static;
        transform: none;
        justify-content: center;
    }

    .form-wizard-actions {
        justify-content: flex-end;
    }
}

/* ==========================================================================
   Material Request Detail — item table rows + approve/reject modal forms
   ========================================================================== */

/* Item table rows */
.table-row {
    transition: all 0.2s ease;
}

.table-row:hover {
    background: #f8fafc;
}

/* Approve/reject modal form labels */
.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

/* Form Control Focus States */
.form-control:focus,
.form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}
/* ==========================================================================
   Create Purchase Order - Scoped UI Styles (.po-form-container)
   Reuses Cobalt common.css for forms, header, breadcrumbs, and buttons.
   ========================================================================== */
.po-form-container {
    padding-bottom: 40px;
    font-family: var(--font-body, 'Inter', sans-serif);
    color: var(--color-dark, #1A202C);
}

/* Card Header Overrides to #335372 */
.po-form-container .form-wizard-card,
.po-form-container .po-card {
    background-color: var(--color-surface, #FFFFFF);
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 0;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.po-form-container .form-wizard-card-header,
.po-form-container .po-card-header {
    background-color: #335372 !important;
    color: #FFFFFF !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    padding: 12px 22px !important;
    letter-spacing: 0.2px;
}

.po-form-container .form-wizard-card-body,
.po-form-container .po-card-body {
    padding: 22px 26px !important;
    background-color: var(--color-surface, #FFFFFF);
}

/* Material Group Box */
.po-form-container .po-group-box {
    border: 1px solid #CBD5E0;
    border-left: 3px solid #2B6CB0;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 22px;
    background-color: #FFFFFF;
}

.po-form-container .po-group-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.po-form-container .po-group-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #2B6CB0;
}

.po-form-container .po-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #2D3748;
    margin: 0;
    cursor: pointer;
}

.po-form-container .po-group-code {
    font-size: 13px;
    font-weight: 400;
    color: #718096;
    margin-left: 6px;
}

/* Stats Row inside Group */
.po-form-container .po-group-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background-color: #F8FAFC;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 4px;
    padding: 8px 18px;
    margin-bottom: 16px;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.po-form-container .po-stat-unit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.po-form-container .po-stat-label {
    color: #718096;
    font-size: 12px;
    font-weight: 500;
}

.po-form-container .po-stat-val-box {
    background-color: #FFFFFF;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 3px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #1A202C;
    text-align: right;
    min-width: 65px;
}

/* Table */
.po-form-container .po-table-container {
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 4px;
    overflow: hidden;
    background-color: #FFFFFF;
}

.po-form-container .po-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.po-form-container .po-table thead th {
    background-color: var(--color-table-header, #34516C);
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 16px;
    border: none;
    letter-spacing: 0.2px;
    vertical-align: middle;
}

.po-form-container .po-table tbody td {
    padding: 14px 16px;
    font-size: 13.5px;
    color: #2D3748;
    border-top: 1px solid var(--color-border-subtle, #E2E8F0);
    vertical-align: middle;
}

.po-form-container .po-table tbody tr:hover {
    background-color: #F8FAFC;
}

/* Item Table Overrides inside Group */
.po-form-container .po-row-checkbox {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: #2B6CB0;
    vertical-align: middle;
}

.po-form-container .po-code-text {
    font-weight: 600;
    color: #1A202C;
    letter-spacing: 0.2px;
}

.po-form-container .po-price-input {
    width: 105px;
    height: 32px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1A202C;
    border: 1px solid var(--color-border, #CBD5E1);
    border-radius: 3px;
    text-align: right;
    box-sizing: border-box;
}

.po-form-container .po-price-input:focus {
    outline: none;
    border-color: var(--color-add-btn, #3F3DC4);
    box-shadow: 0 0 0 2px rgba(63, 61, 196, 0.15);
}

/* Summary Card */
.po-form-container .po-summary-stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 16px;
}

.po-form-container .po-summary-stats-row strong {
    color: #1A202C;
    font-weight: 600;
}

.po-form-container .po-grand-total-callout {
    background-color: #F0F7FF;
    border: 1px solid #D0E1FD;
    border-left: 4px solid var(--color-status, #2F80ED);
    border-radius: 4px;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.po-form-container .po-grand-total-label {
    font-size: 15px;
    font-weight: 600;
    color: #1A202C;
}

.po-form-container .po-grand-total-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-add-btn, #3F3DC4);
}

/* Button disabled state for .btn-add */
.btn-add:disabled {
    background-color: #94A3B8 !important;
    border-color: #94A3B8 !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .po-form-container .po-details-grid,
    .po-form-container .po-form-grid {
        grid-template-columns: 1fr;
    }
    .po-form-container .po-group-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

}