/* MoDo 1.21.364 — Footer compatto e tema chiaro sperimentale per utente */
.mg .mg-footer.mg-footer-themebar{position:relative;display:flex;justify-content:center;align-items:center;min-height:42px;gap:12px;margin-top:18px;padding:8px 100px 8px 12px;line-height:1.25;border-top:1px solid #35353b;max-width:100%;box-sizing:border-box}
.mg-footer-copy{text-align:center;overflow-wrap:anywhere}
.mg-theme-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #4a4650;border-radius:20px;background:#28272d;white-space:nowrap}
.mg .mg-theme-option{appearance:none;display:grid;place-items:center;width:29px;height:27px;padding:0;border:0;border-radius:15px;background:transparent;color:#bcb7c1;cursor:pointer;font-size:19px;line-height:1;transition:background .15s,color .15s}
.mg .mg-theme-option[aria-pressed="true"]{background:#8D3687;color:#fff}.mg .mg-theme-option:hover{color:#fff}.mg .mg-theme-option:focus-visible{outline:2px solid #cee002;outline-offset:2px}
@media(max-width:600px){.mg .mg-footer.mg-footer-themebar{padding:8px 8px 46px}.mg-theme-toggle{top:auto;bottom:5px;right:50%;transform:translateX(50%)}}
/* Light is scoped to body to preserve dark as the default and avoid style changes on login. */
body.modo-light{background:#edf0f4!important;color:#26303b!important}
body.modo-light .mg{color-scheme:light;--mg-general-background:#f4f6f9!important;--mg-general-panel:#ffffff!important;--mg-general-text:#29313c!important;--mg-general-title:#1f2832!important;--mg-general-list-background:#f5f6fa!important;--mg-general-table-header-background:#e9ebf1!important;--mg-general-footer-color:#66717d!important;background:#f4f6f9!important;color:#29313c!important}
body.modo-light .mg .mg-nav{background:#ffffff!important;border-color:#d8dce5!important;box-shadow:0 4px 20px #1a244012}
body.modo-light .mg .mg-nav>a{color:#566273!important}
body.modo-light .mg .mg-nav>a:hover{background:#f0e6f1!important;color:#70266a!important}
body.modo-light .mg .mg-nav>a[aria-current=page]{background:#f5e5f3!important;color:#772b72!important}
body.modo-light .mg .mg-nav>a.mg-sidebar-brand{color:#242630!important;border-color:#e1e4e9!important}
body.modo-light .mg .mg-panel,body.modo-light .mg .mg-project-overview,body.modo-light .mg .mg-grid-view tbody>tr,body.modo-light .mg .mg-card,body.modo-light .mg fieldset{background:#fff!important;color:#29313c!important;border-color:#d7dce5!important}
body.modo-light .mg h1,body.modo-light .mg h2,body.modo-light .mg h3,body.modo-light .mg legend{color:#202834!important}
body.modo-light .mg input,body.modo-light .mg select,body.modo-light .mg textarea{background:#fff!important;border-color:#cbd2dd!important;color:#26303b!important;color-scheme:light}
body.modo-light .mg input::placeholder,body.modo-light .mg textarea::placeholder{color:#808a99!important}
body.modo-light .mg table,body.modo-light .mg td{color:#303945!important;border-color:#dce1e9!important}
body.modo-light .mg th,body.modo-light .mg thead{background:#e9ecf2!important;color:#56606f!important;border-color:#dce1e9!important}
body.modo-light .mg tbody tr{background:#fff!important;color:#29313c!important}
body.modo-light .mg tbody tr:nth-child(even){background:#f7f8fb!important}
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr.mg-department-task>td{background:#f7f8fb!important;color:#29313c!important}
body.modo-light .mg .mg-grid-view tbody>tr{background:#fff!important;color:#26303b!important}
body.modo-light .mg .mg-stat,body.modo-light .mg [aria-label=Riepilogo]>.mg-stat{background:#fff!important;color:#29313c!important;border-color:#d9deea!important}
body.modo-light .mg .mg-footer{border-color:#d6dce4!important;color:#66717d!important}
body.modo-light .mg-theme-toggle{background:#fff;border-color:#cfd3dd}
body.modo-light .mg .mg-theme-option{color:#616773}body.modo-light .mg .mg-theme-option[aria-pressed=true]{background:#8D3687;color:#fff}
body.modo-light .mg .mg-secondary{background:#f1f2f6!important;color:#485260!important;border-color:#cbd0db!important}
body.modo-light .mg .mg-badge{color:#344400}
body.modo-light .mg .mg-account-menu{background:#fff!important;border-color:#d6dbe5!important;color:#29313c!important}
body.modo-light .mg .mg-account-menu a{color:#394454!important}
body.modo-light .mg .mg-account-menu a:hover{background:#f3edf6!important}
body.modo-light .mg .mg-notice{background:#e8f7e9!important;color:#2b5731!important}
body.modo-light .mg a:not(.mg-button):not(.mg-action-open){color:#8d3687}


/* MoDo 1.21.365 — Light refinement. ALL rules are scoped: dark mode unchanged. */
body.modo-light .mg {
  --mg-light-canvas:#f2f3f7;
  --mg-light-surface:#ffffff;
  --mg-light-surface-alt:#f8f8fb;
  --mg-light-border:#d8dbe5;
  --mg-light-heading:#202431;
  --mg-light-text:#303746;
  --mg-light-muted:#596374;
  --mg-light-purple:#803078;
  --mg-light-purple-soft:#f4e7f3;
  background:var(--mg-light-canvas)!important;
  color:var(--mg-light-text)!important;
}
body.modo-light .mg .mg-header,
body.modo-light .mg .mg-panel-view-header {color:var(--mg-light-heading)!important}
body.modo-light .mg h1,body.modo-light .mg h2,body.modo-light .mg h3,
body.modo-light .mg h4,body.modo-light .mg legend {color:var(--mg-light-heading)!important}
body.modo-light .mg p,body.modo-light .mg label,
body.modo-light .mg .mg-detail-grid,body.modo-light .mg .mg-filters,
body.modo-light .mg .mg-panel {color:var(--mg-light-text)!important}
body.modo-light .mg small,body.modo-light .mg .mg-footer,
body.modo-light .mg .mg-sidebar-label {color:var(--mg-light-muted)!important}
body.modo-light .mg .mg-panel,
body.modo-light .mg .mg-project-overview,
body.modo-light .mg .mg-card,
body.modo-light .mg .mg-dashboard-section,
body.modo-light .mg .mg-audit-panel,
body.modo-light .mg .mg-invoice-create,
body.modo-light .mg .mg-work-sheets,
body.modo-light .mg .mg-gara-readonly,
body.modo-light .mg fieldset {
 background:var(--mg-light-surface)!important;
 color:var(--mg-light-text)!important;
 border-color:var(--mg-light-border)!important;
 box-shadow:0 1px 3px rgba(30,35,60,.045)!important;
}
/* Keep the chosen colorful section accent as an edge, not as a dark fill. */
body.modo-light .mg[aria-label="Dashboard MoDo"]>.mg-dashboard-section {
 border-top-color:var(--mg-section-accent,#8D3687)!important;
 border-top-width:5px!important;
}
body.modo-light .mg .mg-stats .mg-stat,
body.modo-light .mg [aria-label="Riepilogo"]>.mg-stat {
 background:#fff!important;
 color:var(--mg-light-heading)!important;
 border:1px solid var(--mg-light-border)!important;
 border-top:4px solid var(--mg-stat-accent,#8D3687)!important;
 box-shadow:0 2px 8px rgba(30,35,60,.045)!important;
}
body.modo-light .mg [aria-label="Riepilogo"]>.mg-stat>span,
body.modo-light .mg .mg-stat>span {color:#4c5666!important}
body.modo-light .mg [aria-label="Riepilogo"]>.mg-stat strong,
body.modo-light .mg [aria-label="Riepilogo"]>.mg-stat .mg-stat-link {
 color:var(--mg-stat-number,var(--mg-stat-accent,#803078))!important;
}
/* Table structure, hover and readable secondary lines. */
body.modo-light .mg .mg-table-wrap,
body.modo-light .mg .mg-archive-table {color:var(--mg-light-text)!important}
body.modo-light .mg table>thead>tr>th,
body.modo-light .mg .mg-table-wrap thead th {
 background:#e8eaf1!important;color:#3b4351!important;
 border-color:#d1d6e0!important;font-weight:650;
}
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr>td,
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr.mg-department-task>td,
body.modo-light .mg .mg-task-list-table tbody td,
body.modo-light .mg .mg-archive-table tbody td {
 background:#fff!important;color:#2e3543!important;
 border-color:#e0e3eb!important;
}
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr:nth-child(even)>td {
 background:#f7f8fb!important;
}
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr:hover>td,
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr:focus-within>td,
body.modo-light .mg .mg-task-list-table tbody tr:hover td {
 background:#f1ecf5!important;
}
body.modo-light .mg .mg-grid-view tbody>tr,
body.modo-light .mg .mg-grid-view tbody>tr>td {
 background:#fff!important;color:#2e3543!important;border-color:#dbe0e9!important;
}
body.modo-light .mg .mg-grid-view tbody>tr:hover,
body.modo-light .mg .mg-grid-view tbody>tr:hover>td {background:#f3edf6!important}
/* Dashboard task rows keep their department stripe while using a legible surface. */
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr.mg-department-task>td:first-child {
 border-left:5px solid var(--mg-dept,#64748b)!important;
}
/* Sidebar contrast and active navigation. Compact and expanded share this appearance. */
body.modo-light .mg .mg-nav {background:#fff!important;border:1px solid #d8dce5!important}
body.modo-light .mg .mg-nav>a,
body.modo-light .mg .mg-nav .mg-sidebar-label,
body.modo-light .mg .mg-sidebar-footer {color:#465063!important}
body.modo-light .mg .mg-nav>a:hover {background:#f4eaf4!important;color:#75256d!important}
body.modo-light .mg .mg-nav>a[aria-current="page"] {
 background:#f2e1f0!important;color:#76256e!important;
 border-left-color:#8D3687!important;
}
body.modo-light .mg .mg-nav .mg-bell,
body.modo-light .mg .mg-account-menu {background:#f4f5f8!important;color:#313949!important;border-color:#d7dbe5!important}
body.modo-light .mg .mg-nav .mg-menu-icon {opacity:.9}
/* Inputs and filter bar. */
body.modo-light .mg input:not([type="checkbox"]):not([type="radio"]),
body.modo-light .mg select,body.modo-light .mg textarea {
 background:#fff!important;color:#253044!important;
 border-color:#bdc5d2!important;
}
body.modo-light .mg input:focus,body.modo-light .mg select:focus,
body.modo-light .mg textarea:focus {border-color:#8D3687!important;outline-color:#8D3687}
body.modo-light .mg input::placeholder,body.modo-light .mg textarea::placeholder {color:#687385!important}
body.modo-light .mg .mg-filters {color:#394355!important}
body.modo-light .mg .mg-secondary {background:#f1f2f6!important;color:#354052!important;border-color:#c9cfdb!important}
body.modo-light .mg .mg-secondary:hover {background:#e9e4ef!important;color:#65245f!important}
body.modo-light .mg .mg-button:not(.mg-secondary) {color:#fff}
body.modo-light .mg .mg-button:not(.mg-secondary):focus-visible,
body.modo-light .mg button:focus-visible,
body.modo-light .mg a:focus-visible {outline:2px solid #8D3687;outline-offset:2px}
/* Link contrast; leave colored priority/status chips untouched. */
body.modo-light .mg a:not(.mg-button):not(.mg-action-open):not(.mg-action-edit):not(.mg-favorite-button) {color:#76296e}
body.modo-light .mg .mg-footer.mg-footer-themebar {border-top-color:#d5dae4!important;color:#5b6575!important}
body.modo-light .mg .mg-theme-option:hover {color:#76296e}
/* Auxiliary surfaces used in documents, archive, files and dialogs. */
body.modo-light .mg .mg-upload-drop,
body.modo-light .mg .mg-member-alert-settings,
body.modo-light .mg .mg-permission-group,
body.modo-light .mg .mg-gara-task-panel,
body.modo-light .mg .mg-drive-folder-picker,
body.modo-light .mg .mg-share-dialog,
body.modo-light .mg .mg-note-confirm-dialog {
 background:#fff!important;color:#293343!important;border-color:#d6dce6!important;
}
body.modo-light .mg .mg-share-dialog input,
body.modo-light .mg .mg-drive-folder-picker input {color:#293343!important}
@media(max-width:700px){body.modo-light .mg .mg-panel{box-shadow:none!important}}


/* MoDo 1.21.366 — focused LIGHT-only dashboard readability pass.
   Dark mode remains untouched; future light layout variables can override these. */
body.modo-light .mg {
  --mg-light-line:#cbd2de;
  --mg-light-muted-strong:#475366;
}
/* Brand: the original light-on-dark asset gains a defined surface in light mode. */
body.modo-light .mg .mg-nav > a.mg-sidebar-brand {
  background:#2a1830!important;
  border:1px solid #633365!important;
  border-radius:9px!important;
  box-shadow:0 2px 10px rgba(63,25,62,.14)!important;
  margin-bottom:12px;
}
body.modo-light .mg .mg-nav > a.mg-sidebar-brand .mg-sidebar-logo {
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.13));
}
body.modo-light .mg.mg-sidebar-collapsed .mg-nav > a.mg-sidebar-brand {
  padding:7px 4px!important;
  margin:0 0 12px;
}
/* Center date/time widget: dark, intentionally high-contrast island. */
body.modo-light .mg .mg-dashboard-header > .mg-clock-widget,
body.modo-light .mg .mg-clock-widget {
  background:#292530!important;
  color:#f9f7fc!important;
  border:1px solid #634663!important;
  box-shadow:0 3px 12px rgba(39,32,50,.16)!important;
}
body.modo-light .mg .mg-clock-widget .mg-clock-date,
body.modo-light .mg .mg-clock-widget .mg-clock-time,
body.modo-light .mg .mg-clock-widget .mg-clock-info,
body.modo-light .mg .mg-clock-widget .mg-clock-location,
body.modo-light .mg .mg-clock-widget .mg-clock-location span,
body.modo-light .mg .mg-clock-widget .mg-clock-place {
  color:#f5f1f9!important;
}
body.modo-light .mg .mg-clock-widget .mg-clock-info {color:#e7d7ec!important}
body.modo-light .mg .mg-clock-widget button,
body.modo-light .mg .mg-clock-widget summary {color:#eff1f6!important}
/* Four summary cards use distinct *soft* surfaces, not plain white. */
body.modo-light .mg [aria-label="Riepilogo"] > .mg-stat {
  border:1px solid #cdd3df!important;
  border-top:5px solid var(--mg-stat-accent,#8D3687)!important;
  box-shadow:0 2px 9px rgba(32,38,60,.075)!important;
}
body.modo-light .mg [aria-label="Riepilogo"] > .mg-stat-projects {
  background:#e9f8f1!important;border-color:#b6e0ce!important;
}
body.modo-light .mg [aria-label="Riepilogo"] > .mg-stat-tasks {
  background:#f7ecf8!important;border-color:#e0c7e7!important;
}
body.modo-light .mg [aria-label="Riepilogo"] > .mg-stat-delayed {
  background:#fff7e7!important;border-color:#ebd9b4!important;
}
body.modo-light .mg [aria-label="Riepilogo"] > .mg-stat-upcoming {
  background:#edf3ff!important;border-color:#cbd9f0!important;
}
body.modo-light .mg [aria-label="Riepilogo"] > .mg-stat > span {color:#3b4758!important;font-weight:600}
/* Stronger table separators and alternating rows, preserving per-department stripe. */
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view) table {
  border-collapse:separate!important;border-spacing:0!important;
}
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view) table tbody tr > td {
  border-bottom:1px solid var(--mg-light-line)!important;
}
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view) table tbody tr + tr > td {
  border-top:1px solid #e3e6ed!important;
}
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view) table tbody tr:nth-child(even)>td {
  background:#f0f2f7!important;
}
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view) table tbody tr:hover>td {
  background:#efe7f3!important;
}
body.modo-light .mg .mg-table-wrap thead th {
  border-bottom:2px solid #bbc4d2!important;color:#303a4b!important;
}
body.modo-light .mg .mg-dashboard-section small,
body.modo-light .mg .mg-table-wrap td small,
body.modo-light .mg .mg-dashboard-section > p {
  color:var(--mg-light-muted-strong)!important;
}
/* Compact-sidebar bottom icons (chat, account, collapse, notifications). */
body.modo-light .mg .mg-sidebar-footer > button,
body.modo-light .mg .mg-sidebar-footer > .mg-chat-toggle,
body.modo-light .mg .mg-sidebar-footer .mg-sidebar-toggle,
body.modo-light .mg .mg-nav .mg-bell {
  color:#4d2852!important;
  background:#f1e8f3!important;
  border:1px solid #cdb9d1!important;
  border-radius:8px!important;
}
body.modo-light .mg .mg-sidebar-footer > button:hover,
body.modo-light .mg .mg-sidebar-footer > .mg-chat-toggle:hover,
body.modo-light .mg .mg-sidebar-footer .mg-sidebar-toggle:hover,
body.modo-light .mg .mg-nav .mg-bell:hover {
  background:#e7d6eb!important;color:#642664!important;border-color:#9e72a6!important;
}
body.modo-light .mg .mg-sidebar-footer svg,
body.modo-light .mg .mg-sidebar-toggle svg {opacity:1!important;stroke-width:2}
body.modo-light .mg .mg-sidebar-footer .mg-account summary {
  border:2px solid #9970a0!important;border-radius:50%;
  box-shadow:0 0 0 2px #f2e8f3!important;
}


/* MoDo 1.21.367 — palette Light softer than white; Dark untouched. */
body.modo-light .mg {
  --mg-light-nav-surface:#e9e9f1;
  --mg-light-tab-surface:#e8e9f1;
  --mg-light-tab-border:#cdd0dc;
  --mg-light-clock-surface:#ede5f0;
}
/* Sidebar: lilac-grey canvas, visual separation from content, existing brand dark tile preserved. */
body.modo-light .mg .mg-nav {
  background:var(--mg-light-nav-surface)!important;
  border-color:#cdd1dd!important;
  box-shadow:2px 0 18px rgba(52,35,63,.07)!important;
}
body.modo-light .mg .mg-nav>a:not(.mg-sidebar-brand) {color:#414a5a!important}
body.modo-light .mg .mg-nav>a:not(.mg-sidebar-brand):hover {background:#dbd8e8!important;color:#712f71!important}
body.modo-light .mg .mg-nav>a:not(.mg-sidebar-brand)[aria-current="page"] {background:#e8d2ea!important;color:#762b70!important}
/* Navigation tabs have a soft off-white tint rather than a blank white slab. */
body.modo-light .mg nav.mg-document-tabs,
body.modo-light .mg nav.mg-project-nav,
body.modo-light .mg nav.mg-archive-tabs {
  background:#f0eef5!important;
  border-color:#d9d5e3!important;
}
body.modo-light .mg .mg-document-tabs>a,
body.modo-light .mg .mg-project-nav>a:not([aria-current="page"]):not([aria-current="location"]),
body.modo-light .mg .mg-archive-tabs>a:not([aria-current="page"]) {
  background:var(--mg-light-tab-surface)!important;
  border-color:var(--mg-light-tab-border)!important;
  color:#454b5d!important;
  box-shadow:none!important;
}
body.modo-light .mg .mg-document-tabs>a:hover,
body.modo-light .mg .mg-project-nav>a:hover,
body.modo-light .mg .mg-archive-tabs>a:hover {
  background:#e2d5e8!important;color:#772d72!important;
}
body.modo-light .mg .mg-document-tabs>a[aria-current="page"],
body.modo-light .mg .mg-project-nav>a[aria-current="page"],
body.modo-light .mg .mg-project-nav>a[aria-current="location"],
body.modo-light .mg .mg-archive-tabs>a[aria-current="page"] {
  background:#8D3687!important;color:#fff!important;border-color:#8D3687!important;
}
/* Dashboard clock: light contrast island instead of the previous near-black block. */
body.modo-light .mg .mg-dashboard-header>.mg-clock-widget,
body.modo-light .mg .mg-clock-widget {
  background:var(--mg-light-clock-surface)!important;
  color:#392c45!important;
  border:1px solid #cab6cf!important;
  box-shadow:0 2px 10px rgba(80,47,88,.075)!important;
}
body.modo-light .mg .mg-clock-widget .mg-clock-date,
body.modo-light .mg .mg-clock-widget .mg-clock-time,
body.modo-light .mg .mg-clock-widget .mg-clock-info,
body.modo-light .mg .mg-clock-widget .mg-clock-location,
body.modo-light .mg .mg-clock-widget .mg-clock-location span,
body.modo-light .mg .mg-clock-widget .mg-clock-place,
body.modo-light .mg .mg-clock-widget button,
body.modo-light .mg .mg-clock-widget summary {
  color:#41314b!important;
}
body.modo-light .mg .mg-clock-widget .mg-clock-info {color:#665570!important}
body.modo-light .mg .mg-clock-widget a.mg-clock-discussion {
  background:#faf7fc!important;
  border:1px solid #d6c9db!important;
  color:#513e5d!important;
}
/* Remove dark outlines from compact icon controls, preserve keyboard focus and colored CTA fills. */
body.modo-light .mg .mg-sidebar-footer>button,
body.modo-light .mg .mg-sidebar-footer>.mg-chat-toggle,
body.modo-light .mg .mg-sidebar-footer .mg-sidebar-toggle,
body.modo-light .mg .mg-nav .mg-bell,
body.modo-light .mg .mg-view-switch button,
body.modo-light .mg .mg-standard-actions>a,
body.modo-light .mg .mg-standard-actions>button,
body.modo-light .mg .mg-row-actions .mg-action-icon-button {
  border-color:transparent!important;
  box-shadow:none!important;
}
body.modo-light .mg .mg-sidebar-footer>button:hover,
body.modo-light .mg .mg-sidebar-footer>.mg-chat-toggle:hover,
body.modo-light .mg .mg-sidebar-footer .mg-sidebar-toggle:hover {background:#ddcde3!important}
body.modo-light .mg button:focus-visible, body.modo-light .mg a:focus-visible {outline:2px solid #8D3687!important;outline-offset:2px}

/* MoDo 1.21.368 — Light contrast refinement only. Dark theme intentionally untouched. */
body.modo-light .mg {
  --mg-light-canvas:#e7e9f1;
  --mg-light-tab-surface:#dee0eb;
  --mg-light-tab-border:#bdc3d2;
  --mg-light-nav-surface:#dfe1ec;
  --mg-light-border:#bbc4d3;
  --mg-general-background:#e7e9f1!important;
  background:var(--mg-light-canvas)!important;
}
/* Keep the white content cards as separate surfaces against a more perceptible canvas. */
body.modo-light .mg .mg-panel,
body.modo-light .mg .mg-dashboard-section,
body.modo-light .mg .mg-card,
body.modo-light .mg .mg-project-overview {
  border-color:#bec6d4!important;
  box-shadow:0 2px 8px rgba(36,41,67,.07)!important;
}
body.modo-light .mg .mg-nav {background:#dfe1ec!important;border-color:#bdc2d0!important}
/* Tab bars: clear tinted area and strongly differentiated interactive tabs. */
body.modo-light .mg nav.mg-document-tabs,
body.modo-light .mg nav.mg-project-nav,
body.modo-light .mg nav.mg-archive-tabs {
  background:#dfe2ec!important;border:1px solid #c3c9d5!important;
}
body.modo-light .mg .mg-document-tabs>a:not([aria-current="page"]),
body.modo-light .mg .mg-project-nav>a:not([aria-current="page"]):not([aria-current="location"]),
body.modo-light .mg .mg-archive-tabs>a:not([aria-current="page"]) {
  background:#edf0f6!important;color:#343b4e!important;border-color:#c2cad7!important;
}
body.modo-light .mg .mg-document-tabs>a[aria-current="page"],
body.modo-light .mg .mg-project-nav>a[aria-current="page"],
body.modo-light .mg .mg-project-nav>a[aria-current="location"],
body.modo-light .mg .mg-archive-tabs>a[aria-current="page"] {
  background:#8D3687!important;color:#fff!important;border-color:#8D3687!important;
}
/* Former neon icon foregrounds can disappear against white: use a strong brand purple.
   Preserve yellow filled action buttons and their dark glyphs. */
body.modo-light .mg .mg-header svg:not(.mg-action-open svg),
body.modo-light .mg .mg-dashboard-section>h2 svg,
body.modo-light .mg .mg-dashboard-section>header svg,
body.modo-light .mg .mg-project-nav a:not([aria-current="page"]) svg,
body.modo-light .mg .mg-document-tabs a:not([aria-current="page"]) svg {
  color:#782a75;
  stroke:currentColor;
}
/* Clean borders around small controls, but do not erase keyboard focus outlines. */
body.modo-light .mg .mg-view-switch button,
body.modo-light .mg .mg-sidebar-footer button,
body.modo-light .mg .mg-row-actions a,
body.modo-light .mg .mg-row-actions button,
body.modo-light .mg .mg-standard-actions a,
body.modo-light .mg .mg-standard-actions button {
  box-shadow:none!important;
  border-color:transparent!important;
}
body.modo-light .mg .mg-row-actions .mg-action-open,
body.modo-light .mg .mg-row-actions a.mg-action-open {background:#cee002!important;color:#1e2630!important}
/* Search: soft neutral surface instead of the dark field inherited from Dark. */
body.modo-light .mg .mg-home-search {
  background:#f6f7fb!important;border:1px solid #bec7d6!important;
  border-radius:7px!important;box-shadow:0 1px 3px rgba(50,54,79,.08)!important;
}
body.modo-light .mg .mg-home-search input[type="search"] {
  color:#242e40!important;background:transparent!important;border:0!important;
  box-shadow:none!important;
}
body.modo-light .mg .mg-home-search input::placeholder {color:#69768a!important}
body.modo-light .mg .mg-home-search button {
  background:#ece5f1!important;color:#752b71!important;
  border:0!important;border-left:1px solid #d0c8da!important;
  border-radius:0 6px 6px 0!important;
}
body.modo-light .mg .mg-home-search:focus-within {outline:2px solid #8d3687;outline-offset:2px}
body.modo-light .mg .mg-home-search button:hover {background:#e5d5e9!important}


/* MoDo 1.21.371 – dialog link TinyMCE: readable in both themes.
   Popup is outside .mg, so .mg-scoped input rules do not reach it. */
body:not(.modo-light) .mce-window.modo-link-dialog,
body:not(.modo-light) .mce-window.modo-link-dialog .mce-container-body,
body:not(.modo-light) .mce-window.modo-link-dialog .mce-window-head,
body:not(.modo-light) .mce-window.modo-link-dialog .mce-foot {
  background:#25252c!important;
  color:#f1f1f5!important;
  border-color:#52515e!important;
}
body:not(.modo-light) .mce-window.modo-link-dialog .mce-window-head .mce-title,
body:not(.modo-light) .mce-window.modo-link-dialog label,
body:not(.modo-light) .mce-window.modo-link-dialog .mce-label,
body:not(.modo-light) .mce-window.modo-link-dialog .mce-checkbox .mce-label,
body:not(.modo-light) .mce-window.modo-link-dialog .mce-txt {
  color:#f1f1f5!important;
  -webkit-text-fill-color:#f1f1f5!important;
}
body:not(.modo-light) .mce-window.modo-link-dialog .mce-textbox,
body:not(.modo-light) .mce-window.modo-link-dialog input[type=text],
body:not(.modo-light) .mce-window.modo-link-dialog input[type=url] {
  background:#363640!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border:1px solid #686876!important;
  opacity:1!important;
}
body:not(.modo-light) .mce-window.modo-link-dialog .mce-textbox:focus {
  border-color:#bd73b8!important;
  outline:1px solid #bd73b8!important;
}
body:not(.modo-light) .mce-window.modo-link-dialog .mce-btn:not(.mce-primary),
body:not(.modo-light) .mce-window.modo-link-dialog .mce-btn:not(.mce-primary) button {
  background:#3a3a44!important;
  color:#f1f1f5!important;
  border-color:#626270!important;
}
body:not(.modo-light) .mce-window.modo-link-dialog .mce-btn:not(.mce-primary) .mce-txt {
  color:#f1f1f5!important;
  -webkit-text-fill-color:#f1f1f5!important;
}
.mce-window.modo-link-dialog .mce-primary,
.mce-window.modo-link-dialog .mce-primary button {
  background:#8d3687!important;
  color:#fff!important;
  border-color:#8d3687!important;
}
.mce-window.modo-link-dialog .mce-primary .mce-txt {
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.modo-light .mce-window.modo-link-dialog,
body.modo-light .mce-window.modo-link-dialog .mce-container-body,
body.modo-light .mce-window.modo-link-dialog .mce-window-head,
body.modo-light .mce-window.modo-link-dialog .mce-foot {
  background:#faf9fc!important;
  color:#242431!important;
  border-color:#cbd0db!important;
}
body.modo-light .mce-window.modo-link-dialog label,
body.modo-light .mce-window.modo-link-dialog .mce-label,
body.modo-light .mce-window.modo-link-dialog .mce-window-head .mce-title,
body.modo-light .mce-window.modo-link-dialog .mce-checkbox .mce-label {
  color:#242431!important;
  -webkit-text-fill-color:#242431!important;
}
body.modo-light .mce-window.modo-link-dialog .mce-textbox {
  background:#fff!important;
  color:#202431!important;
  -webkit-text-fill-color:#202431!important;
  border:1px solid #adb6c6!important;
}
body.modo-light .mce-window.modo-link-dialog .mce-btn:not(.mce-primary) {
  background:#ecedf2!important;
  border-color:#b8bece!important;
}
body.modo-light .mce-window.modo-link-dialog .mce-btn:not(.mce-primary) .mce-txt {
  color:#303746!important;
  -webkit-text-fill-color:#303746!important;
}
.mce-window.modo-link-dialog {max-width:calc(100vw - 24px)!important}

/* 1.21.372 – MoDo's TinyMCE link popup may live outside .mg and TinyMCE
   sometimes renders the dialog after the command callback. Scope these
   fallback rules to pages that actually contain a MoDo editor. */
body:has(.mg-editor-field):not(.modo-light) .mce-window,
body:has(.mg-editor-field):not(.modo-light) .mce-window .mce-container-body,
body:has(.mg-editor-field):not(.modo-light) .mce-window .mce-window-head,
body:has(.mg-editor-field):not(.modo-light) .mce-window .mce-foot {
 background:#292930!important;color:#f4f2f6!important;border-color:#5d5b69!important;
}
body:has(.mg-editor-field):not(.modo-light) .mce-window .mce-title,
body:has(.mg-editor-field):not(.modo-light) .mce-window .mce-label,
body:has(.mg-editor-field):not(.modo-light) .mce-window .mce-txt,
body:has(.mg-editor-field):not(.modo-light) .mce-window label {
 color:#f4f2f6!important;-webkit-text-fill-color:#f4f2f6!important;opacity:1!important;
}
body:has(.mg-editor-field):not(.modo-light) .mce-window input.mce-textbox,
body:has(.mg-editor-field):not(.modo-light) .mce-window .mce-textbox {
 background:#383842!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 border:1px solid #777583!important;box-shadow:none!important;opacity:1!important;
}
body:has(.mg-editor-field):not(.modo-light) .mce-window .mce-btn,
body:has(.mg-editor-field):not(.modo-light) .mce-window .mce-btn button {
 background:#42414a!important;border-color:#777583!important;color:#fff!important;
}
body:has(.mg-editor-field):not(.modo-light) .mce-window .mce-primary,
body:has(.mg-editor-field):not(.modo-light) .mce-window .mce-primary button {
 background:#8d3687!important;border-color:#8d3687!important;color:#fff!important;
}
body:has(.mg-editor-field).modo-light .mce-window .mce-label,
body:has(.mg-editor-field).modo-light .mce-window .mce-title,
body:has(.mg-editor-field).modo-light .mce-window .mce-txt,
body:has(.mg-editor-field).modo-light .mce-window label {
 color:#27252f!important;-webkit-text-fill-color:#27252f!important;opacity:1!important;
}
body:has(.mg-editor-field).modo-light .mce-window .mce-textbox {
 background:#fff!important;color:#242431!important;-webkit-text-fill-color:#242431!important;
 border:1px solid #a8a6b6!important;opacity:1!important;
}
body:has(.mg-editor-field).modo-light .mce-window .mce-primary,
body:has(.mg-editor-field).modo-light .mce-window .mce-primary button {
 background:#8d3687!important;color:#fff!important;border-color:#8d3687!important;
}
body:has(.mg-editor-field).modo-light .mce-window .mce-primary .mce-txt,
body:has(.mg-editor-field):not(.modo-light) .mce-window .mce-primary .mce-txt {
 color:#fff!important;-webkit-text-fill-color:#fff!important;
}

/* MoDo 1.21.373 – dedicated editor-link dialog, both themes. */
.mce-window.modo-link-dialog {
  border-radius:10px!important;overflow:hidden!important;
  box-shadow:0 18px 56px rgba(0,0,0,.40)!important;
  border:1px solid #666171!important;
  font-family:inherit!important;
}
.mce-window.modo-link-dialog .mce-window-head {padding:14px 20px!important;min-height:22px!important}
.mce-window.modo-link-dialog .mce-window-head .mce-title {font-weight:650!important;font-size:16px!important}
.mce-window.modo-link-dialog .mce-window-head .mce-close {opacity:.85!important}
.mce-window.modo-link-dialog .mce-formitem {min-height:43px!important}
.mce-window.modo-link-dialog .mce-formitem .mce-label {font-size:13px!important;font-weight:550!important}
.mce-window.modo-link-dialog .mce-textbox {
  border-radius:6px!important;padding:7px 10px!important;
  font-size:13px!important;box-sizing:border-box!important;
}
.mce-window.modo-link-dialog .mce-checkbox {margin-right:7px!important}
.mce-window.modo-link-dialog .mce-foot {padding:10px 15px!important}
.mce-window.modo-link-dialog .mce-foot .mce-btn {border-radius:6px!important;margin-left:8px!important}
.mce-window.modo-link-dialog .mce-foot .mce-btn button {padding:7px 13px!important;font-size:13px!important;font-weight:600!important}
body:not(.modo-light) .mce-window.modo-link-dialog .mce-window-head {background:#25252c!important}
body:not(.modo-light) .mce-window.modo-link-dialog .mce-foot {background:#25252c!important}
body.modo-light .mce-window.modo-link-dialog {box-shadow:0 18px 56px rgba(45,35,60,.20)!important}
body.modo-light .mce-window.modo-link-dialog .mce-window-head,
body.modo-light .mce-window.modo-link-dialog .mce-foot {background:#f2eff6!important}
@media(max-width:540px){.mce-window.modo-link-dialog {max-width:calc(100vw - 20px)!important}}

/* 1.21.375 - Activity editor Light only. No Dark changes. */
body.modo-light .mg .mg-editor-field {color:#283247!important;}
body.modo-light .mg .mg-editor-field>label {color:#293144!important;font-weight:650!important;}
body.modo-light .mg .mg-editor-field .wp-editor-container,
body.modo-light .mg .mg-editor-field .mce-tinymce,
body.modo-light .mg .mg-editor-field .mce-container-body,
body.modo-light .mg .mg-editor-field .mce-toolbar-grp,
body.modo-light .mg .mg-editor-field .mce-statusbar {background:#f8f9fc!important;border-color:#c4ccdb!important;color:#283247!important;}
body.modo-light .mg .mg-editor-field .mce-toolbar-grp {border-bottom:1px solid #c4ccdb!important;}
body.modo-light .mg .mg-editor-field .mce-toolbar .mce-btn,
body.modo-light .mg .mg-editor-field .mce-toolbar .mce-btn button {background:transparent!important;color:#374358!important;border-color:transparent!important;box-shadow:none!important;}
body.modo-light .mg .mg-editor-field .mce-toolbar .mce-btn .mce-ico,
body.modo-light .mg .mg-editor-field .mce-toolbar .mce-btn .mce-txt {color:#374358!important;}
body.modo-light .mg .mg-editor-field .mce-toolbar .mce-btn:hover,
body.modo-light .mg .mg-editor-field .mce-toolbar .mce-btn:focus {background:#e7dfed!important;}
body.modo-light .mg .mg-editor-field .mce-toolbar .mce-btn.mce-active {background:#ebd8eb!important;}
body.modo-light .mg .mg-editor-field iframe {background:#fff!important;}
body.modo-light .mg .mg-editor-field>small {color:#58657a!important;}
body.modo-light .mg input[type=submit],body.modo-light .mg .mg-save-draft {font-weight:650;}
body.modo-light .mg .mg-editor-field~fieldset label {color:#344155!important;}

/* MoDo 1.21.376 — Light contrast polish: scoped to Light; Dark remains unchanged. */
body.modo-light .mg .mg-task-section .mg-button,
body.modo-light .mg .mg-project-header-actions .mg-button,
body.modo-light .mg .mg-record-save-bottom .mg-button {
  border-radius:5px!important;
  font-weight:650!important;
  min-height:34px;
  text-shadow:none!important;
}
body.modo-light .mg .mg-task-section .mg-button:not(.mg-secondary),
body.modo-light .mg .mg-project-header-actions .mg-button:not(.mg-secondary),
body.modo-light .mg .mg-record-save-bottom .mg-button:not(.mg-secondary) {
  background:#8d3687!important;border:1px solid #8d3687!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
}
body.modo-light .mg .mg-task-section .mg-button.mg-secondary,
body.modo-light .mg .mg-project-header-actions .mg-button.mg-secondary,
body.modo-light .mg .mg-record-save-bottom .mg-button.mg-secondary {
  background:#e8e2ed!important;border:1px solid #b8aabd!important;
  color:#422d4b!important;-webkit-text-fill-color:#422d4b!important;
}
body.modo-light .mg .mg-task-section .mg-button:hover,
body.modo-light .mg .mg-project-header-actions .mg-button:hover,
body.modo-light .mg .mg-record-save-bottom .mg-button:hover {filter:brightness(.94);}
body.modo-light .mg .mg-draft-status {color:#4c5363!important;opacity:1!important;}
body.modo-light .mg .mg-draft-status button {
  background:#f2e8f3!important;border:1px solid #a879a8!important;
  color:#70276b!important;-webkit-text-fill-color:#70276b!important;
  border-radius:5px!important;font-weight:650!important;opacity:1!important;
}
body.modo-light .mg .mg-draft-status button:hover {background:#e8d7e9!important;}
body.modo-light .mg .mg-duplicate-button {
  background:#ede4f0!important;border:1px solid #c9afcc!important;
  color:#712b6b!important;-webkit-text-fill-color:#712b6b!important;
  border-radius:5px!important;font-weight:650!important;
}
body.modo-light .mg .mg-duplicate-button svg,
body.modo-light .mg .mg-project-nav-share .mg-duplicate-button svg {color:#712b6b!important;stroke:#712b6b!important;}
body.modo-light .mg .mg-task-section .mg-header h2,
body.modo-light .mg .mg-task-section .mg-header h3 {color:#292d3b!important;}
body.modo-light .mg .mg-task-section .mg-header h2 svg,
body.modo-light .mg .mg-task-section .mg-header h3 svg,
body.modo-light .mg .mg-task-section summary svg,
body.modo-light .mg .mg-task-section .mg-panel-title svg,
body.modo-light .mg .mg-task-section .mg-accordion-title svg {
  color:#6c3976!important;stroke:#6c3976!important;opacity:1!important;
}
body.modo-light .mg .mg-task-section summary,
body.modo-light .mg .mg-task-section summary span,
body.modo-light .mg .mg-task-section .mg-header small {color:#3d4658!important;opacity:1!important;}
body.modo-light .mg .mg-nav .mg-google-space>summary {
  color:#4b3156!important;font-weight:650!important;opacity:1!important;
}
body.modo-light .mg .mg-nav .mg-google-mark-wrap {background:#fff!important;border-color:#d7c9df!important;}
body.modo-light .mg .mg-nav .mg-google-mark {opacity:1!important;filter:none!important;}
body.modo-light .mg .mg-nav .mg-google-chevron {color:#792e79!important;}
body.modo-light .mg .mg-header-actions .mg-button,
body.modo-light .mg .mg-project-nav-share .mg-button {box-shadow:none!important;}
body.modo-light .mg .mg-task-section .mg-actions .mg-button:focus-visible,
body.modo-light .mg .mg-draft-status button:focus-visible {outline:2px solid #8d3687!important;outline-offset:2px;}

/* MoDo 1.21.377 — Light: favorite control visibility. Dark stays unchanged. */
body.modo-light .mg button.mg-favorite-button,
body.modo-light .mg button.mg-favorites-filter {
  background:#f7f1fa!important;
  color:#792b78!important;
  -webkit-text-fill-color:#792b78!important;
  border:1px solid #b99bbb!important;
  box-shadow:none!important;
  opacity:1!important;
  width:36px;
  height:36px;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.modo-light .mg button.mg-favorite-button svg,
body.modo-light .mg button.mg-favorites-filter svg {
  width:19px;
  height:19px;
  display:block!important;
  flex:none;
  stroke:#792b78!important;
  stroke-width:2!important;
  opacity:1!important;
  filter:none!important;
}
body.modo-light .mg button.mg-favorite-button[aria-pressed="true"],
body.modo-light .mg button.mg-favorites-filter[aria-current="true"] {
  background:#8d3687!important;
  color:#fff!important;
  border-color:#8d3687!important;
}
body.modo-light .mg button.mg-favorite-button[aria-pressed="true"] svg,
body.modo-light .mg button.mg-favorites-filter[aria-current="true"] svg {
  stroke:#fff!important;
}
body.modo-light .mg button.mg-favorite-button:hover,
body.modo-light .mg button.mg-favorites-filter:hover {
  border-color:#8d3687!important;
  background:#eadbee!important;
}
body.modo-light .mg button.mg-favorite-button:focus-visible,
body.modo-light .mg button.mg-favorites-filter:focus-visible {outline:2px solid #8d3687!important;outline-offset:2px;}

/* MoDo 1.21.378 — Light-only icon and action consistency. Dark theme untouched. */
body.modo-light .mg .mg-view-switch button {
  background:#f3edf6!important;color:#533958!important;border:1px solid #cbb6d0!important;
  border-radius:4px!important;box-shadow:none!important;opacity:1!important;
}
body.modo-light .mg .mg-view-switch button svg {color:inherit!important;stroke:currentColor!important;opacity:1!important;}
body.modo-light .mg .mg-view-switch button[aria-pressed="true"] {
  background:#8d3687!important;border-color:#8d3687!important;color:#fff!important;
}
body.modo-light .mg .mg-view-switch button:hover {background:#e8d8ec!important;color:#713071!important;}
body.modo-light .mg .mg-view-switch button[aria-pressed="true"]:hover {background:#782b75!important;color:#fff!important;}
body.modo-light .mg a.mg-favorites-filter {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:36px!important;height:36px!important;padding:0!important;
  background:#f7f1fa!important;color:#792b78!important;border:1px solid #b99bbb!important;
  border-radius:4px!important;box-shadow:none!important;opacity:1!important;
}
body.modo-light .mg a.mg-favorites-filter svg {width:19px!important;height:19px!important;stroke:#792b78!important;stroke-width:2!important;opacity:1!important;filter:none!important;}
body.modo-light .mg a.mg-favorites-filter[aria-current="true"] {background:#8d3687!important;border-color:#8d3687!important;color:#fff!important;}
body.modo-light .mg a.mg-favorites-filter[aria-current="true"] svg {stroke:#fff!important;}
body.modo-light .mg a.mg-favorites-filter:hover {background:#eadbee!important;}
body.modo-light .mg .mg-row-actions .mg-icon-action:not(.mg-action-open):not(.mg-action-edit),
body.modo-light .mg .mg-standard-actions .mg-icon-action:not(.mg-action-open):not(.mg-action-edit) {
  background:#f3eef7!important;color:#5a4265!important;border:1px solid #c9b9d0!important;
  box-shadow:none!important;text-shadow:none!important;
}
body.modo-light .mg .mg-row-actions .mg-icon-action:not(.mg-action-open):not(.mg-action-edit) svg,
body.modo-light .mg .mg-standard-actions .mg-icon-action:not(.mg-action-open):not(.mg-action-edit) svg {
  color:inherit!important;stroke:currentColor!important;opacity:1!important;filter:none!important;
}
body.modo-light .mg .mg-row-actions .mg-icon-action[data-modo-action-icon="delete"],
body.modo-light .mg .mg-row-actions [data-mg-archive-action="delete"] {
  background:#fcecf0!important;border-color:#daa5b3!important;color:#9b2b47!important;
}
body.modo-light .mg .mg-row-actions .mg-icon-action:hover {filter:brightness(.95)!important;}
body.modo-light .mg .mg-task-section summary svg,
body.modo-light .mg .mg-task-section .mg-panel-title svg,
body.modo-light .mg .mg-accordion-title svg {
  stroke:#733b79!important;color:#733b79!important;opacity:1!important;filter:none!important;
}
body.modo-light .mg .mg-task-section summary,
body.modo-light .mg .mg-task-section .mg-accordion-title {color:#374052!important;}
body.modo-light .mg .mg-task-section summary:hover {color:#752d72!important;}
body.modo-light .mg .mg-duplicate-button,
body.modo-light .mg .mg-task-section .mg-duplicate-button {
 background:#f1e8f4!important;border:1px solid #c4abcd!important;color:#693066!important;box-shadow:none!important;
}
body.modo-light .mg .mg-task-section .mg-header small,
body.modo-light .mg .mg-task-section .mg-collapse-toggle {color:#485569!important;opacity:1!important;}

/* MoDo 1.21.379 — Light: Attività, Documenti e files, Categorie e Tag.
   Scoped to modo-light so the Dark theme remains untouched. */
body.modo-light .mg .mg-document-bulk {
  background:#eeeaf2!important;border:1px solid #c8bbd0!important;
  color:#333746!important;border-radius:7px!important;
  box-shadow:none!important;
}
body.modo-light .mg .mg-document-bulk label,
body.modo-light .mg .mg-document-bulk small,
body.modo-light .mg .mg-document-bulk p {color:#3f4655!important;opacity:1!important;}
body.modo-light .mg .mg-document-bulk select {
  background:#fff!important;color:#272d39!important;border:1px solid #b9adbf!important;
}
body.modo-light .mg .mg-document-bulk .mg-button {
  background:#f5eff7!important;color:#70316f!important;border:1px solid #b79abe!important;
  box-shadow:none!important;text-shadow:none!important;
}
body.modo-light .mg .mg-document-bulk .mg-button:hover {background:#e7d6eb!important;}
body.modo-light .mg .mg-classification-table-head {
  background:#e4e6ee!important;color:#273244!important;border-bottom:2px solid #b5bdcb!important;
}
body.modo-light .mg .mg-classification-row:not(.mg-classification-table-head) {
  background:#fff!important;border-bottom:1px solid #c9cdd8!important;color:#293142!important;
}
body.modo-light .mg .mg-classification-row:not(.mg-classification-table-head):nth-child(odd) {background:#f1f2f7!important;}
body.modo-light .mg .mg-classification-row:not(.mg-classification-table-head):hover,
body.modo-light .mg .mg-classification-row:not(.mg-classification-table-head):focus-within {background:#eae8f3!important;}
body.modo-light .mg .mg-classification-name input {
  background:#fff!important;color:#252c39!important;border:1px solid #b9bdc9!important;
}
body.modo-light .mg .mg-classification-actions .mg-classification-icon {
  background:#f5f1f7!important;color:#67426f!important;border:1px solid #c9b9ce!important;
  box-shadow:none!important;text-shadow:none!important;opacity:1!important;
}
body.modo-light .mg .mg-classification-actions .mg-classification-icon.is-delete {color:#a52c46!important;background:#fff0f2!important;border-color:#deaebb!important;}
body.modo-light .mg .mg-classification-actions .mg-classification-icon.is-disable,
body.modo-light .mg .mg-classification-actions .mg-classification-icon.is-archive {color:#916114!important;background:#fff6e9!important;border-color:#dfc69a!important;}
body.modo-light .mg .mg-classification-actions .mg-classification-icon.is-enable {color:#237243!important;background:#e9f7ec!important;border-color:#9ac9a9!important;}
body.modo-light .mg .mg-classification-actions .mg-classification-icon:disabled {opacity:.4!important;}
body.modo-light .mg .mg-classification-count {background:#f1edf5!important;color:#68356f!important;border:1px solid #c5b5ce!important;}
body.modo-light .mg .mg-classification-state.is-active {background:#d9f1e1!important;color:#205e35!important;}
body.modo-light .mg .mg-classification-state.is-inactive {background:#f9e4e8!important;color:#943149!important;}
body.modo-light .mg .mg-classification-group-head {border-bottom:1px solid #d5c8da!important;padding-bottom:9px!important;}
body.modo-light .mg .mg-classification-group-head h2 {color:#34293c!important;}
body.modo-light .mg .mg-classification-group-head .mg-button {background:#8d3687!important;color:#fff!important;border-color:#8d3687!important;}
/* Task lists: preserve department-colored left borders while improving row separation. */
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr>td,
body.modo-light .mg .mg-task-table tbody tr>td {border-bottom:1px solid #c6cad5!important;}
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr:nth-child(even)>td {background-color:#f0f1f7!important;}
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr:hover>td {background-color:#e7e9f3!important;}
body.modo-light .mg .mg-table-wrap td small,
body.modo-light .mg .mg-table-wrap td .mg-muted {color:#505a6a!important;opacity:1!important;}
body.modo-light .mg .mg-row-actions .mg-icon-action:not(.mg-action-open):not(.mg-action-edit) {border-color:#baaac7!important;color:#62436c!important;}

/* MoDo 1.21.380 — Light: department stripe takes its color from the
   per-row --mg-dept variable provided by Mood_Gest_Layout::task_style().
   Do not alter the Dark palette or the department settings. */
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view) > table > tbody > tr.mg-department-task > td:first-child,
body.modo-light .mg .mg-task-list-table tbody > tr.mg-department-task > td:first-child,
body.modo-light .mg .mg-archive-table tbody > tr.mg-department-task > td:first-child,
body.modo-light .mg .mg-dashboard-section table tbody > tr.mg-department-task > td:first-child {
  border-left:6px solid var(--mg-dept,#64748b)!important;
  border-left-color:var(--mg-dept,#64748b)!important;
}
body.modo-light .mg .mg-grid-view tbody > tr.mg-department-task,
body.modo-light .mg .mg-table-wrap.mg-grid-view tbody > tr.mg-department-task {
  border-left:6px solid var(--mg-dept,#64748b)!important;
}

/* MoDo 1.21.381 — Contrasto icona cliente e schermata Team, SOLO Light */
body.modo-light .mg .mg-task-client svg,
body.modo-light .mg .mg-task-list-table .mg-task-client svg,
body.modo-light .mg .mg-dashboard-section .mg-task-client svg {color:#485267!important;stroke:#485267!important;opacity:1!important;stroke-width:2.1!important;}
/* Controlli Team: azioni chiare, unificate, senza riquadri scuri */
body.modo-light .mg.mg-team-page .mg-header-actions>a.mg-team-new{background:#8d3687!important;color:#fff!important;border:1px solid #8d3687!important;border-radius:5px!important;font-weight:600!important;opacity:1!important;}
body.modo-light .mg.mg-team-page .mg-header-actions>a.mg-team-new:hover{background:#73286f!important;color:#fff!important;}
body.modo-light .mg.mg-team-page .mg-team-tabs a{color:#4a3550!important;background:#eee9f2!important;border:1px solid #cfc2d8!important;border-radius:5px!important;}
body.modo-light .mg.mg-team-page .mg-team-tabs a[aria-current="page"],body.modo-light .mg.mg-team-page .mg-team-tabs a:hover{color:#fff!important;background:#8d3687!important;border-color:#8d3687!important;}
body.modo-light .mg.mg-team-page .mg-table-wrap>table>thead th{background:#e0e4ee!important;color:#344052!important;border-bottom:2px solid #bfc7d5!important;}
body.modo-light .mg.mg-team-page .mg-table-wrap>table>tbody tr:nth-child(even)>td{background:#eff1f8!important;}
body.modo-light .mg.mg-team-page .mg-table-wrap>table>tbody tr:hover>td{background:#e8eaf4!important;}
body.modo-light .mg.mg-team-page .mg-table-wrap>table>tbody td{border-bottom:1px solid #c7cfda!important;}
body.modo-light .mg.mg-team-page .mg-table-wrap>table>tbody td small{color:#556175!important;opacity:1!important;}
body.modo-light .mg.mg-team-page .mg-action-cell .mg-row-actions>a,
body.modo-light .mg.mg-team-page .mg-action-cell .mg-row-actions>button{background:#f5eff8!important;border:1px solid #c9b5d0!important;color:#743372!important;box-shadow:none!important;opacity:1!important;}
body.modo-light .mg.mg-team-page .mg-action-cell .mg-row-actions>a svg,
body.modo-light .mg.mg-team-page .mg-action-cell .mg-row-actions>button svg{color:inherit!important;stroke:currentColor!important;opacity:1!important;}
body.modo-light .mg.mg-team-page .mg-action-cell .mg-row-actions>a:hover,
body.modo-light .mg.mg-team-page .mg-action-cell .mg-row-actions>button:hover{background:#e9ddeb!important;border-color:#8d3687!important;}
body.modo-light .mg.mg-team-page .mg-action-cell .mg-row-actions .mg-action-edit{background:#8d3687!important;color:#fff!important;border-color:#8d3687!important;}
body.modo-light .mg.mg-team-page .mg-action-cell .mg-row-actions [data-mg-archive-action="delete"],
body.modo-light .mg.mg-team-page .mg-action-cell .mg-row-actions [data-mg-archive-action="trash"]{color:#a12843!important;border-color:#d5adba!important;background:#fff1f4!important;}
body.modo-light .mg.mg-team-page .mg-filters button.mg-button{background:#cee002!important;color:#17200a!important;border-color:#cee002!important;}


/* MoDo 1.21.383 — Light theme: stronger row hover and cleaner badges. */
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr,
body.modo-light .mg .mg-task-list-table tbody tr,
body.modo-light .mg .mg-archive-table tbody tr{transition:background-color .15s ease, box-shadow .15s ease;}
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr:hover>td,
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr:focus-within>td,
body.modo-light .mg .mg-task-list-table tbody tr:hover td,
body.modo-light .mg .mg-archive-table tbody tr:hover td{background:#e2e6f1!important;}
body.modo-light .mg .mg-table-wrap:not(.mg-grid-view)>table>tbody>tr:hover,
body.modo-light .mg .mg-task-list-table tbody tr:hover,
body.modo-light .mg .mg-archive-table tbody tr:hover{box-shadow:inset 0 0 0 1px #c8d0de;}
body.modo-light .mg .mg-badge,
body.modo-light .mg .mg-department-badge{border:0!important;box-shadow:none!important;}

/* MoDo 1.21.384 — Impostazioni / Layout: sole superfici Light.
   Le anteprime colore mantengono i colori inline scelti dall'amministratore. */
body.modo-light .mg .mg-layout-nav{
  background:#e5e7f0!important;border:1px solid #c8cfdd!important;
  border-radius:6px!important;box-shadow:none!important;
}
body.modo-light .mg .mg-layout-nav a{
  color:#483b55!important;background:#f8f8fc!important;
  border:1px solid #c9c1d3!important;border-radius:5px!important;
}
body.modo-light .mg .mg-layout-nav a:hover,
body.modo-light .mg .mg-layout-nav a:focus-visible{
  color:#fff!important;background:#8d3687!important;border-color:#8d3687!important;
}
body.modo-light .mg .mg-layout-anchor:target{color:#77266e!important;}
body.modo-light .mg .mg-layout-grid fieldset,
body.modo-light .mg .mg-layout-card{
  color:#303746!important;background:#f6f7fb!important;
  border:1px solid #ccd3df!important;border-radius:6px!important;
}
body.modo-light .mg .mg-layout-card legend,
body.modo-light .mg .mg-layout-grid legend{color:#3d2f4b!important;}
body.modo-light .mg .mg-color-controls input[type=text],
body.modo-light .mg .mg-color-controls input[type=number]{
  color:#303746!important;background:#fff!important;border:1px solid #bfc7d4!important;
}
body.modo-light .mg .mg-layout-state-colors .mg-state-color-choice,
body.modo-light .mg .mg-state-color-choice{
  background:#f2f3f9!important;color:#303746!important;
  border:1px solid #cbd1df!important;border-radius:5px!important;
}
body.modo-light .mg .mg-state-color-choice .mg-state-color-input input[type=color]{
  background:#fff!important;border:1px solid #b8c0d0!important;
}
body.modo-light .mg .mg-state-color-choice .mg-state-color-input code{
  color:#465063!important;background:transparent!important;
}
body.modo-light .mg .mg-layout-state-colors h3{color:#3c3447!important;}
body.modo-light .mg .mg-layout-grid .mg-color-preview,
body.modo-light .mg .mg-layout-grid .mg-layout-status{color:#4d5868!important;}
@media(max-width:700px){
 body.modo-light .mg .mg-layout-nav{gap:6px!important;padding:9px!important;}
 body.modo-light .mg .mg-state-color-choice{flex-wrap:wrap;}
}


/* MoDo 1.21.385 — anteprime logo e icone pagina leggibili nel solo Light.
   Il logo chiaro è progettato per fondi scuri: usare un fondale di anteprima,
   senza cambiare il logo realmente salvato. */
body.modo-light .mg .mg-logo-previews .mg-logo-preview {
  background:#27232e!important;
  border:1px solid #77687b!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
  color:#ffffff!important;
}
body.modo-light .mg .mg-logo-previews .mg-logo-preview strong {color:#ffffff!important;}
body.modo-light .mg .mg-header .mg-page-title > .mg-menu-icon {
  color:#8D3687!important;
  opacity:1!important;
  stroke:currentColor;
}

/* MoDo 1.21.386 — loghi per tema, fallback sul logo Dark preesistente. */
.mg .mg-brand-light,.mg .mg-sidebar-full-brand .mg-brand-light{display:none!important}
body.modo-light .mg .mg-brand-dark:has(+ .mg-brand-light),
body.modo-light .mg .mg-sidebar-full-brand .mg-brand-dark:has(+ .mg-brand-light){display:none!important}
body.modo-light .mg .mg-brand-light,
body.modo-light .mg .mg-sidebar-full-brand .mg-brand-light{display:block!important}
.mg .mg-light-logo-preview{display:flex;align-items:center;min-height:75px;padding:14px;background:#ecedf3;border:1px solid #cbd0db;border-radius:6px;margin:8px 0 12px}
.mg .mg-light-logo-preview img{max-height:130px;width:auto;max-width:100%;object-fit:contain}

/* 1.21.387 — Notification preferences: Light-only presentation. */
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap table {border-collapse:separate!important;border-spacing:0!important;}
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap thead th,
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap thead td {background:#e7e9f1!important;color:#30394a!important;border-color:#cbd1df!important;}
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap thead .mg-notification-all-row th,
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap thead .mg-notification-all-row td {background:#f1edf5!important;color:#33394b!important;}
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap tbody tr th,
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap tbody tr td {background:#fff!important;color:#333a4a!important;border-bottom:1px solid #d9deea!important;}
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap tbody tr:nth-child(even) th,
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap tbody tr:nth-child(even) td {background:#f0f2f7!important;}
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap tbody tr:hover th,
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap tbody tr:hover td {background:#e2e6f0!important;}
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap tbody th {font-weight:550!important;}
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap .mg-check {display:inline-flex!important;align-items:center!important;gap:8px!important;justify-content:center;}
body.modo-light .mg [data-modo-notification-preferences] .mg-table-wrap input[type="checkbox"],
body.modo-light .mg .mg-member-alert-settings input[type="checkbox"] {accent-color:#8d3687!important;color-scheme:light!important;}
body.modo-light .mg .mg-member-alert-settings {background:#faf9fc!important;border:1px solid #cdd0df!important;border-radius:6px!important;}
body.modo-light .mg .mg-member-alert-settings legend {color:#39314c!important;}
body.modo-light .mg .mg-member-alert-settings .mg-member-alert-row {background:#f1f2f8!important;padding:10px 12px!important;border:1px solid #dce0e9!important;border-radius:5px;}
body.modo-light .mg .mg-member-alert-settings .mg-member-alert-number input {background:#fff!important;color:#272e40!important;border:1px solid #bcc5d4!important;}
body.modo-light .mg .mg-member-alert-settings [data-modo-alert-test] {background:#f4e9f4!important;border:1px solid #a56aa1!important;color:#792d72!important;border-radius:5px;padding:9px 15px;font-weight:600;cursor:pointer;}
body.modo-light .mg #mg-notification-settings .mg-member-preferences-picker .mg-button,
body.modo-light .mg [data-modo-notification-preferences] .mg-member-notifications-save>.mg-button {background:#8d3687!important;color:#fff!important;border:1px solid #8d3687!important;}
@media(max-width:650px){body.modo-light .mg .mg-member-alert-settings .mg-member-alert-row{grid-template-columns:1fr!important;}}
