
/* tiers */
.plan-status-banner {
    border-left: 4px solid rgba(0, 0, 0, .1);
}

@media (prefers-color-scheme: dark) {
    .alert-info {
        background-color: #0ea5e94d;
        color: #e5f6ff;
    }

    .alert-warning {
        background-color: #f59e0b33;
        color: #fff7ed;
    }

    .alert-danger {
        background-color: #ef444433;
        color: #fee2e2;
    }

    .plan-status-banner {
        border-left-color: rgba(255, 255, 255, .2);
    }
}

.tier-grid {
    align-items: stretch;
}

.tier-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: box-shadow .2s, transform .2s, border-color .2s, background .2s, color .2s;
    /* height: 100%; */
    /* position: relative; */
    color: #111827;
}

.tier-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
    transform: translateY(-2px);
}

.tier-current {
    border-color: #3b82f6;
    box-shadow: 0 8px 28px rgba(59, 130, 246, .25);
}

.tier-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.tier-price {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 4px;
}

.tier-badge {
    background: #3b82f6;
    color: #fff;
    font-size: .75rem;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, .4);
}

.tier-features {
    list-style: none;
    margin: 14px 0;
    padding: 0;
}

.tier-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.ti-ico {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
}

.ti-ok {
    background: #DCFCE7;
    color: #16A34A;
}

.ti-ko {
    background: #FEE2E2;
    color: #DC2626;
}

.tier-cta {
    margin-top: 10px;
}

/* 🌙 Dark mode */
@media (prefers-color-scheme: dark-mode) {
    .tier-card {
        background: #1f2937;
        /* grigio scuro */
        border-color: #374151;
        /* bordo più chiaro */
        color: #f9fafb;
        /* testo quasi bianco */
        box-shadow: 0 1px 2px rgba(0, 0, 0, .6);
    }

    .tier-card:hover {
        box-shadow: 0 6px 24px rgba(0, 0, 0, .8);
    }

    .tier-current {
        border-color: #3b82f6;
        box-shadow: 0 8px 28px rgba(59, 130, 246, .5);
    }

    .tier-badge {
        background: #2563eb;
        /* blu più profondo */
        box-shadow: 0 2px 8px rgba(37, 99, 235, .6);
    }

    .tier-features li {
        color: #d1d5db;
    }

    /* grigio chiaro */
    .ti-ok {
        background: #14532d;
        color: #22c55e;
    }

    .ti-ko {
        background: #7f1d1d;
        color: #f87171;
    }

    .tier-price {
        color: #f9fafb;
    }
}
/* end tiers */

/* TICKET CHAT BOX */
.ticket-chat-box::-webkit-scrollbar {
    width: 8px;
}

.ticket-chat-box::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.ticket-chat-box {
    background: #f7f7f9;
    border-radius: 8px;
}

.ticket-chat-message {
    margin-bottom: 10px;
    display: flex;
    clear: both;
}

.ticket-chat-left {
    justify-content: flex-start;
}

.ticket-chat-right {
    justify-content: flex-end;
}

.ticket-chat-bubble {
    background-color: #f1f1f1;
    padding: 1rem;
    border-radius: 0.75rem;
    position: relative;
    max-width: 70%;
    margin-bottom: 1.2rem;
}

.ticket-chat-left .ticket-chat-bubble {
    background-color: #e9f5ff;
}

.ticket-chat-right .ticket-chat-bubble {
    background-color: #0d6efd;
    color: white;
}

.ticket-chat-content {
    font-size: 1rem;
    line-height: 1.4;
}

.ticket-chat-meta {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.5rem;
}

.ticket-chat-right .ticket-chat-meta {
    text-align: right;
    opacity: 0.8;
    color: #e2e6ea !important;
}

.ticket-chat-left .ticket-chat-meta {
    text-align: left;
    opacity: 0.6;
}

.ticket-chat-author {
    font-size: 0.75rem;
    z-index: 1;
    margin: 0px 0px 10px 0px;
    border-radius: 0.5rem;
}

.ticket-chat-right .ticket-chat-author {
    background-color: #ffffff;
    color: #0d6efd;
}

/* FINE TICKET CHAT */


/* Righe descrizione delle risorse */
.content-txt-kb {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* numero di righe da mostrare */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* testo massimo su 2 righe nella lista popup notifications */
.two-lines {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* sidebar submenu indent*/
.nav-sidebar .nav-treeview {
    text-indent: 15px;
}

.nav-sidebar .nav-treeview .nav-treeview {
    text-indent: 30px;
}

/* my callout dashboard */
.my-callout {
    border-radius: .25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
    /* background-color: #fff; */
    border-left: 5px solid #e9ecef;
    margin-bottom: 1rem;
    padding: 1rem;
}

/* upload gallery*/
.upload-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    color: #454545;
}


/* animations for incoming transactions */
.animationTransaction {
    animation: transactionAnimation 1.5s;
    animation-fill-mode: both
}

@keyframes transactionAnimation {
    from {
        transform: scale(0.7);
        opacity: 0;
        /* background: #000; */
    }

    to {
        transform: scale(1);
        opacity: 1;
        /* background: #002b36; */
    }
}

.modal.modal-fullscreen .modal-dialog {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  max-width: none;
}

.modal.modal-fullscreen .modal-content {
  height: auto;
  height: 100vh;
  border-radius: 0;
  border: none;
}

.modal.modal-fullscreen .modal-body {
  overflow-y: auto;
}

/* Pulse button */ 
.pulse-button {
    margin-top: 5px;
    margin-left: 20px;
}

.pulse-button {
    position: relative;
    display: block;
    width: 13px;
    height: 13px;
    border: none;
    background-color: #28a745;
    box-shadow: 0 0 0 0 rgba(76, 232, 61, 0.7);
    /* box-shadow: 0 0 0 0 rgba(232, 76, 61, 0.7);*/
    border-radius: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
    -webkit-animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
    -moz-animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
    -ms-animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
    animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
}

.pulse-button:hover {
    -webkit-animation: none;
    -moz-animation: none;
    -ms-animation: none;
    animation: none;
}


#help-online {
    cursor: pointer;
}


.pulse-help {
    /* position: relative; */
    /* display: inline-block; */
    width: 23px;
    height: 23px;
    border: none;
    background-color: #28a745;
    box-shadow: 0 0 0 0 rgba(76, 232, 61, 0.7);
    /* box-shadow: 0 0 0 0 rgba(232, 76, 61, 0.7);*/
    border-radius: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
    -webkit-animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
    -moz-animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
    -ms-animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
    animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
}


.pulse-help:hover {
    -webkit-animation: none;
    -moz-animation: none;
    -ms-animation: none;
    animation: none;
}
.pulse-button-offline {
    background-color: red;
    box-shadow: 0 0 0 0 rgba(232, 76, 61, 0.7);
}

.pulse-button-push-offline {
    background-color: rgb(255, 123, 0);
    box-shadow: 0 0 0 0 rgba(232, 76, 61, 0.7);
}

@-webkit-keyframes pulse {
    to {
        box-shadow: 0 0 0 15px rgba(76, 232, 61, 0);
    }
}

@-moz-keyframes pulse {
    to {
        box-shadow: 0 0 0 15px rgba(76, 232, 61, 0);
    }
}

@-ms-keyframes pulse {
    to {
        box-shadow: 0 0 0 15px rgba(76, 232, 61, 0);
    }
}

@keyframes pulse {
    to {
        box-shadow: 0 0 0 15px rgba(76, 232, 61, 0);
    }
}


/* websocket alert */
.block {
    display: block;
}

.hide {
    display: none !important;
}


/*
fix update bootstrap 4
*/
.dark-mode input:-webkit-autofill,
.dark-mode input:-webkit-autofill:focus,
.dark-mode input:-webkit-autofill:hover,
.dark-mode select:-webkit-autofill,
.dark-mode select:-webkit-autofill:focus,
.dark-mode select:-webkit-autofill:hover,
.dark-mode textarea:-webkit-autofill,
.dark-mode textarea:-webkit-autofill:focus,
.dark-mode textarea:-webkit-autofill:hover {
    -webkit-text-fill-color: #333 !important;
}

.summary {
    padding-left: 20px;
}

html,
body {
    height: 100%;
}
#body-content{
    background-image: url('landing-page/assets/img/hero-bg.jpg');
    /* opacity: 0.6; */
    width: 100%;
    background-color: #cccccc; /* Used if the image is unavailable */
    height: 100em; /* You must set a specified height */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover; /* Resize the background image to cover the entire container */
    z-index: -1;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}



/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}


.text-orange {
  color: #ffc107 !important;
}

a.text-orange:hover, a.text-orange:focus {
  color: #ba8b00 !important;
}

.text-red {
  color: #dc3545 !important;
}

a.text-red:hover, a.text-red:focus {
  color: #a71d2a !important;
}

.text-green {
  color: #28a745 !important;
}

a.text-green:hover, a.text-green:focus {
  color: #19692c !important;
}


/* Activity */
.activity {
    font-size: 14px;
}

.activity .activity-item .activite-label {
    color: #888;
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 100px;
    min-height: 40px;
}

.activity .activity-item .activite-label::before {
    content: "";
    position: absolute;
    right: -11px;
    width: 4px;
    top: 0;
    bottom: 0;
    background-color: #eceefe;
}

.activity .activity-item .activity-badge {
    margin-top: 3px;
    z-index: 1;
    font-size: 20px;
    line-height: 0;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid #fff;
    flex-grow: 0;
}

.activity .activity-item .activity-content {
    padding-left: 10px;
    padding-bottom: 20px;
}

.activity .activity-item:first-child .activite-label::before {
    top: 5px;
}

.activity .activity-item:last-child .activity-content {
    padding-bottom: 0;
}
