body{
    background-color: #f8f8fb;
}
.error{
    color: var(--bs-danger) !important
}
.navbar-brand-box{
    padding: 0 1rem !important;
}
#sidebar-menu .has-arrow:after{
     font-family: "Font Awesome 6 Free"; 
    font-weight: 900; /* solid icons */
    content: "\f104"; /* user icon */
}
.page-title-box h4 {
    text-transform: capitalize;
}

.page-title-box h4 {
    font-size: 22px !important;
    color: #000;
}
.search-box .form-control {
    border-radius: 4px;
    height: 45px;
}
.search-box .form-control {
    padding-left: 30px;
    padding-right: 30px;
}
.search-box .search-icon {
    line-height: 45px;
}
table th a {
    position: relative;
    display: block;
    padding-right: 30px;
    padding: 0.75rem 0.75rem;
    text-transform: capitalize;
}
table th.sorting {
    margin: 0;
    padding: 0;
}
.error{
    margin-top: 4px !important;
}
.dropdown-toggle::after{
    content: none !important;
}
.ml-10{
    margin-left: 10px !important;
  }
  .mt-20{
    margin-top: 20px !important;
  }
  .mt-10{
    margin-top: 10px !important;
  }
.pm-dash {
    --pm-primary: #1d6feb;
    --pm-text: #0f172a;
    --pm-muted: #475569;
    --pm-border: #e6ebf3;
    --pm-green: #16a34a;
    --pm-red: #e5251b;
    --pm-thumb: 44px;
    color: var(--pm-text);
    }
    .pm-dash *,
    .pm-dash *::before,
    .pm-dash *::after {
    box-sizing: border-box;
    }
    .pm-dash a {
    text-decoration: none;
    }
    .pm-green {
    color: var(--pm-green) !important;
    }
    .pm-red {
    color: var(--pm-red) !important;
    }

    /* ---- colour tones (used by cards, sub-icons, panel icons) ---- */
    .pm-stat--blue,
    .pm-tone--blue {
    --bg1: #e9f2ff;
    --bg2: #f6faff;
    --ico-bg: #d6e6fd;
    --ico: #1d6feb;
    }
    .pm-stat--orange,
    .pm-tone--orange {
    --bg1: #fff1e2;
    --bg2: #fff8f0;
    --ico-bg: #fde0c4;
    --ico: #f26a1b;
    }
    .pm-stat--green,
    .pm-tone--green {
    --bg1: #e8f7ea;
    --bg2: #f5fbf6;
    --ico-bg: #d2f0d7;
    --ico: #16a34a;
    }
    .pm-stat--purple,
    .pm-tone--purple {
    --bg1: #f0eafd;
    --bg2: #f8f5ff;
    --ico-bg: #e2d7f8;
    --ico: #7c3aed;
    }
    .pm-stat--red,
    .pm-tone--red {
    --bg1: #fde8ec;
    --bg2: #fff3f5;
    --ico-bg: #facfd6;
    --ico: #e5253a;
    }

    /* ---- grids ---- */
    .pm-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
    }
    .pm-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .pm-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pm-grid--lists {
    margin-bottom: 24px;
    }

    /* ---- filter bar ---- */
    .pm-filter {
    background: #fff;
    border: 1px solid var(--pm-border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    }
    .pm-filter form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 18px;
    margin: 0;
    }
    .pm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 170px;
    max-width: 250px;
    min-width: 0;
    }
    .pm-field label {
    margin: 0;
    font-size: 14px;
    color: var(--pm-muted);
    }
    .pm-field select,
    .pm-field input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--pm-text);
    background: #fff;
    border: 1px solid #cfd8e6;
    border-radius: 6px;
    outline: 0;
    }
    .pm-field select:focus,
    .pm-field input:focus {
    border-color: var(--pm-primary);
    box-shadow: 0 0 0 3px rgba(29, 111, 235, 0.15);
    }
    .pm-actions {
    display: flex;
    gap: 12px;
    }
    .pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 26px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    }
    .pm-btn--primary {
    background: var(--pm-primary);
    color: #fff;
    }
    .pm-btn--primary:hover {
    background: #155ac4;
    color: #fff;
    }
    .pm-btn--light {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: var(--pm-text);
    }
    .pm-btn--light:hover {
    background: #e8eef6;
    color: var(--pm-text);
    }

    /* ---- stat cards ---- */
    .pm-stat {
    background: linear-gradient(135deg, var(--bg1), var(--bg2));
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 10px;
    padding: 14px;
    min-width: 0;
    }
    .pm-stat__top {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    }
    .pm-stat__top > div {
    min-width: 0;
    }
    .pm-stat__icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ico-bg);
    color: var(--ico);
    font-size: 22px;
    }
    .pm-stat__label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pm-text);
    }
    .pm-stat__value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--pm-text);
    }
    .pm-stat--simple {
    display: flex;
    align-items: center;
    min-height: 84px;
    }

    .pm-subs {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    }
    .pm-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    min-width: 0;
    }
    .pm-sub + .pm-sub {
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    }
    .pm-sub__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ico-bg);
    color: var(--ico);
    font-size: 12px;
    }
    .pm-sub__label {
    font-size: 12.5px;
    color: var(--pm-muted);
    line-height: 1.3;
    }
    .pm-sub__value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    }

    /* ---- list panels ---- */
    .pm-panel {
    background: #fff;
    border: 1px solid var(--pm-border);
    border-radius: 10px;
    padding: 16px 20px 6px;
    min-width: 0;
    }
    .pm-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    }
    .pm-panel__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--pm-text);
    }
    .pm-panel__ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ico-bg);
    color: var(--ico);
    font-size: 14px;
    flex: 0 0 30px;
    }
    .pm-panel__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--pm-primary);
    white-space: nowrap;
    }
    .pm-panel__link:hover {
    text-decoration: underline !important;
    }

    .pm-list {
    list-style: none;
    margin: 0;
    padding: 0;
    }
    .pm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--pm-border);
    min-width: 0;
    }
    .pm-item:first-child {
    border-top: 0;
    }
    .pm-item__thumb,
    .pm-avatar {
    flex: 0 0 var(--pm-thumb);
    width: var(--pm-thumb);
    height: var(--pm-thumb);
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
    }
    .pm-item__thumb--round {
    border-radius: 50%;
    }
    .pm-avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3eeff;
    color: var(--pm-primary);
    font-weight: 700;
    font-size: 16px;
    }
    .pm-item__body {
    flex: 1 1 auto;
    min-width: 0;
    }
    .pm-item__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pm-text);
    overflow-wrap: anywhere;
    }
    a.pm-item__title:hover {
    color: var(--pm-primary);
    }
    .pm-item__meta {
    margin: 3px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--pm-muted);
    }
    .pm-item__meta span {
    display: block;
    overflow-wrap: anywhere;
    }
    .pm-item__meta a {
    color: var(--pm-muted);
    font-weight: 600;
    }
    .pm-item__meta a:hover {
    color: var(--pm-primary);
    }
    .pm-item__side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
    }
    .pm-item__date {
    font-size: 12.5px;
    color: var(--pm-muted);
    white-space: nowrap;
    }

    .pm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    }
    .pm-badge--public {
    background: #dcfce7;
    color: #15803d;
    }
    .pm-badge--private {
    background: #fee2e2;
    color: #b91c1c;
    }
    .pm-badge--new {
    background: #dbeafe;
    color: #1d4ed8;
    }

    /* ================= RESPONSIVE ================= */
    @media (max-width: 1199.98px) {
    .pm-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pm-grid--3 > :last-child:nth-child(odd) {
        grid-column: 1/-1;
    } /* no orphan gap */
    .pm-grid--lists {
        grid-template-columns: minmax(0, 1fr);
    }
    }
    @media (max-width: 575.98px) {
    .pm-grid,
    .pm-grid--3,
    .pm-grid--2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 12px;
    }
    .pm-filter {
        padding: 14px;
    }
    .pm-field,
    .pm-field--city {
        flex: 1 1 100%;
        max-width: none;
    }
    .pm-field:not(.pm-field--city) {
        flex: 1 1 calc(50% - 9px);
    }
    .pm-actions {
        width: 100%;
    }
    .pm-btn {
        flex: 1;
    }
    .pm-stat {
        padding: 12px;
    }
    .pm-stat__top {
        gap: 12px;
    }
    .pm-stat__icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    .pm-stat__label {
        font-size: 13px;
    }
    .pm-stat__value {
        font-size: 22px;
    }
    .pm-stat--simple {
        min-height: 72px;
    }
    .pm-sub {
        padding: 8px 10px;
        gap: 10px;
    }
    .pm-sub__value {
        font-size: 16px;
    }
    .pm-panel {
        padding: 14px 14px 4px;
    }
    .pm-panel__title {
        font-size: 15px;
    }
    /* list rows: status/date drop below the text */
    .pm-item {
        flex-wrap: wrap;
        row-gap: 6px;
    }
    .pm-item__side {
        flex: 1 1 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-left: calc(var(--pm-thumb) + 12px);
    }
    }
    @media (max-width: 360px) {
    .pm-dash {
        --pm-thumb: 36px;
    }
    .pm-field:not(.pm-field--city) {
        flex: 1 1 100%;
    }
    .pm-stat__icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .pm-stat__label {
        font-size: 12.5px;
    }
    .pm-stat__value {
        font-size: 20px;
    }
    .pm-sub__icon {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    .pm-sub__label {
        font-size: 12px;
    }
    .pm-item__title {
        font-size: 13px;
    }
    .pm-item__meta,
    .pm-item__date {
        font-size: 12px;
    }
    }