/*@import 'tailwindcss';*/

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

body {background-color: #efefef;}
.container {
    --bs-gutter-x: 1rem; /* Spazio tra col ridotta */
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 95%;
}
.green {color: #30ab0e;}
.button-green {background-color: #37a836; color:#fff;}
.form-control.azure, .form-select.azure {background-color: #e9edf9;border: 1px solid #cddbf1;}
.flag {width: 50px; height: 30px;}
.download-img {width: 20px; height: 20px;}
.edit-img {width: 20px; height: 20px; cursor: pointer; opacity: 0.7;}
.disabled-img {opacity: 0.3; cursor: not-allowed;}

/* Sidebar */
.offcanvas-body {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px); /* Altezza viewport - header */
}

.menu-title, .menu-item {
    flex: 0 0 auto; /* Non crescono */
}

.menu-title a,
.menu-item a {
	color: inherit;
	text-decoration: none;
	display: block;
}

.menu-title a:hover,
.menu-item a:hover {
	color: inherit;
	text-decoration: none;
}

/* Logout SEMPRE in fondo */
.offcanvas-body::after {
    content: '';
    flex: 1; /* Spazio vuoto */
}

.menu-item:last-child {
    margin-top: auto; /* Pusha in fondo */
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px !important;
}

.logout-item a {
    color: #ffffff !important;     /* Bianco */
    text-decoration: none !important;  /* No underline */
    font-weight: 500;
}

.logout-item a:hover {
    color: #f8f9fa !important;   /* Bianco chiaro hover */
    text-decoration: none !important;
}

.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1099;
    width: 100%;
    max-width: 400px;
    pointer-events: none;
}

#successToast {
    pointer-events: all; /* Toast cliccabile */
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: none;
    border-radius: 12px;
    min-width: 350px;
}

#successToast.show {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.form-check-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25) !important;
}

.form-check-input.is-invalid + .form-check-label {
    color: #dc3545 !important;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    border: 1px solid #cddbf1;
    padding-right: 45px; 
    border-radius: 6px;
    background: e9edf9;
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* QUADRATINO viola #6f7dbb */
.select-wrapper::after {
    content: '';
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 43px;
    height: 38px;
    background-color: #6f7dbb;
    border-radius: 0 4px 4px 0;
    box-shadow: -1px 0 0 white;
    z-index: 1;
    pointer-events: none;
}

/* FRECCIA bianca */
.select-wrapper::before {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    z-index: 2;
    pointer-events: none;
}

.login_body {
	background-color: #6ec457;
}
.login-title {color: #30ab0e;}
.login-container { max-width: 400px; }
.login-card { background: white; padding: 40px; border-radius: 4px; }

.header {background-color: #efefef;padding: 20px;position: relative;}
.title {color: #30ab0e;text-align: center;font-weight: 600;}
.title-par {color: #30ab0e;font-weight: 600;font-size:120%;}
.offcanvas {background-color: #2ea836;color: white;}
.menu-title {font-size: 18px;font-weight: 600;margin-bottom: 20px;}
.menu-item {font-size: 16px;opacity: 0.9;}
.form-box {background-color: #fff;padding: 30px;margin: 40px auto;max-width: 90%;}
.subtitle {text-align: center;font-style: italic;margin-bottom: 20px;}
.btn-go {background-color: #d3d3d3;border: none;width: 100%;color:#fff;}
#helpdeskDashboardElab, #helpdeskDashboardCrm {--bs-gutter-y: 0rem;}		
.date-input:focus {
    border-color: #6f7dbb;
    outline: none;
}
.row {
    align-items: flex-start !important; /* ← Allinea TUTTI in ALTO */
}
.form-label {
  margin-bottom: 0;
  font-weight: bold;
}
.bi.bi-check-lg {
	/*font-size: 150%;*/
	color: #6f7dbb;
}
.bi.bi-check-lg::before {
	font-weight: 600 !important;
}
.form-check-input {
    width: 24px !important;    /* Larghezza */
    height: 24px !important;   /* Altezza */
    border: 1px solid #cddbf1 !important;  /* Bordo */
    margin-top: 0;  /* Allinea meglio */
}
.form-check-input:checked {
    background-color: #6f7dbb;  /* Tuo viola */
    border-color: #6f7dbb !important;
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(111, 125, 187, 0.25);
    border-color: #6f7dbb;
}
.form-check-input:hover {
    border-color: #a0a8e0;
}
.form-check-label {
    margin-left: 6px;
}
.form-check.inline {
	display: inline-block;
	padding-right: 10px;
}
.checkbox-group.is-invalid .form-check-input,
.question-group.is-invalid .number-field,
.question-group.is-invalid .checkbox-field {
    border-color: #dc3545 !important;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.4;
}

/* Archivio form: tabella dei form con colonne fisse e resizable */
.archive-table {
    table-layout: fixed;
    width: max-content;
    min-width: 100%;
}

.archive-table th,
.archive-table td {
    width: 100px;
    min-width: 50px;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-table th.archive-col {
    position: relative;
}

.archive-th-text {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-table th {
    position: relative;
}

.archive-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
}

.archive-header th {
    background-color: #37a836 !important;
    color: white !important;
}

div.disabilitato {
  opacity: 0.6;
  z-index: 1;
  position: relative;
  cursor: not-allowed;
  pointer-events: none;
  cursor: not-allowed;
}
