.modal-certificate {
    width: 70rem !important;
}

.table tbody tr .dt-body-right {
	text-align: right !important;
}

.bg-primary {
        background-color: #009249 !important;

    /* PCW */
    /* background-color: #7030a0 !important;  */
    color: #fff !important;
}

.be-color-header-custom .be-top-header {
    background-color: #009249 !important;
  border-bottom-color: #009249 !important;

  /* PCW */
  /* background-color: #7030a0 !important;
  border-bottom-color: #7030a0 !important; */
}


.alert {
    line-height: 5px !important;
    margin-bottom: 10px !important;
}

.alert-dismissible .close {
    top: -7px;
}

.color-red {
    color: rgb(234 67 53) !important;
    margin-top: 0.25rem !important;
    font-size: 0.9rem !important;
}

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

    /* PCW */
    /* background-color: #7030a0 !important;
    border-bottom-color: #7030a0 !important; */
  }
}

.be-user-nav > li.dropdown .dropdown-menu .user-info {
     background-color: #009249 !important;

    /* PCW */
    /* background-color: #7030a0 !important; */
}

.close-modal:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.close-modal:hover, .close-modal:focus {
    color: #000;
    text-decoration: none;
    opacity: .75;
}

button.close-modal {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
}

.close-modal {
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}
.spinner-border{
    display: inline-block;
    width: 1rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner-border .75s linear infinite;
    animation: spinner-border .75s linear infinite;
}

.spinner-border-sm{
    height: 1rem;
    border-width: .2em;
}

/* Login, Registration, Forgot Password */
.be-splash-screen a,
.be-login a {
    color: #009249;
}

.be-splash-screen a:hover,
.be-splash-screen a:focus,
.be-login a:hover,
.be-login a:focus,
.splash-footer a:hover,
.login-forgot-password a:hover {
    color: #007538 !important;
}

.be-splash-screen .btn-primary,
.be-login .btn-primary {
    background-color: #009249 !important;
    border-color: #009249 !important;
}

.be-splash-screen .btn-primary:hover,
.be-login .btn-primary:hover,
.be-splash-screen .btn-primary:focus,
.be-login .btn-primary:focus {
    background-color: #007e3e !important;
    border-color: #007538 !important;
}

.be-splash-screen .btn-primary:active,
.be-login .btn-primary:active {
    background-color: #007538 !important;
    border-color: #006f34 !important;
}

.be-splash-screen .card-border-color-primary,
.be-login .card-border-color-primary {
    border-top-color: #009249 !important;
}

.be-splash-screen .form-control:focus,
.be-login .form-control:focus {
    border-color: #009249 !important;
}

.be-splash-screen .custom-control-input:not(:disabled):active ~ .custom-control-label::before,
.be-login .custom-control-input:not(:disabled):active ~ .custom-control-label::before {
    background-color: #d9f0e4 !important;
    border-color: #d9f0e4 !important;
}

.be-splash-screen .custom-control-input:checked ~ .custom-control-label::after,
.be-login .custom-control-input:checked ~ .custom-control-label::after {
    color: #009249 !important;
}

.be-splash-screen .custom-control-input:checked ~ .custom-control-label::before,
.be-login .custom-control-input:checked ~ .custom-control-label::before {
    border-color: #009249 !important;
}

/* Login page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem 1rem 5rem;
    min-height: 60vh;
}

.login-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.login-card .card-header {
    text-align: center;
    padding: 1.75rem 1.5rem 0.5rem;
    background: #fff;
    border-bottom: none;
}

.login-logo {
    display: block;
    max-width: 120px;
    width: 100%;
    height: auto;
    margin: 0 auto 0.75rem;
}

.login-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 0.35rem;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.45;
}

.login-card .card-body {
    padding: 1rem 1.75rem 1.75rem;
}

.login-alert {
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1.25rem;
}

.login-field {
    margin-bottom: 1.15rem;
}

.login-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 0.4rem;
}

.login-password-wrapper {
    position: relative;
}

.login-password-wrapper .form-control {
    padding-right: 2.75rem;
}

.login-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 2.75rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    border-radius: 0 4px 4px 0;
}

.login-password-toggle:hover,
.login-password-toggle:focus {
    color: #009249;
    outline: none;
}

.login-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.25rem;
}

.login-forgot-link {
    font-size: 0.875rem;
    font-weight: 600;
}

.login-submit-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
}

.login-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

.login-footer-support {
    margin-top: 0.5rem;
}

.login-footer a {
    font-weight: 600;
}

@media (max-width: 576px) {
    .login-page {
        padding: 1rem 0.75rem 5rem;
    }

    .login-card .card-body {
        padding: 1rem 1.25rem 1.5rem;
    }

    .login-card .card-header {
        padding: 1.25rem 1.25rem 0.5rem;
    }
}

/* Portal pages (Dashboard, Job Vacancy, My Jobs) */
.rms-page-full {
    width: auto;
    max-width: none;
    margin: -1rem -1.25rem 0;
    padding: 0 1.5rem 1.75rem;
    min-height: calc(100vh - 60px);
    background: linear-gradient(180deg, #dceee4 0%, #eef1f4 180px, #eef1f4 100%);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Hero header */
.rms-hero {
    margin: 0 -1.5rem 1.25rem;
    padding: 1.6rem 1.5rem 0;
    background: linear-gradient(135deg, #005c2e 0%, #009249 55%, #00a854 100%);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 24px rgba(0, 92, 46, 0.18);
    flex-shrink: 0;
}

.rms-hero-body {
    padding-bottom: 0.25rem;
}

.rms-hero-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.rms-hero-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0.35rem 0 0;
    max-width: 42rem;
}

/* Navigation */
.rms-nav {
    display: flex;
    gap: 0.4rem;
    margin-top: 1.15rem;
    padding-bottom: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.rms-nav::-webkit-scrollbar {
    display: none;
}

.rms-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.rms-nav-icon {
    font-size: 1rem;
    line-height: 1;
}

.rms-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

.rms-nav-link.is-active {
    color: #007538;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Metrics */
.rms-metrics-wrap {
    flex-shrink: 0;
    margin-bottom: 1.1rem;
}

.rms-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.rms-metric {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid #e4e8ec;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s, box-shadow 0.15s;
}

a.rms-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    color: inherit;
    text-decoration: none;
}

.rms-metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.rms-metric--green .rms-metric-icon {
    background: #e6f7ee;
    color: #009249;
}

.rms-metric--blue .rms-metric-icon {
    background: #e7f5ff;
    color: #1971c2;
}

.rms-metric--amber .rms-metric-icon {
    background: #fff4e6;
    color: #e67700;
}

.rms-metric-body {
    min-width: 0;
}

.rms-metric-value {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: #1a1d21;
    line-height: 1;
    letter-spacing: -0.02em;
}

.rms-metric-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.3rem;
}

/* Content layout */
.rms-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rms-grid {
    display: grid;
    grid-template-columns: minmax(270px, 24%) 1fr;
    gap: 1rem;
    align-items: start;
    flex: 1;
    min-height: 0;
}

.rms-page-full .rms-grid {
    grid-template-columns: minmax(270px, 24%) 1fr;
    min-height: 0;
    height: 100%;
}

.rms-aside {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Panels */
.rms-panel {
    background: #fff;
    border: 1px solid #e4e8ec;
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.rms-panel-accent {
    background: linear-gradient(145deg, #f4fbf7 0%, #fff 100%);
    border-color: #b8e6cc;
}

.rms-panel-grow {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    min-width: 0;
}

.rms-panel-table {
    padding-bottom: 1rem;
}

.rms-panel-grow .rms-table-wrap {
    flex: 1;
}

.rms-page-full .rms-content > .rms-panel-table:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.rms-page-full .rms-content > .rms-panel-table:last-child .rms-table-wrap {
    flex: 1;
}

.rms-panel-eyebrow {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #009249;
    margin-bottom: 0.4rem;
}

.rms-panel-lead {
    font-size: 0.9rem;
    color: #343a40;
    margin: 0 0 0.9rem;
    line-height: 1.5;
}

.rms-panel-cta {
    width: 100%;
    font-weight: 600;
    border-radius: 10px;
}

.rms-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.rms-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1d21;
    margin: 0;
}

.rms-panel-desc {
    font-size: 0.8rem;
    color: #868e96;
    margin: 0.2rem 0 0;
}

.rms-panel-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #009249;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    background: #e6f7ee;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.rms-panel-action:hover {
    color: #007538;
    background: #d3f0e0;
    text-decoration: none;
}

.rms-panel-action::after {
    content: '→';
}

/* Progress steps */
.rms-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rms-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
}

.rms-step + .rms-step {
    border-top: 1px solid #f1f3f5;
}

.rms-step-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: #fff;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #fff;
}

.rms-step.is-done .rms-step-marker {
    background: #009249;
    border-color: #009249;
}

.rms-step-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
}

.rms-step.is-done .rms-step-label {
    color: #009249;
}

.rms-step-label:hover {
    color: #007538;
    text-decoration: none;
}

/* Quick links */
.rms-quicklinks {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rms-quicklink {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.55rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.12s, color 0.12s;
}

.rms-quicklink .icon {
    font-size: 1.05rem;
    color: #868e96;
    width: 1.25rem;
    text-align: center;
}

.rms-quicklink:hover {
    background: #f4fbf7;
    color: #009249;
    text-decoration: none;
}

.rms-quicklink:hover .icon {
    color: #009249;
}

/* Info tip */
.rms-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    background: #fff;
    border: 1px solid #bee3f8;
    border-left: 4px solid #228be6;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(34, 139, 230, 0.06);
}

.rms-tip-icon {
    font-size: 1.35rem;
    color: #1971c2;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.05rem;
}

.rms-tip-text {
    font-size: 0.875rem;
    color: #1864ab;
    margin: 0;
    line-height: 1.45;
}

/* Tables */
.rms-table-wrap {
    overflow-x: auto;
    border: 1px solid #eef1f4;
    border-radius: 10px;
}

.rms-table {
    margin-bottom: 0;
}

.rms-table thead th {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    background: #f8fafb;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
    padding: 0.65rem 0.8rem;
}

.rms-table tbody td {
    font-size: 0.85rem;
    vertical-align: middle;
    color: #495057;
    padding: 0.72rem 0.8rem;
    border-bottom: 1px solid #f1f3f5;
    background: #fff;
}

.rms-table tbody tr:last-child td {
    border-bottom: none;
}

.rms-table tbody tr:hover td {
    background: #f6fbf8;
}

.rms-table a {
    color: #009249;
    font-weight: 600;
}

.rms-table a:hover {
    color: #007538;
}

.rms-table .applyJob {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.rms-col-action {
    width: 110px;
    text-align: center;
}

/* DataTables */
.rms-dt-toolbar {
    margin-bottom: 0.85rem;
}

.rms-dt-toolbar .dataTables_filter {
    float: none;
    text-align: left;
}

.rms-dt-toolbar .dataTables_filter label {
    margin: 0;
    width: 100%;
}

.rms-dt-toolbar .dataTables_filter input {
    width: 100%;
    max-width: 380px;
    margin-left: 0;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    padding: 0.55rem 0.9rem 0.55rem 2.2rem;
    font-size: 0.85rem;
    background: #f8fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23868e96' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.1a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E") no-repeat 0.7rem center;
}

.rms-dt-toolbar .dataTables_filter input:focus {
    border-color: #009249;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 146, 73, 0.12);
}

.rms-dt-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-top: 0.5rem;
    font-size: 0.8rem;
    color: #868e96;
}

/* Modal */
.rms-modal-header {
    background-color: #009249;
    color: #fff;
}

.rms-modal-header .close {
    color: #fff;
    opacity: 0.85;
}

.rms-req-item {
    padding: 0.5rem 0.75rem;
    background: #fff5f5;
    border-left: 3px solid #fa5252;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

@media (max-width: 991px) {
    .rms-page-full {
        margin: -0.75rem -1rem 0;
        padding: 0 1rem 1rem;
        min-height: calc(100vh - 56px);
    }

    .rms-hero {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 1.25rem 1rem 0;
        border-radius: 0 0 16px 16px;
    }

    .rms-grid,
    .rms-page-full .rms-grid {
        grid-template-columns: 1fr;
    }

    .rms-aside {
        order: -1;
    }

    .rms-panel-grow,
    .rms-page-full .rms-content > .rms-panel-table:last-child {
        min-height: 0;
    }
}

@media (min-width: 1400px) {
    .rms-page-full .rms-grid {
        grid-template-columns: minmax(290px, 20%) 1fr;
    }
}

@media (max-width: 576px) {
    .rms-page-full {
        margin: -0.5rem -0.75rem 0;
        padding: 0 0.75rem 0.75rem;
    }

    .rms-hero {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding: 1.1rem 0.75rem 0;
    }

    .rms-hero-title {
        font-size: 1.3rem;
    }

    .rms-metrics {
        grid-template-columns: 1fr;
    }

    .rms-nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.78rem;
    }

    .rms-metric-value {
        font-size: 1.45rem;
    }
}
