/* Cromo - transparent layout */
html,body,body.frappe-app,
.page-container,.main-section,
.layout-main,.layout-side-section,
.page-wrapper,.page-content,
.container.page-body,
.desk-sidebar-section,
.layout-main-section-wrapper,
.layout-main-section,
.page-head,.page-header-actions,
.frappe-list,.list-count-sort,
.page-form.row,
.workspace-container,.workspace-section,
.widget-area,.widget-group,
.widget-group-head,.widget-group-body,
.desk-page,.desk-page .page-head,
.widget.dashboard-widget-box,
.widget.shortcut-widget-box,
.widget.spacer,
.widget.links-widget-box,
.widget.custom-block-widget-box,
.widget.custom-block-widget-box .widget-head,
.widget.custom-block-widget-box .widget-footer,
.widget.custom-block-widget-box .widget-body,
.list-sidebar,.overlay-sidebar,
.modules-section .widget,
.module-link-box,.modules-section,
.form-column,.section-body,
.form-section,.form-layout,
.form-page,.page-content.page-form,
.form-tabs-list,.form-tab,.tab-content,
.frappe-card,.comment-box,
.timeline-content,.activity-content,
.desk-sidebar,.standard-sidebar,
.sidebar-section,
.timeline-wrapper,.timeline-item,
.activity-wrapper,.new-timeline,
.timeline-head,.comment-input-wrapper,
.activity-title,.form-footer,
.after-save,.scroll-to-top,
.timeline-items,.timeline-dot {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Custom block wrapper - kill everything */
.widget.custom-block-widget-box {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}
.widget.custom-block-widget-box > .widget-head {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.widget.custom-block-widget-box > .widget-footer {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.widget.custom-block-widget-box > .widget-body {
    padding: 0 !important;
}

/* Dropdowns stay visible */
.dropdown-menu {
    background: #ffffff !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
}

/* Mobile sidebar - light theme only.
   This used to be an unguarded white background, which made the sidebar
   unreadable in dark mode: Frappe keeps its light dark-theme text colour and
   it landed on white. Scoped to light, with a matching dark value. */
@media (max-width: 991px) {
    :root:not([data-theme="dark"]) body:not(.cromo-has-bg) .desk-sidebar,
    :root:not([data-theme="dark"]) body:not(.cromo-has-bg) .standard-sidebar,
    :root:not([data-theme="dark"]) body:not(.cromo-has-bg) .list-sidebar,
    :root:not([data-theme="dark"]) body:not(.cromo-has-bg) .overlay-sidebar {
        background: rgba(255,255,255,0.96) !important;
    }
    [data-theme="dark"] body:not(.cromo-has-bg) .desk-sidebar,
    [data-theme="dark"] body:not(.cromo-has-bg) .standard-sidebar,
    [data-theme="dark"] body:not(.cromo-has-bg) .list-sidebar,
    [data-theme="dark"] body:not(.cromo-has-bg) .overlay-sidebar {
        background: var(--fg-color, #1c2126) !important;
    }
}

/* Sticky header on mobile */
@media (max-width: 991px) {
    .page-head, .page-header, header.navbar, .navbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
}

/* Form tabs - remove background */
.form-tabs-list,
.form-tabs-list .nav-tabs,
.form-tabs-list .nav-item,
.form-tabs-list .nav-link,
.nav-tabs, .nav-tabs .nav-item,
.nav-tabs .nav-link,
.tab-header, .form-tab-header {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

/* Fix dropdown text visibility */
.dropdown-menu,
.dropdown-menu .dropdown-item,
.dropdown-menu li,
.dropdown-menu a,
.dropdown-menu span,
.select-like .like-disabled-select,
.filter-selector,
.sort-selector {
    color: #333333 !important;
}

.dropdown-menu .dropdown-item:hover {
    background: #f5f5f5 !important;
    color: #000000 !important;
}

/* Design Settings > Page Title > "Hide the title bar on dashboard pages" (computer screens only).
   List / form pages keep the bar; System Managers get a thin strip that opens it on hover (Edit). */
@media (min-width: 992px) {
	body.cromo-ws-nohead[data-route^="Workspaces"] .page-head { display: none; }
	/* "Hidden" = hidden for everyone, admins too (user 2026-10-03). Use "Show on mouse-over" to reach Edit. */
	/* Design Settings > Page Title > "Show on mouse-over": bar slides down after a wait, stays a moment after the mouse leaves */
	body.cromo-ws-hoverhead[data-route^="Workspaces"] .page-head {
		display: block; max-height: 14px; opacity: 0; overflow: hidden;
		transition: max-height .25s ease var(--cromo-tb-out, 600ms), opacity .25s ease var(--cromo-tb-out, 600ms);
	}
	body.cromo-ws-hoverhead[data-route^="Workspaces"] .page-head:hover,
	body.cromo-ws-hoverhead[data-route^="Workspaces"] .page-head:focus-within {
		max-height: 140px; opacity: 1;
		transition: max-height .25s ease var(--cromo-tb-in, 400ms), opacity .25s ease var(--cromo-tb-in, 400ms);
	}
}

/* lets the dip in the phone app bar animate (Aska drop) */
@property --mab-dip { syntax: "<length>"; inherits: false; initial-value: 0px; }

/* Design Settings > Top Bar Menu (cromo.js applyTopNav) */
.navbar .container { position: relative; }
#cromo-topnav { position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); z-index: 1031; }
@media (max-width: 767px) { #cromo-topnav, #cromo-topnav.cp, #cromo-topnav.cf { display: none !important; } }

/* style: Pills in the bar */
#cromo-topnav.cp { top: 50%; height: auto; transform: translate(-50%, -50%); display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.10); }
#cromo-topnav.cp a { display: inline-flex; align-items: center; height: 30px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
	color: rgba(255, 255, 255, 0.78); text-decoration: none; white-space: nowrap; transition: background-color .15s ease, color .15s ease, transform .1s ease-out; }
#cromo-topnav.cp a:hover { color: #fff; background: rgba(255, 255, 255, 0.10); }
#cromo-topnav.cp a:active { transform: scale(0.97); }
#cromo-topnav.cp a.active { background: #fff; color: #111; }
#cromo-topnav.cp a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* style: Floating button - + button, items spread out below it like liquid (gooey SVG filter on the blob layer only) */
.cf { width: 36px; --cf-step: 48px; --cf-size: 34px; --cf-spring: cubic-bezier(.34, 1.45, .64, 1); }
#cromo-userfab { position: relative; height: 48px; margin: -8px 0; z-index: 1031; }
body.cromo-userfab-on .navbar .dropdown-navbar-user > .nav-link, body.cromo-userfab-on .navbar #toolbar-user { display: none !important; }
.cf .cf-goo { position: absolute; left: 0; top: 0; width: 36px; overflow: visible; height: calc(48px + var(--cf-n) * var(--cf-step)); filter: url(#cromo-goo); pointer-events: none; }
.cf .cf-core, .cf .cf-blob { position: absolute; left: 50%; top: 24px; border-radius: 50%; background: var(--cf-color); }
.cf .cf-core { width: var(--cf-size); height: var(--cf-size); margin: calc(var(--cf-size) / -2) 0 0 calc(var(--cf-size) / -2); }
.cf .cf-blob { width: 30px; height: 30px; margin: -15px 0 0 -15px; opacity: 1;
	transition: transform .3s cubic-bezier(.55, 0, .75, .2) calc(.12s + (var(--cf-n) - var(--i)) * .03s), opacity 0s linear .12s; }
.cf.open .cf-blob { transform: translate(var(--cf-shift, 0px), calc((var(--i) + 1) * var(--cf-step))); opacity: 0;
	transition: transform .46s var(--cf-spring) calc(var(--i) * .05s), opacity 0s linear calc(.42s + var(--i) * .05s); }
.cf .cf-btn { position: absolute; left: 50%; top: 24px; width: var(--cf-size); height: var(--cf-size); margin: calc(var(--cf-size) / -2) 0 0 calc(var(--cf-size) / -2);
	border: 0; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; }
.cf .cf-btn svg { width: 18px; height: 18px; transition: transform .35s var(--cf-spring); }
.cf.open .cf-btn svg { transform: rotate(135deg); }
.cf .cf-btn:active { transform: scale(.94); }
.cf .cf-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cf .cf-list { position: absolute; left: calc(50% + var(--cf-shift, 0px)); top: 0; width: 0; pointer-events: none; transition: left .2s ease; }
.cf.open .cf-list { pointer-events: auto; }
.cf .cf-item { position: absolute; left: 0; width: max-content; top: calc(24px + (var(--i) + 1) * var(--cf-step) - 19px); transform: translateX(-50%);
	display: inline-flex; align-items: center; height: 38px; padding: 4px; border-radius: 999px; text-decoration: none; white-space: nowrap;
	background: transparent; box-shadow: none; transition: background-color .2s ease, box-shadow .2s ease; }
.cf .cf-ic { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--cf-color); color: #fff; display: grid; place-items: center;
	opacity: 0; transition: opacity 0s linear .12s; }
.cf .cf-ic svg { width: 16px; height: 16px; opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .15s ease; }
.cf .cf-lb { display: grid; grid-template-columns: 0fr; transition: grid-template-columns .22s ease; }
.cf .cf-lb > span { overflow: hidden; min-width: 0; padding: 0; color: #1d1d1f; font-size: 13.5px; font-weight: 500; opacity: 0; transition: opacity .12s ease, padding .22s ease; }
.cf.open .cf-ic { opacity: 1; transition: opacity 0s linear calc(.42s + var(--i) * .05s); }
.cf.open .cf-ic svg { opacity: 1; transform: none; transition: opacity .2s ease calc(.44s + var(--i) * .05s), transform .3s var(--cf-spring) calc(.44s + var(--i) * .05s); }
.cf.open .cf-item { background: #fff; box-shadow: 0 6px 20px rgba(20, 30, 90, .14), 0 1px 3px rgba(20, 30, 90, .1);
	transition: background-color .2s ease calc(.5s + var(--i) * .06s), box-shadow .2s ease calc(.5s + var(--i) * .06s); }
.cf.open .cf-lb { grid-template-columns: 1fr; transition: grid-template-columns .42s cubic-bezier(.2, .8, .2, 1) calc(.5s + var(--i) * .06s); }
.cf.open .cf-lb > span { opacity: 1; padding: 0 14px 0 10px; transition: opacity .25s ease calc(.6s + var(--i) * .06s), padding .42s cubic-bezier(.2, .8, .2, 1) calc(.5s + var(--i) * .06s); }
.cf .cf-item:hover .cf-lb > span { color: var(--cf-color); }
.cf .cf-item:active { transform: translateX(-50%) scale(.97); }
.cf.open .cf-item.active { background: var(--cf-color); }
.cf.open .cf-item.active .cf-lb > span { color: #fff; }
.cf.open .cf-item.active .cf-ic { background: #fff; color: var(--cf-color); }
.cf .cf-item:focus-visible { outline: 2px solid var(--cf-color); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.cf .cf-goo { filter: none; }
	.cf .cf-blob { display: none; }
	.cf .cf-btn svg, .cf .cf-ic, .cf .cf-ic svg, .cf .cf-item, .cf .cf-lb, .cf .cf-lb > span { transition: opacity .15s ease !important; transform: none !important; }
	.cf.open .cf-lb { grid-template-columns: 1fr; }
}

/* ===================== Modern layout (Design Settings > Top Bar > Modern layout) =====================
   From the user's reference (Dribbble 49006756): one plain screen - the top bar has no strip of its own, centred
   tabs in a white track, round bell / profile, no module sidebar, big rounded red-orange cards. body.cromo-shell only. */
body.cromo-shell {
	--sh-bg: #f6f0f0; --sh-ink: #0a0a0a; --sh-muted: #424242; --sh-soft: #f9f9f9; --sh-card: #ffffff;
	--sh-red: linear-gradient(180deg, #5a0302 0%, #8e0a02 18%, #c22a06 40%, #e2560f 62%, #e8955a 100%);
	--navbar-height: 88px;
	background: var(--sh-bg) !important;
}
body.cromo-shell .page-container, body.cromo-shell .layout-main, body.cromo-shell .page-body,
body.cromo-shell .main-section, body.cromo-shell #body { background: var(--sh-bg) !important; }
/* top bar: same colour as the page, no border, no shadow */
body.cromo-shell .navbar { height: 88px !important; background: var(--sh-bg) !important; border: 0 !important; box-shadow: none !important; }
body.cromo-shell .navbar .container { height: 88px; align-items: center; }
body.cromo-shell #navbar-breadcrumbs, body.cromo-shell .navbar .dropdown-help, body.cromo-shell .navbar .vertical-bar { display: none !important; }
body.cromo-shell .navbar .navbar-brand img.app-logo { filter: none; }
/* search: a round button; the bar opens on click (Ctrl+G still works) */
body.cromo-shell .navbar .search-bar { position: absolute; right: 120px; top: 76px; width: 420px; max-width: calc(100vw - 32px); display: none; z-index: 1040; }
body.cromo-shell.cromo-search-open .navbar .search-bar { display: block; }
body.cromo-shell .navbar .search-bar .form-control { height: 48px; border-radius: 999px !important; background: #fff !important; box-shadow: 0 12px 40px rgba(60, 20, 10, .14) !important; color: var(--sh-ink) !important; padding-left: 44px; }
body.cromo-shell .navbar .search-bar .search-icon { left: 16px !important; top: 14px !important; }
.sh-round { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--sh-ink); display: inline-grid; place-items: center; padding: 0; cursor: pointer; transition: transform .1s ease-out; }
.sh-round:active { transform: scale(.95); }
.sh-round svg { width: 20px; height: 20px; }
body.cromo-shell .navbar .dropdown-notifications .nav-link { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--sh-ink) !important; }
body.cromo-shell .navbar .dropdown-notifications .nav-link svg { stroke: var(--sh-ink) !important; }
body.cromo-shell .navbar .dropdown-navbar-user .avatar-medium { width: 48px; height: 48px; }
body.cromo-shell .navbar .nav-item { margin-left: 10px !important; }
body.cromo-shell #cromo-userfab { --cf-size: 48px; width: 48px; height: 88px; margin: -20px 0; }
body.cromo-shell #cromo-userfab .cf-core, body.cromo-shell #cromo-userfab .cf-btn { top: 44px; }
body.cromo-shell #cromo-userfab .cf-blob { top: 44px; }
body.cromo-shell #cromo-userfab .cf-item { top: calc(44px + (var(--i) + 1) * var(--cf-step) - 19px); }
/* centred tabs in a white track */
body.cromo-shell #cromo-topnav.cp { background: #fff; padding: 5px; gap: 2px; }
body.cromo-shell #cromo-topnav.cp a, body.cromo-shell #cromo-topnav.cp button {
	height: 44px; padding: 0 24px; font-size: 15px; font-weight: 500; color: var(--sh-ink); border: 0; background: transparent; border-radius: 999px;
	display: inline-flex; align-items: center; cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .1s ease-out;
}
body.cromo-shell #cromo-topnav.cp a:hover, body.cromo-shell #cromo-topnav.cp button:hover { background: #f3eded; color: var(--sh-ink); }
body.cromo-shell #cromo-topnav.cp a.active, body.cromo-shell #cromo-topnav.cp button.active { background: var(--sh-ink); color: #fff; }
body.cromo-shell #cromo-topnav.cp a:active, body.cromo-shell #cromo-topnav.cp button:active { transform: scale(.97); }
@media (max-width: 767px) { body.cromo-shell .navbar, body.cromo-shell .navbar .container { height: 64px !important; } body.cromo-shell { --navbar-height: 64px; } .sh-round, body.cromo-shell .navbar .dropdown-notifications .nav-link { width: 40px; height: 40px; } body.cromo-shell #cromo-userfab { --cf-size: 40px; width: 40px; height: 64px; margin: -12px 0; } body.cromo-shell #cromo-userfab .cf-core, body.cromo-shell #cromo-userfab .cf-btn, body.cromo-shell #cromo-userfab .cf-blob { top: 32px; } body.cromo-shell #cromo-userfab .cf-item { top: calc(32px + (var(--i) + 1) * var(--cf-step) - 19px); } body.cromo-shell .navbar .search-bar { top: 60px; right: 16px; } }
@media (max-width: 1199px) { body.cromo-shell #cromo-topnav.cp a, body.cromo-shell #cromo-topnav.cp button { padding: 0 14px; font-size: 14px; } }
/* no module sidebar (list filters and the form sidebar stay) */
body.cromo-shell .layout-side-section:has(.desk-sidebar) { display: none !important; }
body.cromo-shell .layout-side-section:has(.desk-sidebar) + .layout-main-section-wrapper { max-width: 100% !important; flex: 1 1 100% !important; }
body.cromo-shell[data-route^="Workspaces"] .page-head .sidebar-toggle-btn { display: none !important; }
body.cromo-shell .page-head { background: var(--sh-bg) !important; border: 0 !important; box-shadow: none !important; }
body.cromo-shell[data-route="business-home"] .page-head { display: none !important; }
/* surfaces + buttons in the reference style */
body.cromo-shell .frappe-card, body.cromo-shell .layout-main-section .frappe-list, body.cromo-shell .form-page .form-layout,
body.cromo-shell .report-wrapper, body.cromo-shell .widget:not(.spacer):not(.ce-paragraph):not(.cdx-block) { border: 0 !important; border-radius: 24px !important; background: var(--sh-card) !important; box-shadow: none !important; }
body.cromo-shell .btn-primary, body.cromo-shell .btn-primary.primary-action { background: var(--sh-ink) !important; border-color: var(--sh-ink) !important; color: #fff !important; border-radius: 999px !important; }
body.cromo-shell .btn-default, body.cromo-shell .btn-secondary { border-radius: 999px !important; }
/* More: every module as a tile */
#sh-more { position: fixed; top: 92px; left: 50%; transform: translate(-50%, -8px); width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow: auto;
	background: #fff; border-radius: 32px; box-shadow: 0 30px 80px rgba(60, 20, 10, .18); padding: 28px; z-index: 1035; opacity: 0; pointer-events: none;
	transition: opacity .18s ease, transform .25s cubic-bezier(.2, .8, .2, 1); }
#sh-more.open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#sh-more h4 { margin: 0 0 16px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--sh-ink, #0a0a0a); }
#sh-more .sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
#sh-more a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #f9f9f9; color: #0a0a0a; text-decoration: none; font-weight: 500; font-size: 14px; transition: background-color .15s ease, transform .1s ease-out; }
#sh-more a:hover { background: #f3eded; }
#sh-more a:active { transform: scale(.97); }
#sh-more a .sh-ic { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: 0 0 32px; }
#sh-more a .sh-ic svg { width: 16px; height: 16px; }
