/* here you can put your own css to customize and override the theme */

.dashboard-stat .details .leo_text {    
  padding-top: 15px;
  text-align: right;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: -1px;
  margin-bottom: 5px;
  font-weight: 300;
  color: #fff;
}

.datepicker td + td + td + td + td + td{
	background-color: #FFB6B7;
}

.header .search-form .form-control{
	/*background-color:#ed9c58;*/
}
.header .search-form{
	align-self:center;
	/*background-color:#ed9c58;*/
	height:10px !important;
	margin-top:5px !important;
}
/* Regole visive condivise del gestionale. */
* {
	border-radius: 4px !important;
}

.brand-wordmark {
	color: #1f2937;
	display: inline-block;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 42px;
	white-space: nowrap;
}

.login .brand-wordmark {
	color: #ffffff;
	font-size: 28px;
	line-height: 1.2;
}

.login .content h1.form-title {
	color: #ffffff;
	font-size: 24px;
	line-height: 1.3;
	margin-top: 0;
}

button:disabled,
input[type="submit"]:disabled {
	cursor: wait;
	opacity: 0.7;
}

@media (max-width: 480px) {
	.login .content h1.form-title {
		font-size: 21px;
	}
}
/* Archivio riservato nella scheda cliente */
.accessi-clienti-details dd {
    min-height: 32px;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
}

.accessi-clienti-details .btn {
    margin-left: 8px;
}

.accesso-password-value {
    display: inline-block;
    min-width: 150px;
    padding: 7px 9px;
    border-radius: 4px;
}

.accesso-note {
    white-space: normal;
}

@media (max-width: 767px) {
    .accessi-clienti-details dt {
        margin-top: 12px;
        text-align: left;
    }

    .accessi-clienti-details dd {
        margin-left: 0;
    }
}

/* Documenti e bozze contrattuali delle vendite */
.sales-extension-actions {
    margin-bottom: 20px;
}

.sales-extension-actions .btn {
    margin-bottom: 8px;
    margin-right: 8px;
}

.contract-editor {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    line-height: 1.55;
    min-height: 560px;
    resize: vertical;
}

.contract-preview {
    background: #fff;
    border: 1px solid #d9dfe5;
    color: #27313b;
    line-height: 1.65;
    margin: 18px 0;
    max-width: 820px;
    padding: 30px;
    white-space: pre-wrap;
}

.contract-information h3 {
    font-size: 19px;
    margin-top: 24px;
}

.contract-information li {
    margin-bottom: 7px;
}

@media (max-width: 767px) {
    .sales-extension-actions .btn {
        display: block;
        margin-right: 0;
        width: 100%;
    }

    .contract-preview {
        padding: 18px;
    }
}

@media print {
    .contract-preview {
        border: 0;
        max-width: none;
        padding: 0;
    }
}

.client-receipts-context-actions {
    float: right;
}

.client-receipts-context .alert {
    overflow: hidden;
}

.client-receipts-context-actions .btn {
    margin-left: 6px;
}

.client-autocomplete {
    position: relative;
}

.client-autocomplete-results {
    background: #fff;
    border: 1px solid #c2cad8;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.14);
    left: 0;
    max-height: 280px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: calc(100% - 1px);
    z-index: 1050;
}

.client-autocomplete-option {
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eef1f5;
    border-radius: 0;
    color: #333;
    display: block;
    padding: 10px 12px;
    text-align: left;
    width: 100%;
}

.client-autocomplete-option:last-child {
    border-bottom: 0;
}

.client-autocomplete-option:hover,
.client-autocomplete-option:focus,
.client-autocomplete-option.is-active {
    background: #eef6ff;
    color: #1f5f99;
    outline: 0;
}

.client-autocomplete-option strong,
.client-autocomplete-option small {
    display: block;
}

.client-autocomplete-option small {
    color: #687582;
    margin-top: 2px;
}

.client-autocomplete-empty {
    color: #687582;
    padding: 11px 12px;
}

.client-receipts-history {
    margin-top: 20px;
}

@media (max-width: 767px) {
    .client-receipts-context-actions {
        display: block;
        float: none;
        margin-top: 12px;
    }

    .client-receipts-context-actions .btn {
        display: block;
        margin: 6px 0 0;
        width: 100%;
    }
}

/* Percorso guidato per la connessione Stripe */
.stripe-guide {
    align-items: flex-start;
    background: #fff8e5;
    border: 1px solid #ead49a;
    border-left: 4px solid #d89b17;
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
    padding: 22px;
}

.stripe-guide-success {
    background: #edf9f1;
    border-color: #b8dfc5;
    border-left-color: #35aa63;
}

.stripe-guide-icon {
    color: #b77b00;
    flex: 0 0 34px;
    font-size: 30px;
    line-height: 1;
    text-align: center;
}

.stripe-guide-success .stripe-guide-icon {
    color: #27894d;
}

.stripe-guide-content {
    flex: 1 1 auto;
}

.stripe-eyebrow {
    color: #6f5a24;
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.stripe-guide h4 {
    color: #28313b;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 7px;
}

.stripe-guide p {
    color: #59636f;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    max-width: 850px;
}

.stripe-main-action {
    font-weight: 700;
    margin-top: 16px;
    padding: 11px 18px;
}

.stripe-guide form {
    display: inline-block;
    margin: 0;
}

.stripe-recheck {
    margin-left: 10px !important;
}

.stripe-recheck .btn {
    margin-top: 16px;
    padding: 11px 18px;
}

.stripe-environment-card,
.stripe-live-panel {
    background: #fff;
    border: 1px solid #dfe3e8;
    margin-bottom: 20px;
    padding: 22px;
}

.stripe-environment-heading {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.stripe-environment-heading p {
    color: #77818c;
    margin: 5px 0 0;
}

.stripe-environment-name {
    color: #28313b;
    font-size: 19px;
    font-weight: 600;
}

.stripe-status-grid {
    margin-top: 18px;
}

.stripe-status-item {
    background: #f8fafb;
    border: 1px solid #dfe3e8;
    min-height: 112px;
    padding: 16px;
}

.stripe-status-item .fa {
    display: block;
    font-size: 22px;
    margin-bottom: 10px;
}

.stripe-status-item strong,
.stripe-status-item span {
    display: block;
}

.stripe-status-item strong {
    color: #303942;
    font-size: 14px;
    margin-bottom: 3px;
}

.stripe-status-item span {
    color: #68727d;
}

.stripe-status-success {
    border-left: 4px solid #35aa63;
}

.stripe-status-success .fa {
    color: #27894d;
}

.stripe-status-warning {
    border-left: 4px solid #d89b17;
}

.stripe-status-warning .fa {
    color: #b77b00;
}

.stripe-status-danger {
    border-left: 4px solid #d9534f;
}

.stripe-status-danger .fa {
    color: #bd3f3b;
}

.stripe-maintenance {
    border-top: 1px solid #e4e7ea;
    margin-top: 8px;
    padding-top: 14px;
}

.stripe-maintenance summary,
.stripe-live-panel > summary {
    color: #4b5864;
    cursor: pointer;
    font-weight: 600;
    list-style-position: outside;
}

.stripe-technical-content,
.stripe-live-content {
    padding-top: 18px;
}

.stripe-technical-content .table {
    margin-bottom: 0;
}

.stripe-live-panel > summary {
    align-items: center;
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.stripe-live-panel > summary span:first-child {
    color: #28313b;
    font-size: 17px;
}

.stripe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.stripe-actions form,
.stripe-actions .btn {
    margin: 0;
}

.stripe-form-actions .btn {
    margin-bottom: 8px;
    margin-right: 8px;
}

.mail-channel-list,
.mail-event-types {
    display: grid;
    gap: 8px;
}

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

.mail-event-types .help-block {
    grid-column: 1 / -1;
}

.mail-technical-settings {
    margin: 15px 0;
}

.mail-technical-settings summary {
    cursor: pointer;
    font-weight: 600;
    padding: 12px 0;
}

.mail-settings-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.mail-settings-actions form {
    margin: 0;
}

.mail-settings-maintenance {
    margin-top: 15px;
}

.communication-primary-actions,
.communication-primary-actions form {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 15px;
}

.communication-primary-actions .btn,
.communication-confirm-form {
    margin: 0;
}

.communication-preview {
    background: #f8fafc;
    border: 1px solid #dfe5ec;
    border-radius: 4px;
    line-height: 1.55;
    padding: 16px;
    white-space: normal;
}

.communication-stats .well {
    min-height: 92px;
    padding: 14px 10px;
    text-align: center;
}

.communication-stats .well strong,
.communication-stats .well span {
    display: block;
}

.communication-stats .well strong {
    font-size: 24px;
}

@media (max-width: 767px) {
    .communication-primary-actions,
    .communication-primary-actions form,
    .communication-primary-actions .btn,
    .communication-confirm-form,
    .communication-confirm-form .btn {
        display: block;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .mail-event-types {
        grid-template-columns: 1fr;
    }

    .mail-settings-actions,
    .mail-settings-actions form,
    .mail-settings-actions .btn {
        width: 100%;
    }
}

.stripe-back-action {
    margin-top: 4px;
}

@media (max-width: 767px) {
    .stripe-guide {
        display: block;
        padding: 18px;
    }

    .stripe-guide-icon {
        margin-bottom: 12px;
        text-align: left;
    }

    .stripe-guide form,
    .stripe-main-action,
    .stripe-recheck,
    .stripe-recheck .btn {
        display: block;
        margin-left: 0 !important;
        width: 100%;
    }

    .stripe-environment-heading {
        display: block;
    }

    .stripe-environment-heading > .label {
        display: inline-block;
        margin-top: 12px;
    }

    .stripe-status-item {
        min-height: 0;
        margin-bottom: 10px;
    }

    .stripe-actions,
    .stripe-actions form,
    .stripe-actions .btn {
        display: block;
        width: 100%;
    }

    .stripe-live-panel > summary {
        align-items: flex-start;
        flex-direction: column;
    }
}
