/* EZ Запись cabinet: EZ Business platform style (2026-11-22). Loaded last on the cabinet page only. */
:root{--zp-bg:#f4f4f4 !important;--zp-surface:#fff !important;--zp-surface-2:#f9fafb !important;--zp-border:#e6e7eb !important;--zp-border-strong:#d1d5db !important;--zp-text:#111827 !important;--zp-soft:#6b7280 !important;--zp-faint:#9ca3af !important;--zp-accent:#0f766e !important;--zp-accent-strong:#115e59 !important;--zp-accent-soft:rgba(15,118,110,.10) !important;--zp-accent-line:#2dd4bf !important;--zp-graphite:#23262c !important;--zp-graphite-2:#2a2e35 !important;--zp-graphite-text:#c9ccd3 !important;--zp-graphite-muted:#8b909b !important;--zp-graphite-line:rgba(255,255,255,.08) !important}
:root body, :root body .panelShell, :root body .panelMain {background:var(--zp-bg) !important;color:var(--zp-text) !important}
:root body .panelTopBar {background:var(--zp-surface) !important;border-bottom:1px solid var(--zp-border) !important;box-shadow:none !important}

/* graphite menu */
:root body aside.sidebar {background:var(--zp-graphite) !important;color:var(--zp-graphite-text) !important;border-right:1px solid var(--zp-graphite-line) !important;box-shadow:none !important}
:root body aside.sidebar .sidebarBrandMark {color:#fff !important}
:root body aside.sidebar .ezWidgetsHead span, :root body aside.sidebar .ezWidgetsGear {color:var(--zp-graphite-muted) !important}
:root body aside.sidebar .ezWidgetsGear:hover {color:#fff !important;background:rgba(255,255,255,.06) !important}
:root body aside.sidebar .ezWidgets > :not(.ezWidgetsHead) {background:var(--zp-graphite-2) !important;border:1px solid var(--zp-graphite-line) !important;border-radius:3px !important;box-shadow:none !important;color:var(--zp-graphite-text) !important}
:root body aside.sidebar .ezWg * {color:var(--zp-graphite-text) !important}
:root body aside.sidebar .ezWgTitle, :root body aside.sidebar .ezWgMeta, :root body aside.sidebar .ezWgDayScale, :root body aside.sidebar .ezWgDayScale * {color:var(--zp-graphite-muted) !important}
:root body aside.sidebar .ezWgValue {color:#fff !important}
:root body aside.sidebar .ezWgNext b {color:var(--zp-accent-line) !important}
:root body aside.sidebar .ezWgIcon {background:rgba(45,212,191,.14) !important;color:var(--zp-accent-line) !important;border-radius:6px !important}
:root body aside.sidebar .ezWgIcon * {color:var(--zp-accent-line) !important}
:root body aside.sidebar .ezWgDayTrack {background:rgba(255,255,255,.10) !important}
:root body aside.sidebar .ezWgSeg {box-shadow:none !important}
:root body aside.sidebar .ezWgNow {background:#fff !important}
:root body aside.sidebar .sidebarGroup {border-radius:6px !important}
:root body aside.sidebar .sidebarGroupHead {color:var(--zp-graphite-text) !important;border-radius:6px !important;background:transparent !important}
:root body aside.sidebar .sidebarGroupHead:hover {background:rgba(255,255,255,.06) !important;color:#fff !important}
:root body aside.sidebar .sidebarGroup.active .sidebarGroupHead, :root body aside.sidebar .sidebarGroup.active .sidebarGroupTitle {color:#fff !important}
:root body aside.sidebar .sidebarGroupIcon, :root body aside.sidebar .sidebarGroupHead svg {color:var(--zp-graphite-text) !important}
:root body aside.sidebar .sidebarGroup.active .sidebarGroupIcon, :root body aside.sidebar .sidebarGroup.active .sidebarGroupHead svg {color:var(--zp-accent-line) !important}
:root body aside.sidebar .groupMeta, :root body aside.sidebar .groupMetaArrow {color:var(--zp-graphite-muted) !important}
:root body aside.sidebar .sidebarGroupBody a, :root body aside.sidebar .sidebarGroupBody button {color:var(--zp-graphite-text) !important;background:transparent !important;border:0 !important;border-radius:6px !important;box-shadow:none !important;transform:none !important;font-weight:500 !important}
:root body aside.sidebar .sidebarGroupBody a:hover, :root body aside.sidebar .sidebarGroupBody button:hover {background:rgba(255,255,255,.06) !important;color:#fff !important;transform:none !important}
:root body aside.sidebar .sidebarGroupBody .activeItem, :root body aside.sidebar .sidebarGroupBody .activeItem:hover {background:rgba(255,255,255,.09) !important;color:#fff !important;font-weight:600 !important;border:0 !important;box-shadow:inset 2px 0 0 var(--zp-accent-line) !important}
:root body aside.sidebar .inviteCard {background:rgba(255,255,255,.06) !important;border:1px solid rgba(255,255,255,.10) !important;border-radius:3px !important;box-shadow:none !important;color:var(--zp-graphite-text) !important}
:root body aside.sidebar .inviteCard * {color:var(--zp-graphite-text) !important}
:root body aside.sidebar .inviteCard strong {color:#fff !important}
:root body aside.sidebar .sidebarDrawerClose {background:transparent !important;border:1px solid rgba(255,255,255,.16) !important;color:#fff !important;border-radius:6px !important}

/* cards: white, thin border, no shadow, 3px */
:root body :is(.detailCard, .whTopCard, .whTableCard, .whStatCard, .ezPfCard, .ezPlCard, .cgWindow, .ezBaseTableWrap, .ezCalGridWrap, .ezSvTable, .ezWhStore, .ezPfTariff, .segmentRow, .adminModalCard) {border-radius:3px !important;box-shadow:none !important}
:root body :is(.detailCard, .whTopCard, .whTableCard, .whStatCard, .ezPfCard, .cgWindow) {border-color:var(--zp-border) !important}
:root body .ezPlCard--main {border-color:var(--zp-accent) !important}
:root body :is([class*="Card"]):not([class*="Avatar"]):not([class*="Mark"]):not([class*="Preview"]):not(button.inviteCard) {border-radius:3px !important}
/* windows */
:root body :is(.ezCalModal, .clientModal, .calendarModal, .bankModal, .finOpsModal, .clientBonusCommentModal, .adminModalCard) {border-radius:3px !important;box-shadow:0 12px 32px rgba(17,24,39,.18) !important}

/* buttons and fields: 6px; status badges and switches stay pills */
:root body :is(button, a.actionButton):not(.ezBkSwitch):not(.ezSvState):not(.userChip):not(.ezBaseTh):not(.ezCalLink):not(.ezCalStaffHead):not(.detailCard):not(.ezWhStore):not(.ezPfTariff):not([class*=Avatar]):not([class*=ezCalBlock]):not([class*=ezCalEvent]) {border-radius:6px !important}
:root body .actionButton.primary:not(:disabled) {background:var(--zp-accent) !important;border-color:var(--zp-accent) !important;color:#fff !important}
:root body .actionButton.primary:not(:disabled):hover {background:var(--zp-accent-strong) !important;border-color:var(--zp-accent-strong) !important}
:root body .panelShell .actionButton:not(.primary), :root body .actionButton:not(.primary) {background:var(--zp-surface) !important;border:1px solid var(--zp-border-strong) !important;color:var(--zp-text) !important}
:root body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]), select) {height:38px !important;min-height:38px !important;border-radius:6px !important;font-size:14px !important;box-sizing:border-box !important;box-shadow:none !important}
:root body textarea {border-radius:6px !important;font-size:14px !important}
:root body :is(.ezBaseSearch, .whSearch, .ezLySearch, .ezSalesSearch, .ezBkUrl) {border-radius:6px !important;min-height:38px !important}
:root body :is(.ezBaseSearch, .whSearch, .ezLySearch, .ezSalesSearch, .ezBkUrl) input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]) {height:36px !important;min-height:36px !important}

/* labels above fields: 13px, semibold, grey */
:root body :is(.ezCalField > span:first-child, .adminAccountField > span:first-child, .ezSalesField > label) {font-size:13px !important;font-weight:600 !important;color:var(--zp-soft) !important;letter-spacing:0 !important;text-transform:none !important}

/* titles: cards 18px, subsections 15px */
:root body .panelMain :is(h2, h3), :root body :is(.adminModalHeader h3, .ezCalModal h2) {font-size:18px !important;font-weight:700 !important;line-height:1.3 !important;letter-spacing:-.01em !important}
:root body .panelMain h4 {font-size:15px !important;font-weight:700 !important}

/* list heads like the Finances operations journal */
:root body :is(.ezSvHead, .whTableHead, .ezLyRowHead, .ezAnOpsHead, .ezBaseHeadRow) {background:var(--zp-surface) !important}
:root body :is(.ezSvHead, .whTableHead, .ezLyRowHead, .ezAnOpsHead, .ezBaseHeadRow) > *, :root body .ezBaseTh {font-size:11px !important;font-weight:700 !important;letter-spacing:.02em !important;text-transform:uppercase !important;color:var(--zp-soft) !important}

/* inner panels and list rows are cards too; switches and search boxes are controls */
:root body :is(.whGroupsSidebar, .clientAvatarCard, .ezAnOps, .ezAnOpsRow, .ezBaseRow, .ezCalMini, .ezCalPay, .ezCalSvc, .ezLoyStrip, .ezLyNone, .ezLyTable, .ezPlCurrent, .ezPfNav, .ezSvCats, .ezLyNote, .panelMain div.warn, .ezBkQr) {border-radius:3px !important;box-shadow:none !important}
:root body :is(.ezCalViews, .ezLySeg, .ezCalKind, .ezCalSvcSearch, .ezSvPhoto, .ezSvPhotoEmpty, .cgListItem) {border-radius:6px !important}

/* phone: everything tappable is at least 40px */
@media (max-width:640px){
:root body :is(.panelMain, aside.sidebar) button:not(.ezBaseTh):not(.ezCalLink):not(.ezSvState):not(.sidebarBrand):not([class*=ezCalBlock]):not([class*=ezCalEvent]):not(.detailCard) {min-height:40px !important}
:root body :is(.panelMain, aside.sidebar) button.ezWidgetsGear {min-width:40px !important}
}
