/*---------------------------------------------------------------------*/
/* questa è la parte iniziale                                          */
/*---------------------------------------------------------------------*/

*{
    box-sizing:border-box
}

.logo{
    letter-spacing:.14em;
    font-weight:700;
    font-size:14px;
    color:var(--mut);
}

.product{
    letter-spacing:.22em;
    font-weight:800;
    font-size:12px;
    color:#fff;
    opacity:.9;
}


.hero{
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border:1px solid var(--line);
    border-radius:22px;
    padding:22px 18px 18px;
    box-shadow:
        0 0 80px rgba(255,255,255,0.03) inset,
        0 20px 60px rgba(0,0,0,0.6);
    position:relative;
    overflow:hidden;
}

.label{
    letter-spacing:.22em;
    font-size:11px;
    color:var(--mut2);
    margin-bottom:14px;
}

.board{
    display:flex;
    align-items:flex-end;
    gap:10px;
    padding:12px 10px 8px;
    border-radius:18px;
    background: rgba(0,0,0,.28);
    border:1px solid rgba(255,255,255,.06);
}

.currency{
    font-weight:800;
    font-size:30px;
    line-height:1;
    opacity:.95;
    padding:0 2px 4px 2px;
}

.cells{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    align-items:flex-end;
}

.cell{
    width:44px;
    height:64px;
    border-radius:12px;
    background: linear-gradient(180deg, var(--cell), var(--cell2));
    border:1px solid rgba(255,255,255,.06);
    display:flex;
    align-items:center;
    justify-content:center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
    font-size:34px;
    font-weight:800;
    letter-spacing:.02em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    position:relative;
}

.cell::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:50%;
    height:1px;
    background: rgba(255,255,255,.08);
    transform: translateY(-.5px);
}

.subline{
    margin-top:12px;
    font-size:14px;
    color:var(--mut);
    letter-spacing:.06em;
}
.subline .dot{
    opacity:.8
}

.meta{
    margin-top:18px;
    border-top:1px solid rgba(255,255,255,.08);
    padding-top:14px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.meta-row{
    display:flex;
    justify-content:space-between;
    font-size:13px;
}
.meta-row .k{
    color:var(--mut2);
    letter-spacing:.06em;
    text-transform:lowercase
}
.meta-row .v{
    color:var(--txt);
    font-weight:600
}

.actions{
    margin-top:16px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.primary, .secondary{
    border-radius:14px;
    padding:12px 14px;
    font-weight:700;
    cursor:pointer;
}

.primary{
    background:#fff;
    color:#000;
    border:0;
}
.primary:disabled{
    opacity:.45;
    cursor:not-allowed;
}

.secondary{
    background: transparent;
    color: var(--txt);
    border:1px solid rgba(255,255,255,.16);
}

.hint{
    margin-top:12px;
    color:var(--mut2);
    font-size:12px;
}

.panel{
    display:none;
    background: rgba(0,0,0,.45);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    padding:16px;
}

.panel.show{
    display:block
}

.panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
}

.panel-title{
    font-weight:800;
    letter-spacing:.06em;
}

.grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:12px;
}

.field label{
    display:block;
    font-size:12px;
    color:var(--mut2);
    margin-bottom:6px;
    letter-spacing:.05em;
}

.field input{
    width:100%;
    padding:12px 12px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.25);
    color: var(--txt);
    outline:none;
}

.panel-actions{
    margin-top:12px;
    display:flex;
    justify-content:flex-end;
}

.foot{
    margin-top:auto;
    display:flex;
    justify-content:center;
    gap:10px;
    color: rgba(255,255,255,.38);
    font-size:12px;
    letter-spacing:.04em;
}
.sep{
    opacity:.5
}

@media (max-width:520px){
    .cell{
        width:40px;
        height:60px;
        font-size:32px;
    }
    .grid{
        grid-template-columns: 1fr;
    }
}




.tabs{
    display:flex;
    gap:8px;
    align-items:center;
    margin-left:12px;
    flex-wrap:wrap;
}

.tab{
    border:1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.20);
    color: var(--mut);
    padding:8px 10px;
    border-radius:12px;
    cursor:pointer;
    font-weight:700;
    font-size:12px;
    letter-spacing:.04em;
}
.tab.is-active{
    background:#fff;
    color:#000;
    border-color:#fff;
}
.tab.is-disabled {
    opacity:.45;
    cursor:not-allowed;
}

.tabpane{
    display:none;
    margin-top:10px;
}
.tabpane.is-active{
    display:block;
}

.mini{
    margin-top:6px;
}
.mini-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
}
.mini-title{
    color: var(--mut);
    font-weight:800;
    letter-spacing:.04em;
}

.list{
    border:1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.18);
    border-radius:14px;
    padding:10px;
}
.list .empty{
    color: var(--mut2);
    font-size:12px;
}

.hr{
    height:1px;
    background: rgba(255,255,255,.08);
    margin:14px 0;
}

.field select{
    width:100%;
    padding:12px 12px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.25);
    color: var(--txt);
    outline:none;
}


.subtabs{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
}

.subtab{
    border:1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.16);
    color: var(--mut);
    padding:8px 10px;
    border-radius:999px;
    cursor:pointer;
    font-weight:800;
    font-size:12px;
    letter-spacing:.04em;
}
.subtab.is-active{
    background:#fff;
    color:#000;
    border-color:#fff;
}

.subpane{
    display:none;
    margin-top:10px;
}
.subpane.is-active{
    display:block;
}

.rowline{
    padding:10px 12px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    margin-top:10px;
    background: rgba(0,0,0,.18);
}
.empty{
    color: var(--mut2);
    padding:10px 2px;
}


/* Dropdown leggibili */
select, option {
    color: #fff !important;          /* testo bianco */
    background: #171717 !important;  /* fondo scuro */
}

/* quando la lista è aperta (su alcuni browser) */
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,.18);
}

/* placeholder/valore vuoto (se usi option value="") */
select option[value=""] {
    color: rgba(255,255,255,.55) !important;
}

/* card base */
.cardline{
    padding: 12px 12px;
}

/* separatore SOLO tra items */
#dailyList .cardline + .cardline{
    border-top: 1px solid rgba(255,255,255,.10);
    margin-top: 10px;
    padding-top: 10px;
}


/*---------------------------------------------------------------------*/
/*  Questa è la parte presa da TrueCostMile                        */
/*---------------------------------------------------------------------*/
:root {
    --bg:#0b0f14;
    --card:#111826;
    --txt:#e7eefc;
    --muted:#a8b3c7;
    --acc:#7dd3fc;
    --line:#1c2a44;
}
*{
    box-sizing:border-box
}
body{
    margin:0;
    font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
    background:linear-gradient(180deg,#06080c, #0b0f14);
    color:var(--txt)
}
.wrap{
    max-width:980px;
    margin:0 auto;
    padding:26px 18px 56px
}
a{
    color:inherit
}
.top{
    display:flex;
    gap:12px;
    align-items:center;
    justify-content:space-between;
    margin:10px 0 18px
}
.brand{
    font-weight:800;
    letter-spacing:.2px
}
.pill{
    font-size:12px;
    color:var(--muted);
    border:1px solid #233047;
    padding:6px 10px;
    border-radius:999px
}
.grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    align-items:start
}
@media(max-width:860px){
    .grid{
        grid-template-columns:1fr
    }
}
.card{
    background:rgba(17,24,38,.72);
    border:1px solid var(--line);
    border-radius:18px;
    padding:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.35)
}
h1{
    font-size:26px;
    margin:0 0 6px
}
p{
    margin:0 0 14px;
    color:var(--muted);
    font-size:14px;
    line-height:1.55
}
label{
    display:block;
    font-size:12px;
    color:var(--muted);
    margin:12px 0 6px
}
input{
    width:100%;
    padding:12px 12px;
    border-radius:14px;
    border:1px solid #273a5b;
    background:#0c1220;
    color:var(--txt);
    outline:none
}
input:focus{
    border-color:#3f86a2
}
.row2{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px
}
@media(max-width:520px){
    .row2{
        grid-template-columns:1fr
    }
}
.btnRow{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:14px;
}
.btnRow button, .btnRow a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:44px;
    line-height:44px;
    padding:0 14px;
}
button{
    border:0;
    border-radius:14px;
    padding:12px 14px;
    font-weight:900;
    cursor:pointer
}
.btn{
    background:var(--acc);
    color:#06101a
}
.ghost{
    background:transparent;
    border:1px solid #2a3a59;
    color:var(--txt)
}
.kpi{
    border:1px solid #22314e;
    border-radius:14px;
    padding:14px;
    margin-top:12px
}
.kpi .t{
    font-size:12px;
    color:var(--muted)
}
.kpi .v{
    font-size:26px;
    font-weight:900;
    margin-top:6px
}
.mini{
    font-size:12px;
    color:var(--muted);
    margin-top:10px
}
.warn{
    font-size:12px;
    color:#ffd6a5;
    margin-top:8px;
    display:none
}
.sep{
    height:1px;
    background:#1b2741;
    margin:14px 0
}
footer{
    margin-top:18px;
    color:var(--muted);
    font-size:12px
}
/* highlight pulse on calculate */
.pulse {
    animation: pulseGlow 420ms ease-out;
}
@keyframes pulseGlow {
    0%   {
        box-shadow: 0 0 0 rgba(125,211,252,0);
        border-color:#22314e;
    }
    35%  {
        box-shadow: 0 0 22px rgba(125,211,252,.28);
        border-color:#3f86a2;
    }
    100% {
        box-shadow: 0 0 0 rgba(125,211,252,0);
        border-color:#22314e;
    }
}

#outCpm.cpm-warn  {
    color: #ffd27a !important;
}
#outCpm.cpm-alert {
    color: #ff8a8a !important;
}


/*---------------------------------------------------------------------*/
/*  era nell'html quindi da qui in poi è buono                         */
/*---------------------------------------------------------------------*/
.field input,
.field select,
input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea{
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #2a3a59;
    background: rgba(17,24,38,.72);
    color: #e7eefc;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.field input::placeholder,
.field select::placeholder,
input::placeholder,
textarea::placeholder{
    color: #a8b3c7;
    opacity: .7;
}

.field input:focus,
.field select:focus,
input:focus,
select:focus,
textarea:focus{
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(125,211,252,.14);
}
.field label,
label{
    display:block;
    font-size:12px;
    color:#a8b3c7;
    margin-bottom:6px;


    button,
    .btn,
    input[type="button"],
    input[type="submit"]{
        border: 0;
        border-radius: 14px;
        padding: 12px 16px;
        font-weight: 800;
        cursor: pointer;
    }

    #btnApply,
    #btnCalc,
    button.btn,
    .btn{
        background: #7dd3fc;
        color: #06101a;
        box-shadow: 0 8px 20px rgba(125,211,252,.22);
    }

    #btnApply:hover,
        #btnCalc:hover,
        button.btn:hover,
        .btn:hover{
        filter: brightness(1.05);
    }

    #btnApply:disabled,
        #btnCalc:disabled,
        button.btn:disabled,
        .btn:disabled{
        opacity: .45;
        cursor: not-allowed;
        box-shadow: none;
    }


    .btn.primary,
    #btnCalc{
        background:#7dd3fc;
        color:#06101a;
        border:0;
        border-radius:14px;
        padding:12px 16px;
        font-weight:800;
        cursor:pointer;
        box-shadow:0 8px 20px rgba(125,211,252,.22);
    }

    .btn.primary:hover,
        #btnCalc:hover{
        filter:brightness(1.05);
    }

    .mini-breakdown{
        margin-top:10px;
        font-size:13px;
        color:#a8b3c7;
    }

    .mini-breakdown > div{
        display:flex;
        justify-content:space-between;
        gap:12px;
        margin-top:4px;
    }

    .mini-breakdown strong{
        color:#e7eefc;
        font-weight:700;
    }


    .site-footer{
  margin-top: 40px;
  padding: 20px 4px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #8fa1bd;
  font-size: 12px;
  line-height: 1.5;
  opacity: .9;
}

.vehicle-breakdown{
  margin-top:10px;
  font-size:14px;
  color:#cfcfcf;
}

.vehicle-line{
  display:flex;
  justify-content:space-between;
  padding:2px 0;
}

.vehicle-line .name{
  opacity:0.9;
}

.vehicle-line .value{
  font-weight:500;
}

.impact-sub{
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.day-cost-box{
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.day-cost-label{
  font-size: 11px;
  opacity: 0.75;
  margin-bottom: 4px;
}

.day-cost-value{
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.day-box{
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.day-box-currency{
  flex: 0 0 auto;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.day-box-value{
  flex: 1 1 auto;
  min-width: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.4px;
  color: #fff;
}

.impact-day{
  font-size: 42px;
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-top: 10px;
}

.reportCtaWrap{
  margin-top: 26px;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

.reportBtn{
  min-width: 220px;
}

