[dir="rtl"] body.hide-sidebar:not(.show-sidebar) #menu {
  margin-right: -230px !important;
}
[dir="rtl"] body.hide-sidebar:not(.show-sidebar) #wrapper {
  margin-right: 0 !important;
}
[dir="rtl"] .sidebar li a i.menu-icon {
  margin-left: 13px !important;
  margin-right: unset !important;
  float: right !important;
}
[dir="rtl"] .sidebar .arrow {
  float: left;
  padding-top: 5px;
}
[dir="rtl"] .sidebar li .nav-second-level li a {
  padding: 7px 43px 7px 10px;
}
[dir="rtl"] #newsfeed .close_newsfeed {
  left: 30px;
  right: unset;
}
[dir="rtl"] #newsfeed .post-time-ago {
  left: 55px;
  right: unset;
}
[dir="rtl"] #newsfeed .newsfeed_post .dropdown {
  left: 20px;
  right: unset;
}
[dir="rtl"] #newsfeed .comment-image,
[dir="rtl"] .form-wrap.form-builder .frmb-control li::before {
  margin-left: 10px;
  margin-right: unset;
}
[dir="rtl"] .dropdown-submenu > a:after {
  border-color: transparent #94a3b8 transparent transparent;
  border-width: 5px 5px 5px 0;
  float: left;
  margin-left: -71px;
  margin-right: unset;
}
[dir="rtl"] .dropdown-submenu > .dropdown-menu {
  right: 100%;
  left: unset;
}
[dir="rtl"] .widget-dragger {
  right: -15px;
  left: unset;
}
[dir="rtl"] .main-tasks-table-href-name {
  float: unset;
}
[dir="rtl"] .todo-title {
  padding: 0 10px 0 0;
}
[dir="rtl"] .fa-regular.fa-plus.fa-lg {
  line-height: 1.05em;
}
[dir="rtl"] #setup-menu .arrow,
[dir="rtl"] #side-menu .arrow {
  margin-left: unset;
}
.fa-regular,
.fa-solid {
  vertical-align: middle;
}
[dir="rtl"] .customer-profile-group-heading {
  right: 0;
  left: unset;
}
[dir="rtl"]
  .btn-group
  > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
  border-radius: 0 0.25rem 0.25rem 0;
}
.btn-group > .dropdown-toggle:not(:first-child),
[dir="rtl"] .btn-group > .btn:last-child:not(:first-child) {
  border-radius: 0.25rem 0 0 0.25rem;
}
.popover-content,
.popover-title {
  font-family: vazir;
  text-align: center;
}
.popover {
  z-index: 99999 !important;
}
#kan-ban,
.kb-kan-ban .container-fluid {
  display: flex;
}
[dir="rtl"] .input-group .form-control:last-child {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}
[dir="rtl"] #contract-form .input-group-addon,
[dir="rtl"] #discount-total.input-group .input-group-addon,
[dir="rtl"] #new_lead_lead_status_inline .input-group-addon,
[dir="rtl"] #tab_staff_profile .input-group-addon,
[dir="rtl"] .client_password_set_wrapper .input-group-addon,
[dir="rtl"] .colorpicker-element .input-group-addon,
[dir="rtl"] .form-group-select-task_select .input-group-addon,
[dir="rtl"] .input-group.date .input-group-addon,
[dir="rtl"] .lead-wrapper .input-group-addon,
[dir="rtl"] .recurring-cycles .input-group-addon {
  border-radius: 0.375rem 0 0 0.375rem;
  border-left: 1px solid #cbd5e1;
}
[dir="rtl"] ._transaction_form .table.items thead > tr > th:first-child {
  border-left: 0;
  border-right: unset;
}
[dir="rtl"] .table.items thead th {
  border-left: 1px solid #e2e8f0;
  border-right: unset;
}
[dir="rtl"] table.dataTable thead > tr > td.sorting,
table.dataTable thead > tr > td.sorting_asc,
table.dataTable thead > tr > td.sorting_desc,
table.dataTable thead > tr > th.sorting,
table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc {
  padding-left: 30px;
  padding-right: 10px;
}
[dir="rtl"] table.dataTable thead .sorting:after {
  margin-right: 5px;
  margin-left: unset;
}
[dir="rtl"] table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_desc_disabled:after {
  left: 8px;
  right: unset;
}
[dir="rtl"] .activity-feed .feed-item {
  padding-right: 30px;
  border-right: 2px solid #22c55e;
  border-left: unset;
}
[dir="rtl"] .activity-feed .feed-item:after {
  right: -6px;
  left: unset;
}
[dir="rtl"] .jquery-comments .textarea-wrapper .inline-button,
[dir="rtl"] .kan-ban-expand-top {
  left: 0;
  right: unset;
}
.tab-separator {
  border-left-width: 1px;
  border-right: unset;
}
[dir="rtl"] .mleft10 {
  margin-right: 10px !important;
  margin-left: 0 !important;
}
.table > tfoot > tr > td .bg-primary,
[data-name="md-persiandatetimepicker"] table.table [data-name="today"],
[data-name="md-persiandatetimepicker"] table.table td.bg-info {
  color: #fff;
}
[dir="rtl"] .task-info .task-info-icon {
  margin-right: -9px !important;
  margin-left: 8px;
}
[dir="rtl"] ul.tagit li.tagit-new {
  padding: 0.25em 0 0.25em 4px;
}
[dir="rtl"] ul.tagit li {
  margin: 2px 0 2px 5px;
}
[dir="rtl"] ul.tagit input[type="text"] {
  padding-right: 5px;
  padding-left: unset;
}
[dir="rtl"] ul.tagit li.tagit-choice-editable {
  padding: 2px 10px 2px 20px;
}
[dir="rtl"] ul.tagit li.tagit-choice .tagit-close {
  left: 0.4em;
  right: unset;
}
[dir="rtl"] .checklist .remove-checklist {
  margin-right: unset;
}
[dir="rtl"] .checklist-items-template-select .checklist-item-template-remove {
  right: unset;
  left: 17px;
}
.tooltip {
  font-family: dana !important;
}
[dir="rtl"] .mime {
  padding: 1px 26px 4px 0;
}
[dir="rtl"] #project_view_name .bootstrap-select button[data-id="project_top"],
[dir="rtl"]
  #project_view_name
  .bootstrap-select
  button[data-id="project_top"]:focus,
[dir="rtl"]
  #project_view_name
  .bootstrap-select
  button[data-id="project_top"]:hover {
  padding-right: 0;
  padding-left: unset;
}
[dir="rtl"] .svg-rotate svg {
  transform: rotate(180deg);
}
[dir="rtl"] .task-action-select .dropdown-toggle .filter-option {
  padding-left: 1rem;
  padding-right: 0;
}
[dir="rtl"] .jquery-comments ul.navigation li[data-sort-key="attachments"] i {
  margin-left: 0.25em;
  margin-right: unset;
}
[dir="rtl"] .form-wrap.form-builder .cb-wrap.pull-left .form-actions,
[dir="rtl"] .jquery-comments .profile-picture,
[dir="rtl"] .jquery-comments ul.main li.comment .child-comments > :before {
  float: right;
}
[dir="rtl"] .jquery-comments .textarea-wrapper .control-row > span,
[dir="rtl"] .jquery-comments ul.navigation li[data-sort-key="attachments"],
[dir="rtl"] .submenu {
  float: left;
}
[dir="rtl"] .jquery-comments .textarea-wrapper {
  padding-right: 21px;
  padding-left: unset;
}
[dir="rtl"]
  .jquery-comments
  .textarea-wrapper
  .control-row
  > span:not(:first-child) {
  margin-left: 0.5em;
  margin-right: unset;
}
[dir="rtl"] .save_predefined_reply_from_message {
  float: left !important;
}
[dir="rtl"] .system-popup .popup-message {
  font-family: dana;
}
[dir="rtl"]
  .jquery-comments
  ul.main
  li.comment
  .comment-wrapper
  > .profile-picture {
  margin-left: 1rem;
  margin-right: unset;
}
[dir="rtl"] .jquery-comments ul.main li.comment time {
  float: left;
  margin-right: 0.5em;
  margin-left: unset;
}
[dir="rtl"] .jquery-comments ul.main li.comment .actions .action:first-child {
  margin-right: 0;
  margin-left: 1em;
}
.tc-content ol,
[dir="rtl"] .tc-content ul {
  margin-right: 16px;
  margin-left: unset;
}
[dir="rtl"] .jquery-comments .textarea-wrapper:before {
  right: 5px;
  left: unset;
}
[dir="rtl"] #kan-ban .panel-body .lead-name,
[dir="rtl"] #kan-ban .panel-body .task-name {
  padding-right: 22px;
  padding-left: unset;
  background-position-x: 289px;
}
#kan-ban.kb-kan-ban {
  display: none;
}
.alert-dismissable,
.alert-dismissible {
  padding-left: unset;
  padding-right: unset;
}
[dir="rtl"] .input-group-addon:not(:first-child):not(:last-child) {
  border-radius: 0 !important;
}
[dir="rtl"] #tab_form_build li {
  text-align: right;
}
[dir="rtl"] [id^="frmb-"][id$="-form-wrap"] .frmb {
  margin-left: 0 !important;
  margin-right: 20px !important;
}
[dir="rtl"]
  .form-wrap.form-builder
  .frmb
  .form-elements
  .false-label:first-child,
[dir="rtl"] .form-wrap.form-builder .frmb .form-elements label:first-child {
  float: right !important;
}
[dir="rtl"] .form-wrap.form-builder .frmb .form-elements .input-wrap {
  margin-right: 2% !important;
  margin-left: unset !important;
  float: right !important;
}
[dir="rtl"] .form-wrap.form-builder .frmb .required-asterisk {
  margin-left: 0.25rem;
  margin-right: unset !important;
  float: right !important;
}
.laniakea-date {
  display: inline-block;
}
[dir="rtl"] .dataTables_empty {
  text-align: right !important;
}
[data-name="day"]:hover {
  color: #2563eb !important;
}
[dir="rtl"] .navbar-default .navbar-nav > li > a {
  margin-left: 3px;
  margin-right: unset;
}
[dir="rtl"] .navbar-default .navbar-nav > li.customers-nav-item-profile > a {
  padding-right: 10px;
  padding-left: 0;
}
[dir="rtl"] .submenu li {
  margin-left: 15px;
  margin-right: 0;
}
[dir="rtl"] .submenu li:last-child {
  margin-left: 0;
}
[dir="rtl"] .kb-search button[type="submit"] {
  border-radius: 0.375rem 0 0 0.375rem;
}
[dir="rtl"] .question_update {
  margin-right: 15px;
  margin-left: unset;
}
[dir="rtl"] .alert.float-alert .alert-title {
  margin-right: 30px !important;
  margin-left: unset !important;
}
[dir="rtl"] .float-alert.alert span[data-notify="icon"] {
  left: unset !important;
  right: 13px !important;
}
[dir="rtl"] .alert.float-alert button.close {
  left: 10px !important;
  right: unset !important;
}
[dir="rtl"] .float-alert {
  left: 20px !important;
  right: unset !important;
}
.w-50 {
  width: 50% !important;
}
#sms_gateways_options hr.c-hr {
  border-top: 2px solid #2563eb !important;
}
.c_disabled {
  background-color: #eef1f6;
  border-color: #d1dbe5;
  color: #8babcc;
  pointer-events: none;
  cursor: not-allowed;
}
.lani-purple-color {
  color: #5002a5;
  font-weight: 700;
}
.onoffswitch-label:before {
  height: 20px;
}
.tw-divide-x > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-x-reverse: 0;
  border-left-width: calc(1px * var(--tw-divide-x-reverse));
  border-right-width: calc(1px * calc(1 - var(--tw-divide-x-reverse)));
}
.tw-space-x-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-left: calc(0.75rem * var(--tw-space-x-reverse));
  margin-right: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}
.tw-space-x-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-left: calc(0.375rem * var(--tw-space-x-reverse));
  margin-right: calc(0.375rem * calc(1 - var(--tw-space-x-reverse)));
}
[dir="rtl"] #credit-note-form .input-group .input-group-addon,
[dir="rtl"] #estimate-form .input-group .input-group-addon,
[dir="rtl"] #invoice-form .input-group .input-group-addon,
[dir="rtl"] body.custom_fields .input-group-addon {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
  border-right: 1px solid #cbd5e1;
  border-top-left-radius: unset;
  border-bottom-left-radius: unset;
  border-left: unset;
}
[dir="rtl"] #credit-note-form .input-group.date .input-group-addon,
[dir="rtl"]
  #credit-note-form
  .input-group.input-group-select
  .input-group-addon,
[dir="rtl"] #estimate-form .input-group.date .input-group-addon,
[dir="rtl"] #estimate-form .input-group.input-group-select .input-group-addon,
[dir="rtl"] #invoice-form .input-group.date .input-group-addon,
[dir="rtl"] #invoice-form .input-group.input-group-select .input-group-addon {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
  border-left: 1px solid #cbd5e1;
  border-top-right-radius: unset;
  border-bottom-right-radius: unset;
  border-right: unset;
}
.dropdown-menu-right:where([dir="rtl"], [dir="rtl"] *) {
  left: 0;
  right: unset !important;
}
.tw-space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-left: calc(0.5rem * var(--tw-space-x-reverse));
  margin-right: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}
#timer-select-task .inner.open {
  overflow-y: unset !important;
}
.sidebar ul.nav li .nav-second-level li a {
  padding: 5px 48px 5px 15px !important;
}
[dir="rtl"] .sidebar li .nav-second-level li.active a {
  margin: 0;
}
#setup-menu li .nav-second-level li a {
  padding: 5px 24px 5px 10px !important;
}
.tw-pr-4 {
  padding-right: 1rem;
}
.tw-pl-2-5 {
  padding-left: 0.625rem;
}
@font-face {
  font-family: "Orbitron";
  src: url(fonts/Orbitron/Orbitron-Regular.ttf) format("truetype");
  font-weight: normal;
  font-style: normal;
}
.clock-section {
  font-family: "Orbitron", sans-serif;
  width: 100%;
  display: flex;
  align-items: center;
  direction: ltr;
  justify-content: center;
  background: #f0f8ff;
  border-radius: 6px;
}
.clock-section.dark {
  background: #24292d;
  border-radius: 6px;
}
.clock-section .c-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  height: 247px;
  max-width: 560px;
  width: 100%;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  position: relative;
}
.clock-section.dark .c-container {
  background: #323840;
}
.clock-section .c-container .icons i {
  position: absolute;
  right: 17px;
  top: 17px;
  height: 25px;
  width: 25px;
  background: #24292d;
  color: #fff;
  text-align: center;
  line-height: 25px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}
.clock-section.dark .c-container .icons i {
  background: #fff;
  color: #323840;
}
.c-container .icons i.fa-sun {
  opacity: 0;
  pointer-events: none;
}
.clock-section.dark .c-container .icons i.fa-sun {
  opacity: 1;
  pointer-events: auto;
  font-size: 16px;
}
.clock-section .c-container .time {
  display: flex;
  align-items: center;
}
.c-container .time .time-colon {
  display: flex;
  align-items: center;
  position: relative;
}
.time .time-colon .am_pm {
  position: absolute;
  top: 0;
  right: -29px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}
.clock-section.dark .time .time-colon .am_pm {
  color: #fff;
}
.time .time-colon .time-text {
  height: 80px;
  width: 80px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: #f0f8ff;
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.clock-section.dark .time .time-colon .time-text {
  background: #24292d;
}
.time .time-colon .time-text,
.time .time-colon .colon {
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  font-weight: 600;
}
.clock-section.dark .time .time-text .num,
.clock-section.dark .time .colon {
  color: #fff;
}
.time .time-colon .colon {
  font-size: 40px;
  margin: 0 10px;
}
.time .time-colon .time-text .text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}
.clock-section.dark .time .time-colon .text {
  color: #fff;
}
.clock-section .clock-date {
  font-family: "vazir";
  display: flex;
  align-items: center;
  padding: 11px;
  border-radius: 11px;
  background-color: antiquewhite;
}


.lani-pro-mod{
	position: absolute;
    left: 33px;
    top: 7px;
    font-size: 16px;
    vertical-align: middle;
    color: #bcc513;
}

.lani-pro-and-new-mod{
	position: absolute;
    left: 33px;
    top: 7px;
    font-size: 16px;
    vertical-align: middle;
    color: #ed0e0e;
}

.lani-free-mod{
		position: absolute;
    left: 33px;
    top: 7px;
    font-size: 16px;
    vertical-align: middle;
    color: #11b63a;
}


/* css for ai chatbox */
/* ===== Unified AI Panel ===== */

/* Single floating trigger */
#penoai-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99995;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #4f46e5 0%, #d946ef 50%, #f43f5e 100%);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(217, 70, 239, 0.4), 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: visible;
}
#penoai-fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(217, 70, 239, 0.55), 0 6px 15px rgba(0,0,0,0.15);
}
#penoai-fab:hover .penoai-fab-icon { 
    transform: rotate(180deg) scale(1.1); 
}
#penoai-fab .penoai-fab-icon {
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.4));
}
#penoai-fab::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #d946ef 50%, #f43f5e 100%);
    opacity: 0.3;
    z-index: -1;
    animation: penoai-pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
#penoai-fab.is-active::before { display: none; }
@keyframes penoai-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}
#penoai-fab .penoai-fab-badge {
    position: absolute;
    top: -4px; right: -4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    text-transform: uppercase;
}
#penoai-fab .penoai-fab-badge.has-customer { display: flex; }

/* Panel */
#penoai-panel {
    position: fixed;
    bottom: 92px;
    right: 28px;
    width: 400px;
    height: 580px;
    max-width: calc(100vw - 56px);
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.2), 0 4px 20px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99994;
    border: 1px solid #e2e8f0;
    transform-origin: bottom right;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#penoai-panel.is-open {
    display: flex;
    animation: penoai-open 220ms cubic-bezier(0.16,1,0.3,1) forwards;
}
#penoai-panel.is-closing {
    animation: penoai-close 150ms ease-in forwards;
}
@keyframes penoai-open {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
@keyframes penoai-close {
    from { transform: scale(1); opacity: 1; }
    to   { transform: scale(0.95); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    #penoai-fab::before { animation: none; }
    #penoai-fab:hover .penoai-fab-icon { transform: none; }
    #penoai-panel.is-open { animation: none; transform: scale(1); opacity: 1; }
    #penoai-panel.is-closing { animation: none; }
    .pnl-msg { animation: none !important; }
}
@media (max-width: 767px) {
    #penoai-panel {
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%; height: 100%;
        max-width: 100%; max-height: 100%;
        border-radius: 0;
        transform-origin: center center;
    }
}

/* Panel header */
.pnl-head {
    padding: 12px 14px 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.pnl-head-title {
    flex: 1;
    min-width: 0;
}
.pnl-head-title h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    line-height: 1.3;
}
.pnl-head-title .pnl-sub {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pnl-head-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.pnl-head-close:hover { background: rgba(255,255,255,0.35); }

/* Provider chip */
.pnl-provider-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px 3px 8px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    max-width: 160px;
    transition: background 0.15s;
    flex-shrink: 0;
}
.pnl-provider-chip:hover { background: rgba(255,255,255,0.26); }
.pnl-provider-chip .pnl-chip-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #fde68a;
    flex: 0 0 auto;
}
.pnl-provider-chip.is-openai .pnl-chip-dot { background: #a78bfa; }
.pnl-provider-chip.is-openrouter .pnl-chip-dot { background: #38bdf8; }
.pnl-provider-chip .pnl-chip-model {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Provider picker dropdown */
.pnl-picker {
    position: absolute;
    top: 56px;
    right: 14px;
    background: #fff;
    color: #0f172a;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.24), 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    width: 270px;
    max-width: calc(100% - 28px);
    z-index: 10;
    display: none;
    overflow: hidden;
}
.pnl-picker.is-open { display: block; }
.pnl-picker-section { border-bottom: 1px solid #f1f5f9; }
.pnl-picker-section:last-child { border-bottom: none; }
.pnl-picker-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 6px;
}
.pnl-picker-head-dot { width: 8px; height: 8px; border-radius: 50%; }
.pnl-picker-head[data-provider="openai"] .pnl-picker-head-dot { background: #8b5cf6; }
.pnl-picker-head[data-provider="openrouter"] .pnl-picker-head-dot { background: #0ea5e9; }
.pnl-picker-head-title { font-size: 12px; font-weight: 700; color: #0f172a; flex: 1; }
.pnl-picker-head-status {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}
.pnl-picker-head-status.is-off { background: #fee2e2; color: #991b1b; }
.pnl-picker-models { max-height: 200px; overflow-y: auto; padding: 2px 0 8px; }
.pnl-picker-model {
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.pnl-picker-model:hover { background: #f1f5f9; }
.pnl-picker-model.is-active { background: #eef2ff; color: #4338ca; font-weight: 600; }
.pnl-picker-model .pnl-picker-model-id {
    opacity: 0.65;
    font-size: 10px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.pnl-picker-hint {
    padding: 8px 12px;
    font-size: 11px;
    color: #b91c1c;
    background: #fef2f2;
}
.pnl-picker-hint a { color: #b91c1c; text-decoration: underline; }

/* Tab bar */
.pnl-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.pnl-tab {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.pnl-tab:hover { color: #4338ca; }
.pnl-tab.is-active {
    color: #4338ca;
    border-bottom-color: #6366f1;
}
.pnl-tab i { font-size: 14px; }

/* Tab content area */
.pnl-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.pnl-view {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.pnl-view.is-active {
    display: flex;
}

/* Shared body/foot */
.pnl-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    background: #f9fafb;
    scroll-behavior: smooth;
}
.pnl-foot {
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

/* AI Chat styles */
.pnl-msg {
    margin-bottom: 10px;
    display: flex;
    animation: pnl-msg-slide 180ms ease-out forwards;
    opacity: 0;
}
@keyframes pnl-msg-slide {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.pnl-msg.msg-user { justify-content: flex-end; }
.pnl-msg .pnl-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
    word-break: break-word;
}
.pnl-msg.msg-user .pnl-bubble {
    background: #4f46e5;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.pnl-msg.msg-ai .pnl-bubble {
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}
.pnl-msg .pnl-bubble p { margin: 0 0 6px 0; }
.pnl-msg .pnl-bubble p:last-child { margin-bottom: 0; }
.pnl-bubble pre.penoai-code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 12px;
    margin: 6px 0;
}
.pnl-bubble code.penoai-inline-code {
    background: #f3f4f6;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 12px;
}
.pnl-bubble ul.penoai-list { padding-left: 18px; margin: 4px 0; }

/* Typing indicator */
.pnl-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    max-width: 85%;
    margin-bottom: 10px;
}
.pnl-typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: pnl-dot 1.4s ease-in-out infinite;
}
.pnl-typing span:nth-child(2) { animation-delay: 0.16s; }
.pnl-typing span:nth-child(3) { animation-delay: 0.32s; }
.pnl-typing-label { font-size: 12px; color: #94a3b8; margin-left: 6px; }
@keyframes pnl-dot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Shared inputs */
.pnl-input,
textarea.pnl-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    resize: none;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pnl-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}
.pnl-btn {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.pnl-btn:hover { background: #4338ca; }
.pnl-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pnl-btn-send {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: #4f46e5;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
}
.pnl-btn-send:hover { background: #4338ca; transform: scale(1.05); }
.pnl-btn-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.pnl-empty {
    text-align: center;
    padding: 26px 12px;
    color: #94a3b8;
    font-size: 13px;
}
.pnl-empty i {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.4;
}
.pnl-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    margin-bottom: 8px;
}
.pnl-loading {
    text-align: center;
    padding: 14px;
    color: #6b7280;
    font-size: 12px;
}

/* Quick actions */
.pnl-quick-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.pnl-quick-actions a, .pnl-quick-actions button {
    font-size: 11px;
    padding: 4px 10px;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #c7d2fe;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.12s;
}
.pnl-quick-actions a:hover, .pnl-quick-actions button:hover { background: #c7d2fe; }

/* Customer card */
.pnl-cust-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.pnl-cust-card h6 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.pnl-cust-card .pnl-meta-row {
    font-size: 12px;
    color: #475569;
    margin: 2px 0;
}

/* Data pills */
.pnl-pills {
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.pnl-pill {
    background: #eef2ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.pnl-pill .pnl-pill-val { font-weight: 800; }

/* Chips */
.pnl-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 16px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.pnl-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.12s, transform 0.1s;
    white-space: nowrap;
}
.pnl-chip:hover { background: #c7d2fe; transform: translateY(-1px); }

/* Status badge */
.pnl-status-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    margin-left: 4px;
    vertical-align: middle;
}

/* Customer search */
.pnl-results {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
}
.pnl-result-item {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}
.pnl-result-item:last-child { border-bottom: none; }
.pnl-result-item:hover { background: #f0f9ff; }
.pnl-result-item .pnl-meta { color: #64748b; font-size: 11px; }

/* Expandable data sections */
.pnl-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}
.pnl-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border-bottom: 1px solid transparent;
    transition: background 0.15s;
    user-select: none;
}
.pnl-section-head:hover { background: #f1f5f9; }
.pnl-section-head .pnl-section-icon { margin-right: 6px; color: #6366f1; font-size: 13px; width: 18px; text-align: center; }
.pnl-section-head .pnl-section-badge {
    background: #eef2ff;
    color: #4338ca;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: auto;
    margin-right: 6px;
}
.pnl-section-head .pnl-section-caret { color: #94a3b8; font-size: 10px; transition: transform 0.2s; }
.pnl-section.is-open .pnl-section-head { border-bottom-color: #e5e7eb; }
.pnl-section.is-open .pnl-section-caret { transform: rotate(180deg); }
.pnl-section-body { padding: 8px 12px; font-size: 12px; color: #334155; display: none; }
.pnl-section.is-open .pnl-section-body { display: block; }
.pnl-data-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid #f3f4f6;
}
.pnl-data-row:last-child { border-bottom: none; }
.pnl-data-label { color: #64748b; font-size: 11px; }
.pnl-data-value { font-weight: 600; color: #0f172a; font-size: 12px; }
.pnl-data-value.pnl-warn { color: #dc2626; }
.pnl-data-value.pnl-good { color: #16a34a; }
.pnl-mini-list { list-style: none; padding: 0; margin: 4px 0 0; }
.pnl-mini-list li {
    padding: 4px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 11px;
    line-height: 1.4;
}
.pnl-mini-list li:last-child { border-bottom: none; }
.pnl-mini-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
}
.pnl-mini-tag.tag-active { background: #dcfce7; color: #166534; }
.pnl-mini-tag.tag-finished { background: #dbeafe; color: #1e40af; }
.pnl-mini-tag.tag-primary { background: #fef3c7; color: #92400e; }
.pnl-mini-tag.tag-rent { background: #e0e7ff; color: #3730a3; }
.pnl-mini-tag.tag-sale { background: #fce7f3; color: #9d174d; }

/* Analysis output */
.pnl-analysis {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.55;
    color: #1f2937;
}
.pnl-analysis p:last-child { margin-bottom: 0; }

/* Stats grid */
.pnl-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.pnl-stat {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 8px 10px;
}
.pnl-stat .pnl-stat-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.pnl-stat .pnl-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

/* Template cards */
.pnl-tpl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.pnl-tpl-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-align: center;
}
.pnl-tpl-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(99,102,241,0.15);
}
.pnl-tpl-card i {
    font-size: 20px;
    color: #6366f1;
    margin-bottom: 4px;
}
.pnl-tpl-card .pnl-tpl-name {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.pnl-tpl-card .pnl-tpl-desc {
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pnl-tpl-cat-title {
    font-size: 12px;
    font-weight: 700;
    color: #4338ca;
    margin: 12px 0 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
}
.pnl-tpl-cat-title:first-child { margin-top: 0; }

/* Template form */
.pnl-tpl-form { margin-top: 8px; }
.pnl-tpl-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    margin-top: 8px;
}
.pnl-tpl-form label:first-child { margin-top: 0; }
.pnl-tpl-form select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
    font-family: inherit;
    background: #fff;
}
.pnl-tpl-form select:focus { border-color: #8b5cf6; }
.pnl-tpl-back {
    font-size: 12px;
    color: #6366f1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
}
.pnl-tpl-back:hover { color: #4338ca; }

/* Customer sub-mode: detail + chat */
.pnl-cust-sub-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.pnl-cust-sub-tab {
    flex: 1;
    padding: 6px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    transition: color 0.15s, border-color 0.15s;
}
.pnl-cust-sub-tab:hover { color: #0284c7; }
.pnl-cust-sub-tab.is-active { color: #0284c7; border-bottom-color: #0ea5e9; }

@media (max-width: 640px) {
    #penoai-panel { right: 12px; bottom: 80px; width: calc(100vw - 24px); }
}

/* ===== Expand button in panel header ===== */
.pnl-head-expand {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
    margin-right: 2px;
}
.pnl-head-expand:hover { background: rgba(255,255,255,0.35); }

/* ===== Full-screen Expanded Modal ===== */
#penoai-expanded-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    z-index: 99996;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
#penoai-expanded-overlay.is-open {
    display: flex;
    animation: pnl-overlay-in 200ms ease forwards;
}
@keyframes pnl-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
#penoai-expanded-modal {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(15,23,42,0.35), 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 960px;
    height: calc(100vh - 40px);
    max-height: 780px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: pnl-modal-in 250ms cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes pnl-modal-in {
    from { transform: scale(0.96) translateY(12px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
@media (max-width: 767px) {
    #penoai-expanded-overlay { padding: 0; }
    #penoai-expanded-modal { max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}

/* Expanded modal header */
.exp-head {
    padding: 14px 18px 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.exp-head-title { flex: 1; font-size: 15px; font-weight: 700; }
.exp-head-subtitle { font-size: 11px; opacity: 0.8; margin-top: 1px; }
.exp-head-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.exp-head-close:hover { background: rgba(255,255,255,0.35); }

/* Expanded modal body: sidebar + content */
.exp-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar page navigation */
.exp-sidebar {
    width: 180px;
    flex-shrink: 0;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 12px 8px;
    gap: 4px;
}
.exp-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    transition: background 0.15s, color 0.15s;
}
.exp-nav-item:hover { background: #eef2ff; color: #4338ca; }
.exp-nav-item.is-active { background: #eef2ff; color: #4338ca; }
.exp-nav-item i { font-size: 15px; width: 18px; text-align: center; }
.exp-nav-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 4px;
}
.exp-nav-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 12px 2px;
}

/* Expanded page content */
.exp-pages {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.exp-page {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.exp-page.is-active { display: flex; }

/* Shared exp body/foot */
.exp-page-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: #f9fafb;
    scroll-behavior: smooth;
}
.exp-page-foot {
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

/* Provider chip inside exp header */
.exp-provider-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.exp-provider-chip:hover { background: rgba(255,255,255,0.26); }
.exp-provider-chip .pnl-chip-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #fde68a;
}
.exp-provider-chip.is-openai .pnl-chip-dot { background: #a78bfa; }
.exp-provider-chip.is-openrouter .pnl-chip-dot { background: #38bdf8; }

/* Responsive: on mobile hide sidebar and show a top tab bar */
@media (max-width: 640px) {
    .exp-sidebar { display: none; }
    .exp-body { flex-direction: column; }
    .exp-mobile-tabs {
        display: flex !important;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        flex-shrink: 0;
    }
    .exp-mobile-tab {
        flex: 1;
        padding: 8px 4px;
        text-align: center;
        font-size: 11px;
        font-weight: 600;
        color: #64748b;
        cursor: pointer;
        border: none;
        border-bottom: 2px solid transparent;
        background: none;
        transition: color 0.15s, border-color 0.15s;
    }
    .exp-mobile-tab.is-active { color: #4338ca; border-bottom-color: #6366f1; }
}
.exp-mobile-tabs { display: none; }

/* Combined compact tab: split layout */
#pnl-view-combined {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
#pnl-view-combined.is-active { display: flex; }

/* Combined compact panel: search bar on top, chat below */
.pnl-combined-search-bar {
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pnl-combined-search-bar input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s;
}
.pnl-combined-search-bar input:focus { border-color: #8b5cf6; }
.pnl-combined-client-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pnl-combined-client-badge .pnl-badge-x {
    font-size: 13px;
    line-height: 1;
    opacity: 0.6;
    flex-shrink: 0;
}
.pnl-combined-client-badge:hover .pnl-badge-x { opacity: 1; }
.pnl-combined-ctx-pill {
    font-size: 10px;
    padding: 2px 8px;
    background: #dcfce7;
    color: #166534;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}
