/* TecNytte Tracker — paleta del logo (teal wordmark) para escritorio */
:root {
    --tn-blue: #0e7a88;
    --tn-blue-dark: #0a5d69;
    --tn-teal: #00a3b0;
    --tn-teal-dark: #00838e;
    --tn-bg: #eef7f8;
    --tn-text: #0d3d45;
    --tn-muted: #5a7a80;
    --tn-line: #d4e8eb;
    --tn-shadow: 0 10px 28px rgba(10, 93, 105, 0.12);
}

/* Enlaces y acentos */
a, a:hover { color: var(--tn-blue); }
.leaflet-bar a,
.leaflet-bar a:hover {
    background-color: #ffffff !important;
    color: var(--tn-blue-dark);
    border-bottom-color: var(--tn-line);
}
.datalist-item {
    border-radius: 8px !important;
    margin-bottom: 3px;
}
.datalist-item.even {
    background-color: #b7e4ea !important;
}
.datalist-item.odd {
    background-color: #e7f6f8 !important;
}
.datalist-item-name {
    color: #0a5d69 !important;
    font-weight: 700;
}
.datalist-item-value {
    color: #123940 !important;
    font-weight: 600;
}

/* Barra superior */
#top_panel {
    background: linear-gradient(135deg, #0a5d69 0%, #0e7a88 55%, #00a3b0 140%) !important;
    background-color: #0e7a88 !important;
    box-shadow: 0 2px 10px rgba(10, 93, 105, 0.22);
}
#top_panel .tp-menu div a {
    color: #ffffff !important;
}
#top_panel a:hover,
#top_panel a.active {
    background: rgba(255, 255, 255, 0.16) !important;
}
#top_panel .user-btn span,
#top_panel .user-list-btn span,
#top_panel .object-list-btn span,
#top_panel .billing-plan-list-btn span,
#top_panel .unused-object-list-btn span {
    color: #ffffff !important;
}
#top_panel .chat-btn span,
#top_panel .billing-btn span {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}
#top_panel .map-btn a,
#top_panel .map-btn a:hover {
    background: #00a3b0 !important;
    color: #fff !important;
}
#top_panel .select-language,
#top_panel .select-view {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 0;
}

/* Diálogos */
.ui-dialog {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(10, 93, 105, 0.22);
}
.ui-dialog .ui-dialog-titlebar {
    background: linear-gradient(135deg, #0e7a88 0%, #00a3b0 100%) !important;
    color: #ffffff !important;
    border: none !important;
}
.ui-pg-div .ui-icon-plus {
    background-color: #0e7a88 !important;
}
.menu.ui-menu .first-item {
    border-top-color: #00a3b0 !important;
}

/* Paneles laterales / tabs */
#side_panel_places .ui-tabs-nav li.ui-tabs-active a {
    color: var(--tn-blue-dark) !important;
}
#bottom_panel {
    box-shadow: 0 -6px 18px rgba(10, 93, 105, 0.10);
}

/* LOGIN WEB — fondo.gif, tarjeta centrada, iconos visibles */
body#login {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    overflow: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #061018 !important;
    background-image: url('../img/fondo.gif') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}
body#login::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(3, 16, 24, 0.28);
    pointer-events: none;
    z-index: 0;
}
body#login .wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 80px;
    box-sizing: border-box;
    vertical-align: middle !important;
}
body#login .wrapper .inner-wrapper {
    background: rgba(255, 255, 255, 0.97) !important;
    opacity: 1 !important;
    border-radius: 22px !important;
    padding: 32px 32px 20px !important;
    width: 400px;
    max-width: 92vw;
    margin: 0 auto 18px !important;
    float: none !important;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
    overflow: visible !important;
}
body#login .wrapper .inner-wrapper .content {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}
body#login .wrapper .inner-wrapper .content .content-block {
    height: auto !important;
    min-height: 0 !important;
}
body#login #recover,
body#login #register,
body#login .recover-register-block {
    display: none !important;
}
body#login .logo-block {
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center;
    background: transparent !important;
    margin: 0 0 6px;
}
body#login .logo {
    max-width: 210px;
    width: auto !important;
    height: auto;
    margin: 0 auto 8px !important;
    display: block !important;
    mix-blend-mode: multiply;
}
.tn-login-tagline {
    display: block;
    width: 100%;
    margin: 0 0 22px;
    text-align: center;
    color: var(--tn-teal-dark);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}
body#login .row3 {
    margin-bottom: 14px;
    position: relative;
}
body#login input.inputbox,
body#login input.inputbox.icon {
    float: none !important;
    display: block !important;
    width: 100% !important;
    height: 50px !important;
    box-sizing: border-box;
    border: 1px solid #cfe4e8 !important;
    border-radius: 14px !important;
    background-color: #f4fbfc !important;
    background-repeat: no-repeat !important;
    background-position: 16px center !important;
    background-size: 18px 18px !important;
    color: var(--tn-text) !important;
    font-size: 15px !important;
    padding: 0 16px 0 48px !important;
}
body#login input.icon-user {
    background-image: url(images/user.svg) !important;
}
body#login input.icon-password {
    background-image: url(images/password.svg) !important;
    padding-right: 48px !important;
}
body#login input.icon-email {
    background-image: url(images/email.svg) !important;
}
body#login input.inputbox:hover,
body#login input.inputbox:focus {
    background-color: #ffffff !important;
    border-color: var(--tn-teal) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 163, 176, 0.16);
}
body#login input.inputbox::placeholder {
    color: #7a969b !important;
    opacity: 1;
}
body#login .content-block .reveal {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%);
    width: 28px !important;
    height: 28px !important;
    z-index: 3;
    background: url(images/eye-crossed.svg) center center no-repeat !important;
    background-size: 18px 18px !important;
    cursor: pointer;
    opacity: 0.7;
}
body#login .content-block .reveal:hover {
    opacity: 1;
}
body#login .content-block .reveal.hide {
    background: url(images/eye.svg) center center no-repeat !important;
    background-size: 18px 18px !important;
}
body#login .wrapper .content-block input.button {
    background: linear-gradient(135deg, #0e7a88 0%, #00a3b0 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    height: 50px;
    font-size: 16px !important;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: 0.2px;
    cursor: pointer;
}
body#login .wrapper .content-block input.button:hover {
    opacity: 0.94;
}
.tn-login-remember {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 4px;
    color: var(--tn-muted);
    font-size: 13px;
}
.tn-login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0e7a88;
    cursor: pointer;
}
.tn-login-remember label {
    margin: 0;
    cursor: pointer;
    font-weight: 600;
    color: #3d5c62;
}
body#login .footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: auto !important;
    min-height: 36px;
    padding-top: 14px;
    margin-top: 14px;
    color: var(--tn-muted);
    border-top: 1px solid var(--tn-line) !important;
}
body#login .footer a.mobile-v {
    color: var(--tn-blue) !important;
}
body#login .footer .ms-parent,
body#login .footer .select {
    width: 140px !important;
}
body#login .footer .ms-choice {
    background: #f4fbfc !important;
    color: var(--tn-text) !important;
    border: 1px solid var(--tn-line) !important;
    border-radius: 10px !important;
    height: 34px !important;
}
body#login .footer .ms-choice span {
    color: var(--tn-text) !important;
    top: 6px !important;
}
body#login .licence-tecnytte {
    z-index: 2;
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
    font-size: 11px !important;
}
body#login .licence-tecnytte a {
    color: #fff !important;
    font-weight: 700;
}
#footer-images {
    position: relative;
    z-index: 2;
    margin-top: 4px;
}

@media only screen and (max-width: 700px) {
    body#login .wrapper .inner-wrapper {
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 26px 20px 16px !important;
    }
}

/* Resumen combustible — historial */
#bottom_panel_fuel.tn-fuel-panel,
.tn-fuel-panel {
    height: calc(100% - 42px);
    overflow: auto;
    padding: 10px 12px 14px;
    background: #eef7f8;
    box-sizing: border-box;
}
.tn-fuel-wrap {
    max-width: 920px;
}
.tn-fuel-hero {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 20px rgba(10, 93, 105, 0.08);
    margin-bottom: 12px;
}
.tn-fuel-hero-text {
    flex: 1;
    min-width: 0;
}
.tn-fuel-current {
    font-size: 28px;
    font-weight: 800;
    color: #0a5d69;
    line-height: 1.1;
}
.tn-fuel-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #5a7a80;
}
.tn-fuel-kpis {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.tn-fuel-kpi {
    flex: 1;
    min-width: 110px;
    border-radius: 12px;
    padding: 8px 10px;
}
.tn-fuel-kpi b {
    display: block;
    font-size: 16px;
}
.tn-fuel-kpi span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.tn-fuel-kpi.fill {
    background: #e8f8ef;
    color: #1b7a46;
}
.tn-fuel-kpi.theft {
    background: #fdecec;
    color: #b42318;
}
.tn-fuel-list {
    background: #fff;
    border-radius: 16px;
    padding: 10px 12px 8px;
    margin-bottom: 10px;
    box-shadow: 0 8px 20px rgba(10, 93, 105, 0.08);
}
.tn-fuel-list-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}
.tn-fuel-list.fill .tn-fuel-list-title { color: #1b7a46; }
.tn-fuel-list.theft .tn-fuel-list-title { color: #b42318; }
.tn-fuel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-top: 1px solid #e8f1f2;
    text-decoration: none !important;
    color: inherit;
}
.tn-fuel-row:hover { background: #f4fbfc; }
.tn-fuel-amt {
    min-width: 86px;
    font-weight: 800;
    font-size: 14px;
}
.tn-fuel-list.fill .tn-fuel-amt { color: #1b7a46; }
.tn-fuel-list.theft .tn-fuel-amt { color: #b42318; }
.tn-fuel-meta {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #5a7a80;
    min-width: 0;
}
.tn-fuel-meta b {
    color: #0d3d45;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tn-fuel-empty,
.tn-fuel-empty-row {
    padding: 16px 8px;
    text-align: center;
    color: #5a7a80;
    font-size: 13px;
}
