﻿@font-face {
  font-family: "Minion Pro";
  src: url("assets/MinionPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --app-bg: #202020;
  --app-surface: #202020;
  --app-surface-rgb: 32, 32, 32;
  --app-surface-soft: #202020;
  --app-border: rgba(252, 224, 44, 0.48);
  --app-border-soft: rgba(252, 224, 44, 0.24);
  --app-text: #FCE02C;
  --app-muted: #FCE02C;
  --app-primary: #FCE02C;
  --app-primary-soft: rgba(252, 224, 44, 0.1);
  --app-active-text: #202020;
  --app-success: #FCE02C;
  --app-danger: #FCE02C;
  --app-warning: #FCE02C;
  --app-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  --app-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.24);
  --app-panel-bg: #202020;
  --app-body-bg: #202020;
  --app-login-overlay: #202020;
  --app-backdrop: #202020;
  --app-table-head-bg: #202020;
  --app-radius-xl: 0;
  --app-radius-lg: 0;
  --app-radius-md: 0;
  --app-radius-sm: 0;
  --app-sidebar-w: 224px;
  --app-page-gap: 10px;
  --app-page-pad-y: 12px;
  --app-page-pad-x: 10px;
  --dash-gap: var(--app-page-gap);
  --dash-sidebar-w: var(--app-sidebar-w);
  --dash-page-pad-y: var(--app-page-pad-y);
  --dash-page-pad-x: var(--app-page-pad-x);
  --dash-panel-bg: var(--app-panel-bg);
  --dash-panel-border: var(--app-border);
  --dash-panel-border-soft: var(--app-border-soft);
  --dash-hero-image: url("img/sfondo-dashboard.png");

  --bs-body-bg: var(--app-bg);
  --bs-body-color: var(--app-text);
  --bs-border-color: var(--app-border);
  --bs-tertiary-bg: var(--app-surface-soft);
  --bs-primary: var(--app-primary);
  --bs-primary-rgb: 252, 224, 44;
  --bs-primary-bg-subtle: var(--app-primary-soft);
  --bs-primary-border-subtle: var(--app-primary);
  --bs-primary-text-emphasis: var(--app-text);
  --bs-secondary: #FCE02C;
  --bs-secondary-rgb: 252, 224, 44;
  --bs-secondary-bg-subtle: #FCE02C;
  --bs-secondary-border-subtle: #FCE02C;
  --bs-secondary-text-emphasis: #FCE02C;
  --bs-success: #FCE02C;
  --bs-success-rgb: 252, 224, 44;
  --bs-success-bg-subtle: #FCE02C;
  --bs-success-border-subtle: #FCE02C;
  --bs-success-text-emphasis: #FCE02C;
  --bs-warning: #FCE02C;
  --bs-warning-rgb: 252, 224, 44;
  --bs-warning-bg-subtle: #FCE02C;
  --bs-warning-border-subtle: #FCE02C;
  --bs-warning-text-emphasis: #FCE02C;
  --bs-danger: #FCE02C;
  --bs-danger-rgb: 252, 224, 44;
  --bs-danger-bg-subtle: #FCE02C;
  --bs-danger-border-subtle: #FCE02C;
  --bs-danger-text-emphasis: #FCE02C;
  --bs-info: #FCE02C;
  --bs-info-rgb: 252, 224, 44;
  --bs-info-bg-subtle: #FCE02C;
  --bs-info-border-subtle: #FCE02C;
  --bs-info-text-emphasis: #FCE02C;
  --bs-link-color: var(--app-primary);
  --bs-link-hover-color: #FCE02C;
}

html,
body {
  min-height: 100%;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body,
body.app {
  margin: 0;
  overflow-x: hidden;
  background: var(--app-body-bg);
  color: var(--app-text);
  font-family: "Minion Pro", Georgia, "Times New Roman", serif;
  font-size: 14px;
}

button,
input,
select,
textarea,
.btn,
.card,
.app-card,
.richieste-modern,
.richieste-card,
.modal-content,
.dropdown-menu,
.list-group-item,
.form-control,
.form-select,
.input-group-text,
.badge,
.alert,
.choice-card span,
.dashboard-outline-action,
.dashboard-section-link,
.login-card,
.loading-progress,
.loading-progress-bar {
  border-radius: 0 !important;
}

.main-content {
  min-height: 100vh;
  margin-left: var(--app-sidebar-w);
  overflow: visible;
  padding: 0;
  transition: margin-left 0.25s ease;
}

body.dashboard-page {
  overflow: hidden;
}

body.dashboard-page .main-content {
  height: 100vh;
  overflow: hidden;
}

.app-container,
.dashboard-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--app-page-gap);
}

.dashboard-shell {
  gap: 0;
  background:
    linear-gradient(180deg, rgba(13, 18, 20, 0) 0%, rgba(13, 18, 20, 0.18) 165px, rgba(13, 18, 20, 0.96) 330px),
    linear-gradient(90deg, rgba(3, 3, 5, 0.92) 0%, rgba(3, 3, 5, 0.38) 42%, rgba(3, 3, 5, 0.08) 100%),
    var(--dash-hero-image) top center / 100% auto no-repeat,
    var(--app-body-bg);
}

/* Sidebar */
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--app-sidebar-w);
  z-index: 1030;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--app-body-bg);
  box-shadow: inset -1px 0 0 rgba(252, 224, 44, 0.08);
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  min-height: 118px;
  padding: 22px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo img {
  max-width: 190px;
  max-height: 150px;
  object-fit: contain;
}

.sidebar-user {
  margin: 0 16px 20px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
}

.sidebar-user img {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(252, 224, 44, 0.18);
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-user strong,
.sidebar-user span {
  display: block;
  line-height: 1.2;
}

.sidebar-user strong {
  color: var(--app-text);
  font-size: 15px;
  font-weight: 650;
}

.sidebar-user span {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 12px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px;
}

.sidebar-link,
.sidebar-footer a {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--app-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-link i,
.sidebar-footer a i {
  width: 18px;
  color: var(--app-primary);
  font-size: 15px;
  text-align: center;
}

.sidebar-link:hover,
.sidebar-footer a:hover,
.sidebar-submenu a:hover {
  background: rgba(252, 224, 44, 0.07);
  color: var(--app-primary);
}

.sidebar-link.active,
.sidebar-submenu a.active {
  color: var(--app-active-text);
  background: var(--app-primary);
  box-shadow: 0 10px 24px rgba(252, 224, 44, 0.28);
}

.sidebar-link.active i,
.sidebar-submenu a.active {
  color: var(--app-active-text);
}

.sidebar-collapse-btn {
  cursor: pointer;
}

.sidebar-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.sidebar-group.open .sidebar-chevron,
.sidebar-collapse-btn[aria-expanded="true"] .sidebar-chevron {
  transform: rotate(180deg);
}

.sidebar-submenu {
  margin: 4px 0 12px 31px;
  padding-left: 12px;
  border-left: 1px solid var(--app-border-soft);
}

.sidebar-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(252, 224, 44, 0.76);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 14px 10px;
  border-top: 1px solid var(--app-border-soft);
}

.sidebar-footer .logout {
  color: #FCE02C;
}

.sidebar-mobile-toggle,
.sidebar-close {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: var(--app-surface);
  color: var(--app-primary);
  box-shadow: none;
}

.sidebar-mobile-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1040;
}

.sidebar-backdrop {
  display: none;
}

.app-card-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* Cards */
.app-card,
.card,
.richieste-modern {
  border: 0;
  border-radius: var(--app-radius-xl);
  background: var(--app-panel-bg);
  color: var(--app-text);
  box-shadow: none;
}

.app-card {
  padding: 20px;
}

.app-card.mb-4,
.mb-4.app-card {
  margin-bottom: 18px !important;
}

.card {
  overflow: hidden;
}

.card-body {
  background: transparent;
}

.card-header,
.card-footer {
  border-color: var(--app-border-soft);
  background: rgba(252, 224, 44, 0.06);
  color: var(--app-text);
}

.card-header.bg-primary,
.card-header.bg-secondary,
.card-header.bg-success,
.card-header.bg-info,
.card-header.bg-light {
  border-color: var(--app-border-soft) !important;
  background: rgba(252, 224, 44, 0.06) !important;
  color: var(--app-text) !important;
}

.card-header.text-white,
.card-header .text-white {
  color: var(--app-text) !important;
}

.app-card-header {
  margin-bottom: 18px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--app-border-soft);
}

.app-card-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.app-card-header-actions .compact-search-toolbar {
  margin-left: 0;
}

.app-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-card-title-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--app-primary-soft);
  color: var(--app-primary);
  font-size: 18px;
}

.app-card-title h2 {
  margin: 0;
  color: var(--app-primary);
  font-size: 18px;
  font-weight: 800;
}

.app-card-title p {
  margin: 3px 0 0;
  color: var(--app-muted);
  font-size: 13px;
}

/* Forms and controls */
.form-label,
label {
  margin-bottom: 5px;
  color: var(--app-text);
  font-size: 13px;
  font-weight: 650;
}

.form-control,
.form-select,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  min-height: 40px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background-color: var(--app-surface);
  color: var(--app-text);
  font-size: 14px;
  box-shadow: none !important;
}

.form-control::placeholder {
  color: var(--app-muted);
  opacity: 0.72;
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
  background-color: var(--app-surface-soft);
  color: var(--app-muted);
}

.form-select option {
  background: var(--app-surface);
  color: var(--app-text);
}

.input-group-text {
  border-color: var(--app-border);
  background: var(--app-surface-soft);
  color: var(--app-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(252, 224, 44, 0.72);
  box-shadow: 0 0 0 4px rgba(252, 224, 44, 0.16) !important;
}

textarea.form-control {
  min-height: 104px;
  resize: vertical;
}

.form-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.profile-tabs {
  border: 0;
  gap: 8px;
}

.profile-tabs .nav-link {
  border: 0;
  color: var(--app-muted);
  background: rgba(252, 224, 44, 0.06);
  padding: 10px 16px;
  font-weight: 700;
}

.profile-tabs .nav-link:hover,
.profile-tabs .nav-link:focus {
  color: var(--app-primary);
  background: rgba(252, 224, 44, 0.1);
}

.profile-tabs .nav-link.active {
  color: var(--app-active-text);
  background: var(--app-primary);
}

.btn-primary,
.btn-app-primary {
  min-height: 39px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--app-active-text);
  font-size: 14px;
  font-weight: 750;
  background: var(--app-primary);
}



.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-success {
  border-color: var(--app-border);
  color: var(--app-text);
  background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-dark:hover,
.btn-outline-success:hover {
  border-color: var(--app-primary);
  background: var(--app-primary);
  color: var(--app-active-text);
}

.btn-warning {
  min-height: 39px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.btn i {
  line-height: 1;
}

.btnDelete,
.btn-delete,
.btn-danger {
  width: 36px;
  height: 36px;
  border: 0 !important;
  border-radius: 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--app-danger) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(252, 224, 44, 0.2);
}

/* Choice cards */
.choice-grid {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.choice-card {
  position: relative;
  min-width: 155px;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
}

.choice-card span {
  min-height: 44px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--app-surface);
  color: var(--app-muted);
  font-weight: 750;
  transition: 0.2s ease;
}

.choice-card input:checked+span {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

/* Tables and DataTables */
.table-responsive {
  overflow: hidden;
  border: 0;
  border-radius: 14px;
}

.table {
  margin: 0 !important;
  border-color: var(--app-border-soft);
  --bs-table-bg: var(--app-surface);
  --bs-table-color: var(--app-text);
  --bs-table-border-color: var(--app-border-soft);
}

.table thead,
.table thead.table-primary {
  background: var(--app-table-head-bg) !important;
  color: var(--app-text) !important;
}

.table thead th {
  padding: 11px 12px !important;
  border-bottom: 1px solid var(--app-border) !important;
  color: var(--app-text);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.table tbody td {
  padding: 11px 12px !important;
  border-color: var(--app-border-soft);
  color: var(--app-text);
  font-size: 13px;
  vertical-align: middle;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
  --bs-table-bg-type: var(--app-surface);
}

.table-hover>tbody>tr:hover>* {
  --bs-table-bg-state: var(--app-surface-soft);
}

.table-empty-row td {
  padding: 36px !important;
  color: var(--app-muted);
  text-align: center;
}

.dataTables_wrapper .row:first-child,
.dataTables_wrapper .row:last-child {
  margin-bottom: 18px;
  align-items: center;
}

.dataTables_wrapper .row:last-child {
  margin-top: 18px;
  margin-bottom: 0;
}

.dataTables_wrapper .dataTables_info {
  padding-top: 0 !important;
  color: var(--app-muted);
}

.page-link {
  margin: 0 3px;
  border-color: var(--app-border);
  border-radius: 10px !important;
  background: var(--app-surface);
  color: var(--app-muted);
}

.page-link:hover,
.page-link:focus {
  border-color: var(--app-primary);
  background: var(--app-primary-soft);
  color: var(--app-text);
}

.page-item.active .page-link {
  border-color: transparent;
  background: var(--app-primary);
  box-shadow: 0 8px 18px rgba(252, 224, 44, 0.34);
  color: var(--app-active-text);
}

/* Suggestions and overlays */
#suggestions,
[id^="suggestions_"] {
  position: absolute;
  z-index: 1000;
  display: none;
  max-height: 180px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow-soft);
}

.suggestion {
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.suggestion:hover {
  background: var(--app-surface);
  color: var(--app-primary);
}

/* Richieste/card system */
.richieste-modern {
  border-radius: var(--app-radius-xl) !important;
}

.richieste-toolbar {
  width: min(100%, 960px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 300px) repeat(3, auto);
  gap: 0.75rem;
  align-items: center;
}

.richieste-search .form-control,
.richieste-search .input-group-text,
.richieste-toolbar .form-select {
  height: 40px;
  border-color: var(--app-border);
  background: var(--app-surface);
  color: var(--app-text);
}

.compact-search-toolbar {
  width: auto;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

.compact-search-toolbar .richieste-search {
  width: 48px;
  overflow: hidden;
  flex-wrap: nowrap;
  transition: width 0.28s ease, box-shadow 0.28s ease;
}

.compact-search-toolbar:hover .richieste-search,
.compact-search-toolbar:focus-within .richieste-search,
.compact-search-toolbar.has-value .richieste-search {
  width: min(46vw, 360px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}

.compact-search-toolbar .input-group-text {
  width: 48px;
  flex: 0 0 48px;
  justify-content: center;
}

.compact-search-toolbar .form-control {
  min-width: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.compact-search-toolbar:hover .form-control,
.compact-search-toolbar:focus-within .form-control,
.compact-search-toolbar.has-value .form-control {
  opacity: 1;
}

.richieste-card {
  min-height: 430px;
  border: 0 !important;
  border-radius: 14px;
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.richieste-card:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.richieste-card-inner {
  padding: 1.15rem;
}

.richieste-status {
  padding: 0.38rem 0.7rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(252, 224, 44, 0.16);
}

.richieste-date {
  color: var(--app-muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.richieste-info-row {
  margin-top: 0.86rem;
  padding-top: 0.86rem;
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  border-top: 1px solid var(--app-border-soft);
}

.richieste-info-icon {
  width: 18px;
  flex: 0 0 18px;
  margin-top: 0.1rem;
  color: var(--app-primary);
  text-align: center;
}

.richieste-label {
  margin-bottom: 0.24rem;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.richieste-value {
  color: var(--app-text);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.35;
  word-break: break-word;
}

.team-member-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-member-heading .min-w-0 {
  min-width: 0;
}

.team-member-avatar,
.team-photo-preview {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(252, 224, 44, 0.72);
  border-radius: 50% !important;
  background: rgba(252, 224, 44, 0.08);
  color: var(--app-primary);
}

.team-member-avatar img,
.team-photo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-member-initials {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.team-member-name {
  max-width: 100%;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--app-primary);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-photo-field {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-photo-preview {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
  font-size: 28px;
}

.richieste-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.richieste-actions .btn {
  padding: 0.45rem 0.72rem;
  border-radius: 9px;
  font-weight: 650;
}

.richieste-placeholder {
  min-height: 430px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(252, 224, 44, 0.055), rgba(3, 3, 5, 0.32));
}

/* Dashboard */
.dashboard-hero {
  min-height: 220px;
  padding: 34px 38px 28px;
  display: flex;
  align-items: center;
  background: transparent;
}

.dashboard-hero-eyebrow,
.dashboard-hero-date,
.dashboard-row-time,
.dashboard-section-link {
  color: var(--app-primary);
  font-weight: 700;
}

.dashboard-hero h1 {
  margin: 10px 0 18px;
  color: #FCE02C;
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.dashboard-hero-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dashboard-metrics-strip {
  min-height: 150px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  border-top: 1px solid rgba(252, 224, 44, 0.12);
  border-bottom: 1px solid rgba(252, 224, 44, 0.12);
  background: transparent;
}

.dashboard-metric {
  position: relative;
  min-height: 110px;
  padding: 24px 38px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.dashboard-metric:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 0;
  bottom: 28px;
  width: 1px;
  background: rgba(252, 224, 44, 0.12);
}

.dashboard-metric-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--app-primary);
  background: rgba(252, 224, 44, 0.08);
  font-size: 26px;
}

.dashboard-metric strong {
  display: block;
  color: #FCE02C;
  font-size: 42px;
  line-height: 1;
  font-weight: 500;
}

.dashboard-metric span {
  display: block;
  margin-top: 6px;
  color: var(--app-text);
  font-size: 16px;
}

.dashboard-metric small {
  display: block;
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 13px;
}

.dashboard-workspace {
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
}

.dashboard-workspace.dashboard-workspace-single {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-activity-panel,
.dashboard-client-panel {
  padding: 42px 46px;
}

.dashboard-client-panel {
  box-shadow: inset 1px 0 0 rgba(252, 224, 44, 0.08);
}

.dashboard-panel-header {
  margin-bottom: 34px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-panel-header h2 {
  margin: 0;
  color: #FCE02C;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0;
}

.dashboard-panel-header h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 14px;
  background: var(--app-primary);
}

.dashboard-outline-action {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  color: var(--app-primary);
  text-decoration: none;
  background: rgba(252, 224, 44, 0.04);
  box-shadow: none;
}

.dashboard-outline-action:hover,
.dashboard-section-link:hover {
  color: #FCE02C;
  background: rgba(252, 224, 44, 0.08);
}

.dashboard-activity-timeline {
  position: relative;
  min-height: 260px;
  padding-left: 34px;
}

.dashboard-activity-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(252, 224, 44, 0.16);
}

.dashboard-timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 0 0 28px;
}

.dashboard-timeline-row::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--app-primary);
  box-shadow: 0 0 0 5px rgba(252, 224, 44, 0.09);
}

.dashboard-timeline-row strong,
.dashboard-client-main strong {
  display: block;
  color: #FCE02C;
  font-size: 16px;
  font-weight: 650;
}

.dashboard-timeline-row p {
  margin: 5px 0 0;
  color: var(--app-muted);
}

.dashboard-status {
  min-width: 92px;
  padding: 7px 12px;
  align-self: start;
  border: 0;
  border-radius: 8px;
  color: var(--app-primary);
  text-align: center;
  background: rgba(252, 224, 44, 0.055);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-status.is-done {
  color: #FCE02C;
  background: rgba(252, 224, 44, 0.1);
}

.dashboard-client-list {
  display: grid;
}

.dashboard-client-item {
  min-height: 76px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 18px;
  color: var(--app-text);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(252, 224, 44, 0.08);
}

.dashboard-client-avatar {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--app-primary);
  background: rgba(252, 224, 44, 0.1);
  font-size: 17px;
  font-weight: 800;
}

.dashboard-client-main {
  min-width: 0;
}

.dashboard-client-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-client-main small {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--app-muted);
  font-size: 13px;
}

.dashboard-client-item>i {
  color: var(--app-primary);
}

.dashboard-client-item:hover strong {
  color: var(--app-primary);
}

.dashboard-section-link {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  text-decoration: none;
}

.dashboard-empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--app-muted);
  text-align: center;
}

.dashboard-empty-state p {
  margin: 0;
  color: var(--app-text);
  font-weight: 700;
}

.dashboard-empty-state small {
  color: var(--app-muted);
}

.dashboard-empty-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--app-primary);
  background: rgba(252, 224, 44, 0.08);
  font-size: 24px;
}

/* Bootstrap helpers */
.modal-content,
.dropdown-menu,
.list-group-item {
  border-color: var(--app-border-soft);
  background-color: var(--app-surface);
  color: var(--app-text);
}

.modal-header,
.modal-footer,
.dropdown-divider {
  border-color: var(--app-border-soft);
}

.modal.show .app-centered-modal {
  margin-left: auto;
  margin-right: auto;
}

.app-centered-modal.modal-xl {
  width: min(1120px, calc(100vw - 32px));
  max-width: min(1120px, calc(100vw - 32px));
}

.app-centered-modal.modal-lg {
  width: min(860px, calc(100vw - 32px));
  max-width: min(860px, calc(100vw - 32px));
}

.dropdown-item {
  color: var(--app-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--app-primary-soft);
  color: var(--app-text);
}

.text-muted {
  color: var(--app-muted) !important;
}

.alert {
  border: 0;
  border-radius: 14px;
  font-weight: 600;
}

.alert-success {
  color: #FCE02C;
  background: #FCE02C;
}

.alert-danger {
  color: #FCE02C;
  background: #202020;
}

/* Select2 */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-color: var(--app-border);
  background: var(--app-surface);
  color: var(--app-text);
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-search--inline .select2-search__field {
  color: var(--app-text);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  border-color: var(--app-border);
  background: var(--app-primary-soft);
}

.select2-dropdown {
  border-color: var(--app-border);
  background: var(--app-surface);
  color: var(--app-text);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--app-primary);
  color: var(--app-active-text);
}

/* SweetAlert */
.app-swal-popup {
  border: 0;
  border-radius: 0;
  background: var(--app-panel-bg) !important;
  color: var(--app-text) !important;
  box-shadow: none;
}

.app-swal-title {
  color: #FCE02C !important;
  font-family: "Minion Pro", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.app-swal-text {
  color: var(--app-muted) !important;
  font-family: "Minion Pro", Georgia, "Times New Roman", serif;
}

.app-swal-button {
  min-width: 116px;
  margin: 0 4px;
}

.swal2-icon.swal2-warning,
.swal2-icon.swal2-info,
.swal2-icon.swal2-question {
  border-color: var(--app-primary) !important;
  color: var(--app-primary) !important;
}

.swal2-icon.swal2-success {
  border-color: var(--app-success) !important;
  color: var(--app-success) !important;
}

.swal2-icon.swal2-error {
  border-color: var(--app-danger) !important;
  color: var(--app-danger) !important;
}

/* Footer and login */
.app-footer {
  margin-left: var(--app-sidebar-w);
  padding: 10px var(--app-page-pad-x) 18px 0;
  color: var(--app-muted);
  font-size: 12px;
}

.iti {
  width: 100%;
}

.login-page {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--app-login-overlay);
}

.login-card {
  width: min(100%, 380px);
  padding: 26px;
  border: 0;
  border-radius: var(--app-radius-xl);
  background: var(--app-panel-bg);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.login-brand {
  margin-bottom: 20px;
  text-align: center;
}

.login-brand img {
  width: min(155px, 64%);
  height: auto;
  object-fit: contain;
}

.login-card h1 {
  margin: 0 0 6px;
  color: var(--app-text);
  font-size: 23px;
  font-weight: 800;
  text-align: center;
}

.login-card p {
  margin: 0 0 18px;
  color: var(--app-muted);
  font-size: 13px;
  text-align: center;
}

.toggle-password {
  cursor: pointer;
  border-color: var(--app-border);
  border-radius: 0 10px 10px 0;
  background: var(--app-surface-soft);
  color: var(--app-muted);
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-out;
}

.loading.show {
  opacity: 1;
  pointer-events: auto;
}

.loading-logo {
  width: 80%;
  max-width: 400px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.loading-gif {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.loading-progress {
  width: 300px;
  height: 4px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(252, 224, 44, 0.2);
}

.loading-progress-bar {
  width: 0;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #FCE02C 0%, #FCE02C 100%);
  box-shadow: 0 0 20px rgba(252, 224, 44, 0.8);
}

.loading.show .loading-progress-bar {
  animation: loadProgress 3s ease-out forwards;
}

@keyframes loadProgress {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .loading-logo {
    width: 90%;
  }

  .loading-progress {
    width: 70%;
  }
}

/* Responsive */
@media (max-width: 1399.98px) {
  .dashboard-metric {
    padding-inline: 28px;
  }
}

@media (max-width: 1199px) {
  .main-content {
    margin-left: 0;
    padding: 72px 14px 22px;
  }

  .sidebar-mobile-toggle,
  .sidebar-close {
    display: inline-flex;
  }

  .app-sidebar {
    inset: 10px auto 10px 10px;
    width: min(286px, calc(100vw - 20px));
    transform: translateX(-115%);
    transition: transform 0.25s ease;
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1020;
    display: block;
    background: var(--app-backdrop);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }

  .app-footer {
    margin-left: 0;
    padding: 10px 14px 18px;
  }

  .dashboard-metrics-strip {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-workspace {
    grid-template-columns: 1fr;
  }

  .dashboard-client-panel {
    box-shadow: inset 0 1px 0 rgba(252, 224, 44, 0.08);
  }

  .richieste-toolbar {
    width: 100%;
    grid-template-columns: 1fr minmax(180px, 240px) repeat(3, auto);
  }
}

@media (max-width: 991.98px) {

  .richieste-toolbar {
    grid-template-columns: 1fr;
  }

  .richieste-search {
    width: 100%;
  }

  .compact-search-toolbar {
    width: 100%;
  }

  .compact-search-toolbar .richieste-search,
  .compact-search-toolbar:hover .richieste-search,
  .compact-search-toolbar:focus-within .richieste-search,
  .compact-search-toolbar.has-value .richieste-search {
    width: 100%;
  }

  .compact-search-toolbar .form-control {
    opacity: 1;
  }

  .richieste-card {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .app-card {
    padding: 16px;
  }

  .app-card-header {
    margin-bottom: 14px;
    padding-bottom: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .app-card-header-actions {
    width: 100%;
    margin-left: 0;
    align-items: stretch;
    flex-direction: column;
  }

  .app-card-header .btn {
    width: 100%;
  }

  .team-photo-field {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-hero {
    min-height: 220px;
    padding: 28px 22px;
  }

  .dashboard-shell {
    background:
      linear-gradient(180deg, rgba(13, 18, 20, 0.05) 0%, rgba(13, 18, 20, 0.35) 190px, rgba(13, 18, 20, 0.96) 340px),
      linear-gradient(90deg, rgba(3, 3, 5, 0.94) 0%, rgba(3, 3, 5, 0.55) 54%, rgba(3, 3, 5, 0.18) 100%),
      var(--dash-hero-image) top center / auto 340px no-repeat,
      var(--app-body-bg);
  }

  .dashboard-hero h1 {
    font-size: 38px;
  }

  .dashboard-metrics-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-metric:not(:last-child)::after {
    display: none;
  }

  .dashboard-metric {
    box-shadow: inset 0 -1px 0 rgba(252, 224, 44, 0.08);
  }

  .dashboard-activity-panel,
  .dashboard-client-panel {
    padding: 28px 22px;
  }

  .dashboard-panel-header {
    flex-direction: column;
  }

  .dashboard-timeline-row {
    grid-template-columns: 1fr;
  }

  .dashboard-status {
    justify-self: start;
  }

}

.card-action-bar {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--app-border-soft);
}

.card-action-btn {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border: 1px solid rgba(252, 224, 44, 0.14) !important;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  color: var(--app-primary) !important;
  background: rgba(252, 224, 44, 0.045) !important;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  box-shadow: none !important;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

.card-action-btn:hover,
.card-action-btn:focus,
.card-action-btn:active {
  border-color: rgba(252, 224, 44, 0.7) !important;
  background: var(--app-primary) !important;
  color: var(--app-active-text) !important;
  transform: translateY(-2px);
}

.card-action-btn i,
.card-action-btn span {
  margin: 0 !important;
  font-size: 15px;
  line-height: 1;
}

.card-action-task {
  color: var(--app-primary) !important;
  background: rgba(252, 224, 44, 0.08) !important;
}

.card-action-edit {
  color: #FCE02C !important;
  background: rgba(252, 224, 44, 0.055) !important;
}

.card-action-edit:hover,
.card-action-edit:focus,
.card-action-edit:active {
  color: var(--app-active-text) !important;
}

.card-action-delete {
  border-color: rgba(252, 224, 44, 0.28) !important;
  color: #FCE02C !important;
  background: rgba(252, 224, 44, 0.08) !important;
}

.card-action-delete:hover,
.card-action-delete:focus,
.card-action-delete:active {
  border-color: rgba(252, 224, 44, 0.8) !important;
  background: var(--app-danger) !important;
  color: #fff !important;
}

/* =========================
   LOGIN PLANETS BACKGROUND
========================= */

.login-page {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

#login-planet-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

#login-planet-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(252, 224, 44, 0.08) 0%, rgba(0, 0, 0, 0.1) 35%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.78));
}

.login-card {
  position: relative;
  z-index: 5;
  width: min(420px, calc(100% - 32px));
  padding: 38px 34px;
  border: 1px solid rgba(252, 224, 44, 0.24);
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 0 45px rgba(252, 224, 44, 0.12);
  text-align: center;
}

.login-brand img {
  max-width: 190px;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.login-card h1 {
  color: #FCE02C;
  font-size: 2rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.login-card .form-label {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.login-card .form-control {
  min-height: 48px;
  border-radius: 0;
  border: 1px solid rgba(252, 224, 44, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.login-card .form-control:focus {
  border-color: #FCE02C;
  box-shadow: 0 0 0 0.2rem rgba(252, 224, 44, 0.15);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.login-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.login-card .input-group-text {
  border-radius: 0;
  border: 1px solid rgba(252, 224, 44, 0.24);
  background: rgba(252, 224, 44, 0.12);
  color: #FCE02C;
  cursor: pointer;
}

.login-help-link {
  color: var(--app-primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.login-help-link:hover,
.login-help-link:focus {
  color: #fff3a0;
  text-decoration: underline;
}

.recovery-card {
  max-width: 480px;
}

.btn-app-primary {
  min-height: 48px;
  border-radius: 0;
  border: 1px solid #FCE02C;
  background: #FCE02C;
  color: #000;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-app-primary:hover {
  background: transparent;
  color: #FCE02C;
  border-color: #FCE02C;
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #000;
}

.loading.show {
  display: flex;
}

.loading-logo {
  width: 80%;
  max-width: 360px;
  margin-bottom: 30px;
}

.loading-gif {
  width: 100%;
  height: auto;
  display: block;
}

.loading-progress {
  width: 280px;
  max-width: 70vw;
  height: 4px;
  background: rgba(252, 224, 44, 0.18);
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  width: 0;
  background: #FCE02C;
  animation: loginLoadProgress 4s ease-out forwards;
}

.loading-text {
  color: #FCE02C;
  margin-top: 22px;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

@keyframes loginLoadProgress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .login-card {
    padding: 30px 24px;
  }

  .login-brand img {
    max-width: 160px;
  }

  .login-card h1 {
    font-size: 1.7rem;
  }
}

/* Quando il login Ã¨ corretto, non mostrare piÃ¹ la card */
.login-page.login-success .login-card {
  display: none !important;
}

/* Quando il login Ã¨ corretto, il loading deve essere giÃ  visibile prima del JS */
.login-page.login-success .loading {
  display: flex !important;
}

/* Evita qualsiasi flash visivo della card */
.login-page.login-success {
  pointer-events: none;
}

/* Login completato: mostra solo il loading */
.login-page.login-success .login-card {
  display: none !important;
}

.login-page.login-success .loading {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Loading stabile, senza scatti */
.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #000;
}

.loading.show {
  display: flex;
}

.loading-logo {
  width: 80%;
  max-width: 360px;
  min-height: 160px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-gif {
  width: 100%;
  height: auto;
  display: block;
}

.loading-progress {
  width: 280px;
  max-width: 70vw;
  height: 4px;
  background: rgba(252, 224, 44, 0.18);
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  width: 0;
  background: #FCE02C;
  animation: loginLoadProgress 3s ease-out forwards;
}

.loading-text {
  min-height: 24px;
  color: #FCE02C;
  margin-top: 22px;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

@keyframes loginLoadProgress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* =========================
   DASHBOARD REBALANCE
   Riduzione altezze, font e spaziature
========================= */

body.dashboard-page .main-content {
  height: 100vh;
  overflow: hidden;
}

/* Hero piÃ¹ compatto */
.dashboard-hero {
  min-height: 170px;
  padding: 28px 38px 22px;
  align-items: flex-end;
}

.dashboard-hero-eyebrow {
  font-size: 13px;
  line-height: 1.2;
}

.dashboard-hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(38px, 3.2vw, 54px);
  line-height: 0.95;
  font-weight: 500;
}

.dashboard-hero-date {
  font-size: 13px;
  gap: 8px;
}

/* Fascia KPI piÃ¹ bassa e meno invadente */
.dashboard-metrics-strip {
  min-height: 118px;
  align-items: stretch;
}

.dashboard-metric {
  min-height: 96px;
  padding: 18px 34px;
  gap: 18px;
}

.dashboard-metric:not(:last-child)::after {
  top: 24px;
  bottom: 24px;
}

/* Icone KPI leggermente piÃ¹ piccole */
.dashboard-metric-icon {
  width: 48px;
  height: 48px;
  font-size: 22px;
  background: rgba(252, 224, 44, 0.075);
}

/* Numeri KPI ridotti */
.dashboard-metric strong {
  font-size: 32px;
  line-height: 0.95;
  font-weight: 500;
}

/* Testi KPI piÃ¹ equilibrati */
.dashboard-metric span {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.15;
}

.dashboard-metric small {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.2;
}

/* Area sotto meno alta e piÃ¹ leggibile */
.dashboard-workspace {
  min-height: calc(100vh - 288px);
  grid-template-columns: minmax(0, 1.38fr) minmax(340px, 0.62fr);
}

/* Pannelli meno larghi internamente */
.dashboard-activity-panel,
.dashboard-client-panel {
  padding: 34px 42px;
}

/* Header sezioni piÃ¹ compatto */
.dashboard-panel-header {
  margin-bottom: 28px;
  gap: 18px;
}

.dashboard-panel-header h2 {
  font-size: 28px;
  line-height: 1.05;
}

.dashboard-panel-header h2::after {
  width: 40px;
  height: 2px;
  margin-top: 12px;
}

/* Bottone task meno pesante */
.dashboard-outline-action {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

/* Empty state piÃ¹ centrato e meno dispersivo */
.dashboard-activity-timeline {
  min-height: 230px;
  padding-left: 28px;
}

.dashboard-empty-state {
  min-height: 200px;
  gap: 7px;
}

.dashboard-empty-icon {
  width: 48px;
  height: 48px;
  font-size: 22px;
}

.dashboard-empty-state p {
  font-size: 14px;
}

.dashboard-empty-state small {
  font-size: 12px;
}

/* Clienti in evidenza piÃ¹ ordinati */
.dashboard-client-item {
  min-height: 68px;
  grid-template-columns: 46px minmax(0, 1fr) 16px;
  gap: 16px;
}

.dashboard-client-avatar {
  width: 42px;
  height: 42px;
  font-size: 15px;
}

.dashboard-client-main strong {
  font-size: 15px;
}

.dashboard-client-main small {
  margin-top: 5px;
  font-size: 12px;
}

/* Link lista clienti piÃ¹ leggero */
.dashboard-section-link {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

/* Responsive intermedio */
@media (max-width: 1399.98px) {
  .dashboard-hero {
    min-height: 160px;
    padding: 24px 34px 20px;
  }

  .dashboard-hero h1 {
    font-size: clamp(36px, 3vw, 50px);
  }

  .dashboard-metric {
    padding-inline: 28px;
  }

  .dashboard-metric strong {
    font-size: 30px;
  }

  .dashboard-metric-icon {
    width: 46px;
    height: 46px;
    font-size: 21px;
  }

  .dashboard-activity-panel,
  .dashboard-client-panel {
    padding: 32px 36px;
  }
}

/* Mobile/tablet */
@media (max-width: 767px) {
  .dashboard-hero {
    min-height: 165px;
    padding: 26px 22px 20px;
  }

  .dashboard-hero h1 {
    font-size: 36px;
  }

  .dashboard-metrics-strip {
    min-height: auto;
  }

  .dashboard-metric {
    min-height: 82px;
    padding: 18px 22px;
  }

  .dashboard-metric strong {
    font-size: 28px;
  }

  .dashboard-panel-header h2 {
    font-size: 25px;
  }

  .dashboard-activity-panel,
  .dashboard-client-panel {
    padding: 28px 22px;
  }
}

/* =========================
   INS CLIENTI REBALANCE
   Allineamento form cliente al nuovo stile
========================= */

.form-entry-card {
  min-height: auto !important;
}

.cliente-choice-grid {
  margin: 0 0 22px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--app-border-soft);
}

.cliente-choice-grid .choice-card {
  min-width: 170px;
}

.cliente-choice-grid .choice-card span {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid rgba(252, 224, 44, 0.08);
  background: rgba(252, 224, 44, 0.045);
}

.cliente-choice-grid .choice-card input:checked+span {
  border-color: rgba(252, 224, 44, 0.42);
  background: rgba(252, 224, 44, 0.14);
  color: var(--app-primary);
}

.form-entry-card .richieste-card-inner {
  padding: 24px;
}

.form-entry-card .row {
  align-items: end;
}

.form-entry-card label,
.form-entry-card .form-label {
  margin-bottom: 7px;
  color: rgba(252, 224, 44, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.form-entry-card .form-control,
.form-entry-card .form-select,
.form-entry-card .input-group-text {
  min-height: 42px;
}

.form-entry-card .btn-warning {
  width: 100%;
  min-height: 42px;
  background: rgba(252, 224, 44, 0.16);
  color: var(--app-primary);
  border: 1px solid rgba(252, 224, 44, 0.28);
}

.form-entry-card .btn-warning:hover {
  background: var(--app-primary);
  color: var(--app-active-text);
}

.form-entry-card .richieste-status,
.form-entry-card .richieste-date {
  font-size: 12px;
}

.form-entry-card .form-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--app-border-soft);
}

/* Suggerimenti comuni: non devono sembrare input aggiuntivi */
.form-entry-card [id^="suggestions_"] {
  width: 100%;
  margin-top: 4px;
  min-height: 0;
  padding: 4px;
}

/* Intl telephone input allineato agli altri campi */
.form-entry-card .iti {
  width: 100%;
}

.form-entry-card .iti input {
  width: 100%;
}

/* Mobile */
@media (max-width: 767px) {
  .cliente-choice-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cliente-choice-grid .choice-card {
    min-width: 0;
  }

  .form-entry-card .richieste-card-inner {
    padding: 18px;
  }
}

/* =========================
   SIDEBAR REBALANCE
   Logo, profilo e menu piÃ¹ puliti
========================= */

.app-sidebar {
  background:
    linear-gradient(180deg, rgba(13, 18, 20, 0.98), rgba(3, 3, 5, 0.98));
}

/* Logo piÃ¹ alto e meno â€œcadutoâ€ */
.sidebar-brand {
  min-height: 104px;
  padding: 12px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo {
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sidebar-logo img {
  max-width: 190px;
  max-height: 84px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Profilo piÃ¹ compatto e integrato */
.sidebar-user {
  margin: 4px 14px 18px;
  padding: 12px 10px;
  gap: 10px;
  border: 1px solid rgba(252, 224, 44, 0.08);
  background: rgba(252, 224, 44, 0.035);
}

.sidebar-user img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(252, 224, 44, 0.32);
  box-shadow: 0 0 18px rgba(252, 224, 44, 0.08);
}

.sidebar-user strong {
  font-size: 14px;
  line-height: 1.1;
}

.sidebar-user span {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(252, 224, 44, 0.62);
}

/* Menu piÃ¹ asciutto */
.sidebar-nav {
  padding: 0 10px;
}

.sidebar-link,
.sidebar-footer a {
  min-height: 44px;
  padding: 10px 14px;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.sidebar-link i,
.sidebar-footer a i {
  width: 18px;
  font-size: 14px;
}

/* Active meno enorme ma sempre evidente */
.sidebar-link.active,
.sidebar-submenu a.active {
  background: var(--app-primary);
  color: var(--app-active-text);
  box-shadow: 0 10px 26px rgba(252, 224, 44, 0.2);
}

.sidebar-link.active i {
  color: var(--app-active-text);
}

/* Piccola separazione dopo Task */
.sidebar-nav>.sidebar-group:first-of-type {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(252, 224, 44, 0.07);
}

/* Gruppi menu piÃ¹ ordinati */
.sidebar-group {
  margin-bottom: 2px;
}

.sidebar-collapse-btn {
  position: relative;
}

.sidebar-chevron {
  font-size: 13px !important;
  opacity: 0.9;
}

/* Sottomenu meno dispersivo */
.sidebar-submenu {
  margin: 2px 0 10px 25px;
  padding: 4px 0 4px 12px;
  border-left: 1px solid rgba(252, 224, 44, 0.16);
}

.sidebar-submenu a {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(252, 224, 44, 0.68);
}

.sidebar-submenu a:hover {
  color: var(--app-primary);
  background: rgba(252, 224, 44, 0.06);
}

/* Footer piÃ¹ compatto e meno â€œstaccatoâ€ */
.sidebar-footer {
  padding: 12px 10px 16px;
  border-top: 1px solid rgba(252, 224, 44, 0.08);
  background: rgba(0, 0, 0, 0.14);
}

.sidebar-footer a {
  min-height: 42px;
}

.sidebar-footer .logout {
  color: rgba(252, 224, 44, 0.9);
}

/* Su schermi bassi il logo si compatta ancora */
@media (max-height: 760px) {
  .sidebar-brand {
    min-height: 92px;
    padding: 10px 18px 8px;
  }

  .sidebar-logo {
    height: 74px;
  }

  .sidebar-logo img {
    max-width: 172px;
    max-height: 74px;
  }

  .sidebar-user {
    margin-bottom: 12px;
  }

  .sidebar-link,
  .sidebar-footer a {
    min-height: 40px;
  }
}

/* =========================
   DASHBOARD TASK IN LAVORAZIONE
   Hover Mockup 1 - Soft Outline Glow
========================= */

.dashboard-activity-timeline {
  padding-left: 0;
}

.dashboard-activity-timeline::before {
  display: none;
}

.dashboard-task-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 18px 18px 18px 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--app-text);
  text-decoration: none;
  box-shadow: none;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.dashboard-task-row > * {
  position: relative;
  z-index: 1;
}

/* Barra luminosa verticale mostrata solo al passaggio del mouse */
.dashboard-task-row::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  height: auto;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(
    180deg,
    rgba(252, 224, 44, 0.32) 0%,
    #FCE02C 24%,
    #FCE02C 76%,
    rgba(252, 224, 44, 0.32) 100%
  );
  box-shadow: 0 0 15px rgba(252, 224, 44, 0.75);
  opacity: 0;
  transform: scaleY(0.55);
  transform-origin: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* Riflesso interno molto leggero: evita il vecchio blocco giallo pieno */
.dashboard-task-row::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(252, 224, 44, 0.07) 0%,
    rgba(252, 224, 44, 0.025) 22%,
    transparent 52%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
}

.dashboard-task-row:hover,
.dashboard-task-row:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(252, 224, 44, 0.52);
  background: linear-gradient(
    90deg,
    rgba(252, 224, 44, 0.055) 0%,
    rgba(31, 31, 31, 0.96) 22%,
    rgba(27, 27, 27, 0.98) 100%
  );
  color: #FCE02C;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(252, 224, 44, 0.09),
    inset 0 1px 0 rgba(252, 224, 44, 0.08);
  outline: none;
}

.dashboard-task-row:hover::before,
.dashboard-task-row:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.dashboard-task-row:hover::after,
.dashboard-task-row:focus-visible::after {
  opacity: 1;
}

.dashboard-task-row:hover strong,
.dashboard-task-row:focus-visible strong {
  color: #FFF3A0;
}

.dashboard-task-row:hover p,
.dashboard-task-row:focus-visible p {
  color: rgba(252, 224, 44, 0.88);
}

.dashboard-task-row:hover .dashboard-status,
.dashboard-task-row:focus-visible .dashboard-status {
  border-color: rgba(252, 224, 44, 0.24);
  background: rgba(252, 224, 44, 0.13);
  box-shadow: 0 0 14px rgba(252, 224, 44, 0.07);
}

.dashboard-task-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-task-meta > span,
.dashboard-operator-chip {
  min-height: 24px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(252, 224, 44, 0.08);
  background: rgba(252, 224, 44, 0.04);
  color: rgba(252, 224, 44, 0.72);
  font-size: 12px;
  line-height: 1;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}

.dashboard-task-row:hover .dashboard-task-meta > span,
.dashboard-task-row:hover .dashboard-operator-chip,
.dashboard-task-row:focus-visible .dashboard-task-meta > span,
.dashboard-task-row:focus-visible .dashboard-operator-chip {
  border-color: rgba(252, 224, 44, 0.18);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(252, 224, 44, 0.92);
}

.dashboard-task-operators {
  gap: 6px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.dashboard-operator-chip {
  gap: 7px;
}

.dashboard-operator-avatar {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #FCE02C;
  border-radius: 50% !important;
  background: #202020;
}

.dashboard-operator-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50% !important;
}

.dashboard-operator-initials {
  color: #FCE02C;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.dashboard-task-meta i {
  color: var(--app-primary);
  font-size: 12px;
}

.dashboard-task-row .dashboard-status {
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

@media (max-width: 767.98px) {
  .dashboard-task-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 14px 16px 22px;
  }

  .dashboard-task-row .dashboard-status {
    justify-self: start;
  }
}

/* =========================
   FINAL BLACK/YELLOW UI SYSTEM
========================= */

body,
body.app {
  background: #202020;
  color: var(--app-text);
}

.app-sidebar {
  background: #202020;
  box-shadow: inset -1px 0 0 #FCE02C;
}

.sidebar-user {
  padding: 14px;
  border: 1px solid rgba(252, 224, 44, 0.42);
}

.sidebar-link,
.sidebar-footer a,
.dashboard-outline-action,
.dashboard-section-link,
.btn,
button {
  border-radius: 0 !important;
}

.sidebar-link.active {
  color: #202020;
  background: var(--app-primary);
}

.sidebar-link:not(.active):hover,
.sidebar-footer a:hover,
.sidebar-submenu a:not(.active):hover {
  color: #FCE02C;
  background: rgba(252, 224, 44, 0.08);
}

.sidebar-link:not(.active):hover i,
.sidebar-footer a:hover i,
.sidebar-submenu a:not(.active):hover i {
  color: #FCE02C;
}

.app-card,
.card,
.richieste-modern,
.dashboard-activity-panel,
.dashboard-client-panel,
.task-list-card {
  border: 1px solid rgba(252, 224, 44, 0.18);
  background: #202020;
  box-shadow: none;
}

.app-card-title h2,
.card-title,
.dashboard-panel-header h2,
.modal-title,
h1,
h2,
h3 {
  color: var(--app-primary);
}

.app-card-title p,
.text-muted,
.form-text {
  color: var(--app-muted) !important;
}

.form-label,
label {
  color: var(--app-primary);
  font-weight: 800;
}

.form-control,
.form-select,
.input-group-text,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 44px;
  border: 1px solid rgba(252, 224, 44, 0.78) !important;
  border-radius: 0 !important;
  background: #202020 !important;
  color: var(--app-text) !important;
  box-shadow: none !important;
}

.form-control::placeholder,
.select2-search__field::placeholder {
  color: #FCE02C !important;
  opacity: 1;
}

.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--app-primary) !important;
  outline: 0;
  box-shadow: 0 0 0 1px rgba(252, 224, 44, 0.42) !important;
}

.btn,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-success,
.dashboard-outline-action {
  min-height: 42px;
  border: 1px solid rgba(252, 224, 44, 0.78) !important;
  background: transparent;
  color: var(--app-primary) !important;
  font-weight: 800;
}

.btn:hover,
.btn:focus,
.dashboard-outline-action:hover {
  background: var(--app-primary) !important;
  color: #202020 !important;
}

.btn-primary,
.btn-app-primary {
  background: var(--app-primary) !important;
  color: #202020 !important;
}

.modal-backdrop.show {
  opacity: 0.78;
}

.modal-dialog {
  max-width: min(1180px, calc(100vw - 64px));
}

.modal-content {
  border: 1px solid rgba(252, 224, 44, 0.24) !important;
  border-radius: 0 !important;
  background: #202020 !important;
  color: var(--app-text);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.82) !important;
}

.modal-header {
  min-height: 76px;
  padding: 24px 28px 12px;
  border-bottom: 0;
  background: #202020 !important;
}

.modal-body {
  padding: 20px 28px 28px;
  background: #202020 !important;
}

.modal-footer {
  padding: 0 28px 24px;
  border-top: 0;
  background: #202020 !important;
}

.modal-title {
  color: var(--app-primary) !important;
  font-size: 1.55rem;
  font-weight: 900;
}

.modal .btn-close {
  width: 34px;
  height: 34px;
  position: relative;
  flex: 0 0 34px;
  padding: 0;
  border: 0;
  background: none !important;
  opacity: 1;
}

.modal .btn-close::before,
.modal .btn-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--app-primary);
  transform-origin: center;
}

.modal .btn-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal .btn-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal .btn-close:hover::before,
.modal .btn-close:hover::after {
  background: #FCE02C;
}

.modal .row {
  --bs-gutter-x: 22px;
  --bs-gutter-y: 20px;
}

.modal textarea.form-control {
  min-height: 138px;
}

.modal .iti {
  width: 100%;
}

.modal .iti__selected-dial-code {
  color: var(--app-primary);
}

.modal .iti__country-list {
  border-color: rgba(252, 224, 44, 0.78);
  background: #202020;
  color: var(--app-text);
}

.modal .iti__country.iti__highlight {
  background: rgba(252, 224, 44, 0.14);
}

.select2-dropdown {
  border: 1px solid rgba(252, 224, 44, 0.78);
  background: #202020;
  color: var(--app-text);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--selected {
  background: var(--app-primary);
  color: #202020;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  border: 1px solid rgba(252, 224, 44, 0.38);
  background: rgba(252, 224, 44, 0.12);
  color: var(--app-text);
}

/* =========================
   FINAL FLAT PALETTE OVERRIDE
   Black: #202020 | Yellow: #FCE02C
========================= */

html,
body,
body.app,
.main-content,
.app-container,
.dashboard-shell,
.app-sidebar,
.app-card,
.card,
.card-body,
.modal-content,
.modal-header,
.modal-body,
.modal-footer,
.dropdown-menu,
.list-group-item,
.dashboard-activity-panel,
.dashboard-client-panel,
.login-page,
.login-card {
  background: #202020 !important;
  background-color: #202020 !important;
  background-image: none !important;
  color: var(--app-text);
  box-shadow: none !important;
}

.dashboard-shell {
  background-image: var(--dash-hero-image) !important;
  background-color: #202020 !important;
  background-size: cover !important;
  background-position: center -180px !important;
  background-repeat: no-repeat !important;
}

.dashboard-hero-content {
  width: 100%;
  padding-left: 0;
}

.dashboard-hero-content h1 {
  margin: 0 0 14px !important;
  text-align: left;
  transform: none;
}

.dashboard-hero-meta {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.dashboard-hero-eyebrow {
  margin: 0;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.15;
  font-weight: 700;
}

.dashboard-workspace,
.dashboard-activity-panel,
.dashboard-client-panel {
  border: 0 !important;
  box-shadow: none !important;
}

.dashboard-client-panel {
  border-left: 1px solid rgba(252, 224, 44, 0.28) !important;
}

.dashboard-hero-date {
  justify-self: end;
  margin-right: 34px;
}

@media (max-width: 767px) {
  .dashboard-hero-content {
    padding-left: 0;
  }

  .dashboard-hero-content h1 {
    transform: none;
  }

  .dashboard-hero-eyebrow {
    font-size: 18px;
  }

  .dashboard-hero-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dashboard-hero-date {
    justify-self: start;
    margin-right: 0;
  }

  .dashboard-client-panel {
    border-left: 0 !important;
    border-top: 1px solid rgba(252, 224, 44, 0.28) !important;
  }
}

.form-card-meta {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  text-align: right;
}

.form-control,
.form-select,
.input-group-text,
textarea,
input,
select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.select2-dropdown {
  border-color: #FCE02C !important;
  background: #202020 !important;
  background-color: #202020 !important;
  background-image: none !important;
  color: var(--app-text) !important;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder,
.select2-search__field::placeholder {
  color: #FCE02C !important;
  opacity: 1 !important;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder,
.select2-search__field::-webkit-input-placeholder {
  color: #FCE02C !important;
  opacity: 1 !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder,
.form-control::-moz-placeholder,
.select2-search__field::-moz-placeholder {
  color: #FCE02C !important;
  opacity: 1 !important;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder,
.form-control:-ms-input-placeholder,
.select2-search__field:-ms-input-placeholder {
  color: #FCE02C !important;
  opacity: 1 !important;
}

input::-ms-input-placeholder,
textarea::-ms-input-placeholder,
.form-control::-ms-input-placeholder,
.select2-search__field::-ms-input-placeholder {
  color: #FCE02C !important;
  opacity: 1 !important;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="file"],
.form-select,
.form-select option,
.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__placeholder,
.select2-container--default .select2-search--inline .select2-search__field {
  color: #FCE02C !important;
  opacity: 1 !important;
}

input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="time"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit {
  color: #FCE02C !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(82%) sepia(98%) saturate(631%) hue-rotate(350deg) brightness(103%) contrast(98%);
  opacity: 1;
}

input[type="file"]::file-selector-button {
  border: 1px solid #FCE02C !important;
  background: #202020 !important;
  color: #FCE02C !important;
  box-shadow: none !important;
}

input[type="file"]::-webkit-file-upload-button {
  border: 1px solid #FCE02C !important;
  background: #202020 !important;
  color: #FCE02C !important;
  box-shadow: none !important;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
  background: #FCE02C !important;
  color: #202020 !important;
}

.richieste-date,
.richieste-date i,
.richieste-date svg,
.richieste-date.d-flex,
.richieste-date.d-flex i,
.richieste-date.d-flex svg {
  color: #FCE02C !important;
}

#cliente-edit-modal .modal-content,
#contratto-edit-modal .modal-content {
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

#cliente-edit-modal #cliente-edit-form,
#contratto-edit-modal #contratto-edit-form {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

#cliente-edit-modal .modal-body,
#contratto-edit-modal .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
}

#cliente-edit-modal .modal-footer,
#contratto-edit-modal .modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex !important;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 28px 24px;
  background: #202020 !important;
}

#cliente-edit-modal label,
#cliente-edit-modal .form-label,
#cliente-edit-modal .iti__selected-dial-code {
  color: #FCE02C !important;
}

#cliente-edit-modal .form-control,
#cliente-edit-modal .form-select,
#cliente-edit-modal textarea,
#cliente-edit-modal input,
#cliente-edit-modal select,
#cliente-edit-modal .iti input {
  border-color: #FCE02C !important;
  background: #202020 !important;
  background-color: #202020 !important;
  color: #FCE02C !important;
  opacity: 1 !important;
}

#cliente-edit-modal .form-select option {
  background: #202020 !important;
  color: #FCE02C !important;
}

#cliente-edit-modal .btn-app-primary,
#cliente-edit-modal #cliente-edit-save {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  visibility: visible !important;
  opacity: 1 !important;
  border: 1px solid #FCE02C !important;
  background: #FCE02C !important;
  color: #202020 !important;
}

.btn,
button,
.dashboard-outline-action,
.dashboard-section-link {
  border-color: #FCE02C !important;
  background-image: none !important;
}

.btn-primary,
.btn-app-primary,
.sidebar-link.active,
.profile-tabs .nav-link.active,
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--selected {
  background: #FCE02C !important;
  background-color: #FCE02C !important;
  background-image: none !important;
  color: #202020 !important;
}

.app-sidebar .sidebar-link.active,
.app-sidebar .sidebar-link.active:hover {
  background: #FCE02C !important;
  background-color: #FCE02C !important;
  color: #202020 !important;
}

.app-sidebar .sidebar-link.active i,
.app-sidebar .sidebar-link.active:hover i {
  color: #202020 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.app-sidebar .sidebar-link:not(.active):hover,
.app-sidebar .sidebar-footer a:hover,
.app-sidebar .sidebar-submenu a:not(.active):hover {
  background: rgba(252, 224, 44, 0.08) !important;
  background-color: rgba(252, 224, 44, 0.08) !important;
  color: #FCE02C !important;
}

.app-sidebar .sidebar-link:not(.active):hover i,
.app-sidebar .sidebar-footer a:hover i,
.app-sidebar .sidebar-submenu a:not(.active):hover i {
  color: #FCE02C !important;
}

.dataTables_wrapper .pagination,
.pagination {
  gap: 8px;
}

.dataTables_wrapper .pagination .page-link,
.dataTables_wrapper .page-link,
.pagination .page-link {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 14px !important;
  border: 1px solid #FCE02C !important;
  border-radius: 0 !important;
  background: #FCE02C !important;
  color: #202020 !important;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1 !important;
  box-shadow: none !important;
}

.dataTables_wrapper .pagination .page-link:hover,
.dataTables_wrapper .pagination .page-link:focus,
.dataTables_wrapper .page-link:hover,
.dataTables_wrapper .page-link:focus,
.pagination .page-link:hover,
.pagination .page-link:focus {
  border-color: #FCE02C !important;
  background: #FCE02C !important;
  color: #202020 !important;
  box-shadow: none !important;
}

.dataTables_wrapper .pagination .page-item.active .page-link,
.dataTables_wrapper .page-item.active .page-link,
.pagination .page-item.active .page-link {
  border-color: #FCE02C !important;
  background: #FCE02C !important;
  color: #202020 !important;
  box-shadow: none !important;
}

.dataTables_wrapper .pagination .page-item.disabled .page-link,
.dataTables_wrapper .page-item.disabled .page-link,
.pagination .page-item.disabled .page-link {
  border-color: #FCE02C !important;
  background: #FCE02C !important;
  color: #202020 !important;
  opacity: 0.55;
}

.login-page .login-card {
  width: min(360px, calc(100% - 32px)) !important;
  padding: 26px 22px !important;
  border-color: transparent !important;
  border-width: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.login-page .login-card .form-control,
.login-page .login-card .input-group-text {
  min-height: 38px !important;
  padding: 7px 12px !important;
  background: rgba(32, 32, 32, 0.56) !important;
  background-color: rgba(32, 32, 32, 0.56) !important;
  font-size: 0.9rem !important;
}

.login-page .login-card .btn-app-primary {
  min-height: 40px !important;
  padding: 8px 14px !important;
  font-size: 0.92rem !important;
}

.login-page .login-card .mb-3 {
  margin-bottom: 0.75rem !important;
}

.login-page .login-card .mb-4 {
  margin-bottom: 1rem !important;
}

.login-page .login-brand img {
  width: min(235px, 68vw) !important;
  max-width: none !important;
  margin-bottom: 22px !important;
}

.modal-backdrop.show {
  background: #202020 !important;
  opacity: 0.86 !important;
}

.app-card,
.card,
.modal-content,
.modal-header,
.modal-body,
.modal-footer,
.form-control,
.form-select,
.input-group-text,
.btn,
.dropdown-menu,
.select2-dropdown,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.dashboard-activity-panel,
.dashboard-client-panel,
.dashboard-metrics-strip,
.dashboard-workspace {
  background-image: none !important;
}

/* =========================
   TASK MODULE
   Consolidated from task/task.css
========================= */

.task-page {
  --task-bg: var(--app-body-bg);
  --task-panel: #202020;
  --task-surface: var(--app-surface);
  --task-surface-soft: var(--app-surface-soft);
  --task-text: var(--app-text);
  --task-muted: var(--app-muted);
  --task-primary: var(--app-primary);
  --task-active-text: var(--app-active-text);
  --task-border: var(--app-border-soft);
  width: 100%;
  min-height: 100vh;
  padding: 34px 38px 40px;
  box-sizing: border-box;
  color: var(--task-text);
  background: var(--task-bg);
}

.task-page *,
#task-modal * {
  border-radius: 0 !important;
}

.task-page .btn,
.task-page .form-control,
.task-page .form-select,
.task-page .input-group-text,
#task-modal .btn,
#task-modal .form-control,
#task-modal .form-select,
#task-modal .input-group-text {
  border-color: var(--task-border);
  background-color: var(--task-surface);
  color: var(--task-text);
  box-shadow: none !important;
}

.task-page .form-control::placeholder,
#task-modal .form-control::placeholder {
  color: #FCE02C !important;
  opacity: 1 !important;
}

.task-page .form-control::-webkit-input-placeholder,
#task-modal .form-control::-webkit-input-placeholder,
.task-page .select2-search__field::placeholder,
#task-modal .select2-search__field::placeholder {
  color: #FCE02C !important;
  opacity: 1 !important;
}

.task-page input[type="date"],
.task-page input[type="time"],
.task-page input[type="datetime-local"],
.task-page input[type="file"],
.task-page .form-select,
.task-page .form-select option,
#task-modal input[type="date"],
#task-modal input[type="time"],
#task-modal input[type="datetime-local"],
#task-modal input[type="file"],
#task-modal .form-select,
#task-modal .form-select option,
.task-page .select2-container--default .select2-selection--single .select2-selection__placeholder,
.task-page .select2-container--default .select2-selection--single .select2-selection__rendered,
.task-page .select2-container--default .select2-selection--multiple .select2-selection__placeholder,
.task-page .select2-container--default .select2-search--inline .select2-search__field,
#task-modal .select2-container--default .select2-selection--single .select2-selection__placeholder,
#task-modal .select2-container--default .select2-selection--single .select2-selection__rendered,
#task-modal .select2-container--default .select2-selection--multiple .select2-selection__placeholder,
#task-modal .select2-container--default .select2-search--inline .select2-search__field {
  color: #FCE02C !important;
  opacity: 1 !important;
}

.task-page input[type="date"]::-webkit-datetime-edit,
#task-modal input[type="date"]::-webkit-datetime-edit {
  color: #FCE02C !important;
}

.task-page input[type="file"]::file-selector-button,
#task-modal input[type="file"]::file-selector-button,
.task-page input[type="file"]::-webkit-file-upload-button,
#task-modal input[type="file"]::-webkit-file-upload-button {
  border: 1px solid #FCE02C !important;
  background: #202020 !important;
  color: #FCE02C !important;
  box-shadow: none !important;
}

.task-page input[type="file"]::file-selector-button:hover,
#task-modal input[type="file"]::file-selector-button:hover,
.task-page input[type="file"]::-webkit-file-upload-button:hover,
#task-modal input[type="file"]::-webkit-file-upload-button:hover {
  background: #FCE02C !important;
  color: #202020 !important;
}

.task-page .form-control:focus,
.task-page .form-select:focus,
#task-modal .form-control:focus,
#task-modal .form-select:focus {
  border-color: var(--task-primary);
}

.task-page .btn-outline-primary:hover,
.task-page .btn-outline-dark:hover,
.task-page .btn-outline-secondary:hover,
.task-page .btn-outline-success:hover,
#task-modal .btn-outline-primary:hover,
#task-modal .btn-outline-dark:hover,
#task-modal .btn-outline-secondary:hover,
#task-modal .btn-outline-success:hover,
.task-toolbar-actions .btn.active {
  border-color: transparent;
  background: var(--task-primary);
  color: var(--task-active-text);
}

#btn-task-toggle-view.active {
  border-color: var(--task-border);
  background: var(--task-surface);
  color: var(--task-primary);
}

.task-page .text-muted,
#task-modal .text-muted {
  color: var(--task-muted) !important;
}

.task-hero,
.task-list-card,
#task-modal .modal-content {
  background: var(--task-panel);
  box-shadow: none !important;
}

.task-hero,
.task-list-card {
  border: 0 !important;
}

#task-modal .modal-content {
  border: 1px solid rgba(252, 224, 44, 0.28) !important;
}

.task-hero .card-body {
  padding: 0 0 22px !important;
}

.task-title {
  margin: 0;
  color: var(--task-text);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.task-subtitle,
.kanban-column-hint,
.task-table-desc,
.task-file-meta,
.task-history-meta {
  color: var(--task-muted);
}

.task-toolbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.task-stat {
  min-height: 82px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #2a2a2a;
}

.task-stat-label {
  display: block;
  color: #FCE02C;
  font-size: 0.78rem;
}

.task-stat-value {
  display: block;
  color: var(--task-text);
  font-size: 1.35rem;
  line-height: 1.1;
}

.kanban-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.kanban-column {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0 !important;
  background: var(--task-surface);
  box-shadow: none !important;
}

.kanban-column-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--task-border);
}

.kanban-column-title {
  margin: 0;
  color: var(--task-text);
  font-size: 0.96rem;
  font-weight: 800;
}

.kanban-column-hint {
  margin: 2px 0 0;
  font-size: 0.76rem;
}

.kanban-dropzone {
  flex: 1 1 auto;
  min-height: 220px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.kanban-dropzone.is-over {
  background: rgba(252, 224, 44, 0.08);
  box-shadow: inset 0 0 0 1px var(--task-border);
}

.kanban-empty,
.checklist-empty {
  padding: 22px 12px;
  color: var(--task-muted);
  text-align: center;
  background: var(--task-surface-soft);
}

.task-card {
  padding: 12px;
  cursor: pointer;
  border: 0 !important;
  background: var(--task-panel);
  box-shadow: none !important;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.task-card:hover {
  background: var(--task-surface-soft);
}

.task-card.is-dragging {
  opacity: 0.55;
}

.task-card-title {
  margin: 0;
  color: var(--task-text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}

.task-card-desc {
  margin: 6px 0 9px;
  color: var(--task-muted);
  font-size: 0.84rem;
  line-height: 1.35;
  white-space: pre-line;
}

.task-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.task-meta-chip,
.task-state-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 0;
  color: var(--task-active-text);
  background: var(--task-primary);
  font-size: 0.7rem;
  font-weight: 800;
}

.task-meta-chip.operator,
.task-meta-chip.deadline-overdue,
.task-meta-chip.deadline-today,
.task-meta-chip.deadline-upcoming {
  color: var(--task-text);
  background: var(--task-surface-soft);
}

.task-member-avatar {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--task-primary);
  border-radius: 50% !important;
  background: var(--task-surface);
  color: var(--task-primary);
  font-size: 0.58rem;
  font-weight: 800;
  flex: 0 0 20px;
}

.task-member-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50% !important;
}

.task-list-wrapper {
  margin-top: 10px;
}

.task-list-card {
  overflow: hidden;
}

.task-list-card .dataTables_wrapper {
  padding: 0;
}

.task-table,
.task-table tbody,
.task-table tbody tr,
.task-table tbody td {
  background-color: var(--task-surface);
}

.task-table thead th {
  color: var(--task-muted);
  background: var(--task-surface-soft);
  border-bottom: 1px solid var(--task-border);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.task-table tbody td {
  color: var(--task-text);
  border-top: 1px solid var(--task-border);
  font-size: 0.84rem;
  vertical-align: top;
}

.task-table-row {
  cursor: pointer;
}

.task-table-row:hover {
  background: var(--task-surface-soft);
}

.task-table-title {
  color: var(--task-text);
  font-weight: 800;
}

#task-modal .modal-header,
#task-modal .modal-footer {
  border-color: transparent;
}

#task-modal .modal-body {
  background: #202020;
}

#task-modal {
  --bs-modal-bg: #202020;
  --bs-modal-color: var(--task-text);
  --bs-modal-border-color: transparent;
  --bs-modal-header-border-color: var(--task-border);
  --bs-modal-footer-border-color: var(--task-border);
}

#task-modal .modal-dialog {
  width: min(980px, calc(100vw - 56px));
  max-width: min(980px, calc(100vw - 56px));
  margin: 34px auto;
}

#task-modal .modal-content {
  overflow: hidden;
}

#task-modal .modal-header {
  min-height: 72px;
}

#task-modal .modal-title {
  color: var(--task-primary);
}

#task-modal .modal-body {
  max-height: calc(100vh - 190px);
  overflow-y: auto;
}

#task-modal .row {
  --bs-gutter-x: 18px;
  --bs-gutter-y: 18px;
}

#task-modal .form-label {
  color: var(--task-text);
}

#task-modal .form-control,
#task-modal .form-select,
#task-modal .input-group-text,
#task-modal .select2-container--default .select2-selection--multiple {
  min-height: 43px;
}

#task-modal textarea.form-control {
  min-height: 118px;
}

#task-modal .form-text {
  color: rgba(252, 224, 44, 0.48) !important;
}

#task-modal .task-due-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#task-modal .task-due-quick .btn,
#task-modal #btn-checklist-add {
  min-height: 36px;
  padding: 6px 10px;
}

.task-editor-meta,
.task-extra-card,
.task-history-item,
.task-file-item {
  border: 0 !important;
  background: #202020;
  box-shadow: none !important;
}

.task-editor-meta {
  margin-bottom: 12px;
  padding: 8px 10px;
  color: var(--task-muted);
  font-size: 0.78rem;
}

.task-extra-card {
  padding: 14px;
}

#task-modal .task-extra-card h6 {
  color: var(--task-text);
  font-size: 0.95rem;
  font-weight: 800;
}

.checklist-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #202020;
}

.task-history-list,
.task-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-history-item,
.task-file-item {
  padding: 10px 12px;
  background: #202020;
}

.task-history-head,
.task-file-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.task-history-action,
.task-file-link {
  color: var(--task-text);
  font-weight: 800;
}

.task-file-link {
  text-decoration: none;
}

.kanban-skeleton {
  height: 66px;
  background: #202020;
  border: 1px solid #FCE02C;
}

.task-page .select2-container--default .select2-selection--multiple {
  min-height: 39px;
  border-color: var(--task-border);
  background: var(--task-surface);
}

.task-page .select2-container--default .select2-selection--multiple .select2-selection__choice {
  border: 0;
  color: var(--task-active-text);
  background: var(--task-primary);
}

/* =========================
   SINGLE ACCENT COLOR OVERRIDE
   Accent: #FCE02C only
========================= */

.text-primary,
.text-secondary,
.text-success,
.text-warning,
.text-info,
.text-danger,
.text-muted,
.text-primary-emphasis,
.text-secondary-emphasis,
.text-success-emphasis,
.text-warning-emphasis,
.text-info-emphasis,
.text-danger-emphasis,
.text-dark,
.text-light,
.text-body,
.text-body-secondary,
.text-body-tertiary,
.link-primary,
.link-secondary,
.link-success,
.link-warning,
.link-info,
.link-danger,
.badge,
.richieste-status,
.dashboard-status,
.task-state-badge,
.task-stat-label,
.task-stat-value,
.dataTables_wrapper .dataTables_info,
.table thead th,
.table tbody td,
.table tbody td *,
.card .small,
.card small {
  color: #FCE02C !important;
}

.bg-primary,
.bg-secondary,
.bg-success,
.bg-warning,
.bg-info,
.bg-danger,
.bg-primary-subtle,
.bg-secondary-subtle,
.bg-success-subtle,
.bg-warning-subtle,
.bg-info-subtle,
.bg-danger-subtle,
.bg-dark,
.bg-light,
.text-bg-primary,
.text-bg-secondary,
.text-bg-success,
.text-bg-warning,
.text-bg-info,
.text-bg-danger,
.badge.bg-primary,
.badge.bg-secondary,
.badge.bg-success,
.badge.bg-warning,
.badge.bg-info,
.badge.bg-danger,
.badge.bg-primary-subtle,
.badge.bg-secondary-subtle,
.badge.bg-success-subtle,
.badge.bg-warning-subtle,
.badge.bg-info-subtle,
.badge.bg-danger-subtle,
.badge.text-bg-primary,
.badge.text-bg-secondary,
.badge.text-bg-success,
.badge.text-bg-warning,
.badge.text-bg-info,
.badge.text-bg-danger {
  border-color: #FCE02C !important;
  background: #FCE02C !important;
  background-color: #FCE02C !important;
  color: #202020 !important;
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-warning,
.btn-info,
.btn-danger,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-danger:hover,
.btn-outline-dark:hover {
  border-color: #FCE02C !important;
  background: #FCE02C !important;
  background-color: #FCE02C !important;
  color: #202020 !important;
  box-shadow: none !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-danger,
.btn-outline-dark {
  border-color: #FCE02C !important;
  background: #202020 !important;
  background-color: #202020 !important;
  color: #FCE02C !important;
  box-shadow: none !important;
}

@media (max-width: 1400px) {
  .task-page {
    padding: 28px 28px 34px;
  }

  .kanban-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .task-page {
    padding: 22px 18px 30px;
  }

  .kanban-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .task-page {
    padding: 78px 14px 24px;
  }

  .task-title {
    font-size: 1.3rem;
  }

  .task-toolbar-actions {
    justify-content: flex-start;
  }

  .kanban-grid {
    grid-template-columns: 1fr;
  }

  .kanban-column {
    min-height: 320px;
  }
}


/* =========================
   TASK KANBAN CARDS
   Hover + drag Mockup 1 - Soft Outline Glow
========================= */

.task-page .task-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 14px 14px 14px 20px;
  border: 1px solid rgba(252, 224, 44, 0.08) !important;
  border-radius: 8px !important;
  background: #202020;
  color: var(--task-text);
  box-shadow: none !important;
  cursor: grab;
  transform: translateZ(0);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.18s ease;
}

.task-page .task-card:active {
  cursor: grabbing;
}

.task-page .task-card > * {
  position: relative;
  z-index: 1;
}

/* Barra luminosa laterale, identica al mockup scelto */
.task-page .task-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 8px 0 0 8px !important;
  background: linear-gradient(
    180deg,
    rgba(252, 224, 44, 0.32) 0%,
    #FCE02C 24%,
    #FCE02C 76%,
    rgba(252, 224, 44, 0.32) 100%
  );
  box-shadow: 0 0 15px rgba(252, 224, 44, 0.75);
  opacity: 0;
  transform: scaleY(0.55);
  transform-origin: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* Riflesso interno leggero, senza il vecchio blocco giallo pieno */
.task-page .task-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit !important;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(252, 224, 44, 0.07) 0%,
    rgba(252, 224, 44, 0.025) 26%,
    transparent 58%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
}

.task-page .task-card:hover,
.task-page .task-card:focus-visible,
.task-page .task-card.is-just-moved {
  transform: translateY(-2px);
  border-color: rgba(252, 224, 44, 0.52) !important;
  background: linear-gradient(
    90deg,
    rgba(252, 224, 44, 0.055) 0%,
    rgba(31, 31, 31, 0.97) 24%,
    rgba(27, 27, 27, 0.99) 100%
  );
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(252, 224, 44, 0.09),
    inset 0 1px 0 rgba(252, 224, 44, 0.08) !important;
  outline: none;
}

.task-page .task-card:hover::before,
.task-page .task-card:focus-visible::before,
.task-page .task-card.is-dragging::before,
.task-page .task-card.is-just-moved::before {
  opacity: 1;
  transform: scaleY(1);
}

.task-page .task-card:hover::after,
.task-page .task-card:focus-visible::after,
.task-page .task-card.is-dragging::after,
.task-page .task-card.is-just-moved::after {
  opacity: 1;
}

.task-page .task-card:hover .task-card-title,
.task-page .task-card:focus-visible .task-card-title,
.task-page .task-card.is-dragging .task-card-title,
.task-page .task-card.is-just-moved .task-card-title {
  color: #FFF3A0;
}

.task-page .task-card:hover .task-card-desc,
.task-page .task-card:focus-visible .task-card-desc,
.task-page .task-card.is-dragging .task-card-desc,
.task-page .task-card.is-just-moved .task-card-desc {
  color: rgba(252, 224, 44, 0.86);
}

.task-page .task-card .task-meta-chip {
  border: 1px solid rgba(252, 224, 44, 0.10) !important;
  border-radius: 4px !important;
  background: rgba(252, 224, 44, 0.045) !important;
  color: rgba(252, 224, 44, 0.78) !important;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}

.task-page .task-card:hover .task-meta-chip,
.task-page .task-card:focus-visible .task-meta-chip,
.task-page .task-card.is-dragging .task-meta-chip,
.task-page .task-card.is-just-moved .task-meta-chip {
  border-color: rgba(252, 224, 44, 0.20) !important;
  background: rgba(0, 0, 0, 0.18) !important;
  color: rgba(252, 224, 44, 0.95) !important;
}

/* Card durante il trascinamento */
.task-page .task-card.is-dragging {
  z-index: 20;
  opacity: 0.78;
  transform: rotate(0.7deg) scale(1.025);
  border-color: rgba(252, 224, 44, 0.72) !important;
  background: linear-gradient(
    90deg,
    rgba(252, 224, 44, 0.08) 0%,
    rgba(31, 31, 31, 0.98) 30%,
    rgba(25, 25, 25, 1) 100%
  );
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.48),
    0 0 30px rgba(252, 224, 44, 0.14) !important;
  cursor: grabbing;
}

/* Le altre card restano leggibili ma passano in secondo piano */
.task-page .kanban-grid.is-drag-active .task-card:not(.is-dragging) {
  opacity: 0.84;
}

/* Colonna di destinazione durante lo spostamento */
.task-page .kanban-dropzone {
  position: relative;
  border: 1px solid transparent;
  border-radius: 6px !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.task-page .kanban-grid.is-drag-active .kanban-dropzone {
  border-color: rgba(252, 224, 44, 0.07);
}

.task-page .kanban-dropzone.is-over {
  border-color: rgba(252, 224, 44, 0.48) !important;
  background: linear-gradient(
    180deg,
    rgba(252, 224, 44, 0.055),
    rgba(252, 224, 44, 0.018)
  ) !important;
  box-shadow:
    inset 0 0 0 1px rgba(252, 224, 44, 0.08),
    inset 0 0 28px rgba(252, 224, 44, 0.035),
    0 0 20px rgba(252, 224, 44, 0.06) !important;
}

.task-page .kanban-dropzone.is-over::after {
  content: "Rilascia qui";
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 5px 10px;
  border: 1px solid rgba(252, 224, 44, 0.30);
  border-radius: 4px !important;
  background: rgba(32, 32, 32, 0.94);
  color: #FCE02C;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

/* Breve conferma visiva dopo il rilascio */
.task-page .task-card.is-just-moved {
  animation: taskMoveConfirmed 0.72s ease both;
}

@keyframes taskMoveConfirmed {
  0% {
    transform: translateY(-2px) scale(0.985);
    box-shadow:
      0 0 0 1px rgba(252, 224, 44, 0.72),
      0 0 34px rgba(252, 224, 44, 0.22);
  }
  100% {
    transform: translateY(-2px) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .task-page .task-card,
  .task-page .task-card::before,
  .task-page .task-card::after,
  .task-page .kanban-dropzone {
    transition: none !important;
  }

  .task-page .task-card.is-just-moved {
    animation: none !important;
  }
}


/* =========================================================
   PAGINE ANAGRAFICHE - ALLINEAMENTO VISIVO MOCKUP 1
   Clienti / Contratti / Membri Team / Partner
========================================================= */

.entity-list-page .main-content {
  background: #202020;
}

.entity-list-page .app-container {
  min-height: 100vh;
  padding: 28px 30px 36px;
}

.entity-list-page .entity-list-shell {
  min-height: calc(100vh - 64px);
  padding: 28px 30px 34px;
  background: transparent;
}

/* Header uniforme per tutte le pagine */
.entity-list-page .entity-list-shell > .app-card-header {
  min-height: 72px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  align-items: center;
  border-bottom: 1px solid rgba(252, 224, 44, 0.14);
}

.entity-list-page .app-card-title {
  min-width: 0;
  gap: 14px;
}

.entity-list-page .app-card-title-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(252, 224, 44, 0.24);
  border-radius: 0 !important;
  background: rgba(252, 224, 44, 0.045);
  color: #FCE02C;
  box-shadow: inset 3px 0 0 rgba(252, 224, 44, 0.72);
  font-size: 18px;
}

.entity-list-page .app-card-title h2 {
  margin: 0;
  color: #FCE02C;
  font-size: clamp(26px, 2vw, 32px);
  font-weight: 500;
  line-height: 1.05;
}

.entity-list-page .app-card-title p {
  margin-top: 6px;
  color: rgba(252, 224, 44, 0.72);
  font-size: 14px;
  line-height: 1.3;
}

.entity-list-page .app-card-header-actions {
  flex-wrap: nowrap;
  gap: 12px;
}

/* Ricerca sempre visibile e allineata al pulsante principale */
.entity-list-page .compact-search-toolbar {
  width: min(330px, 36vw);
}

.entity-list-page .compact-search-toolbar .richieste-search,
.entity-list-page .compact-search-toolbar:hover .richieste-search,
.entity-list-page .compact-search-toolbar:focus-within .richieste-search,
.entity-list-page .compact-search-toolbar.has-value .richieste-search {
  width: 100%;
  box-shadow: none;
}

.entity-list-page .compact-search-toolbar .form-control {
  opacity: 1;
}

.entity-list-page .richieste-search .form-control,
.entity-list-page .richieste-search .input-group-text {
  height: 42px;
  border-color: rgba(252, 224, 44, 0.22);
  background: rgba(252, 224, 44, 0.025);
}

.entity-list-page .richieste-search:focus-within .form-control,
.entity-list-page .richieste-search:focus-within .input-group-text {
  border-color: rgba(252, 224, 44, 0.62);
}

.entity-list-page .btn-app-primary {
  min-height: 42px;
  border: 1px solid rgba(252, 224, 44, 0.78);
  border-radius: 0 !important;
  background: rgba(252, 224, 44, 0.025);
  color: #FCE02C;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.entity-list-page .btn-app-primary:hover,
.entity-list-page .btn-app-primary:focus-visible {
  border-color: #FCE02C;
  background: #FCE02C;
  color: #202020;
  transform: translateY(-1px);
}

/* Griglia identica: tre colonne desktop, due tablet, una mobile */
.entity-list-page .entity-card-grid {
  --bs-gutter-x: 18px;
  --bs-gutter-y: 18px;
  align-items: stretch;
}

.entity-list-page .entity-card-grid > [class*="col-"] {
  display: flex;
}

/* Card con lo stesso Soft Outline Glow del Mockup 1 */
.entity-list-page .entity-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 450px;
  border: 1px solid rgba(252, 224, 44, 0.09) !important;
  border-radius: 8px !important;
  background: #202020;
  color: var(--app-text);
  box-shadow: none !important;
  transform: translateZ(0);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.entity-list-page .entity-card > * {
  position: relative;
  z-index: 1;
}

.entity-list-page .entity-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 8px 0 0 8px !important;
  background: linear-gradient(
    180deg,
    rgba(252, 224, 44, 0.32) 0%,
    #FCE02C 24%,
    #FCE02C 76%,
    rgba(252, 224, 44, 0.32) 100%
  );
  box-shadow: 0 0 15px rgba(252, 224, 44, 0.72);
  opacity: 0;
  transform: scaleY(0.55);
  transform-origin: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.entity-list-page .entity-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit !important;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(252, 224, 44, 0.07) 0%,
    rgba(252, 224, 44, 0.025) 24%,
    transparent 58%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
}

.entity-list-page .entity-card:hover,
.entity-list-page .entity-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(252, 224, 44, 0.52) !important;
  background: linear-gradient(
    90deg,
    rgba(252, 224, 44, 0.055) 0%,
    rgba(31, 31, 31, 0.97) 24%,
    rgba(27, 27, 27, 0.99) 100%
  );
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(252, 224, 44, 0.09),
    inset 0 1px 0 rgba(252, 224, 44, 0.08) !important;
}

.entity-list-page .entity-card:hover::before,
.entity-list-page .entity-card:focus-within::before {
  opacity: 1;
  transform: scaleY(1);
}

.entity-list-page .entity-card:hover::after,
.entity-list-page .entity-card:focus-within::after {
  opacity: 1;
}

.entity-list-page .entity-card-inner {
  width: 100%;
  padding: 20px 20px 18px;
}

/* Testata interna comune */
.entity-list-page .entity-card-head {
  min-height: 58px;
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(252, 224, 44, 0.12);
}

.entity-list-page .entity-card-head-team {
  min-height: 72px;
}

.entity-list-page .entity-card-head + .richieste-info-row {
  margin-top: 0;
  padding-top: 16px;
  border-top: 0;
}

.entity-list-page .richieste-status {
  padding: 6px 10px;
  border: 1px solid rgba(252, 224, 44, 0.24);
  border-radius: 0 !important;
  background: rgba(252, 224, 44, 0.075) !important;
  color: #FCE02C !important;
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.entity-list-page .richieste-date {
  color: rgba(252, 224, 44, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.entity-list-page .richieste-info-row {
  min-height: 58px;
  margin-top: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(252, 224, 44, 0.09);
}

.entity-list-page .richieste-info-icon {
  margin-top: 2px;
  color: rgba(252, 224, 44, 0.86);
}

.entity-list-page .richieste-label {
  margin-bottom: 4px;
  color: rgba(252, 224, 44, 0.58);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.entity-list-page .richieste-value {
  color: rgba(252, 224, 44, 0.92);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.entity-list-page .team-member-avatar {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border-color: rgba(252, 224, 44, 0.52);
  box-shadow: 0 0 0 4px rgba(252, 224, 44, 0.04);
}

.entity-list-page .team-member-name {
  margin-top: 7px;
  color: #FCE02C;
  font-size: 16px;
  font-weight: 700;
}

/* Azioni sempre sulla stessa linea in fondo */
.entity-list-page .card-action-bar,
.entity-list-page .richieste-actions.card-action-bar {
  min-height: 58px;
  margin-top: auto !important;
  padding-top: 16px;
  border-top-color: rgba(252, 224, 44, 0.12);
}

.entity-list-page .card-action-btn {
  width: 38px;
  height: 38px;
  border-color: rgba(252, 224, 44, 0.16) !important;
  background: rgba(252, 224, 44, 0.04) !important;
}

.entity-list-page .entity-card:hover .card-action-btn {
  border-color: rgba(252, 224, 44, 0.24) !important;
}

@media (max-width: 1199.98px) {
  .entity-list-page .app-container {
    padding: 22px;
  }

  .entity-list-page .entity-list-shell {
    padding: 24px;
  }

  .entity-list-page .compact-search-toolbar {
    width: min(290px, 38vw);
  }
}

@media (max-width: 767.98px) {
  .entity-list-page .app-container {
    padding: 76px 14px 24px;
  }

  .entity-list-page .entity-list-shell {
    min-height: auto;
    padding: 18px 16px 22px;
  }

  .entity-list-page .entity-list-shell > .app-card-header {
    align-items: stretch;
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .entity-list-page .app-card-title-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .entity-list-page .app-card-title h2 {
    font-size: 25px;
  }

  .entity-list-page .app-card-header-actions,
  .entity-list-page .compact-search-toolbar {
    width: 100%;
  }

  .entity-list-page .app-card-header-actions {
    flex-direction: column;
  }

  .entity-list-page .entity-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entity-list-page .entity-card,
  .entity-list-page .entity-card::before,
  .entity-list-page .entity-card::after,
  .entity-list-page .btn-app-primary {
    transition: none !important;
  }
}

/* =========================================================
   PAGINE ANAGRAFICHE - STESSO TELAIO DELLE PAGINE INSERIMENTO
   Mantiene le card elenco e il relativo hover, ma uniforma
   contenitore, intestazione, ricerca e pulsanti ai form.
========================================================= */
.entity-list-page .app-container {
  min-height: 0;
  padding: 0 !important;
}

.entity-list-page .entity-list-shell {
  min-height: 0;
  padding: 20px !important;
  border: 0 !important;
  outline: 0 !important;
  background: var(--app-panel-bg) !important;
  box-shadow: none !important;
}

.entity-list-page .entity-list-shell > .app-card-header {
  min-height: 0;
  margin-bottom: 18px;
  padding-bottom: 18px;
  align-items: center;
  border-bottom: 1px solid var(--app-border-soft);
}

.entity-list-page .app-card-title {
  gap: 10px;
}

.entity-list-page .app-card-title-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  background: var(--app-primary-soft);
  color: var(--app-primary);
  box-shadow: none;
  font-size: 18px;
}

.entity-list-page .app-card-title h2 {
  margin: 0;
  color: var(--app-primary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.entity-list-page .app-card-title p {
  margin: 3px 0 0;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.3;
}

.entity-list-page .app-card-header-actions {
  gap: 10px;
}

/* Torna alla ricerca compatta usata nel resto della piattaforma. */
.entity-list-page .compact-search-toolbar {
  width: auto;
}

.entity-list-page .compact-search-toolbar .richieste-search {
  width: 48px;
  box-shadow: none;
}

.entity-list-page .compact-search-toolbar:hover .richieste-search,
.entity-list-page .compact-search-toolbar:focus-within .richieste-search,
.entity-list-page .compact-search-toolbar.has-value .richieste-search {
  width: min(46vw, 360px);
}

.entity-list-page .compact-search-toolbar .form-control {
  opacity: 0;
}

.entity-list-page .compact-search-toolbar:hover .form-control,
.entity-list-page .compact-search-toolbar:focus-within .form-control,
.entity-list-page .compact-search-toolbar.has-value .form-control {
  opacity: 1;
}

.entity-list-page .richieste-search .form-control,
.entity-list-page .richieste-search .input-group-text {
  height: 40px;
  border-color: var(--app-border);
  background: var(--app-surface);
}

/* Stesso pulsante principale delle pagine di inserimento. */
.entity-list-page .btn-app-primary {
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid #FCE02C;
  background: #FCE02C;
  color: #000;
  box-shadow: none;
  transform: none;
  font-weight: 700;
}

.entity-list-page .btn-app-primary:hover,
.entity-list-page .btn-app-primary:focus-visible {
  border-color: #FCE02C;
  background: transparent;
  color: #FCE02C;
  transform: none;
}

.entity-list-page .btn-app-primary.btn-app-icon {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .entity-list-page .compact-search-toolbar,
  .entity-list-page .compact-search-toolbar .richieste-search,
  .entity-list-page .compact-search-toolbar:hover .richieste-search,
  .entity-list-page .compact-search-toolbar:focus-within .richieste-search,
  .entity-list-page .compact-search-toolbar.has-value .richieste-search {
    width: 100%;
  }

  .entity-list-page .compact-search-toolbar .form-control {
    opacity: 1;
  }
}

@media (max-width: 767.98px) {
  .entity-list-page .entity-list-shell {
    padding: 16px !important;
  }

  .entity-list-page .entity-list-shell > .app-card-header {
    min-height: 0;
    margin-bottom: 14px;
    padding-bottom: 14px;
    align-items: flex-start;
  }

  .entity-list-page .app-card-title-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .entity-list-page .app-card-title h2 {
    font-size: 18px;
  }
}

/* =========================================================
   ENTRY PAGES - SAME FRAME AS LIST PAGES
   Scoped rules: do not change list cards or other pages.
========================================================= */
.entity-entry-page .main-content {
  background: #202020;
}

.entity-entry-page .app-container {
  min-height: 0;
  padding: 0 !important;
}

.entity-entry-page .entity-entry-shell {
  min-height: 0;
  padding: 20px !important;
  border: 0 !important;
  outline: 0 !important;
  background: var(--app-panel-bg) !important;
  box-shadow: none !important;
}

.entity-entry-page .entity-entry-shell > .app-card-header {
  min-height: 0;
  margin-bottom: 18px;
  padding-bottom: 18px;
  align-items: center;
  border-bottom: 1px solid var(--app-border-soft);
}

.entity-entry-page .app-card-title {
  gap: 10px;
}

.entity-entry-page .app-card-title-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  background: var(--app-primary-soft);
  color: var(--app-primary);
  box-shadow: none;
  font-size: 18px;
}

.entity-entry-page .app-card-title h2 {
  margin: 0;
  color: var(--app-primary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.entity-entry-page .app-card-title p {
  margin: 3px 0 0;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.3;
}

.entity-entry-page .entity-entry-shell > .form-entry-card,
.entity-entry-page .entity-entry-shell > .richieste-card {
  min-height: auto !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.entity-entry-page .entity-entry-shell > .form-entry-card:hover,
.entity-entry-page .entity-entry-shell > .richieste-card:hover {
  transform: none;
  box-shadow: none !important;
}

.entity-entry-page .app-card-header > .btn-outline-secondary {
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid #FCE02C !important;
  background: transparent !important;
  color: #FCE02C !important;
  box-shadow: none !important;
  font-weight: 700;
}

.entity-entry-page .app-card-header > .btn-outline-secondary:hover,
.entity-entry-page .app-card-header > .btn-outline-secondary:focus-visible {
  background: #FCE02C !important;
  color: #202020 !important;
}

@media (max-width: 767.98px) {
  .entity-entry-page .entity-entry-shell {
    padding: 16px !important;
  }

  .entity-entry-page .entity-entry-shell > .app-card-header {
    min-height: 0;
    margin-bottom: 14px;
    padding-bottom: 14px;
    align-items: flex-start;
  }

  .entity-entry-page .app-card-title-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .entity-entry-page .app-card-title h2 {
    font-size: 18px;
  }

  .entity-entry-page .app-card-header > .btn-outline-secondary {
    width: 100%;
  }
}

/* =========================================================
   PROFILE PAGE - ISOLATED FROM ENTRY AND LIST PAGES
========================================================= */
.profile-entry-page .app-container {
  min-height: 0;
  padding: 0 !important;
}

.profile-entry-page .profile-entry-shell {
  min-height: 0;
  padding: 20px !important;
  border: 0 !important;
  outline: 0 !important;
  background: var(--app-panel-bg) !important;
  box-shadow: none !important;
}

.profile-entry-page .profile-entry-shell > .app-card-header {
  min-height: 0;
  margin-bottom: 18px;
  padding-bottom: 18px;
  align-items: center;
  border-bottom: 1px solid var(--app-border-soft);
}

.profile-entry-page .app-card-title {
  gap: 10px;
}

.profile-entry-page .app-card-title-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  background: var(--app-primary-soft);
  color: var(--app-primary);
  box-shadow: none;
  font-size: 18px;
}

.profile-entry-page .app-card-title h2 {
  margin: 0;
  color: var(--app-primary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.profile-entry-page .app-card-title p {
  margin: 3px 0 0;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.3;
}

.profile-entry-page .profile-form-card {
  min-height: auto !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.profile-entry-page .profile-form-card:hover {
  transform: none;
  box-shadow: none !important;
}

.profile-entry-page .profile-form-card .richieste-card-inner {
  padding: 24px;
}

.profile-entry-page .profile-tabs {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--app-border-soft);
}

.profile-entry-page .profile-tabs .nav-link {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(252, 224, 44, 0.20) !important;
  background: transparent;
  color: var(--app-primary);
}

.profile-entry-page .profile-tabs .nav-link:hover,
.profile-entry-page .profile-tabs .nav-link:focus {
  border-color: rgba(252, 224, 44, 0.62) !important;
  background: rgba(252, 224, 44, 0.08);
  color: var(--app-primary);
}

.profile-entry-page .profile-tabs .nav-link.active {
  border-color: var(--app-primary) !important;
  background: var(--app-primary);
  color: var(--app-active-text);
}

.profile-entry-page #profilo-tabs-content {
  padding-top: 24px !important;
}

.profile-entry-page .profile-photo-preview {
  width: 150px;
  height: 150px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(252, 224, 44, 0.52) !important;
  border-radius: 50% !important;
  background: rgba(252, 224, 44, 0.05);
  box-shadow: 0 0 24px rgba(252, 224, 44, 0.08);
}

.profile-entry-page .profile-form-card .form-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--app-border-soft);
}

.profile-entry-page #profilo-message:empty {
  display: none;
}

@media (max-width: 767.98px) {
  .profile-entry-page .profile-entry-shell {
    padding: 16px !important;
  }

  .profile-entry-page .profile-entry-shell > .app-card-header {
    margin-bottom: 14px;
    padding-bottom: 14px;
    align-items: flex-start;
  }

  .profile-entry-page .profile-form-card .richieste-card-inner {
    padding: 18px;
  }

  .profile-entry-page .profile-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-entry-page .profile-tabs .nav-link,
  .profile-entry-page .form-actions .btn {
    width: 100%;
  }
}
