:root {
    --g2g-primary: #0047a1;
    --g2g-primary-dark: #00306b;
    --g2g-primary-light: #e6f0ff;
    --g2g-accent: #f5a623;
    --g2g-page: #f5f7fa;
    --g2g-surface: #ffffff;
    --g2g-border: #e3e7ee;
    --g2g-text: #1f2937;
    --g2g-text-muted: #687280;
    --g2g-sidebar-width: 248px;
    --g2g-sidebar-collapsed-width: 72px;
    --g2g-header-height: 64px;
    --g2g-radius-control: 6px;
    --g2g-radius-card: 10px;
    --g2g-shadow-card: 0 6px 18px rgba(31, 41, 55, .06);
    --g2g-focus-ring: 0 0 0 3px rgba(0, 71, 161, .25);
}

body.g2g-app {
    min-height: 100vh;
    background: var(--g2g-page);
    color: var(--g2g-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.g2g-app *, .g2g-app *::before, .g2g-app *::after { box-sizing: border-box; }
.g2g-skip-link { position: fixed; top: 8px; left: 8px; z-index: 1100; padding: 10px 14px; border-radius: var(--g2g-radius-control); background: var(--g2g-surface); color: var(--g2g-primary-dark); transform: translateY(-150%); }
.g2g-skip-link:focus { transform: translateY(0); box-shadow: var(--g2g-focus-ring); }

.g2g-sidebar.main-sidebar { position: fixed !important; z-index: 1040; top: 0; bottom: 0; left: 0; width: var(--g2g-sidebar-width); height: 100vh; min-height: 100vh; margin-left: 0; overflow: hidden; border-right: 1px solid rgba(255, 255, 255, .14); background: var(--g2g-primary-dark); box-shadow: none; transition: width .2s ease, transform .2s ease; }
.g2g-brand { display: flex; align-items: center; justify-content: center; min-height: var(--g2g-header-height); padding: 6px 12px; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.g2g-brand:hover, .g2g-brand:focus { color: #fff; text-decoration: none; }
.g2g-header-brand { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: -.06em; }
.g2g-brand-logo { display: block; object-fit: contain; }
.g2g-brand-logo-full { width: 100%; max-width: 205px; max-height: 52px; }
.g2g-brand-logo-compact { display: none; width: 42px; height: 42px; border-radius: 8px; }
.g2g-sidebar-body { height: calc(100% - var(--g2g-header-height)); overflow-y: auto; padding: 20px 12px; }
.g2g-nav-list, .g2g-nav-sublist { margin: 0; padding: 0; list-style: none; }
.g2g-nav-item + .g2g-nav-item { margin-top: 4px; }
.g2g-nav-link { display: flex; align-items: center; width: 100%; min-height: 42px; gap: 12px; padding: 10px 12px; border: 0; border-radius: var(--g2g-radius-control); background: transparent; color: rgba(255, 255, 255, .82); font: inherit; font-size: 14px; line-height: 1.25; text-align: left; text-decoration: none; }
.g2g-nav-link:hover, .g2g-nav-link:focus { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.g2g-nav-link.is-active { background: var(--g2g-primary-light); color: var(--g2g-primary-dark); font-weight: 700; }
.g2g-nav-link > i:first-child { width: 18px; text-align: center; }
.g2g-nav-chevron { margin-left: auto; font-size: 11px; transition: transform .2s ease; }
.g2g-nav-group.is-open .g2g-nav-chevron { transform: rotate(180deg); }
.g2g-nav-sublist { display: none; margin: 4px 0 8px; padding-left: 16px; }
.g2g-nav-group.is-open .g2g-nav-sublist { display: block; }
.g2g-nav-sublist .g2g-nav-link { min-height: 38px; font-size: 13px; }
.g2g-nav-item-signout { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }

.g2g-page-frame { min-height: 100vh; margin-left: var(--g2g-sidebar-width); transition: margin-left .2s ease; }
.g2g-header.main-header { position: sticky; z-index: 1020; top: 0; display: flex; align-items: center; min-height: var(--g2g-header-height); margin-left: 0; padding: 0 24px; border-bottom: 1px solid rgba(255, 255, 255, .18); background: var(--g2g-primary-dark); color: #fff; box-shadow: none; }
.g2g-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: var(--g2g-radius-control); background: transparent; color: #fff; }
.g2g-icon-button:hover, .g2g-icon-button:focus { background: rgba(255, 255, 255, .12); }
.g2g-header-title { display: flex; align-items: center; gap: 10px; margin-left: 14px; font-size: 15px; font-weight: 600; }
.g2g-header-brand { margin-left: 14px; color: var(--g2g-accent); font-size: 18px; font-weight: 800; }
.g2g-header-actions { margin-left: auto; }
.g2g-profile-menu { position: relative; }
.g2g-profile-menu summary { display: flex; align-items: center; min-height: 44px; gap: 9px; cursor: pointer; list-style: none; }
.g2g-profile-menu summary::-webkit-details-marker { display: none; }
.g2g-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #e6f0ff; color: var(--g2g-primary-dark); font-weight: 800; }
.g2g-profile-copy { display: grid; line-height: 1.15; }
.g2g-profile-copy strong { font-size: 13px; }
.g2g-profile-copy small { margin-top: 2px; color: rgba(255, 255, 255, .72); font-size: 11px; }
.g2g-profile-menu summary > i { margin-left: 4px; font-size: 10px; }
.g2g-profile-popover { position: absolute; top: calc(100% + 8px); right: 0; display: grid; min-width: 180px; padding: 10px; border: 1px solid var(--g2g-border); border-radius: var(--g2g-radius-card); background: var(--g2g-surface); color: var(--g2g-text); box-shadow: 0 12px 28px rgba(31, 41, 55, .18); }
.g2g-profile-name { padding: 7px 8px 10px; border-bottom: 1px solid var(--g2g-border); font-size: 13px; font-weight: 700; }
.g2g-profile-popover a { margin-top: 6px; padding: 7px 8px; border-radius: var(--g2g-radius-control); color: var(--g2g-primary); text-decoration: none; }
.g2g-profile-popover a:hover, .g2g-profile-popover a:focus { background: var(--g2g-primary-light); }

.g2g-main.content-wrapper { min-height: calc(100vh - var(--g2g-header-height) - 40px); margin-left: 0; background: var(--g2g-page); }
.g2g-main-body { width: 100%; max-width: none; margin: 0; padding: 30px 32px; }
.g2g-footer.main-footer { min-height: 40px; margin-left: 0; padding: 12px 24px; border-top: 1px solid var(--g2g-border); background: var(--g2g-surface); color: var(--g2g-text-muted); font-size: 12px; }
.g2g-sidebar-backdrop { display: none; }
/* Override AdminLTE's desktop sidebar offset: G2G already offsets the page frame. */
body.g2g-app .main-header.g2g-header,
body.g2g-app .content-wrapper.g2g-main,
body.g2g-app .main-footer.g2g-footer { margin-left: 0 !important; }
body.g2g-app .g2g-page-frame { margin-left: var(--g2g-sidebar-width) !important; }
body.g2g-app.g2g-sidebar-collapsed .g2g-page-frame { margin-left: var(--g2g-sidebar-collapsed-width) !important; }

@media (max-width: 991px) {
    body.g2g-app .g2g-page-frame, body.g2g-app.g2g-sidebar-collapsed .g2g-page-frame { margin-left: 0 !important; }
}

.g2g-page { width: 100%; }
.g2g-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.g2g-breadcrumb { display: flex; gap: 8px; margin-bottom: 8px; color: var(--g2g-text-muted); font-size: 12px; }
.g2g-breadcrumb a { color: var(--g2g-primary); text-decoration: none; }
.g2g-breadcrumb a:hover, .g2g-breadcrumb a:focus { text-decoration: underline; }
.g2g-page h1 { margin: 0; color: var(--g2g-text); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.g2g-page-heading p { display: none; }
.g2g-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 14px; border: 1px solid transparent; border-radius: var(--g2g-radius-control); font-size: 14px; font-weight: 700; }
.g2g-button-primary { background: var(--g2g-primary); color: #fff; }
.g2g-button-primary:hover, .g2g-button-primary:focus { background: var(--g2g-primary-dark); color: #fff; }
.g2g-card { overflow: hidden; border: 1px solid var(--g2g-border); border-radius: var(--g2g-radius-card); background: var(--g2g-surface); box-shadow: var(--g2g-shadow-card); }
.g2g-attached-header { display: flex; min-height: 76px; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 0; background: linear-gradient(100deg, #3f79a8 0%, #28577f 100%); color: #fff; }
.g2g-page .g2g-attached-header h1, #childDetails .g2g-attached-header .g2g-form-title, .g2g-attached-header h2 { display: inline-flex; min-height: 24px; align-items: center; margin: 0; color: #fff; font-size: 22px; font-weight: 750; letter-spacing: -.01em; line-height: 1.15; }
.g2g-attached-header > i { display: inline-flex; flex: 0 0 22px; width: 22px; height: 24px; align-items: center; justify-content: center; color: #fff; font-size: 20px; line-height: 1; text-align: center; }
.g2g-attached-body { padding: 20px; }
.g2g-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 20px; border-bottom: 1px solid var(--g2g-border); }
.g2g-tab { display: inline-flex; flex: 0 0 auto; min-height: 54px; align-items: center; padding: 0 14px; border-bottom: 3px solid transparent; color: var(--g2g-text-muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.g2g-tab:hover, .g2g-tab:focus { color: var(--g2g-primary); text-decoration: none; }
.g2g-tab.is-active { border-bottom-color: var(--g2g-primary); color: var(--g2g-primary); }
.g2g-table-toolbar { padding: 16px 20px 0; }
.g2g-table-help { margin: 0; color: var(--g2g-text-muted); font-size: 13px; }
.g2g-grid { padding: 16px 20px 20px; overflow-x: auto; }

.g2g-code-types .jsgrid { min-width: 680px; border: 1px solid var(--g2g-border); border-radius: var(--g2g-radius-control); box-shadow: none; overflow: hidden; }
.g2g-code-types .jsgrid-grid-header { border-bottom: 1px solid var(--g2g-border); }
.g2g-code-types .jsgrid-header-row > .jsgrid-header-cell { padding: 12px 10px; border: 0; background: #f8fafc; color: var(--g2g-text); font-size: 12px; font-weight: 700; }
.g2g-code-types .jsgrid-filter-row > .jsgrid-cell { padding: 8px 6px; border-color: var(--g2g-border); background: #fbfcfe; }
.g2g-code-types .jsgrid-row > .jsgrid-cell, .g2g-code-types .jsgrid-alt-row > .jsgrid-cell { padding: 10px 8px; border-color: var(--g2g-border); color: var(--g2g-text); }
.g2g-code-types .jsgrid-row > .jsgrid-cell { background: #fff; }
.g2g-code-types .jsgrid-alt-row > .jsgrid-cell { background: #fbfcfe; }
.g2g-code-types .jsgrid-row:hover > .jsgrid-cell, .g2g-code-types .jsgrid-alt-row:hover > .jsgrid-cell { background: var(--g2g-primary-light); }
.g2g-code-types .jsgrid input, .g2g-code-types .jsgrid select, .g2g-code-types .jsgrid textarea { min-height: 34px; border: 1px solid #cfd7e3; border-radius: 4px; padding: 5px 7px; color: var(--g2g-text); }
.g2g-code-types .jsgrid input:focus, .g2g-code-types .jsgrid select:focus, .g2g-code-types .jsgrid textarea:focus { outline: 0; border-color: var(--g2g-primary); box-shadow: var(--g2g-focus-ring); }
.g2g-code-types .jsgrid-button { border-radius: 4px; }
.g2g-code-types .jsgrid-pager { padding: 14px 0 0; color: var(--g2g-text-muted); }
.g2g-code-types .jsgrid-pager-page a, .g2g-code-types .jsgrid-pager-nav-button a { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; margin: 0 2px; border: 1px solid var(--g2g-border); border-radius: 4px; color: var(--g2g-primary); text-decoration: none; }
.g2g-code-types .jsgrid-pager-current-page { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; margin: 0 2px; border-radius: 4px; background: var(--g2g-primary); color: #fff; }
.g2g-app :focus-visible { outline: none; box-shadow: var(--g2g-focus-ring); }

/* Authentication */
body.g2g-auth { min-height: 100vh; margin: 0; background: #edf3fb; color: var(--g2g-text); font-family: "Segoe UI", Arial, sans-serif; }
.g2g-auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(320px, .92fr) minmax(420px, 1.08fr); }
.g2g-auth-aside { position: relative; display: grid; place-items: center; overflow: hidden; padding: 48px clamp(32px, 6vw, 96px); background: linear-gradient(145deg, #12366f 0%, #0a2760 60%, #061b47 100%); color: #fff; }
.g2g-auth-aside::before, .g2g-auth-aside::after { position: absolute; border-radius: 999px; content: ""; opacity: .18; pointer-events: none; }
.g2g-auth-aside::before { width: 560px; height: 560px; right: -300px; top: -120px; border: 70px solid #fff; }
.g2g-auth-aside::after { width: 420px; height: 420px; left: -250px; bottom: -230px; background: #f5c543; }
.g2g-auth-logo-link { position: relative; z-index: 1; display: block; width: min(72%, 420px); border-radius: 18px; }
.g2g-auth-logo-link:hover, .g2g-auth-logo-link:focus { text-decoration: none; }
.g2g-auth-logo { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 44px rgba(2, 13, 38, .28); }
.g2g-auth-main { display: grid; place-items: center; padding: 40px 24px; }
.g2g-auth-card { width: min(100%, 460px); }
.g2g-auth-eyebrow { margin: 0 0 9px; color: var(--g2g-primary); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.g2g-auth-card h2 { margin: 0 0 28px; color: var(--g2g-text); font-size: 30px; font-weight: 750; letter-spacing: -.03em; }
.g2g-auth-intro { margin: 10px 0 28px; color: var(--g2g-text-muted); font-size: 14px; line-height: 1.55; }
.g2g-alert { display: flex; gap: 10px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid #f4c7c3; border-radius: var(--g2g-radius-control); background: #fff4f2; color: #9d2d25; font-size: 13px; line-height: 1.45; }
.g2g-alert-success { border-color: #b7e0c4; background: #f1fbf4; color: #17633a; }
.g2g-auth-form { display: grid; gap: 18px; }
.g2g-field { display: grid; min-width: 0; gap: 8px; }
.g2g-field label { color: var(--g2g-text); font-size: 13px; font-weight: 700; }
.g2g-input-wrap { position: relative; width: 100%; min-height: 52px; }
.g2g-input-wrap > i { position: absolute; top: 50%; left: 16px; width: 16px; transform: translateY(-50%); color: #718096; font-size: 14px; text-align: center; pointer-events: none; }
.g2g-input { box-sizing: border-box; display: block; width: 100%; height: 52px; min-height: 52px; padding: 0 48px 0 44px; border: 1px solid #cfd7e3; border-radius: var(--g2g-radius-control); background: #fff; color: var(--g2g-text); font: inherit; line-height: 1.25; appearance: none; }
.g2g-input::placeholder { color: #8a96a8; }
.g2g-input:focus { outline: 0; border-color: var(--g2g-primary); box-shadow: var(--g2g-focus-ring); }
.g2g-input:-webkit-autofill { box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: var(--g2g-text); }
.g2g-password-toggle { position: absolute; top: 50%; right: 7px; display: inline-grid; width: 36px; height: 36px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 5px; background: transparent; color: #64748b; }
.g2g-password-toggle:hover, .g2g-password-toggle:focus { background: var(--g2g-primary-light); color: var(--g2g-primary); }
.g2g-auth-submit { width: 100%; min-height: 48px; margin-top: 4px; }
.g2g-auth-link { color: var(--g2g-primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.g2g-auth-link:hover, .g2g-auth-link:focus { color: var(--g2g-primary-dark); text-decoration: underline; }
.g2g-password-help { margin: -3px 0 0; color: var(--g2g-text-muted); font-size: 12px; line-height: 1.5; }

/* Dashboard */
.g2g-dashboard-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.g2g-stat-card { position: relative; min-height: 154px; padding: 22px; overflow: hidden; }
.g2g-stat-card::after { position: absolute; right: -16px; bottom: -24px; color: var(--g2g-primary-light); font-family: "Font Awesome 5 Free"; font-size: 95px; font-weight: 900; line-height: 1; }
.g2g-stat-card--pending::after { content: "\\f017"; }
.g2g-stat-card--failed::after { content: "\\f071"; color: #fff0ee; }
.g2g-stat-card--recent::after { content: "\\f0ae"; }
.g2g-stat-card--failed { border-color: #f1d3d0; }
.g2g-stat-label { margin: 0; color: var(--g2g-text-muted); font-size: 13px; font-weight: 700; }
.g2g-stat-value { margin: 15px 0 4px; color: var(--g2g-text); font-size: 38px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.g2g-stat-note { margin: 0; color: var(--g2g-text-muted); font-size: 12px; }
.g2g-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 16px; border-bottom: 1px solid var(--g2g-border); }
.g2g-section-heading h2 { margin: 0; color: var(--g2g-text); font-size: 17px; font-weight: 750; }
.g2g-section-heading p { margin: 5px 0 0; color: var(--g2g-text-muted); font-size: 13px; }
.g2g-text-link { color: var(--g2g-primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.g2g-text-link:hover, .g2g-text-link:focus { color: var(--g2g-primary-dark); text-decoration: underline; }
.g2g-job-table-wrap { overflow-x: auto; }
.g2g-job-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.g2g-job-table th, .g2g-job-table td { padding: 14px 20px; border-bottom: 1px solid var(--g2g-border); color: var(--g2g-text); font-size: 13px; text-align: left; vertical-align: middle; }
.g2g-job-table th { background: #f8fafc; color: var(--g2g-text-muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.g2g-job-table tr:last-child td { border-bottom: 0; }
.g2g-status { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; background: #eaf3ff; color: #1763af; font-size: 11px; font-weight: 800; }
.g2g-status--failed { background: #fff0ee; color: #ae3027; }
.g2g-empty-state { padding: 48px 24px; color: var(--g2g-text-muted); text-align: center; }
.g2g-empty-state i { display: block; margin-bottom: 10px; color: #b6c3d5; font-size: 28px; }

/* Data workspaces */
.g2g-workspace-card { padding: 20px; }
.g2g-workspace-card.g2g-attached-workspace { padding: 0; }
.g2g-workspace-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.g2g-workspace-actions-start, .g2g-workspace-actions-end { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.g2g-button-secondary { border-color: #cfd7e3; background: #fff; color: var(--g2g-primary); }
.g2g-button-secondary:hover, .g2g-button-secondary:focus { border-color: var(--g2g-primary); background: var(--g2g-primary-light); color: var(--g2g-primary-dark); }
.g2g-filter-card { margin-bottom: 20px; }
.g2g-filter-card .card-header { padding: 18px 20px; border-bottom: 1px solid var(--g2g-border); background: #f8fafc; color: var(--g2g-text); font-size: 15px; font-weight: 750; }
.g2g-filter-card .card-body { padding: 20px; }
.g2g-filter-card .card-footer { padding: 0 20px 20px; border: 0; background: transparent; }
.g2g-filter-card .form-control, .g2g-filter-card .select2-selection { min-height: 40px; border-color: #cfd7e3; border-radius: var(--g2g-radius-control); }
.g2g-data-table { width: 100% !important; border-collapse: collapse !important; }
.g2g-data-table thead th { padding: 12px 10px !important; border-bottom: 1px solid var(--g2g-border) !important; background: #f8fafc; color: var(--g2g-text-muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.g2g-data-table tbody td { padding: 13px 14px !important; border-color: var(--g2g-border) !important; color: var(--g2g-text); font-size: 13px; vertical-align: middle; }
.g2g-data-table tbody tr:hover { background: #f8fbff; }
.g2g-workspace-card .dataTables_wrapper .dataTables_filter input, .g2g-workspace-card .dataTables_wrapper .dataTables_length select { min-height: 34px; border: 1px solid #cfd7e3; border-radius: 4px; padding: 5px 7px; }
.g2g-workspace-card .btn-primary { border-color: var(--g2g-primary); background: var(--g2g-primary); }
.g2g-workspace-card .btn-outline-primary { border-color: var(--g2g-primary); color: var(--g2g-primary); }
.g2g-workspace-card .btn-outline-primary:hover { background: var(--g2g-primary); }
.g2g-import-card { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--g2g-border); border-radius: var(--g2g-radius-card); box-shadow: var(--g2g-shadow-card); }
.g2g-import-card .card-body { padding: 24px; }
.g2g-import-card .card-header { margin: 0; padding: 18px 20px; border: 0; border-radius: 0; background: var(--g2g-primary) !important; color: #fff !important; font-size: 16px !important; text-align: left !important; }
.g2g-import-card input[type="file"] { width: 100%; padding: 12px; border: 1px dashed #9fb3cc; border-radius: var(--g2g-radius-control); background: #f8fbff; color: var(--g2g-text); }
.g2g-import-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g2g-import-actions .btn { min-height: 48px; margin-top: 0 !important; border-radius: var(--g2g-radius-control); font-weight: 700; }
@media (max-width: 767px) { .g2g-import-actions { grid-template-columns: 1fr; } }

/* Report criteria */
.g2g-report-page .g2g-report-card { overflow: hidden; margin-bottom: 18px; border: 1px solid var(--g2g-border); border-radius: var(--g2g-radius-card); box-shadow: var(--g2g-shadow-card); }
.g2g-report-card .card-header { padding: 17px 20px; border: 0; border-radius: 0; background: var(--g2g-primary) !important; color: #fff !important; font-size: 16px !important; font-weight: 750 !important; text-align: left !important; }
.g2g-report-card .card-body { padding: 20px; }
.g2g-report-card .form-group { margin-bottom: 16px; }
.g2g-report-card .form-control, .g2g-report-card .select2-selection { min-height: 40px; border-color: #cfd7e3; border-radius: var(--g2g-radius-control); }
.g2g-report-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.g2g-report-actions .btn { min-width: 180px; min-height: 46px; margin-top: 0 !important; border-radius: var(--g2g-radius-control); font-weight: 700; }

/* Shared criteria and upload forms */
.g2g-prototype-form-page { margin-top: 24px; }
.g2g-prototype-form-card { overflow: hidden; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.g2g-prototype-form-header { padding: 20px 30px; border: 0; background: linear-gradient(135deg, #3b71a1, #24517b); color: #fff; font-size: 22px; font-weight: 600; letter-spacing: .5px; }
.g2g-prototype-form-body { padding: 40px; }
.g2g-prototype-form-card .div-wrapper { display: flex; flex-direction: column; margin-bottom: 5px; }
.g2g-prototype-form-card .div-wrapper > label { margin-bottom: 8px; color: #4a5568; font-size: 15px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.g2g-prototype-form-card .input-wrapper { width: 100%; }
.g2g-prototype-form-card .input-wrapper > .form-control,
.g2g-prototype-form-card .input-wrapper > select,
.g2g-prototype-form-card .input-wrapper > .select2-container { width: 100% !important; }
.g2g-prototype-form-card .form-control, .g2g-prototype-form-card select.combobox, .g2g-prototype-form-card .select2-selection { min-height: 48px; padding: 10px 16px; border: 1px solid #d1d5db; border-radius: 8px; background: #f9fafb; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.g2g-prototype-form-card .form-control:focus, .g2g-prototype-form-card select.combobox:focus { border-color: #3b71a1; box-shadow: 0 0 0 3px rgba(59, 113, 161, .2); background: #fff; outline: 0; }
#usrForm .form-control:not(:disabled):not([readonly]), #usrForm select.combobox:not(:disabled), #usrForm .select2-container:not(.select2-container--disabled) .select2-selection--single { background: #fff; }
#usrForm .form-control:disabled, #usrForm .form-control[readonly], #usrForm select:disabled, #usrForm .select2-container--disabled .select2-selection--single { border-color: #d9dfe7; background: #e7ecf2; color: #687587; cursor: not-allowed; opacity: 1; }
.g2g-prototype-form-card .form-group { margin-bottom: 24px; }
.g2g-prototype-form-card .row { row-gap: 0; }
.g2g-prototype-form-card .row > .form-group { display: flex; min-width: 0; }
.g2g-prototype-form-card .row > .form-group > .div-wrapper { width: 100%; }
.g2g-toggle-field { display: flex; align-items: center; }
.g2g-prototype-form-actions { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 16px; padding-top: 28px; border-top: 1px solid #e2e8f0; }
.g2g-prototype-form-actions form { margin: 0; }
.g2g-prototype-primary, .g2g-prototype-secondary, .g2g-prototype-warning { min-width: 250px; padding: 12px 24px; border-radius: 8px; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .5px; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); transition: transform .2s, box-shadow .2s, background .2s; }
.g2g-prototype-primary { border-color: #10b981; background: #10b981; }.g2g-prototype-primary:hover { background: #059669; color: #fff; }
.g2g-prototype-secondary { border-color: #3b71a1; background: #3b71a1; }.g2g-prototype-secondary:hover { background: #24517b; color: #fff; }
.g2g-prototype-warning { border-color: #f59e0b; background: #f59e0b; }.g2g-prototype-warning:hover { background: #d97706; color: #fff; }
.g2g-prototype-primary:hover, .g2g-prototype-secondary:hover, .g2g-prototype-warning:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0, 0, 0, .15); }
#usrForm .g2g-prototype-form-actions #btnBack { border-color: var(--g2g-primary); background: #fff; color: var(--g2g-primary); }
#usrForm .g2g-prototype-form-actions #btnBack:hover, #usrForm .g2g-prototype-form-actions #btnBack:focus { background: var(--g2g-primary-light); color: var(--g2g-primary-dark); }
#usrForm .g2g-prototype-form-actions #btnCreate { border-color: var(--g2g-primary); background: var(--g2g-primary); color: #fff; }
#usrForm .g2g-prototype-form-actions #btnCreate:hover, #usrForm .g2g-prototype-form-actions #btnCreate:focus { background: var(--g2g-primary-dark); color: #fff; }
.g2g-report-page, .g2g-import-card { max-width: 1420px; margin-right: auto; margin-left: auto; }
.g2g-report-page .g2g-report-card, .g2g-import-card { border: 0; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(15, 45, 80, .10); }
.g2g-report-card .card-header, .g2g-import-card .card-header { display: flex; align-items: center; min-height: 90px; padding: 24px 38px; background: linear-gradient(135deg, #3b71a1, #24517b) !important; font-size: 24px !important; font-weight: 700 !important; letter-spacing: .01em; }
.g2g-report-card .card-body, .g2g-import-card .card-body { padding: 42px 50px; }
.g2g-report-card #pay-invoice > .card-body, .g2g-import-card #pay-invoice > .card-body { padding: 0; }
.g2g-report-card .div-wrapper, .g2g-import-card .div-wrapper { margin-bottom: 0; }
.g2g-report-card .div-wrapper > label, .g2g-import-card .div-wrapper > label { margin-bottom: 9px; color: #3f526a; font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.g2g-report-card .form-control, .g2g-report-card .select2-selection, .g2g-import-card .form-control, .g2g-import-card .select2-selection { min-height: 55px; border: 1px solid #cbd5e1; border-radius: 6px; box-shadow: none; font-size: 17px; }
.g2g-report-card .form-control:focus, .g2g-import-card .form-control:focus { border-color: #3b71a1; box-shadow: 0 0 0 3px rgba(59, 113, 161, .18); }
.g2g-report-card .row.col-md-12 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 68px; width: 100%; margin: 0 !important; padding: 0; }
.g2g-report-card .row.col-md-12 > .form-group, .g2g-report-card .row.col-md-12 > .div-wrapper { width: auto; margin: 0; }
.g2g-report-card #pay-invoice > .card-body > .col-md-12:not(:has(.card-header)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 68px; width: 100%; margin: 0 !important; padding: 0; }
.g2g-report-actions { margin-top: 40px; padding-top: 28px; border-top: 1px solid #dbe4ee; }
.g2g-report-actions .btn, .g2g-import-actions .btn { min-width: 250px; min-height: 62px; border: 0; border-radius: 10px; background: #12b981; color: #fff; box-shadow: 0 5px 10px rgba(16, 185, 129, .22); font-size: 16px; font-weight: 800; }
.g2g-report-actions .btn:hover, .g2g-import-actions .btn:hover { background: #0c9d6d; color: #fff; transform: translateY(-1px); }
.g2g-upload-dropzone { display: grid; min-height: 220px; place-items: center; align-content: center; gap: 9px; padding: 30px; border: 2px dashed #9eb9d6; border-radius: 10px; background: #f7fbff; color: #53657b; text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.g2g-upload-dropzone:hover, .g2g-upload-dropzone:focus, .g2g-upload-dropzone.is-dragging { border-color: #3b71a1; background: #edf6ff; outline: 0; }
.g2g-upload-dropzone > i { color: #3b71a1; font-size: 34px; }
.g2g-upload-dropzone strong { color: #314860; font-size: 16px; }
.g2g-upload-dropzone span { font-size: 13px; }
.g2g-upload-browse { padding: 0; border: 0; background: transparent; color: #1763a8; font-weight: 800; text-decoration: underline; cursor: pointer; }
.g2g-upload-file-name { color: #3f526a; font-weight: 700; }
.g2g-upload-input { position: absolute; width: 1px !important; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g2g-import-actions { display: flex; justify-content: center; width: 100%; margin: 0 !important; padding: 0; }
.g2g-import-actions > .form-group { width: auto; margin: 0; }
.g2g-import-form-card { margin-bottom: 24px; }
.g2g-import-form-card #pay-invoice > .card-body, .g2g-import-form-card .card-body[class="=card-body"] { padding: 0; }
.g2g-import-form-card .row.col-md-12 { width: 100%; margin: 0; padding: 0; }
.g2g-import-form-card .g2g-upload-dropzone { width: 100%; }
.g2g-import-form-card .g2g-import-actions { margin-top: 40px !important; padding-top: 28px; border-top: 1px solid #e2e8f0; }
.g2g-import-info { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; margin-left: 16px; padding: 6px 11px; border: 1px solid rgba(255, 255, 255, .72); border-radius: 999px; background: rgba(255, 255, 255, .10); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
.g2g-import-info:hover, .g2g-import-info:focus { background: #fff; color: #24517b; outline: 0; transform: translateY(-1px); }

/* User entry follows the sectioned recruitment form pattern. */
#childDetails > #parentIndex, #childDetails > form#usrForm { overflow: hidden; padding: 0; border: 0; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 45, 80, .10); }
#childDetails #usrForm > .form-group:first-child { padding: 34px 44px 12px; margin: 0; border-top: 90px solid #24517b; position: relative; }
#childDetails #usrForm > .form-group:first-child::before { position: absolute; top: -61px; left: 44px; color: #fff; content: "USER INFORMATION"; font-size: 23px; font-weight: 750; letter-spacing: .01em; }
#childDetails #usrForm .g2g-form-title, #childDetails #usrForm .g2g-form-intro { display: none; }
#childDetails #usrForm .form-group.col-md-12 { width: auto; margin: 0; padding: 0 44px 20px; }
#childDetails #usrForm .form-group.col-md-12:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 34px; }
#childDetails #usrForm .form-group.col-md-12:first-child > h2, #childDetails #usrForm .form-group.col-md-12:first-child > p, #childDetails #usrForm .form-group.col-md-12:first-child > .text-center { grid-column: 1 / -1; }
#childDetails #usrForm .form-group.col-md-12:first-child > .text-center { margin-bottom: 12px !important; }
#childDetails #usrForm .div-wrapper { margin-bottom: 0; }
#childDetails #usrForm label { margin-bottom: 8px; color: #3f526a; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
#childDetails #usrForm .form-control, #childDetails #usrForm .select2-selection { min-height: 48px; border: 1px solid #cbd5e1; border-radius: 6px; }
#childDetails #usrForm > .form-group.col-md-12:not(:first-child) { display: grid; grid-template-columns: minmax(0, 1fr); }
#childDetails #usrForm > .form-group.col-md-12:not(:first-child) .div-wrapper { max-width: 100%; }
#childDetails #usrForm + .mb-4 { display: flex; justify-content: flex-end; gap: 12px; margin: 0 !important; padding: 24px 44px 34px; border-top: 1px solid #dbe4ee; background: #fff; }
#childDetails #usrForm + .mb-4 .btn { min-width: 135px; min-height: 46px; border-radius: 8px; font-weight: 800; }
#childDetails > form#usrForm.g2g-user-entry-form { overflow: visible; border-radius: 0; box-shadow: none; }
#childDetails #usrForm.g2g-user-entry-form > .g2g-prototype-form-card { border-radius: 12px; }
#childDetails #usrForm.g2g-user-entry-form .g2g-prototype-form-body { padding: 40px; }
#childDetails #usrForm.g2g-user-entry-form .form-group { margin-bottom: 24px; padding: 0; }
#childDetails #usrForm.g2g-user-entry-form .form-control, #childDetails #usrForm.g2g-user-entry-form .select2-selection { min-height: 48px; }
#childDetails #usrForm.g2g-user-entry-form #ZoneField,
#childDetails #usrForm.g2g-user-entry-form #ZoneField .div-wrapper,
#childDetails #usrForm.g2g-user-entry-form #ZoneField .input-wrapper,
#childDetails #usrForm.g2g-user-entry-form #ZoneField select,
#childDetails #usrForm.g2g-user-entry-form #ZoneField .select2-container { width: 100% !important; }
#childDetails #usrForm.g2g-user-entry-form #ZoneField label {
    display: block;
    width: auto;
    white-space: normal;
    word-break: normal;
}
.g2g-upload-limit {
    display: block;
    margin-top: 8px;
    color: #52657a;
    font-weight: 600;
}
.g2g-import-preview-dialog {
    width: min(1480px, 96vw);
    max-width: min(1480px, 96vw);
}
.g2g-import-preview-dialog .modal-body {
    max-height: 72vh;
    overflow: auto;
}
.g2g-import-preview-dialog .table {
    margin-bottom: 0;
    min-width: 780px;
}
.g2g-entry-section-title { margin: 0 0 18px; color: #3b71a1; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.g2g-entry-divider { margin: 26px 0 22px; border: 0; border-top: 2px solid #e2e8f0; }

@media (max-width: 767px) {
    .g2g-prototype-form-header { padding: 18px 20px; font-size: 19px; }
    .g2g-prototype-form-body { padding: 28px 20px; }
    .g2g-prototype-form-actions { flex-direction: column; align-items: stretch; }
    .g2g-prototype-form-actions form, .g2g-prototype-form-actions .btn { width: 100%; }
    .g2g-report-card .card-header, .g2g-import-card .card-header { min-height: 68px; padding: 18px 20px; font-size: 19px !important; }
    .g2g-report-card .card-body, .g2g-import-card .card-body { padding: 28px 20px; }
    .g2g-report-card .row.col-md-12, .g2g-report-card #pay-invoice > .card-body > .col-md-12:not(:has(.card-header)), #childDetails #usrForm .form-group.col-md-12:first-child { grid-template-columns: 1fr; gap: 20px; }
    #childDetails #usrForm > .form-group:first-child { padding: 28px 22px 12px; border-top-width: 68px; }
    #childDetails #usrForm > .form-group:first-child::before { top: -46px; left: 22px; font-size: 18px; }
    #childDetails #usrForm .form-group.col-md-12 { padding-right: 22px; padding-left: 22px; }
    #childDetails #usrForm + .mb-4 { justify-content: stretch; padding: 20px 22px; }
    #childDetails #usrForm + .mb-4 .btn { flex: 1; min-width: 0; }
    #childDetails #usrForm.g2g-user-entry-form .g2g-prototype-form-body { padding: 28px 20px; }
}

/* Dynamically loaded management forms */
#childElement { margin-top: 20px; }
#childDetails > form, #childDetails > #parentIndex { display: block; padding: 24px; border: 1px solid var(--g2g-border); border-radius: var(--g2g-radius-card); background: var(--g2g-surface); box-shadow: var(--g2g-shadow-card); }
#childDetails .g2g-form-title { margin: 0 0 6px; color: var(--g2g-text); font-size: 21px; font-weight: 750; }
#childDetails .g2g-form-intro { margin: 0 0 22px; color: var(--g2g-text-muted); font-size: 13px; }
#childDetails .form-group { margin-bottom: 16px; }
#childDetails .form-control, #childDetails .select2-selection { min-height: 40px; border-color: #cfd7e3; border-radius: var(--g2g-radius-control); }
#childDetails label { color: var(--g2g-text); font-size: 13px; font-weight: 700; }
#childDetails .btn { min-height: 40px; border-radius: var(--g2g-radius-control); font-weight: 700; }
#childDetails .UserImg { border: 4px solid var(--g2g-primary-light); box-shadow: 0 8px 20px rgba(0, 48, 107, .15); }
#childDetails table { width: 100%; }
.g2g-app .PDT_table { overflow-x: auto; border: 1px solid var(--g2g-border); border-radius: var(--g2g-radius-card); background: #fff; }
.g2g-app .PDT_table table, #childDetails .table { margin-bottom: 0; }
.g2g-app .PDT_table th, .g2g-app .PDT_table td, #childDetails .table th, #childDetails .table td { border-color: var(--g2g-border); vertical-align: middle; }
.g2g-app .PDT_table thead th, #childDetails .table thead th { background: #f8fafc; color: var(--g2g-text); font-size: 12px; }
.g2g-app .card-primary.card-outline, #childDetails .card-primary { border-color: var(--g2g-border); box-shadow: var(--g2g-shadow-card); }
.g2g-app .card-primary.card-outline > .card-header, #childDetails .card-primary > .card-header { border-bottom-color: var(--g2g-border); background: #f8fafc; color: var(--g2g-text); font-weight: 750; }

body.g2g-sidebar-collapsed .g2g-sidebar.main-sidebar { width: var(--g2g-sidebar-collapsed-width); }
body.g2g-sidebar-collapsed .g2g-page-frame { margin-left: var(--g2g-sidebar-collapsed-width); }
body.g2g-sidebar-collapsed .g2g-brand { justify-content: center; padding: 10px; }
body.g2g-sidebar-collapsed .g2g-brand-copy, body.g2g-sidebar-collapsed .g2g-nav-link > span, body.g2g-sidebar-collapsed .g2g-nav-chevron, body.g2g-sidebar-collapsed .g2g-nav-sublist { display: none; }
body.g2g-sidebar-collapsed .g2g-brand-logo-full { display: none; }
body.g2g-sidebar-collapsed .g2g-brand-logo-compact { display: block; }

/* Management workspaces: restrained, full-width tools for daily operations. */
.g2g-role-workspace, .g2g-code-type-workspace { width: 100%; min-width: 0; max-width: 100%; min-height: 0; padding: 0; border-radius: 10px; box-shadow: var(--g2g-shadow-card); }
.g2g-user-account-workspace { min-width: 0; max-width: 100%; overflow: visible; }
.g2g-management-body { min-width: 0; max-width: 100%; padding: 26px; }
.g2g-attached-workspace > .g2g-attached-body { padding: 26px; }
.g2g-management-toolbar { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding: 0; border: 0; }
.g2g-record-count { color: #526174; font-size: 13px; font-weight: 700; }
.g2g-management-controls { display: flex; align-items: center; gap: 10px; }
.g2g-search-field { position: relative; width: min(300px, 34vw); }
.g2g-search-field > i { position: absolute; top: 50%; left: 12px; color: #7a8797; font-size: 13px; transform: translateY(-50%); pointer-events: none; }
.g2g-search-field input { width: 100%; min-height: 40px; padding: 8px 12px 8px 35px; border: 1px solid #cfd6df; border-radius: 5px; background: #fff; color: var(--g2g-text); font-size: 13px; }
.g2g-search-field input:focus { border-color: var(--g2g-primary); box-shadow: var(--g2g-focus-ring); outline: 0; }
.g2g-role-workspace .jsgrid, .g2g-code-type-workspace .jsgrid { overflow: visible; border: 1px solid var(--g2g-border); border-radius: 6px; box-shadow: none; }
.g2g-role-workspace .jsgrid-header-row > .jsgrid-header-cell, .g2g-code-type-workspace .jsgrid-header-row > .jsgrid-header-cell { padding: 14px 12px; border-color: var(--g2g-border); background: #f6f8fb; color: #54657c; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.g2g-role-workspace .jsgrid-row > .jsgrid-cell, .g2g-role-workspace .jsgrid-alt-row > .jsgrid-cell, .g2g-code-type-workspace .jsgrid-row > .jsgrid-cell, .g2g-code-type-workspace .jsgrid-alt-row > .jsgrid-cell { padding: 13px 14px; border-color: #edf0f4; color: var(--g2g-text); vertical-align: middle; }
.g2g-role-workspace .jsgrid-row > .jsgrid-cell, .g2g-code-type-workspace .jsgrid-row > .jsgrid-cell { background: #fff; }.g2g-role-workspace .jsgrid-alt-row > .jsgrid-cell, .g2g-code-type-workspace .jsgrid-alt-row > .jsgrid-cell { background: #fafbfd; }
.g2g-role-workspace .jsgrid-row:hover > .jsgrid-cell, .g2g-role-workspace .jsgrid-alt-row:hover > .jsgrid-cell, .g2g-code-type-workspace .jsgrid-row:hover > .jsgrid-cell, .g2g-code-type-workspace .jsgrid-alt-row:hover > .jsgrid-cell { background: #f3f6f9; }
.g2g-role-workspace #GridUserRole, .g2g-code-type-workspace .g2g-grid { width: 100%; min-width: 0; max-width: 100%; padding: 0; overflow-x: auto; }
.g2g-role-workspace #GridUserRole > .jsgrid, .g2g-code-type-workspace .g2g-grid > .jsgrid { width: 100% !important; min-width: 0; max-width: 100%; margin: 0; }
.g2g-role-workspace .jsgrid-grid-header, .g2g-role-workspace .jsgrid-grid-body, .g2g-code-type-workspace .jsgrid-grid-header, .g2g-code-type-workspace .jsgrid-grid-body { width: 100% !important; max-width: 100%; }
.g2g-role-workspace .jsgrid-pager, .g2g-code-type-workspace .jsgrid-pager { display: flex; min-height: 58px; align-items: center; justify-content: flex-end; gap: 4px; padding: 12px 14px !important; border-top: 1px solid var(--g2g-border); background: #fff; color: var(--g2g-text-muted); font-size: 13px; }
.g2g-role-workspace .jsgrid-pager-page a, .g2g-role-workspace .jsgrid-pager-nav-button a, .g2g-code-type-workspace .jsgrid-pager-page a, .g2g-code-type-workspace .jsgrid-pager-nav-button a { display: inline-flex; min-width: 32px; min-height: 32px; align-items: center; justify-content: center; margin: 0 2px; border: 1px solid var(--g2g-border); border-radius: 4px; color: var(--g2g-primary); text-decoration: none; }
.g2g-role-workspace .jsgrid-pager-current-page, .g2g-code-type-workspace .jsgrid-pager-current-page { display: inline-flex; min-width: 32px; min-height: 32px; align-items: center; justify-content: center; margin: 0 2px; border-radius: 4px; background: var(--g2g-primary); color: #fff; font-style: normal; }
.g2g-datatable-toolbar { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-bottom: 14px; }
.g2g-datatable-toolbar .dataTables_filter { float: none !important; margin: 0; }
.g2g-datatable-toolbar .dataTables_filter label { margin: 0; }
.g2g-datatable-toolbar .g2g-search-field { display: block; }
.g2g-datatable-toolbar .dataTables_filter input { min-width: 280px; min-height: 42px; margin-left: 0 !important; padding: 8px 12px; border: 1px solid #cfd6df; border-radius: 5px; background: #fff; }
.g2g-user-table-toolbar { justify-content: flex-start; padding-right: 4px; }
.g2g-user-table-toolbar .g2g-datatable-search { width: min(300px, 36vw); }
.g2g-user-table-toolbar .g2g-datatable-search input { width: 100%; min-height: 40px; padding-left: 38px !important; }
.g2g-user-table-toolbar > .g2g-button { min-height: 40px; }
.g2g-account-table-toolbar { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-bottom: 14px; }
.g2g-account-table-toolbar .dataTables_filter { float: none !important; margin: 0; }
.g2g-account-table-toolbar .dataTables_filter label { margin: 0; }
.g2g-account-table-toolbar .g2g-datatable-search { width: min(300px, 36vw); }
.g2g-account-table-toolbar .g2g-datatable-search input { width: 100%; min-height: 40px; margin: 0 !important; padding-left: 38px !important; }
.g2g-account-create-button { min-height: 40px; }
.g2g-datatable-footer { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; }
.g2g-datatable-footer .dataTables_info, .g2g-datatable-footer .dataTables_paginate { float: none !important; padding: 0 !important; color: var(--g2g-text-muted); font-size: 13px; }
.g2g-datatable-footer .dataTables_paginate .pagination { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.g2g-datatable-footer .dataTables_paginate li.paginate_button { min-width: 0; min-height: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.g2g-datatable-footer .dataTables_paginate li.paginate_button > a,
.g2g-datatable-footer .dataTables_paginate > span > .paginate_button,
.g2g-datatable-footer .dataTables_paginate > .paginate_button { display: inline-flex; min-width: 34px; min-height: 34px; align-items: center; justify-content: center; margin: 0; padding: 7px 10px !important; border: 1px solid var(--g2g-border) !important; border-radius: 4px !important; background: #fff !important; color: var(--g2g-primary) !important; box-shadow: none !important; text-decoration: none; }
.g2g-datatable-footer .dataTables_paginate li.paginate_button:not(.disabled) > a:hover,
.g2g-datatable-footer .dataTables_paginate li.paginate_button:not(.disabled) > a:focus,
.g2g-datatable-footer .dataTables_paginate > span > .paginate_button:hover,
.g2g-datatable-footer .dataTables_paginate > span > .paginate_button:focus { border-color: var(--g2g-primary) !important; background: var(--g2g-primary-light) !important; color: var(--g2g-primary-dark) !important; outline: 0; }
.g2g-datatable-footer .dataTables_paginate li.paginate_button.active > a,
.g2g-datatable-footer .dataTables_paginate > span > .paginate_button.current { border-color: var(--g2g-primary) !important; background: var(--g2g-primary) !important; color: #fff !important; }
.g2g-datatable-footer .dataTables_paginate li.paginate_button.disabled > a,
.g2g-datatable-footer .dataTables_paginate > .paginate_button.disabled { border-color: #e5e9ef !important; background: #f7f8fa !important; color: #9aa4b2 !important; cursor: default !important; }
.g2g-status-indicator { display: inline-flex; min-height: 28px; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid #d8e0e8; border-radius: 4px; background: #f8fafc; color: #4b596a; font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.g2g-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #8b96a5; }
.g2g-status-indicator.is-active { border-color: #badcc7; background: #f0f8f3; color: #216b41; }
.g2g-status-indicator.is-active .g2g-status-dot { background: #2c8a52; }
.g2g-status-indicator.is-terminated { border-color: #efc2be; background: #fff2f1; color: #9e302b; }
.g2g-status-indicator.is-terminated .g2g-status-dot { background: #c23c34; }
.g2g-status-indicator.is-withdrawn { border-color: #d8dee6; background: #f4f6f8; color: #586474; }
.g2g-status-indicator.is-withdrawn .g2g-status-dot { background: #7d8998; }
.g2g-boolean-cell { text-align: center; }
.g2g-readonly-checkbox { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border: 1px solid #b8c3d0; border-radius: 4px; background: #fff; color: transparent; vertical-align: middle; }
.g2g-readonly-checkbox.is-checked { border-color: #2f7650; background: #eef7f2; color: #216b41; }
.g2g-readonly-checkbox i { font-size: 11px; }
.g2g-table-action { min-height: 34px; padding: 6px 10px; border: 1px solid #b7c9dd; border-radius: 4px; background: #fff; color: #084b91; font-size: 12px; font-weight: 700; white-space: nowrap; }
.g2g-table-action:hover, .g2g-table-action:focus { border-color: #084b91; background: #eef4fa; outline: 0; }
.g2g-user-action-cell { min-width: 142px; }
.g2g-user-actions { justify-content: flex-start; }
.g2g-user-deactivate-action { display: flex; width: 100%; min-height: 34px; align-items: center; padding: 7px 9px; border: 0; border-radius: 3px; background: #fff; color: #b42318; font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; }
.g2g-user-deactivate-action:hover, .g2g-user-deactivate-action:focus { background: #fff1f0; outline: 0; }
.g2g-recruitment-table td:nth-child(6) a { color: var(--g2g-primary); overflow-wrap: anywhere; }
.g2g-table-filter-bar { display: grid; grid-template-columns: minmax(260px, 1.7fr) repeat(2, minmax(170px, 1fr)) auto; gap: 12px; margin-bottom: 18px; }
.g2g-table-filter-bar .form-control { min-height: 40px; border-color: #cfd6df; border-radius: 5px; background: #fff; }
.g2g-table-filter-bar .form-control:focus { border-color: var(--g2g-primary); box-shadow: var(--g2g-focus-ring); }
.g2g-recruitment-filters { align-items: end; }
.g2g-recruitment-search { align-self: end; width: 100%; }
.g2g-date-filter { display: grid; gap: 6px; margin: 0; color: #526174; font-size: 12px; font-weight: 750; }
.g2g-date-filter > span { line-height: 1; }
.g2g-data-table { overflow: hidden; border: 1px solid var(--g2g-border) !important; border-radius: 6px; }
.g2g-data-table thead th { background: #f6f8fb !important; color: #54657c !important; letter-spacing: .06em; }
.g2g-data-table.table-striped tbody tr:nth-of-type(odd) { background: #fff; }
.g2g-data-table.table-striped tbody tr:nth-of-type(even) { background: #fafbfd; }
.g2g-data-table.table-hover tbody tr:hover { background: #f3f6f9; }
.g2g-datatable-footer { border-top: 1px solid var(--g2g-border); }

/* Give every jsGrid management table the same Role Management table contract. */
.g2g-user-account-workspace .jsgrid { overflow: visible; border: 1px solid var(--g2g-border); border-radius: 6px; box-shadow: none; }
.g2g-user-account-workspace .jsgrid-header-row > .jsgrid-header-cell { padding: 14px 12px; border-color: var(--g2g-border); background: #f6f8fb; color: #54657c; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.g2g-user-account-workspace .jsgrid-row > .jsgrid-cell, .g2g-user-account-workspace .jsgrid-alt-row > .jsgrid-cell { padding: 13px 14px; border-color: #edf0f4; color: var(--g2g-text); vertical-align: middle; }
.g2g-user-account-workspace .jsgrid-row > .jsgrid-cell { background: #fff; }
.g2g-user-account-workspace .jsgrid-alt-row > .jsgrid-cell { background: #fafbfd; }
.g2g-user-account-workspace .jsgrid-row:hover > .jsgrid-cell, .g2g-user-account-workspace .jsgrid-alt-row:hover > .jsgrid-cell { background: #f3f6f9; }
.g2g-user-account-workspace #GridUserAccount { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; }
.g2g-user-account-workspace #GridUserAccount > .jsgrid, .g2g-user-account-workspace .jsgrid-grid-header, .g2g-user-account-workspace .jsgrid-grid-body { width: 100% !important; max-width: 100%; }
.g2g-user-account-workspace .jsgrid-grid-body { overflow: visible !important; }
.g2g-user-account-workspace .jsgrid-header-row > .jsgrid-header-cell:last-child, .g2g-user-account-workspace .jsgrid-row > .jsgrid-cell:last-child, .g2g-user-account-workspace .jsgrid-alt-row > .jsgrid-cell:last-child { text-align: left !important; }
.g2g-user-account-workspace .jsgrid-grid-body .jsgrid-cell:last-child { position: relative; overflow: visible; }
.g2g-user-account-workspace .g2g-account-delete-action { display: flex; width: 100%; min-height: 34px; align-items: center; padding: 7px 9px; border: 0; border-radius: 3px; background: #fff; color: #b42318; font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; }
.g2g-user-account-workspace .g2g-account-delete-action:hover, .g2g-user-account-workspace .g2g-account-delete-action:focus { background: #fff1f0; outline: 0; }
.g2g-account-actions .g2g-account-delete-action { display: flex; width: 100%; min-height: 34px; align-items: center; padding: 7px 9px; border: 0; border-radius: 3px; background: #fff; color: #b42318; font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; }
.g2g-account-actions .g2g-account-delete-action:hover, .g2g-account-actions .g2g-account-delete-action:focus { background: #fff1f0; outline: 0; }
.g2g-user-account-workspace .g2g-table-action:focus { border-color: #7ca3ca; background: #fff !important; color: #084b91 !important; box-shadow: 0 0 0 3px rgba(8, 75, 145, .14); outline: 0; }
.g2g-user-account-workspace .g2g-overflow-menu summary:focus { border-color: #7ca3ca; background: #fff; color: #526174; box-shadow: 0 0 0 3px rgba(8, 75, 145, .14); }

.g2g-account-page { overflow: hidden; padding: 0; }
.g2g-account-page > .g2g-attached-body { padding: 26px; }
.g2g-account-tools { overflow: hidden; margin-bottom: 24px; border: 1px solid var(--g2g-border); border-radius: 10px; background: #fff; box-shadow: var(--g2g-shadow-card); }
.g2g-account-tools-header { padding: 18px 24px; border-bottom: 1px solid var(--g2g-border); background: #f6f8fb; }
.g2g-account-tools-header h2 { margin: 0; color: var(--g2g-text); font-size: 18px; font-weight: 750; }
.g2g-account-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.g2g-account-tool { min-width: 0; padding: 24px; border-right: 1px solid var(--g2g-border); }
.g2g-account-tool:last-child { border-right: 0; }
.g2g-account-tool h3 { margin: 0 0 18px; color: var(--g2g-text); font-size: 16px; font-weight: 750; }
.g2g-account-tool-control label { display: block; margin-bottom: 8px; color: #3f526a; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.g2g-account-tool-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.g2g-account-tool-input .form-control, .g2g-account-tool-input .g2g-button { min-height: 44px; }
.g2g-account-tool-input .form-control { border-color: #cbd5e1; border-radius: 6px; background: #fff; }
.g2g-account-tool-input .form-control:focus { border-color: #3b71a1; box-shadow: 0 0 0 3px rgba(59, 113, 161, .16); }
.g2g-account-tool-result:empty { display: none; }
.g2g-account-tool-result:not(:empty) { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--g2g-border); }

.g2g-account-editor { overflow: hidden; width: 100%; border: 1px solid var(--g2g-border); border-radius: 12px; background: #fff; box-shadow: var(--g2g-shadow-card); }
.g2g-account-editor-body { padding: 34px 40px; }
.g2g-account-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 56px; }
.g2g-account-fields > .div-wrapper, .g2g-account-fields > .form-group { width: auto !important; max-width: none; margin: 0 !important; padding: 0 !important; float: none !important; }
.g2g-account-fields .form-control, .g2g-account-fields .select2-selection { min-height: 50px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; box-shadow: none; }
.g2g-account-fields .form-control:focus { border-color: #3b71a1; background: #fff; box-shadow: 0 0 0 3px rgba(59, 113, 161, .18); }
.g2g-account-fields .form-control:disabled { border-color: #d9dfe7; background: #e9edf2; color: #677382; opacity: 1; }
.g2g-account-fields label { margin-bottom: 9px; color: #3f526a; font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.g2g-account-form-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 34px; padding-top: 24px; border-top: 1px solid #dbe4ee; }
.g2g-account-form-actions .g2g-button { min-width: 200px; min-height: 44px; }

/* Production entry: one clear toolbar, restrained tabs, and consistent data tables. */
.g2g-production-workspace > .g2g-attached-body { padding: 26px; }
.g2g-production-toolbar { display: flex; align-items: end; gap: 20px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--g2g-border); }
.g2g-production-primary-action { order: 2; flex: 0 0 auto; margin-left: auto; }
.g2g-production-filter { order: 1; display: flex; align-items: end; gap: 10px; margin: 0; }
.g2g-production-filter-field { width: min(360px, 38vw); }
.g2g-production-filter-field .form-group, .g2g-production-filter-field .div-wrapper { display: grid; width: 100% !important; max-width: none; grid-template-columns: 1fr; gap: 6px; margin: 0 !important; padding: 0 !important; float: none !important; }
.g2g-production-filter-field .input-wrapper { width: 100%; }
.g2g-production-filter-field label { display: block; margin: 0 0 6px; color: #526174; font-size: 12px; font-weight: 750; }
.g2g-production-filter-field .form-control, .g2g-production-filter-field input { width: 100%; min-height: 40px; border: 1px solid #cfd6df; border-radius: 5px; background: #fff; }
.g2g-production-filter-field .form-control:focus, .g2g-production-filter-field input:focus { border-color: var(--g2g-primary); box-shadow: var(--g2g-focus-ring); outline: 0; }
.g2g-production-results { min-width: 0; }
.g2g-production-rank-panel { border: 0; background: #fff; }
.g2g-production-tabs { overflow: visible; border-bottom: 1px solid var(--g2g-border); background: #f8fafc; }
.g2g-production-tabs .nav-tabs { display: flex; flex-wrap: wrap; min-width: 0; margin: 0; padding: 0 8px; border: 0; }
.g2g-production-tabs .nav-item { margin: 0; }
.g2g-production-tabs .nav-link { display: inline-flex; min-height: 48px; align-items: center; padding: 0 13px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #5c6b7e; font-size: 13px; font-weight: 700; }
.g2g-production-tabs .nav-link:hover, .g2g-production-tabs .nav-link:focus { border-bottom-color: #a9bfd5; color: var(--g2g-primary); }
.g2g-production-tabs .nav-link.active { border-bottom-color: var(--g2g-primary); background: #fff; color: var(--g2g-primary-dark); }
.g2g-production-rank-content { min-width: 0; padding: 0; }
.g2g-production-metric-panel { border: 0; background: #fff; }
.g2g-production-metric-tabs { background: #fff; }
.g2g-production-metric-tabs .nav-link { min-height: 44px; font-size: 12px; }
.g2g-production-metric-content { min-width: 0; padding: 18px 0 0; }
.g2g-production-table-toolbar { display: flex; justify-content: flex-start; margin-bottom: 12px; }
.g2g-production-table-toolbar .dataTables_filter { float: none !important; margin: 0; }
.g2g-production-table-toolbar .dataTables_filter label { margin: 0; }
.g2g-production-table-toolbar .g2g-search-field { display: block; width: min(300px, 38vw); }
.g2g-production-table-toolbar .g2g-search-field input { width: 100%; margin: 0 !important; }
.g2g-production-metric-content .PDT_table { overflow-x: auto; border: 1px solid var(--g2g-border); border-radius: 6px; }
.g2g-production-metric-content .PDT_table .dataTables_scroll { border: 0; }
.g2g-production-metric-content table { width: 100% !important; margin: 0 !important; }
.g2g-production-metric-content table thead th { padding: 13px 12px; border-color: var(--g2g-border); background: #f6f8fb !important; color: #54657c; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.g2g-production-metric-content table tbody td { padding: 12px; border-color: #edf0f4; vertical-align: middle; }
.g2g-production-metric-content table tbody tr:nth-child(even) td { background: #fafbfd; }
.g2g-production-metric-content table tbody tr:hover td { background: #f3f6f9; }
.g2g-production-metric-content .navAction { margin: 0; }
.g2g-production-metric-content .btnEdit { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.g2g-production-metric-content .p-MandT { display: grid; gap: 3px; min-width: 100px; margin: 0; }
.g2g-production-metric-content .p-list-Month, .g2g-production-metric-content .p-list-toDate { padding: 4px 7px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.g2g-production-metric-content .p-list-Month { background: #e8f2f7; }
.g2g-production-metric-content .p-list-toDate { background: #fff8cf; }

/* Edit production follows the same attached-header, card and footer system as other forms. */
#childDetails > .g2g-production-edit-form { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.g2g-production-edit { overflow: hidden; border-radius: 10px; background: #fff; box-shadow: var(--g2g-shadow-card); }
.g2g-production-edit-body { padding: 30px; }
.g2g-production-edit-body > .container-fluid { padding: 0; }
.g2g-production-edit-body > .container-fluid > .form-group { width: 100%; max-width: none; margin: 0; padding: 0; float: none; }
.g2g-production-edit-section { overflow: hidden; margin: 0; border: 1px solid var(--g2g-border); border-radius: 7px; box-shadow: none; }
.g2g-production-edit-section + .g2g-production-edit-section { margin-top: 20px; }
.g2g-production-edit-section > .card-header { display: flex; min-height: 52px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--g2g-border); background: #f6f8fb; color: var(--g2g-primary-dark); font-size: 14px; font-weight: 800; }
.g2g-production-rank { display: inline-flex; min-height: 28px; align-items: center; padding: 4px 10px; border-radius: 999px; background: #e4edf7; color: var(--g2g-primary-dark); font-size: 12px; letter-spacing: .03em; }
.g2g-production-edit-details > .card-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 34px; padding: 24px; }
.g2g-production-edit-details .div-wrapper { display: grid; width: 100% !important; max-width: none; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 16px; margin: 0 !important; padding: 0 !important; float: none !important; }
.g2g-production-edit-details .div-wrapper > label { margin: 0; color: #3f526a; font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.g2g-production-edit-details .input-wrapper { width: 100%; padding: 0 !important; float: none !important; }
.g2g-production-edit-details .form-control { min-height: 42px; border-color: #cbd5e1; border-radius: 5px; }
.g2g-production-edit-details .form-control:disabled { background: #e7ecf2; color: #5e6c7d; opacity: 1; }
.g2g-production-edit-metrics > .card-body { padding: 20px 16px 4px; }
.g2g-production-edit-metrics table { width: 100%; margin-bottom: 16px !important; table-layout: fixed; border-color: var(--g2g-border); }
.g2g-production-edit-metrics table thead tr:first-child th { padding: 12px 14px; border-color: #3b71a1; background: #3b71a1 !important; color: #fff !important; font-size: 12px; letter-spacing: .03em; }
.g2g-production-edit-metrics table thead tr:nth-child(2) th { padding: 10px 14px; background: #f6f8fb; color: #526174; font-size: 11px; letter-spacing: .04em; }
.g2g-production-edit-metrics table th:first-child, .g2g-production-edit-metrics table td:first-child { width: 60%; }
.g2g-production-edit-metrics table td { padding: 10px 14px; vertical-align: middle; }
.g2g-production-edit-metrics table .div-wrapper { width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; }
.g2g-production-edit-metrics table .div-wrapper > label:empty { display: none; }
.g2g-production-edit-metrics table .input-wrapper { width: 100%; padding: 0 !important; float: none !important; }
.g2g-production-edit-metrics table .form-control { width: 100%; min-height: 40px; border-color: #cbd5e1; border-radius: 5px; background: #fff; font-variant-numeric: tabular-nums; }
.g2g-production-edit-actions { margin: 0; padding: 24px 30px 30px; background: #fff; }
.g2g-production-edit-actions .btn { min-width: 200px; margin: 0; }
.g2g-production-edit-actions #btnBack { border-color: var(--g2g-primary); background: #fff; color: var(--g2g-primary); }
.g2g-production-edit-actions #btnBack:hover,
.g2g-production-edit-actions #btnBack:focus { background: var(--g2g-primary-light); color: var(--g2g-primary-dark); }
.g2g-production-edit-actions #btnSubmit { border-color: var(--g2g-primary); background: var(--g2g-primary); color: #fff; }
.g2g-production-edit-actions #btnSubmit:hover,
.g2g-production-edit-actions #btnSubmit:focus { border-color: var(--g2g-primary-dark); background: var(--g2g-primary-dark); }

/* Create production uses the same attached-header and bottom-action rhythm as other entry forms. */
#childDetails > #parentIndex.g2g-create-production { overflow: visible; padding: 0; border-radius: 10px; }
.g2g-create-production-body { position: relative; padding: 30px; border-radius: 0 0 10px 10px; background: #fff; }
.g2g-create-production-intro { margin-bottom: 22px; }
.g2g-create-production-intro p { margin: 0; color: var(--g2g-text-muted); font-size: 13px; }
.g2g-create-production .divErrorMsg:empty { display: none; }
.g2g-create-production-month { position: relative; z-index: 20; clear: both; width: min(680px, 100%); margin: 0 auto 24px; }
.g2g-create-production-month .div-wrapper { display: grid; float: none !important; width: 100% !important; max-width: none; grid-template-columns: 1fr; gap: 7px; margin: 0 !important; padding: 0 !important; }
.g2g-create-production-month .input-wrapper { float: none !important; width: 100%; padding: 0 !important; }
.g2g-create-production-month label { margin: 0; color: #3f526a; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.g2g-create-production-month input { min-height: 44px; border-color: #cbd5e1; border-radius: 5px; background: #fff; }
.g2g-create-production #divProductionForm:empty { min-height: 230px; }
.g2g-create-production #divProductionForm > .card { width: 100%; max-width: none; margin: 0 0 10px; padding: 0; border: 1px solid #dbe3ec; border-radius: 6px; box-shadow: none; }
.g2g-create-production #divProductionForm > .card > .card-header { min-height: 54px; padding: 0 18px; border-bottom: 0; background: #f6f8fb; }
.g2g-create-production #divProductionForm > .card > .card-header .btn-link { display: flex; width: 100%; min-height: 54px; align-items: center; padding: 0; color: var(--g2g-primary-dark); font-size: 14px; font-weight: 750; text-align: left; text-decoration: none; }
.g2g-create-production #divProductionForm > .card > .collapse.show { border-top: 1px solid var(--g2g-border); }
.g2g-create-production #divProductionForm .card-body { padding: 18px; }
.g2g-create-production #divProductionForm .form-group.col-md-12, .g2g-create-production #divProductionForm .card.col-md-12 { width: 100%; max-width: none; margin-right: 0; margin-left: 0; padding-right: 0; padding-left: 0; float: none; }
.g2g-create-production #divProductionForm .divContainerPanel { overflow: hidden; margin-top: 12px; border: 1px solid var(--g2g-border); border-radius: 6px; box-shadow: none; }
.g2g-create-production #divProductionForm .divContainerPanel > .card-header { min-height: 48px; padding: 7px 12px; background: #fff; }
.g2g-create-production #divProductionForm .divProductionData > .card { border: 0; box-shadow: none; }
.g2g-create-production #divProductionForm .divProductionData > .card > .card-header:empty { display: none; }
.g2g-create-production #divProductionForm table { margin-bottom: 16px !important; border-color: var(--g2g-border); }
.g2g-create-production #divProductionForm table thead tr:first-child th { border-color: #3b71a1; background: #3b71a1 !important; color: #fff !important; }
.g2g-create-production #divProductionForm table thead tr:nth-child(2) th { background: #f6f8fb; color: #526174; font-size: 11px; letter-spacing: .04em; }
.g2g-create-production #divProductionForm table td, .g2g-create-production #divProductionForm table th { padding: 10px 12px; vertical-align: middle; }
.g2g-create-production #divProductionForm table .form-control { min-height: 38px; border-color: #cbd5e1; background: #fff; }
.g2g-production-create-actions { display: flex; clear: both; width: 100%; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--g2g-border); }
.g2g-production-create-actions .g2g-button { min-width: 200px; }
.g2g-production-create-actions #productionSaveAction { display: flex; }
.g2g-production-create-actions #productionSaveAction:empty { display: none; }

.g2g-role-workspace .jsgrid-pager-container,
.g2g-code-type-workspace .jsgrid-pager-container,
.g2g-user-account-workspace .jsgrid-pager-container { display: block !important; }
.g2g-role-workspace .jsgrid-pager,
.g2g-code-type-workspace .jsgrid-pager,
.g2g-user-account-workspace .jsgrid-pager { display: flex; min-height: 62px; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px !important; border-top: 1px solid var(--g2g-border); background: #fff; color: var(--g2g-text-muted); font-size: 13px; }
.g2g-role-workspace .jsgrid-pager::before,
.g2g-code-type-workspace .jsgrid-pager::before,
.g2g-user-account-workspace .jsgrid-pager::before { content: attr(data-entry-summary); margin-right: auto; color: var(--g2g-text-muted); font-weight: 600; }
.g2g-user-account-workspace .jsgrid-pager-page a, .g2g-user-account-workspace .jsgrid-pager-nav-button a { display: inline-flex; min-width: 32px; min-height: 32px; align-items: center; justify-content: center; margin: 0 2px; border: 1px solid var(--g2g-border); border-radius: 4px; color: var(--g2g-primary); text-decoration: none; }
.g2g-user-account-workspace .jsgrid-pager-current-page { display: inline-flex; min-width: 32px; min-height: 32px; align-items: center; justify-content: center; margin: 0 2px; border-radius: 4px; background: var(--g2g-primary); color: #fff; font-style: normal; }
.g2g-role-workspace .jsgrid-pager-page,
.g2g-role-workspace .jsgrid-pager-nav-button,
.g2g-code-type-workspace .jsgrid-pager-page,
.g2g-code-type-workspace .jsgrid-pager-nav-button { display: inline-flex; align-items: center; margin: 0; }
.g2g-role-workspace .jsgrid-pager-page a,
.g2g-role-workspace .jsgrid-pager-nav-button a,
.g2g-code-type-workspace .jsgrid-pager-page a,
.g2g-code-type-workspace .jsgrid-pager-nav-button a { min-width: 34px; min-height: 34px; margin: 0; padding: 7px 10px; }
.g2g-role-workspace .jsgrid-pager-current-page,
.g2g-code-type-workspace .jsgrid-pager-current-page { min-width: 34px; min-height: 34px; margin: 0; }
.g2g-role-workspace .jsgrid-header-row > .jsgrid-header-cell:last-child, .g2g-code-type-workspace .jsgrid-header-row > .jsgrid-header-cell:last-child { text-align: left !important; }
.g2g-role-workspace .jsgrid-row > .jsgrid-cell:last-child, .g2g-role-workspace .jsgrid-alt-row > .jsgrid-cell:last-child, .g2g-code-type-workspace .jsgrid-row > .jsgrid-cell:last-child, .g2g-code-type-workspace .jsgrid-alt-row > .jsgrid-cell:last-child, .g2g-code-type-workspace .jsgrid-insert-row > .jsgrid-cell:last-child, .g2g-code-type-workspace .jsgrid-edit-row > .jsgrid-cell:last-child { text-align: left !important; }
.g2g-role-workspace .jsgrid-grid-body, .g2g-code-type-workspace .jsgrid-grid-body { overflow: visible !important; }
.g2g-code-type-workspace .g2g-grid { overflow: visible; }
.g2g-role-workspace .jsgrid-grid-body .jsgrid-cell:last-child, .g2g-code-type-workspace .jsgrid-grid-body .jsgrid-cell:last-child { position: relative; overflow: visible; }
.g2g-row-actions { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.g2g-role-workspace .role-permission-button { min-height: 34px; padding: 0 10px; border: 1px solid #b7c9dd; border-radius: 4px; background: #fff; color: #084b91; font-size: 12px; font-weight: 700; }
.g2g-role-workspace .role-permission-button:hover, .g2g-role-workspace .role-permission-button:focus { border-color: #084b91; background: #eef4fa; outline: 0; }
.g2g-overflow-menu { position: relative; }
.g2g-overflow-menu[open] { z-index: 40; }
.g2g-overflow-menu summary { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid #cfd6df; border-radius: 4px; background: #fff; color: #526174; cursor: pointer; list-style: none; }
.g2g-overflow-menu summary::-webkit-details-marker { display: none; }
.g2g-overflow-menu summary:hover, .g2g-overflow-menu summary:focus { border-color: #8795a6; background: #f5f7fa; color: var(--g2g-text); outline: 0; }
.g2g-overflow-panel { position: absolute; z-index: 30; top: calc(100% + 5px); right: 0; min-width: 150px; padding: 5px; border: 1px solid #d8dee6; border-radius: 5px; background: #fff; box-shadow: 0 8px 20px rgba(31, 41, 55, .14); }
.g2g-data-table tbody tr:nth-last-child(-n+3) .g2g-overflow-panel { top: auto; bottom: calc(100% + 5px); }
.g2g-user-action-cell, .g2g-data-table td:last-child { overflow: visible; }
.g2g-role-workspace .jsgrid-grid-body tr:nth-last-child(-n+3) .g2g-overflow-panel { top: auto; bottom: calc(100% + 5px); }
.g2g-role-workspace .role-delete-button { display: flex; width: 100%; min-height: 34px; align-items: center; gap: 9px; padding: 7px 9px; border: 0; border-radius: 3px; background: #fff; color: #b42318; font-size: 12px; font-weight: 700; text-align: left; }
.g2g-role-workspace .role-delete-button:hover, .g2g-role-workspace .role-delete-button:focus { background: #fff1f0; outline: 0; }
.g2g-app .g2g-code-type-workspace .jsgrid .g2g-code-action-button { width: auto; min-width: 58px; height: 34px; min-height: 34px; padding: 0 10px; border: 1px solid #b7c9dd; border-radius: 4px; background: #fff !important; background-image: none !important; color: #084b91; font-size: 12px; font-weight: 700; line-height: 32px; text-indent: 0; white-space: nowrap; }
.g2g-app .g2g-code-type-workspace .jsgrid .g2g-code-action-button:hover, .g2g-app .g2g-code-type-workspace .jsgrid .g2g-code-action-button:focus { border-color: #084b91; background: #eef4fa !important; color: #084b91; opacity: 1; outline: 0; }
.g2g-app .g2g-code-type-workspace .jsgrid .g2g-code-add-button, .g2g-app .g2g-code-type-workspace .jsgrid .g2g-code-save-button { border-color: #0b6b4f; background: #0b6b4f !important; color: #fff; }
.g2g-app .g2g-code-type-workspace .jsgrid .g2g-code-add-button:hover, .g2g-app .g2g-code-type-workspace .jsgrid .g2g-code-add-button:focus, .g2g-app .g2g-code-type-workspace .jsgrid .g2g-code-save-button:hover, .g2g-app .g2g-code-type-workspace .jsgrid .g2g-code-save-button:focus { border-color: #084f3b; background: #084f3b !important; color: #fff; }
.g2g-app .g2g-code-type-workspace .jsgrid .g2g-code-cancel-button { border-color: #cfd6df; color: #526174; }
.g2g-app .g2g-code-type-workspace .jsgrid .g2g-code-delete-button { display: flex; width: 100%; height: auto; min-height: 34px; align-items: center; padding: 7px 9px; border: 0; border-radius: 3px; background: #fff; background-image: none !important; color: #b42318; font-size: 12px; font-weight: 700; line-height: 1.3; text-align: left; text-indent: 0; white-space: nowrap; }
.g2g-app .g2g-code-type-workspace .jsgrid .g2g-code-delete-button:hover, .g2g-app .g2g-code-type-workspace .jsgrid .g2g-code-delete-button:focus { background: #fff1f0; opacity: 1; outline: 0; }
.g2g-code-type-workspace .jsgrid-grid-body tr:nth-last-child(-n+3) .g2g-overflow-panel { top: auto; bottom: calc(100% + 5px); }
.g2g-role-editor { width: 100%; max-width: none; min-height: calc(100vh - var(--g2g-header-height) - 100px); padding: 0 !important; border: 1px solid var(--g2g-border) !important; border-radius: 10px !important; background: #fff !important; box-shadow: var(--g2g-shadow-card) !important; }
.g2g-role-editor-content { padding: 28px; }
.g2g-role-editor .g2g-form-title { margin: 0; font-size: 22px; }
.g2g-role-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.g2g-role-editor .g2g-role-fields > .div-wrapper { width: 100%; max-width: none; margin: 0; padding-right: 0; padding-left: 0; }
.g2g-role-editor .form-control { width: 100%; min-height: 44px; border-color: #c8d1dc; border-radius: 5px; background: #fff; color: var(--g2g-text); }
.g2g-role-editor .form-control:focus { border-color: var(--g2g-primary); background: #fff; box-shadow: var(--g2g-focus-ring); }
.g2g-role-editor .form-control:disabled { border-color: #d9dfe7; background: #e9edf2; color: #677382; cursor: not-allowed; opacity: 1; }
.g2g-role-form-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--g2g-border); }
.g2g-role-form-actions .btn { min-width: 200px; min-height: 42px; margin: 0; }
.g2g-role-form-actions .btn-outline-primary { border-color: var(--g2g-primary); background: #fff; color: var(--g2g-primary); }
.g2g-role-form-actions .btn-outline-primary:hover, .g2g-role-form-actions .btn-outline-primary:focus { background: var(--g2g-primary-light); color: var(--g2g-primary-dark); }
.g2g-role-form-actions .btn-primary { border-color: var(--g2g-primary); background: var(--g2g-primary); color: #fff; }
.g2g-role-form-actions .btn-primary:hover, .g2g-role-form-actions .btn-primary:focus { background: var(--g2g-primary-dark); color: #fff; }
body.g2g-sidebar-collapsed .g2g-nav-link { justify-content: center; padding: 10px; }
body.g2g-sidebar-collapsed .g2g-nav-link > i:first-child { width: auto; }

/* Keep Select2 text and its dropdown affordance centred in every single-select control. */
.select2-container--default .select2-selection--single { display: flex; align-items: center; box-sizing: border-box; height: 100% !important; min-height: 38px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { display: flex; align-items: center; height: 100% !important; line-height: normal !important; padding-right: 34px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 0 !important; display: grid !important; height: 100% !important; align-items: center; justify-items: center; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { position: static !important; margin: 0 !important; }

/* Tables own their container width; Bootstrap column gutters must not offset headers. */
.g2g-production-metric-content .table,
.g2g-production-rank-content .table { width: 100%; margin-right: 0; margin-left: 0; }

/* Long descriptions are concise in the grid and remain fully editable in jsGrid's text input. */
.g2g-code-description { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 991px) {
    .g2g-sidebar.main-sidebar { width: min(280px, calc(100vw - 48px)); transform: translateX(-105%); }
    .g2g-page-frame { margin-left: 0; }
    .g2g-header.main-header { padding: 0 16px; }
    .g2g-header-title { font-size: 13px; }
    body.g2g-sidebar-open { overflow: hidden; }
    body.g2g-sidebar-open .g2g-sidebar.main-sidebar { transform: translateX(0); }
    .g2g-sidebar-backdrop { position: fixed; z-index: 1030; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(15, 23, 42, .48); }
    body.g2g-sidebar-open .g2g-sidebar-backdrop { display: block; }
    .g2g-account-tools-grid { grid-template-columns: 1fr; }
    .g2g-account-tool { border-right: 0; border-bottom: 1px solid var(--g2g-border); }
    .g2g-account-tool:last-child { border-bottom: 0; }
}

@media (max-width: 767px) {
    .g2g-main-body { padding: 16px 12px; }
    .g2g-footer.main-footer { padding: 12px; }
    .g2g-header-title > span:last-child, .g2g-profile-copy, .g2g-profile-menu summary > i { display: none; }
    .g2g-page-heading { flex-direction: column; gap: 14px; }
    .g2g-page-heading .g2g-button { width: 100%; }
    .g2g-tabs { padding: 0 12px; }
    .g2g-tab { padding: 0 10px; font-size: 13px; }
    .g2g-table-toolbar, .g2g-grid { padding-right: 12px; padding-left: 12px; }
    .g2g-auth-shell { display: block; }
    .g2g-auth-aside { min-height: 190px; padding: 28px 24px; }
    .g2g-auth-logo-link { width: min(58%, 240px); }
    .g2g-auth-main { display: block; padding: 38px 24px; }
    .g2g-dashboard-grid { grid-template-columns: 1fr; }
    .g2g-section-heading { align-items: stretch; flex-direction: column; }
    .g2g-management-toolbar { align-items: stretch; flex-direction: column; }
    .g2g-management-controls { align-items: stretch; flex-direction: column; }
    .g2g-search-field { width: 100%; }
    .g2g-management-controls .g2g-button { width: 100%; }
    .g2g-attached-header { min-height: 64px; padding: 17px 20px; }
    .g2g-page .g2g-attached-header h1, #childDetails .g2g-attached-header .g2g-form-title, .g2g-attached-header h2 { font-size: 19px; }
    .g2g-attached-body { padding: 16px; }
    .g2g-role-workspace, .g2g-code-type-workspace { min-height: 0; }
    .g2g-role-editor { min-height: 0; }
    .g2g-management-body { padding: 16px; }
    .g2g-datatable-toolbar { justify-content: stretch; }
    .g2g-datatable-toolbar .dataTables_filter, .g2g-datatable-toolbar .dataTables_filter label, .g2g-datatable-toolbar .dataTables_filter input { width: 100%; min-width: 0; }
    .g2g-datatable-footer { align-items: stretch; flex-direction: column; }
    .g2g-table-filter-bar { grid-template-columns: 1fr; }
    .g2g-table-filter-bar .g2g-button { width: 100%; }
    .g2g-role-editor-content { padding: 20px; }
    .g2g-role-fields { grid-template-columns: 1fr; gap: 18px; }
    .g2g-role-form-actions .btn { flex: 1; min-width: 0; }
    .g2g-account-page > .g2g-attached-body, .g2g-account-editor-body { padding: 20px; }
    .g2g-account-fields, .g2g-account-tool-input { grid-template-columns: 1fr; }
    .g2g-account-form-actions .g2g-button { flex: 1; min-width: 0; }
    .g2g-production-workspace > .g2g-attached-body { padding: 16px; }
    .g2g-production-toolbar { align-items: stretch; flex-direction: column; }
    .g2g-production-primary-action .g2g-button { width: 100%; }
    .g2g-production-filter { align-items: stretch; flex-direction: column; margin-left: 0; }
    .g2g-production-filter-field, .g2g-production-table-toolbar .g2g-search-field { width: 100%; }
    .g2g-production-rank-content, .g2g-production-metric-content { padding: 10px; }
    .g2g-production-edit-body { padding: 20px; }
    .g2g-production-edit-details > .card-body { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
    .g2g-production-edit-details .div-wrapper { grid-template-columns: 1fr; gap: 7px; }
    .g2g-production-edit-metrics { overflow-x: auto; }
    .g2g-production-edit-metrics table { min-width: 680px; }
    .g2g-production-edit-actions { align-items: stretch; padding: 20px; }
    .g2g-production-edit-actions .btn { width: 100%; min-width: 0; }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .g2g-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g2g-stat-card:last-child { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
    .g2g-app *, .g2g-app *::before, .g2g-app *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
