:root {
    --dhg-gold: #8e8a5e;
    --dhg-gold-light: #c5bfa0;
    --dhg-gold-dark: #6b6845;
    --dhg-black: #000000;
    --bs-primary: #8e8a5e;
    --bs-primary-rgb: 142, 138, 94;
    --bs-link-color: #8e8a5e;
    --bs-link-hover-color: #6b6845;
}

body {
    background-color: #f8f9fa;
    color: #212529;
}

.sidebar.sidebar-default.sidebar-base {
    background: linear-gradient(135deg, #000000 0%, #8e8a5e 100%);
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.sidebar .sidebar-header {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.sidebar .navbar-brand {
    width: calc(100% - 1.5rem);
    padding: 0.85rem 0.75rem;
}

.dhg-logo {
    display: block;
    width: 168px;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.dhg-logo-nav {
    width: 140px;
}

.dhg-logo-banner {
    width: 280px;
    max-width: 100%;
}

.sidebar.sidebar-mini .dhg-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    object-position: left center;
}

.sidebar .logo-subtitle {
    margin-left: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar .sidebar-toggle {
    background: #c5bfa0;
    color: #000000;
    box-shadow: none;
}

.sidebar-base .nav-item,
.sidebar-base .nav-item.static-item .default-icon,
.sidebar-base .nav-item .nav-link:not(.disabled) {
    color: rgba(255, 255, 255, 0.85);
}

.sidebar.sidebar-default .nav-link:not(.static-item).active,
.sidebar.sidebar-default .nav-link:not(.static-item)[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 10px;
    box-shadow: none;
}

.sidebar.sidebar-default .nav-link:not(.static-item):hover:not(.active):not([aria-expanded="true"]) {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 10px;
}

.iq-navbar .navbar-brand svg,
.iq-navbar .text-primary {
    color: #8e8a5e;
}

.iq-navbar-header {
    background: linear-gradient(135deg, #000000 0%, #8e8a5e 100%);
}

.iq-navbar-header .iq-header-img {
    display: none;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card {
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
}

.stat-icon.tone-gold { background: #8e8a5e; }
.stat-icon.tone-sand { background: #c5bfa0; color: #000000; }
.stat-icon.tone-green { background: #10b981; }
.stat-icon.tone-amber { background: #f59e0b; }
.stat-icon.tone-cyan { background: #06b6d4; }
.stat-icon.tone-red { background: #ef4444; }

.btn-primary {
    background: linear-gradient(135deg, #000000 0%, #8e8a5e 100%);
    border-color: #8e8a5e;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #1a1a1a 0%, #6b6845 100%);
    border-color: #6b6845;
}

.btn-dhg {
    background: #8e8a5e;
    border-color: #8e8a5e;
    color: #ffffff;
}

.btn-dhg:hover {
    background: #6b6845;
    border-color: #6b6845;
    color: #ffffff;
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 15px 15px 0 0;
}

.stat-link {
    color: inherit;
    text-decoration: none;
}

.dhg-table thead th {
    color: #6b6845;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-ok,
.badge-warn,
.badge-bad {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.35em 0.7em;
}

.badge-ok { background: rgba(16, 185, 129, 0.15); color: #047857; }
.badge-warn { background: rgba(245, 158, 11, 0.18); color: #92400e; }
.badge-bad { background: rgba(239, 68, 68, 0.15); color: #b91c1c; }

.login-body {
    min-height: 100vh;
    margin: 0;
    background: #f4f1e8;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 0.85fr);
}

.login-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    padding: 3.5rem 4.5rem;
    background: linear-gradient(160deg, #000000 0%, #2c2a1c 48%, #8e8a5e 100%);
    color: #ffffff;
}

.login-logo {
    width: min(340px, 100%);
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.login-brand p {
    max-width: 26rem;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.login-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.login-points li {
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #f4f1e8;
    font-size: 0.85rem;
}

.login-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.4rem 2rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
}

.login-card h1 {
    margin: 0;
    font-size: 1.7rem;
    color: #1a1a1a;
}

.login-lead {
    margin: 0.4rem 0 1.5rem;
    color: #6b6845;
}

.login-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
}

.login-field {
    margin-bottom: 1rem;
}

.login-field label {
    display: block;
    margin-bottom: 0.4rem;
    color: #3f3c2e;
    font-size: 0.85rem;
    font-weight: 650;
}

.login-control {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    height: 50px;
    padding: 0 0.85rem;
    border: 1px solid #e4e0d2;
    border-radius: 12px;
    background: #fbfaf6;
}

.login-control:focus-within {
    border-color: #8e8a5e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(142, 138, 94, 0.22);
}

.login-control i {
    width: 1rem;
    color: #8e8a5e;
    text-align: center;
}

.login-control input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1a1a1a;
    font: inherit;
}

.login-toggle {
    border: 0;
    background: transparent;
    color: #6b6845;
    cursor: pointer;
}

.login-submit {
    width: 100%;
    height: 50px;
    margin-top: 0.4rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #000000 0%, #8e8a5e 100%);
    color: #ffffff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.login-submit:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #6b6845 100%);
}

@media (max-width: 860px) {
    .login-body {
        background: linear-gradient(160deg, #000000 0%, #8e8a5e 100%);
    }

    .login-wrap {
        grid-template-columns: 1fr;
    }

    .login-brand {
        align-items: center;
        padding: 2rem 1.25rem 0.5rem;
        background: transparent;
        text-align: center;
    }

    .login-brand p {
        font-size: 1rem;
    }

    .login-points {
        justify-content: center;
    }

    .login-side {
        align-items: flex-start;
        padding: 1rem 1rem 2rem;
    }
}

.dropdown-item-text {
    display: block;
    padding: 0.35rem 1rem;
    color: #6b6845;
    font-size: 0.85rem;
}

.cotizacion-agregar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.55rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

@media (max-width: 576px) {
    .cotizacion-agregar {
        width: 100%;
    }
}

.evento-cotizaciones {
    padding: 1rem;
    border-radius: 12px;
    background: #f7f6f1;
    border: 1px solid #e4e0d2;
}

.evento-cotizacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid #e4e0d2;
}

.evento-cotizacion span,
.evento-cotizacion small {
    display: block;
    color: #6b6845;
}

@media (max-width: 700px) {
    .evento-cotizacion {
        flex-direction: column;
        align-items: stretch;
    }
}

.cotizacion-picker {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f7f6f1;
    border: 1px solid #e4e0d2;
}

.cotizacion-lista {
    max-height: 320px;
    overflow: auto;
    display: grid;
    gap: 0.4rem;
}

.cotizacion-opcion {
    display: grid;
    grid-template-columns: auto 1fr 7rem;
    gap: 0.75rem;
    align-items: center;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: #fff;
}

.cotizacion-opcion small {
    display: block;
    color: #6b6845;
}

.cotizacion-totales {
    display: grid;
    justify-content: end;
    gap: 0.25rem;
    margin-top: 1rem;
}

.cotizacion-totales div {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    min-width: 16rem;
}

.cotizacion-totales span {
    color: #6b6845;
}

.cliente-resumen {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #f7f6f1;
    border: 1px solid #e4e0d2;
    display: grid;
    gap: 0.25rem;
}

.cliente-resumen strong {
    color: #6b6845;
}

.cliente-resumen span {
    display: inline-block;
    min-width: 8.5rem;
    color: #6b6845;
    font-weight: 600;
}

#loading,
.loader,
.loader.simple-loader {
    display: none !important;
}

body,
.sidebar,
.sidebar .sidebar-logo,
.sidebar .navbar-brand .logo-title,
.sidebar .sidebar-toggle .icon,
.sidebar + .main-content,
.iq-navbar,
.iq-navbar-header,
.animate__animated {
    transition: none !important;
    animation: none !important;
}
