.btnblue {
    color: #fff;
    background-color: black;
    border-color: black;
    box-shadow: none;
}
.btnblue:hover {
    color: #fff;
    background-color: black;
    border-color: black;
}

.btnorange {
    color: #242424;
    background-color: #f1f2f3;
    border-color: #d8dadd;
    box-shadow: none;
}
.btnorange:hover {
    color: #242424;
    background-color: #e9eaec;
    border-color: #c8c9cd;
}

.btngreen {
    color: #fff;
    background-color: #daffe3;
    border-color: #daffe3;
    box-shadow: none;
}
.btngreen:hover {
    color: #fff;
    background-color: #daffe3;
    border-color: #daffe3;
}

.btnred {
    color: #fff;
    background-color: red;
    border-color: red;
    box-shadow: none;
}
.btnred:hover {
    color: #fff;
    background-color: rgb(199, 5, 5);
    border-color: rgb(199, 5, 5);
}

.btnblack {
    color: #fff;
    background-color: rgb(0, 0, 0);
    border-color: rgb(0, 0, 0);
    box-shadow: none;
}
.btnblack:hover {
    color: #fff;
    background-color: rgb(36, 35, 35);
    border-color: rgb(36, 35, 35);
}

/* ////////////////////////////////////////////////////////////////////////////////////////////////////// */

.bgcomplete {
    color: black;
    background-color: #daffe3 !important;
}

.tablehead {
    color: black;
    background-color: #f1f2f3 !important;
}

.bgblue {
    color: white;
    background-color: #3f3efe !important;
}

/* //////////////////////////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////////////////////////////////////////////// */

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.brand-link .brand-image {
    float: left;
    line-height: 0.8;
    margin-left: 5px;
    margin-right: 1.5rem;
    margin-top: 0px;
    max-height: 100px;
    width: 90%;
}

.dropzone {
    background: white;
    border-radius: 5px;
    border: 2px dashed rgb(0, 135, 247);
    border-image: none;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* .nav-sidebar .nav-link:hover {
  color: #242424;
} */

.nav-pills .nav-link:not(.active):hover {
    color: #242424;
}

/* /////////   MEDIA QUERY ///////////////////////// */

@media only screen and (max-width: 430px) {
    .mbltextcenter {
        text-align: center !important;
    }

    .mblmargintop {
        margin-top: 20px !important;
    }

    .mblbtn {
        padding: 4px 8px !important;
        font-size: 14px !important;
    }

    .marquee-container {
        width: 200px !important;
        overflow: hidden;
        background-color: rgb(240, 240, 239);
        padding: 10px 0;
    }
}

/* RemindLegal PMS responsive application layer */
:root {
    --pms-primary: #111827;
    --pms-accent: #242424;
    --pms-surface: #ffffff;
    --pms-background: #f4f6f9;
    --pms-border: #e5e7eb;
    --pms-radius: 12px;
}

body {
    color: #1f2937;
    background: var(--pms-background);
}

.content-wrapper {
    background: var(--pms-background);
}

.card {
    border: 1px solid var(--pms-border);
    border-radius: var(--pms-radius);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.card-header {
    border-bottom-color: var(--pms-border);
}

.form-control,
.select2-container .select2-selection--single,
.custom-select {
    min-height: 44px;
    border-color: #d1d5db;
    border-radius: 8px;
}

.form-control:focus,
.select2-container--focus .select2-selection {
    border-color: var(--pms-accent) !important;
    box-shadow: 0 0 0 3px rgba(252, 111, 43, 0.16) !important;
}

.btn,
.nav-link,
.dropdown-item {
    min-height: 44px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
}

.table-responsive {
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.table thead th {
    white-space: nowrap;
    border-bottom-width: 1px;
}

.table tbody tr:hover {
    background: #f7f8f9;
}

.main-sidebar .nav-sidebar .nav-link {
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 3px;
}

.main-sidebar .nav-sidebar .nav-link:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(252, 111, 43, 0.45);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .content-header {
        padding: 12px 8px 4px;
    }

    .content-header h1 {
        font-size: 1.45rem;
        margin-bottom: 10px;
    }

    .content {
        padding: 0 8px;
    }

    .card-body {
        padding: 14px;
    }

    .main-header {
        min-height: 56px;
    }

    .main-header .marquee-container,
    .main-header [data-widget="fullscreen"] {
        display: none !important;
    }

    .main-header .dropdown-menu {
        position: fixed !important;
        top: 56px !important;
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        max-width: none;
    }

    .mobilecloseicon {
        min-width: 44px;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 0 0 0 10px;
        cursor: pointer;
    }

    .row > [class*="col-"] {
        min-width: 0;
    }

    .form-group,
    .mb-3 {
        width: 100% !important;
    }

    .btn:not(.btn-sm) {
        padding: .65rem .9rem;
    }

    .modal-dialog {
        margin: .75rem;
    }

    .modal-content {
        border-radius: 14px;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_paginate {
        float: none;
        text-align: left;
        width: 100%;
        margin-bottom: 10px;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: calc(100% - 65px);
        min-height: 44px;
    }

    .login-box {
        width: min(100%, 390px);
        margin: 16px auto;
    }

    .login-page .full-height-center {
        min-height: 100dvh;
        height: auto;
        padding: 12px;
    }

    .login-page .row.h-100 {
        height: auto !important;
        align-content: center;
    }

    .login-switch-panel {
        border-left: 0 !important;
        padding: 0 16px 24px;
    }
}

/* Authentication pages follow the same compact type scale. */
.login-page,
.login-page :where(div, span, p, a, button, input, select, textarea, label) {
    font-size: 14px !important;
}

.login-page :where(h1, h2, h3, .h1, .h2, .h3) {
    font-size: 18px !important;
}

.login-page :where(h4, h5, h6, .h4, .h5, .h6) {
    font-size: 16px !important;
}

.login-page :where(small, .small, .invalid-feedback, .form-text) {
    font-size: 12px !important;
}

.login-page .login-box .card-body {
    padding: 16px 20px 20px !important;
}

.login-page .form-control,
.login-page .input-group-text,
.login-page .auth-submit,
.login-page .admin-login-btn {
    min-height: 42px !important;
    height: 42px;
}

/* Final global density layer. Keep every workspace page within the 18/16/14/12 type scale. */
body.pms-shell,
body.pms-shell :where(div, span, p, a, button, input, select, textarea, label, td, th, li, dt, dd) {
    font-size: 14px !important;
}

body.pms-shell :where(h1, h2, h3, .h1, .h2, .h3, .content-header h1, .card-title, .modal-title, .pms-list-title, .pms-kpi-value),
body.pms-shell .small-box .inner h3,
body.pms-shell .pms-dashboard-grid .pms-stat-col .small-box .inner h3 {
    font-size: 18px !important;
    line-height: 1.35 !important;
}

body.pms-shell :where(h4, h5, h6, .h4, .h5, .h6) {
    font-size: 16px !important;
    line-height: 1.4 !important;
}

body.pms-shell :where(small, .small, .form-text, .invalid-feedback, .help-block, .pagination, .pms-list-subtitle) {
    font-size: 12px !important;
}

body.pms-shell .content {
    padding: 10px 14px 20px;
}

body.pms-shell .content-header {
    padding: 10px 14px 2px;
}

body.pms-shell .content .card {
    margin-bottom: 12px;
}

body.pms-shell .content .card-body {
    padding: 14px !important;
}

body.pms-shell .content form .row {
    margin-right: -6px;
    margin-left: -6px;
}

body.pms-shell .content form .row > [class*="col-"] {
    padding-right: 6px;
    padding-left: 6px;
}

body.pms-shell .content form :where(.form-group, .mb-3) {
    margin-bottom: 10px !important;
}

body.pms-shell .content form label {
    margin-bottom: 4px !important;
    font-size: 12px !important;
    font-weight: 700;
}

body.pms-shell .content form :where(.form-control, .custom-select),
body.pms-shell .content form .select2-selection--single {
    min-height: 38px !important;
    height: 38px !important;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 14px !important;
}

body.pms-shell .content form textarea.form-control {
    height: auto !important;
    min-height: 72px !important;
}

body.pms-shell .content form .note-editor .note-editable {
    min-height: 72px !important;
    padding: 8px 10px;
    font-size: 14px !important;
}

body.pms-shell .content > .container-fluid > form,
body.pms-shell .content .container-fluid > form,
body.pms-shell .content .card-body > form:not([id^="delete-form"]) {
    width: 100%;
    max-width: 1040px;
    margin-right: auto;
    margin-left: auto;
}

body.pms-shell .content .btn,
body.pms-shell .modal .btn {
    min-height: 38px !important;
    padding: 7px 12px;
    font-size: 14px !important;
}

body.pms-shell .content .table th,
body.pms-shell .content .table td {
    padding: 9px 10px;
    vertical-align: middle;
}

body.pms-shell .modal-dialog.modal-lg {
    max-width: 820px !important;
}

body.pms-shell .modal-body {
    padding: 14px !important;
}

@media (max-width: 767.98px) {
    body.pms-shell .content {
        padding: 8px 10px 16px;
    }

    body.pms-shell .content .card-body,
    body.pms-shell .modal-body {
        padding: 12px !important;
    }

    body.pms-shell .content form :where(.form-control, .custom-select),
    body.pms-shell .content form .select2-selection--single {
        min-height: 42px !important;
        height: 42px !important;
        font-size: 16px !important;
    }

    body.pms-shell .content .btn,
    body.pms-shell .modal .btn {
        min-height: 44px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Worksuite-inspired PMS visual system: simple, calm and operational. */
.pms-shell {
    --pms-primary: #1e3a8a;
    --pms-primary-hover: #172f70;
    --pms-accent: #242424;
    --pms-sidebar: #ffffff;
    --pms-sidebar-soft: #fbf6ea;
    --pms-bg: #f8fafc;
    --pms-surface: #ffffff;
    --pms-text: #0f172a;
    --pms-muted: #64748b;
    --pms-border: #e2e8f0;
    --pms-soft: #f1f5f9;
    --pms-danger: #dc2626;
    --pms-success: #15803d;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    color: var(--pms-text);
    background: var(--pms-bg);
}

.pms-shell .wrapper,
.pms-shell .content-wrapper {
    background: var(--pms-bg);
}

.pms-shell .main-header {
    min-height: 58px;
    padding: 0 16px;
    background: var(--pms-surface);
    border-bottom: 1px solid var(--pms-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

.pms-shell .main-header .nav-link {
    color: #475569;
    border-radius: 8px;
}

.pms-shell .main-header .nav-link:hover {
    color: var(--pms-primary);
    background: var(--pms-soft);
}

.pms-header-title {
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    margin: 0 8px;
    color: var(--pms-text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.pms-header-title small {
    padding-left: 9px;
    border-left: 1px solid var(--pms-border);
    color: var(--pms-muted);
    font-size: 12px;
    font-weight: 500;
}

.pms-header-mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pms-accent);
}

.pms-shell .pms-collapse-item {
    margin: 2px 0 5px !important;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9eaec !important;
}

.pms-shell .nav-sidebar .pms-sidebar-toggle {
    min-height: 36px;
    color: #242424;
    background: #f4f5f6;
    border: 1px solid #e9eaec;
}

.pms-shell .nav-sidebar .pms-sidebar-toggle:hover,
.pms-shell .nav-sidebar .pms-sidebar-toggle:focus-visible {
    color: #111;
    background: linear-gradient(135deg, #e9eaec 0%, #c7c9cc 100%);
    border-color: #c7c9cc;
}

.sidebar-collapse .pms-sidebar-toggle .nav-icon {
    transform: rotate(180deg);
}

.pms-shell .pms-avatar {
    width: 40px !important;
    height: 40px !important;
    background: var(--pms-primary) !important;
    box-shadow: 0 0 0 3px #dbeafe;
    font-size: 18px;
    font-weight: 750;
}

.pms-shell .main-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e9eaec;
    box-shadow: 5px 0 18px rgba(73, 53, 20, .055) !important;
}

.pms-shell .brand-link {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: var(--pms-surface);
    border-bottom: 1px solid var(--pms-border);
}

.pms-shell .brand-link .brand-image {
    float: none;
    width: auto !important;
    max-width: 180px;
    max-height: 34px;
    margin: 0;
    opacity: 1 !important;
    object-fit: contain;
}

.pms-shell .sidebar {
    padding: 7px 9px 18px;
}

.pms-shell .nav-sidebar .nav-header {
    padding: 11px 10px 5px;
    color: #242424;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
}

.pms-shell .nav-sidebar > .nav-item {
    border: 0 !important;
    margin-bottom: 2px;
}

.pms-shell .nav-sidebar .nav-link {
    min-height: 38px;
    padding: 7px 10px;
    color: #35312a;
    border-radius: 7px;
    font-size: 14px;
    transition: color .16s ease, background-color .16s ease;
}

.pms-shell .nav-sidebar .nav-link:hover {
    color: #242424;
    background: var(--pms-sidebar-soft);
}

.pms-shell .nav-sidebar .nav-link.active,
.pms-shell .nav-sidebar .show > .nav-link {
    color: #111 !important;
    background: linear-gradient(135deg, #e9eaec 0%, #c7c9cc 100%) !important;
    box-shadow: 0 5px 12px rgba(169, 116, 28, .18);
    font-weight: 700;
}

.pms-shell .nav-sidebar .nav-icon {
    width: 20px;
    margin-right: 7px;
    color: #8a7b62;
    font-size: 14px;
    transition: transform .18s ease;
}

.pms-shell .nav-sidebar .nav-link.active .nav-icon,
.pms-shell .nav-sidebar .nav-link:hover .nav-icon {
    color: inherit;
}

.sidebar-collapse.pms-shell .brand-link {
    background: #fff;
    border-bottom-color: #e9eaec;
}

.sidebar-collapse.pms-shell .brand-link .brand-image {
    opacity: 0 !important;
    visibility: hidden;
}

.sidebar-collapse.pms-shell .nav-sidebar .pms-sidebar-toggle {
    background: linear-gradient(135deg, #e9eaec 0%, #c7c9cc 100%);
    border-color: #c7c9cc;
}

.sidebar-collapse.pms-shell .nav-sidebar .pms-sidebar-toggle .nav-icon {
    color: #111;
}

.pms-shell .new-badge {
    color: #52525b;
    background: #fef3c7;
    animation: none !important;
}

.pms-shell .content-wrapper {
    padding-bottom: 24px;
}

.pms-shell .content-header {
    padding: 17px 20px 6px;
}

.pms-shell .content-header h1 {
    margin: 0;
    color: var(--pms-text);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.025em;
    text-transform: none;
}

.pms-page-subtitle {
    margin: 5px 0 0 !important;
    color: var(--pms-muted) !important;
    text-align: left !important;
    font-size: 14px;
}

.pms-shell .content {
    padding: 8px 20px 20px;
}

.pms-shell .card,
.pms-shell .small-box.card {
    background: var(--pms-surface);
    border: 1px solid var(--pms-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .045);
}

.pms-shell .card {
    overflow: visible;
}

.pms-shell .small-box.card {
    min-height: 132px;
    overflow: hidden;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.pms-shell .small-box.card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
}

.pms-shell .small-box > .inner {
    padding: 18px 18px 12px;
    text-align: left;
}

.pms-shell .small-box .inner h3,
.pms-shell .small-box .inner h4 {
    margin: 0 0 5px;
    color: var(--pms-primary) !important;
    font-weight: 750;
    text-align: left;
}

.pms-shell .small-box .inner p {
    margin: 0;
    color: var(--pms-muted) !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .035em;
    text-align: left;
}

.pms-shell .small-box .icon {
    display: none;
}

.pms-shell .small-box .small-box-footer {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    color: #475569 !important;
    background: #f8fafc;
    border-top: 1px solid var(--pms-border);
    font-size: 12px;
    font-weight: 650;
    text-align: left;
}

.pms-shell .small-box .small-box-footer i {
    color: var(--pms-primary) !important;
}

.pms-shell .card-header {
    padding: 14px 18px;
    background: var(--pms-surface);
    border-bottom: 1px solid var(--pms-border);
    font-weight: 700;
}

.pms-shell .card-body {
    padding: 18px;
}

.pms-shell label {
    margin-bottom: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 650;
}

.pms-shell .form-control,
.pms-shell .custom-select,
.pms-shell .select2-container .select2-selection--single {
    min-height: 44px;
    color: var(--pms-text);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.pms-shell .form-control[readonly] {
    color: #475569;
    background: var(--pms-soft);
}

.pms-shell .btn-primary,
.pms-shell a.btn-primary,
.pms-shell button.btn-primary {
    color: #fff !important;
    background: var(--pms-primary) !important;
    border-color: var(--pms-primary) !important;
}

.pms-shell .btn-primary:hover {
    background: var(--pms-primary-hover) !important;
    border-color: var(--pms-primary-hover) !important;
}

.pms-shell .btnblack {
    color: #fff !important;
    background: #111 !important;
    border-color: #111 !important;
}

.pms-shell .btnblack:hover,
.pms-shell .btnblack:focus {
    color: #111 !important;
    background: var(--pms-accent) !important;
    border-color: var(--pms-accent) !important;
}

.pms-shell .btnorange {
    color: #fff;
    background: var(--pms-accent);
    border-color: var(--pms-accent);
}

.pms-shell .btnred,
.pms-shell .btn-danger {
    color: var(--pms-danger) !important;
    background: #fff !important;
    border-color: #fecaca !important;
}

.pms-shell .btn-secondary,
.pms-shell .btn-default {
    color: #334155;
    background: #fff;
    border-color: #cbd5e1;
}

.pms-shell .badge-primary,
.pms-shell .bg-primary {
    color: #fff !important;
    background: var(--pms-primary) !important;
}

.pms-shell .bgblue {
    color: #fff;
    background: var(--pms-primary) !important;
}

.pms-shell .table {
    margin-bottom: 0;
    color: #334155;
    background: #fff;
}

.pms-shell .table thead th,
.pms-shell .tablehead {
    color: #475569 !important;
    background: #f8fafc !important;
    border-color: var(--pms-border);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.pms-shell .table td {
    border-color: #edf2f7;
    vertical-align: middle;
}

.pms-shell .pagination .page-link {
    color: var(--pms-primary);
    border-color: var(--pms-border);
}

.pms-shell .pagination .active .page-link {
    color: #fff;
    background: var(--pms-primary);
    border-color: var(--pms-primary);
}

.pms-shell .dropdown-menu,
.pms-shell .modal-content {
    border: 1px solid var(--pms-border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
}

.pms-shell .main-footer {
    padding: 14px 20px;
    color: var(--pms-muted);
    background: var(--pms-surface);
    border-top: 1px solid var(--pms-border);
    font-size: 12px;
}

.pms-shell .marquee-container {
    width: 100% !important;
    max-width: none;
    padding: 7px 12px !important;
    background: var(--pms-soft) !important;
    border-radius: 8px;
}

.pms-shell .pms-header-message {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    padding-left: 0 !important;
}

.pms-shell .main-header > .navbar-nav.ml-auto {
    flex: 0 0 auto;
}

.pms-shell .marquee-text {
    max-width: none;
    padding-left: 100%;
    overflow: visible;
    color: #475569 !important;
    font-size: 12px;
    text-overflow: clip;
    animation: pmsTicker 26s linear infinite !important;
}

.pms-shell .marquee-container:hover .marquee-text,
.pms-shell .marquee-container:focus-within .marquee-text {
    animation-play-state: paused !important;
}

@keyframes pmsTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.pms-list-toolbar {
    padding: 18px 20px !important;
}

.pms-list-toolbar .row {
    margin-bottom: 0 !important;
}

.pms-list-title {
    margin: 0;
    color: var(--pms-text);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.pms-list-subtitle {
    margin: 4px 0 0;
    color: var(--pms-muted);
    font-size: 12px;
    font-weight: 500;
    text-align: left !important;
}

.pms-search-form .input-group,
.pms-filter-form .input-group {
    width: 100%;
}

.pms-primary-action {
    min-height: 44px;
    white-space: nowrap;
}

.pms-shell .table-responsive {
    border: 0;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.pms-shell .table-responsive > table.table {
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.pms-shell table.table th,
.pms-shell table.table td {
    padding: 12px 10px;
    border-right: 0 !important;
    border-left: 0 !important;
    border-color: #e8edf3 !important;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
}

.pms-shell table.table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 11px;
    padding-bottom: 11px;
    color: #64748b !important;
    background: #f8fafc !important;
    font-size: 10.5px;
    letter-spacing: .055em;
}

.pms-shell table.table tbody tr,
.pms-shell table.table.table-striped tbody tr:nth-of-type(odd),
.pms-shell table.table.table-striped tbody tr:nth-of-type(even) {
    background: #fff !important;
}

.pms-shell table.table tbody tr:nth-child(even) {
    background: #fbfdff !important;
}

.pms-shell table.table tbody tr:hover {
    background: #f4f7fb !important;
}

.pms-shell .pms-task-row.is-completed td:first-child {
    box-shadow: inset 3px 0 0 #22c55e;
}

.pms-date-cell {
    color: #334155;
    white-space: nowrap !important;
}

.pms-date-cell small {
    color: #94a3b8;
}

.pms-person-badge,
.pms-muted-badge,
.pms-status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: .02em;
    white-space: nowrap;
}

.pms-person-badge {
    color: #1e3a8a;
    background: #eef2ff;
}

.pms-tag-name,
.pms-assignee-name {
    display: inline-flex;
    align-items: center;
    max-width: 180px;
    padding: 5px 8px;
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: normal !important;
    line-height: 1.3;
}

.pms-tag-name {
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 750;
}

.pms-assignee-name {
    justify-content: center;
    gap: 6px;
    color: #173b7a !important;
    background: #eaf0f9 !important;
    border: 1px solid #d4dfef;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 750;
}

.pms-assignee-cell {
    min-width: 150px;
}

.pms-assignee-name i {
    flex: 0 0 auto;
    color: #54709d;
    font-size: 10px;
}

.pms-task-filter-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pms-task-filter-grid {
    min-width: 1160px !important;
    border-collapse: separate !important;
    border-spacing: 0;
    table-layout: auto;
}

.pms-task-filter-table {
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
}

.pms-task-filter-table::after {
    display: block;
    padding: 7px 12px;
    color: #64748b;
    background: #f8fafc;
    border-top: 1px solid #e5eaf0;
    content: "Swipe horizontally to view all columns";
    font-size: 10px;
    text-align: right;
}

.pms-task-filter-grid > thead > tr > th {
    padding: 11px 12px !important;
    color: #475569 !important;
    background: #f7f9fc !important;
    border-bottom: 1px solid #dfe5ec !important;
    font-size: 10px !important;
    line-height: 1.35;
    white-space: nowrap !important;
}

.pms-task-filter-grid > tbody > tr > td {
    padding: 12px !important;
    color: #263244;
    background: #fff !important;
    border-bottom: 1px solid #e8edf3 !important;
    font-size: 12px !important;
    line-height: 1.55;
    vertical-align: middle;
}

.pms-task-filter-grid > tbody > tr.pms-filter-row-completed > td {
    background: #f6fbf8 !important;
}

.pms-task-filter-grid > tbody > tr.pms-filter-row-completed > td:first-child {
    box-shadow: inset 3px 0 0 #3b8b68;
}

.pms-task-filter-grid > thead > tr > th:first-child,
.pms-task-filter-grid > tbody > tr > td:first-child {
    width: 64px;
    min-width: 64px;
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: nowrap !important;
}

.pms-task-filter-grid > thead > tr > th:nth-child(2),
.pms-task-filter-grid > tbody > tr > td:nth-child(2) {
    min-width: 180px;
}

.pms-task-filter-grid > thead > tr > th:nth-child(3),
.pms-task-filter-grid > tbody > tr > td:nth-child(3) {
    min-width: 220px;
}

.pms-task-filter-grid > thead > tr > th:nth-child(4),
.pms-task-filter-grid > tbody > tr > td:nth-child(4),
.pms-task-filter-grid > thead > tr > th:nth-child(6),
.pms-task-filter-grid > tbody > tr > td:nth-child(6),
.pms-task-filter-grid > thead > tr > th:nth-child(7),
.pms-task-filter-grid > tbody > tr > td:nth-child(7) {
    min-width: 145px;
}

.pms-task-filter-grid > tbody > tr > td:nth-child(2),
.pms-task-filter-grid > tbody > tr > td:nth-child(3),
.pms-task-filter-grid > tbody > tr > td:nth-child(4),
.pms-task-filter-grid > tbody > tr > td:nth-child(6),
.pms-task-filter-grid > tbody > tr > td:nth-child(7) {
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.pms-task-filter-grid > tbody > tr > td:nth-child(2),
.pms-task-filter-grid > tbody > tr > td:nth-child(3),
.pms-task-filter-grid > tbody > tr > td:nth-child(4) {
    white-space: normal !important;
}

.pms-task-filter-grid > thead > tr > th:nth-child(5),
.pms-task-filter-grid > tbody > tr > td:nth-child(5) {
    width: 430px;
    min-width: 430px;
}

.pms-task-filter-grid > thead > tr > th:nth-child(8),
.pms-task-filter-grid > tbody > tr > td:nth-child(8) {
    width: 155px;
    min-width: 155px;
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: nowrap !important;
}

.pms-task-filter-grid > tbody > tr > td:nth-child(5) > table {
    width: 100% !important;
    min-width: 400px !important;
    margin: 0;
    border: 1px solid #dfe5ec !important;
    border-radius: 6px;
    table-layout: auto;
}

.pms-task-filter-grid > tbody > tr > td:nth-child(5) > table th,
.pms-task-filter-grid > tbody > tr > td:nth-child(5) > table td {
    min-width: 92px;
    max-width: none;
    padding: 7px 8px !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    line-height: 1.35;
}

.pms-task-filter-grid > tbody > tr > td:nth-child(5) > table th {
    color: #536176 !important;
    background: #f3f6f9 !important;
}

.pms-task-filter-grid .badge-dark {
    color: #475569;
    background: #eef2f6;
    border: 1px solid #dde4ec;
}

.pms-muted-badge {
    color: #475569;
    background: #f1f5f9;
}

.pms-status--completed {
    color: #166534;
    background: #dcfce7;
}

.pms-status--wip {
    color: #1e40af;
    background: #dbeafe;
}

.pms-status--pending {
    color: #52525b;
    background: #fef3c7;
}

.pms-status--not-started {
    color: #475569;
    background: #e2e8f0;
}

.pms-icon-btn {
    width: 38px;
    min-height: 38px !important;
    padding: 0 !important;
    color: var(--pms-primary) !important;
    background: #eef2ff !important;
    border: 1px solid #dbeafe !important;
}

.pms-icon-btn-danger {
    color: #b91c1c !important;
    background: #fff7f7 !important;
    border-color: #fee2e2 !important;
}

.pms-action-cell {
    width: 1%;
    min-width: 132px;
    white-space: nowrap !important;
}

.pms-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    white-space: nowrap;
}

.pms-action-cell > a,
.pms-action-cell > form,
.pms-action-cell > button {
    display: inline-flex !important;
    align-items: center;
    margin: 0 5px 0 0 !important;
    vertical-align: middle;
}

.pms-action-cell > a {
    width: auto !important;
    height: auto !important;
}

.pms-action-cell > a > .btn,
.pms-action-cell > a > .btns,
.pms-action-cell > form .btn,
.pms-action-cell > button:not(.pms-action-btn) {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 8px;
}

.pms-action-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
    box-shadow: none !important;
}

.pms-action-view {
    color: #fff !important;
    background: #111 !important;
    border-color: #111 !important;
}

.pms-action-edit {
    color: #111 !important;
    background: linear-gradient(135deg, #e9eaec 0%, #c7c9cc 100%) !important;
    border-color: #c7c9cc !important;
}

.pms-action-delete {
    color: #c81e1e !important;
    background: #fff7f7 !important;
    border-color: #fecaca !important;
}

.pms-action-view:hover,
.pms-action-view:focus {
    color: #fff !important;
    background: #2a2a2a !important;
}

.pms-action-edit:hover,
.pms-action-edit:focus {
    color: #111 !important;
    filter: brightness(.96);
}

.pms-action-delete:hover,
.pms-action-delete:focus {
    color: #fff !important;
    background: #c81e1e !important;
    border-color: #c81e1e !important;
}

/* RemindLegal professional dashboard system */
.pms-shell {
    --pms-primary: #173b7a;
    --pms-primary-hover: #102e63;
    --pms-accent: #242424;
    --pms-accent-soft: #f1f2f3;
    --pms-bg: #f4f7fb;
    --pms-text: #111827;
    --pms-muted: #64748b;
    --pms-border: #dce3ec;
}

.pms-shell .main-sidebar {
    background: linear-gradient(180deg, #fff 0%, #fffdf9 70%, #f9f4ea 100%) !important;
    border-right-color: #e8decb;
    box-shadow: 8px 0 28px rgba(15, 23, 42, .045) !important;
}

.pms-shell .nav-sidebar .nav-link.active,
.pms-shell .nav-sidebar .show > .nav-link {
    color: #15366e !important;
    background: linear-gradient(90deg, #f1f2f3 0%, #fff 100%) !important;
    box-shadow: inset 3px 0 0 var(--pms-accent);
}

.pms-shell .nav-sidebar .nav-link.active .nav-icon {
    color: var(--pms-accent) !important;
}

.pms-shell .nav-sidebar .pms-sidebar-toggle,
.sidebar-collapse.pms-shell .nav-sidebar .pms-sidebar-toggle {
    color: #242424;
    background: #fbf7ef;
    border-color: #e9eaec;
}

.pms-shell .nav-sidebar .pms-sidebar-toggle:hover,
.pms-shell .nav-sidebar .pms-sidebar-toggle:focus-visible {
    color: #173b7a;
    background: #f1f2f3;
    border-color: #c7c9cc;
}

.pms-shell .card,
.pms-shell .small-box.card {
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .045);
}

.pms-shell .btn {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.pms-admin-grid > [class*="col-"] {
    min-width: 0;
}

.pms-kpi-col {
    margin-bottom: 16px;
}

.pms-kpi-card {
    position: relative;
    min-height: 154px;
    height: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 0 13px;
    padding: 18px 18px 13px;
    overflow: hidden;
    color: var(--pms-text);
    background: #fff;
    border: 1px solid var(--pms-border);
    border-radius: 11px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.pms-kpi-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: var(--kpi-tone, var(--pms-primary));
}

.pms-kpi-card:hover,
.pms-kpi-card:focus-visible {
    color: var(--pms-text);
    text-decoration: none;
    border-color: #c7d2e0;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
}

.pms-kpi-card--success { --kpi-tone: #28835d; }
.pms-kpi-card--warning { --kpi-tone: #242424; }
.pms-kpi-card--slate { --kpi-tone: #64748b; }
.pms-kpi-card--gold { --kpi-tone: #242424; }
.pms-kpi-card--navy { --kpi-tone: #173b7a; }

.pms-kpi-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-row: 1;
    color: var(--kpi-tone, var(--pms-primary));
    background: color-mix(in srgb, var(--kpi-tone, var(--pms-primary)) 10%, white);
    border-radius: 10px;
    font-size: 17px;
}

.pms-kpi-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    grid-row: 1;
}

.pms-kpi-label {
    color: #475569;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.pms-kpi-value {
    margin: 2px 0;
    color: #102e63;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.pms-kpi-meta {
    color: #94a3b8;
    font-size: 11px;
}

.pms-kpi-link {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 10px;
    color: #475569;
    border-top: 1px solid #edf1f5;
    font-size: 11px;
    font-weight: 700;
}

.pms-kpi-link i {
    color: var(--kpi-tone, var(--pms-primary));
    font-size: 10px;
}

.pms-panel {
    height: calc(100% - 16px);
    margin-bottom: 16px;
    padding: 18px;
    overflow: hidden !important;
}

.pms-panel-heading {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 16px;
}

.pms-panel-heading--spread {
    justify-content: space-between;
}

.pms-panel-heading--compact {
    margin-bottom: 12px;
}

.pms-panel-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 17px;
    font-weight: 760;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.pms-panel-heading p {
    margin: 3px 0 0;
    color: var(--pms-muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

.pms-panel-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #242424;
    background: var(--pms-accent-soft);
    border-radius: 9px;
}

.pms-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #242424;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pms-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    color: #385275;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.pms-revenue-filter .form-control,
.pms-admin-task-filter .form-control {
    height: 40px;
    min-height: 40px;
    font-size: 13px;
}

.pms-team-revenue {
    min-height: 232px;
}

.pms-revenue-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.pms-revenue-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 9px;
}

.pms-revenue-rank {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #242424;
    background: #f6ead1;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.pms-revenue-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pms-revenue-copy span {
    overflow: hidden;
    color: #475569;
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pms-revenue-copy strong {
    margin-top: 2px;
    color: #173b7a;
    font-size: 15px;
    letter-spacing: -.02em;
}

.pms-admin-task-filter {
    height: auto;
    padding: 16px 18px !important;
}

.pms-pending-card,
.pms-admin-chart-card {
    min-height: 300px !important;
    height: 300px;
}

.pms-pending-list {
    display: flex;
    flex-direction: column;
}

.pms-pending-row {
    min-height: 48px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto 10px;
    align-items: center;
    gap: 9px;
    color: #334155;
    border-bottom: 1px solid #edf1f5;
}

.pms-pending-row:last-child {
    border-bottom: 0;
}

.pms-pending-row:hover {
    color: #173b7a;
    text-decoration: none;
}

.pms-owner-avatar {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #173b7a;
    background: #eaf0f9;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.pms-owner-name {
    overflow: hidden;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pms-pending-row strong {
    color: #173b7a;
    font-size: 15px;
}

.pms-pending-row > i {
    color: #b8c2d0;
    font-size: 8px;
}

.pms-admin-chart-card .inner {
    height: 100%;
    padding: 16px 18px !important;
    text-align: left;
}

.pms-admin-chart-card canvas {
    height: 225px !important;
    max-height: 225px;
}

@media (max-width: 1199.98px) {
    .pms-revenue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pms-kpi-card {
        min-height: 140px;
    }

    .pms-panel {
        height: auto;
        padding: 15px;
    }

    .pms-revenue-filter .col-6:nth-child(2) {
        margin-top: 0 !important;
    }

    .pms-admin-task-filter [class*="col-"] {
        margin-bottom: 10px;
    }

    .pms-pending-card,
    .pms-admin-chart-card {
        height: 290px;
        min-height: 290px !important;
    }
}

@media (max-width: 479.98px) {
    .pms-revenue-grid {
        grid-template-columns: 1fr;
    }

    .pms-panel-heading--spread {
        gap: 8px;
    }
}

.pms-chart-card {
    min-height: 370px !important;
}

.pms-chart-card .inner {
    width: 100%;
    padding: 20px !important;
}

.pms-chart-card canvas {
    width: 100% !important;
    max-height: 295px;
}

/* Compact dashboard: dense enough for daily operations without clipping content. */
.pms-dashboard-grid > [class*="col-"] {
    min-width: 0;
}

.pms-dashboard-grid .pms-stat-col .small-box.card {
    position: relative;
    min-height: 108px;
    margin-bottom: 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    border-color: #dce3ee;
    box-shadow: 0 6px 18px rgba(30, 58, 138, .065);
}

.pms-dashboard-grid .pms-stat-col .small-box.card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, #1e3a8a 0%, #4267b5 62%, #242424 100%);
}

.pms-dashboard-grid .pms-stat-col .small-box > .inner {
    min-height: 72px;
    padding: 12px 14px 8px;
}

.pms-dashboard-grid .pms-stat-col .small-box .inner h3 {
    margin-bottom: 2px;
    font-size: 18px;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.pms-dashboard-grid .pms-stat-col .small-box .inner p {
    font-size: 10.5px;
    line-height: 1.25;
}

.pms-dashboard-grid .pms-stat-col .small-box-footer {
    min-height: 32px;
    padding: 5px 14px;
}

.pms-dashboard-grid .pms-stat-col .pms-handbook-card .inner h3,
.pms-dashboard-grid .pms-handbook-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--pms-text) !important;
    font-size: clamp(14px, 1.15vw, 17px) !important;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
}

.pms-dashboard-filter {
    min-height: 0 !important;
    margin-bottom: 14px;
    padding: 14px !important;
}

.pms-dashboard-filter .form-control {
    min-height: 40px;
    height: 40px;
    font-size: 14px;
}

.pms-dashboard-filter label {
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: .035em;
}

.pms-dashboard-filter .btn {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 750;
}

.pms-filter-actions {
    gap: 6px;
}

.pms-filter-actions .btn {
    margin: 0 !important;
}

.pms-filter-result {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 11px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid var(--pms-border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.pms-filter-result strong {
    color: #111;
    font-size: 18px;
}

.pms-dashboard-grid .pms-chart-card {
    height: 252px;
    min-height: 252px !important;
    background: linear-gradient(145deg, #fff 0%, #fafcff 100%);
}

.pms-dashboard-grid .pms-chart-card .inner {
    height: 100%;
    padding: 16px !important;
}

.pms-dashboard-grid .pms-chart-card canvas {
    height: 195px !important;
    max-height: 195px !important;
}

@media (min-width: 992px) {
    .pms-dashboard-grid .pms-stat-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .sidebar-mini.sidebar-collapse .main-sidebar.sidebar-no-expand,
    .sidebar-mini.sidebar-collapse .main-sidebar.sidebar-no-expand:hover,
    .sidebar-mini.sidebar-collapse .main-sidebar.sidebar-no-expand.sidebar-focused,
    .sidebar-mini.sidebar-collapse .main-sidebar.sidebar-no-expand::before {
        width: 4.6rem !important;
    }

    .sidebar-mini.sidebar-collapse .main-sidebar.sidebar-no-expand:hover .brand-link,
    .sidebar-mini.sidebar-collapse .main-sidebar.sidebar-no-expand.sidebar-focused .brand-link {
        width: 4.6rem !important;
    }

    .sidebar-mini.sidebar-collapse .main-sidebar.sidebar-no-expand:hover .nav-sidebar .nav-link p,
    .sidebar-mini.sidebar-collapse .main-sidebar.sidebar-no-expand.sidebar-focused .nav-sidebar .nav-link p {
        display: none !important;
        visibility: hidden !important;
    }
}

@media (max-width: 479.98px) {
    .pms-dashboard-grid .pms-stat-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.pms-shell .mobilecloseicon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 44px;
    height: 44px;
    color: #475569;
    background: var(--pms-soft);
    border: 0;
    border-radius: 9px;
}

@media (max-width: 991.98px) {
    .pms-shell {
        font-size: 16px;
        padding-bottom: env(safe-area-inset-bottom);
        overflow-x: hidden;
    }

    html,
    body.pms-shell,
    .pms-shell .wrapper,
    .pms-shell .content-wrapper,
    .pms-shell .content,
    .pms-shell .container,
    .pms-shell .container-fluid,
    .pms-shell .card,
    .pms-shell .card-body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.pms-shell,
    .pms-shell .wrapper,
    .pms-shell .content-wrapper {
        overflow-x: hidden;
    }

    /* Prevent iOS/Android WebView auto-zoom when a field receives focus. */
    .pms-shell input,
    .pms-shell select,
    .pms-shell textarea,
    .pms-shell .form-control,
    .pms-shell .custom-select,
    .pms-shell .select2-selection,
    .pms-shell .select2-selection__rendered,
    .pms-shell .select2-search__field {
        font-size: 16px !important;
    }

    .pms-shell .main-header .pms-header-message {
        display: flex !important;
        flex: 1 1 auto;
        margin: 0 6px;
    }

    .pms-shell .main-header .marquee-container {
        display: block !important;
        padding: 6px 9px !important;
    }

    .pms-shell .main-header .marquee-text {
        font-size: 11px;
    }

    .pms-shell .main-header {
        min-height: 58px;
        padding: 0 8px;
        padding-top: env(safe-area-inset-top);
    }

    .pms-shell .content-header {
        padding: 18px 12px 5px;
    }

    .pms-shell .content-header h1 {
        font-size: 18px;
    }

    .pms-shell .content {
        padding: 8px 12px 20px;
    }

    .pms-shell .container-fluid {
        padding-right: 0;
        padding-left: 0;
    }

    .pms-shell .row {
        margin-right: -6px;
        margin-left: -6px;
    }

    .pms-shell .row > [class*="col-"] {
        min-width: 0;
        padding-right: 6px;
        padding-left: 6px;
    }

    .pms-shell .input-group,
    .pms-shell .form-inline,
    .pms-shell .select2-container,
    .pms-shell [style*="width: 200px"],
    .pms-shell [style*="width: 300px"],
    .pms-shell [style*="width: 350px"],
    .pms-shell [style*="width: 420px"],
    .pms-shell [style*="width: 650px"],
    .pms-shell [style*="width: 800px"],
    .pms-shell [style*="width: 1100px"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .pms-shell img,
    .pms-shell video,
    .pms-shell canvas {
        max-width: 100%;
    }

    .pms-shell :where(p, a, span, label, h1, h2, h3, h4, h5, h6) {
        overflow-wrap: break-word;
    }

    .pms-shell .small-box.card {
        min-height: 122px;
        margin-bottom: 12px;
    }

    .pms-shell .small-box > .inner {
        padding: 14px 14px 10px;
    }

    .pms-shell .small-box .inner h3 {
        font-size: 18px;
    }

    .pms-shell .small-box .inner p {
        min-height: 32px;
        font-size: 11px;
    }

    .pms-shell .small-box .small-box-footer {
        padding: 7px 14px;
    }

    .pms-list-toolbar {
        padding: 12px !important;
    }

    .pms-list-toolbar [class*="col-"] {
        margin-top: 8px !important;
    }

    .pms-list-toolbar .justify-content-center,
    .pms-list-toolbar .justify-content-end {
        justify-content: stretch !important;
    }

    .pms-list-toolbar form,
    .pms-list-toolbar .btn,
    .pms-list-toolbar .input-group {
        width: 100%;
    }

    .pms-list-toolbar .input-group .px-3 {
        padding-right: 0 !important;
    }

    .pms-shell table.table th,
    .pms-shell table.table td {
        padding: 10px 8px;
    }

    /* Keep real tables intact on mobile; make them denser with controlled scrolling. */
    .pms-shell .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        border: 1px solid var(--pms-border);
        border-radius: 9px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .pms-shell .table-responsive > table.table {
        width: max-content !important;
        min-width: 100% !important;
        table-layout: auto;
    }

    .pms-shell .pms-task-filter-table > .pms-task-filter-grid {
        min-width: 1160px !important;
        table-layout: auto;
    }

    .pms-shell .pms-task-filter-grid > thead > tr > th,
    .pms-shell .pms-task-filter-grid > tbody > tr > td {
        max-width: none;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .pms-shell .table-responsive > table.table th,
    .pms-shell .table-responsive > table.table td {
        min-width: 90px;
        max-width: 220px;
        padding: 8px 7px !important;
        overflow-wrap: break-word;
        word-break: normal;
        white-space: normal;
        font-size: 12px;
        line-height: 1.35;
    }

    .pms-shell .table-responsive > table.table thead th {
        font-size: 11px;
        word-break: keep-all;
        white-space: nowrap !important;
    }

    .pms-shell .table-responsive > table.table .pms-action-cell {
        min-width: 116px;
        max-width: 140px;
        white-space: nowrap !important;
    }

    .pms-shell .pms-tag-cell,
    .pms-shell .pms-tag-name,
    .pms-shell .pms-assignee-name {
        overflow-wrap: normal !important;
        word-break: keep-all !important;
    }

    .pms-shell .dataTables_wrapper,
    .pms-shell .dataTables_scroll,
    .pms-shell .dataTables_scrollBody {
        width: 100% !important;
        max-width: 100% !important;
    }

    .pms-chart-card {
        min-height: 270px !important;
    }

    .pms-dashboard-grid .pms-chart-card {
        height: 270px;
        min-height: 270px !important;
    }

    .pms-dashboard-grid .pms-chart-card canvas {
        height: 205px !important;
        max-height: 205px !important;
    }

    .pms-shell .card-body,
    .pms-shell .card.p-3,
    .pms-shell .small-box.card.p-3 {
        padding: 14px !important;
    }

    .pms-shell .main-footer {
        padding: 12px;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .pms-shell .table-responsive > table.table {
        min-width: 100% !important;
    }

    .pms-shell .table-responsive > table.table th,
    .pms-shell .table-responsive > table.table td {
        max-width: 200px;
        padding: 7px 6px !important;
        font-size: 11px;
    }

    .pms-shell .pms-task-filter-table > .pms-task-filter-grid {
        min-width: 1160px !important;
    }

    .pms-shell .pms-task-filter-grid > tbody > tr > td:nth-child(5) > table {
        min-width: 400px !important;
    }

    .pms-shell .pms-tag-cell {
        min-width: 120px;
        max-width: 150px;
    }

    .pms-shell .pms-tag-name,
    .pms-shell .pms-assignee-name {
        max-width: 145px;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
        white-space: normal !important;
    }
}

/* Mobile app shell and readable task lists. */
@media (max-width: 767.98px) {
    .pms-shell {
        touch-action: pan-x pan-y;
        overscroll-behavior-y: none;
    }

    .pms-shell .wrapper {
        display: flex;
        flex-direction: column;
        min-height: 100dvh;
    }

    .pms-shell .content-wrapper {
        flex: 1 0 auto;
        min-height: 0 !important;
        padding-bottom: 0;
    }

    .pms-shell .main-footer {
        flex: 0 0 auto;
    }

    .pms-filter-heading-actions {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start !important;
        margin-top: 12px;
    }

    .pms-filter-heading-actions .btn {
        width: auto;
        min-width: 110px;
        min-height: 40px;
        padding: 9px 12px;
        white-space: nowrap;
    }

    .pms-shell .pms-task-list-table {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .pms-shell .table-responsive > .pms-task-list-grid {
        width: max-content !important;
        min-width: 1280px !important;
    }

    .pms-shell .table-responsive > .pms-task-list-grid th,
    .pms-shell .table-responsive > .pms-task-list-grid td {
        min-width: 105px;
        max-width: 200px;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .pms-shell .table-responsive > .pms-task-list-grid thead th {
        white-space: nowrap !important;
    }
}

.pms-task-empty-state {
    padding: 24px 16px;
    color: #52637a;
    text-align: center;
}

/* Clean authentication screens */
.login-page {
    min-height: 100dvh;
    color: #0f172a;
    background: #f8fafc;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-page .login-bg {
    background: #f8fafc !important;
}

.login-page .login-box .card {
    border: 1px solid #e2e8f0;
    border-top: 0;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .09);
}

.login-page .login-box .card-header {
    padding: 24px 24px 12px;
    background: #fff;
    border-bottom: 0;
}

.login-page .login-box .card-header img {
    width: auto !important;
    max-width: 190px;
    max-height: 48px;
    object-fit: contain;
}

.login-page .login-box .card-body {
    padding: 18px 24px 26px;
}

.login-page .form-control,
.login-page .input-group-text {
    min-height: 46px;
    border-color: #cbd5e1;
}

.login-page .form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, .14);
}

.login-page .auth-submit,
.login-page .admin-login-btn {
    min-height: 46px;
    color: #fff !important;
    background: #1e3a8a !important;
    border-color: #1e3a8a !important;
    border-radius: 8px;
    font-weight: 700;
}

.login-page a {
    color: #1e3a8a;
    font-weight: 600;
}

.login-page .login-switch-panel {
    border-left-color: #e2e8f0 !important;
}

@media (max-width: 991.98px) {
    .login-page .login-switch-panel {
        min-height: auto;
        border-left: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pms-shell .marquee-text {
        animation: none !important;
        padding-left: 0 !important;
    }
}

/* Task assignment: one clear entity selector and grouped supporting information. */
.pms-shell .pms-task-form .pms-task-section {
    margin: 8px 0 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.pms-shell .pms-task-form .pms-task-section h2 {
    margin: 0 0 3px;
    color: #1e3a8a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.pms-shell .pms-task-form .pms-task-section p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.pms-shell .pms-task-form .pms-task-profile-label {
    margin: 3px 0 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.pms-shell .pms-task-form .form-control[readonly] {
    background: #f1f5f9;
    color: #334155;
}

.pms-shell .pms-task-form label {
    margin-bottom: 5px;
}

/* Compact, consistent workspace scale: 18 / 16 / 14 / 12. */
.pms-shell,
.pms-shell .form-control,
.pms-shell .custom-select,
.pms-shell .select2-container,
.pms-shell .dropdown-menu,
.pms-shell p,
.pms-shell td {
    font-size: 14px;
}

.pms-shell h1,
.pms-shell h2,
.pms-shell h3,
.pms-shell .content-header h1,
.pms-shell .card-title {
    font-size: 18px;
    line-height: 1.35;
}

.pms-shell h4,
.pms-shell h5,
.pms-shell h6,
.pms-shell .modal-title {
    font-size: 16px;
    line-height: 1.4;
}

.pms-shell label,
.pms-shell .btn,
.pms-shell .nav-link,
.pms-shell .dropdown-item,
.pms-shell th {
    font-size: 14px;
}

.pms-shell small,
.pms-shell .small,
.pms-shell .form-text,
.pms-shell .invalid-feedback,
.pms-shell .text-muted,
.pms-shell .pagination {
    font-size: 12px;
}

.pms-shell .content-header {
    padding: 12px 8px 4px;
}

.pms-shell .content-header .my-2 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.pms-shell .card-body {
    padding: 16px;
}

.pms-shell .pms-compact-form {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.pms-shell .pms-task-form {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.pms-shell .pms-compact-form .card-body,
.pms-shell .pms-client-form .modal-body {
    padding: 16px;
}

.pms-shell .pms-compact-form .mb-3,
.pms-shell .pms-compact-form .form-group {
    margin-bottom: 12px !important;
}

.pms-shell .pms-compact-form .form-control,
.pms-shell .pms-task-form .form-control,
.pms-shell .pms-client-form .form-control,
.pms-shell .pms-compact-form .select2-selection--single,
.pms-shell .pms-task-form .select2-selection--single,
.pms-shell .pms-client-form .select2-selection--single {
    min-height: 40px;
    height: 40px;
}

.pms-shell .pms-task-form textarea.form-control,
.pms-shell .pms-client-form textarea.form-control {
    height: auto;
    min-height: 80px;
}

.pms-shell .pms-password-toggle {
    min-width: 82px;
    min-height: 40px;
    gap: 7px;
    border-color: #cbd5e1;
}

.pms-shell .pms-task-form .pms-task-section {
    margin: 2px 0 12px;
    padding-top: 12px;
}

.pms-shell .pms-task-form .pms-task-section h2,
.pms-shell .pms-task-form .pms-task-profile-label {
    font-size: 14px;
}

.pms-shell .modal-dialog.modal-lg {
    max-width: 860px;
}

.pms-shell .modal-header,
.pms-shell .modal-footer {
    padding: 12px 16px;
}

.pms-shell .main-footer {
    padding: 12px 20px;
    color: #475569;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 767.98px) {
    .pms-shell .card-body,
    .pms-shell .pms-compact-form .card-body,
    .pms-shell .pms-client-form .modal-body {
        padding: 12px;
    }

    .pms-shell .form-control,
    .pms-shell select,
    .pms-shell textarea {
        font-size: 16px;
    }
}

/* Client directory: controlled columns and calm, readable rows. */
.pms-shell .pms-client-toolbar {
    gap: 0;
    padding-bottom: 2px;
}

.pms-shell .pms-client-search {
    width: min(100%, 420px);
}

.pms-shell .table-responsive > table.pms-client-table {
    width: 100% !important;
    min-width: 1080px !important;
    table-layout: fixed;
    margin-bottom: 0;
}

.pms-shell table.pms-client-table th,
.pms-shell table.pms-client-table td {
    min-width: 0;
    max-width: none;
    padding: 10px 9px !important;
    border-right: 0;
    border-left: 0;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.35;
    letter-spacing: 0 !important;
}

.pms-shell table.pms-client-table thead th {
    color: #52637a;
    background: #f8fafc;
    font-size: 12px !important;
    font-weight: 750;
    letter-spacing: .025em;
    white-space: normal !important;
}

.pms-shell table.pms-client-table th:nth-child(1),
.pms-shell table.pms-client-table td:nth-child(1) { width: 4%; text-align: center; }
.pms-shell table.pms-client-table th:nth-child(2),
.pms-shell table.pms-client-table td:nth-child(2) { width: 17%; }
.pms-shell table.pms-client-table th:nth-child(3),
.pms-shell table.pms-client-table td:nth-child(3) { width: 11%; }
.pms-shell table.pms-client-table th:nth-child(4),
.pms-shell table.pms-client-table td:nth-child(4) { width: 8%; }
.pms-shell table.pms-client-table th:nth-child(5),
.pms-shell table.pms-client-table td:nth-child(5) { width: 10%; }
.pms-shell table.pms-client-table th:nth-child(6),
.pms-shell table.pms-client-table td:nth-child(6) { width: 16%; }
.pms-shell table.pms-client-table th:nth-child(7),
.pms-shell table.pms-client-table td:nth-child(7) { width: 10%; }
.pms-shell table.pms-client-table th:nth-child(8),
.pms-shell table.pms-client-table td:nth-child(8) { width: 8%; }
.pms-shell table.pms-client-table th:nth-child(9),
.pms-shell table.pms-client-table td:nth-child(9) { width: 7%; }
.pms-shell table.pms-client-table th:nth-child(10),
.pms-shell table.pms-client-table td:nth-child(10) { width: 9%; }

.pms-shell .pms-client-entity {
    color: #0f172a;
    font-weight: 600;
}

.pms-shell .pms-client-owner {
    font-weight: 600;
}

.pms-shell .pms-client-designation {
    letter-spacing: 0 !important;
    white-space: normal !important;
}

.pms-shell .pms-client-nowrap,
.pms-shell .pms-client-email {
    white-space: nowrap !important;
}

.pms-shell .pms-client-email {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #334155;
    font-size: 12px !important;
}

.pms-shell .pms-client-contact small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    white-space: nowrap;
}

.pms-shell table.pms-client-table .pms-tag-name {
    display: inline-block;
    max-width: 100%;
    padding: 5px 8px;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #dbe4ef;
    border-radius: 7px;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
}

.pms-shell table.pms-client-table .pms-action-cell {
    min-width: 0;
    white-space: nowrap !important;
}

.pms-shell table.pms-client-table .pms-action-group {
    gap: 5px;
}

.pms-shell table.pms-client-table .pms-action-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px !important;
    padding: 0 !important;
}

@media (min-width: 1200px) {
    .pms-shell .pms-client-table-wrap {
        overflow-x: hidden;
    }

    .pms-shell .pms-client-table-wrap > table.pms-client-table {
        min-width: 0 !important;
    }
}

/* Admin client directory: show only the essentials; details remain behind View. */
.pms-shell table.pms-client-table--compact {
    min-width: 820px !important;
    table-layout: fixed;
}

.pms-shell table.pms-client-table--compact th:nth-child(1),
.pms-shell table.pms-client-table--compact td:nth-child(1) {
    width: 5%;
    text-align: center;
}

.pms-shell table.pms-client-table--compact th:nth-child(2),
.pms-shell table.pms-client-table--compact td:nth-child(2) {
    width: 43%;
    white-space: nowrap;
    font-size: 13px;
    letter-spacing: -.015em;
}
.pms-shell table.pms-client-table--compact th:nth-child(2) { width: 43%; }
.pms-shell table.pms-client-table--compact th:nth-child(3),
.pms-shell table.pms-client-table--compact td:nth-child(3) { width: 16%; }
.pms-shell table.pms-client-table--compact th:nth-child(4),
.pms-shell table.pms-client-table--compact td:nth-child(4) { width: 15%; }
.pms-shell table.pms-client-table--compact th:nth-child(5),
.pms-shell table.pms-client-table--compact td:nth-child(5) { width: 8%; }
.pms-shell table.pms-client-table--compact th:nth-child(6),
.pms-shell table.pms-client-table--compact td:nth-child(6) { width: 13%; }

.pms-shell table.pms-client-table--compact td.pms-client-entity {
    overflow: hidden;
    text-overflow: ellipsis;
}

.pms-shell table.pms-client-table--compact .pms-tag-name {
    overflow-wrap: normal;
}

/* Create task: workflow order follows how the form is completed. */
.pms-shell .pms-task-create-card .card-body {
    padding: 16px 18px 8px;
}

.pms-shell .pms-task-create-grid > .pms-task-client-heading { order: 10; }
.pms-shell .pms-task-create-grid > .pms-task-client-field { order: 11; }
.pms-shell .pms-task-create-grid > .pms-task-client-profile { order: 12; }
.pms-shell .pms-task-create-grid > .pms-task-assignment-heading { order: 20; }
.pms-shell .pms-task-create-grid > .pms-task-name-field,
.pms-shell .pms-task-create-grid > .pms-task-fee-field { order: 21; }
.pms-shell .pms-task-create-grid > .pms-task-description-field { order: 22; }
.pms-shell .pms-task-create-grid > .pms-task-contact-heading { order: 30; }
.pms-shell .pms-task-create-grid > .pms-task-contact-name { order: 31; }
.pms-shell .pms-task-create-grid > .pms-task-contact-designation { order: 32; }
.pms-shell .pms-task-create-grid > .pms-task-contact-email { order: 33; }
.pms-shell .pms-task-create-grid > .pms-task-contact-mobile { order: 34; }
.pms-shell .pms-task-create-grid > .pms-task-schedule-heading { order: 40; }
.pms-shell .pms-task-create-grid > .pms-task-schedule-field { order: 41; }
.pms-shell .pms-task-create-grid > .pms-task-responsibility-heading { order: 50; }
.pms-shell .pms-task-create-grid > .pms-task-responsibility-field { order: 51; }

.pms-shell .pms-task-create-grid > .pms-task-section {
    margin: 2px 0 12px;
    padding: 9px 12px;
    background: #f8fafc;
    border-top: 1px solid #dbe4ef;
    border-left: 3px solid #1e4f91;
    border-radius: 0 6px 6px 0;
}

.pms-shell .pms-task-create-grid > .pms-task-section:first-child {
    margin-top: 0;
}

.pms-shell .pms-task-create-grid > .pms-task-section h2 {
    margin: 0;
    color: #173b7a;
    font-size: 16px !important;
    line-height: 1.3;
}

.pms-shell .pms-task-create-grid .pms-task-profile-label {
    margin: 0 0 7px;
    color: #52637a;
    font-size: 12px !important;
}

.pms-shell .pms-task-create-grid .note-editor {
    margin-bottom: 0;
    border-color: #cbd5e1;
    border-radius: 6px;
}

.pms-shell .pms-task-create-grid .note-editable {
    min-height: 108px;
}

.pms-shell .pms-task-submit-bar {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 0 24px;
}

.pms-shell .pms-task-submit-bar .btn {
    min-width: 120px;
}

@media (min-width: 1200px) {
    .pms-shell .pms-client-table-wrap > table.pms-client-table--compact {
        min-width: 0 !important;
    }
}

/* Price list: compact toolbar, full-width table and low-noise notes. */
.pms-shell .pms-price-card {
    overflow: hidden;
}

.pms-shell .pms-price-card .card-header {
    padding: 0;
    background: #fff;
    border-bottom: 1px solid var(--pms-border);
}

.pms-shell .pms-price-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 520px) minmax(150px, 1fr);
    gap: 16px;
    align-items: center;
    margin: 0 !important;
    padding: 14px 18px !important;
}

.pms-shell .pms-price-toolbar h3 {
    font-size: 18px !important;
    font-weight: 750;
    text-transform: capitalize;
}

.pms-shell .pms-price-search {
    width: 100% !important;
    max-width: 520px;
    margin: 0 auto;
}

.pms-shell .pms-price-card #myInput {
    margin: 0 !important;
    padding: 6px 12px !important;
    background-image: none !important;
    font-size: 14px !important;
}

.pms-shell .pms-price-toolbar > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
}

.pms-shell .pms-price-toolbar > [class*="col-"]:last-child {
    justify-self: end;
}

.pms-shell .pms-price-body {
    display: block;
    margin: 0;
}

.pms-shell .pms-price-table-col,
.pms-shell .pms-price-notes-col {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.pms-shell .pms-price-table-wrap {
    min-height: 0 !important;
    height: auto !important;
    overflow-y: visible !important;
}

.pms-shell table.pms-price-table,
.pms-shell #myTable.pms-price-table {
    width: 100% !important;
    min-width: 720px;
    margin: 0;
    border: 0 !important;
    table-layout: fixed;
}

.pms-shell table.pms-price-table th,
.pms-shell table.pms-price-table td,
.pms-shell #myTable.pms-price-table th,
.pms-shell #myTable.pms-price-table td {
    padding: 9px 12px !important;
    border-right: 0 !important;
    border-left: 0 !important;
    text-align: left !important;
    vertical-align: middle;
    white-space: normal !important;
    letter-spacing: 0;
}

.pms-shell table.pms-price-table thead th {
    position: static;
    color: #52637a;
    background: #f8fafc !important;
    font-size: 12px !important;
    font-weight: 750;
}

.pms-shell table.pms-price-table th:nth-child(1),
.pms-shell table.pms-price-table td:nth-child(1) { width: 7%; }
.pms-shell table.pms-price-table th:nth-child(2),
.pms-shell table.pms-price-table td:nth-child(2) { width: 39%; }
.pms-shell table.pms-price-table th:nth-child(3),
.pms-shell table.pms-price-table td:nth-child(3) { width: 13%; }
.pms-shell table.pms-price-table th:nth-child(4),
.pms-shell table.pms-price-table td:nth-child(4) { width: 13%; }
.pms-shell table.pms-price-table th:nth-child(5),
.pms-shell table.pms-price-table td:nth-child(5) { width: 18%; }
.pms-shell table.pms-price-table th:nth-child(6),
.pms-shell table.pms-price-table td:nth-child(6) { width: 10%; text-align: center !important; }

.pms-shell .pms-price-service {
    color: #0f172a;
    font-weight: 600;
}

.pms-shell .pms-price-notes-col {
    border-top: 1px solid var(--pms-border);
}

.pms-shell .pms-price-card .pms-price-notes {
    position: static !important;
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 14px;
    align-items: start;
    margin: 0;
    padding: 12px 18px !important;
    background: #f7f8f9 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.pms-shell .pms-price-card .pms-price-notes h4 {
    margin: 1px 0 0 !important;
    color: #52525b;
    font-size: 14px !important;
    font-weight: 750;
}

.pms-shell .pms-price-card .pms-price-notes ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 28px;
    margin: 0 !important;
    padding-left: 18px !important;
}

.pms-shell .pms-price-card .pms-price-notes li {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 12px !important;
    line-height: 1.4;
}

.pms-shell .pms-price-card .card-footer {
    padding: 8px 14px;
}

@media (max-width: 767.98px) {
    .pms-shell .pms-client-toolbar > [class*="col-"] {
        margin-bottom: 8px;
    }

    .pms-shell .pms-client-toolbar > [class*="col-"]:last-child {
        margin-bottom: 0;
        justify-content: flex-start !important;
    }

    .pms-shell .pms-client-search {
        width: 100%;
    }

    .pms-shell .pms-price-toolbar {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px !important;
    }

    .pms-shell .pms-price-toolbar > [class*="col-"]:last-child {
        justify-self: start;
    }

    .pms-shell .pms-price-card .pms-price-notes {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px !important;
    }

    .pms-shell .pms-price-card .pms-price-notes ul {
        grid-template-columns: 1fr;
    }
}


