/* BCPL WMS - POC design system */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');

:root {
    --primary: #1f2f61;
    --action: #2563eb;
    --action-hover: #1d4ed8;
    --border: #e2e5eb;
    --bg-page: #f4f5f8;
    --bg-white: #fff;
    --text-dark: #1a1d23;
    --text-med: #4a5068;
    --text-light: #7a7f94;
    --p-green: #e8f5e9;
    --p-green-t: #2e7d32;
    --p-yellow: #fff8e1;
    --p-yellow-t: #f57f17;
    --p-red: #ffeaea;
    --p-red-t: #c62828;
    --p-blue: #e8ebff;
    --p-blue-t: #050c3a;
    --p-font-family: 'Figtree', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--p-font-family);
    background: var(--bg-page);
    color: var(--text-dark);
    font-size: 14px;
    min-height: 100vh;
}

::selection {
    background: var(--primary);
    color: #fff;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-thumb {
    background: #c5c9d6;
    border-radius: 4px;
}

input {
    font-family: var(--p-font-family);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ═══ HEADER (POC) ═══ */
.header {
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    box-shadow: 0 1px 4px rgba(31, 47, 97, 0.08);
    border-bottom: 1px solid var(--border);
}

.logo-box {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1px;
    height: 100%;
}

.nav-btn {
    background: 0 0;
    border: none;
    color: var(--text-med);
    padding: 0 15px;
    height: 100%;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--p-font-family);
    border-bottom: 2.5px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
}

.menu-nav a {
    line-height: 55px;
    font-size: 15px;
}

.nav-btn:hover {
    color: var(--primary);
    background: #f0f2f8;
}

.nav-btn.active {
    font-weight: 600;
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(31, 47, 97, 0.04);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hdr-btn {
    background: rgba(31, 47, 97, 0.04);
    border: 1px solid var(--border);
    color: var(--text-dark);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--p-font-family);
    transition: all 0.15s;
    text-decoration: none;
}

.hdr-btn:hover,
.hdr-btn.open {
    background: rgba(31, 47, 97, 0.08);
    border-color: rgba(31, 47, 97, 0.15);
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.dropdown-wrap {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-white);
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 36px rgba(31, 47, 97, 0.15);
    min-width: 230px;
    padding: 6px 0;
    animation: dropIn 0.18s ease;
    z-index: 300;
    display: none;
}

.dropdown.show {
    display: block;
}

.dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: 0 0;
    color: var(--text-dark);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--p-font-family);
    text-align: left;
    transition: background 0.1s;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.dd-item:hover {
    background: #f0f2f8;
}

.dd-item.active {
    background: #f0f2f8;
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

.dd-icon {
    color: var(--text-light);
    display: flex;
}

.dd-item.active .dd-icon {
    color: var(--primary);
}

.dd-profile-info {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.dd-profile-name {
    font-weight: 600;
    font-size: 14px;
}

.dd-profile-email {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.dd-profile-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #ede7f6;
    color: #5e35b1;
    margin-top: 6px;
}

.dd-divider {
    border-top: 1px solid var(--border);
    margin: 2px 0;
}

.dd-logout {
    color: #c62828 !important;
    font-weight: 600 !important;
}

.dd-logout .dd-icon {
    color: #c62828 !important;
}

/* ═══ PAGE (POC) ═══ */
.page .pagebox-size {
    padding: 28px 32px 60px;
    max-width: 1800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page .pagebox-size {
        padding: 28px 5px 60px;
    }


}

@media (max-width: 390px) {
    .dashboard-date-filter-wrapper {
        margin-bottom: 20px;
    }
}

.breadcrumb {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.breadcrumb .current {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb .sep {
    margin: 0 6px;
    opacity: 0.5;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 22px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbars {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-basis: 60%;
}

.search-wrap {
    position: relative;
    flex: 0 1 315px;
}

.search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13.5px;
    font-family: var(--p-font-family);
    outline: none;
    background: var(--bg-white);
    color: var(--text-dark);
}

.search-input:focus {
    border-color: var(--action);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.toolbar-right {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background: var(--action);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--p-font-family);
    white-space: nowrap;
    transition: background 0.15s;
    text-decoration: none;
}

.btn-danger-outline {
    background: var(--bg-white);
    color: var(--p-red-t);
    border: 1px solid #e0b4b4;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--p-font-family);
    transition: all .15s;
    text-decoration: none;
}

.btn-danger-outline:hover {
    background: var(--p-red-t);
    color: #fff;
}

.btn-primary:hover {
    background: var(--action-hover);
}

.btn-outline {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--p-font-family);
    white-space: nowrap;
    transition: all 0.15s;
}

@media (max-width: 768px) {

    #settingsBtn span,
    #profileBtn span {
        display: none !important;
    }
}

.btn-outline:hover {
    background: #f5f5f5;
}

/* ═══ TABLE (POC) ═══ */

.table-wrap {
    overflow: visible;
    padding: 0;
}

.table-scroll {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(31, 47, 97, 0.05);
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrap thead th {
    background: var(--primary);
    color: #fff;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.table-wrap thead th:last-child {
    text-align: center;
}

.table-wrap tbody tr {
    transition: background 0.1s;
}

.table-wrap tbody tr:hover {
    background: #f8f9fc;
}

.table-wrap tbody td {
    padding: 14px 20px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.td-bold {
    font-weight: 600;
}

.td-mono {
    color: var(--text-med);
    font-family: 'Figtree', monospace;
    font-size: 13px;
}

.td-center {
    text-align: center;
}

.pack-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.pack-bag {
    background: #e3f2fd;
    color: #1565c0;
}

.pack-drum {
    background: #fff3e0;
    color: #e65100;
}

.pack-jumbo_bag {
    background: #e8eaf6;
    color: #3949ab;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-Active,
.status-active {
    background: var(--p-green);
    color: var(--p-green-t);
}

.status-Inactive,
.status-inactive {
    background: var(--p-red);
    color: var(--p-red-t);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.act-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--text-med);
    display: inline-flex;
    align-items: center;
    transition: all 0.15s;
    font-family: var(--p-font-family);
}

.act-btn:hover {
    border-color: var(--action);
    color: var(--action);
}

.empty-row td {
    text-align: center !important;
    padding: 48px 16px !important;
    color: var(--text-light) !important;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 8px;
}

.page-btns {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pg-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-med);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--p-font-family);
    transition: all 0.15s;
}

.pg-btn:hover {
    background: #f0f2f8;
}

.pg-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}

.pg-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ═══ MODAL (POC) ═══ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 40, 0.45);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
    padding: 24px 16px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-white);
    border-radius: 14px;
    width: 94%;
    max-width: 780px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(31, 47, 97, 0.2);
    animation: slideUp 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
    font-size: 1.6rem;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 28px 32px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* File upload zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    color: var(--text-light);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 70px
}

.upload-zone:hover {
    border-color: var(--action);
    background: rgba(37, 99, 235, .03)
}

.upload-zone.has-file {
    border-style: solid;
    border-color: var(--border);
    padding: 12px 16px;
    justify-content: space-between
}

.upload-zone .file-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 13.5px
}

.upload-zone .del-file {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color .15s
}

.upload-zone .del-file:hover {
    color: #c62828
}

/* Form that contains .modal-body (e.g. Product add/edit): form is flex container so body gets space and content is visible */
.modal>form.modal-form-structured,
.modal>form:has(.modal-body) {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.modal>form .modal-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
}

/* Form without .modal-body (e.g. parties): scrollable form + padding so inputs don't touch edges */
.modal>form:not(.modal-form-structured):not(:has(.modal-body)) {
    display: block;
    padding: 28px 32px;
    overflow-y: auto;
}

.form-grid {
    display: grid;
    gap: 18px 20px;
}

.form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.form-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Settings cards (General Settings page) */
.settings-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.settings-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-med);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.field label .req {
    color: #dc2626;
    margin-left: 2px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title .back-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text-med);
    display: flex;
    align-items: center;
    transition: all .15s;
    font-family: var(--p-font-family);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-title .back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* View mode label-value pairs */
.info-grid {
    display: grid;
    gap: 14px 24px
}

.info-item .info-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 3px
}

.info-item .info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark)
}

.btn-remove-shipment-section,
.btn-remove-outward-shipment {
    margin-left: 4px;
    background: var(--bg-white);
    color: #282626;
    border: 1px solid #000000;
    border-radius: 8px;
    padding: 7px 16px 5px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--p-font-family);
    transition: all .15s;
}

.btn-remove-shipment-section:hover,
.btn-remove-outward-shipment:hover {
    background: #282626;
    color: var(--bg-white) !important;
    border-color: #282626 !important;
}

.field input,
.field textarea,
.field-new input,
.field select,
.field-new select {
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13.5px;
    font-family: var(--p-font-family);
    outline: none;
    color: var(--text-dark);
    background: var(--bg-white);
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus {
    border-color: var(--action);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field input.error,
.field select.error {
    border-color: #dc2626;
}

.field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234a5068' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6' stroke='%234a5068' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.field .err-msg {
    font-size: 11.5px;
    color: #dc2626;
    min-height: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 28px 22px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.modal>form .modal-footer {
    flex-shrink: 0;
}

.btn-cancel {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 24px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--p-font-family);
    transition: all 0.15s;
}

.btn-cancel:hover {
    background: #f5f5f5;
}

.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 28px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--p-font-family);
    transition: background 0.15s;
}

.btn-submit:hover {
    background: #162045;
}

/* Toast (POC) */
/* Party master service tags & chips */
.svc-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 4px;
}

.svc-Self {
    background: #ede7f6;
    color: #5e35b1;
}

.svc-PackingStation {
    background: #e6ecfd;
    color: #01195f;
}

.svc-IWT {
    background: #e3f2fd;
    color: #1565c0;
}

.svc-OWT {
    background: #fff3e0;
    color: #e65100;
}

.svc-MfgCo,
.svc-Mfg {
    background: #e8f5e9;
    color: #2e7d32;
}

.svc-Other {
    background: #ffeca5;
    color: #6a5d29;
}


.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 9px !important;
}

.select2-container--default .select2-search--inline .select2-search__field,
.select2-container--default .select2-results__option {
    font-family: var(--p-font-family) !important;
}


.select2-container--default .select2-selection--multiple .select2-selection__choice[title*="IWT"] {
    background-color: #e3f2fd !important;
    border-color: #1565c0 !important;
    color: #1565c0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice[title*="IWT"] button {
    color: #1565c0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice[title*="OWT"] {
    background-color: #fff3e0 !important;
    border-color: #e65100 !important;
    color: #e65100 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice[title*="OWT"] button {
    color: #e65100 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice[title*="Self"] {
    background-color: #ede7f6 !important;
    border-color: #5e35b1 !important;
    color: #5e35b1 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice[title*="Self"] button {
    color: #5e35b1 !important;
}

.select2-selection__choice[title*="Mfgco" i] {
    background-color: #e8f5e9 !important;
    border-color: #2e7d32 !important;
    color: #2e7d32 !important;
}

.select2-selection__choice[title*="Mfgco" i] button {
    color: #2e7d32 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice[title*="PackingStation"] {
    background-color: #e6ecfd !important;
    border-color: #01195f !important;
    color: #01195f !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice[title*="PackingStation"] button {
    color: #01195f !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice[title*="Other"] {
    background-color: #ffeca5 !important;
    border-color: #6a5d29 !important;
    color: #6a5d29 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice[title*="Other"] button {
    color: #6a5d29 !important;
}

/* Party master type options as chips */
.type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 2px;
}

.type-opt {
    display: none;
}

.type-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-med);
    user-select: none;
}

.type-label:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.type-opt:checked+.type-label {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Party master person/email/files layout */
.person-section {
    background: #fafbfd;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 18px;
}

.person-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.person-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.person-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.person-row .field {
    flex: 1;
}

.del-person {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
    margin-bottom: 8px;
}

.del-person:hover {
    color: #c62828;
}

.btn-add-person {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--p-font-family);
    transition: background 0.15s;
}

.btn-add-person:hover {
    background: #162045;
}

.email-section {
    margin-top: 18px;
}

.email-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-med);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.tag-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    min-height: 40px;
    cursor: text;
    transition: border-color 0.15s;
}

.tag-wrap:focus-within {
    border-color: var(--action);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: #fff;
    padding: 3px 8px 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.tag .tag-x {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: 0;
    line-height: 1;
}

.tag .tag-x:hover {
    color: #fff;
}

.tag-input {
    border: none;
    outline: none;
    font-size: 13px;
    font-family: var(--p-font-family);
    flex: 1;
    min-width: 100px;
    padding: 2px 0;
    background: transparent;
    color: var(--text-dark);
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-light);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    margin-top: 6px;
}

.upload-zone:hover {
    border-color: var(--action);
    background: rgba(37, 99, 235, 0.03);
}

.files-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafbfd;
}

.file-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #e3f2fd;
    color: #1565c0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-date {
    font-size: 11px;
    color: var(--text-light);
}

.file-action {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
    flex-shrink: 0;
}

.file-action:hover {
    color: var(--action);
}

.file-action.del:hover {
    color: #c62828;
}

.files-grid-single {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .files-grid {
        grid-template-columns: 1fr;
    }
}

/* Toast (POC) */
.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #2e7d32;
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 2000;
    display: none;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.3s ease;
    font-family: var(--p-font-family);
}

.toast.show {
    display: flex;
}

/* Legacy / compatibility */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 32px;
}

.card {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(31, 47, 97, 0.05);
    margin: 20px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th,
.table td {
    padding: 14px 20px;
    text-align: left;
}

.table thead {
    background: var(--primary);
    color: #fff;
}

.table thead th {
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.table tbody tr:hover {
    background: #f8f9fc;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 13.5px;
    font-family: var(--p-font-family);
    outline: none;
    color: var(--text-dark);
    background: var(--bg-white);
}

.field input::placeholder,
input[type="date"]::placeholder {
    color: #adadad;
}

select:disabled {
    color: #adadad;
    /* Change the text color */
    background-color: #eee;
    /* Change the background color */
    opacity: 1;
    /* Ensure full visibility if opacity was lowered by default */
}

.form-control:focus {
    border-color: var(--action);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}



.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: var(--p-green);
    color: var(--p-green-t);
}

.badge-warning {
    background: var(--p-yellow);
    color: var(--p-yellow-t);
}

.badge-alert {
    background: var(--p-red);
    color: var(--p-red-t);
}

.badge-info {
    background: var(--p-blue);
    color: var(--p-blue-t);
}

.badge-muted {
    background: #f0f0f0;
    color: #888
}

/* Product / generic modal field error highlight */
.field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.cat-Company {
    background: #ede7f6;
    color: #5e35b1
}

.cat-Vehicle,
.cat-Vehicles {
    background: #e3f2fd;
    color: #1565c0
}

.cat-Compliance {
    background: #fff3e0;
    color: #e65100
}

.cat-Assets {
    background: #e8f5e9;
    color: #2e7d32
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: var(--p-green);
    color: var(--p-green-t);
    border: 1px solid var(--p-green-t);
    font-weight: 600;
}

.password-wrapper {
    position: relative;
}

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

.password-toggle {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 40, 0.45);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-backdrop.show {
    display: flex;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.form-row .field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row .form-col {
    flex: 1 1 0;
    min-width: 0;
}

.lifetime-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-med);
    padding-top: 28px;
    white-space: nowrap;
}

.lifetime-check label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lifetime-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    font-family: var(--p-font-family);
}

.btn-secondary {
    background: #f0f2f8;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-danger {
    background: var(--p-red);
    color: var(--p-red-t);
}

.btn-danger:hover {
    color: var(--p-red-t) !important;
    border-color: var(--p-red-t) !important;
}

.icon-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--text-med);
    display: inline-flex;
    align-items: center;
    transition: all 0.15s;
    font-family: var(--p-font-family);
}

.icon-btn svg {
    width: 16px;
    height: 16px;
}

.icon-btn:hover {
    border-color: var(--action);
    color: var(--action);
}

input[type="text"]:read-only {
    background-color: #f8f9fc;
    cursor: not-allowed;
}

input[type="checkbox"] {
    cursor: pointer;
}

.settings-wrapper {
    position: relative;
}

@media (max-width: 900px) {
    .header {
        padding: 0 12px;
    }

    .nav-btn {
        padding: 0 10px;
        font-size: 12px;
    }

    .page,
    .container {
        padding: 20px 16px;
    }

    .form-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .header-nav {
        display: none;
    }

    .form-grid-3,
    .form-grid-4 {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
    }

    .search-wrap {
        flex: 1 1 100%;
    }
}

.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
    width: 100%;
}

.tab-pill {
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-med);
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--p-font-family);
    border-bottom: 2.5px solid transparent;
    transition: all .15s;
    margin-bottom: -2px;
}

.tab-pill.tab-pill-active {
    color: var(--primary);
    font-weight: 600;
    border-bottom-color: var(--primary);
}

.custom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
}

.dt-input {
    padding: 5px 10px !important;
    border-radius: 6px !important;
    border: 1px solid var(--border) !important;
    font-size: 13px;
    font-family: var(--p-font-family);
    outline: none;
    background: var(--bg-white);
    color: var(--text-dark) !important;
}

div.dt-container .dt-info {
    font-size: 13.5px;
    font-weight: 500;
    font-family: var(--p-font-family);
}

.dt-container .dt-paging {
    font-size: 13.5px;
    font-weight: 500;
    font-family: var(--p-font-family);
}

div.dt-container .dt-paging .dt-paging-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    border: 1px solid var(--border) !important;
    background: var(--bg-white) !important;
    color: var(--text-med) !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer !important;
    font-family: var(--p-font-family);
    transition: all .15s !important;
    margin: 0 2px !important;
}

#documents-table_wrapper .dt-paging-button.current,
#documents-table_wrapper .dt-paging-button:hover,
#inward-table_wrapper .dt-paging-button.current,
#inward-table_wrapper .dt-paging-button:hover,
#outward-table_wrapper .dt-paging-button.current,
#outward-table_wrapper .dt-paging-button:hover,
#expenses-table_wrapper .dt-paging-button.current,
#expenses-table_wrapper .dt-paging-button:hover,
#users-table_wrapper .dt-paging-button.current,
#users-table_wrapper .dt-paging-button:hover,
#parties-table_wrapper .dt-paging-button.current,
#parties-table_wrapper .dt-paging-button:hover,
#products-table_wrapper .dt-paging-button.current,
#products-table_wrapper .dt-paging-button:hover,
#invoice-list-table_wrapper .dt-paging-button.current,
#invoice-list-table_wrapper .dt-paging-button:hover,
#report-table_wrapper .dt-paging-button.current,
#report-table_wrapper .dt-paging-button:hover,
#lots-table_wrapper .dt-paging-button.current,
#lots-table_wrapper .dt-paging-button:hover,
#logs-table_wrapper .dt-paging-button.current,
#logs-table_wrapper .dt-paging-button:hover,
#reconciliation-table_wrapper .dt-paging-button.current,
#reconciliation-table_wrapper .dt-paging-button:hover {
    background: #484c59 !important;
    color: #ffffff !important;
    border-color: #484c59 !important;
}

.report-fields-scroll-subheading {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color: #1f2f61;
}

.report-fields-scroll-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 7px;
    cursor: pointer;
}

.report-fields-scroll-label {
    display: block;
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.report-fields-scroll-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.report-fields-scroll-label .checkmark-box {
    position: absolute;
    top: 0;
    left: 0;
    height: 17px;
    width: 17px;
    border-radius: 5px;
    border: 1px solid #707070;
    cursor: pointer;
}

.report-fields-scroll-label input:checked~.checkmark-box {
    background-color: var(--primary);
    border-color: var(--primary);
}

.report-fields-scroll-label .checkmark-box:after {
    content: "";
    display: none;
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--bg-white);
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.report-fields-scroll-label input:checked~.checkmark-box:after {
    display: block;
}

table.dataTable th.dt-type-numeric div.dt-column-header,
table.dataTable th.dt-type-date div.dt-column-header {
    flex-direction: inherit !important;
}

.filter-row .form-control {
    padding: 0.4rem 0.55rem !important;
}

.copyright {
    text-align: center;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    bottom: 0;
    width: 100%;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Inline editable table */
.ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px
}

.ledger-table thead th {
    background: #f0f2f8;
    color: var(--text-dark);
    padding: 10px 5px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    border-bottom: 2px solid var(--border);
    text-align: left;
    white-space: nowrap
}

.ledger-table tbody td {
    padding: 8px 5px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle
}

.ledger-table tbody tr:hover {
    background: #f8f9fc
}

.ledger-table input {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--p-font-family);
    outline: none;
    width: 100%;
    min-width: 80px
}

.ledger-table input:focus {
    border-color: var(--action);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .08)
}

.ledger-table input.input-error,
input.input-error {
    border-color: #c62828;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.15);
    background: #ffebee;
}

/* Persistent error panel (ledger/shipment) - user closes manually */
.error-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    left: auto;
    max-width: 480px;
    background: #c62828;
    color: #fff;
    padding: 14px 18px 14px 44px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--p-font-family);
}

.error-panel.show {
    display: flex;
}

.error-panel .error-panel-msg {
    flex: 1;
}

.error-panel .error-panel-close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.error-panel .error-panel-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.error-panel .error-panel-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.del-row-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color .15s;
    font-size: 18px;
}

.del-row-btn:hover {
    color: #c62828
}

/* Shipment section inside view */
.shipment-section {
    background: #fafbfd;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px
}

.shipment-header {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

/* Inline editable table */
.ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px
}

.filter-select {
    padding: 8px 32px 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--p-font-family);
    outline: none;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234a5068' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6' stroke='%234a5068' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center
}

.btn-dark {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--p-font-family);
    white-space: nowrap;
    transition: background .15s;
    text-decoration: none;
}


.btn-dark:hover {
    background: #162045;
}

.btn-print-fifo-link {
    margin-left: 8px;
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
}

.btn-print-fifo-link:hover {
    color: #c2410c !important;
}

#stock-table-reports thead th,
#stock-table-reports1 thead th {
    border-right: 1px solid #68749b;
    padding: 10px 5px !important;
}

#stock-table-reports tfoot td,
#stock-table-reports1 tfoot td {
    padding: 10px 5px !important;
}

#stock-table-reports tbody td,
#stock-table-reports1 tbody td {
    border-right: 1px solid var(--border);
    padding: 10px 5px !important;
}


/* Info grid for view */
.info-bar {
    background: #fff;
    border-radius: 5px;
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    margin-bottom: 20px;
    padding: 15px;
    border-bottom: 1px solid var(--border)
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.info-item .lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .3px
}

.info-item .val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark)
}


.date-input {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--p-font-family);
    background: var(--bg-white);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

#inward-media-modal .media-grid,
#outward-media-modal .media-grid,
#outward-list-media-grid,
#inward-list-media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-grid-img {
    flex-basis: 23%;
}

.media-grid-video {
    flex-basis: 100%;
}

.media-grid-video .media-thumb {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.media-grid-video .media-thumb video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#inward-files-list,
#outward-files-list {
    max-height: 220px;
    overflow: auto;
    margin-bottom: 10px;
    font-size: 12px;
}

#inward-files-list .inward-files-row a,
#inward-files-list .inward-file-row a,
#outward-files-list .outward-files-row a,
#outward-files-list .outward-file-row a {
    font-size: 12px;
    text-decoration: underline;
}

#inward-files-list .inward-files-row button,
#inward-files-list .inward-file-row button,
#outward-files-list .outward-files-row button,
#outward-files-list .outward-file-row button {
    font-size: 11px;
    padding: 2px 6px;
}

#inward-files-error,
#outward-files-error {
    display: none;
    margin-bottom: 10px;
    font-size: 12px;
}

.report-main-panel {
    position: relative;
    overflow-x: scroll;
}

.report-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.report-filter-left {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.dashboard-subheading {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
}

.dashboard-subheading1 {
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 600;
}

.dashboard-listgrid {
    display: flex;
    flex-direction: column;
    gap: 7px 2px;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Dashboard date range picker tweaks */
.dashboard-date-filter-wrapper {
    position: relative;
    display: inline-block;
}

.daterangepicker {
    font-size: 12px;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    border: 1px solid #e5e7eb;
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: var(--p-font-family);
}

.daterangepicker.ltr.show-ranges.opensleft.show-calendar {
    width: 650px !important;
}

.daterangepicker.ltr.show-ranges.opensright.show-calendar {
    width: 650px !important;
}

.daterangepicker .drp-calendar {
    width: 240px;
}

.daterangepicker .ranges {
    width: 150px;
}

.daterangepicker .drp-buttons .btn {
    padding: 4px 10px;
    font-size: 11px;
}