/**
 * Shahna Star — Company Panel Design System & Shell (Section 00 & Section 01)
 * Colors: Navy #102940, Gold #e6ad35, Soft Gold #fff6df, Background #f5f7fa, Border #dce4eb,
 * Secondary Text #617286, Success #216849, Danger #b43c38, Cairo font, Radii 16/10/100.
 * Direction: Full Arabic RTL default & English LTR support.
 */

:root {
    --cp-navy: #102940;
    --cp-navy-dark: #0a1b2b;
    --cp-navy-surface: #17324d;
    --cp-gold: #e6ad35;
    --cp-gold-light: #fff6df;
    --cp-gold-dark: #8a5b00;
    --cp-bg: #f5f7fa;
    --cp-card: #ffffff;
    --cp-border: #dce4eb;
    --cp-border-light: #edf2f7;
    --cp-text: #102940;
    --cp-text-muted: #617286;
    --cp-text-light: #8fa3b8;
    --cp-success: #216849;
    --cp-success-light: #eaf5ef;
    --cp-danger: #b43c38;
    --cp-danger-light: #fceeee;
    --cp-warning: #f39c12;
    --cp-warning-light: #fff6df;
    --cp-info: #34516b;
    --cp-info-light: #e6ecf3;

    --cp-r-lg: 16px;
    --cp-r-md: 10px;
    --cp-r-sm: 8px;
    --cp-r-pill: 100px;

    --cp-font: 'Cairo', system-ui, -apple-system, sans-serif;
    --cp-sidebar-w: 248px;
    --cp-topbar-h: 64px;

    --cp-shadow: 0 1px 3px rgba(16, 41, 64, 0.05), 0 4px 12px rgba(16, 41, 64, 0.04);
    --cp-shadow-lg: 0 10px 30px rgba(16, 41, 64, 0.12);
}

/* Base Body & Container */
body.company-panel {
    font-family: var(--cp-font) !important;
    background-color: var(--cp-bg) !important;
    color: var(--cp-text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body.company-panel .dashboard-main-wrapper {
    background-color: var(--cp-bg) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Foundations (Section 00) */
body.company-panel h1,
body.company-panel .cp-page-title {
    font-size: 27px;
    font-weight: 700;
    color: var(--cp-navy);
    line-height: 1.3;
}

body.company-panel h2,
body.company-panel .cp-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--cp-navy);
    line-height: 1.4;
}

body.company-panel .cp-body-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--cp-navy);
}

body.company-panel .cp-table-text,
body.company-panel .table td,
body.company-panel .table th {
    font-size: 13.5px;
    font-weight: 500;
}

body.company-panel .cp-caption,
body.company-panel .text-muted,
body.company-panel small {
    font-size: 12px;
    font-weight: 400;
    color: var(--cp-text-muted) !important;
}

/* Direction: RTL Default & Layout Dimensions */
html[dir="rtl"] body.company-panel .nav-left-sidebar {
    right: 0 !important;
    left: auto !important;
    width: var(--cp-sidebar-w) !important;
}

html[dir="rtl"] body.company-panel .dashboard-header .navbar.fixed-top {
    right: var(--cp-sidebar-w) !important;
    left: 0 !important;
    width: calc(100% - var(--cp-sidebar-w)) !important;
}

html[dir="rtl"] body.company-panel .dashboard-ecommerce,
html[dir="rtl"] body.company-panel .dashboard-wrapper {
    margin-right: var(--cp-sidebar-w) !important;
    margin-left: 0 !important;
    padding-top: var(--cp-topbar-h) !important;
}

html[dir="ltr"] body.company-panel .nav-left-sidebar {
    left: 0 !important;
    right: auto !important;
    width: var(--cp-sidebar-w) !important;
}

html[dir="ltr"] body.company-panel .dashboard-header .navbar.fixed-top {
    left: var(--cp-sidebar-w) !important;
    right: 0 !important;
    width: calc(100% - var(--cp-sidebar-w)) !important;
}

html[dir="ltr"] body.company-panel .dashboard-ecommerce,
html[dir="ltr"] body.company-panel .dashboard-wrapper {
    margin-left: var(--cp-sidebar-w) !important;
    margin-right: 0 !important;
    padding-top: var(--cp-topbar-h) !important;
}

/* Content Area */
body.company-panel .main-content {
    padding: 24px 32px;
    flex: 1 0 auto;
}

/* -------------------------------------------------------------
   TOP NAVBAR (Section 01)
   ------------------------------------------------------------- */
body.company-panel .dashboard-header .navbar {
    height: var(--cp-topbar-h) !important;
    min-height: var(--cp-topbar-h) !important;
    background-color: var(--cp-card) !important;
    border-bottom: 1px solid var(--cp-border) !important;
    padding: 0 28px !important;
    box-shadow: none !important;
    z-index: 1020;
    display: flex;
    align-items: center;
}

body.company-panel .dashboard-header .navbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Breadcrumb indicator in topbar */
body.company-panel .cp-topbar-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cp-text-muted);
    margin: 0;
}

/* Topbar Action Buttons */
body.company-panel .cp-btn-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-r-md);
    color: var(--cp-navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

body.company-panel .cp-btn-lang:hover {
    background: var(--cp-bg);
    border-color: #c8d3de;
    color: var(--cp-navy);
}

body.company-panel .cp-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-r-md);
    color: var(--cp-text-muted);
    font-size: 15px;
    position: relative;
    text-decoration: none;
    transition: all 0.2s;
}

body.company-panel .cp-btn-icon:hover {
    background: var(--cp-bg);
    color: var(--cp-navy);
}

body.company-panel .cp-btn-icon .indicator,
body.company-panel .cp-btn-icon .mobile-notification {
    position: absolute;
    top: 9px;
    inset-inline-end: 9px;
    width: 8px;
    height: 8px;
    background-color: var(--cp-danger);
    border-radius: 50%;
    border: 1.5px solid #fff;
}

body.company-panel .cp-btn-task {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 16px;
    background-color: var(--cp-gold) !important;
    border: none !important;
    border-radius: var(--cp-r-md) !important;
    color: var(--cp-navy) !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

body.company-panel .cp-btn-task:hover {
    opacity: 0.92;
    color: var(--cp-navy) !important;
}

/* User Pill in Topbar */
body.company-panel .cp-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 12px 0 6px;
    background-color: var(--cp-bg);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-r-pill);
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s;
}

html[dir="rtl"] body.company-panel .cp-user-pill {
    padding: 0 6px 0 12px;
}

body.company-panel .cp-user-pill:hover {
    background-color: #edf2f7;
    border-color: #c8d3de;
}

body.company-panel .cp-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--cp-navy);
    color: var(--cp-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    object-fit: cover;
}

body.company-panel .cp-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--cp-navy);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------------------------------------------------
   SIDEBAR (Section 01)
   ------------------------------------------------------------- */
body.company-panel .nav-left-sidebar {
    background-color: var(--cp-navy) !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    position: fixed !important;
    box-shadow: none !important;
    z-index: 1025;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

body.company-panel .nav-left-sidebar::-webkit-scrollbar {
    width: 5px;
}
body.company-panel .nav-left-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Sidebar Logo Card */
body.company-panel .cp-sidebar-brand-card {
    background: #ffffff;
    border-radius: 12px;
    height: 68px;
    margin: 14px 14px 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

body.company-panel .cp-sidebar-brand-card img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}

body.company-panel .cp-sidebar-brand-card {
    height: 56px;
    padding: 6px 10px;
}

body.company-panel .cp-company-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    color: var(--cp-navy);
    text-decoration: none;
}

body.company-panel .cp-company-brand:hover { color: var(--cp-navy); text-decoration: none; }
body.company-panel .cp-company-brand img {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
}

body.company-panel .cp-company-brand-initials {
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--cp-navy);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

body.company-panel .cp-company-brand-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
    text-align: start;
}

body.company-panel .cp-company-brand-copy strong {
    overflow: hidden;
    color: var(--cp-navy);
    font-family: var(--cp-font);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.company-panel .cp-company-brand-copy small {
    color: var(--cp-text-muted);
    font-family: var(--cp-font);
    font-size: 9.5px;
    line-height: 1.25;
}

body.company-panel .cp-mobile-company-brand { display: flex; align-items: center; gap: 10px; }
body.company-panel .cp-mobile-company-brand .logo { width: 38px; height: 38px; object-fit: contain; }

/* Section Header Divider */
body.company-panel .nav-left-sidebar .nav-divider {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--cp-text-light) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 18px 6px 18px !important;
    line-height: normal !important;
}

/* Menu Items */
body.company-panel .nav-left-sidebar .navbar-nav {
    width: 100%;
    padding: 0 0 40px 0;
}

body.company-panel .nav-left-sidebar .navbar-nav > .nav-item {
    margin: 2px 12px;
}

body.company-panel .nav-left-sidebar .navbar-nav > .nav-item > .nav-link {
    color: #d7e0ea !important;
    font-family: var(--cp-font) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 14px !important;
    border-radius: var(--cp-r-md) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: all 0.2s ease;
    text-decoration: none;
}

body.company-panel .nav-left-sidebar .navbar-nav > .nav-item > .nav-link .cp-nav-text-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.company-panel .nav-left-sidebar .navbar-nav > .nav-item > .nav-link i,
body.company-panel .nav-left-sidebar .navbar-nav > .nav-item > .nav-link .svg-inline--fa {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--cp-text-light);
    margin: 0;
}

/* Hover State */
body.company-panel .nav-left-sidebar .navbar-nav > .nav-item > .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

body.company-panel .nav-left-sidebar .navbar-nav > .nav-item > .nav-link:hover i {
    color: #ffffff !important;
}

/* Active Main Group / Item (Figma Gold Block) */
body.company-panel .nav-left-sidebar .navbar-nav > .nav-item > .nav-link.active,
body.company-panel .nav-left-sidebar .navbar-nav > .nav-item.active > .nav-link {
    background-color: var(--cp-gold) !important;
    color: var(--cp-navy) !important;
    font-weight: 700 !important;
}

body.company-panel .nav-left-sidebar .navbar-nav > .nav-item > .nav-link.active i,
body.company-panel .nav-left-sidebar .navbar-nav > .nav-item.active > .nav-link i {
    color: var(--cp-navy) !important;
}

/* Arrow / Chevron for Collapsible Items */
body.company-panel .nav-left-sidebar .nav-link[data-toggle="collapse"]::after {
    display: inline-block;
    border: none !important;
    content: "\f054" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 11px !important;
    position: static !important;
    transform: none !important;
    transition: transform 0.25s ease;
    opacity: 0.6;
    margin-inline-end: 6px;
}

html[dir="rtl"] body.company-panel .nav-left-sidebar .nav-link[data-toggle="collapse"]::after {
    content: "\f053" !important;
}

body.company-panel .nav-left-sidebar .nav-link[data-toggle="collapse"][aria-expanded="true"]::after {
    transform: rotate(90deg) !important;
    opacity: 1;
}

html[dir="rtl"] body.company-panel .nav-left-sidebar .nav-link[data-toggle="collapse"][aria-expanded="true"]::after {
    transform: rotate(-90deg) !important;
}

/* Submenu Container & Links */
body.company-panel .nav-left-sidebar .submenu {
    background: rgba(10, 27, 43, 0.55);
    border-radius: var(--cp-r-md);
    padding: 6px 4px;
    margin: 4px 0 6px 0;
}

body.company-panel .nav-left-sidebar .submenu .nav .nav-item {
    margin: 1px 4px;
}

body.company-panel .nav-left-sidebar .submenu .nav .nav-item .nav-link {
    color: #a9bed1 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 7px 12px !important;
    border-radius: var(--cp-r-sm) !important;
    display: block !important;
    transition: all 0.2s ease;
}

body.company-panel .nav-left-sidebar .submenu .nav .nav-item .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Active Submenu Item: Light Gold Background with Gold Stripe */
body.company-panel .nav-left-sidebar .submenu .nav .nav-item .nav-link.active {
    background-color: transparent !important;
    color: var(--cp-gold) !important;
    font-weight: 700 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-inline-start: 12px !important;
}

body.company-panel .nav-left-sidebar .submenu .nav .nav-item .nav-link.active::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-inline-end: 8px;
    border-radius: 50%;
    background: var(--cp-gold);
    vertical-align: middle;
}

/* -------------------------------------------------------------
   DROPDOWNS & MENUS (Section 01)
   ------------------------------------------------------------- */
body.company-panel .dropdown-menu {
    border: 1px solid var(--cp-border) !important;
    border-radius: 12px !important;
    box-shadow: var(--cp-shadow-lg) !important;
    padding: 6px !important;
    background-color: #ffffff !important;
}

body.company-panel .dropdown-item {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--cp-navy) !important;
    border-radius: var(--cp-r-sm) !important;
    padding: 8px 12px !important;
    transition: background-color 0.15s;
}

body.company-panel .dropdown-item:hover {
    background-color: var(--cp-bg) !important;
}

body.company-panel .dropdown-item.active,
body.company-panel .dropdown-item:active {
    background-color: var(--cp-gold-light) !important;
    color: var(--cp-navy) !important;
    font-weight: 700 !important;
}

/* User Profile Dropdown */
body.company-panel .cp-profile-dropdown {
    min-width: 260px;
    padding: 10px !important;
}

body.company-panel .cp-profile-dropdown .cp-profile-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px 12px 6px;
    border-bottom: 1px solid var(--cp-border);
    margin-bottom: 6px;
}

body.company-panel .cp-profile-dropdown .cp-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cp-navy);
    color: var(--cp-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

body.company-panel .cp-profile-dropdown .cp-profile-meta b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--cp-navy);
}

body.company-panel .cp-profile-dropdown .cp-profile-meta small {
    display: block;
    font-size: 11.5px;
    color: var(--cp-text-muted);
}

body.company-panel .cp-profile-dropdown .dropdown-item.cp-logout {
    color: var(--cp-danger) !important;
    font-weight: 600 !important;
}

body.company-panel .cp-profile-dropdown .dropdown-item.cp-logout:hover {
    background-color: var(--cp-danger-light) !important;
}

/* Notifications Dropdown */
body.company-panel .notification-dropdown {
    width: 380px !important;
    max-width: 90vw !important;
    padding: 0 !important;
    border-radius: 14px !important;
}

body.company-panel .notification-dropdown .notification-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--cp-navy) !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid var(--cp-border) !important;
    background: #fff;
    border-radius: 14px 14px 0 0;
}

body.company-panel .notification-dropdown .notification-list {
    max-height: 420px;
    overflow-y: auto;
}

body.company-panel .notification-dropdown .list-group-item {
    padding: 12px 16px !important;
    border: none !important;
    border-bottom: 1px solid var(--cp-border) !important;
    background: #ffffff;
    transition: background-color 0.15s;
    text-decoration: none;
    color: var(--cp-navy) !important;
}

body.company-panel .notification-dropdown .list-group-item:last-child {
    border-bottom: none !important;
}

body.company-panel .notification-dropdown .list-group-item.active,
body.company-panel .notification-dropdown .list-group-item.unread {
    background-color: var(--cp-gold-light) !important;
}

body.company-panel .notification-dropdown .list-group-item:hover {
    background-color: #edf2f7 !important;
}

body.company-panel .notification-dropdown .notification-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

body.company-panel .notification-dropdown .cp-notif-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--cp-navy);
    color: var(--cp-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

body.company-panel .notification-dropdown .notification-list-user-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--cp-navy) !important;
    display: block;
}

body.company-panel .notification-dropdown .cp-notif-msg {
    font-size: 13px;
    color: #2b4257;
    margin: 2px 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.company-panel .notification-dropdown .notification-date {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--cp-text-muted) !important;
}

/* -------------------------------------------------------------
   IMPERSONATION & PLATFORM BANNERS (Section 01)
   ------------------------------------------------------------- */
body.company-panel .company-impersonation-bar {
    background-color: var(--cp-navy) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    margin-bottom: 16px !important;
    font-size: 14px !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(16, 41, 64, 0.15);
}

body.company-panel .company-impersonation-bar .btn-return {
    background-color: var(--cp-gold) !important;
    color: var(--cp-navy) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    padding: 6px 16px !important;
    border: none !important;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

body.company-panel .company-impersonation-bar .btn-return:hover {
    opacity: 0.9;
    color: var(--cp-navy) !important;
}

/* Platform Announcements */
body.company-panel .sa-pb-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

body.company-panel .sa-pb {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding: 10px 12px;
    border-radius: 12px;
    border-width: 1px;
    border-style: solid;
}

body.company-panel .sa-pb-ic {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #34516b !important;
    color: transparent !important;
    font-size: 0 !important;
}
body.company-panel .sa-pb-ic i { display: none !important; }

body.company-panel .sa-pb.t-info {
    background-color: var(--cp-info-light) !important;
    border-color: var(--cp-info) !important;
    color: var(--cp-info) !important;
}

body.company-panel .sa-pb.t-success {
    background-color: #e7f3ee !important;
    border-color: var(--cp-success) !important;
    color: var(--cp-success) !important;
}
body.company-panel .sa-pb.t-success .sa-pb-ic { background: #216849 !important; }

body.company-panel .sa-pb.t-warning {
    background-color: var(--cp-gold-light) !important;
    border-color: var(--cp-gold-dark) !important;
    color: var(--cp-gold-dark) !important;
}
body.company-panel .sa-pb.t-warning .sa-pb-ic { background: #8a5b00 !important; }

body.company-panel .sa-pb.t-maintenance {
    background-color: #f9e8e7 !important;
    border-color: var(--cp-danger) !important;
    color: var(--cp-danger) !important;
}
body.company-panel .sa-pb.t-maintenance .sa-pb-ic { background: #b43c38 !important; }

body.company-panel .sa-pb-text b {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

body.company-panel .sa-pb-text span {
    font-size: 12.5px;
}

body.company-panel .sa-pb-close {
    margin-inline-start: auto;
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: 700;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.15s;
}

body.company-panel .sa-pb-close:hover {
    opacity: 1;
}

/* -------------------------------------------------------------
   FOOTER (Section 01)
   ------------------------------------------------------------- */
body.company-panel .footer {
    position: relative !important;
    bottom: auto !important;
    background: transparent !important;
    border: none !important;
    padding: 16px 0 24px 0 !important;
}

body.company-panel .cp-footer-card {
    background: #ffffff;
    border: 1px solid var(--cp-border);
    border-radius: 8px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cp-text-muted);
    font-size: 12.5px;
    font-weight: 500;
    text-align: center;
}

/* -------------------------------------------------------------
   DESIGN SYSTEM FOUNDATIONS (Section 00)
   ------------------------------------------------------------- */
/* Cards & Containers */
body.company-panel .card {
    background: #ffffff;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-r-lg);
    box-shadow: var(--cp-shadow);
    margin-bottom: 24px;
}

body.company-panel .card-header {
    background: transparent;
    border-bottom: 1px solid var(--cp-border);
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 700;
    color: var(--cp-navy);
}

body.company-panel .card-body {
    padding: 24px;
}

/* Badges & Chips */
body.company-panel .badge,
body.company-panel .cp-chip {
    font-family: var(--cp-font);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--cp-r-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: normal;
}

body.company-panel .cp-chip-success,
body.company-panel .badge-success {
    background-color: var(--cp-success-light) !important;
    color: var(--cp-success) !important;
    border: 1px solid var(--cp-success);
}

body.company-panel .cp-chip-danger,
body.company-panel .badge-danger {
    background-color: var(--cp-danger-light) !important;
    color: var(--cp-danger) !important;
    border: 1px solid var(--cp-danger);
}

body.company-panel .cp-chip-warning,
body.company-panel .badge-warning {
    background-color: var(--cp-gold-light) !important;
    color: var(--cp-gold-dark) !important;
    border: 1px solid var(--cp-gold);
}

body.company-panel .cp-chip-info,
body.company-panel .badge-info {
    background-color: var(--cp-info-light) !important;
    color: var(--cp-info) !important;
    border: 1px solid var(--cp-info);
}

body.company-panel .cp-chip-proposed {
    background-color: var(--cp-gold-light) !important;
    color: var(--cp-gold-dark) !important;
    border: 1px dashed var(--cp-gold);
}

/* Action Buttons */
body.company-panel .btn-primary,
body.company-panel .cp-btn-primary {
    background-color: var(--cp-navy) !important;
    border-color: var(--cp-navy) !important;
    color: #ffffff !important;
    border-radius: var(--cp-r-md) !important;
    font-weight: 600;
    padding: 8px 18px;
    font-size: 14px;
    transition: all 0.2s;
}

body.company-panel .btn-primary:hover,
body.company-panel .cp-btn-primary:hover {
    background-color: var(--cp-navy-surface) !important;
    border-color: var(--cp-navy-surface) !important;
}

body.company-panel .btn-gold,
body.company-panel .cp-btn-gold {
    background-color: var(--cp-gold) !important;
    border-color: var(--cp-gold) !important;
    color: var(--cp-navy) !important;
    border-radius: var(--cp-r-md) !important;
    font-weight: 700;
    padding: 8px 18px;
    font-size: 14px;
    transition: all 0.2s;
}

body.company-panel .btn-gold:hover,
body.company-panel .cp-btn-gold:hover {
    opacity: 0.92;
}

body.company-panel .btn-secondary,
body.company-panel .cp-btn-secondary {
    background-color: #ffffff !important;
    border: 1px solid var(--cp-border) !important;
    color: var(--cp-navy) !important;
    border-radius: var(--cp-r-md) !important;
    font-weight: 600;
    padding: 8px 18px;
    font-size: 14px;
}

body.company-panel .btn-secondary:hover,
body.company-panel .cp-btn-secondary:hover {
    background-color: var(--cp-bg) !important;
}

/* Row Action Buttons (عرض، تعديل، حذف) */
body.company-panel .cp-action-view {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: var(--cp-info-light);
    color: var(--cp-navy);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
}

body.company-panel .cp-action-edit {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: var(--cp-gold-light);
    color: var(--cp-gold-dark);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
}

body.company-panel .cp-action-delete {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: var(--cp-danger-light);
    color: var(--cp-danger);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
}

/* -------------------------------------------------------------
   STAGE 2: REUSABLE UI COMPONENTS (Section 00)
   ------------------------------------------------------------- */

/* Page Head */
body.company-panel .cp-page-head {
    border-bottom: 1px solid var(--cp-border);
    padding-bottom: 16px;
}

body.company-panel .cp-page-head .breadcrumb-item + .breadcrumb-item::before {
    color: var(--cp-text-muted);
}

/* Filter Card & Shortcuts (Figma 198:61, 198:69) */
body.company-panel .cp-filter-card {
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-r-lg);
    background: #ffffff;
    box-shadow: var(--cp-shadow);
}

body.company-panel .cp-filter-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--cp-text-muted);
    margin-bottom: 6px;
}

body.company-panel .cp-filter-form .form-control,
body.company-panel .cp-filter-form .custom-select,
body.company-panel .cp-filter-form .form-select {
    height: 40px;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-r-md);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--cp-navy);
    background-color: #ffffff;
    padding: 6px 12px;
}

body.company-panel .cp-filter-form .form-control:focus,
body.company-panel .cp-filter-form .custom-select:focus,
body.company-panel .cp-filter-form .form-select:focus {
    border-color: var(--cp-gold);
    box-shadow: 0 0 0 3px rgba(230, 173, 53, 0.15);
}

body.company-panel .cp-shortcut-pill {
    background-color: var(--cp-gold-light);
    border: 1px dashed var(--cp-gold);
    color: var(--cp-gold-dark);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: var(--cp-r-pill);
    padding: 4px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

body.company-panel .cp-shortcut-pill:hover,
body.company-panel .cp-shortcut-pill.active {
    background-color: var(--cp-gold);
    border: 1px solid var(--cp-gold);
    color: var(--cp-navy);
}

/* Table Card, Headers & Row Selection (Section 00) */
body.company-panel .cp-table-card {
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-r-lg);
    background: #ffffff;
    box-shadow: var(--cp-shadow);
    overflow: hidden;
}

body.company-panel .cp-table thead th {
    background-color: var(--cp-bg);
    color: var(--cp-navy);
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 12px !important;
    border-bottom: 1px solid var(--cp-border);
    white-space: nowrap;
}

body.company-panel .cp-table tbody td {
    padding: 8px 12px !important;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--cp-navy);
    border-bottom: 1px solid var(--cp-border);
    vertical-align: middle;
}

body.company-panel .cp-table tbody tr:last-child td {
    border-bottom: none;
}

/* The parcel board carries more status columns than ordinary admin tables.
   Keep it within the Figma content column instead of forcing a horizontal rail. */
body.company-panel .cp-parcel-index .cp-table thead th {
    padding: 9px 8px !important;
    font-size: 12px;
}

body.company-panel .cp-parcel-index .cp-table tbody td {
    padding: 10px 8px !important;
    font-size: 12.5px;
}

/* Parcel list: match Figma frame 202:565 at the 1440px desktop canvas. */
body.company-panel .cp-parcel-index > .cp-page-head {
    position: relative;
    height: 64px;
    margin: -3px 0 26px !important;
    padding: 0 !important;
    border: 0;
}

body.company-panel .cp-parcel-index > .cp-page-head .cp-page-head-content {
    position: absolute;
    inset: 0 0 auto auto;
    width: 720px;
    max-width: 100%;
    text-align: right;
}

body.company-panel .cp-parcel-index > .cp-page-head .cp-page-head-content nav {
    display: none;
}

body.company-panel .cp-parcel-index > .cp-page-head .cp-page-title {
    margin: 0 0 4px !important;
    line-height: 1.3;
}

body.company-panel .cp-parcel-index > .cp-page-head .cp-page-head-actions {
    position: absolute;
    top: 6px;
    left: 0;
    display: flex;
    flex-direction: row;
    direction: ltr;
    flex-wrap: nowrap;
    gap: 10px;
    width: 602px;
    max-width: 100%;
}

body.company-panel .cp-parcel-index > .cp-page-head .cp-page-head-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    white-space: nowrap;
    direction: rtl;
}

body.company-panel .cp-parcel-index > .cp-page-head .cp-page-head-actions .btn:nth-child(1) { width: 145px; }
body.company-panel .cp-parcel-index > .cp-page-head .cp-page-head-actions .btn:nth-child(2) { width: 145px; }
body.company-panel .cp-parcel-index > .cp-page-head .cp-page-head-actions .btn:nth-child(3) { width: 161px; }
body.company-panel .cp-parcel-index > .cp-page-head .cp-page-head-actions .btn:nth-child(4) { width: 120px; }

body.company-panel .cp-parcel-index > .cp-filter-card {
    position: relative;
    box-sizing: border-box;
    height: 274px;
    min-height: 274px;
    margin-bottom: 20px !important;
    border-color: var(--cp-border);
    border: 1px solid var(--cp-border) !important;
    box-shadow: none;
}

body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-search-slot {
    position: absolute;
    top: 183px;
    right: 20px;
    width: 250px;
}

body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-search-form label {
    display: block;
    margin: 0 !important;
    color: var(--cp-text-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
}

body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-search-form .form-control {
    width: 100%;
    height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--cp-border);
    border-radius: 10px;
    color: var(--cp-navy);
    font-size: 13.5px;
}

body.company-panel .cp-parcel-index > .cp-filter-card .card-body {
    padding: 19px 20px !important;
}

body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form > .card-body > .row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 250px));
    grid-auto-rows: 62px;
    gap: 20px 16px;
    width: 1048px;
    max-width: 100%;
    margin: 0 !important;
    align-items: start;
    justify-content: space-between;
}

body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form .form-group {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form label {
    display: block;
    line-height: 22px;
    margin: 0 0 0 !important;
}

body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form .form-control,
body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form .custom-select,
body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form .form-select,
body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form .select2-container,
body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form .select2-selection {
    width: 100% !important;
    height: 40px !important;
}

body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form .select2-selection {
    display: flex;
    align-items: center;
    border: 1px solid var(--cp-border) !important;
    border-radius: 10px !important;
    background: #fff !important;
}

body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form > .card-body > .row > .col-12:last-child {
    position: relative;
    top: -2px;
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    direction: ltr;
    column-gap: 10px !important;
    margin-top: 18px !important;
    padding: 0 !important;
}

body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form > .card-body > .row > .col-12:last-child > .btn:first-child {
    order: 2;
    width: 96px;
    min-width: 96px !important;
}

body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form > .card-body > .row > .col-12:last-child > .btn:last-child {
    order: 1;
    width: 110px;
    min-width: 110px;
}

body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form > .card-body > .row > .col-12:last-child > .btn:first-child i {
    display: none;
}

body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form > .card-body > .row > .col-12:last-child > .btn {
    height: 38px !important;
    min-height: 38px;
}

body.company-panel .cp-parcel-index .cp-table-card {
    min-height: 604px;
    margin-bottom: 0 !important;
    border-color: var(--cp-border);
    box-shadow: none;
}

body.company-panel .cp-parcel-index .cp-table-card > .p-4 {
    box-sizing: border-box;
    height: 76px;
    min-height: 76px;
    padding: 16px 20px !important;
}

body.company-panel .cp-parcel-index .cp-table-card > .p-4 h3 {
    font-size: 17px !important;
    line-height: 1.4;
}

body.company-panel .cp-parcel-index .cp-table-card > .p-4 .input-group {
    width: 240px !important;
}

body.company-panel .cp-parcel-index .cp-table-card > .p-4 .input-group-append {
    display: none;
}

body.company-panel .cp-parcel-index .cp-table-card > .p-4 .form-control {
    height: 40px;
    border-radius: 10px;
    background-color: var(--cp-bg);
    border-color: var(--cp-border);
}

body.company-panel .cp-parcel-index .cp-table-card > .px-4.py-2 {
    box-sizing: border-box;
    height: 52px;
    min-height: 52px;
    padding: 0 20px !important;
    border-color: var(--cp-border) !important;
}

body.company-panel .cp-parcel-index .cp-table thead th {
    height: 44px;
    padding: 12px 8px !important;
    background: var(--cp-bg);
    border-bottom-color: var(--cp-border);
}

body.company-panel .cp-parcel-index .cp-table tbody tr > td[colspan="13"] {
    height: 372px;
    vertical-align: middle;
}

@media (max-width: 1199.98px) {
    body.company-panel .cp-parcel-index > .cp-page-head {
        height: auto;
        min-height: 64px;
        margin: 0 0 20px !important;
        padding-bottom: 16px !important;
    }

    body.company-panel .cp-parcel-index > .cp-page-head .cp-page-head-content,
    body.company-panel .cp-parcel-index > .cp-page-head .cp-page-head-actions {
        position: static;
        width: auto;
        max-width: none;
    }

    body.company-panel .cp-parcel-index > .cp-page-head .cp-page-head-actions {
        flex-wrap: wrap;
        direction: rtl;
    }

    body.company-panel .cp-parcel-index > .cp-page-head .cp-page-head-actions .btn {
        width: auto !important;
    }

    body.company-panel .cp-parcel-index > .cp-filter-card {
        height: auto;
        min-height: 0;
    }

    body.company-panel .cp-parcel-index > .cp-filter-card .card-body {
        padding: 16px !important;
    }

    body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form > .card-body > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 16px 12px;
        width: 100%;
    }

    body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-form > .card-body > .row > .col-12:last-child {
        margin-top: 0 !important;
    }

    body.company-panel .cp-parcel-index > .cp-filter-card .cp-filter-search-slot {
        position: static;
        width: auto;
        padding: 0 16px 16px;
    }

    body.company-panel .cp-parcel-index .cp-table-card {
        min-height: 0;
    }

    body.company-panel .cp-parcel-index .cp-table-card > .p-4,
    body.company-panel .cp-parcel-index .cp-table-card > .px-4.py-2 {
        height: auto;
        min-height: 0;
    }

    body.company-panel .cp-parcel-index .cp-table tbody tr > td[colspan="13"] {
        height: 220px;
    }
}

/* Company dashboard (Figma D1) */
body.company-panel .cp-company-dashboard {
    color: var(--cp-text);
    max-width: 1440px;
    margin: 0 auto;
    padding: 6px 0 30px;
}

.cp-company-dashboard .cp-dashboard-heading,
.cp-company-dashboard .cp-dashboard-section-heading,
.cp-company-dashboard .cp-dashboard-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cp-company-dashboard .cp-dashboard-heading { margin: 0 0 20px; }
.cp-company-dashboard .cp-dashboard-heading h1 { margin: 0; font-size: 26px; }
.cp-company-dashboard .cp-dashboard-eyebrow { margin: 0 0 3px; color: var(--cp-text-muted); font-size: 12px; font-weight: 700; }
.cp-company-dashboard .cp-dashboard-heading-copy,
.cp-company-dashboard .cp-dashboard-section-heading p,
.cp-company-dashboard .cp-dashboard-panel-heading p { margin: 4px 0 0; color: var(--cp-text-muted); font-size: 12px; }
.cp-company-dashboard .cp-dashboard-primary-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 42px; padding: 0 18px; border-radius: 9px; background: var(--cp-navy);
    color: #fff; font-size: 13px; font-weight: 700; text-decoration: none;
    box-shadow: 0 5px 12px rgba(16, 41, 64, .12);
}
.cp-company-dashboard .cp-dashboard-primary-action:hover { background: var(--cp-navy-dark); color: #fff; }
.cp-company-dashboard .cp-dashboard-period { margin-bottom: 20px; padding: 12px 15px; border: 1px solid var(--cp-border); border-radius: 12px; background: var(--cp-card); }
.cp-company-dashboard .cp-dashboard-period form,
.cp-company-dashboard .cp-dashboard-period-controls { display: flex; align-items: center; gap: 10px; }
.cp-company-dashboard .cp-dashboard-period label { flex: 0 0 auto; margin: 0; color: var(--cp-text-muted); font-size: 12px; font-weight: 700; }
.cp-company-dashboard .cp-dashboard-period .form-control { width: 190px; height: 36px; border: 1px solid var(--cp-border); border-radius: 8px; font-size: 12px; }
.cp-company-dashboard .cp-dashboard-period-submit { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--cp-gold); color: var(--cp-navy); font-size: 12px; font-weight: 800; }
.cp-company-dashboard .cp-dashboard-period-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-company-dashboard .cp-dashboard-period-pill { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border: 1px solid var(--cp-border); border-radius: 20px; background: #fff; color: var(--cp-text-muted); font: inherit; font-size: 11px; line-height: 1.4; text-decoration: none; }
.cp-company-dashboard .cp-dashboard-period-pill:hover { border-color: var(--cp-gold); color: var(--cp-navy); text-decoration: none; }
.cp-company-dashboard .cp-dashboard-section-heading { margin-bottom: 12px; }
.cp-company-dashboard .cp-dashboard-section-heading h2,
.cp-company-dashboard .cp-dashboard-panel-heading h2 { margin: 0; font-size: 16px; }
.cp-company-dashboard .cp-dashboard-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cp-company-dashboard .cp-dashboard-action-card,
.cp-company-dashboard .cp-dashboard-panel,
.cp-company-dashboard .cp-dashboard-recent-table,
.cp-company-dashboard .cp-dashboard-kpi { min-width: 0; border: 1px solid var(--cp-border); border-radius: 12px; background: var(--cp-card); box-shadow: var(--cp-shadow); }
.cp-company-dashboard .cp-dashboard-action-card { position: relative; min-height: 153px; padding: 15px 16px 13px; overflow: hidden; }
.cp-company-dashboard .cp-dashboard-action-card:before { position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--action-tone, var(--cp-gold)); content: ''; }
.cp-company-dashboard .cp-dashboard-action-card--gold { --action-tone: var(--cp-gold); }
.cp-company-dashboard .cp-dashboard-action-card--blue { --action-tone: #5280a6; }
.cp-company-dashboard .cp-dashboard-action-card--red { --action-tone: var(--cp-danger); }
.cp-company-dashboard .cp-dashboard-action-card--amber { --action-tone: #d47b23; }
.cp-company-dashboard .cp-dashboard-action-card--green { --action-tone: var(--cp-success); }
.cp-company-dashboard .cp-dashboard-action-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cp-company-dashboard .cp-dashboard-action-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--action-tone) 12%, white); color: var(--action-tone); font-size: 14px; }
.cp-company-dashboard .cp-dashboard-action-count { color: var(--cp-navy); font-size: 22px; line-height: 1; }
.cp-company-dashboard .cp-dashboard-action-unavailable { color: var(--cp-text-muted); font-size: 11px; }
.cp-company-dashboard .cp-dashboard-action-card h3 { margin: 10px 0 2px; font-size: 13px; font-weight: 800; }
.cp-company-dashboard .cp-dashboard-action-card p { min-height: 30px; margin: 0; color: var(--cp-text-muted); font-size: 10.5px; line-height: 1.5; }
.cp-company-dashboard .cp-dashboard-action-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cp-company-dashboard .cp-dashboard-action-links a,
.cp-company-dashboard .cp-dashboard-panel-shortcut { color: var(--cp-navy); font-size: 11px; font-weight: 800; text-decoration: none; }
.cp-company-dashboard .cp-dashboard-action-links a:hover,
.cp-company-dashboard .cp-dashboard-panel-shortcut:hover { color: var(--cp-gold-dark); }
.cp-company-dashboard .cp-dashboard-action-note { display: inline-block; margin-top: 8px; color: var(--cp-text-light); font-size: 10px; }
.cp-company-dashboard .cp-dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.cp-company-dashboard .cp-dashboard-kpi { display: flex; min-height: 94px; flex-direction: column; justify-content: center; gap: 5px; padding: 13px 16px; text-decoration: none; transition: border-color .15s, transform .15s; }
.cp-company-dashboard .cp-dashboard-kpi:hover { transform: translateY(-2px); border-color: #c9a04a; text-decoration: none; }
.cp-company-dashboard .cp-dashboard-kpi-label { display: flex; align-items: center; gap: 8px; color: var(--cp-text-muted); font-size: 11px; font-weight: 700; }
.cp-company-dashboard .cp-dashboard-kpi-label i { color: var(--cp-gold-dark); }
.cp-company-dashboard .cp-dashboard-kpi > strong { color: var(--cp-navy); font-size: 22px; line-height: 1.1; }
.cp-company-dashboard .cp-dashboard-kpi small { font-size: 10px; }
.cp-company-dashboard .cp-dashboard-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
.cp-company-dashboard .cp-dashboard-panel { padding: 17px; }
.cp-company-dashboard .cp-dashboard-weekly-chart { display: grid; height: 142px; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 12px; margin-top: 15px; padding: 0 3px; }
.cp-company-dashboard .cp-dashboard-weekly-column { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.cp-company-dashboard .cp-dashboard-weekly-column strong { color: var(--cp-text-muted); font-size: 10px; }
.cp-company-dashboard .cp-dashboard-weekly-bar { display: block; width: min(100%, 28px); height: var(--bar-height); min-height: 4px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #e9bb58, #c99427); }
.cp-company-dashboard .cp-dashboard-weekly-column small { font-size: 10px; }
.cp-company-dashboard .cp-dashboard-branch-performance { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--cp-border-light); }
.cp-company-dashboard .cp-dashboard-branch-performance h3 { margin: 0 0 10px; font-size: 12px; font-weight: 800; }
.cp-company-dashboard .cp-dashboard-branch-row { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr 38px; align-items: center; gap: 10px; margin-top: 8px; font-size: 10px; }
.cp-company-dashboard .cp-dashboard-branch-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-company-dashboard .cp-dashboard-branch-track { height: 6px; overflow: hidden; border-radius: 6px; background: var(--cp-bg); }
.cp-company-dashboard .cp-dashboard-branch-track i { display: block; height: 100%; border-radius: inherit; background: var(--cp-gold); }
.cp-company-dashboard .cp-dashboard-branch-row > strong { text-align: end; }
.cp-company-dashboard .cp-dashboard-financial-primary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 17px; }
.cp-company-dashboard .cp-dashboard-financial-primary > div { display: flex; min-height: 72px; flex-direction: column; justify-content: center; gap: 6px; padding: 11px 13px; border-radius: 9px; background: var(--cp-bg); }
.cp-company-dashboard .cp-dashboard-financial-primary span { color: var(--cp-text-muted); font-size: 10px; }
.cp-company-dashboard .cp-dashboard-financial-primary strong { color: var(--cp-navy); font-size: 15px; }
.cp-company-dashboard .cp-dashboard-financial-primary .cp-dashboard-net { grid-column: 1 / -1; background: var(--cp-gold-light); }
.cp-company-dashboard .cp-dashboard-ledger-breakdown { margin-top: 11px; }
.cp-company-dashboard .cp-dashboard-ledger-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; padding: 8px 0; border-bottom: 1px solid var(--cp-border-light); font-size: 10px; }
.cp-company-dashboard .cp-dashboard-ledger-row strong { color: var(--cp-navy); }
.cp-company-dashboard .cp-dashboard-ledger-row span { color: var(--cp-text-muted); }
.cp-company-dashboard .cp-dashboard-financial-links { display: flex; gap: 14px; margin-top: 12px; }
.cp-company-dashboard .cp-dashboard-financial-links a { color: var(--cp-navy); font-size: 11px; font-weight: 800; }
.cp-company-dashboard .cp-dashboard-recent-table { padding: 17px; }
.cp-company-dashboard .cp-dashboard-table-wrap { margin-top: 12px; }
.cp-company-dashboard .cp-dashboard-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.cp-company-dashboard .cp-dashboard-table th { padding: 10px 9px; background: #f5f7fa; color: var(--cp-text-muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.cp-company-dashboard .cp-dashboard-table th:first-child { border-radius: 0 8px 8px 0; }
.cp-company-dashboard .cp-dashboard-table th:last-child { border-radius: 8px 0 0 8px; }
.cp-company-dashboard .cp-dashboard-table td { padding: 10px 9px; border-bottom: 1px solid var(--cp-border-light); color: var(--cp-text); font-size: 11px; vertical-align: middle; }
.cp-company-dashboard .cp-dashboard-table td:nth-child(2) { min-width: 150px; }
.cp-company-dashboard .cp-dashboard-table td:nth-child(2) strong,
.cp-company-dashboard .cp-dashboard-table td:nth-child(2) small { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-company-dashboard .cp-dashboard-tracking { color: var(--cp-navy); font-weight: 800; text-decoration: none; }
.cp-company-dashboard .cp-dashboard-status { display: inline-block; padding: 4px 8px; border-radius: 20px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.cp-company-dashboard .cp-dashboard-status--waiting { background: var(--cp-warning-light); color: #8a5b00; }
.cp-company-dashboard .cp-dashboard-status--transit { background: var(--cp-info-light); color: var(--cp-info); }
.cp-company-dashboard .cp-dashboard-status--delivered { background: var(--cp-success-light); color: var(--cp-success); }
.cp-company-dashboard .cp-dashboard-status--returned { background: var(--cp-danger-light); color: var(--cp-danger); }
.cp-company-dashboard .cp-dashboard-status--other { background: var(--cp-bg); color: var(--cp-text-muted); }
.cp-company-dashboard .cp-dashboard-row-action { color: var(--cp-navy); font-size: 10px; font-weight: 800; white-space: nowrap; }
.cp-company-dashboard .cp-dashboard-empty { padding: 18px; color: var(--cp-text-muted); text-align: center; font-size: 11px; }
.cp-company-dashboard .cp-dashboard-muted { color: var(--cp-text-muted); font-size: 11px; }
.cp-company-dashboard .cp-dashboard-calendar { margin-top: 14px; padding: 12px 15px; border: 1px solid var(--cp-border); border-radius: 10px; background: #fff; }
.cp-company-dashboard .cp-dashboard-calendar summary { color: var(--cp-navy); font-size: 12px; font-weight: 800; cursor: pointer; }
.cp-company-dashboard #datetimepicker12 { max-width: 330px; margin: 12px auto 0; }

html[dir="ltr"] .cp-company-dashboard .cp-dashboard-table th:first-child { border-radius: 8px 0 0 8px; }
html[dir="ltr"] .cp-company-dashboard .cp-dashboard-table th:last-child { border-radius: 0 8px 8px 0; }

@media (max-width: 1199.98px) {
    .cp-company-dashboard .cp-dashboard-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-company-dashboard .cp-dashboard-period form,
    .cp-company-dashboard .cp-dashboard-period-controls { align-items: flex-start; flex-wrap: wrap; }
    .cp-company-dashboard .cp-dashboard-panels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    body.company-panel .navbar-other { gap: 6px; padding: 7px 10px !important; overflow: hidden; }
    body.company-panel .navbar-other > div { flex: 0 1 auto; min-width: 0; }
    body.company-panel .navbar-other > div img { max-width: 82px; object-fit: contain; }
    body.company-panel .navbar-other .navbar-nav { width: auto; min-width: 0; flex: 0 0 auto; gap: 4px !important; }
    body.company-panel .navbar-other .nav-item.admin-panel.notification:first-child { display: none; }
    body.company-panel .navbar-other .nav-item.connection .cp-btn-task { width: 36px; height: 36px !important; padding: 0 !important; overflow: hidden; font-size: 0; }
    body.company-panel .navbar-other .nav-item.connection .cp-btn-task i { margin: 0 !important; font-size: 14px; }
    body.company-panel .navbar-other .nav-user.mobile .cp-user-name,
    body.company-panel .navbar-other .nav-user.mobile .cp-user-pill > i { display: none !important; }
    body.company-panel .navbar-other .nav-user.mobile .cp-user-pill { width: 38px; height: 36px; justify-content: center; gap: 0; padding: 3px; }
    body.company-panel .navbar-other .offcanvas-nav-btn { width: 38px; height: 36px; padding: 3px; }
    body.company-panel .main-content { padding: 17px 14px; }
    body.company-panel .cp-company-dashboard { padding-top: 0; }
    .cp-company-dashboard .cp-dashboard-heading { align-items: flex-start; }
    .cp-company-dashboard .cp-dashboard-heading h1 { font-size: 22px; }
    .cp-company-dashboard .cp-dashboard-primary-action { min-height: 38px; padding: 0 11px; font-size: 11px; white-space: nowrap; }
    .cp-company-dashboard .cp-dashboard-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .cp-company-dashboard .cp-dashboard-action-card { min-height: 166px; padding: 12px; }
    .cp-company-dashboard .cp-dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
    .cp-company-dashboard .cp-dashboard-kpi { min-height: 86px; padding: 11px; }
    .cp-company-dashboard .cp-dashboard-period { padding: 11px; }
    .cp-company-dashboard .cp-dashboard-period .form-control { width: 100%; }
    .cp-company-dashboard .cp-dashboard-period-controls { width: 100%; }
    .cp-company-dashboard .cp-dashboard-period-presets { width: 100%; }
    .cp-company-dashboard .cp-dashboard-period-pill { flex: 1 1 auto; }
    .cp-company-dashboard .cp-dashboard-panel,
    .cp-company-dashboard .cp-dashboard-recent-table { padding: 13px; }
    .cp-company-dashboard .cp-dashboard-table { min-width: 700px; }
    .cp-company-dashboard .cp-dashboard-ledger-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 390px) {
    .cp-company-dashboard .cp-dashboard-heading { flex-direction: column; }
    .cp-company-dashboard .cp-dashboard-action-grid { grid-template-columns: minmax(0, 1fr); }
    .cp-company-dashboard .cp-dashboard-action-card { min-height: 145px; }
    .cp-company-dashboard .cp-dashboard-financial-primary { grid-template-columns: minmax(0, 1fr); }
    .cp-company-dashboard .cp-dashboard-financial-primary .cp-dashboard-net { grid-column: auto; }
}

body.company-panel .cp-table tbody tr.cp-row-selected {
    background-color: var(--cp-gold-light) !important;
}

body.company-panel .cp-table .form-check-input {
    cursor: pointer;
    width: 18px;
    height: 18px;
    border-color: var(--cp-border);
}

body.company-panel .cp-table .form-check-input:checked {
    background-color: var(--cp-navy);
    border-color: var(--cp-navy);
}

body.company-panel .cp-bulk-bar {
    transition: all 0.2s ease;
}

/* Form Section & Fields */
body.company-panel .cp-form-section {
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-r-lg);
    background: #ffffff;
    box-shadow: var(--cp-shadow);
}

body.company-panel .cp-required,
body.company-panel label.required::after,
body.company-panel .form-group label.required::after {
    content: " *";
    color: var(--cp-danger);
    font-weight: 700;
}

body.company-panel .input-group-text {
    background-color: var(--cp-bg);
    border: 1px solid var(--cp-border);
    color: var(--cp-text-muted);
    font-size: 13px;
    font-weight: 600;
}

/* Empty, Loading & Error States (Figma 197:148) */
body.company-panel .cp-empty-state,
body.company-panel .cp-error-state {
    background-color: #ffffff;
}

body.company-panel .cp-skeleton-box {
    background: linear-gradient(90deg, #edf2f7 25%, #e2e8f0 50%, #edf2f7 75%);
    background-size: 200% 100%;
    animation: cpShimmer 1.5s infinite;
}

@keyframes cpShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* -------------------------------------------------------------
   OPERATIONS & SECTION 02 STYLES (Figma Frames 202:2 - 206:1123)
   ------------------------------------------------------------- */

/* Status Chips & Badges */
body.company-panel .cp-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    line-height: 1.3;
    white-space: nowrap;
}

body.company-panel .cp-chip-success {
    background-color: #e7f3ee !important;
    color: var(--cp-success) !important;
}

body.company-panel .cp-chip-warning {
    background-color: var(--cp-gold-light) !important;
    color: #8a5b00 !important;
}

body.company-panel .cp-chip-danger {
    background-color: #fdeeee !important;
    color: var(--cp-danger) !important;
}

body.company-panel .cp-chip-info {
    background-color: #e6ecf3 !important;
    color: #34516b !important;
}

body.company-panel .cp-chip-muted {
    background-color: #eef1f5 !important;
    color: var(--cp-text-muted) !important;
}

body.company-panel .cp-chip-gold {
    background-color: var(--cp-gold) !important;
    color: var(--cp-navy) !important;
}

/* User / Recipient Circle Initials in Table */
body.company-panel .cp-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--cp-navy);
    color: var(--cp-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 4-Step Stepper Header (Figma 203:67) */
body.company-panel .cp-stepper-card {
    background: #ffffff;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-r-lg);
    padding: 20px 30px;
    margin-bottom: 24px;
    box-shadow: var(--cp-shadow);
}

body.company-panel .cp-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

body.company-panel .cp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

body.company-panel .cp-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--cp-border);
    color: var(--cp-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

body.company-panel .cp-step.active .cp-step-circle {
    background: var(--cp-navy);
    border-color: var(--cp-navy);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 41, 64, 0.15);
}

body.company-panel .cp-step.completed .cp-step-circle {
    background: var(--cp-success);
    border-color: var(--cp-success);
    color: #ffffff;
}

body.company-panel .cp-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--cp-text-muted);
    transition: color 0.3s ease;
}

body.company-panel .cp-step.active .cp-step-label {
    color: var(--cp-navy);
    font-weight: 700;
}

body.company-panel .cp-step.completed .cp-step-label {
    color: var(--cp-success);
}

body.company-panel .cp-step-line {
    position: absolute;
    top: 18px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--cp-border);
    z-index: 1;
}

/* Figma 203:134 recipient location preview and pin. Google Maps replaces this
   lightweight fallback when its API is available. */
body.company-panel #map:not(.has-google-map) {
    height: 140px !important;
    position: relative;
    overflow: hidden;
    background-color: #e8eef3;
    background-image:
        linear-gradient(to right, transparent 79px, #d5dee7 79px, #d5dee7 80px, transparent 80px),
        linear-gradient(to bottom, transparent 24px, #d5dee7 24px, #d5dee7 25px, transparent 25px);
    background-size: 80px 100%, 100% 28px;
}

body.company-panel #map:not(.has-google-map) > * {
    display: none !important;
}

body.company-panel #map:not(.has-google-map)::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #b43c38;
    box-shadow: 0 0 0 1px rgba(180, 60, 56, .18);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

body.company-panel #map:not(.has-google-map)::before {
    content: "اضغط على الخريطة لتحديد الموقع";
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    color: #617286;
    font-family: var(--cp-font);
    font-size: 9px;
    line-height: 14px;
    text-align: center;
    pointer-events: none;
}

body.company-panel #map.has-google-map {
    height: 140px !important;
}

/* Live Cost Summary Sidebar (Figma 203:102) */
body.company-panel .cp-cost-summary {
    background: #ffffff;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-r-lg);
    padding: 24px;
    box-shadow: var(--cp-shadow);
    position: sticky;
    top: calc(var(--cp-topbar-h) + 20px);
}

body.company-panel .cp-cost-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--cp-navy);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.company-panel .cp-cost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13.5px;
    color: var(--cp-text-muted);
}

body.company-panel .cp-cost-row .cp-cost-val {
    font-weight: 700;
    color: var(--cp-navy);
}

body.company-panel .cp-cost-divider {
    height: 1px;
    background-color: var(--cp-border);
    margin: 12px 0;
}

body.company-panel .cp-cost-total {
    padding-top: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--cp-navy);
}

body.company-panel .cp-cost-total .cp-cost-val {
    font-size: 16px;
    color: var(--cp-navy);
}

body.company-panel .cp-cost-merchant {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--cp-r-md);
    padding: 12px 14px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.company-panel .cp-cost-merchant span {
    font-weight: 700;
    color: #166534;
    font-size: 14px;
}

body.company-panel .cp-cost-merchant .cp-cost-val {
    font-size: 17px;
    font-weight: 800;
    color: var(--cp-success);
}

/* Status Pipeline Component (Figma 202:378) */
body.company-panel .cp-status-pipeline {
    background: #ffffff;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-r-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--cp-shadow);
}

body.company-panel .cp-pipeline-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

body.company-panel .cp-pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}

body.company-panel .cp-pipeline-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--cp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #ffffff;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

body.company-panel .cp-pipeline-step.completed .cp-pipeline-dot {
    background: var(--cp-success);
    border-color: var(--cp-success);
}

body.company-panel .cp-pipeline-step.active .cp-pipeline-dot {
    background: var(--cp-navy);
    border-color: var(--cp-navy);
    box-shadow: 0 0 0 4px rgba(16, 41, 64, 0.15);
}

body.company-panel .cp-pipeline-line {
    position: absolute;
    top: 11px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--cp-border);
    z-index: 1;
}

/* Modal Styling Overrides for Company Panel */
body.company-panel .modal-content {
    border-radius: var(--cp-r-lg) !important;
    border: 1px solid var(--cp-border) !important;
    box-shadow: var(--cp-shadow-lg) !important;
    overflow: hidden;
    font-family: 'Cairo', sans-serif !important;
}

body.company-panel .modal-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--cp-border) !important;
    padding: 18px 24px !important;
}

body.company-panel .modal-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--cp-navy) !important;
}

body.company-panel .modal-body {
    padding: 24px !important;
    background-color: #ffffff !important;
}

body.company-panel .modal-footer {
    border-top: 1px solid var(--cp-border) !important;
    padding: 16px 24px !important;
    background-color: var(--cp-bg) !important;
}

/* Print Overrides */
@media print {
    body.company-panel .nav-left-sidebar,
    body.company-panel .dashboard-header,
    body.company-panel .footer,
    body.company-panel .page-header,
    body.company-panel .btn,
    body.company-panel .print {
        display: none !important;
    }

    body.company-panel .dashboard-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.company-panel .card {
        border: none !important;
        box-shadow: none !important;
    }
}

/* Responsive Overrides (< 992px) */
@media (max-width: 991.98px) {
    html[dir="rtl"] body.company-panel .nav-left-sidebar,
    html[dir="ltr"] body.company-panel .nav-left-sidebar {
        width: 100% !important;
    }

    html[dir="rtl"] body.company-panel .dashboard-header .navbar.fixed-top,
    html[dir="ltr"] body.company-panel .dashboard-header .navbar.fixed-top {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }

    html[dir="rtl"] body.company-panel .dashboard-ecommerce,
    html[dir="ltr"] body.company-panel .dashboard-ecommerce,
    html[dir="rtl"] body.company-panel .dashboard-wrapper,
    html[dir="ltr"] body.company-panel .dashboard-wrapper {
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-top: var(--cp-topbar-h) !important;
    }
}

/* Company Admin M1 — transfer ledger confirmation */
body.company-panel .cp-payout-process { padding-top: 22px; padding-bottom: 40px; }
body.company-panel .cp-payout-process-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
body.company-panel .cp-payout-process-head h1 { margin: 4px 0; color: var(--cp-navy, #102940); font-size: 24px; font-weight: 800; }
body.company-panel .cp-payout-process-head p { margin: 0; color: var(--cp-muted, #66737f); font-size: 13px; }
body.company-panel .cp-payout-breadcrumb { display: flex; gap: 8px; color: var(--cp-muted, #66737f); font-size: 12px; }
body.company-panel .cp-payout-breadcrumb a { color: inherit; text-decoration: none; }
body.company-panel .cp-payout-request-id { padding: 6px 11px; border-radius: 20px; background: #f1f5f9; color: var(--cp-navy, #102940); font-size: 12px; font-weight: 700; }
body.company-panel .cp-payout-form-card { max-width: 980px; padding: 22px; border: 1px solid #e8e4da; border-radius: 16px; background: #fff; }
body.company-panel .cp-payout-request-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; padding: 16px; border-radius: 12px; background: #f1f5f9; }
body.company-panel .cp-payout-request-summary > div { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
body.company-panel .cp-payout-request-summary span { color: var(--cp-muted, #5b6b7b); font-size: 12px; }
body.company-panel .cp-payout-request-summary strong { color: var(--cp-navy, #102940); font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
body.company-panel .cp-payout-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body.company-panel .cp-payout-form-grid .form-group { min-width: 0; margin: 0; }
body.company-panel .cp-payout-form-grid label { display: block; margin-bottom: 7px; color: var(--cp-ink, #14212e); font-size: 13px; font-weight: 700; }
body.company-panel .cp-payout-form-grid .form-control { min-height: 44px; border: 1px solid #e8e4da; border-radius: 9px; font-family: inherit; font-size: 13px; }
body.company-panel .cp-payout-proof-field { grid-column: 1 / -1; }
body.company-panel .cp-payout-form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
body.company-panel .cp-payout-review-button,
body.company-panel .cp-payout-cancel-button,
body.company-panel .cp-payout-confirm-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border: 1px solid transparent; border-radius: 10px; font-family: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
body.company-panel .cp-payout-review-button,
body.company-panel .cp-payout-confirm-button { background: var(--cp-navy, #102940); color: #fff; }
body.company-panel .cp-payout-cancel-button { border-color: #e8e4da; background: #fff; color: var(--cp-ink, #14212e); }
body.company-panel .cp-payout-confirm-button:disabled { opacity: .48; cursor: not-allowed; }
body.company-panel .cp-payout-modal-open { overflow: hidden; }
body.company-panel .cp-payout-confirm-overlay[hidden] { display: none !important; }
body.company-panel .cp-payout-confirm-overlay { position: fixed; z-index: 20000; inset: 0; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 24px; background: rgb(16 41 64 / 55%); }
body.company-panel .cp-payout-confirm-modal { width: min(560px, 100%); padding: 24px; border: 1px solid #e8e4da; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgb(16 41 64 / 25%); }
body.company-panel .cp-payout-confirm-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
body.company-panel .cp-payout-confirm-heading > div { min-width: 0; flex: 1; }
body.company-panel .cp-payout-confirm-heading h2 { margin: 0 0 3px; color: var(--cp-ink, #14212e); font-size: 19px; font-weight: 800; }
body.company-panel .cp-payout-confirm-heading p { margin: 0; color: var(--cp-muted, #5b6b7b); font-size: 13px; }
body.company-panel .cp-payout-alert-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50%; background: #fdf3dc; }
body.company-panel .cp-payout-alert-icon img { width: 20px; height: 20px; }
body.company-panel .cp-payout-breakdown { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; padding: 16px; border-radius: 12px; background: #f1f5f9; }
body.company-panel .cp-payout-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.company-panel .cp-payout-breakdown span { color: var(--cp-muted, #5b6b7b); font-size: 13px; }
body.company-panel .cp-payout-breakdown strong { color: var(--cp-ink, #14212e); font-size: 13px; font-weight: 800; text-align: end; }
body.company-panel .cp-payout-breakdown .cp-payout-balance-after { margin-top: 2px; padding-top: 10px; border-top: 1px solid #e8e4da; }
body.company-panel .cp-payout-breakdown .cp-payout-balance-after span { color: var(--cp-ink, #14212e); font-weight: 800; }
body.company-panel .cp-payout-breakdown .cp-payout-balance-after strong { color: #216849; font-size: 16px; }
body.company-panel .cp-payout-source-account { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #e8e4da; border-radius: 10px; }
body.company-panel .cp-payout-source-account strong { color: var(--cp-ink, #14212e); font-size: 13px; }
body.company-panel .cp-payout-source-account span { color: var(--cp-muted, #5b6b7b); font-size: 12px; white-space: nowrap; }
body.company-panel .cp-payout-source-account b { color: var(--cp-navy, #102940); }
body.company-panel .cp-payout-confirm-warning { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; padding: 12px 14px; border-radius: 10px; background: #fdf3dc; color: #9a6208; }
body.company-panel .cp-payout-confirm-warning img { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; }
body.company-panel .cp-payout-confirm-warning p { margin: 0; font-size: 12px; line-height: 1.55; }
body.company-panel .cp-payout-insufficient { margin: -6px 0 12px; color: #a23b37; font-size: 12px; }
body.company-panel .cp-payout-agreement { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; color: var(--cp-ink, #14212e); font-size: 13px; cursor: pointer; }
body.company-panel .cp-payout-agreement input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--cp-navy, #102940); }
body.company-panel .cp-payout-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.company-panel .cp-payout-confirm-actions .cp-payout-cancel-button { order: 0; }
body.company-panel .cp-payout-confirm-actions .cp-payout-confirm-button { order: 1; }
body.company-panel .cp-payout-confirm-button img { width: 16px; height: 16px; }

@media (max-width: 767px) {
    body.company-panel .cp-payout-process-head { align-items: flex-start; flex-direction: column; }
    body.company-panel .cp-payout-request-summary { grid-template-columns: 1fr; }
    body.company-panel .cp-payout-form-grid { grid-template-columns: 1fr; }
    body.company-panel .cp-payout-proof-field { grid-column: auto; }
    body.company-panel .cp-payout-confirm-overlay { align-items: flex-start; padding: 16px; }
    body.company-panel .cp-payout-confirm-modal { margin: auto 0; padding: 18px; }
    body.company-panel .cp-payout-source-account { align-items: flex-start; flex-direction: column; gap: 5px; }
    body.company-panel .cp-payout-confirm-actions > * { flex: 1 1 100%; }
}

/* FIG-097 — paid, processing, and unpaid merchant invoices */
body.company-panel .cp-paid-invoices .card { overflow:hidden; border:1px solid var(--cp-withdrawal-line,#e5eaf0); border-radius:15px; box-shadow:0 8px 24px rgb(16 41 64 / 4%); }
body.company-panel .cp-paid-invoices .nav-pills { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; }
body.company-panel .cp-paid-invoices .nav-pills .nav-link { border:1px solid transparent; border-radius:9px; color:var(--cp-muted,#66737f); font-size:12px; white-space:nowrap; }
body.company-panel .cp-paid-invoices .nav-pills .nav-link.active { background:var(--cp-navy,#102940); color:#fff; }
body.company-panel .cp-paid-invoices-table { min-width:900px; margin:0; border-collapse:collapse; }
body.company-panel .cp-paid-invoices-table thead { background:#f1f5f9; }
body.company-panel .cp-paid-invoices-table th { padding:12px 13px; border-bottom:0; color:#5b6b7b; font-size:11px; font-weight:700; text-align:start; white-space:nowrap; }
body.company-panel .cp-paid-invoices-table td { padding:12px 13px; border-top:1px solid #eef1f4; color:#33485b; font-size:12px; vertical-align:middle; white-space:nowrap; }
body.company-panel .cp-paid-invoices-table td strong { color:var(--cp-navy,#102940); }
body.company-panel .cp-paid-invoices-table td code { color:var(--cp-navy,#102940); font-size:11px; }
body.company-panel .cp-paid-invoices-table .badge { border-radius:99px; padding:5px 9px; font-size:10px; }
body.company-panel .cp-paid-invoices-table .btn { min-height:30px; border-radius:8px; font-size:10px; font-weight:700; }
body.company-panel .cp-paid-invoices .pagination { margin:0; }

@media (max-width: 767px) {
    body.company-panel .cp-paid-invoices .card-header { padding:10px 12px !important; }
    body.company-panel .cp-paid-invoices-table { min-width:860px; }
    body.company-panel .cp-paid-invoices .card-body { padding:0 !important; }
}

/* Company layout: the sidebar offset belongs to the outer content wrapper. */
body.company-panel .dashboard-ecommerce > .main-content {
    margin: 0 !important;
    width: auto !important;
    max-width: none;
    padding: 24px 32px;
}
body.company-panel .dashboard-ecommerce > .main-content > .dashboard-content {
    padding: 0;
}
body.company-panel .dashboard-ecommerce > .main-content > footer.footer {
    width: 100% !important;
    margin-inline: 0 !important;
    box-sizing: border-box;
}

/* Dashboard summary cards */
body.company-panel .cp-dashboard .header-summery > .cp-dashboard-primary,
body.company-panel .cp-dashboard .header-summery > .cp-dashboard-secondary {
    padding-right: 8px;
    padding-left: 8px;
}
@media (min-width: 1200px) {
    body.company-panel .cp-dashboard .header-summery > .cp-dashboard-primary {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    body.company-panel .cp-dashboard .header-summery > .cp-dashboard-secondary {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Shell menus use the 260px language/profile width in Figma component 206:2. */
body.company-panel .lang-dropdown > .dropdown-menu {
    width: 260px !important;
    min-width: 260px !important;
    padding: 6px !important;
    border: 1px solid var(--cp-border) !important;
    border-radius: 12px !important;
}
body.company-panel .lang-dropdown > .dropdown-menu .dropdown-item {
    display: flex;
    height: 38px;
    align-items: center;
    padding: 0 10px;
    border-radius: 8px;
}
body.company-panel .cp-profile-dropdown {
    width: 260px !important;
    min-width: 260px !important;
    padding: 0 6px !important;
}
body.company-panel .cp-dashboard .total-card-color {
    border: 1px solid var(--cp-border) !important;
    border-radius: 16px;
    box-shadow: none;
    height: calc(100% - 16px);
    margin-bottom: 16px;
}
body.company-panel .cp-dashboard .total-card-body { padding: 16px; }
body.company-panel .cp-dashboard .total-card-body > div { align-items: center; gap: 12px; }
body.company-panel .cp-dashboard .total-card-body .box-content { min-width: 0; text-align: start !important; }
body.company-panel .cp-dashboard .total-card-body h5 { font-size: 12px; line-height: 1.5; margin-bottom: 6px; }
body.company-panel .cp-dashboard .total-card-body h1 { font-size: 22px; font-weight: 700; }
body.company-panel .cp-dashboard .dashboard-filter form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
body.company-panel .cp-dashboard .dashboard-filter-input { width: 240px !important; max-width: 100%; }
body.company-panel .dashboard-main-wrapper { padding-top: 0 !important; }
body.company-panel .cp-dashboard .total-card-body > div { flex-direction: column; align-items: stretch; gap: 6px; }
body.company-panel .cp-dashboard .total-card-body .icon { align-self: flex-start; margin: 0; padding: 0 !important; }
body.company-panel .cp-dashboard .total-card-body .icon i { font-size: 14px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
body.company-panel .cp-dashboard .total-card-body .box-content { padding: 0 !important; width: 100%; }
body.company-panel .cp-dashboard .header-summery > div > a,
body.company-panel .cp-dashboard .header-summery > div > .card { height: calc(100% - 16px); }
body.company-panel .cp-dashboard .header-summery > div > a > .card { height: 100%; }
body.company-panel .cp-dashboard .header-summery .total-card-color { min-height: 140px; }
body.company-panel .cp-dashboard .dashboard-filter {
    background: var(--cp-card);
    border: 1px solid var(--cp-border);
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: none;
}
body.company-panel .cp-dashboard .dashboard-filter form { display: block; }
body.company-panel .cp-dashboard .dashboard-filter form > label {
    display: block;
    margin: 0 0 6px;
    color: var(--cp-text-muted);
    font-size: 12px;
    font-weight: 600;
}
body.company-panel .cp-dashboard-filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
body.company-panel .cp-dashboard-filter-controls .dashboard-filter-input {
    flex: 0 1 228px;
    height: 40px;
    border: 1px solid var(--cp-border);
    border-radius: 10px;
}
body.company-panel .cp-dashboard-filter-controls .group-btn {
    height: 40px;
    padding-inline: 20px;
    border-radius: 10px;
    background: var(--cp-navy);
    border-color: var(--cp-navy);
    font-weight: 600;
}
body.company-panel .cp-dashboard-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
body.company-panel .cp-dashboard-shortcuts .cp-shortcut-pill {
    padding: 7px 12px;
    border-radius: 18px;
    background: var(--cp-gold-light) !important;
    border: 1px dashed var(--cp-gold);
    color: var(--cp-gold-dark);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
body.company-panel .cp-dashboard-shortcuts .cp-shortcut-pill:hover,
body.company-panel .cp-dashboard-shortcuts .cp-shortcut-pill:focus-visible {
    background: #ffefc7 !important;
    outline: 2px solid rgba(230, 173, 53, .35);
    outline-offset: 1px;
}
body.company-panel .cp-dashboard-statements .list-group {
    height: 100%;
    margin-top: 0 !important;
    overflow: hidden;
    border: 1px solid var(--cp-border);
    border-radius: 14px;
}
body.company-panel .cp-dashboard-statements .list-group-item {
    border-color: var(--cp-border-light);
    padding: 12px 16px;
    font-size: 13px;
}
body.company-panel .cp-dashboard-statements .list-group-item:first-child {
    min-height: 44px;
    background: var(--cp-bg);
    text-align: start !important;
    font-size: 14px;
}
body.company-panel .cp-dashboard-calendar-row > .col-12 > .card {
    width: 42%;
    border: 1px solid var(--cp-border);
    border-radius: 16px;
    box-shadow: none;
}
body.company-panel .cp-dashboard-calendar-row .card-body { padding: 16px; }
body.company-panel .cp-dashboard-bottom > .cp-dashboard-calendar-column,
body.company-panel .cp-dashboard-bottom > .cp-dashboard-recent-column { padding: 0 8px; }
body.company-panel .cp-dashboard-recent {
    height: 360px;
    padding: 14px 16px;
    border: 1px dashed var(--cp-gold);
    border-radius: 16px;
    background: var(--cp-gold-light);
}
body.company-panel .cp-dashboard-recent-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
body.company-panel .cp-dashboard-recent-heading h2 {
    margin: 0 0 2px;
    font-size: 14px;
    line-height: 1.5;
}
body.company-panel .cp-dashboard-recent-heading p {
    margin: 0;
    color: var(--cp-text-muted);
    font-size: 11px;
    line-height: 1.5;
}
body.company-panel .cp-dashboard-proposed {
    flex: none;
    padding: 4px 12px;
    border-radius: 14px;
    background: var(--cp-gold-light);
    color: var(--cp-gold-dark);
    font-size: 11px;
    font-weight: 700;
}
body.company-panel .cp-dashboard-recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.company-panel .cp-dashboard-recent-row {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--cp-border);
    border-radius: 10px;
    background: #fff;
    color: var(--cp-text);
    text-decoration: none;
}
body.company-panel .cp-dashboard-recent-row:hover {
    border-color: var(--cp-gold);
    color: var(--cp-text);
    text-decoration: none;
}
body.company-panel .cp-dashboard-recent-tracking {
    flex: 0 0 110px;
    font-size: 12px;
    font-weight: 600;
}
body.company-panel .cp-dashboard-recent-merchant {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.company-panel .cp-dashboard-status {
    flex: none;
    padding: 4px 10px;
    border-radius: 14px;
    background: var(--cp-info-light);
    color: var(--cp-text-muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
body.company-panel .cp-dashboard-status--waiting { background: var(--cp-warning-light); color: var(--cp-gold-dark); }
body.company-panel .cp-dashboard-status--transit { background: var(--cp-info-light); color: var(--cp-info); }
body.company-panel .cp-dashboard-status--delivered,
body.company-panel .cp-dashboard-status--received { background: var(--cp-success-light); color: var(--cp-success); }
body.company-panel .cp-dashboard-status--returned { background: var(--cp-danger-light); color: var(--cp-danger); }
body.company-panel .cp-dashboard-recent-empty {
    display: grid;
    min-height: 250px;
    place-items: center;
    padding: 24px;
    border: 1px dashed var(--cp-gold);
    border-radius: 12px;
    background: rgba(255, 255, 255, .7);
    color: var(--cp-text-muted);
    font-size: 13px;
    text-align: center;
}
body.company-panel .cp-dashboard-calendar-card {
    height: 360px;
    margin: 0;
    border: 1px solid var(--cp-border);
    border-radius: 16px;
    box-shadow: none;
}
body.company-panel .cp-dashboard-calendar-card .card-body { padding: 10px 12px; }
@media (max-width: 1199.98px) {
    body.company-panel .cp-dashboard-filter-controls { flex-wrap: wrap; }
    body.company-panel .cp-dashboard-calendar-row > .col-12 > .card { width: 100%; }
    body.company-panel .cp-dashboard-recent,
    body.company-panel .cp-dashboard-calendar-card { height: auto; }
    body.company-panel .cp-dashboard-bottom > .cp-dashboard-calendar-column { margin-top: 16px; }
}
@media (max-width: 575.98px) {
    body.company-panel .cp-dashboard .dashboard-filter { padding: 12px; }
    body.company-panel .cp-dashboard-filter-controls { align-items: stretch; }
    body.company-panel .cp-dashboard-filter-controls .dashboard-filter-input { flex: 1 1 100%; }
    body.company-panel .cp-dashboard-shortcuts { width: 100%; }
}
body.company-panel .cp-dashboard .header-summery .total-card-color { min-height: 108px; }
body.company-panel .cp-dashboard > .cp-page-head { border-bottom: 0; padding-bottom: 0; }
body.company-panel .cp-dashboard .total-card-body { padding: 10px 12px; }
body.company-panel .cp-dashboard .total-card-body .icon { width: 28px; height: 28px; border-radius: 8px; }
body.company-panel .cp-dashboard .total-card-body h5 { line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.company-panel .cp-dashboard .total-card-body h1 { font-size: 20px; line-height: 1.2; }
body.company-panel .cp-dashboard .total-card-body h1 { color: var(--cp-navy); }
body.company-panel .cp-dashboard .profile-list-group-item:first-child { color: var(--cp-navy); font-weight: 700; }
body.company-panel > footer.footer { box-sizing: border-box; width: auto !important; }
html[dir="ltr"] body.company-panel > footer.footer { margin-left: var(--cp-sidebar-w) !important; margin-right: 0 !important; }
html[dir="rtl"] body.company-panel > footer.footer { margin-right: var(--cp-sidebar-w) !important; margin-left: 0 !important; }
@media (max-width: 767.98px) {
    html[dir] body.company-panel > footer.footer { margin-left: 0 !important; margin-right: 0 !important; }
}
body.company-panel .cp-dashboard .dashboard-filter-input { direction: ltr; text-align: start; }
body.company-panel .cp-dashboard .total-card-body .metric-value h1 { color: var(--cp-navy) !important; }
body.company-panel .cp-dashboard .total-card-body h5.text-muted { color: var(--cp-text-muted) !important; }
@media (min-width: 1200px) {
    body.company-panel .cp-dashboard-chart-main { flex: 0 0 64%; max-width: 64%; }
    body.company-panel .cp-dashboard-chart-pie { flex: 0 0 36%; max-width: 36%; }
}
body.company-panel .cp-dashboard-charts .card { border: 1px solid var(--cp-border); border-radius: 16px; box-shadow: none; }
body.company-panel .cp-dashboard-charts .card-body { min-height: 0; padding: 10px 14px; }
body.company-panel .cp-dashboard-charts .card-footer { padding: 10px 16px; background: #fff; }
body.company-panel .cp-dashboard-charts .card-footer .display-7 { margin: 0; font-size: 16px; line-height: 1.4; }
body.company-panel .cp-dashboard-calendar-row > .col-12 > .card { width: 39%; margin-inline-start: auto; }
body.company-panel .cp-dashboard-charts .apexcharts { direction: ltr; }
body.company-panel .cp-dashboard .header-summery > .cp-dashboard-primary .total-card-color { min-height: 92px; }
body.company-panel .cp-dashboard .header-summery > .cp-dashboard-secondary .total-card-color { min-height: 88px; }
body.company-panel .cp-dashboard .header-summery > .cp-dashboard-primary .total-card-body > div { gap: 2px; }
body.company-panel .cp-dashboard .header-summery > .cp-dashboard-primary .total-card-body h5 { margin-bottom: 0; }
body.company-panel .cp-dashboard .header-summery > .cp-dashboard-primary .total-card-body h1 { margin-bottom: 0; line-height: 1.1; }
body.company-panel .cp-dashboard .header-summery > .cp-dashboard-secondary .total-card-body { padding-block: 2.5px; }
body.company-panel .cp-dashboard .header-summery > .cp-dashboard-secondary .total-card-body h5 { margin-bottom: 0; }
body.company-panel .cp-dashboard .header-summery > .cp-dashboard-secondary .total-card-body h1 { margin-bottom: 0; line-height: 1.1; }
body.company-panel .cp-dashboard-statements .list-group-item:first-child {
    min-height: 52px;
    padding-block: 16px;
    background: #fff;
}
body.company-panel .cp-dashboard-statements .list-group-item:not(:first-child) { padding-block: 9.15px; }

@media (min-width: 1200px) {
    body.company-panel .cp-dashboard .dashboard-filter {
        margin: 4px 15px 20px;
        max-width: calc(100% - 30px);
        padding-block: 8.5px;
    }
    body.company-panel .cp-dashboard .dashboard-filter form > label { margin-bottom: 5px; }
    body.company-panel .cp-dashboard-summary { display: flex; flex-direction: column; gap: 14px; }
    body.company-panel .cp-dashboard-metric-grid {
        display: grid;
        width: 100%;
        margin: 0;
    }
    body.company-panel .cp-dashboard-metric-grid--primary {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 12px;
    }
    body.company-panel .cp-dashboard-metric-grid--secondary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
    body.company-panel .cp-dashboard-metric-grid > .cp-dashboard-primary,
    body.company-panel .cp-dashboard-metric-grid > .cp-dashboard-secondary {
        width: auto;
        max-width: none;
        flex: none;
        margin: 0;
        padding: 0;
    }
    body.company-panel .cp-dashboard-metric-grid--primary .total-card-color {
        height: 104px;
        min-height: 104px;
        margin: 0;
    }
    body.company-panel .cp-dashboard-metric-grid--primary .total-card-body { padding: 14px 12px 12px; }
    body.company-panel .cp-dashboard-metric-grid--primary .total-card-body > div { gap: 6px; }
    body.company-panel .cp-dashboard-metric-grid--primary .icon {
        display: flex;
        width: 30px;
        height: 30px;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
    }
    body.company-panel .cp-dashboard-metric-grid--primary .icon i { display: none; }
    body.company-panel .cp-dashboard-metric-grid--primary .icon::after {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: currentColor;
        content: "";
    }
    body.company-panel .cp-dashboard-metric-grid--primary > :nth-child(1) .icon { background: #fff6df; color: #8a5b00; }
    body.company-panel .cp-dashboard-metric-grid--primary > :nth-child(2) .icon { background: #e6ecf3; color: #34516b; }
    body.company-panel .cp-dashboard-metric-grid--primary > :nth-child(3) .icon { background: #e7f3ee; color: #216849; }
    body.company-panel .cp-dashboard-metric-grid--primary > :nth-child(4) .icon { background: #fff6df; color: #8a5b00; }
    body.company-panel .cp-dashboard-metric-grid--primary > :nth-child(5) .icon { background: #e3e9f0; color: #102940; }
    body.company-panel .cp-dashboard-metric-grid--primary > :nth-child(6) .icon { background: #eef1f5; color: #617286; }
    body.company-panel .cp-dashboard-metric-grid--secondary .total-card-color {
        position: relative;
        height: 96px;
        min-height: 96px;
        margin: 0;
    }
    body.company-panel .cp-dashboard-metric-grid--secondary .total-card-body { padding: 18px 20px; }
    body.company-panel .cp-dashboard-metric-grid--secondary .icon { display: none; }
    body.company-panel .cp-dashboard-metric-grid--secondary .total-card-body > div { gap: 0; }
    body.company-panel .cp-dashboard-metric-grid--secondary .total-card-body h5 { margin-bottom: 10px; }
    body.company-panel .cp-dashboard-metric-grid--secondary .total-card-color::after {
        position: absolute;
        top: 20px;
        inset-inline-end: 4px;
        width: 4px;
        height: 56px;
        border-radius: 2px;
        background: var(--cp-success);
        content: "";
    }
    body.company-panel .cp-dashboard-metric-grid--secondary > :nth-child(3) .total-card-color::after { background: #8a5b00; }
    body.company-panel .cp-dashboard-statements {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin: 20px 0 0;
    }
    body.company-panel .cp-dashboard-statements > div { width: auto; max-width: none; padding: 0; }
    body.company-panel .cp-dashboard-statements .list-group-item:first-child { min-height: 52px; }
    body.company-panel .cp-dashboard-charts {
        display: grid;
        grid-template-columns: 700px 372px;
        gap: 16px;
        margin: 20px 0 0;
    }
    body.company-panel .cp-dashboard-charts > div { width: auto; max-width: none; padding: 0; }
    body.company-panel .cp-dashboard-charts .card { height: 330px; }
    body.company-panel .cp-dashboard-charts .card-body { height: 280px; }
    body.company-panel .cp-dashboard-charts .card-footer { height: 49px; }
    body.company-panel .cp-dashboard-bottom {
        display: grid;
        grid-template-columns: 652px 420px;
        gap: 16px;
        margin: 20px 0 0;
    }
    body.company-panel .cp-dashboard-bottom > div { width: auto; max-width: none; padding: 0; }
    body.company-panel .cp-dashboard-recent,
    body.company-panel .cp-dashboard-calendar-card { height: 360px; }
}

@media (max-width: 1199.98px) {
    body.company-panel .cp-dashboard-summary { display: grid; gap: 0; }
    body.company-panel .cp-dashboard-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
    body.company-panel .cp-dashboard-metric-grid > div { min-width: 0; }
}

@media (min-width: 1200px) {
    body.company-panel .cp-dashboard .dashboard-filter { margin-bottom: 20px !important; }
    body.company-panel .cp-dashboard-statements { margin-bottom: 20px !important; }
    body.company-panel .cp-dashboard-statements .list-group-item:first-child { padding-block: 13.65px; }
    body.company-panel .cp-dashboard-statements > div { padding: 0 !important; }
    body.company-panel .cp-dashboard-statements .list-group { min-height: 176px; }
    body.company-panel .cp-dashboard-charts { grid-template-columns: 700px minmax(0, calc(100% - 716px)); }
    body.company-panel .cp-dashboard-charts > div { padding: 0 !important; }
    body.company-panel .cp-dashboard-bottom { grid-template-columns: 652px minmax(0, calc(100% - 668px)); }
    body.company-panel .cp-dashboard-bottom > div { padding: 0 !important; }
    body.company-panel .cp-dashboard-charts .card { margin-bottom: 0; }
    body.company-panel .cp-dashboard-metric-grid--primary .icon i { display: none !important; }
    body.company-panel .cp-dashboard-metric-grid--secondary .icon { display: none !important; }
    body.company-panel .cp-dashboard-metric-grid--primary > :nth-child(1) .icon::after { background: #8a5b00; }
    body.company-panel .cp-dashboard-metric-grid--primary > :nth-child(2) .icon::after { background: #34516b; }
    body.company-panel .cp-dashboard-metric-grid--primary > :nth-child(3) .icon::after { background: #216849; }
    body.company-panel .cp-dashboard-metric-grid--primary > :nth-child(4) .icon::after { background: #8a5b00; }
    body.company-panel .cp-dashboard-metric-grid--primary > :nth-child(5) .icon::after { background: #102940; }
    body.company-panel .cp-dashboard-metric-grid--primary > :nth-child(6) .icon::after { background: #617286; }
}

/* Four-step parcel entry: Figma 203:134 (recipient step). */
html:has(body.company-panel) {
    scrollbar-gutter: stable;
    --cp-parcel-scrollbar-gap: 10px;
}

@media (min-width: 1200px) {
    body.company-panel .cp-parcel-create {
        width: 100% !important;
    }

    body.company-panel .cp-parcel-create > .cp-page-head,
    body.company-panel .cp-parcel-create .cp-stepper-card,
    body.company-panel .cp-parcel-create .cp-parcel-create-grid {
        width: min(1088px, calc(100% + var(--cp-parcel-scrollbar-gap, 0px))) !important;
        max-width: none !important;
        position: relative;
        right: auto !important;
        left: var(--cp-parcel-scrollbar-gap, 0px);
    }

    body.company-panel .cp-parcel-create > .cp-page-head {
        position: relative;
        height: 64px;
        margin: -3px 0 26px !important;
        padding: 0 !important;
        border: 0;
    }

    body.company-panel .cp-parcel-create > .cp-page-head .cp-page-head-content {
        position: absolute;
        inset: 0 0 auto auto;
        width: 720px;
        max-width: 100%;
        text-align: right;
    }

    body.company-panel .cp-parcel-create > .cp-page-head .cp-page-head-content nav,
    body.company-panel .cp-parcel-create > .cp-page-head .cp-page-head-actions {
        display: none !important;
    }

    body.company-panel .cp-parcel-create > .cp-page-head .cp-page-title {
        margin: 0 0 4px !important;
        line-height: 1.3;
    }

    body.company-panel .cp-parcel-create > .cp-stepper-card {
        box-sizing: border-box;
        height: 84px;
        margin: 0 0 20px !important;
        padding: 15px 30px;
        box-shadow: none;
    }

    body.company-panel .cp-parcel-create .cp-stepper {
        width: 100%;
        max-width: none;
        height: 52px;
        margin: 0;
    }

    body.company-panel .cp-parcel-create .cp-step-circle {
        width: 32px;
        height: 32px;
        margin-bottom: 6px;
        font-size: 12px;
        box-shadow: none;
    }

    body.company-panel .cp-parcel-create .cp-step.active .cp-step-circle {
        box-shadow: none;
    }

    body.company-panel .cp-parcel-create .cp-step.completed .cp-step-circle {
        font-size: 0;
    }

    body.company-panel .cp-parcel-create .cp-step.completed .cp-step-circle::after {
        color: #fff;
        content: "\f00c";
        font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
        font-size: 12px;
        font-weight: 900;
    }

    body.company-panel .cp-parcel-create .cp-step-line {
        top: 16px;
        right: 136px;
        left: 136px;
        height: 1px;
    }

    body.company-panel .cp-parcel-create .cp-parcel-create-grid {
        display: grid;
        grid-template-columns: minmax(0, 2.09fr) minmax(230px, 1fr);
        gap: 24px;
        width: 1088px;
        max-width: 100%;
        margin: 0 !important;
        direction: rtl;
    }

    body.company-panel .cp-parcel-create .cp-parcel-create-grid > .col-xl-8,
    body.company-panel .cp-parcel-create .cp-parcel-create-grid > .col-xl-4 {
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
        flex: none;
    }

    body.company-panel .cp-parcel-create .cp-form-section {
        box-sizing: border-box;
        position: relative;
        min-height: 540px;
        margin: 0 !important;
        padding: 20px 23px !important;
        box-shadow: none;
    }

    body.company-panel .cp-parcel-create .cp-form-section[data-active-step="1"] { height: 266px; min-height: 266px; }
    body.company-panel .cp-parcel-create .cp-form-section[data-active-step="2"] { height: 340px; min-height: 340px; }
    body.company-panel .cp-parcel-create .cp-form-section[data-active-step="3"] { height: auto; min-height: 404px; }
    body.company-panel .cp-parcel-create .cp-form-section[data-active-step="4"] { height: 314px; min-height: 314px; }

    body.company-panel .cp-parcel-create .cp-form-section .wizard-panel > .border-bottom {
        margin-bottom: 16px !important;
        padding-bottom: 8px !important;
    }

    body.company-panel .cp-parcel-create .cp-form-section .wizard-panel > .border-bottom h4 {
        font-size: 16px !important;
        line-height: 1.4;
    }

    body.company-panel .cp-parcel-create .cp-form-section .wizard-panel > .border-bottom p {
        font-size: 12px !important;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="1"] > .row,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] > .row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 324px));
        grid-auto-rows: min-content;
        gap: 16px 24px;
        width: 672px;
        max-width: 100%;
        margin: 0;
        justify-content: space-between;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="1"] > .row > .form-group,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] > .row > .form-group {
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="1"] label,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] label,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] label {
        display: block;
        margin: 0 !important;
        font-size: 13px;
        line-height: 24px;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="1"] .form-control,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="1"] .select2-container,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="1"] .select2-selection,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .form-control,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .select2-container,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .select2-selection,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] .form-control,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] .select2-container,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] .select2-selection {
        width: 100% !important;
        height: 44px !important;
        border-radius: 10px !important;
    }

    body.company-panel .cp-parcel-create .wizard-panel input[type="number"] {
        -moz-appearance: textfield;
    }

    body.company-panel .cp-parcel-create .wizard-panel input[type="number"]::-webkit-inner-spin-button,
    body.company-panel .cp-parcel-create .wizard-panel input[type="number"]::-webkit-outer-spin-button {
        margin: 0;
        -webkit-appearance: none;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="1"] .select2-selection,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .select2-selection,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] .select2-selection {
        display: flex;
        align-items: center;
        border: 1px solid var(--cp-border) !important;
        background: #fff !important;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="1"] small {
        display: block;
        margin-top: 2px !important;
        font-size: 11.5px;
        line-height: 16px;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] small {
        display: block;
        margin-top: 2px !important;
        font-size: 11.5px;
        line-height: 16px;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(7),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(8) {
        min-height: 68px;
        padding-top: 22px !important;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .input-group {
        display: flex;
        flex-wrap: nowrap;
        height: 44px;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .input-group > .form-control {
        flex: 1 1 1%;
        width: 1% !important;
        min-width: 0;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .input-group-prepend,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .input-group-append {
        flex: 0 0 auto;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .input-group-prepend .btn,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .input-group-append .btn {
        height: 44px;
        min-width: 40px;
        padding: 4px 10px;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-parcel-toggle-field .form-check,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] .cp-parcel-toggle-field .form-check {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 24px;
        margin: 0;
        direction: ltr;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-parcel-toggle-field .form-check-input,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] .cp-parcel-toggle-field .form-check-input {
        position: static;
        flex: 0 0 44px;
        width: 44px;
        height: 24px;
        margin: 0 !important;
        border-radius: 12px;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-parcel-toggle-field .form-check-input:checked,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] .cp-parcel-toggle-field .form-check-input:checked {
        background-color: var(--cp-navy) !important;
        border-color: var(--cp-navy) !important;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-parcel-toggle-field label,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] .cp-parcel-toggle-field label {
        flex: 1 1 auto;
        margin: 0 !important;
        white-space: nowrap;
        text-align: right;
        direction: rtl;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-parcel-toggle-field small,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] .cp-parcel-toggle-field small {
        display: block;
        margin: 2px 54px 0 0 !important;
        font-size: 11.5px;
        line-height: 16px;
        white-space: nowrap;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] > .row > .form-group:nth-child(3) {
        grid-column: 1 / -1;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] textarea.form-control {
        height: 92px !important;
        min-height: 92px;
        resize: none;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] .input-group {
        height: 44px;
        flex-wrap: nowrap;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="4"] .input-group-append .input-group-text {
        height: 42px;
        min-width: 58px;
        justify-content: center;
        border-color: var(--cp-border);
        background: #f5f7fa;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] > .row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 324px));
        grid-auto-rows: min-content;
        gap: 16px 24px;
        width: 672px;
        max-width: 100%;
        margin: 0;
        justify-content: space-between;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] > .row > .form-group {
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] label {
        display: block;
        margin: 0 0 0 !important;
        font-size: 13px;
        line-height: 24px;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] .form-control,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] .select2-container,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] .select2-selection {
        width: 100% !important;
        height: 44px !important;
        border-radius: 10px !important;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] .select2-selection {
        display: flex;
        align-items: center;
        border: 1px solid var(--cp-border) !important;
        background: #fff !important;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] > .row > .form-group:nth-child(5),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] > .row > .form-group:nth-child(6) {
        grid-column: auto;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] #map:not(.has-google-map),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] #map.has-google-map {
        height: 150px !important;
    }

    body.company-panel .cp-parcel-create .cp-cost-summary {
        box-sizing: border-box;
        width: 344px;
        height: 448px;
        min-height: 448px;
        margin: 0 !important;
        padding: 20px;
        box-shadow: none;
    }

    body.company-panel .cp-parcel-create .cp-cost-title {
        height: 32px;
        margin: 0 !important;
        padding: 0 0 4px;
        font-size: 17px;
        line-height: 27px;
    }

    body.company-panel .cp-parcel-create .cp-cost-basis {
        margin: 0 0 5px;
        color: var(--cp-link);
        font-size: 10.5px;
        line-height: 15px;
    }

    body.company-panel .cp-parcel-create #validationWarning {
        margin: 8px 0 4px !important;
        padding: 5px 8px !important;
        font-size: 11px !important;
        line-height: 16px;
    }

    body.company-panel .cp-parcel-create .summary-body {
        margin-top: 0 !important;
    }

    body.company-panel .cp-parcel-create .cp-cost-row {
        min-height: 30px;
        padding: 5px 0;
        font-size: 12.5px;
        line-height: 20px;
    }

    body.company-panel .cp-parcel-create .cp-cost-divider {
        margin: 5px 0;
    }

    body.company-panel .cp-parcel-create .cp-cost-merchant {
        margin-top: 5px;
        padding: 7px 9px;
    }

    body.company-panel .cp-parcel-create .cp-cost-merchant span {
        font-size: 12.5px;
    }

    body.company-panel .cp-parcel-create .cp-cost-merchant .cp-cost-val {
        font-size: 14px;
    }

    body.company-panel .cp-parcel-create .cp-wizard-navigation {
        position: absolute;
        z-index: 1010;
        top: calc(100% + 20px);
        right: 0;
        bottom: auto;
        left: auto;
        box-sizing: border-box;
        width: 100%;
        height: 76px;
        margin: 0 !important;
        padding: 18px 23px !important;
        border-top: 1px solid var(--cp-border) !important;
        background: #fff;
    }

    body.company-panel .cp-parcel-create .cp-wizard-navigation > .d-flex {
        gap: 10px;
        direction: ltr;
    }

    body.company-panel .cp-parcel-create .cp-wizard-navigation #btnNext { order: 1; }
    body.company-panel .cp-parcel-create .cp-wizard-navigation #btnPrev { order: 2; }

    body.company-panel .cp-parcel-create .cp-wizard-navigation #btnNext,
    body.company-panel .cp-parcel-create .cp-wizard-navigation #btnPrev {
        width: 92px;
        height: 40px;
        border-radius: 10px !important;
        box-shadow: none !important;
    }

    body.company-panel .cp-parcel-create .cp-wizard-navigation #btnSubmit {
        width: 176px;
        height: 40px;
        border-radius: 10px !important;
        box-shadow: none !important;
    }

    body.company-panel .cp-parcel-create .cp-wizard-navigation #btnNext i,
    body.company-panel .cp-parcel-create .cp-wizard-navigation #btnPrev i {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    body.company-panel .cp-parcel-create > .cp-page-head .cp-page-head-content nav { display: none; }
    body.company-panel .cp-parcel-create .cp-parcel-create-grid { display: flex; flex-direction: column; gap: 16px; }
    body.company-panel .cp-parcel-create .cp-parcel-create-grid > .col-xl-8,
    body.company-panel .cp-parcel-create .cp-parcel-create-grid > .col-xl-4 { width: 100%; max-width: none; padding: 0; }
    body.company-panel .cp-parcel-create .cp-stepper-card { width: 100%; }
    body.company-panel .cp-parcel-create .cp-form-section,
    body.company-panel .cp-parcel-create .cp-cost-summary { width: 100%; height: auto; min-height: 0; }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 0; }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] > .row > .form-group:nth-child(5),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] > .row > .form-group:nth-child(6) { grid-column: 1 / -1; }
    body.company-panel .cp-parcel-create .cp-wizard-navigation { position: static; height: auto; margin-top: 16px !important; padding: 16px 0 !important; }
}

@media (max-width: 767.98px) {
    body.company-panel .cp-parcel-create .cp-form-section[data-active-step="4"] .cp-wizard-navigation > .d-flex {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }
    body.company-panel .cp-parcel-create .cp-form-section[data-active-step="4"] .cp-wizard-navigation #btnPrev,
    body.company-panel .cp-parcel-create .cp-form-section[data-active-step="4"] .cp-wizard-navigation > .d-flex > a {
        box-sizing: border-box;
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        justify-content: center;
    }
    body.company-panel .cp-parcel-create .cp-form-section[data-active-step="4"] .cp-wizard-navigation #btnSubmit {
        box-sizing: border-box;
        width: 100%;
        flex: 0 0 100%;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] > .row {
        grid-template-columns: minmax(0, 1fr);
    }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] > .row > .form-group {
        grid-column: 1;
        min-width: 0;
    }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] .select2-container,
    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] .select2-selection--single {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
    }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="2"] .select2-selection__rendered {
        box-sizing: border-box;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    body.company-panel .cp-parcel-create .cp-parcel-toolbar {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        gap: 8px;
    }

    body.company-panel .cp-parcel-create .cp-parcel-heading {
        grid-column: 1 / -1;
        grid-row: 1;
        width: auto;
        min-width: 0;
        margin: 0;
        text-align: right;
    }

    body.company-panel .cp-parcel-create .cp-parcel-global-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
    }

    body.company-panel .cp-parcel-create .cp-parcel-branch {
        grid-column: 1 / 3;
        grid-row: 3;
        width: 100%;
        margin: 0;
    }

    body.company-panel .cp-parcel-create .cp-parcel-notification { grid-column: 3; grid-row: 3; justify-self: center; }
    body.company-panel .cp-parcel-create .cp-parcel-tools { grid-column: 4; grid-row: 3; justify-self: center; }
    body.company-panel .cp-parcel-create .cp-parcel-new-shipment { grid-column: 1 / -1; grid-row: 4; justify-content: center; }
}

/* Company Admin D4 — merchant withdrawal queue */
body.company-panel .cp-withdrawal-page {
    --cp-withdrawal-canvas: #f6f4ef;
    --cp-withdrawal-line: #e8e4da;
    padding-top: 22px;
    padding-bottom: 40px;
    color: var(--cp-ink, #14212e);
}

body.company-panel .cp-withdrawal-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

body.company-panel .cp-withdrawal-head h1 {
    margin: 2px 0 0;
    color: var(--cp-navy, #102940);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.35;
}

body.company-panel .cp-withdrawal-breadcrumb,
body.company-panel .cp-withdrawal-eyebrow {
    color: var(--cp-muted, #66737f);
    font-size: 12px;
}

body.company-panel .cp-withdrawal-breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

body.company-panel .cp-withdrawal-breadcrumb a { color: inherit; text-decoration: none; }
body.company-panel .cp-withdrawal-eyebrow { margin: 0; }

body.company-panel .cp-withdrawal-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--cp-gold, #e6ad35);
    color: var(--cp-navy, #102940);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

body.company-panel .cp-withdrawal-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

body.company-panel .cp-withdrawal-kpi,
body.company-panel .cp-withdrawal-table-card {
    border: 1px solid var(--cp-withdrawal-line);
    border-radius: 16px;
    background: #fff;
}

body.company-panel .cp-withdrawal-kpi {
    display: flex;
    min-width: 0;
    min-height: 118px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 14px 16px;
}

body.company-panel .cp-withdrawal-kpi-label {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--cp-muted, #5b6b7b);
    font-size: 13px;
}

body.company-panel .cp-withdrawal-kpi-label i {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--cp-navy, #102940);
}

body.company-panel .cp-withdrawal-kpi > strong {
    color: var(--cp-ink, #14212e);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
}

body.company-panel .cp-withdrawal-kpi > strong small { font-size: 12px; font-weight: 700; }
body.company-panel .cp-withdrawal-kpi > strong.cp-amount-success { color: #216849; }

body.company-panel .cp-withdrawal-kpi-note {
    display: inline-flex;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

body.company-panel .cp-note-info { background: #e8f0f8; color: #2b5f8e; }
body.company-panel .cp-note-muted { background: #f1f5f9; color: #5b6b7b; }
body.company-panel .cp-note-success { background: #eaf5ef; color: #216849; }
body.company-panel .cp-note-warning { background: #fdf3dc; color: #9a6208; }

body.company-panel .cp-withdrawal-rules {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 11px 15px;
    border-radius: 12px;
    background: #e8f0f8;
    color: #2b5f8e;
    font-size: 13px;
}

body.company-panel .cp-withdrawal-table-card { overflow: hidden; }

body.company-panel .cp-withdrawal-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
}

body.company-panel .cp-withdrawal-table-head h2 {
    margin: 0;
    color: var(--cp-navy, #102940);
    font-size: 17px;
    font-weight: 800;
}

body.company-panel .cp-withdrawal-table-head p {
    margin: 3px 0 0;
    color: var(--cp-muted, #66737f);
    font-size: 12px;
}

body.company-panel .cp-withdrawal-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

body.company-panel .cp-withdrawal-filters input,
body.company-panel .cp-withdrawal-filters select {
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid var(--cp-withdrawal-line);
    border-radius: 9px;
    background: #fff;
    color: var(--cp-ink, #14212e);
    font-family: inherit;
    font-size: 12px;
}

body.company-panel .cp-withdrawal-filters input { width: 230px; }
body.company-panel .cp-withdrawal-filters select { min-width: 130px; }

@media (max-width: 1200px) {
    body.company-panel .cp-withdrawal-filters input { width: 165px; }
    body.company-panel .cp-withdrawal-filters select { min-width: 120px; max-width: 210px; }
}

body.company-panel .cp-withdrawal-filters button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: var(--cp-navy, #102940);
    color: #fff;
}

body.company-panel .cp-withdrawal-clear { color: var(--cp-muted, #66737f); font-size: 12px; }
body.company-panel .cp-withdrawal-advanced-filter { position: relative; }
body.company-panel .cp-withdrawal-advanced-filter summary { cursor: pointer; color: var(--cp-navy, #102940); font-size: 12px; }
body.company-panel .cp-withdrawal-advanced-filter label,
body.company-panel .cp-withdrawal-advanced-filter select { display: block; margin-top: 6px; }
body.company-panel .cp-withdrawal-table-wrap { overflow-x: auto; }

body.company-panel .cp-merchant-payment-card { border: 1px solid var(--cp-withdrawal-line, #e8e4da); border-radius: 14px; box-shadow: 0 8px 24px rgba(16, 41, 64, .04); }
body.company-panel .cp-merchant-payment-card .card-body { padding: 24px; }
body.company-panel .cp-payment-form-heading { margin-bottom: 22px; }
body.company-panel .cp-payment-form-heading h2 { margin: 0; color: var(--cp-ink, #14212e); font-size: 16px; font-weight: 700; }
body.company-panel .cp-payment-form-heading p { margin: 5px 0 0; color: var(--cp-muted, #66737f); font-size: 12px; }
body.company-panel .cp-merchant-payment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; margin: 0; }
body.company-panel .cp-merchant-payment-fields { display: contents; }
body.company-panel .cp-merchant-payment-fields > .form-group,
body.company-panel .cp-merchant-payment-grid .process > .form-group { min-width: 0; margin: 0; }
body.company-panel .cp-merchant-payment-grid .process { display: contents; }
body.company-panel .cp-merchant-payment-grid .form-control,
body.company-panel .cp-merchant-payment-grid .select2-container { width: 100%; min-height: 42px; border-radius: 10px; }
body.company-panel .cp-merchant-payment-grid textarea.form-control { min-height: 88px; }
body.company-panel .cp-merchant-payment-grid .select2-container { display: block; }
body.company-panel .cp-merchant-payment-form #basicform > .row:last-child { margin: 22px 0 0; }
body.company-panel .cp-merchant-payment-form #basicform button[type="submit"],
body.company-panel .cp-merchant-payment-form #basicform > .row:last-child a { min-height: 42px; border-radius: 10px; padding: 9px 18px; }
body.company-panel .cp-merchant-payment-grid .form-group label { color: var(--cp-ink, #14212e); font-weight: 600; }
body.company-panel .cp-merchant-payment-grid input[type="file"] { min-height: 78px; padding: 14px; border: 1.5px dashed var(--cp-withdrawal-line, #d7e0e8); border-radius: 12px; background: #f5f8fa; text-align: center; }

@media (max-width: 767px) {
    body.company-panel .cp-merchant-payment-grid { grid-template-columns: minmax(0, 1fr); }
    body.company-panel .cp-merchant-payment-card .card-body { padding: 16px; }
}

body.company-panel .cp-withdrawal-table {
    width: 100%;
    min-width: 790px;
    border-collapse: collapse;
}

body.company-panel .cp-withdrawal-table thead { background: #f1f5f9; }

body.company-panel .cp-withdrawal-table th {
    padding: 11px 14px;
    color: #5b6b7b;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

body.company-panel .cp-withdrawal-table td {
    padding: 10px 14px;
    border-top: 1px solid #eeeae2;
    color: var(--cp-ink, #14212e);
    font-size: 13px;
    vertical-align: middle;
}

body.company-panel .cp-withdrawal-id { color: var(--cp-navy, #102940); font-size: 12px; font-weight: 700; }

body.company-panel .cp-withdrawal-merchant {
    display: flex;
    align-items: center;
    gap: 9px;
}

body.company-panel .cp-withdrawal-merchant img,
body.company-panel .cp-withdrawal-avatar {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--cp-navy, #102940);
    font-size: 11px;
    font-weight: 800;
    object-fit: cover;
}

body.company-panel .cp-withdrawal-merchant > span:last-child { display: flex; min-width: 0; flex-direction: column; }
body.company-panel .cp-withdrawal-merchant strong { color: var(--cp-navy, #102940); font-size: 12px; }
body.company-panel .cp-withdrawal-merchant small { color: var(--cp-muted, #66737f); font-size: 11px; }
body.company-panel .cp-withdrawal-amount { color: var(--cp-navy, #102940); white-space: nowrap; }

body.company-panel .cp-withdrawal-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

body.company-panel .cp-withdrawal-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body.company-panel .cp-status-pending { background: #fdf3dc; color: #9a6208; }
body.company-panel .cp-status-rejected { background: #fcebea; color: #a23b37; }
body.company-panel .cp-status-processed { background: #eaf5ef; color: #216849; }
body.company-panel .cp-status-approved { background: #e8f0f8; color: #2b5f8e; }

body.company-panel .cp-withdrawal-actions { display: flex; align-items: center; gap: 6px; }
body.company-panel .cp-withdrawal-actions a,
body.company-panel .cp-withdrawal-actions button,
body.company-panel .cp-withdrawal-actions .cp-action-static {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

body.company-panel .cp-action-primary { background: var(--cp-navy, #102940); color: #fff; }
body.company-panel .cp-action-danger { background: #fff0ee; color: #a23b37; }
body.company-panel .cp-action-secondary { border-color: var(--cp-withdrawal-line) !important; background: #fff; color: var(--cp-navy, #102940); }
body.company-panel .cp-action-static { color: #66737f; }
body.company-panel .cp-inline-action { display: inline-flex; margin: 0; }
body.company-panel .cp-inline-action button { cursor: pointer; font-family: inherit; }
body.company-panel .cp-withdrawal-detail-card { padding: 24px; border: 1px solid var(--cp-withdrawal-line); border-radius: 16px; background: #fff; }
body.company-panel .cp-withdrawal-detail-card h2 { margin: 0 0 18px; color: var(--cp-ink, #14212e); font-size: 18px; }
body.company-panel .cp-withdrawal-detail-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; }
body.company-panel .cp-withdrawal-detail-card dl > div { padding: 14px 0; border-top: 1px solid var(--cp-withdrawal-line); }
body.company-panel .cp-withdrawal-detail-card dt { margin-bottom: 6px; color: var(--cp-muted, #66737f); font-size: 12px; }
body.company-panel .cp-withdrawal-detail-card dd { margin: 0; color: var(--cp-ink, #14212e); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
body.company-panel .cp-withdrawal-detail-card .cp-withdrawal-detail-notes { grid-column: 1 / -1; }

body.company-panel .cp-withdrawal-more { position: relative; }
body.company-panel .cp-withdrawal-more > summary { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid var(--cp-withdrawal-line); border-radius: 8px; color: var(--cp-navy, #102940); cursor: pointer; list-style: none; }
body.company-panel .cp-withdrawal-more > summary::-webkit-details-marker { display: none; }
body.company-panel .cp-withdrawal-more-menu { position: absolute; z-index: 20; top: calc(100% + 4px); inset-inline-end: 0; min-width: 140px; padding: 5px; border: 1px solid var(--cp-withdrawal-line); border-radius: 9px; background: #fff; box-shadow: 0 8px 24px rgb(16 41 64 / 12%); }
body.company-panel .cp-withdrawal-more-menu a,
body.company-panel .cp-withdrawal-more-menu button { display: block; width: 100%; padding: 8px; border: 0; background: transparent; color: #a23b37; font: inherit; font-size: 12px; text-align: right; text-decoration: none; }
body.company-panel .cp-withdrawal-more-menu a:first-child { color: var(--cp-ink, #14212e); }
body.company-panel .cp-withdrawal-request-note,
body.company-panel .cp-withdrawal-note { margin-top: 6px; color: var(--cp-muted, #66737f); font-size: 11px; }
body.company-panel .cp-withdrawal-request-note summary,
body.company-panel .cp-withdrawal-note summary { cursor: pointer; }
body.company-panel .cp-withdrawal-request-note p,
body.company-panel .cp-withdrawal-note p { max-width: 300px; margin: 5px 0 0; white-space: normal; }

body.company-panel .cp-withdrawal-empty { display: flex; min-height: 170px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--cp-muted, #66737f); }
body.company-panel .cp-withdrawal-empty > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #f1f5f9; color: var(--cp-navy, #102940); }
body.company-panel .cp-withdrawal-empty strong { color: var(--cp-navy, #102940); font-size: 14px; }
body.company-panel .cp-withdrawal-empty small { font-size: 12px; }

body.company-panel .cp-withdrawal-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
body.company-panel .cp-withdrawal-table-footer .pagination { margin: 0; }

/* FIG-096 — received online payments */
body.company-panel .cp-online-payments { color: var(--cp-ink, #14212e); }
body.company-panel .cp-online-payments-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin:0 0 20px; }
body.company-panel .cp-online-payments-head h1 { margin:3px 0 4px; color:var(--cp-navy,#102940); font-size:24px; font-weight:750; }
body.company-panel .cp-online-payments-head p { margin:0; color:var(--cp-muted,#66737f); font-size:13px; }
body.company-panel .cp-online-payments-breadcrumb { display:flex; align-items:center; gap:8px; color:var(--cp-muted,#66737f); font-size:12px; }
body.company-panel .cp-online-payments-breadcrumb a { color:inherit; text-decoration:none; }
body.company-panel .cp-online-payments-card,
body.company-panel .cp-online-payments-detail { overflow:hidden; border:1px solid var(--cp-withdrawal-line,#e5eaf0); border-radius:15px; background:#fff; }
body.company-panel .cp-online-payments-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 20px; }
body.company-panel .cp-online-payments-card-head h2 { margin:0 0 4px; color:var(--cp-navy,#102940); font-size:17px; }
body.company-panel .cp-online-payments-card-head p { margin:0; color:var(--cp-muted,#66737f); font-size:12px; }
body.company-panel .cp-online-payments-card-head > span { color:var(--cp-muted,#66737f); font-size:12px; white-space:nowrap; }
body.company-panel .cp-online-payments-table { width:100%; border-collapse:collapse; }
body.company-panel .cp-online-payments-table thead { background:#f1f5f9; }
body.company-panel .cp-online-payments-table th { padding:12px 14px; color:#5b6b7b; font-size:11px; font-weight:700; text-align:start; white-space:nowrap; }
body.company-panel .cp-online-payments-table td { padding:12px 14px; border-top:1px solid #eef1f4; color:#33485b; font-size:12px; vertical-align:middle; }
body.company-panel .cp-online-payments-table td code { color:#33485b; font-size:11px; }
body.company-panel .cp-online-payment-id { color:#718093; font-size:11px; }
body.company-panel .cp-online-payment-merchant { display:flex; align-items:center; gap:10px; min-width:170px; }
body.company-panel .cp-online-payment-merchant img,
body.company-panel .cp-online-payment-avatar { display:grid; width:34px; height:34px; flex:0 0 34px; place-items:center; border-radius:50%; background:#eaf0f6; color:var(--cp-navy,#102940); font-size:11px; object-fit:cover; }
body.company-panel .cp-online-payment-merchant strong { display:block; color:var(--cp-navy,#102940); font-size:12px; }
body.company-panel .cp-online-payment-merchant small { display:block; margin-top:3px; color:var(--cp-muted,#66737f); font-size:10px; }
body.company-panel .cp-online-payment-amount { color:var(--cp-success,#216849); white-space:nowrap; }
body.company-panel .cp-online-payment-view,
body.company-panel .cp-online-payment-back { display:inline-flex; min-height:32px; align-items:center; justify-content:center; padding:6px 12px; border:1px solid var(--cp-withdrawal-line,#e5eaf0); border-radius:8px; background:#f1f5f9; color:var(--cp-navy,#102940); font-size:11px; font-weight:700; text-decoration:none; white-space:nowrap; }
body.company-panel .cp-online-payment-empty { padding:40px 12px; color:var(--cp-muted,#66737f); text-align:center; }
body.company-panel .cp-online-payments-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; }
body.company-panel .cp-online-payments-footer .pagination { margin:0; }
body.company-panel .cp-online-payments-detail { padding:22px; }
body.company-panel .cp-online-payments-detail-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-bottom:18px; border-bottom:1px solid var(--cp-withdrawal-line,#e5eaf0); }
body.company-panel .cp-online-payments-detail-head span { color:var(--cp-muted,#66737f); font-size:11px; }
body.company-panel .cp-online-payments-detail-head h2 { margin:5px 0 0; color:var(--cp-navy,#102940); font-size:18px; }
body.company-panel .cp-online-payments-detail-head strong { color:var(--cp-success,#216849); font-size:20px; white-space:nowrap; }
body.company-panel .cp-online-payments-detail dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; margin:0; }
body.company-panel .cp-online-payments-detail dl > div { padding:14px 0; border-bottom:1px solid #eef1f4; }
body.company-panel .cp-online-payments-detail dt { margin-bottom:5px; color:var(--cp-muted,#66737f); font-size:11px; }
body.company-panel .cp-online-payments-detail dd { margin:0; color:var(--cp-ink,#14212e); font-size:13px; font-weight:650; overflow-wrap:anywhere; }
body.company-panel .cp-online-payments-detail .cp-online-payments-detail-note { grid-column:1 / -1; }

@media (max-width: 767px) {
    body.company-panel .cp-online-payments-head { align-items:flex-start; flex-direction:column; }
    body.company-panel .cp-online-payments-head h1 { font-size:22px; }
    body.company-panel .cp-online-payments-card-head { align-items:flex-start; flex-direction:column; }
    body.company-panel .cp-online-payments-footer { align-items:flex-start; flex-direction:column; }
    body.company-panel .cp-online-payments-detail { padding:16px; }
    body.company-panel .cp-online-payments-detail dl { grid-template-columns:minmax(0,1fr); }
    body.company-panel .cp-online-payments-detail-head { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 1100px) {
    body.company-panel .cp-withdrawal-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    body.company-panel .cp-withdrawal-detail-card { padding: 16px; }
    body.company-panel .cp-withdrawal-detail-card dl { grid-template-columns: minmax(0, 1fr); }
    body.company-panel .cp-withdrawal-head { align-items: flex-start; flex-direction: column; }
    body.company-panel .cp-withdrawal-head h1 { font-size: 22px; }
    body.company-panel .cp-withdrawal-table-head { align-items: stretch; flex-direction: column; }
    body.company-panel .cp-withdrawal-filters { align-items: stretch; flex-wrap: wrap; }
    body.company-panel .cp-withdrawal-filters input { width: auto; min-width: 0; flex: 1 1 100%; }
    body.company-panel .cp-withdrawal-filters select { min-width: 0; flex: 1 1 140px; }
    body.company-panel .cp-withdrawal-table-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
    body.company-panel .cp-withdrawal-kpis { grid-template-columns: 1fr; }
    body.company-panel .cp-withdrawal-kpi { min-height: 104px; }
    body.company-panel .cp-withdrawal-rules { align-items: flex-start; font-size: 12px; }
}
/* D2 — premium shipments list */
/* Shared shipment topbar for the list and four-step create wizard. */
.cp-parcel-toolbar { display:flex; align-items:center; gap:10px; margin:0 0 20px; }
.cp-parcel-heading h1 { font-size:22px !important; line-height:1.4; }
.cp-parcel-index-v2 { padding: 24px 32px 40px; color: #14212e; }
.cp-parcel-index-v2 .cp-parcel-toolbar { display:flex; align-items:center; gap:10px; margin:0 0 20px; }
.cp-parcel-heading { min-width:155px; margin-inline-start:auto; text-align:start; line-height:1.35; }
.cp-parcel-heading span { display:block; color:#5b6b7b; font-size:12px; }
.cp-parcel-heading h1 { margin:2px 0 0; color:#14212e; font-size:22px; font-weight:700; }
.cp-parcel-global-search { display:flex; align-items:center; gap:8px; width:min(300px,28vw); height:40px; padding:0 12px; border:1px solid #e8e4da; border-radius:12px; background:#fff; color:#82909e; }
.cp-parcel-global-search input { flex:1; min-width:0; border:0; outline:0; background:transparent; color:#14212e; font-size:12px; }
.cp-parcel-global-search button { border:0; background:none; color:#82909e; }
.cp-parcel-branch { display:flex; align-items:center; gap:7px; height:40px; padding:0 12px; border:1px solid #e8e4da; border-radius:12px; background:#fff; color:#14212e; font-size:12px; white-space:nowrap; }
.cp-parcel-branch .fa-location-dot { color:#5b6b7b; }
.cp-parcel-branch .fa-chevron-down { margin-inline-start:4px; font-size:10px; }
.cp-parcel-icon-button { display:grid; place-items:center; flex:0 0 40px; height:40px; border:1px solid #e8e4da; border-radius:12px; background:#fff; color:#102940; }
.cp-parcel-new-shipment { display:flex; align-items:center; justify-content:center; gap:8px; height:40px; padding:0 16px; border-radius:10px; background:#e6ad35; color:#102940; font-size:13px; font-weight:700; white-space:nowrap; }
.cp-parcel-new-shipment:hover { color:#102940; background:#edbd55; }
.cp-parcel-status-tabs { display:flex; align-items:center; gap:7px; margin:0 0 16px; overflow-x:auto; scrollbar-width:thin; }
.cp-parcel-status-tab { display:flex; flex:0 0 auto; align-items:center; gap:8px; padding:7px 12px; border:1px solid #e8e4da; border-radius:10px; background:#fff; color:#5b6b7b; font-size:12px; font-weight:600; white-space:nowrap; }
.cp-parcel-status-tab:hover { color:#102940; border-color:#cdd6de; }
.cp-parcel-status-tab b { min-width:22px; padding:1px 6px; border-radius:99px; background:#f1f5f9; color:#5b6b7b; font-size:11px; text-align:center; }
.cp-parcel-status-tab.is-active { border-color:#102940; background:#102940; color:#fff; }
.cp-parcel-status-tab.is-active b { background:#e6ad35; color:#102940; }
.cp-parcel-filter-card,.cp-parcel-table-card { overflow:hidden; border:1px solid #e8e4da; border-radius:14px; background:#fff; }
.cp-parcel-filter-card { margin-bottom:12px; }
.cp-parcel-filter-main { display:flex; flex-direction:column; gap:10px; padding:12px; }
.cp-parcel-filter-search { display:flex; align-items:center; gap:9px; min-height:42px; padding:0 12px; border-radius:10px; background:#f6f4ef; color:#82909e; }
.cp-parcel-filter-search>i { font-size:13px; }
.cp-parcel-filter-search input { flex:1; min-width:0; height:38px; border:0; outline:0; background:transparent; color:#14212e; font-size:12px; }
.cp-filter-advanced-toggle { display:flex; align-items:center; gap:7px; min-height:32px; padding:0 10px; border:1px solid #e8e4da; border-radius:8px; background:#fff; color:#14212e; font-size:11px; white-space:nowrap; }
.cp-parcel-quick-filters { display:flex; align-items:center; flex-wrap:wrap; gap:6px; color:#5b6b7b; font-size:11px; }
.cp-parcel-quick-filters button { padding:4px 10px; border:1px solid #e8e4da; border-radius:99px; background:#fff; color:#5b6b7b; font-size:11px; }
.cp-parcel-quick-filters button:first-of-type { border-color:#e6ad35; color:#b57d07; }
.cp-parcel-quick-filters button.is-selected { background:#fff6df; border-color:#e6ad35; color:#102940; }
.cp-parcel-advanced-grid { display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)); gap:12px; padding:14px 12px 8px; border-top:1px solid #efede7; }
.cp-parcel-advanced-grid label { margin:0; color:#5b6b7b; font-size:11px; font-weight:600; }
.cp-parcel-advanced-grid .form-control { height:36px; margin-top:5px; border-color:#e8e4da; border-radius:8px; color:#14212e; font-size:12px; }
.cp-parcel-filter-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; padding:8px 12px 12px; }
.cp-parcel-filter-actions>a { color:#b43c38; font-size:12px; }
.cp-parcel-apply-filter { display:flex; align-items:center; gap:6px; padding:7px 12px; border:0; border-radius:8px; background:#102940; color:#fff; font-size:12px; }
.cp-parcel-active-filters { display:flex; align-items:center; flex-wrap:wrap; gap:7px; padding:0 12px 12px; color:#5b6b7b; font-size:11px; }
.cp-parcel-active-filters>a:not(.cp-clear-all) { display:flex; align-items:center; gap:7px; padding:4px 8px; border-radius:7px; background:#f1f5f9; color:#344b60; }
.cp-parcel-active-filters .cp-clear-all { margin-inline-start:4px; color:#b43c38; }
.cp-parcel-bulkbar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:54px; margin-bottom:12px; padding:8px 12px; border-radius:11px; background:#102940; color:#fff; }
.cp-bulk-selected-label,.cp-bulk-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.cp-bulk-selected-label { font-size:11px; }
.cp-bulk-selected-label i { color:#e6ad35; }
.cp-bulk-controls .btn { display:flex; align-items:center; gap:7px; min-height:34px; border-radius:8px; color:#102940; font-size:11px; }
.cp-bulk-controls .select2-container { min-width:205px; }
.cp-bulk-controls .select2-container .select2-selection--single { height:34px!important; border:1px solid #d9e0e7!important; border-radius:8px!important; }
.cp-bulk-controls .select2-selection__rendered { line-height:32px!important; font-size:11px; }
.cp-parcel-table { min-width:900px; color:#14212e; }
.cp-parcel-table thead th { padding:11px 10px; border-top:0; border-bottom:1px solid #e8e4da; background:#f1f5f9; color:#5b6b7b; font-size:10px; font-weight:700; white-space:nowrap; }
.cp-parcel-table tbody td { padding:11px 10px; border-color:#efede7; vertical-align:middle; font-size:11px; }
.cp-parcel-table tbody tr:hover { background:#fbfaf7; }
.cp-parcel-table .cp-parcel-select-column { width:38px; text-align:center; }
.cp-parcel-select-column input { accent-color:#102940; }
.cp-tracking-link { display:block; color:#102940; font-size:12px; font-weight:700; white-space:nowrap; }
.cp-parcel-table td small { display:block; max-width:200px; margin-top:3px; overflow:hidden; color:#748291; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.cp-recipient-name,.cp-merchant-name { color:#14212e; font-size:12px; font-weight:700; }
.cp-parcel-table td strong { display:block; color:#14212e; font-size:11px; white-space:nowrap; }
.cp-parcel-status-pill { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius:99px; background:#f1f5f9; color:#5b6b7b; font-size:10px; font-weight:700; white-space:nowrap; }
.cp-parcel-status-pill i { width:6px; height:6px; border-radius:50%; background:#82909e; }
.cp-status-1,.cp-status-2,.cp-status-3 { background:#fff6df; color:#99700c; }.cp-status-1 i,.cp-status-2 i,.cp-status-3 i { background:#e6ad35; }
.cp-status-9,.cp-status-32,.cp-status-30 { background:#eaf5ef; color:#216849; }.cp-status-9 i,.cp-status-32 i,.cp-status-30 i { background:#216849; }
.cp-status-24,.cp-status-26,.cp-status-27,.cp-status-28,.cp-status-29,.cp-status-31 { background:#f1f5f9; color:#42576c; }
.cp-partial-status { color:#b57d07!important; }
.cp-row-more { display:grid; place-items:center; width:31px; height:31px; border:1px solid #e8e4da; border-radius:8px; background:#fff; color:#5b6b7b; }
.cp-parcel-row-actions .dropdown-menu { min-width:180px; padding:5px; border:1px solid #e8e4da; border-radius:10px; box-shadow:0 8px 24px #1029401a; }
.cp-parcel-row-actions .dropdown-item { display:flex; align-items:center; gap:8px; padding:7px 9px; border-radius:6px; font-size:11px; }
.cp-parcel-row-actions .dropdown-item>i { width:14px; color:#617286; }
.cp-status-actions { max-height:220px; overflow:auto; }
.cp-parcel-empty-cell { padding:0!important; }
.cp-parcel-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:12px 16px; border-top:1px solid #e8e4da; color:#5b6b7b; font-size:11px; }
.cp-parcel-pagination .pagination { margin:0; }
@media(max-width:1100px) { .cp-parcel-index-v2 { padding-inline:20px; }.cp-parcel-index-v2 .cp-parcel-toolbar { flex-wrap:wrap; }.cp-parcel-heading { min-width:100%; order:0; }.cp-parcel-global-search { flex:1; width:auto; }.cp-parcel-advanced-grid { grid-template-columns:repeat(2,minmax(150px,1fr)); } }
@media(max-width:600px) { .cp-parcel-index-v2 { padding:16px 12px 28px; }.cp-parcel-index-v2 .cp-parcel-toolbar { gap:8px; }.cp-parcel-heading h1 { font-size:20px; }.cp-parcel-global-search { order:3; flex-basis:100%; }.cp-parcel-branch { margin-inline-start:auto; }.cp-parcel-index-v2 .cp-parcel-new-shipment { flex:1; }.cp-parcel-status-tabs { margin-inline:-12px; padding:0 12px 5px; }.cp-parcel-filter-search { flex-wrap:wrap; padding:8px 10px; }.cp-parcel-filter-search input { flex-basis:calc(100% - 34px); }.cp-filter-advanced-toggle { margin-inline-start:auto; }.cp-parcel-advanced-grid { grid-template-columns:1fr; }.cp-parcel-bulkbar { align-items:flex-start; flex-direction:column; }.cp-bulk-controls { width:100%; }.cp-bulk-controls .select2-container { flex:1; }.cp-parcel-pagination { align-items:flex-start; flex-direction:column; } }
.cp-parcel-index-v2 .cp-parcel-new-shipment { width:auto!important; flex:0 0 auto; }
body.company-panel .cp-parcel-index-v2 .cp-parcel-new-shipment { width:auto!important; flex:0 0 auto; }
.cp-parcel-index-v2 .cp-parcel-search-submit { display:grid; place-items:center; flex:0 0 28px; height:28px; border:0; border-radius:7px; background:#e6ad35; color:#102940; }
.cp-parcel-toolbar .cp-parcel-branch { margin:0; }.cp-parcel-branch select { max-width:125px; border:0; outline:0; appearance:none; background:transparent; color:#14212e; font-size:12px; }
.cp-parcel-tools .cp-parcel-icon-button { width:40px; }
.cp-parcel-tools .dropdown-menu { min-width:185px; border:1px solid #e8e4da; border-radius:10px; box-shadow:0 8px 24px #1029401a; }
.cp-parcel-tools .dropdown-item { display:flex; align-items:center; gap:8px; padding:8px 11px; font-size:11px; }
.cp-list-chips { display:flex; flex-wrap:wrap; gap:4px; margin-top:5px; }
.cp-list-chips span { padding:2px 5px; border-radius:99px; background:#f1f5f9; color:#617286; font-size:9px; }
.cp-list-chips span.is-good { background:#eaf5ef; color:#216849; }
.cp-priority-action { display:flex; align-items:center; gap:8px; padding:7px 9px; color:#344b60; font-size:11px; }
.cp-priority-action input { margin:0; }
@media(max-width:1100px) { .cp-parcel-heading { min-width:0; width:auto; flex:1 1 auto; order:1; margin-inline-start:0; }.cp-parcel-branch { order:2; }.cp-parcel-global-search { order:3; flex:1 1 300px; width:auto; }.cp-parcel-icon-button { order:4; }.cp-parcel-tools { order:5; }.cp-parcel-index-v2 .cp-parcel-new-shipment { order:6; margin-inline-start:auto; } }
@media(max-width:600px) { .cp-parcel-index-v2 .cp-parcel-toolbar { gap:8px; }.cp-parcel-heading { flex:1 1 55%; }.cp-parcel-index-v2 .cp-parcel-new-shipment { flex:0 0 auto; }.cp-parcel-global-search { order:5; flex-basis:100%; }.cp-parcel-branch { margin-inline-start:auto; }.cp-parcel-icon-button,.cp-parcel-tools { order:4; } }
@media(min-width:992px) and (max-width:1100px) { body.company-panel { --cp-sidebar-w:176px; }.company-panel .nav-left-sidebar .navbar-nav a { overflow:hidden; white-space:nowrap; font-size:10px; }.cp-parcel-heading { flex:0 1 168px; }.cp-parcel-global-search { flex:0 1 214px; width:214px; }.cp-parcel-index-v2 .cp-parcel-new-shipment { padding-inline:10px; font-size:12px; }.cp-parcel-table { min-width:760px; } }

/* D2 uses its own toolbar; remove the legacy desktop toolbar only on this screen. */
@media (min-width: 992px) {
    body.company-panel:has(.cp-parcel-index-v2) .dashboard-header,
    body.company-panel:has(.cp-parcel-create) .dashboard-header,
    body.company-panel:has(.cp-parcel-edit) .dashboard-header {
        display: none !important;
    }

    html[dir] body.company-panel:has(.cp-parcel-index-v2) .dashboard-ecommerce,
    html[dir] body.company-panel:has(.cp-parcel-create) .dashboard-ecommerce,
    html[dir] body.company-panel:has(.cp-parcel-edit) .dashboard-ecommerce {
        padding-top: 0 !important;
        background-color: #f6f4ef !important;
    }

    html[dir] body.company-panel:has(.cp-parcel-index-v2) .dashboard-ecommerce > .main-content,
    html[dir] body.company-panel:has(.cp-parcel-create) .dashboard-ecommerce > .main-content,
    html[dir] body.company-panel:has(.cp-parcel-edit) .dashboard-ecommerce > .main-content {
        padding: 20px 24px 24px !important;
    }
}

@media (min-width: 992px) and (max-width: 1100px) {
    body.company-panel:has(.cp-parcel-index-v2) .cp-parcel-toolbar {
        margin-bottom: 0;
    }

    body.company-panel:has(.cp-parcel-index-v2) .cp-parcel-heading h1 {
        font-size: 22px !important;
        line-height: 1.4;
    }

    body.company-panel:has(.cp-parcel-index-v2) .cp-parcel-status-tabs {
        margin-bottom: 2px;
    }

    body.company-panel:has(.cp-parcel-index-v2) .cp-parcel-filter-card {
        margin-bottom: 18px;
    }

    body.company-panel:has(.cp-parcel-index-v2) .cp-parcel-bulkbar {
        height: 42px;
        min-height: 42px;
        padding: 0 12px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    body.company-panel .cp-parcel-create > .cp-parcel-toolbar {
        flex-wrap: nowrap;
    }

    body.company-panel .cp-parcel-create .cp-parcel-create-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1.8fr) minmax(230px, .95fr);
        gap: 16px;
        width: 100%;
        margin: 0;
    }

    body.company-panel .cp-parcel-create .cp-parcel-create-grid > .col-xl-8,
    body.company-panel .cp-parcel-create .cp-parcel-create-grid > .col-xl-4 {
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 0;
    }

    body.company-panel .cp-parcel-create .cp-form-section,
    body.company-panel .cp-parcel-create .cp-cost-summary {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    body.company-panel .cp-parcel-create .cp-stepper-card {
        box-sizing: border-box;
        height: 64px;
        margin: 0 0 16px;
        padding: 12px 24px;
        box-shadow: none;
    }

    body.company-panel .cp-parcel-create .cp-stepper {
        width: 100%;
        max-width: none;
        height: 38px;
        margin: 0;
    }

    body.company-panel .cp-parcel-create .cp-step {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: start;
    }

    body.company-panel .cp-parcel-create .cp-step-circle {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        margin: 0;
        font-size: 13px;
        box-shadow: none;
    }

    body.company-panel .cp-parcel-create .cp-step.active .cp-step-circle { box-shadow: none; }
    body.company-panel .cp-parcel-create .cp-step-label { margin: 0; font-size: 13px; white-space: nowrap; }
    body.company-panel .cp-parcel-create .cp-step-line { top: 15px; right: 10%; left: 10%; height: 1px; }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        margin: 0;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group {
        grid-column: span 3;
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(1),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(2) { grid-column: span 3; }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(3),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(4),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(5) { grid-column: span 2; }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(6),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(9) { grid-column: 1 / -1; }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(7),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(8) { grid-column: span 3; }
}

@media (min-width: 1200px) {
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: min-content;
        gap: 12px;
        width: 100%;
        margin: 0;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(1),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(2),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(1),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(2) { grid-column: span 3; }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(3),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(4),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(5),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(6),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(7),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(8),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(9),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(10) {
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(3),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(4),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(5) { grid-column: span 2; }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(6),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(9) { grid-column: 1 / -1; }

    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(7),
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] > .row > .form-group:nth-child(8) { grid-column: span 3; }

    body.company-panel .cp-parcel-create .cp-step {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: start;
    }

    body.company-panel .cp-parcel-create .cp-step-circle { margin: 0; }
    body.company-panel .cp-parcel-create .cp-step-label { margin: 0; white-space: nowrap; }
}

@media (max-width: 991.98px) {
    html:has(body.company-panel .cp-parcel-create) {
        overflow-x: hidden;
    }

    body.company-panel .cp-parcel-create .cp-parcel-create-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        width: 100%;
        margin: 0;
    }

    body.company-panel .cp-parcel-create .cp-parcel-create-grid > .col-xl-8,
    body.company-panel .cp-parcel-create .cp-parcel-create-grid > .col-xl-4 {
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 0;
    }
}
/* Company Admin P — shipment details */
body.company-panel .cp-parcel-detail { display: flex; flex-direction: column; gap: 12px; }
body.company-panel .cp-parcel-detail > .cp-page-head { margin-bottom: 0; }
body.company-panel .cp-detail-reference { display: flex; min-height: 38px; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--cp-muted, #5b6b7b); font-size: 11px; }
body.company-panel .cp-detail-reference strong { color: var(--cp-ink, #14212e); font-size: 12px; }
body.company-panel .cp-detail-card { min-width: 0; padding: 18px 20px; border: 1px solid var(--cp-border, #e8e4da); border-radius: 16px; background: var(--cp-surface, #fff); }
body.company-panel .cp-detail-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
body.company-panel .cp-detail-card-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--cp-ink, #14212e); font-size: 15px; font-weight: 800; line-height: 1.4; }
body.company-panel .cp-detail-card-heading h2 i { color: var(--cp-gold, #d79a18); font-size: 14px; }
body.company-panel .cp-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.company-panel .cp-detail-value { display: flex; min-width: 0; min-height: 56px; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 14px; border-radius: 10px; background: #f1f5f9; }
body.company-panel .cp-detail-value > span { color: var(--cp-muted, #5b6b7b); font-size: 11px; line-height: 1.45; }
body.company-panel .cp-detail-value > strong { overflow-wrap: anywhere; color: var(--cp-ink, #14212e); font-size: 12px; font-weight: 700; line-height: 1.5; }
body.company-panel .cp-detail-value-total { background: #f1f5f9; }
body.company-panel .cp-detail-status,
body.company-panel .cp-detail-event-status { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border-radius: 999px; color: #855a07; background: #fbefcf; font-size: 11px; font-weight: 700; }
body.company-panel .cp-detail-value-wide { grid-column: 1 / -1; }
body.company-panel .cp-detail-history-heading { margin-bottom: 10px; }
body.company-panel .cp-detail-history-heading > a { display: inline-flex; align-items: center; gap: 6px; color: var(--cp-navy, #102940); font-size: 12px; font-weight: 700; text-decoration: none; }
body.company-panel .cp-detail-table-wrap { overflow-x: auto; border: 1px solid var(--cp-border, #e8e4da); border-radius: 10px; }
body.company-panel .cp-detail-table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; }
body.company-panel .cp-detail-table th { padding: 10px 12px; color: var(--cp-muted, #5b6b7b); background: #f1f5f9; font-size: 11px; font-weight: 700; text-align: start; white-space: nowrap; }
body.company-panel .cp-detail-table td { max-width: 260px; padding: 9px 12px; border-top: 1px solid var(--cp-border, #e8e4da); color: var(--cp-ink, #14212e); font-size: 11px; vertical-align: middle; }
body.company-panel .cp-detail-table tr:first-child td { border-top: 0; }
body.company-panel .cp-detail-event-note { overflow-wrap: anywhere; }
body.company-panel .cp-detail-table .cp-detail-canceled { display: block; margin-top: 4px; color: #b42318; font-size: 10px; }
body.company-panel .cp-detail-view-event { display: inline-flex; min-height: 28px; align-items: center; padding: 0 9px; border-radius: 8px; color: var(--cp-navy, #102940); background: #f1f5f9; font-size: 11px; font-weight: 700; text-decoration: none; }
body.company-panel .cp-detail-empty { padding: 20px; color: var(--cp-muted, #5b6b7b); text-align: center; }
@media (max-width: 767px) {
    body.company-panel .cp-parcel-detail { gap: 10px; }
    body.company-panel .cp-detail-card { padding: 14px; }
    body.company-panel .cp-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    body.company-panel .cp-detail-value-wide { grid-column: 1 / -1; }
    body.company-panel .cp-detail-history-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
    body.company-panel .cp-detail-grid { grid-template-columns: 1fr; }
    body.company-panel .cp-detail-value-wide { grid-column: auto; }
}

/* Company Admin P — shipment history */
body.company-panel .cp-parcel-logs-page { display: flex; flex-direction: column; gap: 14px; }
body.company-panel .cp-parcel-logs-page > .cp-page-head { margin-bottom: 0; }
body.company-panel .cp-parcel-logs-card { padding: 18px 20px 12px; }
body.company-panel .cp-parcel-logs-heading { margin-bottom: 12px; }
body.company-panel .cp-parcel-logs-heading > div > p { margin: 6px 0 0; color: var(--cp-muted, #5b6b7b); font-size: 11px; }
body.company-panel .cp-parcel-logs-heading > div > p strong { color: var(--cp-ink, #14212e); }
body.company-panel .cp-parcel-logs-table-wrap { overflow-x: auto; }
body.company-panel .cp-parcel-logs-table { min-width: 740px; table-layout: fixed; }
body.company-panel .cp-parcel-logs-table th:first-child,
body.company-panel .cp-parcel-logs-table td:first-child { width: 80px; text-align: center; }
body.company-panel .cp-parcel-logs-table th:not(:first-child),
body.company-panel .cp-parcel-logs-table td:not(:first-child) { width: calc((100% - 80px) / 5); text-align: center; }
body.company-panel .cp-parcel-log-stage { display: flex; min-height: 32px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
body.company-panel .cp-parcel-log-stage strong { overflow-wrap: anywhere; color: var(--cp-ink, #14212e); font-size: 11px; font-weight: 700; }
body.company-panel .cp-parcel-log-stage small { color: var(--cp-muted, #5b6b7b); font-size: 9px; white-space: nowrap; }
body.company-panel .cp-parcel-log-dash { color: #94a3b8; }
body.company-panel .cp-parcel-log-details { position: relative; }
body.company-panel .cp-parcel-log-details summary { display: inline-flex; min-height: 27px; align-items: center; justify-content: center; padding: 0 9px; border: 1px solid var(--cp-border, #e8e4da); border-radius: 8px; color: var(--cp-navy, #102940); background: #f1f5f9; cursor: pointer; font-size: 10px; font-weight: 700; list-style: none; }
body.company-panel .cp-parcel-log-details summary::-webkit-details-marker { display: none; }
body.company-panel .cp-parcel-log-popover { position: static; display: flex; width: 210px; flex-direction: column; gap: 5px; margin-top: 5px; padding: 11px; border: 1px solid var(--cp-border, #e8e4da); border-radius: 10px; color: #14212e; background: #fff; box-shadow: 0 4px 12px rgba(16, 41, 64, .10); text-align: start; }
body.company-panel .cp-parcel-log-popover > * { display: block; color: #14212e !important; opacity: 1 !important; visibility: visible !important; font-size: 11px !important; line-height: 1.45 !important; }
body.company-panel .cp-parcel-log-popover strong { color: var(--cp-ink, #14212e); font-size: 11px; }
body.company-panel .cp-parcel-log-popover span,
body.company-panel .cp-parcel-log-popover p,
body.company-panel .cp-parcel-log-popover small { margin: 0; color: var(--cp-muted, #5b6b7b); font-size: 10px; overflow-wrap: anywhere; }
body.company-panel .cp-parcel-logs-footer { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; color: var(--cp-muted, #5b6b7b); font-size: 10px; }
body.company-panel .cp-parcel-logs-footer nav { display: flex; }
body.company-panel .cp-parcel-logs-footer .pagination { margin: 0; gap: 4px; }
body.company-panel .cp-parcel-logs-footer .page-link { min-width: 26px; padding: 4px 7px; border-color: var(--cp-border, #e8e4da); border-radius: 7px !important; color: var(--cp-navy, #102940); font-size: 10px; text-align: center; }
body.company-panel .cp-parcel-logs-footer .page-item.active .page-link { border-color: var(--cp-navy, #102940); color: #fff; background: var(--cp-navy, #102940); }
body.company-panel .cp-parcel-create .cp-map-picker summary {
    display: flex;
    width: 100%;
    height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--cp-border);
    border-radius: 10px;
    color: var(--cp-muted);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    list-style: none;
}
body.company-panel .cp-parcel-create .cp-map-picker summary::-webkit-details-marker { display: none; }
body.company-panel .cp-parcel-create .cp-map-picker summary > span { display: flex; align-items: center; gap: 8px; }
body.company-panel .cp-parcel-create .cp-map-picker summary > span > i { color: var(--cp-gold); }
body.company-panel .cp-parcel-create .cp-map-picker[open] summary { margin-bottom: 10px; color: var(--cp-ink); }
body.company-panel .cp-parcel-create .cp-map-picker[open] .cp-map-picker-chevron { transform: rotate(180deg); }
body.company-panel .cp-parcel-create .cp-map-picker[open] #map { min-height: 150px; }
@media (min-width: 1200px) {
    body.company-panel .cp-parcel-create .cp-cost-summary {
        height: auto;
        min-height: 448px;
        overflow: visible;
    }
}
@media (min-width: 1200px) {
    body.company-panel .cp-parcel-create .cp-form-section[data-active-step="2"]:has(#customerLocationPicker[open]) {
        height: 510px;
        min-height: 510px;
    }
}
@media (min-width: 768px) {
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: min-content;
        gap: 14px 24px;
        width: min(672px, 100%);
        margin: 0;
    }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-grid > .cp-step3-field {
        width: auto;
        max-width: none;
        min-width: 0;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
    }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-field--category { grid-row: 1; grid-column: 2; }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-field--weight { grid-row: 1; grid-column: 1; }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-field--description { grid-row: 2; grid-column: 1; }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-field--packaging { grid-row: 2; grid-column: 2; }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-field--pieces { grid-row: 3; grid-column: 2; }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-field--fragile { grid-row: 3; grid-column: 1; }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-field--paid { grid-row: 4; grid-column: 1; }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-field--open { grid-row: 4; grid-column: 2; }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-field--delivery-service { grid-row: 5; grid-column: 2; }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-field--requested-date { grid-row: 5; grid-column: 1; }
}
@media (max-width: 767px) {
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        margin: 0;
    }
    body.company-panel .cp-parcel-create .wizard-panel[data-step="3"] .cp-step3-grid > .cp-step3-field {
        grid-row: auto !important;
        grid-column: auto !important;
        width: auto;
        max-width: none;
        min-width: 0;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Figma P edit-shipment screen — retain the existing update form and field names. */
@media (min-width: 1200px) {
    body.company-panel .cp-parcel-edit .cp-parcel-edit-form > .row {
        display: grid;
        grid-template-columns: minmax(0, 2.09fr) minmax(230px, 1fr);
        gap: 24px;
        width: min(1088px, 100%);
        margin: 0 !important;
        direction: rtl;
    }

    body.company-panel .cp-parcel-edit .cp-parcel-edit-form > .row > .col-lg-8,
    body.company-panel .cp-parcel-edit .cp-parcel-edit-form > .row > .col-lg-4 {
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 0;
    }
}

body.company-panel .cp-parcel-edit .section-card {
    margin-bottom: 12px;
    padding: 18px 20px;
    border: 1px solid var(--cp-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

body.company-panel .cp-parcel-edit .section-title {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cp-border);
    color: var(--cp-navy);
    font-size: 16px;
    font-weight: 700;
}

body.company-panel .cp-parcel-edit .section-card > .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 0;
}

body.company-panel .cp-parcel-edit .section-card > .row > .form-group {
    width: auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

body.company-panel .cp-parcel-edit .section-card > .row > .form-group.col-md-12 { grid-column: 1 / -1; }

body.company-panel .cp-parcel-edit .section-card label {
    display: block;
    margin-bottom: 5px;
    color: var(--cp-navy);
    font-size: 12.5px;
    font-weight: 700;
}

body.company-panel .cp-parcel-edit .section-card .form-control,
body.company-panel .cp-parcel-edit .section-card .select2-container--default .select2-selection--single {
    min-height: 40px;
    border: 1px solid var(--cp-border);
    border-radius: 9px;
    background-color: #fff;
    color: var(--cp-navy);
    font-size: 13px;
    box-shadow: none;
}

body.company-panel .cp-parcel-edit .section-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    color: var(--cp-navy);
}

body.company-panel .cp-parcel-edit .section-card .select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; }

body.company-panel .cp-parcel-edit .sticky-summary { top: 16px; }

body.company-panel .cp-parcel-edit .summary-card {
    padding: 18px;
    border: 1px solid var(--cp-border);
    border-radius: 14px;
    background: #fff;
}

body.company-panel .cp-parcel-edit .summary-card .section-title { border: 0; }

body.company-panel .cp-parcel-edit-actions {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 2px 0;
}

body.company-panel .cp-parcel-edit-required { color: var(--cp-muted); font-size: 12px; }
body.company-panel .cp-parcel-edit-buttons { display: flex; align-items: center; gap: 10px; }
body.company-panel .cp-parcel-edit-buttons .btn { min-width: 92px; min-height: 40px; border-radius: 9px; }
body.company-panel .cp-parcel-edit-buttons #btnSubmit { background: var(--cp-gold); border-color: var(--cp-gold); color: var(--cp-navy); font-weight: 700; }

@media (max-width: 1199.98px) {
    body.company-panel .cp-parcel-edit .cp-parcel-edit-form > .row { display: flex; flex-direction: column; gap: 12px; }
    body.company-panel .cp-parcel-edit .cp-parcel-edit-form > .row > .col-lg-8,
    body.company-panel .cp-parcel-edit .cp-parcel-edit-form > .row > .col-lg-4 { width: 100%; max-width: 100%; padding: 0; }
    body.company-panel .cp-parcel-edit .sticky-summary { position: static; }
}

@media (max-width: 575.98px) {
    body.company-panel .cp-parcel-edit .section-card { padding: 15px; }
    body.company-panel .cp-parcel-edit .section-card > .row { grid-template-columns: minmax(0, 1fr); }
    body.company-panel .cp-parcel-edit .section-card > .row > .form-group.col-md-12 { grid-column: auto; }
    body.company-panel .cp-parcel-edit-actions { align-items: stretch; flex-direction: column; }
    body.company-panel .cp-parcel-edit-buttons { justify-content: flex-end; }
}
@media (max-width: 767px) {
    body.company-panel .cp-parcel-logs-page { gap: 10px; }
    body.company-panel .cp-parcel-logs-card { padding: 14px; }
    body.company-panel .cp-parcel-logs-footer { align-items: flex-start; flex-direction: column; }
    body.company-panel .cp-parcel-log-popover { width: min(210px, calc(100vw - 48px)); }
}

/* Company Admin parcel import — Figma 356:30715 */
body.company-panel .cp-parcel-import { color: var(--cp-ink); }
body.company-panel .cp-parcel-import-content { display: flex; flex-direction: column; gap: 16px; width: 100%; }
body.company-panel .cp-parcel-import-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
body.company-panel .cp-parcel-import-heading h2 { margin: 0; color: var(--cp-ink); font-size: 24px; font-weight: 700; line-height: 1.4; }
body.company-panel .cp-parcel-import-heading p { margin: 2px 0 0; color: var(--cp-muted); font-size: 13px; }
body.company-panel .cp-parcel-import-heading-actions,
body.company-panel .cp-parcel-import-action-buttons { display: flex; align-items: center; gap: 8px; }
body.company-panel .cp-parcel-import-template,
body.company-panel .cp-parcel-import-cancel,
body.company-panel .cp-parcel-import-submit { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--cp-border); border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; }
body.company-panel .cp-parcel-import-template,
body.company-panel .cp-parcel-import-cancel { background: #fff; color: var(--cp-ink); }
body.company-panel .cp-parcel-import-template:hover,
body.company-panel .cp-parcel-import-cancel:hover { border-color: var(--cp-navy); color: var(--cp-navy); text-decoration: none; }
body.company-panel .cp-parcel-import-submit { border-color: var(--cp-navy); background: var(--cp-navy); color: #fff; cursor: pointer; }
body.company-panel .cp-parcel-import-submit:hover { filter: brightness(1.08); color: #fff; }
body.company-panel .cp-parcel-import-submit--top { display: inline-flex; }
body.company-panel .cp-parcel-import-card { padding: 22px; border: 1px solid var(--cp-border); border-radius: 16px; background: #fff; }
body.company-panel .cp-parcel-import-card > h3 { margin: 0 0 16px; color: var(--cp-ink); font-size: 17px; font-weight: 700; }
body.company-panel .cp-parcel-import-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body.company-panel .cp-parcel-import-field { min-width: 0; }
body.company-panel .cp-parcel-import-field > label:not(.cp-parcel-import-dropzone) { display: block; margin-bottom: 6px; color: var(--cp-ink); font-size: 13px; font-weight: 600; }
body.company-panel .cp-parcel-import-dropzone { position: relative; display: flex; min-height: 90px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 16px; border: 1.5px dashed #d5e0eb; border-radius: 12px; background: #f1f5f9; color: var(--cp-navy); cursor: pointer; text-align: center; }
body.company-panel .cp-parcel-import-dropzone:hover,
body.company-panel .cp-parcel-import-dropzone.has-file { border-color: var(--cp-gold); background: #f8f7f2; }
body.company-panel .cp-parcel-import-upload-icon { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; font-size: 16px; }
body.company-panel .cp-parcel-import-drop-title { max-width: 100%; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
body.company-panel .cp-parcel-import-drop-hint { color: var(--cp-muted); font-size: 12px; }
body.company-panel .cp-parcel-import-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
body.company-panel .cp-parcel-import-field:focus-within .cp-parcel-import-dropzone { outline: 2px solid var(--cp-gold); outline-offset: 2px; }
body.company-panel .cp-parcel-import-field .select2-container { width: 100% !important; }
body.company-panel .cp-parcel-import-field .select2-container--default .select2-selection--single { height: 42px; border: 1px solid var(--cp-border); border-radius: 10px; }
body.company-panel .cp-parcel-import-field .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 14px; color: var(--cp-ink); line-height: 40px; }
body.company-panel .cp-parcel-import-field .select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; }
body.company-panel .cp-parcel-import-field-hint { display: block; margin-top: 7px; color: var(--cp-muted); font-size: 12px; }
body.company-panel .cp-parcel-import-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 11px 12px; border-radius: 10px; background: #f6f4ef; color: var(--cp-muted); font-size: 12px; }
body.company-panel .cp-parcel-import-note i { margin-top: 3px; color: var(--cp-gold); }
body.company-panel .cp-parcel-import-instructions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
body.company-panel .cp-parcel-import-instruction { min-width: 0; }
body.company-panel .cp-parcel-import-instruction h4 { margin: 0 0 6px; color: var(--cp-ink); font-size: 13px; font-weight: 600; }
body.company-panel .cp-parcel-import-instruction p { min-height: 42px; margin: 0; padding: 10px 14px; border: 1px solid var(--cp-border); border-radius: 10px; color: var(--cp-ink); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
body.company-panel .cp-parcel-import-instruction--wide { grid-column: 2; }
body.company-panel .cp-parcel-import-actions { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 2px; }
body.company-panel .cp-parcel-import-actions > span { color: var(--cp-muted); font-size: 12px; }
body.company-panel .cp-parcel-import-errors { border-color: #f2c8c8; }
body.company-panel .cp-parcel-import-error-list { display: grid; gap: 10px; }
body.company-panel .cp-parcel-import-error-row { padding: 12px 14px; border-radius: 10px; background: #fff6f6; color: #922b2b; font-size: 13px; }
body.company-panel .cp-parcel-import-error-row ul { padding-inline-start: 20px; }
body.company-panel .cp-parcel-import-alert { border-radius: 10px; }

@media (max-width: 767.98px) {
    body.company-panel .cp-parcel-import-heading { align-items: flex-start; flex-direction: column; }
    body.company-panel .cp-parcel-import-heading-actions { width: 100%; }
    body.company-panel .cp-parcel-import-submit--top { display: inline-flex; }
    body.company-panel .cp-parcel-import-upload-grid,
    body.company-panel .cp-parcel-import-instructions { grid-template-columns: minmax(0, 1fr); }
    body.company-panel .cp-parcel-import-instruction--wide { grid-column: auto; }
    body.company-panel .cp-parcel-import-card { padding: 16px; }
    body.company-panel .cp-parcel-import-actions { align-items: flex-start; flex-direction: column; }
    body.company-panel .cp-parcel-import-action-buttons { width: 100%; justify-content: flex-end; }
}

@media (min-width: 992px) {
    body.company-panel:has(.cp-parcel-import) .dashboard-header { display: none !important; }
    html[dir] body.company-panel:has(.cp-parcel-import) .dashboard-ecommerce { padding-top: 0 !important; background-color: #f6f4ef !important; }
    html[dir] body.company-panel:has(.cp-parcel-import) .dashboard-ecommerce > .main-content { padding: 20px 24px 24px !important; }
}

/* Company Admin parcel export — Figma 356:31105 */
body.company-panel .cp-parcel-export { color: var(--cp-ink); }
body.company-panel .cp-parcel-export-content { display: flex; flex-direction: column; gap: 16px; width: 100%; }
body.company-panel .cp-parcel-export-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
body.company-panel .cp-parcel-export-heading h2 { margin: 0; color: var(--cp-ink); font-size: 24px; font-weight: 700; line-height: 1.4; }
body.company-panel .cp-parcel-export-heading p { margin: 2px 0 0; color: var(--cp-muted); font-size: 13px; }
body.company-panel .cp-parcel-export-submit { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--cp-navy); border-radius: 10px; background: var(--cp-navy); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
body.company-panel .cp-parcel-export-submit:hover { filter: brightness(1.08); }
body.company-panel .cp-parcel-export-filter-card,
body.company-panel .cp-parcel-export-table-card { border: 1px solid var(--cp-border); border-radius: 16px; background: #fff; }
body.company-panel .cp-parcel-export-filter-card { position: relative; z-index: 5; overflow: visible; margin-bottom: 16px; padding: 10px 14px; }
body.company-panel .cp-parcel-export-table-card { overflow: hidden; }
body.company-panel .cp-parcel-export-filterbar { display: flex; min-height: 42px; flex-direction: row-reverse; align-items: center; gap: 10px; }
body.company-panel .cp-parcel-export-advanced { position: relative; flex: 0 0 auto; }
body.company-panel .cp-parcel-export-advanced > summary { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--cp-border); border-radius: 10px; background: #fff; color: var(--cp-ink); cursor: pointer; font-size: 12px; font-weight: 600; list-style: none; white-space: nowrap; }
body.company-panel .cp-parcel-export-advanced > summary::-webkit-details-marker { display: none; }
body.company-panel .cp-parcel-export-advanced > summary span { display: inline-grid; min-width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #f1f5f9; color: var(--cp-muted); font-size: 11px; }
body.company-panel .cp-parcel-export-advanced-grid { position: absolute; z-index: 30; top: calc(100% + 8px); inset-inline-start: 0; display: grid; width: min(580px, calc(100vw - 48px)); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid var(--cp-border); border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgb(16 41 64 / 12%); }
body.company-panel .cp-parcel-export-advanced-grid label { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: var(--cp-ink); font-size: 12px; font-weight: 600; }
body.company-panel .cp-parcel-export-advanced-grid .form-control { height: 38px; border: 1px solid var(--cp-border); border-radius: 8px; font-size: 12px; }
body.company-panel .cp-parcel-export-filter-actions { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 10px; }
body.company-panel .cp-parcel-export-filter-actions a { color: var(--cp-muted); font-size: 12px; }
body.company-panel .cp-parcel-export-filter-actions button { min-height: 36px; padding: 6px 13px; border: 0; border-radius: 8px; background: var(--cp-navy); color: #fff; font-size: 12px; font-weight: 600; }
body.company-panel .cp-parcel-export-select,
body.company-panel .cp-parcel-export-search { position: relative; display: flex; min-width: 0; min-height: 40px; flex: 1 1 160px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--cp-border); border-radius: 10px; background: #fff; color: var(--cp-muted); }
body.company-panel .cp-parcel-export-select select,
body.company-panel .cp-parcel-export-select input,
body.company-panel .cp-parcel-export-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--cp-ink); font-size: 12px; }
body.company-panel .cp-parcel-export-select > i { flex: 0 0 auto; font-size: 10px; pointer-events: none; }
body.company-panel .cp-parcel-export-search { flex-basis: 190px; background: #f6f4ef; }
body.company-panel .cp-parcel-export-search input::placeholder { color: var(--cp-muted); }
body.company-panel .cp-parcel-export-table-heading { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; }
body.company-panel .cp-parcel-export-table-heading h3 { margin: 0; color: var(--cp-ink); font-size: 16px; font-weight: 700; }
body.company-panel .cp-parcel-export-table-heading span,
body.company-panel .cp-parcel-export-pagination > span { color: var(--cp-muted); font-size: 11px; }
body.company-panel .cp-parcel-export-table-wrap { overflow-x: auto; }
body.company-panel .cp-parcel-export-table { width: 100%; min-width: 940px; border-collapse: collapse; }
body.company-panel .cp-parcel-export-table thead { background: #f1f5f9; }
body.company-panel .cp-parcel-export-table th { padding: 10px 9px; color: var(--cp-muted); font-size: 11px; font-weight: 600; text-align: right; white-space: nowrap; }
body.company-panel .cp-parcel-export-table td { padding: 12px 9px; border-top: 1px solid #eeeae1; color: var(--cp-ink); font-size: 12px; line-height: 1.4; text-align: right; }
body.company-panel .cp-parcel-export-table tr:hover td { background: #fbfaf7; }
body.company-panel .cp-parcel-export-status { display: inline-flex; padding: 4px 9px; border-radius: 99px; background: #f1f5f9; color: var(--cp-navy); font-size: 11px; white-space: nowrap; }
body.company-panel .cp-parcel-export-view { display: inline-flex; padding: 4px 10px; border-radius: 8px; background: #f1f5f9; color: var(--cp-navy); font-size: 11px; font-weight: 600; text-decoration: none; }
body.company-panel .cp-parcel-export-empty { padding: 35px !important; color: var(--cp-muted) !important; text-align: center !important; }
body.company-panel .cp-parcel-export-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px; }
body.company-panel .cp-parcel-export-pagination .pagination { margin: 0; }
body.company-panel .cp-parcel-export-pagination .page-link { border-radius: 8px; color: var(--cp-navy); font-size: 12px; }
body.company-panel .cp-parcel-export-pagination .page-item.active .page-link { border-color: var(--cp-navy); background: var(--cp-navy); color: #fff; }

@media (max-width: 767.98px) {
    body.company-panel .cp-parcel-export-heading { align-items: flex-start; flex-direction: column; }
    body.company-panel .cp-parcel-export-heading .cp-parcel-export-submit { align-self: flex-end; }
    body.company-panel .cp-parcel-export-filterbar { align-items: stretch; flex-wrap: wrap; }
    body.company-panel .cp-parcel-export-advanced { order: 1; }
    body.company-panel .cp-parcel-export-select { flex: 1 1 calc(50% - 6px); }
    body.company-panel .cp-parcel-export-search { order: 5; flex-basis: 100%; }
    body.company-panel .cp-parcel-export-table-heading { align-items: flex-start; flex-direction: column; }
    body.company-panel .cp-parcel-export-pagination { align-items: flex-start; flex-direction: column; }
    body.company-panel .cp-parcel-export-advanced-grid { position: fixed; top: 25%; inset-inline: 16px; width: auto; max-height: 60vh; overflow-y: auto; }
}

@media (min-width: 992px) {
    body.company-panel:has(.cp-parcel-export) .dashboard-header { display: none !important; }
    html[dir] body.company-panel:has(.cp-parcel-export) .dashboard-ecommerce { padding-top: 0 !important; background-color: #f6f4ef !important; }
    html[dir] body.company-panel:has(.cp-parcel-export) .dashboard-ecommerce > .main-content { padding: 20px 24px 24px !important; }
}

/* Company Admin pickup courier assignment — Figma 356:31310 */
body.company-panel .cp-pickup-assign-dialog { width: calc(100% - 32px); max-width: 620px; margin: 1.75rem auto; }
body.company-panel .cp-pickup-assign-content { overflow: hidden; border: 1px solid var(--cp-border); border-radius: 16px; background: #fff; box-shadow: 0 18px 55px rgb(16 41 64 / 18%); }
body.company-panel .cp-pickup-assign-content form { margin: 0; }
body.company-panel .cp-pickup-assign-header { display: flex; align-items: center; gap: 14px; padding: 22px 24px 18px; border-bottom: 1px solid #eeeae1; }
body.company-panel .cp-pickup-assign-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50%; background: #fbefd0; color: var(--cp-navy); font-size: 18px; }
body.company-panel .cp-pickup-assign-title { min-width: 0; flex: 1; text-align: start; }
body.company-panel .cp-pickup-assign-title h2 { margin: 0; color: var(--cp-ink); font-size: 19px; font-weight: 700; line-height: 1.4; }
body.company-panel .cp-pickup-assign-title p { margin: 2px 0 0; color: var(--cp-muted); font-size: 13px; line-height: 1.5; }
body.company-panel .cp-pickup-assign-close { width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 8px; background: transparent; color: var(--cp-muted); font-size: 25px; line-height: 1; }
body.company-panel .cp-pickup-assign-close:hover { background: #f6f4ef; color: var(--cp-ink); }
body.company-panel .cp-pickup-assign-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px 24px; }
body.company-panel .cp-pickup-assign-field { min-width: 0; }
body.company-panel .cp-pickup-assign-field label,
body.company-panel .cp-pickup-assign-notifications legend { display: block; margin: 0 0 6px; color: var(--cp-ink); font-size: 13px; font-weight: 600; }
body.company-panel .cp-pickup-assign-field .form-control { min-height: 42px; border: 1px solid var(--cp-border); border-radius: 10px; color: var(--cp-ink); font-size: 14px; text-align: start; }
body.company-panel .cp-pickup-assign-field textarea.form-control { min-height: 78px; resize: vertical; }
body.company-panel .cp-pickup-assign-field .select2-container { width: 100% !important; }
body.company-panel .cp-pickup-assign-field .select2-container--default .select2-selection--single { height: 42px; border: 1px solid var(--cp-border); border-radius: 10px; }
body.company-panel .cp-pickup-assign-field .select2-container--default .select2-selection--single .select2-selection__rendered { padding-inline: 14px 34px; color: var(--cp-ink); line-height: 40px; text-align: start; }
body.company-panel .cp-pickup-assign-field .select2-container--default .select2-selection--single .select2-selection__arrow { top: 8px; inset-inline-end: 8px; }
body.company-panel .cp-pickup-assign-note { grid-column: 1 / -1; }
body.company-panel .cp-pickup-assign-notifications { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
body.company-panel .cp-pickup-assign-notifications legend { float: none; width: auto; }
body.company-panel .cp-pickup-assign-option { display: flex; min-height: 46px; align-items: center; gap: 10px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--cp-border); border-radius: 10px; color: var(--cp-ink); cursor: pointer; font-size: 13px; }
body.company-panel .cp-pickup-assign-option:last-child { margin-bottom: 0; }
body.company-panel .cp-pickup-assign-option input { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--cp-navy); }
body.company-panel .cp-pickup-assign-footer { display: flex; justify-content: flex-start; gap: 10px; padding: 0 24px 24px; }
body.company-panel .cp-pickup-assign-footer button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--cp-border); border-radius: 10px; font-size: 14px; font-weight: 600; }
body.company-panel .cp-pickup-assign-cancel { background: #fff; color: var(--cp-ink); }
body.company-panel .cp-pickup-assign-submit { border-color: #e6ad35 !important; background: #e6ad35; color: var(--cp-navy); }
body.company-panel .cp-pickup-received-body { grid-template-columns: minmax(0, 1fr); }
body.company-panel .cp-pickup-received-summary { display: flex; min-height: 48px; grid-column: 1 / -1; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #dce9df; border-radius: 10px; background: #f4faf5; color: #35634a; font-size: 13px; line-height: 1.5; }
body.company-panel .cp-pickup-received-summary i { flex: 0 0 auto; font-size: 16px; }
body.company-panel .cp-pickup-transfer-note { grid-column: auto; }
body.company-panel .cp-partial-delivery-body { grid-template-columns: minmax(0, 1fr); }
body.company-panel .cp-partial-delivery-callout { display: flex; min-height: 48px; grid-column: 1 / -1; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #f1dfb5; border-radius: 10px; background: #fffaf0; color: #70531b; font-size: 13px; line-height: 1.5; }
body.company-panel .cp-partial-delivery-callout i { flex: 0 0 auto; font-size: 16px; }

body.company-panel .cp-bulk-pickup-dialog { max-width: 760px; }
body.company-panel .cp-bulk-pickup-content { max-height: calc(100vh - 32px); overflow-y: auto; }
body.company-panel .cp-bulk-pickup-notifications { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
body.company-panel .cp-bulk-pickup-notifications legend { grid-column: 1 / -1; float: none; width: auto; margin: 0 0 6px; color: var(--cp-ink); font-size: 13px; font-weight: 600; }
body.company-panel .cp-bulk-pickup-table-wrap { padding: 0 24px 16px; }
body.company-panel .cp-bulk-pickup-table-scroll { overflow-x: auto; border: 1px solid var(--cp-border); border-radius: 12px; }
body.company-panel .cp-bulk-pickup-table { width: 100%; min-width: 720px; margin: 0; border-collapse: collapse; color: var(--cp-ink); font-size: 12px; }
body.company-panel .cp-bulk-pickup-table th { padding: 9px 10px; background: #f1f5f9; color: var(--cp-muted); font-weight: 600; text-align: start; white-space: nowrap; }
body.company-panel .cp-bulk-pickup-table td { padding: 9px 10px; border-top: 1px solid #eeeae1; vertical-align: middle; }
body.company-panel .cp-bulk-pickup-table tbody tr:nth-child(even) { background: #faf9f6; }

@media (max-width: 575.98px) {
    body.company-panel .cp-pickup-assign-dialog { margin: 12px auto; }
    body.company-panel .cp-pickup-assign-header { padding: 18px 16px 14px; }
    body.company-panel .cp-pickup-assign-body { grid-template-columns: minmax(0, 1fr); gap: 13px; padding: 16px; }
    body.company-panel .cp-pickup-assign-note,
    body.company-panel .cp-pickup-assign-notifications { grid-column: auto; }
    body.company-panel .cp-pickup-assign-footer { padding: 0 16px 16px; }
    body.company-panel .cp-bulk-pickup-notifications { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
    body.company-panel .cp-bulk-pickup-table-wrap { padding: 0 16px 14px; }
}

/* Mobile drawer toggle: visible bordered button with a dark hamburger icon (was a white icon on a white bar). */
body.company-panel .navbar-other .offcanvas-nav-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 36px; padding: 0;
    background: #fff !important; border: 1px solid #dce4eb !important; border-radius: 10px;
    color: #102940 !important; font-size: 16px;
}
body.company-panel .navbar-other .offcanvas-nav-btn:hover { background: #fff6df !important; border-color: #e6ad35 !important; }

/* ===== Premium redesign pass 1 (Figma 364:27746): warm canvas, gold primary actions, table card, sidebar search/footer, topbar search ===== */
body.company-panel { --cp-bg: #f5f3ee; background: #f5f3ee; }
body.company-panel .dashboard-main-wrapper,
body.company-panel .main-content { background: #f5f3ee; }

body.company-panel .cp-page-head-actions .btn-primary,
body.company-panel .cp-page-head-actions .btn-primary:focus {
    background: var(--cp-gold); border-color: var(--cp-gold); color: var(--cp-navy);
    font-weight: 700; border-radius: 10px; padding: 8px 18px; box-shadow: none;
}
body.company-panel .cp-page-head-actions .btn-primary:hover { background: #d99e27; border-color: #d99e27; color: var(--cp-navy); }

body.company-panel .cp-table-card { background: #fff; border: 1px solid var(--cp-border); border-radius: 16px; overflow: hidden; box-shadow: none; }
body.company-panel .cp-table-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 22px; }
body.company-panel .cp-table-card-head h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--cp-navy); }
body.company-panel .cp-table-card-meta { font-size: 12.5px; color: var(--cp-text-muted); }
body.company-panel .cp-table-card .cp-table thead th { background: #f3f6fa; color: var(--cp-text-muted); font-size: 12.5px; font-weight: 700; border: 0; padding: 12px 22px; }
body.company-panel .cp-table-card .cp-table tbody td { padding: 16px 22px; border-top: 1px solid var(--cp-border-light); vertical-align: middle; color: var(--cp-navy); }

body.company-panel .cp-table-card .badge.badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; }
body.company-panel .cp-table-card .badge.badge-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body.company-panel .cp-table-card .badge-success { background: var(--cp-success-light); color: var(--cp-success); }
body.company-panel .cp-table-card .badge-danger { background: #eef2f6; color: #5b6b7c; }

/* Merchant list uses the 9-column Figma composition at desktop widths. */

body.company-panel .cp-row-actions { white-space: nowrap; }
body.company-panel .cp-row-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; margin-inline-end: 8px; border-radius: 10px; background: #f3f6fa; color: var(--cp-navy); font-size: 13px; font-weight: 600; text-decoration: none; }
body.company-panel .cp-row-btn:hover { background: var(--cp-gold-light); color: var(--cp-navy); }
body.company-panel .cp-row-more { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--cp-border); background: #fff; color: var(--cp-text-muted); }
body.company-panel .cp-row-more:hover { border-color: var(--cp-gold); color: var(--cp-navy); }

body.company-panel .pagination { gap: 6px; margin: 0; }
body.company-panel .pagination .page-item .page-link { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--cp-border); border-radius: 10px !important; color: var(--cp-navy); background: #fff; font-size: 13px; }
body.company-panel .pagination .page-item.active .page-link { background: var(--cp-navy); border-color: var(--cp-navy); color: #fff; }

/* Sidebar: quick search, group labels, footer card */
body.company-panel .cp-sidebar-search { align-items: center; gap: 8px; margin: 12px 14px; padding: 0 12px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); color: #aebccb; }
body.company-panel .cp-sidebar-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-size: 13px; }
body.company-panel .cp-sidebar-search input::placeholder { color: #8fa3b8; }
body.company-panel .cp-sidebar-search kbd { background: transparent; color: #8fa3b8; font-size: 11px; padding: 0; }
body.company-panel .cp-nav-group { padding: 14px 20px 4px; color: #8fa3b8; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
body.company-panel .cp-sidebar-foot { position: sticky; bottom: 0; margin-top: 12px; padding: 10px 12px 14px; background: var(--cp-navy); }
body.company-panel .cp-sidebar-foot .cp-powered { text-align: center; font-size: 11px; color: #8fa3b8; padding: 6px 0 10px; }
body.company-panel .cp-sidebar-foot .cp-powered i { color: var(--cp-gold); font-size: 10px; }
body.company-panel .cp-sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.07); text-decoration: none; }
body.company-panel .cp-sidebar-user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--cp-gold); color: var(--cp-navy); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
body.company-panel .cp-sidebar-user-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
body.company-panel .cp-sidebar-user-meta strong { color: #fff; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.company-panel .cp-sidebar-user-meta small { color: #8fa3b8; font-size: 11px; }

/* Topbar: new shipment + global search */
body.company-panel .cp-topbar-start { gap: 12px; }
body.company-panel .cp-topbar-newparcel { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--cp-gold); color: var(--cp-navy); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
body.company-panel .cp-topbar-newparcel:hover { background: #d99e27; color: var(--cp-navy); }
body.company-panel .cp-topbar-search { position: relative; display: flex; align-items: center; width: 300px; max-width: 28vw; margin: 0; }
body.company-panel .cp-topbar-search i { position: absolute; inset-inline-start: 12px; color: var(--cp-text-muted); font-size: 13px; }
body.company-panel .cp-topbar-search input { width: 100%; height: 40px; padding: 0 14px 0 14px; padding-inline-start: 34px; border: 1px solid var(--cp-border); border-radius: 12px; background: #fff; font-size: 13px; }
@media (max-width: 1199px) { body.company-panel .cp-topbar-search { display: none; } }
body.company-panel .cp-page-head-actions .btn-primary,
body.company-panel .cp-page-head-actions .btn-primary:focus,
body.company-panel .cp-page-head-actions .btn-primary:active {
    background-color: var(--cp-gold) !important; background-image: none !important;
    border-color: var(--cp-gold) !important; color: var(--cp-navy) !important;
}
body.company-panel .cp-page-head-actions .btn-primary:hover { background-color: #d99e27 !important; border-color: #d99e27 !important; color: var(--cp-navy) !important; }

/* Form action bar (Figma add/edit frames): gold save first, white cancel second, no heavy divider */
body.company-panel .cp-form-section form > .d-flex.border-top { flex-direction: row-reverse; justify-content: flex-end !important; gap: 10px; border-top: 0 !important; padding-top: 8px !important; }
body.company-panel .cp-form-section form > .d-flex.border-top .btn { margin: 0 !important; height: 42px; padding: 0 22px; border-radius: 10px !important; font-weight: 700; display: inline-flex; align-items: center; }
body.company-panel .cp-form-section form > .d-flex.border-top .btn-primary { background-color: var(--cp-gold) !important; background-image: none !important; border-color: var(--cp-gold) !important; color: var(--cp-navy) !important; }
body.company-panel .cp-form-section form > .d-flex.border-top .btn-primary::after { content: "\f00c"; font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome; font-weight: 900; margin-inline-start: 8px; font-size: 12px; }
body.company-panel .cp-form-section form > .d-flex.border-top .btn-secondary { background: #fff !important; border: 1px solid var(--cp-border) !important; color: var(--cp-navy) !important; }
body.company-panel .cp-form-section .form-control { border-radius: 12px; height: 44px; border-color: var(--cp-border); }
/* Figma sidebar has no «main menu» caption above the dashboard link */
body.company-panel .nav-left-sidebar .navbar-nav > li.nav-divider:not(.cp-nav-group) { display: none; }

/* ===== Dashboard D1 (Figma 332:5627) - tokens: line #e8e4da, ink900 #14212e, ink600 #5b6b7b, gold50 #fff8e8, navy50 #f1f5f9 ===== */
body.company-panel { --cp-border: #e8e4da; --cp-border-light: #efece4; }
body.company-panel .cp-company-dashboard .cp-dashboard-greeting { display: flex; flex-direction: column; margin: 0 0 12px; }
body.company-panel .cp-company-dashboard .cp-dashboard-greeting strong { font-size: 17px; font-weight: 700; color: #14212e; }
body.company-panel .cp-company-dashboard .cp-dashboard-greeting span { font-size: 12px; color: #5b6b7b; }
body.company-panel .cp-company-dashboard .cp-dashboard-heading h1 { font-size: 28px; font-weight: 800; color: #102940; }
body.company-panel .cp-company-dashboard .cp-dashboard-eyebrow { font-size: 12px; color: #5b6b7b; }
body.company-panel .cp-company-dashboard .cp-dashboard-primary-action { background: var(--cp-gold); color: var(--cp-navy); border-radius: 10px; height: 42px; font-weight: 700; }

body.company-panel .cp-company-dashboard .cp-dashboard-period { background: transparent; border: 0; padding: 0; margin-bottom: 18px; }
body.company-panel .cp-company-dashboard .cp-dashboard-period label { display: none; }
body.company-panel .cp-company-dashboard .cp-dashboard-period-pill { height: 36px; display: inline-flex; align-items: center; padding: 0 16px; font-size: 14px; font-weight: 600; color: #5b6b7b; background: #fff; border: 1px solid #e8e4da; border-radius: 10px; }
body.company-panel .cp-company-dashboard .cp-dashboard-period-pill.is-active { background: var(--cp-navy); border-color: var(--cp-navy); color: #fff; }

body.company-panel .cp-company-dashboard .cp-dashboard-actions { background: #fff8e8; border: 1px solid #fbefd0; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
body.company-panel .cp-company-dashboard .cp-dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; }
body.company-panel .cp-company-dashboard .cp-dashboard-section-heading h2 { font-size: 17px; font-weight: 700; color: #14212e; margin: 0; }
body.company-panel .cp-company-dashboard .cp-dashboard-section-heading p { font-size: 12px; color: #5b6b7b; margin: 0; }
body.company-panel .cp-company-dashboard .cp-dashboard-ghost-btn { display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid #e8e4da; background: #fff; border-radius: 10px; font-size: 14px; font-weight: 600; color: #14212e; text-decoration: none; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-card { min-height: 0; padding: 14px; border: 1px solid #e8e4da; border-radius: 12px; background: #fff; box-shadow: none; display: flex; flex-direction: column; gap: 8px; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-card:before { display: none; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-count { font-size: 28px; font-weight: 700; color: #14212e; line-height: 1.2; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-unavailable { font-size: 13px; color: #8a97a4; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-icon { width: 32px; height: 32px; border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; background: #fdf3dc; color: #9a6208; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-card--blue .cp-dashboard-action-icon { background: #e8f0f8; color: #34516b; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-card--red .cp-dashboard-action-icon { background: #fceeee; color: #b43c38; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-card--green .cp-dashboard-action-icon { background: #eaf5ef; color: #216849; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-card h3 { margin: 0; font-size: 13px; font-weight: 600; color: #14212e; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-card > p { display: none; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-links { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-links a { font-size: 12px; font-weight: 600; color: #9a6208; text-decoration: none; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-card--green .cp-dashboard-action-links a { color: #216849; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-card--blue .cp-dashboard-action-links a { color: #34516b; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-card--red .cp-dashboard-action-links a { color: #b43c38; }
body.company-panel .cp-company-dashboard .cp-dashboard-action-note { margin-top: auto; font-size: 11px; color: #8a97a4; }

body.company-panel .cp-company-dashboard .cp-dashboard-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
body.company-panel .cp-company-dashboard .cp-dashboard-kpi { background: #fff; border: 1px solid #e8e4da; border-radius: 16px; padding: 18px 20px; gap: 8px; box-shadow: none; text-decoration: none; }
body.company-panel .cp-company-dashboard .cp-dashboard-kpi-label { font-size: 13px; font-weight: 600; color: #5b6b7b; display: flex; align-items: center; gap: 8px; }
body.company-panel .cp-company-dashboard .cp-dashboard-kpi-label i { width: 32px; height: 32px; border-radius: 100px; background: #f1f5f9; color: #274c6e; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
body.company-panel .cp-company-dashboard .cp-dashboard-kpi strong { font-size: 30px; font-weight: 700; color: #14212e; line-height: 1.2; }
body.company-panel .cp-company-dashboard .cp-dashboard-kpi small { align-self: flex-start; padding: 3px 12px; border-radius: 100px; background: #f1f5f9; color: #5b6b7b; font-size: 12px; font-weight: 600; }

body.company-panel .cp-company-dashboard .cp-dashboard-panels { gap: 16px; }
body.company-panel .cp-company-dashboard .cp-dashboard-panel,
body.company-panel .cp-company-dashboard .cp-dashboard-recent-table { background: #fff; border: 1px solid #e8e4da; border-radius: 16px; padding: 20px; box-shadow: none; }
body.company-panel .cp-company-dashboard .cp-dashboard-panel-heading h2 { font-size: 17px; font-weight: 700; color: #14212e; }
body.company-panel .cp-company-dashboard .cp-dashboard-panel-heading p { font-size: 12px; color: #5b6b7b; }
body.company-panel .cp-company-dashboard .cp-dashboard-panel-shortcut { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 10px; background: #f1f5f9; color: #14212e; font-size: 13px; font-weight: 600; text-decoration: none; }
body.company-panel .cp-company-dashboard .cp-dashboard-table th { background: #f1f5f9; color: #5b6b7b; font-size: 12px; font-weight: 600; padding: 12px 14px; }
body.company-panel .cp-company-dashboard .cp-dashboard-table td { font-size: 13px; color: #14212e; padding: 14px; border-top: 1px solid #efece4; }
body.company-panel .cp-company-dashboard .cp-dashboard-row-action { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 10px; background: #f1f5f9; color: #14212e; font-size: 13px; font-weight: 600; text-decoration: none; }
body.company-panel .cp-company-dashboard .cp-dashboard-tracking { font-weight: 600; color: #14212e; }
body.company-panel .cp-company-dashboard .cp-dashboard-financial-primary > div { background: #f1f5f9; border-radius: 12px; }
body.company-panel .cp-company-dashboard .cp-dashboard-net { background: #eaf5ef !important; }
body.company-panel .cp-company-dashboard .cp-dashboard-net strong { color: #216849; }

@media (max-width: 1199px) {
    body.company-panel .cp-company-dashboard .cp-dashboard-action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.company-panel .cp-company-dashboard .cp-dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    body.company-panel .cp-company-dashboard .cp-dashboard-actions { padding: 14px; }
    body.company-panel .cp-company-dashboard .cp-dashboard-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    body.company-panel .cp-company-dashboard .cp-dashboard-kpis { gap: 10px; }
    body.company-panel .cp-company-dashboard .cp-dashboard-kpi { padding: 14px; }
    body.company-panel .cp-company-dashboard .cp-dashboard-kpi strong { font-size: 24px; }
    body.company-panel .cp-company-dashboard .cp-dashboard-period-presets { display: flex; flex-wrap: wrap; gap: 6px; }
    body.company-panel .cp-company-dashboard .cp-dashboard-panels { grid-template-columns: 1fr !important; }
    body.company-panel .cp-company-dashboard .cp-dashboard-recent-table, body.company-panel .cp-company-dashboard .cp-dashboard-panel { padding: 14px; }
    body.company-panel .cp-company-dashboard .cp-dashboard-table-wrap { overflow-x: auto; }
}

/* mobile shell + dashboard heading */
@media (min-width: 992px) { body.company-panel .cp-company-dashboard .cp-dashboard-primary-action { display: none; } }
@media (max-width: 991.98px) {
    body.company-panel main.dashboard-ecommerce { padding-top: 8px !important; }
    body.company-panel .cp-company-dashboard .cp-dashboard-heading { flex-direction: column; align-items: stretch; gap: 12px; }
    body.company-panel .cp-company-dashboard .cp-dashboard-primary-action { width: 100%; justify-content: center; }
}
@media (max-width: 991.98px) {
    html[dir] body.company-panel main.dashboard-ecommerce, html[dir] body.company-panel .dashboard-wrapper { padding-top: 0 !important; }
}

/* Parcels list (Figma D2): bulk bar only while rows are selected */
body.company-panel .cp-parcel-bulkbar { display: none !important; }
body.company-panel .cp-parcel-bulkbar.is-visible { display: flex !important; }
body.company-panel .cp-parcel-row-actions { white-space: nowrap; }
body.company-panel .cp-parcel-row-actions .dropdown { display: inline-block; }

/* ===== Global Figma pass: every legacy list/form page in the company shell inherits the premium tokens ===== */
body.company-panel .card { background: #fff; border: 1px solid #e8e4da; border-radius: 16px; box-shadow: none; }
body.company-panel .card > .card-header { background: transparent; border-bottom: 1px solid #efece4; padding: 16px 22px; font-weight: 700; color: #14212e; }
body.company-panel .card > .card-body { padding: 20px 22px; }
body.company-panel .card .pageheader-title { font-size: 17px; font-weight: 800; color: #102940; }

body.company-panel .table:not(.cp-dashboard-table) thead th { background: #f1f5f9; color: #5b6b7b; font-size: 12.5px; font-weight: 700; border: 0 !important; padding: 12px 18px; white-space: nowrap; }
body.company-panel .table:not(.cp-dashboard-table) tbody td { padding: 14px 18px; border-top: 1px solid #efece4; border-bottom: 0; vertical-align: middle; color: #14212e; font-size: 13.5px; }
body.company-panel .table:not(.cp-dashboard-table) tbody tr:hover { background: #fbfaf6; }
body.company-panel .table-responsive { border-radius: 12px; }

body.company-panel .badge.badge-pill, body.company-panel .badge-soft { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; }
body.company-panel .badge.badge-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body.company-panel .badge-success { background: #eaf5ef; color: #216849; }
body.company-panel .badge-danger { background: #fceeee; color: #b43c38; }
body.company-panel .badge-warning { background: #fdf3dc; color: #9a6208; }
body.company-panel .badge-info, body.company-panel .badge-primary { background: #e8f0f8; color: #34516b; }
body.company-panel .badge-secondary, body.company-panel .badge-light { background: #eef2f6; color: #5b6b7c; }

/* row kebab (legacy markup): square bordered button, no caret */
body.company-panel .btn.dropdown-toggle-split { width: 34px; height: 34px; padding: 0; border-radius: 10px; border: 1px solid #e8e4da; background: #fff; color: #5b6b7b; display: inline-flex; align-items: center; justify-content: center; }
body.company-panel .btn.dropdown-toggle-split::after { display: none; }
body.company-panel .btn.dropdown-toggle-split:hover, body.company-panel .btn.dropdown-toggle-split:focus { border-color: var(--cp-gold); color: var(--cp-navy); background: #fff; }
body.company-panel .dropdown-menu { border: 1px solid #e8e4da; border-radius: 12px; box-shadow: 0 10px 30px rgba(16, 41, 64, .12); padding: 6px; }
body.company-panel .dropdown-menu .dropdown-item { border-radius: 8px; font-size: 13.5px; padding: 8px 12px; color: #14212e; }
body.company-panel .dropdown-menu .dropdown-item:hover { background: #f1f5f9; }
body.company-panel .cp-parcel-row-actions .dropdown-menu .dropdown-item:hover,
body.company-panel .cp-parcel-row-actions .dropdown-menu .dropdown-item:focus,
body.company-panel .cp-parcel-row-actions .dropdown-menu .dropdown-item:focus-visible { background:#f1f5f9!important; color:#14212e!important; }
body.company-panel .cp-parcel-row-actions .dropdown-menu .dropdown-item:active { background:#102940!important; color:#fff!important; }
body.company-panel .cp-row-menu-portal { min-width:180px; padding:5px; border:1px solid #e8e4da; border-radius:10px; box-shadow:0 8px 24px #1029401a; }
body.company-panel .cp-row-menu-portal .dropdown-item { display:flex; align-items:center; gap:8px; padding:7px 9px; border-radius:6px; font-size:11px; }
body.company-panel .cp-row-menu-portal .dropdown-item:hover,
body.company-panel .cp-row-menu-portal .dropdown-item:focus,
body.company-panel .cp-row-menu-portal .dropdown-item:focus-visible { background:#f1f5f9!important; color:#14212e!important; outline:0; }
body.company-panel .cp-row-menu-portal .dropdown-item:active { background:#102940!important; color:#fff!important; }
body.company-panel .cp-row-menu-portal .dropdown-item>i { width:14px; color:#617286; }

/* Match the Figma shipment cards on tablet and phone instead of forcing a wide table. */
@media (max-width: 991.98px) {
    body.company-panel .cp-parcel-table-card { overflow: visible; border: 0; background: transparent; }
    body.company-panel .cp-parcel-table-card > .table-responsive { overflow: visible; }
    body.company-panel .cp-parcel-table { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; }
    body.company-panel .cp-parcel-table thead { display: none; }
    body.company-panel .cp-parcel-table tbody { display: grid; gap: 12px; }
    body.company-panel .cp-parcel-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "tracking status status" "recipient recipient recipient" "amount select actions"; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 14px; border: 1px solid #e8e4da; border-radius: 16px; background: #fff; line-height: 1.4; }
    body.company-panel .cp-parcel-table tbody td { display: block; min-width: 0; padding: 0 !important; border: 0; background: transparent; }
    body.company-panel .cp-parcel-table tbody td:nth-child(1) { grid-area: select; text-align: start; }
    body.company-panel .cp-parcel-table tbody td:nth-child(2) { grid-area: tracking; }
    body.company-panel .cp-parcel-table tbody td:nth-child(3) { grid-area: recipient; overflow: hidden; color: #5b6b7b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
    body.company-panel .cp-parcel-table tbody td:nth-child(4) { display: none; }
    body.company-panel .cp-parcel-table tbody td:nth-child(5) { grid-area: status; justify-self: end; }
    body.company-panel .cp-parcel-table tbody td:nth-child(6) { grid-area: amount; justify-self: end; }
    body.company-panel .cp-parcel-table tbody td:nth-child(7) { grid-area: actions; }
    body.company-panel .cp-parcel-table td small { max-width: 100%; }
    body.company-panel .cp-parcel-table td:nth-child(2) small,
    body.company-panel .cp-parcel-table td:nth-child(3) small[dir="ltr"],
    body.company-panel .cp-parcel-table td:nth-child(6) small { display: none; }
    body.company-panel .cp-parcel-table td:nth-child(3) .cp-recipient-name { display: inline; color: #5b6b7b; font-size: 13px; font-weight: 400; }
    body.company-panel .cp-parcel-table td:nth-child(3) small:not([dir="ltr"]) { display: inline; max-width: none; margin: 0; font-size: 13px; }
    body.company-panel .cp-parcel-table td:nth-child(3) small:not([dir="ltr"])::before { content: " · "; }
    body.company-panel .cp-parcel-table .cp-tracking-link { max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; }
    body.company-panel .cp-parcel-table .cp-parcel-status-pill { padding: 3px 10px; font-size: 12px; font-weight: 600; }
    body.company-panel .cp-parcel-table td strong { font-size: 15px; }
    body.company-panel .cp-parcel-row-actions { display: flex; align-items: center; gap: 6px; }
    body.company-panel .cp-parcel-row-actions .cp-row-btn { display: inline-flex; min-height: 32px; align-items: center; padding: 5px 12px; border: 1px solid #e8e4da; border-radius: 10px; background: #fff; color: #14212e; }
    body.company-panel .cp-parcel-row-actions .dropdown { display: inline-block; }
    body.company-panel .cp-parcel-table tbody tr:has(.cp-parcel-empty-cell) { display: block; }
}

/* inputs and form labels everywhere */
body.company-panel .form-control, body.company-panel .custom-select, body.company-panel select.form-control { border-radius: 12px; border: 1px solid #e8e4da; min-height: 42px; font-size: 14px; color: #14212e; box-shadow: none; }
body.company-panel .form-control:focus { border-color: var(--cp-gold); box-shadow: 0 0 0 3px rgba(230, 173, 53, .18); }
body.company-panel .select2-container--default .select2-selection--single, body.company-panel .select2-container--default .select2-selection--multiple { border: 1px solid #e8e4da; border-radius: 12px; min-height: 42px; }
body.company-panel .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px; }
/* Select2 appends its menu to <body>; keep it above adjacent Bootstrap form controls. */
body.company-panel .select2-container--open { z-index: 1100 !important; }
body.company-panel .select2-container--open .select2-dropdown { z-index: 1100 !important; pointer-events: auto; }
body.company-panel label, body.company-panel .form-label { font-size: 13px; font-weight: 600; color: #14212e; }
body.company-panel textarea.form-control { height: auto; min-height: 96px; }

/* Figma FIG-082: accounts list balances stay scannable as independent columns. */
body.company-panel .cp-account-index .cp-account-table th,
body.company-panel .cp-account-index .cp-account-table td { vertical-align: middle; }
body.company-panel .cp-account-index .cp-account-table th { white-space: nowrap; }
body.company-panel .cp-account-index .cp-account-table .cp-account-money {
    min-width: 112px;
    text-align: end;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
body.company-panel .cp-account-index .cp-account-money-current strong { color: var(--cp-success, #216849); }
body.company-panel .cp-account-index .cp-account-table tbody tr:hover { background: #fbfaf7; }
@media (max-width: 767px) {
    body.company-panel .cp-account-index .cp-account-table { min-width: 760px; }
    body.company-panel .cp-account-index .cp-filter-form .form-group { margin-bottom: 12px !important; }
}

/* generic buttons */
body.company-panel .btn { border-radius: 10px; font-weight: 600; }
body.company-panel .btn-outline-secondary, body.company-panel .btn-secondary { background: #fff; border: 1px solid #e8e4da; color: #14212e; }
body.company-panel .btn-outline-secondary:hover, body.company-panel .btn-secondary:hover { background: #fff6df; border-color: var(--cp-gold); color: #14212e; }
body.company-panel .btn-success { background: #216849; border-color: #216849; color: #fff; }
body.company-panel .btn-danger { background: #b43c38; border-color: #b43c38; color: #fff; }

/* modals */
body.company-panel .modal-content { border: 0; border-radius: 16px; box-shadow: 0 20px 50px rgba(16, 41, 64, .25); }
body.company-panel .modal-header { border-bottom: 1px solid #efece4; padding: 18px 22px; }
body.company-panel .modal-title { font-size: 17px; font-weight: 800; color: #102940; }
body.company-panel .modal-footer { border-top: 1px solid #efece4; padding: 14px 22px; gap: 8px; }

/* mobile: tables scroll, cards tighter, toolbars wrap */
@media (max-width: 767.98px) {
    body.company-panel .card > .card-body { padding: 14px; }
    body.company-panel .table:not(.cp-dashboard-table) thead th, body.company-panel .table:not(.cp-dashboard-table) tbody td { padding: 10px 12px; }
    body.company-panel .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    body.company-panel .cp-page-head { flex-direction: column; align-items: stretch !important; }
    body.company-panel .cp-page-head-actions { width: 100%; }
    body.company-panel .cp-page-head-actions .btn { flex: 1 1 auto; justify-content: center; }
    body.company-panel .modal-dialog { margin: 10px; }
}

/* Save/submit buttons of data-entry (POST) forms are gold like the Figma add/edit frames; GET filter forms stay navy */
body.company-panel form[method="POST" i] button.btn-primary[type="submit"], body.company-panel form[method="POST" i] input.btn-primary[type="submit"] { background-color: var(--cp-gold) !important; background-image: none !important; border-color: var(--cp-gold) !important; color: var(--cp-navy) !important; min-height: 42px; padding: 0 22px; font-weight: 700; }
body.company-panel form[method="POST" i] button.btn-primary[type="submit"]:hover { background-color: #d99e27 !important; border-color: #d99e27 !important; }

/* Figma input radius is 12px (legacy rules made fields pill-shaped) */
body.company-panel .form-control, body.company-panel select.form-control, body.company-panel .custom-select, body.company-panel .select2-container--default .select2-selection--single, body.company-panel .select2-container--default .select2-selection--multiple { border-radius: 12px !important; }

/* ===== Arabic / RTL: text must start from the right everywhere (Bootstrap 4 LTR build forces text-align:left) ===== */
html[dir="rtl"] body.company-panel { text-align: right; }
html[dir="rtl"] body.company-panel main,
html[dir="rtl"] body.company-panel .main-content,
html[dir="rtl"] body.company-panel .card,
html[dir="rtl"] body.company-panel .card-body,
html[dir="rtl"] body.company-panel .modal-content,
html[dir="rtl"] body.company-panel .dropdown-menu,
html[dir="rtl"] body.company-panel .nav-left-sidebar,
html[dir="rtl"] body.company-panel .dashboard-header { text-align: right; }
html[dir="rtl"] body.company-panel th,
html[dir="rtl"] body.company-panel td,
html[dir="rtl"] body.company-panel h1,
html[dir="rtl"] body.company-panel h2,
html[dir="rtl"] body.company-panel h3,
html[dir="rtl"] body.company-panel h4,
html[dir="rtl"] body.company-panel h5,
html[dir="rtl"] body.company-panel h6,
html[dir="rtl"] body.company-panel p,
html[dir="rtl"] body.company-panel label,
html[dir="rtl"] body.company-panel li,
html[dir="rtl"] body.company-panel .breadcrumb,
html[dir="rtl"] body.company-panel .breadcrumb-item,
html[dir="rtl"] body.company-panel .form-group,
html[dir="rtl"] body.company-panel .form-control,
html[dir="rtl"] body.company-panel .select2-selection__rendered,
html[dir="rtl"] body.company-panel .dropdown-item { text-align: right; }
html[dir="rtl"] body.company-panel .text-left,
html[dir="rtl"] body.company-panel .text-start { text-align: right !important; }
html[dir="rtl"] body.company-panel .text-center { text-align: center !important; }
/* numbers, codes, phones, URLs and e-mails keep their own LTR direction but sit on the right edge */
html[dir="rtl"] body.company-panel [dir="ltr"], html[dir="rtl"] body.company-panel input[type="email"], html[dir="rtl"] body.company-panel input[type="tel"], html[dir="rtl"] body.company-panel input[type="url"] { text-align: right; }
html[dir="rtl"] body.company-panel .breadcrumb { padding-inline-start: 0; }
html[dir="rtl"] body.company-panel .breadcrumb-item + .breadcrumb-item::before { float: none; padding-inline-end: .5rem; }
/* centred UI that must stay centred */
html[dir="rtl"] body.company-panel .cp-stepper, html[dir="rtl"] body.company-panel .cp-empty, html[dir="rtl"] body.company-panel .pagination { text-align: center; }

@media (max-width: 767.98px) {
    body.company-panel .sa-users-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    body.company-panel .sa-users-filters > *, body.company-panel .sa-users-filters select, body.company-panel .sa-users-filters input { width: 100%; min-width: 0; box-sizing: border-box; }
    body.company-panel .sa-users-filters .sa-users-filter-submit { grid-column: 1 / -1; justify-content: center; }
    body.company-panel main table:not(.cp-parcel-table):not(.cp-dashboard-table):not(.table) { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
}

/* Dashboard charts (Figma): navy bars, gold for today, 12px labels */
.cp-company-dashboard .cp-dashboard-weekly-chart { height: 170px; gap: 14px; }
.cp-company-dashboard .cp-dashboard-weekly-bar { width: min(100%, 26px); border-radius: 6px; background: #274c6e; }
.cp-company-dashboard .cp-dashboard-weekly-column.is-today .cp-dashboard-weekly-bar { background: var(--cp-gold); }
.cp-company-dashboard .cp-dashboard-weekly-column strong { font-size: 12px; font-weight: 600; color: #5b6b7b; }
.cp-company-dashboard .cp-dashboard-weekly-column.is-today strong { color: #9a6208; }
.cp-company-dashboard .cp-dashboard-weekly-column small { font-size: 12px; color: #5b6b7b; }
.cp-company-dashboard .cp-dashboard-branch-performance h3 { font-size: 13px; font-weight: 700; color: #14212e; }
.cp-company-dashboard .cp-dashboard-branch-row { font-size: 12px; }
.cp-company-dashboard .cp-dashboard-branch-track { height: 8px; background: #f1f5f9; }
.cp-company-dashboard .cp-dashboard-branch-track i { background: #216849; }
.cp-company-dashboard .cp-dashboard-branch-row > strong { font-size: 12px; color: #216849; }

.cp-company-dashboard .cp-dashboard-panels .cp-dashboard-financial { order: -1; }

/* Typography (Figma): 14px body, 28px page titles */
body.company-panel { font-size: 14px; }
body.company-panel .cp-page-title { font-size: 28px; font-weight: 800; color: #102940; }
body.company-panel .cp-caption { font-size: 13px; }
@media (max-width: 767.98px) { body.company-panel .cp-page-title { font-size: 24px; } }

body.company-panel code { color: #5b6b7b; background: transparent; font-size: 12px; padding: 0; }

/* report total rows (legacy bg-primary rows) */
body.company-panel tr.totalCalculationHead, body.company-panel tr.totalCalculationHead td { background: #f1f5f9 !important; color: #14212e !important; font-weight: 700; }
body.company-panel tr.totalCalculationHead td.text-white { color: #14212e !important; }

/* General settings (company): section titles, upload dropzones, colour inputs */
body.company-panel .cp-form-section { background: #fff; border: 1px solid #e8e4da; border-radius: 16px; }
body.company-panel .cp-form-section-title { font-size: 17px; font-weight: 800; color: #102940; margin: 0 0 16px; }
body.company-panel .cp-dropzone { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px dashed #c9d4de; border-radius: 12px; background: #f1f5f9; }
body.company-panel .cp-dropzone-preview { display: flex; align-items: center; justify-content: center; min-height: 90px; border-radius: 10px; background: #fff; overflow: hidden; }
body.company-panel .cp-dropzone-preview.is-dark { background: #102940; }
body.company-panel .cp-dropzone-preview img { max-width: 100%; max-height: 90px; object-fit: contain; }
body.company-panel .cp-color-input { height: 44px; padding: 4px; cursor: pointer; }

/* legacy row menu buttons: always neutral square with an ellipsis icon (some had only a hidden label) */
body.company-panel .btn.dropdown-toggle-split { background-color: #fff !important; background-image: none !important; border: 1px solid #e8e4da !important; color: #5b6b7b !important; }
body.company-panel .btn.dropdown-toggle-split:not(:has(i))::before { content: "\f141"; font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome; font-weight: 900; font-size: 13px; }
body.company-panel .btn.dropdown-toggle-split .sr-only { display: none; }

/* Merchant list uses the Figma column set and remains scrollable on small screens. */
body.company-panel .cp-merchant-index .cp-table-card .cp-table { width: 100%; table-layout: fixed; min-width: 0; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table thead th {
    padding: 7px 5px !important;
    font-size: 9px !important;
    line-height: 1.25;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
body.company-panel .cp-merchant-index .cp-table-card .cp-table tbody td {
    padding: 9px 6px !important;
    font-size: 10.5px !important;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.company-panel .cp-merchant-index .cp-table-card .cp-table th:nth-child(1),
body.company-panel .cp-merchant-index .cp-table-card .cp-table td:nth-child(1) { width: 4%; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table th:nth-child(2),
body.company-panel .cp-merchant-index .cp-table-card .cp-table td:nth-child(2) { width: 9%; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table th:nth-child(3),
body.company-panel .cp-merchant-index .cp-table-card .cp-table td:nth-child(3) { width: 10%; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table th:nth-child(4),
body.company-panel .cp-merchant-index .cp-table-card .cp-table td:nth-child(4) { width: 19%; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table th:nth-child(5),
body.company-panel .cp-merchant-index .cp-table-card .cp-table td:nth-child(5) { width: 13%; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table th:nth-child(6),
body.company-panel .cp-merchant-index .cp-table-card .cp-table td:nth-child(6) { width: 9%; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table th:nth-child(7),
body.company-panel .cp-merchant-index .cp-table-card .cp-table td:nth-child(7) { width: 12%; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table th:nth-child(8),
body.company-panel .cp-merchant-index .cp-table-card .cp-table td:nth-child(8) { width: 14%; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table th:nth-child(9),
body.company-panel .cp-merchant-index .cp-table-card .cp-table td:nth-child(9) { width: 10%; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table tbody td:nth-child(4) { white-space: normal; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table td .badge { max-width: 100%; padding: 3px 5px; font-size: 9px; }
@media (max-width: 767.98px) {
    body.company-panel .cp-merchant-index .cp-table-card .cp-table { min-width: 760px; }
}

/* Merchant list needs a denser header at the 1024px Figma canvas width. */
body.company-panel .cp-merchant-index .cp-table-card .cp-table thead th { padding: 8px 4px; font-size: 9px; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table tbody td { padding: 10px 5px; font-size: 10px; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table th,
body.company-panel .cp-merchant-index .cp-table-card .cp-table td { min-width: 0; }
body.company-panel .cp-merchant-index .cp-table-card .cp-table .badge { padding: 3px 5px; font-size: 9px; }

/* Company branch forms follow the two-column Figma field rhythm. */
body.company-panel .company-hub-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}
body.company-panel .company-hub-form > .form-group { min-width: 0; margin-bottom: 0; }
body.company-panel .company-hub-form > .company-hub-map,
body.company-panel .company-hub-form > .company-hub-actions { grid-column: 1 / -1; }
body.company-panel .company-hub-map .custom-map { height: 160px !important; }
@media (max-width: 767.98px) {
    body.company-panel .company-hub-form { grid-template-columns: minmax(0, 1fr); }
    body.company-panel .company-hub-form > .company-hub-map,
    body.company-panel .company-hub-form > .company-hub-actions { grid-column: 1; }
}

/* ── QA Rawan 2026-11-16: phone fixes ──────────────────────────────────── */
@media (max-width: 991.98px) {
    /* The language switch sat in a fixed bar on top of the drawer menu; keep it in the drawer flow. */
    body.company-panel .sidebarNavigation .offcanvas-body > nav.fixed-top { position: static !important; padding: 0; background: transparent; box-shadow: none; }
    body.company-panel .sidebarNavigation .mobileLocale { margin: 8px 0 12px !important; }
    /* Notifications open as a full-width sheet under the top bar instead of a 380px box running off-screen. */
    body.company-panel .navbar-other .notification-dropdown {
        position: fixed !important; top: 58px !important; inset-inline: 8px !important; width: auto !important;
        max-width: none !important; transform: none !important; z-index: 1085;
    }
    body.company-panel .navbar-other .notification-dropdown .notification-list { max-height: 60vh; }
}
