/* ChatFox — soft-white and sky-blue visual theme, 2026-10-23.
 * Independent presentation-only layer. No actions, data, layouts or backend logic changed.
 * Scope is the AntiDetect SPA; document editors under /payments and /2ndfl untouched. */
:root{--cflt-bg:#f5f8fd;--cflt-panel:#fff;--cflt-blue:#198af4;--cflt-text:#243852;--cflt-muted:#71849f;--cflt-stroke:#dce6f2;--cflt-hover:#edf6ff}
body:has(.dolphin-sidebar){background:var(--cflt-bg)!important;color:var(--cflt-text)!important}
body:has(.dolphin-sidebar) #root,
body:has(.dolphin-sidebar) .dolphin-main{background:var(--cflt-bg)!important;color:var(--cflt-text)!important}
/* Main navigation: no changes to folder order, counts or click behaviour */
body:has(.dolphin-sidebar) .dolphin-sidebar{background:#f9fbff!important;color:#324967!important;border-right:1px solid var(--cflt-stroke)!important;box-shadow:2px 0 14px rgba(32,78,130,.035)!important}
body:has(.dolphin-sidebar) .dolphin-sidebar .sidebar-header,
body:has(.dolphin-sidebar) .dolphin-sidebar .sidebar-nav,
body:has(.dolphin-sidebar) .dolphin-sidebar .sidebar-section,
body:has(.dolphin-sidebar) .dolphin-sidebar .sidebar-footer{background:transparent!important;border-color:var(--cflt-stroke)!important}
body:has(.dolphin-sidebar) .sidebar-header{color:#253e5b!important}
body:has(.dolphin-sidebar) .sidebar-header .font-bold,
body:has(.dolphin-sidebar) .sidebar-header .font-semibold{color:#223b60!important}
body:has(.dolphin-sidebar) .sidebar-nav .folder-item,
body:has(.dolphin-sidebar) .sidebar-nav [data-testid^="folder-"]>button{color:#526884!important;background:transparent!important;border-radius:8px!important;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}
body:has(.dolphin-sidebar) .sidebar-nav .folder-item:hover,
body:has(.dolphin-sidebar) .sidebar-nav [data-testid^="folder-"]>button:hover{background:#edf5ff!important;color:#245c9f!important}
body:has(.dolphin-sidebar) .sidebar-nav .folder-item.active,
body:has(.dolphin-sidebar) .sidebar-nav [data-testid^="folder-"].active>button,
body:has(.dolphin-sidebar) .sidebar-nav [data-testid^="folder-"]>button.active{background:#e6f2ff!important;color:#145eae!important;border-left-color:#2498f8!important;font-weight:650!important}
body:has(.dolphin-sidebar) .sidebar-nav .sidebar-section>div[class*="uppercase"],
body:has(.dolphin-sidebar) .sidebar-nav [class*="tracking-"],
body:has(.dolphin-sidebar) .sidebar-nav [class*="uppercase"]{color:#70839e!important}
body:has(.dolphin-sidebar) .dolphin-sidebar input:not([type="checkbox"]){background:#f1f6fd!important;color:#2e4663!important;border:1px solid var(--cflt-stroke)!important;border-radius:8px!important}
body:has(.dolphin-sidebar) .dolphin-sidebar input::placeholder{color:#8a9db5!important}
body:has(.dolphin-sidebar) .sidebar-footer{background:#f8fbff!important;border-top:1px solid var(--cflt-stroke)!important}
body:has(.dolphin-sidebar) .sidebar-footer .rounded-full,
body:has(.dolphin-sidebar) .sidebar-footer #chatfox-switch-app{background:#e8f3ff!important;color:#2365ae!important;border-color:#d7e7fa!important}
/* Header and action controls */
body:has(.dolphin-sidebar) .top-bar{background:#fff!important;color:#243955!important;border-bottom:1px solid var(--cflt-stroke)!important;box-shadow:0 2px 9px rgba(46,82,123,.03)!important}
body:has(.dolphin-sidebar) .top-bar .folder-title{color:#213b5c!important}
body:has(.dolphin-sidebar) .top-bar input{background:#f4f8fd!important;color:#2d4565!important;border:1px solid #dce6f3!important;border-radius:9px!important}
body:has(.dolphin-sidebar) .top-bar input::placeholder{color:#91a0b7!important}
body:has(.dolphin-sidebar) .top-bar button:not([class*="bg-"]):not([id="mpr-open-btn"]):not([id="mpc-open-btn"]),
body:has(.dolphin-sidebar) .top-bar .icon-btn{background:#f2f7fe!important;color:#365779!important;border-color:#dee9f6!important;border-radius:8px!important}
body:has(.dolphin-sidebar) .top-bar button:hover{filter:brightness(.98)}
/* Profile listing: preserve all table dimensions, cell controls and live state colours */
body:has(.dolphin-sidebar) [data-testid="profiles-table-page"],
body:has(.dolphin-sidebar) .content-area{background:#fff!important;color:#263d5e!important}
body:has(.dolphin-sidebar) .profile-table{background:#fff!important;color:#263c5c!important}
body:has(.dolphin-sidebar) .profile-table thead,
body:has(.dolphin-sidebar) .profile-table thead tr,
body:has(.dolphin-sidebar) .profile-table thead th{background:#f1f6fd!important;color:#526b8b!important;border-color:#dae5f2!important}
body:has(.dolphin-sidebar) .profile-table thead th{font-weight:650!important}
body:has(.dolphin-sidebar) .profile-table tbody tr,
body:has(.dolphin-sidebar) .profile-table tbody td{background:#fff!important;color:#2d4565!important;border-color:#e4ecf7!important}
body:has(.dolphin-sidebar) .profile-table tbody tr:nth-child(even),
body:has(.dolphin-sidebar) .profile-table tbody tr:nth-child(even)>td{background:#f9fbff!important}
body:has(.dolphin-sidebar) .profile-table tbody tr:hover,
body:has(.dolphin-sidebar) .profile-table tbody tr:hover>td{background:#eaf5ff!important}
body:has(.dolphin-sidebar) .profile-table tbody tr[class*="selected"],
body:has(.dolphin-sidebar) .profile-table tbody tr[class*="selected"]>td{background:#e4f2ff!important}
body:has(.dolphin-sidebar) .profile-table td .text-white:not(svg),
body:has(.dolphin-sidebar) .profile-table td .text-\[\#FFFFFF\],
body:has(.dolphin-sidebar) .profile-table td .font-semibold:not(button){color:#263e5e!important}
body:has(.dolphin-sidebar) .profile-table td [class*="text-[#8A9099]"],
body:has(.dolphin-sidebar) .profile-table td [class*="text-[#5C6370]"]{color:#7387a5!important}
body:has(.dolphin-sidebar) .profile-table td input:not([type="checkbox"]),
body:has(.dolphin-sidebar) .profile-table td select{background:#fff!important;color:#2c4568!important;border-color:#cfdeef!important}
body:has(.dolphin-sidebar) .profile-table .custom-checkbox{background:#fff!important;border-color:#acc1d9!important}
body:has(.dolphin-sidebar) .profile-table .icon-btn{color:#7387a2}
body:has(.dolphin-sidebar) .profile-table .brw-btn{background:#f1f7ff!important;border-color:#dbe7f7!important;color:#3d78b8!important}
body:has(.dolphin-sidebar) .profile-table .status-rest{background:#edf5ff!important;color:#087af0!important;border-color:#6cb6ff!important}
/* Table footer and pagination */
body:has(.dolphin-sidebar) [data-testid="profiles-table-page"]>[class*="footer"],
body:has(.dolphin-sidebar) .dolphin-main [class*="pagination"]{background:#fff!important;color:#697e9a!important;border-color:var(--cflt-stroke)!important}
/* Schedule shell: preserve all task cards and control placement */
body:has(.dolphin-sidebar) [data-testid="schedule-page"]{background:#f6f9fd!important;color:#2b4360!important}
body:has(.dolphin-sidebar) [data-testid="schedule-page"] h1,
body:has(.dolphin-sidebar) [data-testid="schedule-page"] h2{color:#243e60!important}
/* Reporting pane */
body:has(.dolphin-sidebar) #bcr-panel{background:#f5f8fd!important;color:#243a55!important}
body:has(.dolphin-sidebar) #bcr-panel .bcr-block,
body:has(.dolphin-sidebar) #bcr-panel .bcr-kpi{background:#fff!important;color:#263d60!important;border-color:#dce7f3!important}
body:has(.dolphin-sidebar) #bcr-panel .bcr-button,
body:has(.dolphin-sidebar) #bcr-panel .bcr-input,
body:has(.dolphin-sidebar) #bcr-panel .bcr-select{background:#eff6ff!important;color:#2e567f!important;border-color:#d4e3f5!important}
body:has(.dolphin-sidebar) #bcr-panel th{background:#eaf3ff!important;color:#4b6584!important;border-color:#d9e6f3!important}
body:has(.dolphin-sidebar) #bcr-panel td{color:#2e496a!important;border-color:#e2ebf6!important}
body:has(.dolphin-sidebar) #bcr-panel .bcr-help,
body:has(.dolphin-sidebar) #bcr-panel .bcr-sub{color:#6b7f99!important}
@media(max-width:900px){body:has(.dolphin-sidebar) .dolphin-sidebar{box-shadow:none!important}}

/* Schedule: align history and bulk-actions with the light app shell. */
body:has(.dolphin-sidebar) [data-testid="schedule-page"] .schedule-layout-stable,
body:has(.dolphin-sidebar) [data-testid="schedule-page"] [data-testid^="schedule-item-"]{
 background:#fff!important;border-color:#dfe8f3!important;color:#2a4262!important;
 box-shadow:0 1px 3px rgba(43,77,120,.035)!important
}
body:has(.dolphin-sidebar) [data-testid="schedule-page"] .schedule-layout-stable .text-white,
body:has(.dolphin-sidebar) [data-testid="schedule-page"] .schedule-layout-stable .font-semibold{
 color:#273f5e!important
}
body:has(.dolphin-sidebar) [data-testid="schedule-page"] .shm-toolbar{
 background:#fff!important;color:#2d4562!important;border:1px solid #dbe5f1!important;border-radius:10px!important
}
body:has(.dolphin-sidebar) [data-testid="schedule-page"] .shm-folder{
 background:#f3f8ff!important;color:#355478!important;border:1px solid #d7e3f2!important
}
body:has(.dolphin-sidebar) [data-testid="schedule-page"] .shm-toolbar input,
body:has(.dolphin-sidebar) [data-testid="schedule-page"] .shm-toolbar select{
 accent-color:#1889f1
}

/* Profile information dialog — light white/sky-blue theme.
 * Visual-only overrides of runtime-injected #pie-styles. Scoped to this
 * dialog so other popups, certificate editors and buttons stay untouched. */
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"]{
  background:#f7faff!important;
  color:#263f60!important;
  border:1px solid #dce6f3!important;
  border-radius:16px!important;
  box-shadow:0 25px 70px rgba(19,53,91,.2),0 5px 20px rgba(19,53,91,.08)!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] > :first-child,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] > .space-y-4{
  color:#283f60!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] h1,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] h2,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] h3,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] [class*="font-semibold"]:not(.pie-template-state),
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] [class*="text-white"]:not(button):not(.pie-template-state){
  color:#223e62!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-section,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] [class*="bg-[#0D0F12]"]{
  background:#fff!important;
  color:#293f5d!important;
  border-color:#dfe9f5!important;
  box-shadow:0 2px 8px rgba(42,82,126,.035)!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-title{
  color:#667e9e!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-field label,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] [class*="text-[#5C6370]"],
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-company-caption,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-company-note,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-hint,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-status,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-template-status{
  color:#69809e!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-status.err,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-status.err{
  color:#bf4055!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-status.ok,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-status.ok{
  color:#198b62!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-input,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-top-input,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-field input,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-field select,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-field output,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-month input,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] input:not([type="checkbox"]):not([type="radio"]),
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] select{
  background:#f5f9ff!important;
  color:#2a4566!important;
  border:1px solid #d6e3f2!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] input::placeholder{
  color:#8ca2bb!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] input:focus,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] select:focus{
  outline:0!important;
  border-color:#2493ed!important;
  box-shadow:0 0 0 3px rgba(36,147,237,.12)!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-template-toggle{
  background:#f5f9ff!important;
  border-color:#dce7f4!important;
  color:#375373!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-template-toggle b{
  color:#2a4464!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-template-toggle small{
  color:#667f9d!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-template-toggle:has(input:checked){
  background:#e5f3ff!important;
  border-color:#68b5f4!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-template-state.on{
  background:#dbf5e8!important;
  color:#137e57!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-template-state.off{
  background:#e8eef6!important;
  color:#647990!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-company-reference,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-window{
  background:#f7faff!important;
  color:#2c486a!important;
  border-color:#dbe6f4!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-company-current,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-window h3,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-field,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-period-inline span,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-month{
  color:#365778!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-dock,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-actions{
  border-color:#dce7f4!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-template-btn,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-btn{
  background:#edf5ff!important;
  color:#315a87!important;
  border:1px solid #d3e2f4!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-template-btn:hover,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-btn:hover{
  background:#dceeff!important;
  border-color:#8bc2f4!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-template-btn[aria-pressed="true"],
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-template-btn.is-selected{
  color:#fff!important;
  background:#1688ed!important;
  border-color:#1688ed!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-save,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-salary-btn.pie-primary{
  background:#178eee!important;
  color:#fff!important;
  border-color:#178eee!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] input[type="checkbox"]{
  accent-color:#2493ed!important;
}

/* Profile dialog secondary actions and backdrop. Keep primary actions blue. */
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] [data-pie-download-selected],
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .csp-btn:not(.primary){
  background:#eef5ff!important;
  border:1px solid #d3e1f2!important;
  color:#315575!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] [data-pie-download-selected]:hover,
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .csp-btn:not(.primary):hover{
  background:#dfedfe!important;
  border-color:#9fc6ef!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] [data-pie-attach-selected],
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .csp-btn.primary{
  background:#198ff0!important;
  border:1px solid #198ff0!important;
  color:#fff!important;
}
body:has(.dolphin-sidebar) [data-testid="ozon-info-modal"] .pie-template-btn[aria-pressed="true"]{
  background:#e1f1ff!important;
  color:#1164ae!important;
  border-color:#54aaf2!important;
}
body:has(.dolphin-sidebar):has([data-testid="ozon-info-modal"]) > [data-state="open"][class*="bg-black/80"],
body:has(.dolphin-sidebar):has([data-testid="ozon-info-modal"]) [data-state="open"][class*="bg-black/80"]{
  background:rgba(34,54,83,.42)!important;
  backdrop-filter:blur(1.5px);
}

/* Profiles UI contrast refinement — 2026-10-23.
 * Only profile-table button checkboxes and existing toolbar actions.
 * Actual checkbox is a button.custom-checkbox; no global input overrides. */
body:has(.dolphin-sidebar) .profile-table button.custom-checkbox{
  appearance:none!important;
  -webkit-appearance:none!important;
  box-sizing:border-box!important;
  display:inline-grid!important;
  place-items:center!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  padding:0!important;
  border:2px solid #7694b8!important;
  border-radius:5px!important;
  background:#fff!important;
  color:#315e9c!important;
  box-shadow:0 1px 2px rgba(26,67,113,.09)!important;
  cursor:pointer!important;
  transition:background-color .12s,border-color .12s,box-shadow .12s!important;
}
body:has(.dolphin-sidebar) .profile-table button.custom-checkbox:not(.checked):hover{
  border-color:#197be1!important;
  background:#edf6ff!important;
  box-shadow:0 0 0 3px rgba(25,123,225,.11)!important;
}
body:has(.dolphin-sidebar) .profile-table button.custom-checkbox.checked{
  border-color:#116cc8!important;
  background:#1688e9!important;
  color:#fff!important;
  box-shadow:0 0 0 2px rgba(22,136,233,.2),0 1px 3px rgba(22,88,159,.15)!important;
}
body:has(.dolphin-sidebar) .profile-table button.custom-checkbox.checked svg{
  fill:#fff!important;
  color:#fff!important;
  display:block!important;
  width:14px!important;
  height:14px!important;
}
body:has(.dolphin-sidebar) .profile-table button.custom-checkbox:focus-visible{
  outline:2px solid #216bc7!important;
  outline-offset:3px!important;
}
body:has(.dolphin-sidebar) .profile-table tr.selected>td,
body:has(.dolphin-sidebar) .profile-table tr.selected:hover>td{
  background:#dcecff!important;
  border-bottom-color:#cfe2f8!important;
}
/* Make the action bar consistent, but preserve semantic command colours. */
body:has(.dolphin-sidebar) #root .top-bar button:not([id="mpr-open-btn"]):not([id="mpc-open-btn"]):not([data-testid="create-profile-btn"]):not([data-testid="mass-launch-btn"]):not([data-testid="mass-stop-btn"]):not([data-testid="mass-delete-btn"]):not([data-testid="mass-move-btn"]):not([data-testid="export-dolphin-btn"]){
  background:#f0f6ff!important;
  color:#325576!important;
  border:1px solid #cedeed!important;
  box-shadow:0 1px 2px rgba(41,81,123,.055)!important;
}
body:has(.dolphin-sidebar) #root .top-bar button:not([id="mpr-open-btn"]):not([id="mpc-open-btn"]):not([data-testid="create-profile-btn"]):not([data-testid="mass-launch-btn"]):not([data-testid="mass-stop-btn"]):not([data-testid="mass-delete-btn"]):not([data-testid="mass-move-btn"]):not([data-testid="export-dolphin-btn"]):not(:disabled):hover{
  background:#e1efff!important;
  border-color:#8ab8e8!important;
  color:#174c82!important;
}
body:has(.dolphin-sidebar) #root .top-bar button:disabled{
  opacity:.44!important;
  cursor:not-allowed!important;
}
/* Main action: blue with legible white text. */
body:has(.dolphin-sidebar) #root .top-bar button[data-testid="create-profile-btn"]{
  background:#1686e8!important;
  border-color:#1686e8!important;
  color:#fff!important;
}
body:has(.dolphin-sidebar) #root .top-bar button[data-testid="create-profile-btn"]:hover{
  background:#096fc8!important;
  border-color:#096fc8!important;
  color:#fff!important;
}
/* Selected-profile commands: clear distinction for start, stop, delete. */
body:has(.dolphin-sidebar) #root .top-bar button[data-testid="mass-launch-btn"]{
  background:#e4f6ed!important;
  color:#13734d!important;
  border-color:#9eddbd!important;
}
body:has(.dolphin-sidebar) #root .top-bar button[data-testid="mass-stop-btn"],
body:has(.dolphin-sidebar) #root .top-bar button[data-testid="mass-delete-btn"]{
  background:#fff0f2!important;
  color:#a82b46!important;
  border-color:#efb4c1!important;
}
body:has(.dolphin-sidebar) #root .top-bar button[data-testid="mass-move-btn"],
body:has(.dolphin-sidebar) #root .top-bar button[data-testid="export-dolphin-btn"]{
  background:#e8f3ff!important;
  color:#126cb5!important;
  border-color:#a6ceee!important;
}
/* Proxy controls were still painted in their old dark palette. */
body:has(.dolphin-sidebar) #root .top-bar button#mpr-open-btn{
  background:#fff0f2!important;
  color:#a32b45!important;
  border:1px solid #f0c6ce!important;
}
body:has(.dolphin-sidebar) #root .top-bar button#mpc-open-btn{
  background:#e6f7f1!important;
  color:#16664e!important;
  border:1px solid #addccb!important;
}
body:has(.dolphin-sidebar) #root .top-bar button#mpr-open-btn:hover{
  background:#ffe3e8!important;
}
body:has(.dolphin-sidebar) #root .top-bar button#mpc-open-btn:hover{
  background:#d4f1e4!important;
}
/* Improve table labels and action contrast without altering layout. */
body:has(.dolphin-sidebar) .profile-table thead th{
  color:#365272!important;
  border-bottom:1px solid #cddfed!important;
}
body:has(.dolphin-sidebar) .profile-table tbody td{
  border-bottom:1px solid #dfe9f4!important;
}

/* Ensure a selected profile is clearly distinguishable from striped rows. */
body:has(.dolphin-sidebar) #root .profile-table tbody tr.selected > td,
body:has(.dolphin-sidebar) #root .profile-table tbody tr.selected:hover > td{
  background:#dcecff!important;
  border-bottom-color:#c6dcf4!important;
}

/* ===============================================================
   Profile-file dialog: white / cool-gray / sky-blue only.
   CSS-only. Scoped to #profile-task-file-modal, no upload,
   selection, deletion, auto-send or comment logic modifications.
   =============================================================== */
body:has(.dolphin-sidebar) #profile-task-file-modal.ptf-backdrop{
  background:rgba(31,52,82,.43)!important;
  backdrop-filter:blur(3px)!important;
  -webkit-backdrop-filter:blur(3px)!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-modal{
  width:min(570px,calc(100vw - 32px))!important;
  max-height:calc(100vh - 36px)!important;
  background:#f8fbff!important;
  color:#233d5e!important;
  border:1px solid #d6e3f2!important;
  border-radius:16px!important;
  box-shadow:0 24px 70px rgba(22,51,93,.23),0 6px 22px rgba(36,73,121,.08)!important;
  /* Match the dialog scrollbar to the light theme, not the legacy dark one. */
  color-scheme:light!important;
  scrollbar-width:thin!important;
  scrollbar-color:#adc7e2 #f8fbff!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-modal::-webkit-scrollbar{
  width:7px;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-modal::-webkit-scrollbar-track{
  background:#f8fbff;
  border-radius:10px;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-modal::-webkit-scrollbar-thumb{
  background:#adc7e2;
  border-radius:10px;
  border:1px solid #f8fbff;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-head{
  background:#fff!important;
  border-bottom:1px solid #dce7f4!important;
  padding:18px 22px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-title{
  color:#1e395a!important;
  font-size:17px!important;
  letter-spacing:-.2px;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-sub{
  color:#7185a0!important;
  font-size:12px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-close{
  background:#eff5fd!important;
  color:#607b9b!important;
  border:1px solid #dce7f5!important;
  border-radius:9px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-close:hover{
  background:#e1eefc!important;
  color:#1e5d9f!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-body{
  background:#f8fbff!important;
  color:#294464!important;
  padding:18px 22px!important;
}
/* Highlight the selected / pinned file without a dark-purple panel. */
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-current{
  background:#f4f8ff!important;
  border:1px dashed #b6cce5!important;
  border-radius:11px!important;
  color:#294767!important;
  padding:13px 14px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-current.has-file{
  background:#e9f4ff!important;
  border:1px solid #91bee9!important;
  box-shadow:inset 3px 0 0 #248fe8!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-file-icon{
  color:#2679c7!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-file-link,
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-name{
  color:#1467af!important;
  text-decoration-color:#7cb8e9!important;
  font-weight:600!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-file-link:hover,
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-name:hover{
  color:#0b4d91!important;
  text-decoration-color:#0b4d91!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-file-meta,
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-meta,
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-caption,
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-muted,
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-notice,
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-note,
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-empty{
  color:#657c99!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-file-ok{
  display:inline-flex!important;
  align-items:center!important;
  padding:4px 8px!important;
  background:#e0f5ed!important;
  color:#16764f!important;
  border:1px solid #bae9d7!important;
  border-radius:999px!important;
  font-weight:700!important;
}
/* Document listing and action buttons */
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-six-docs{
  background:#fff!important;
  border:1px solid #dce7f4!important;
  border-radius:12px!important;
  padding:13px 15px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-heading{
  color:#253e5e!important;
  font-size:13px!important;
  margin-bottom:10px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-caption{
  padding:4px 8px!important;
  background:#eff5fe!important;
  border-radius:999px!important;
  color:#537396!important;
  font-size:11px!important;
  font-weight:600!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-row{
  border-top:1px solid #e5edf7!important;
  padding:10px 2px!important;
  transition:background-color .13s!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-row:hover{
  background:#f5f9ff!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-info{
  min-width:0!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-btn{
  background:#edf5ff!important;
  border:1px solid #c8dcf2!important;
  color:#285d95!important;
  font-weight:650!important;
  border-radius:8px!important;
  min-height:33px!important;
  padding:7px 10px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-btn:not(:disabled):hover{
  background:#dceeff!important;
  border-color:#87b6e8!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-btn.delete{
  background:#fff1f3!important;
  border-color:#f1c6cf!important;
  color:#ac3c52!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-btn.delete:not(:disabled):hover{
  background:#ffe3e9!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-btn:disabled,
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-action:disabled,
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-auto-save:disabled{
  opacity:.50!important;
  cursor:not-allowed!important;
}
/* Auto-send permission and comment, preserving the unsaved state. */
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-body > div:has(> label > #ptf-auto){
  background:#fff!important;
  color:#2b4769!important;
  border:1px solid #dce8f5!important;
  border-radius:12px!important;
  padding:15px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-body > div:has(> label > #ptf-auto):has(#ptf-auto:checked){
  background:#eff8ff!important;
  border-color:#99c8ee!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-auto{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  box-sizing:border-box!important;
  margin-top:2px!important;
  display:inline-grid!important;
  place-items:center!important;
  background:#fff!important;
  border:2px solid #7593b4!important;
  border-radius:5px!important;
  cursor:pointer!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-auto:checked{
  background:#1688e9!important;
  border-color:#1688e9!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-auto:checked::after{
  content:""!important;
  display:block!important;
  width:9px!important;
  height:5px!important;
  margin-top:-2px!important;
  border-bottom:2px solid #fff!important;
  border-left:2px solid #fff!important;
  transform:rotate(-45deg)!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-auto:focus-visible{
  outline:2px solid #167ee5!important;
  outline-offset:3px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal label[for="ptf-auto-comment"]{
  color:#294667!important;
  font-weight:650!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-auto-comment{
  background:#f7faff!important;
  color:#28425f!important;
  border:1px solid #cbdced!important;
  border-radius:9px!important;
  font-size:13px!important;
  line-height:1.55!important;
  box-shadow:none!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-auto-comment:focus{
  outline:0!important;
  background:#fff!important;
  border-color:#248de9!important;
  box-shadow:0 0 0 3px rgba(36,141,233,.12)!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-auto-comment::placeholder{
  color:#8ca1b8!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-suggestion-note,
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-use-suggestion{
  color:#286ba8!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-auto-save{
  background:#e8f3ff!important;
  color:#1c659e!important;
  border:1px solid #b1d3f0!important;
  border-radius:8px!important;
  font-weight:700!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-auto-save:not(:disabled):hover{
  background:#d7eaff!important;
}
/* Document upload and footer */
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-foot{
  background:#fff!important;
  border-top:1px solid #e0eaf5!important;
  padding:16px 22px 20px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-upload,
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-action.primary{
  background:#1688e9!important;
  color:#fff!important;
  border:1px solid #1688e9!important;
  border-radius:9px!important;
  box-shadow:0 3px 9px rgba(22,136,233,.14)!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-upload:not(:disabled):hover,
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-action.primary:not(:disabled):hover{
  background:#0878d5!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-action.preview{
  background:#e6f2ff!important;
  color:#216498!important;
  border:1px solid #bad7f0!important;
  border-radius:9px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-action.danger{
  background:#fff0f3!important;
  color:#a4344b!important;
  border:1px solid #e8b8c5!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-status.ok{
  background:#e4f7ed!important;
  color:#1c7650!important;
  border-color:#b9e7ca!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-status.err{
  background:#fff0f3!important;
  color:#a92e48!important;
  border-color:#eebac8!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-status.busy{
  background:#eaf4ff!important;
  color:#286ca7!important;
  border-color:#b6d7f4!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-second-status.pending{color:#a36a14!important}
body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-second-status.attached{color:#147d5b!important}
@media(max-width:640px){
 body:has(.dolphin-sidebar) #profile-task-file-modal.ptf-backdrop{padding:12px!important}
 body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-head{padding:14px 16px!important}
 body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-body{padding:13px 14px!important}
 body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-foot{padding:12px 14px 16px!important}
 body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-row{gap:5px!important}
 body:has(.dolphin-sidebar) #profile-task-file-modal .ptf-six-btn{padding:6px 8px!important}
}

/* Profiles — "Вид справки" between Name and Balance. Presentation only. */
body:has(.dolphin-sidebar) .profile-table th.cf-doc-kind-header{
  color:#365372!important;
  text-align:left!important;
  white-space:nowrap!important;
  font-weight:700!important;
}
body:has(.dolphin-sidebar) .profile-table td.cf-doc-kind{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  padding-left:10px!important;
  padding-right:8px!important;
}
body:has(.dolphin-sidebar) .profile-table .cf-doc-kind-badge{
  display:inline-block;
  max-width:100%;
  padding:4px 8px;
  border-radius:6px;
  border:1px solid #dfe8f3;
  background:#f3f7fc;
  color:#71849b;
  font-size:11px;
  font-weight:650;
  line-height:1.3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  vertical-align:middle;
}
body:has(.dolphin-sidebar) .profile-table .cf-doc-kind-badge.cf-doc-kind-internal{
  background:#e7f2ff;
  color:#1c649f;
  border-color:#bcdcf6;
}
body:has(.dolphin-sidebar) .profile-table .cf-doc-kind-badge.cf-doc-kind-payments{
  background:#eaf8f1;
  color:#227653;
  border-color:#b8e5d1;
}
body:has(.dolphin-sidebar) .profile-table .cf-doc-kind-badge.cf-doc-kind-none{
  background:transparent;
  color:#93a3b5;
  border-color:transparent;
}
@media(min-width:1200px){
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) th:nth-child(1),
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) td:nth-child(1){width:44px!important;max-width:44px!important}
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) th:nth-child(2),
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) td:nth-child(2){width:192px!important;min-width:192px!important;max-width:192px!important}
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) th:nth-child(3),
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) td:nth-child(3){width:285px!important;max-width:285px!important}
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) th:nth-child(4),
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) td:nth-child(4){width:150px!important;max-width:150px!important}
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) th:nth-child(5),
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) td:nth-child(5){width:115px!important;max-width:115px!important}
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) th:nth-child(6),
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) td:nth-child(6){width:155px!important;max-width:155px!important}
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) th:nth-child(7),
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) td:nth-child(7){width:130px!important;max-width:130px!important}
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) th:nth-child(8),
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) td:nth-child(8){width:auto!important;max-width:none!important;min-width:260px!important}
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) th:nth-child(9),
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) td:nth-child(9){width:52px!important;max-width:52px!important}
}
@media(max-width:1199px){
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header){min-width:1230px!important}
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) th:nth-child(4),
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) td:nth-child(4){min-width:125px!important;width:125px!important}
  body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) td:nth-child(8){min-width:215px!important}
}

/* Stable column geometry: do not compress profile action buttons.
 * On smaller screens the table scrolls horizontally within .content-area. */
body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header){min-width:1450px!important}
body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) col:nth-child(1){width:48px!important}
body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) col:nth-child(2){width:192px!important}
body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) col:nth-child(3){width:300px!important}
body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) col:nth-child(4){width:150px!important}
body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) col:nth-child(5){width:115px!important}
body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) col:nth-child(6){width:155px!important}
body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) col:nth-child(7){width:130px!important}
body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) col:nth-child(8){width:auto!important}
body:has(.dolphin-sidebar) .profile-table:has(th.cf-doc-kind-header) col:nth-child(9){width:52px!important}

/* Profile file library: collapsed by default, tap summary to expand.
 * Native <details>/<summary> keeps button behavior and repaint data intact. */
body:has(.dolphin-sidebar) #profile-task-file-modal details#ptf-six-docs{
  padding:0!important;
  overflow:visible!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal details#ptf-six-docs > summary.ptf-six-heading{
  list-style:none!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:14px 15px!important;
  min-height:48px!important;
  margin:0!important;
  color:#253e5e!important;
  cursor:pointer!important;
  user-select:none;
  border-radius:11px!important;
  outline-offset:-3px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal details#ptf-six-docs > summary.ptf-six-heading::-webkit-details-marker{
  display:none!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal details#ptf-six-docs > summary.ptf-six-heading::marker{
  content:"";
}
body:has(.dolphin-sidebar) #profile-task-file-modal details#ptf-six-docs > summary.ptf-six-heading:hover{
  background:#edf6ff!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal details#ptf-six-docs > summary.ptf-six-heading:focus-visible{
  outline:2px solid #258fe8!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal details#ptf-six-docs > summary.ptf-six-heading .ptf-six-caption{
  margin-left:auto!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal details#ptf-six-docs > summary.ptf-six-heading::after{
  content:"⌄"!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:22px!important;
  line-height:1!important;
  height:23px!important;
  width:23px!important;
  color:#3977ad!important;
  transition:transform .16s ease!important;
  transform:rotate(-90deg);
  flex:0 0 23px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal details#ptf-six-docs[open] > summary.ptf-six-heading::after{
  transform:rotate(0deg);
}
body:has(.dolphin-sidebar) #profile-task-file-modal details#ptf-six-docs[open] > summary.ptf-six-heading{
  border-bottom:1px solid #e5edf7!important;
  border-radius:11px 11px 0 0!important;
  margin-bottom:1px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal details#ptf-six-docs > .ptf-six-row{
  margin-left:15px!important;
  margin-right:15px!important;
}
body:has(.dolphin-sidebar) #profile-task-file-modal details#ptf-six-docs > .ptf-six-muted{
  margin:0 15px 8px!important;
}

/* Row auto-launch: harmonize dark green badge with the pale interface. */
body:has(.dolphin-sidebar) .profile-table .slp-zone .apl-auto-btn{
  color:#24765e!important;
  background:#e6f7f0!important;
  border:1px solid #afdacb!important;
  border-radius:7px!important;
  box-shadow:none!important;
  font-weight:700!important;
}
body:has(.dolphin-sidebar) .profile-table .slp-zone .apl-auto-btn:not(:disabled):hover{
  color:#155b46!important;
  background:#d4efe5!important;
  border-color:#7ac0a8!important;
}
body:has(.dolphin-sidebar) .profile-table .slp-zone .apl-auto-btn:focus-visible{
  outline:2px solid #268e72!important;
  outline-offset:2px!important;
}

/* Profile file modal: the pinned/primary attachment is already listed under
   «Документы». Hide only its duplicate preview banner, never its data. */
body:has(.dolphin-sidebar) #profile-task-file-modal #ptf-current{
  display:none!important;
}

/* History controls visual unification — 2026-10-23.
   Scoped ONLY to the Schedule page. No scripts, state or action changes. */

/* White selection boxes for the operator; high-contrast blue when selected. */
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-info-stable > button.shm-check{
  box-sizing:border-box!important;display:inline-flex!important;
  width:20px!important;height:20px!important;min-width:20px!important;
  flex:0 0 20px!important;padding:0!important;
  justify-content:center!important;align-items:center!important;
  background:#fff!important;border:2px solid #7b99bb!important;
  border-radius:6px!important;color:#fff!important;
  box-shadow:0 1px 2px rgba(35,78,125,.09)!important;
  opacity:1!important;cursor:pointer!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-info-stable > button.shm-check:not(.on):hover{
  background:#ebf5ff!important;border-color:#2789e2!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-info-stable > button.shm-check.on{
  background:#1888ea!important;color:#fff!important;
  border-color:#1678d2!important;
  box-shadow:0 0 0 2px rgba(24,136,234,.17)!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-info-stable > button.shm-check.on svg{
  color:#fff!important;stroke:#fff!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-info-stable > button.shm-check:focus-visible{
  outline:2px solid #1f80df!important;outline-offset:3px!important;
}

/* All schedule history action buttons have the same geometry and palette. */
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable button:not(.schedule-native-delete){
  box-sizing:border-box!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;gap:6px!important;
  height:32px!important;min-height:32px!important;
  border:1px solid #bcd7f0!important;
  border-radius:8px!important;background:#eaf4ff!important;
  color:#235f99!important;
  font:700 11px/1.2 Inter,system-ui,sans-serif!important;
  padding:0 11px!important;
  opacity:1!important;box-shadow:none!important;white-space:nowrap!important;
  text-shadow:none!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable button:not(.schedule-native-delete):not(:disabled):hover{
  border-color:#87b8e4!important;
  background:#d8ebff!important;color:#14568c!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable button:not(.schedule-native-delete):focus-visible{
  outline:2px solid #2087e2!important;outline-offset:2px!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable button:not(.schedule-native-delete):disabled{
  opacity:.55!important;cursor:not-allowed!important;
}

/* Tiny icon-only actions keep the same height and a compact square footprint. */
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable .sretry-btn,
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable .spause-btn{
  width:32px!important;min-width:32px!important;padding:0!important;
  color:#87602c!important;background:#fff4e6!important;
  border-color:#ecd8bd!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable .sretry-btn:not(:disabled):hover,
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable .spause-btn:not(:disabled):hover{
  color:#754612!important;background:#ffebd0!important;
  border-color:#e7c998!important;
}

/* Delete is visually consistent but distinguishable as a destructive action. */
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable button.schedule-native-delete{
  box-sizing:border-box!important;display:inline-flex!important;
  width:32px!important;min-width:32px!important;height:32px!important;
  min-height:32px!important;padding:0!important;
  align-items:center!important;justify-content:center!important;
  border:1px solid #f0ced5!important;border-radius:8px!important;
  color:#a85b6d!important;background:#fff4f6!important;
  opacity:1!important;box-shadow:none!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable button.schedule-native-delete:hover{
  background:#ffe7eb!important;color:#a1324b!important;
  border-color:#ecb4c0!important;
}

/* Consistent pill sizes and clear status colors, without altering actual status. */
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable .shb-status{
  box-sizing:border-box!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;
  height:32px!important;min-height:32px!important;min-width:94px!important;
  border-radius:8px!important;
  font:700 11px/1.2 Inter,system-ui,sans-serif!important;
  padding:0 9px!important;white-space:nowrap!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable .shb-status[data-status="blocked"]{
  background:#fff0f3!important;color:#a92d49!important;border-color:#edbac6!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable .shb-status[data-status="active"]{
  background:#e5f6ee!important;color:#18724e!important;border-color:#b4dfc8!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable .shb-status[data-status="unknown"]{
  background:#f2f0f9!important;color:#685d82!important;border-color:#d9d0eb!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable .shb-status[data-status="new"]{
  background:#edf3fa!important;color:#577594!important;border-color:#d1e0f0!important;
}

/* Keep all controls on one baseline and give the two sides readable spacing. */
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-history-row-stable{
  align-items:center!important;gap:16px!important;min-height:36px!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable{
  align-items:center!important;gap:7px!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable .shb-check-wrap,
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"]
.schedule-layout-history .schedule-actions-stable .slp-zone{
  display:inline-flex!important;align-items:center!important;gap:7px!important;
}

/* A selectable history toolbar: no faded dark-gray controls. */
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar button{
  min-height:34px!important;border-radius:8px!important;
  font:700 11px Inter,system-ui,sans-serif!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar .shm-select-all{
  color:#295d90!important;background:#edf5ff!important;
  border:1px solid #d0e1f2!important;padding:0 11px!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar .shm-select-all:hover{
  background:#dceeff!important;border-color:#9ec7eb!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar .shm-count{
  color:#2f5378!important;background:#f0f5fb!important;
  border:1px solid #d5e2f0!important;border-radius:7px!important;
}

/* Schedule history bulk selection toolbar: single baseline and uniform sizing.
   CSS-only override — does not affect handlers, choices or saved data. */
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  align-content:center!important;
  justify-content:flex-start!important;
  column-gap:10px!important;
  row-gap:8px!important;
  min-height:60px!important;
  padding:10px 12px!important;
  margin-bottom:10px!important;
  border:1px solid #dce6f3!important;
  border-radius:11px!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-select-all,
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-count,
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-folder,
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-move,
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-dolphin-wrap,
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar .shm-dolphin{
  box-sizing:border-box!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  margin-top:0!important;
  margin-bottom:0!important;
  vertical-align:middle!important;
  border-radius:9px!important;
  font:700 12px/1.25 Inter,system-ui,sans-serif!important;
  white-space:nowrap!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-select-all,
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-count,
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-move,
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar .shm-dolphin{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-select-all{
  padding:0 13px!important;
  background:#eaf4ff!important;
  border:1px solid #c6def5!important;
  color:#1d629c!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-count{
  padding:0 14px!important;
  min-width:116px!important;
  background:#f3f8fe!important;
  border:1px solid #d3e2f1!important;
  color:#315779!important;
  font-variant-numeric:tabular-nums!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-folder{
  flex:0 1 300px!important;
  width:300px!important;
  min-width:205px!important;
  max-width:300px!important;
  padding:0 32px 0 13px!important;
  color:#2b5379!important;
  background:#f1f7ff!important;
  border:1px solid #cbdfef!important;
  color-scheme:light!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-move{
  padding:0 15px!important;
  background:#e6f5ed!important;
  border:1px solid #b8dfcc!important;
  color:#1c7554!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-dolphin-wrap{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar .shm-dolphin{
  padding:0 15px!important;
  background:#eaf4ff!important;
  border:1px solid #c5def3!important;
  color:#216194!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar :is(button,select):not(:disabled):focus-visible{
  outline:2px solid #258ce8!important;
  outline-offset:2px!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar :is(button,select):disabled{
  opacity:.56!important;
  cursor:not-allowed!important;
}
body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-status{
  align-self:center!important;
  margin-top:0!important;
  margin-bottom:0!important;
  line-height:1.4!important;
}
@media(max-width:850px){
  body:has(.dolphin-sidebar) #root [data-testid="schedule-page"] .shm-toolbar > .shm-folder{
    flex:1 1 205px!important;
    width:auto!important;
  }
}

/* Profile folders: show profile count only in the left sidebar.
   Hide the duplicate count badge beside the top folder title. */
body:has(.dolphin-sidebar) .top-bar .folder-title > span.text-sm.ml-2{
  display:none!important;
}

/* Profile table: light paperclip when no document is attached.
   Only the previously dark default state. Keep blue/green/pending states. */
body:has(.dolphin-sidebar) #root .profile-table button.ptf-btn:not(.ptf-attached):not(.ptf-pending){
  background:#e9f3ff!important;
  color:#356a9f!important;
  border:1px solid #bdd6ed!important;
  box-shadow:0 1px 2px rgba(39,91,141,.07)!important;
}
body:has(.dolphin-sidebar) #root .profile-table button.ptf-btn:not(.ptf-attached):not(.ptf-pending):not(:disabled):hover{
  background:#d9ebff!important;
  color:#155b9d!important;
  border-color:#8cbbe7!important;
}
body:has(.dolphin-sidebar) #root .profile-table button.ptf-btn:focus-visible{
  outline:2px solid #318fe6!important;
  outline-offset:2px!important;
}

/* Sidebar: replace legacy dark scrollbars; prevent stray horizontal scrollbar.
   Visual-only; keep vertical menu scrolling fully functional. */
body:has(.dolphin-sidebar) #root .dolphin-sidebar .sidebar-nav{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-width:thin!important;
  scrollbar-color:#bbcee4 transparent!important;
}
body:has(.dolphin-sidebar) #root .dolphin-sidebar .sidebar-nav::-webkit-scrollbar{
  width:6px!important;
  height:0!important;
  background:transparent!important;
}
body:has(.dolphin-sidebar) #root .dolphin-sidebar .sidebar-nav::-webkit-scrollbar-track{
  background:transparent!important;
}
body:has(.dolphin-sidebar) #root .dolphin-sidebar .sidebar-nav::-webkit-scrollbar-thumb{
  background:#bbcee4!important;
  border-radius:8px!important;
}
body:has(.dolphin-sidebar) #root .dolphin-sidebar .sidebar-nav::-webkit-scrollbar-thumb:hover{
  background:#91b2d5!important;
}

/* Remote visual profile viewer — compact default viewing area.
 * Presentation only. noVNC continues its native resize=scale mode, so
 * pointer coordinates remain mapped by noVNC itself. No remote resolution,
 * proxy, cookies, browser process, key routing or session changes. */
body:has(.dolphin-sidebar) [data-vnc-pid] [data-vnc-window] iframe[data-testid^="vnc-frame-"]{
  flex:0 0 84%!important;
  align-self:center!important;
  display:block!important;
  width:86%!important;
  max-width:1350px!important;
  height:84%!important;
  min-height:0!important;
  margin:auto!important;
  box-sizing:border-box!important;
  border:0!important;
  background:#000!important;
}
@media(max-width:760px){
  body:has(.dolphin-sidebar) [data-vnc-pid] [data-vnc-window] iframe[data-testid^="vnc-frame-"]{
    flex-basis:91%!important;
    width:94%!important;
    height:91%!important;
  }
}
