p {
  line-height: 1.75;
}

.page-section h2.section-heading, .page-section .section-heading.h2 {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}
.page-section h3.section-subheading, .page-section .section-subheading.h3 {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  font-family: var(--font-family-body);
  margin-bottom: 4rem;
}

.section-title h1{
  font-size: 28px;
  font-weight: 700;
}

.section-title-small h1{
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0;
}

.card-header {
    background: #fff;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.main-content {
  margin-left: 260px;
  transition: margin-left 0.5s ease;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

body.sidebar-closed .main-content {
  margin-left: 50px;
}

@media (min-width: 768px) {
  .main-content {
    padding-top: 2rem;
    overflow-y: auto;
    min-height: calc(100vh - 120px);
  }
}

/* Lista documenti - layout responsive */
#documents-list .list-group-item {
  display: flex !important;
  align-items: flex-start !important;
}

#documents-list .list-group-item .flex-grow-1 {
  min-width: 0;
  margin-right: 0.5rem;
}

#documents-list .list-group-item .flex-shrink-0 {
  flex-shrink: 0 !important;
}

@media screen and (max-width: 768px) {
  .main-content {
    margin-left: 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2.5rem;
  }
  
  /* Fix per tabelle e liste che escono dal contenitore */
  .card-body {
    overflow-x: auto;
  }
  
  #documents-list .list-group {
    overflow-x: hidden;
  }
  
  #documents-list .list-group-item {
    padding: 0.75rem 0.5rem;
  }
  
  #documents-list .list-group-item .flex-grow-1 {
    margin-right: 0.25rem;
  }
  
  #documents-list .list-group-item .btn-outline-danger {
    padding: 0.35rem 0.6rem;
    font-size: 0.875rem;
  }
  
  #documents-list .list-group-item h6 {
    font-size: 0.875rem;
    word-break: break-word;
    margin-bottom: 0.25rem;
  }
  
  #documents-list .list-group-item p {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  #documents-list .list-group-item small {
    font-size: 0.7rem;
    display: block;
    word-break: break-all;
  }
  
  /* Responsive per griglie */
  .row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-family: var(--font-family-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.btn-primary:hover {
  background-color: #015e66;
  border-color: #015e66;
  color: #fff;
}
.btn-primary:active, .btn-primary:focus {
  background-color: #cc9f00;
  border-color: #cc9f00;
  box-shadow: 0 0 0 0.25rem rgba(255, 200, 0, 0.5);
}

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

.fa-stack {
  margin-bottom: 1rem;
}

.btn-social {
  height: 2.5rem;
  width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 100%;
}

.img-brand {
  height: 2.75rem;
}

#leftBar-overlay{
  
}

.fs-7 {
    font-size: 0.875rem !important;
}

.badge.badge-soft-success {
    background: #ebfcf5;
    color: #00ab66;
}

.badge.badge-soft-danger {
    background: #ffebeb;
    color: #e60000;
}

.badge.badge-sm {
    --bs-badge-font-size: 0.6em;
    --bs-badge-padding-x: 0.5rem;
    --bs-badge-padding-y: 0.25rem;
    min-width: 19px;
}

.badge {
    --bs-badge-padding-x: 0.3rem;
    --bs-badge-padding-y: 0.2rem;
    --bs-badge-font-size: 0.7em;
    --bs-badge-font-weight: 500;
    --bs-badge-color: #fff;
    --bs-badge-border-radius: 0.2rem;
    min-width: 25px;
    letter-spacing: 0.3px;
    vertical-align: middle;
    text-transform: capitalize;
}

.ms-1 {
    margin-left: 0.25rem !important;
}

.footer-text {
    font-size: 0.75rem;
}


.nav-tabs.nav-line > .nav-item > .nav-link {
    background: transparent;
    border-left: 0;
    border-top: 0;
    border-right: 0;
}

.form-control,
.dd-handle,
.wizard > .content > .body input {
    color: var(--select-text-color);
    border: 1px solid var(--select-border-color);
    border-radius: var(--select-border-radius);
    font-size: 0.95rem;
    padding: var(--select-padding-y) var(--select-padding-x);
    min-height: var(--select-min-height);
    box-shadow: var(--select-shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.dd-handle:focus,
.wizard > .content > .body input:focus {
    border-color: var(--select-focus-border);
    box-shadow: var(--select-focus-ring);
    outline: none;
}

.input-affix-wrapper{
  flex: 1 1 auto;
  min-width: 0;
  width: 1%;
}

#search_input {
    padding-left: 40px;
}

.search-picker-icon{
  position: absolute;
  left: 10px;
  color: #6f6f6f;
}

.daterangepicker td.active, .daterangepicker td.in-range.end-date, .daterangepicker td.active:hover {
    background-color: var(--primary-color)!important;
}

.daterangepicker td.in-range {
    background-color: #d9eced!important;
}

.badge.badge-indicator.badge-indicator-nobdr {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    padding: 0;
    position: relative;
    min-width: 0px;
}

.badge.badge-indicator:empty {
    display: inline-block;
}

.badge.badge-light {
    background: #eaeaea;
    color: #262a2e;
}

.btn-outline-light:not(:disabled):not(.disabled).active, .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) .btn-primary:not(:disabled):not(.disabled).active, .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) div.hopscotch-bubble .hopscotch-bubble-container .hopscotch-actions .hopscotch-nav-button.next:not(:disabled):not(.disabled).active, div.hopscotch-bubble .hopscotch-bubble-container .hopscotch-actions .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) .hopscotch-nav-button.next:not(:disabled):not(.disabled).active, .btn-outline-light:not(:disabled):not(.disabled):active, .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) .btn-primary:not(:disabled):not(.disabled):active, .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) div.hopscotch-bubble .hopscotch-bubble-container .hopscotch-actions .hopscotch-nav-button.next:not(:disabled):not(.disabled):active, div.hopscotch-bubble .hopscotch-bubble-container .hopscotch-actions .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) .hopscotch-nav-button.next:not(:disabled):not(.disabled):active {
    color: #6f6f6f;
    background-color: #eaeaea;
    border-color: #eaeaea;
}

.btn-outline-light, .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) .btn-primary, .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) div.hopscotch-bubble .hopscotch-bubble-container .hopscotch-actions .hopscotch-nav-button.next, div.hopscotch-bubble .hopscotch-bubble-container .hopscotch-actions .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) .hopscotch-nav-button.next {
    color: #6f6f6f;
    background-color: transparent;
    background-image: none;
    border-color: #eaeaea;
}

.btn-outline-light:hover, .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) .btn-primary:hover, .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) div.hopscotch-bubble .hopscotch-bubble-container .hopscotch-actions .hopscotch-nav-button.next:hover, div.hopscotch-bubble .hopscotch-bubble-container .hopscotch-actions .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) .hopscotch-nav-button.next:hover, .btn-outline-light:focus, .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) .btn-primary:focus, .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) div.hopscotch-bubble .hopscotch-bubble-container .hopscotch-actions .hopscotch-nav-button.next:focus, div.hopscotch-bubble .hopscotch-bubble-container .hopscotch-actions .calendarapp-wrap .calendarapp-content .fc .fc-toolbar .fc-toolbar-chunk:nth-child(3) .hopscotch-nav-button.next:focus {
    color: #6f6f6f;
    background-color: #eaeaea;
    border-color: #eaeaea;
}

.card-header h6{
  margin: 0;
}

.btn-flush-dark.flush-soft-hover:hover, .btn-flush-dark.flush-soft-hover:focus, .btn-flush-dark.flush-soft-hover:not(:disabled):not(.disabled).active, .btn-flush-dark.flush-soft-hover:not(:disabled):not(.disabled):active {
    color: #262a2e;
    background-color: #f7f7f7;
    border-color: #f7f7f7;
}

.dropdown-toggle.no-caret::after{
  display: none;
}

.dt-input {
    margin: 0 0 0 15px;
}

.dataTable.compact tbody td,
.dataTable.compact thead th {
    padding: 4px 6px !important;
    vertical-align: middle;
}
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    padding: 2px 4px;
    font-size: 0.85rem;
}
.dataTables_wrapper .dataTables_info {
    font-size: 0.8rem;
}

table.dataTable>thead>tr>th, table.dataTable>thead>tr>td{
  border-bottom: 1px solid #d2d2d2!important;
}

table.dataTable tbody td,
table.dataTable tbody th,
.table tbody td,
.table tbody th {
    font-size: 0.85rem;
    color: #1f2937;
    line-height: 1.4;
}

table.dataTable thead th,
.table thead th {
    font-size: 0.9rem;
    font-weight: 600!important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0f172a;
}

table.dataTable tbody td .badge,
.table tbody td .badge {
    font-size: 0.80rem;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    letter-spacing: 0.01em;
}

.progress.progress-bar-xs {
    height: 5px;
}

.progress.progress-bar-rounded {
    border-radius: 50rem;
}

.flex-1 {
    -ms-flex: 1 !important;
    flex: 1 !important;
}

.progress .progress-bar {
    background-color: #007D88;
}

.w-60 {
    width: 60% !important;
}

.w-30 {
    width: 30% !important;
}

.btn-group-sm>.btn, .btn-sm{
    font-size: 12px;
}

body div.dt-container .dt-paging .dt-paging-button.current, body div.dt-container .dt-paging .dt-paging-button.current:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff!important;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    line-height: 12px;
    font-size: 13px;
}

.badge.badge-soft-secondary {
    background: #d9eced;
    color: var(--primary-color);
}

div.dt-container div.dt-layout-row {
    font-size: 12px;
}

div.dt-container.dt-empty-footer tbody>tr:last-child>* {
    border-bottom: none!important;
}

.edit-profile-wrap .nav-profile .nav-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #9e9e9e;
}

.edit-profile-wrap .nav-profile .nav {
    margin: 1rem 0;
    font-size: 0.875rem;
    flex-wrap: nowrap;
    border: 0;
}

.edit-profile-wrap .nav-profile .nav .nav-item {
    margin-bottom: 0.25rem;
}

.edit-profile-wrap .nav-profile .nav .nav-item a.nav-link {
  color: #262a2e;
  border: 0;
  padding: 0.35rem 0.5rem; /* smaller padding */
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px; /* smaller text */
  border-radius: .25rem; /* subtler rounding */
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}

.nav.nav-vertical .nav-item .nav-link {
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  position: relative;
}

.nav.nav-vertical {
    -ms-flex-direction: column !important;
    flex-direction: column !important;
}

.edit-profile-wrap .nav-profile .nav .nav-item a.nav-link:hover,
.edit-profile-wrap .nav-profile .nav .nav-item a.nav-link:focus {
  background-color: rgba(0,0,0,0.02); /* even more subtle */
  color: var(--primary-color);
  text-decoration: none;
}

.edit-profile-wrap .nav-profile .nav .nav-item a.nav-link.active {
  color: var(--primary-color);
  background: transparent; /* keep it clean and sober */
  font-weight: 500; /* slightly bold' */
  border-left: 3px solid var(--primary-color);
  padding-left: calc(0.5rem - 3px); /* preserve visual alignment after adding border */
}

/* make icon smaller and aligned */
.edit-profile-wrap .nav-profile .nav .nav-item a.nav-link .nav-link-text i{
  font-size: 0.85rem;
  line-height: 1;
}

/* keep keyboard focus visible */
.edit-profile-wrap .nav-profile .nav .nav-item a.nav-link:focus-visible {
  outline: 2px solid rgba(0,0,0,0.06);
  outline-offset: 2px;
}

.form-label {
    margin-bottom: .5rem;
    font-size: 14px;
    line-height: 14px;
    color: #262a2e;
}

.form-group {
    margin-bottom: 1rem;
}

.swal2-html-container {
    font-size: 14px;
    line-height: 18px;
}

.swal2-confirm {
  background: var(--primary-color)!important;
  padding: 5px 10px;
  color: #fff;
}

div:where(.swal2-container) button:where(.swal2-styled){
    padding: 5px 10px !important;
    font-size: 14px !important;
}
