:root {
    --gp-accent: #009249;
    --gp-accent-dark: #007a3d;
    --gp-accent-2: #2d7d46;
    --gp-accent-soft: #e8f5ec;
    --gp-accent-border: #c6e2cf;
    --gp-navy: #1f2937;
    --gp-bg: #f5f7f9;
    --gp-surface: #ffffff;
    --gp-text: #374151;
    --gp-muted: #6b7785;
    --gp-label: #4a5568;
    --gp-border: #e4e9f0;
    --gp-danger: #d8503f;
    --gp-warning: #d97706;
    --gp-success: #15803d;
    --gp-info: #0369a1;
    --gp-radius: 8px;
    --gp-radius-sm: 6px;
    --gp-control-height: 2.5rem;
    --gp-control-height-xs: 2.15rem;
    --gp-control-height-lg: 3rem;
}

/* -------------------------------------------------------------------------
   Shell — Beagle + NEA green header (appointment-forms / HRIS)
   ------------------------------------------------------------------------- */

.be-color-header-custom .be-top-header {
    background-color: var(--gp-accent) !important;
    border-bottom-color: var(--gp-accent) !important;
}

@media (max-width: 767.98px) {
    .be-color-header-custom .be-top-header .be-right-navbar {
        background-color: var(--gp-accent) !important;
        border-bottom-color: var(--gp-accent) !important;
    }
}

.be-top-header .be-navbar-header .navbar-brand,
.be-color-header .be-top-header .be-navbar-header .navbar-brand {
    background-image: none !important;
    text-indent: 0 !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 8px !important;
    color: #fff !important;
}

.gp-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

.gp-brand:hover {
    color: #fff;
    text-decoration: none;
}

.splash-container .card-header .splash-title {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gp-accent);
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.gp-brand__name {
    font-size: 15pt;
    font-weight: 500;
    color: #fff;
    vertical-align: middle;
    line-height: 1;
}

.be-collapsible-sidebar-collapsed .be-top-header .be-navbar-header {
    width: 60px !important;
}

.be-collapsible-sidebar-collapsed .be-top-header .be-navbar-header .navbar-brand {
    width: 60px !important;
    padding: 0 !important;
    background-position: center !important;
}

.be-collapsible-sidebar-collapsed .gp-brand__name {
    display: none;
}

.be-color-header .be-top-header .page-title,
.be-color-header-custom .be-top-header .page-title {
    color: #fff !important;
}

.be-color-header .be-top-header .be-right-navbar .navbar-nav > li > a,
.be-color-header-custom .be-top-header .be-user-nav .user-name,
.be-color-header .be-top-header .be-user-nav > .nav-item > a .user-name {
    color: #fff !important;
}

.be-user-nav > li.dropdown .dropdown-menu .user-info {
    background-color: var(--gp-accent) !important;
}

.gp-top-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
}

.gp-icon-btn {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    opacity: 0.92;
}

.gp-icon-btn:hover {
    color: #fff;
    text-decoration: none;
    opacity: 1;
}

.be-toggle-left-sidebar .icon {
    color: #fff !important;
    font-size: 24px;
}

.be-left-sidebar .sidebar-elements > li.active > a,
.be-left-sidebar .sidebar-elements > li ul li.active > a {
    color: var(--gp-accent) !important;
}

.be-left-sidebar .sidebar-elements > li.active > a > span {
    color: var(--gp-accent) !important;
}

.be-left-sidebar .sidebar-elements > li.active > a .icon,
.be-left-sidebar .sidebar-elements > li.open > a .icon {
    color: var(--gp-accent) !important;
}

/* Beagle uses "Material Icons" ligatures; this app loads Material Design Iconic Font. */
.be-left-sidebar .sidebar-elements li.parent > a:before,
.be-left-sidebar .left-sidebar-toggle:before,
.be-top-header .be-toggle-top-header-menu:before,
.be-scroll-top:before,
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after,
.custom-radio .custom-control-input:checked ~ .custom-control-label::after,
.select2-container--default .select2-selection--single .select2-selection__arrow b:after,
.gritter-item-wrapper .gritter-item .gritter-content.gritter-with-image .gritter-close:after,
.gritter-item-wrapper .gritter-item .gritter-content.gritter-without-image .gritter-close:after,
.dd-list .dd-item > button,
.dd-list .dd3-item > button,
.widget-calendar .ui-datepicker .ui-datepicker-header .ui-datepicker-prev span:after,
.widget-calendar .ui-datepicker .ui-datepicker-header .ui-datepicker-next span:after {
    font-family: "Material-Design-Iconic-Font" !important;
}

/* -------------------------------------------------------------------------
   Page head + content
   ------------------------------------------------------------------------- */

.be-content > .page-head {
    padding: 20px 25px 0;
    margin: 0;
    background: transparent;
}

.page-head-title,
.af-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.35rem;
}

.af-page-subtitle {
    font-size: 0.9rem;
    color: var(--gp-muted);
    margin: 0 0 1.25rem;
}

.be-content .main-content.container-fluid {
    padding-top: 15px;
}

/* -------------------------------------------------------------------------
   Primary / RMS green
   ------------------------------------------------------------------------- */

.bg-primary {
    background-color: var(--gp-accent) !important;
}

.btn-primary,
.btn-primary:focus,
.btn-primary.focus {
    background-color: var(--gp-accent) !important;
    border-color: var(--gp-accent) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary.hover {
    background-color: var(--gp-accent-dark) !important;
    border-color: var(--gp-accent-dark) !important;
    color: #fff !important;
}

.btn-rms-primary {
    background-color: var(--gp-accent) !important;
    border-color: var(--gp-accent) !important;
    color: #fff !important;
}

.card-border-color-primary {
    border-top-color: var(--gp-accent) !important;
}

.badge-primary {
    background-color: var(--gp-accent);
    text-transform: uppercase;
}

.nav-tabs .nav-link.active,
.nav-tabs-classic .nav-link.active {
    color: var(--gp-accent-2);
}

.pagination .page-item.active .page-link {
    background-color: var(--gp-accent);
    border-color: var(--gp-accent);
}

.list-group-item.active {
    background-color: var(--gp-accent);
    border-color: var(--gp-accent);
}

a {
    color: var(--gp-accent-2);
}

a:hover {
    color: var(--gp-accent-dark);
}

/* -------------------------------------------------------------------------
   Cards, forms, tables — appointment-forms look
   ------------------------------------------------------------------------- */

.card {
    border-color: var(--gp-border);
    border-radius: var(--gp-radius);
}

.be-content .card:not(.card-table):not(.widget):not(.card-border-color) {
    border-top: 4px solid var(--gp-accent-2);
    overflow: hidden;
}

.card-header {
    font-weight: 700;
    color: var(--gp-accent-2);
}

.card-table .card-header {
    color: inherit;
    font-weight: 500;
    border-bottom: 1px solid var(--gp-border);
}

.card.card-table {
    padding: 1rem 1.35rem 1.2rem;
}

.card-table > .card-header {
    font-size: 0;
    line-height: 0;
}

.card-table > .card-header .tools,
.card-table > .card-header .btn,
.card-table > .card-header a,
.card-table > .card-header button,
.card-table > .card-header .row,
.card-table > .card-header select,
.card-table > .card-header input,
.card-table > .card-header label,
.card-table > .card-header .dropdown,
.card-table > .card-header span,
.card-table > .card-header .gp-list-toolbar {
    font-size: 13px;
    line-height: 1.5;
}

.card-table > .card-header .tools {
    position: static;
    float: none;
    margin-left: auto;
}

.card-table > .card-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.35rem 0.15rem 0.85rem;
    margin: 0;
}

.card-table > .card-body {
    padding: 0.35rem 0.15rem 0.4rem;
}

.card-table .card:not(.card-table) > .card-body {
    padding: 1.05rem 1.15rem 1.1rem;
}

.card-table tr th:first-child,
.card-table tr td:first-child {
    padding-left: 8px;
}

.card-table tr th:last-child,
.card-table tr td:last-child {
    padding-right: 8px;
}

.card-table > .card-header .gp-list-toolbar {
    width: 100%;
    font-size: 13px;
    line-height: 1.5;
    margin-left: 0;
    margin-right: 0;
}

.card-table > .card-header .gp-list-toolbar > [class*="col"] {
    display: flex;
    align-items: center;
    min-height: var(--gp-control-height-xs);
}

.card-table > .card-header .gp-list-toolbar .gp-filter-label,
.card-table > .card-header .gp-list-toolbar .col-form-label {
    font-size: 10pt;
    font-weight: 500;
    color: var(--gp-label);
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 0.5rem;
    height: var(--gp-control-height-xs);
    line-height: var(--gp-control-height-xs);
    white-space: nowrap;
}

.card-table > .card-header .gp-list-toolbar .form-control,
.card-table > .card-header .gp-list-toolbar select.form-control,
.card-table > .card-header .gp-list-toolbar .form-control-xs {
    width: 100%;
}

.card-table > .card-header .gp-list-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.25rem;
    white-space: nowrap;
    margin-left: auto;
}

.card-table > .card-header .btn,
.card-table > .card-header .gp-list-toolbar .btn {
    height: var(--gp-control-height-xs);
    min-height: var(--gp-control-height-xs);
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Icon font: Beagle aliases MD Iconic as "Material Icons", which collides with
   Google's ligature font when the webfont 404s or a local copy is installed. */
@font-face {
    font-family: 'Material-Design-Iconic-Font';
    src: url('../beagle-assets/lib/material-design-icons/fonts/Material-Design-Iconic-Font.woff2?v=2.2.0') format('woff2'),
         url('../beagle-assets/lib/material-design-icons/fonts/Material-Design-Iconic-Font.woff?v=2.2.0') format('woff'),
         url('../beagle-assets/lib/material-design-icons/fonts/Material-Design-Iconic-Font.ttf?v=2.2.0') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.mdi,
.icon.mdi,
i.mdi,
span.mdi,
.mdi:before,
[class^="mdi-"]:before,
[class*=" mdi-"]:before {
    font-family: 'Material-Design-Iconic-Font' !important;
    font-style: normal;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input.form-control:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
select.form-control,
select.form-control:not([size]):not([multiple]),
select.form-control-sm:not([size]):not([multiple]),
.custom-select,
.input-group > .form-control,
.input-group > .custom-select {
    border-color: #d0d7de;
    border-radius: var(--gp-radius-sm);
    height: var(--gp-control-height);
    min-height: var(--gp-control-height);
    max-height: var(--gp-control-height);
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gp-text);
    box-sizing: border-box;
}

.input-group > .input-group-append > .btn,
.input-group > .input-group-prepend > .btn {
    height: var(--gp-control-height);
    min-height: var(--gp-control-height);
    display: inline-flex;
    align-items: center;
}

.form-control::placeholder {
    color: #8b95a1;
    opacity: 1;
}

.form-control-xs,
select.form-control-xs,
select.form-control-xs:not([size]):not([multiple]),
.form-control.form-control-xs {
    height: var(--gp-control-height-xs);
    min-height: var(--gp-control-height-xs);
    max-height: var(--gp-control-height-xs);
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    line-height: 1.4;
}

.form-control-lg,
select.form-control-lg:not([size]):not([multiple]),
.form-control.form-control-lg {
    height: var(--gp-control-height-lg);
    min-height: var(--gp-control-height-lg);
    max-height: var(--gp-control-height-lg);
    font-size: 1rem;
    padding: 0.45rem 0.9rem;
}

textarea.form-control,
textarea.form-control.form-control-xs,
textarea.form-control.form-control-lg {
    height: auto;
    min-height: 5rem;
    max-height: none;
    padding: 0.5rem 0.75rem;
    line-height: 1.5;
    border-color: #d0d7de;
    border-radius: var(--gp-radius-sm);
    color: var(--gp-text);
}

div.dataTables_wrapper div.dataTables_length label select.form-control-sm,
div.dataTables_wrapper div.dataTables_length label select.form-control,
div.dataTables_wrapper div.dataTables_length select,
div.dataTables_wrapper div.dataTables_filter input {
    height: var(--gp-control-height-xs);
    min-height: var(--gp-control-height-xs);
    max-height: var(--gp-control-height-xs);
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    line-height: 1.4;
    box-sizing: border-box;
}

.form-control:focus,
select.form-control:focus {
    border-color: var(--gp-accent-2);
    box-shadow: 0 0 0 0.15rem rgba(45, 125, 70, 0.15);
    background-color: #fff;
    color: var(--gp-text);
}

label,
.af-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gp-label);
}

.af-label .required,
label .required {
    color: var(--gp-danger);
}

.table thead th {
    font-size: 12px;
    font-weight: 600;
    color: #5a5a5a;
    vertical-align: middle;
}

.table tbody td {
    vertical-align: middle;
}

/* -------------------------------------------------------------------------
   Line items (PPMP, PR, market scoping, APP)
   ------------------------------------------------------------------------- */

.gp-line-items {
    margin-top: 1.25rem;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    background: var(--gp-surface);
    overflow: hidden;
}

.gp-line-items__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: var(--gp-accent-soft);
    border-bottom: 1px solid var(--gp-accent-border);
}

.gp-line-items__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gp-accent-2);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.gp-line-items__title .mdi {
    font-size: 1.15rem;
    line-height: 1;
}

.gp-line-items__count {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--gp-accent-2);
    background: #fff;
    border: 1px solid var(--gp-accent-border);
    border-radius: 999px;
    padding: 0.18rem 0.65rem;
    white-space: nowrap;
}

.gp-line-items .table {
    margin-bottom: 0;
    width: 100%;
}

.gp-line-items .table th,
.gp-line-items .table td {
    vertical-align: middle;
    border-top: 0;
}

.gp-line-items .table thead th {
    background: #f7faf8;
    border-bottom: 1px solid var(--gp-border);
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.65rem 1rem;
    white-space: nowrap;
}

.gp-line-items .table tbody td,
.gp-line-items .table tfoot td {
    padding: 0.8rem 1rem;
    color: var(--gp-text);
    font-size: 0.9rem;
}

.gp-line-items .table tbody td {
    border-bottom: 1px solid #eef2f6;
}

.gp-line-items .table tbody tr:last-child td {
    border-bottom: 0;
}

.gp-line-items .table tbody tr:hover {
    background: #f7fbf8;
}

.gp-line-items .is-num {
    width: 3rem;
    color: var(--gp-muted);
    font-variant-numeric: tabular-nums;
}

.gp-line-items .is-qty,
.gp-line-items .is-money {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gp-line-items .is-uom {
    width: 5.5rem;
}

.gp-line-items .is-desc {
    font-weight: 500;
    color: var(--gp-navy);
}

.gp-line-items .gp-uom {
    display: inline-flex;
    align-items: center;
    background: #eef2f6;
    color: #475569;
    border-radius: 4px;
    padding: 0.12rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.gp-line-items .is-total {
    font-weight: 700;
    color: var(--gp-navy);
}

.gp-line-items .table tfoot td {
    background: #f8fafc;
    border-top: 1px solid var(--gp-border);
    font-weight: 600;
    color: var(--gp-label);
}

.gp-line-items tfoot .is-label {
    text-align: right;
}

.gp-line-items tfoot .is-money {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gp-accent-2);
}

.gp-line-items__empty {
    text-align: center !important;
    color: var(--gp-muted);
    padding: 1.75rem 1rem !important;
    font-weight: 500;
}

.gp-line-items + .gp-line-items {
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .gp-line-items .table thead th,
    .gp-line-items .table tbody td,
    .gp-line-items .table tfoot td {
        padding: 0.65rem 0.7rem;
    }
}

.dataTables_wrapper {
    padding: 12px 4px 8px !important;
    border: none !important;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.dataTables_wrapper .tools {
    position: static;
}

.dataTables_wrapper .tools .dropdown-menu {
    z-index: 1050;
}

.dataTables_wrapper table.dataTable {
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

.dataTables_wrapper table.dataTable th,
.dataTables_wrapper table.dataTable td {
    vertical-align: middle;
    border: none !important;
}

.dataTables_wrapper table.dataTable thead th {
    border: none !important;
}

.dataTables_wrapper table.dataTable th:first-child,
.dataTables_wrapper table.dataTable td:first-child {
    white-space: nowrap;
}

.btn {
    border-radius: var(--gp-radius-sm);
    font-weight: 600;
}

.af-btn,
.btn-space {
    margin-right: 5px;
}

.af-btn {
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid transparent;
    line-height: 1.4;
}

.af-btn-cancel,
.af-btn-prev {
    background: #fff;
    border-color: #d0d7de;
    color: #4a5568;
}

.af-btn-cancel:hover,
.af-btn-prev:hover {
    background: #f3f5f7;
    color: #4a5568;
    text-decoration: none;
}

.af-btn-draft {
    background: #fff;
    border-color: var(--gp-accent-2);
    color: var(--gp-accent-2);
}

.af-btn-draft:hover {
    background: var(--gp-accent-soft);
}

.af-btn-next,
.af-btn-submit {
    background: var(--gp-accent-2);
    border-color: var(--gp-accent-2);
    color: #fff;
}

.af-btn-next:hover,
.af-btn-submit:hover {
    background: #256b3b;
    border-color: #256b3b;
    color: #fff;
}

.card-table > .card-header .btn-primary.btn-sm {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
    font-size: 0.85rem;
}

.modal-header.colored-header-success {
    background-color: var(--gp-accent) !important;
    color: #fff !important;
    border-bottom-color: var(--gp-accent-dark) !important;
}

/* -------------------------------------------------------------------------
   Form card (appointment-forms create)
   ------------------------------------------------------------------------- */

.af-form-card,
.gp-form-card {
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    overflow: hidden;
    border-top: 4px solid var(--gp-accent-2);
}

.af-section {
    padding: 1.35rem 1.5rem 0.5rem;
}

.af-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.af-section-desc {
    font-size: 0.84rem;
    color: var(--gp-muted);
    margin: 0;
}

.af-field-error {
    color: var(--gp-danger);
    font-size: 0.82rem;
    margin-top: 0.25rem;
    display: block;
}

.af-section-title,
.gp-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gp-accent-2);
    margin: 0 0 0.35rem;
}

.af-note,
.gp-hint {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--gp-accent-soft);
    border: 1px solid var(--gp-accent-border);
    color: #245f35;
    border-radius: var(--gp-radius-sm);
    padding: 0.75rem 0.9rem;
    font-size: 0.86rem;
    margin-bottom: 1.25rem;
}

.gp-hint[hidden] {
    display: none !important;
}

.af-note > .mdi,
.gp-hint__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    color: var(--gp-accent-2);
}

.gp-hint__icon .mdi {
    display: block;
    line-height: 1;
}

.gp-hint__text {
    margin: 0;
    flex: 1;
    line-height: 1.45;
}

.gp-hint__text strong {
    margin-right: 4px;
}

.gp-hint__close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--gp-muted);
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 6px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gp-hint__close:hover {
    background: var(--gp-accent-soft);
    color: var(--gp-navy);
}

.gp-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--gp-muted);
}

.gp-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.gp-inline-form {
    background: #f8fafc;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    padding: 16px;
    margin-bottom: 18px;
}

.gp-inline-form__head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.gp-inline-form__head span {
    font-size: 12.5px;
    color: var(--gp-muted);
}

.af-footer,
.gp-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--gp-border);
}

.af-footer-left,
.af-footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* -------------------------------------------------------------------------
   Dashboard
   ------------------------------------------------------------------------- */

.gp-hero {
    background: linear-gradient(135deg, var(--gp-accent) 0%, var(--gp-accent-dark) 100%);
    color: #fff;
    border-radius: var(--gp-radius);
    padding: 1.75rem 1.5rem;
    margin-bottom: 20px;
}

.gp-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}

.gp-hero p {
    margin: 0;
    max-width: 640px;
    opacity: 0.9;
    font-size: 0.95rem;
}

.gp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.gp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

.gp-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.gp-stat-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gp-stat {
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    display: block;
    min-height: 118px;
}

.gp-stat:hover {
    text-decoration: none;
    color: inherit;
    border-color: var(--gp-accent-border);
}

.gp-stat__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.gp-stat__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gp-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gp-stat__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--gp-accent-soft);
    color: var(--gp-accent-2);
}

.gp-stat__value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
}

.gp-stat__hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--gp-muted);
    line-height: 1.4;
}

.gp-stat--gold .gp-stat__icon { background: #fef9c3; color: #a16207; }
.gp-stat--navy .gp-stat__icon { background: #e8eef3; color: #334155; }
.gp-stat--warn .gp-stat__icon { background: #ffedd5; color: #c2410c; }
.gp-stat--rose .gp-stat__icon { background: #fee2e2; color: #b91c1c; }

.gp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gp-steps li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--gp-border);
}

.gp-steps li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.gp-steps__n,
.gp-flow__n {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gp-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gp-steps strong {
    display: block;
    font-size: 13.5px;
}

.gp-steps span {
    display: block;
    font-size: 12.5px;
    color: var(--gp-muted);
}

.gp-quick a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--gp-radius-sm);
    border: 1px solid var(--gp-border);
    margin-bottom: 8px;
    color: var(--gp-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
}

.gp-quick a:hover {
    border-color: var(--gp-accent-border);
    background: var(--gp-accent-soft);
    color: var(--gp-accent-2);
    text-decoration: none;
}

.gp-quick a i {
    color: var(--gp-accent);
    font-size: 18px;
}

.gp-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--gp-accent-soft);
    color: var(--gp-accent-2);
}

.gp-empty {
    text-align: center;
    color: var(--gp-muted);
    padding: 28px 12px;
}

.gp-help-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gp-accent-2);
}

.gp-help-lead {
    color: var(--gp-muted);
}

.gp-flow {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.gp-flow li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.gp-flow span:last-child {
    display: block;
    color: var(--gp-muted);
    font-size: 13px;
}

.gp-help-tips div {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #334155;
}

.gp-help-tips i {
    color: var(--gp-accent);
    margin-right: 6px;
}

/* -------------------------------------------------------------------------
   Login
   ------------------------------------------------------------------------- */

body.be-splash-screen {
    padding: 0 !important;
}

body.gp-login-page {
    min-height: 100vh;
    margin: 0;
    background: var(--gp-bg);
    background-image: none;
    color: var(--gp-text);
}

.gp-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.25rem;
}

.gp-login__main {
    width: 100%;
    max-width: 26rem;
    padding: 2rem 2rem 1.65rem;
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(31, 41, 55, 0.06);
    text-align: center;
}

.gp-login__wordmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--gp-navy);
}

.gp-login__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--gp-accent);
    box-shadow: 0 0 0 4px rgba(0, 146, 73, 0.16);
}

.gp-login__title {
    margin: 0 0 0.4rem;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gp-navy);
    line-height: 1.15;
}

.gp-login__hint {
    margin: 0 0 1.6rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--gp-muted);
}

.gp-login__form {
    text-align: left;
}

.gp-login__form .form-group {
    margin-bottom: 1rem;
}

.gp-login__form label:not(.custom-control) {
    display: block;
    margin-bottom: 0.35rem;
}

.gp-login__form input.form-control:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]) {
    background: #fff;
    color: var(--gp-text);
}

.gp-login__secret {
    position: relative;
}

.gp-login__secret .form-control {
    padding-right: 2.6rem;
}

.gp-login__toggle {
    position: absolute;
    right: 0.15rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    background: transparent;
    color: var(--gp-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.gp-login__toggle:hover,
.gp-login__toggle:focus {
    color: var(--gp-navy);
    background: #f3f5f7;
    outline: none;
}

.gp-login__row {
    margin: 0 0 1.15rem;
}

.gp-login__submit {
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
}

.gp-login__footnote {
    margin: 1.25rem 0 0;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gp-muted);
}

@media (max-width: 575.98px) {
    .gp-login {
        padding: 1.25rem 0.9rem;
    }

    .gp-login__main {
        padding: 1.5rem 1.2rem 1.25rem;
    }

    .gp-login__title {
        font-size: 1.6rem;
    }
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .gp-stat-grid,
    .gp-stat-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .gp-stat-grid,
    .gp-stat-grid--3 {
        grid-template-columns: 1fr;
    }

    .gp-list-actions,
    .card-table > .card-header .gp-list-actions {
        justify-content: flex-end;
        margin-top: 0.75rem;
        flex-wrap: wrap;
    }

    .dataTables_wrapper .be-datatable-header > [class*="col-"],
    .dataTables_wrapper .be-datatable-footer > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left !important;
    }

    .dataTables_wrapper .dataTables_filter {
        margin-top: 0.5rem;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
    }

    .dataTables_wrapper table.dataTable {
        min-width: 1000px;
    }
}

/* -------------------------------------------------------------------------
   SweetAlert2 confirmations
   ------------------------------------------------------------------------- */

.swal2-popup.gp-swal {
    font-size: 1rem;
    border-radius: var(--gp-radius);
    padding: 1.75rem 1.5rem 1.5rem;
}

.swal2-popup.gp-swal .swal2-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gp-navy);
}

.swal2-popup.gp-swal .swal2-content {
    color: var(--gp-text);
    font-size: 0.95rem;
}

.swal2-popup.gp-swal .swal2-actions {
    margin-top: 1.25rem;
}

.swal2-popup.gp-swal .swal2-actions .btn {
    margin: 0 0.35rem;
    min-width: 7rem;
}

.swal2-popup.gp-swal .swal2-icon.swal2-question {
    border-color: var(--gp-accent);
    color: var(--gp-accent);
}

.swal2-popup.gp-swal .swal2-icon.swal2-warning {
    border-color: var(--gp-warning);
    color: var(--gp-warning);
}

.gp-flash .alert[data-autohide] {
    transition: opacity 0.4s ease;
}

/* -------------------------------------------------------------------------
   User manual
   ------------------------------------------------------------------------- */

.gp-manual {
    max-width: 1100px;
}

.gp-manual__intro {
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    padding: 1.25rem 1.4rem 1.1rem;
    margin-bottom: 1rem;
}

.gp-manual__intro h3 {
    margin: 4px 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gp-navy);
}

.gp-manual__intro p:last-child {
    margin-bottom: 0;
    color: var(--gp-text);
    line-height: 1.55;
}

.gp-manual__toc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.25rem;
}

.gp-manual__toc a {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--gp-border);
    background: var(--gp-surface);
    color: var(--gp-text);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

.gp-manual__toc a:hover {
    border-color: var(--gp-accent-border);
    background: var(--gp-accent-soft);
    color: var(--gp-accent-2);
    text-decoration: none;
}

.gp-manual__section {
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    padding: 1.2rem 1.35rem 1.15rem;
    margin-bottom: 1rem;
    scroll-margin-top: 80px;
}

.gp-manual__section h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gp-navy);
}

.gp-manual__lead {
    color: var(--gp-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.gp-manual__steps {
    margin: 0;
    padding-left: 1.2rem;
}

.gp-manual__steps li {
    margin-bottom: 0.45rem;
    line-height: 1.5;
}

.gp-manual__steps li:last-child {
    margin-bottom: 0;
}

.gp-manual__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.gp-manual__cards > div {
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius-sm);
    padding: 12px 14px;
    background: #f8fafc;
}

.gp-manual__cards strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13.5px;
}

.gp-manual__cards p {
    margin: 0;
    font-size: 13px;
    color: var(--gp-muted);
    line-height: 1.45;
}

.gp-manual__split-docs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gp-manual__split-docs .card {
    margin-bottom: 0;
}

.gp-manual__split-docs ul {
    margin: 0;
    padding-left: 1.15rem;
}

.gp-manual__split-docs li {
    margin-bottom: 0.45rem;
    font-size: 13.5px;
    line-height: 1.45;
}

.gp-manual__split-docs li:last-child {
    margin-bottom: 0;
}

.gp-diagram {
    background: linear-gradient(180deg, #f3faf6 0%, #fff 48%);
    border: 1px solid var(--gp-accent-border);
    border-radius: 10px;
    padding: 18px 16px 16px;
}

.gp-diagram__rail {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.gp-diagram__inbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 520px;
    width: 100%;
    background: #fff;
    border: 1px dashed var(--gp-accent-border);
    border-radius: 8px;
    padding: 10px 12px;
}

.gp-diagram__inbox i {
    color: var(--gp-accent);
    font-size: 22px;
    line-height: 1;
}

.gp-diagram__inbox strong,
.gp-diagram__leaf strong {
    display: block;
    font-size: 13px;
}

.gp-diagram__inbox span,
.gp-diagram__leaf span {
    display: block;
    font-size: 12.5px;
    color: var(--gp-muted);
    line-height: 1.4;
}

.gp-diagram__flow {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
}

.gp-diagram__stage {
    flex: 1 1 0;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--gp-border);
    border-top: 3px solid var(--gp-accent);
    border-radius: 8px;
    padding: 12px 10px 10px;
    position: relative;
}

.gp-diagram__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gp-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

.gp-diagram__stage h5 {
    margin: 0 0 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gp-navy);
}

.gp-diagram__stage ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gp-diagram__stage li {
    font-size: 12px;
    color: var(--gp-muted);
    line-height: 1.4;
    padding: 2px 0;
}

.gp-diagram__stage em {
    font-style: normal;
    color: #94a3b8;
}

.gp-diagram__arrow {
    flex: 0 0 18px;
    position: relative;
    align-self: center;
}

.gp-diagram__arrow::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin: 0 auto;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 9px solid var(--gp-accent);
}

.gp-diagram__split {
    margin-top: 6px;
}

.gp-diagram__split-line {
    width: 2px;
    height: 16px;
    background: var(--gp-accent);
    margin: 4px auto 10px;
    opacity: 0.7;
}

.gp-diagram__fork {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gp-diagram__leaf {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: 8px;
    padding: 12px;
}

.gp-diagram__leaf i {
    color: var(--gp-accent);
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .gp-diagram__flow {
        flex-direction: column;
        gap: 0;
    }

    .gp-diagram__arrow {
        flex: 0 0 18px;
        height: 18px;
    }

    .gp-diagram__arrow::before {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 9px solid var(--gp-accent);
        border-bottom: 0;
    }

    .gp-manual__split-docs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .gp-diagram__fork {
        grid-template-columns: 1fr;
    }
}
