/* EquipVault logo */

.ev-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ev-logo__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.ev-logo--sidebar .ev-logo__img {
    max-width: 190px;
    max-height: 120px;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.sidebar-module-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.sidebar-module-tagline {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
}

.sidebar-header .sidebar-module-name {
    color: #fff;
}

.sidebar-header .sidebar-module-tagline {
    color: #6b7db3;
}

.logo-wrap .sidebar-module-name {
    color: var(--text, #1a2236);
    font-size: 14px;
    font-weight: 800;
}

.logo-wrap .sidebar-module-tagline {
    color: var(--text2, #5a6a88);
    font-size: 10px;
    text-transform: none;
    letter-spacing: 0.2px;
    font-weight: 500;
}

.ev-logo--login .ev-logo__img {
    max-width: 240px;
    max-height: 150px;
}

.ev-logo--home .ev-logo__img {
    max-width: 320px;
    max-height: 200px;
}

.ev-logo--card .ev-logo__img {
    max-width: 180px;
    max-height: 110px;
    margin-bottom: 0.75rem;
}

.module-home-logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.75rem;
}

.login-brand .module-home-logo-center {
    margin-bottom: 16px;
}

.login-brand .login-signin-text {
    margin: 0;
    font-size: 0.88rem;
    color: #9ca3af;
    text-align: center;
}

/* Module switcher — sidebar bottom (Recharge Hub & Warranty Pro) */
.module-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 8px;
}

.module-switch-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}

.module-switch-btn:hover {
    transform: translateY(-2px);
}

.rh-sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

aside.sidebar .module-switch-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
}

aside.sidebar .module-switch-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

aside.sidebar .module-switch-btn.is-active {
    background: rgba(59, 109, 240, 0.22);
    border-color: #3b6df0;
    box-shadow: 0 0 14px rgba(59, 109, 240, 0.35);
    color: #fff;
}

.wp-sidebar-footer {
    margin-top: auto;
    padding: 0 14px 14px;
    border-top: 1px solid var(--border, #2e3a50);
}

.wp-back-modules {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text2, #8a9ab5);
    text-decoration: none;
}

.wp-back-modules:hover {
    color: var(--text, #e8edf5);
}

/* Invoice date filter + calendar picker (both modules) */
.inv-date-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: flex-end;
}
.inv-date-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.inv-date-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, #6b7280);
    line-height: 1.2;
}
.ev-date-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}
.ev-date-wrap .date-ddmmyyyy,
.ev-date-wrap .inv-date-input.date-ddmmyyyy {
    width: 118px;
    min-width: 118px;
    padding: 7px 8px;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 6px;
    font-size: 12px;
    background: var(--white, #fff);
    color: var(--text, #1f2937);
}
.ev-date-wrap .ev-date-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}
.ev-date-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 6px;
    background: var(--card2, #f3f4f6);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ev-date-btn:hover {
    border-color: var(--primary, #3b6df0);
    background: var(--primary-light, #e8edfd);
}
input.date-ddmmyyyy {
    font-family: inherit;
}

/* Searchable customer filter (both modules) */
.ev-cust-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ev-cust-combo {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 160px;
}
.ev-cust-input {
    width: 100%;
    min-width: 140px;
    padding: 7px 52px 7px 10px;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 6px;
    font-size: 12px;
    background: var(--input-bg, var(--white, #fff));
    color: var(--text, #1f2937);
    font-family: inherit;
}
.ev-cust-input:focus {
    outline: none;
    border-color: var(--primary, #3b6df0);
    box-shadow: 0 0 0 2px rgba(59, 109, 240, 0.12);
}
.ev-cust-chevron {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.ev-cust-clear {
    position: absolute;
    right: 28px;
    top: 0;
    bottom: 0;
    width: 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary, #9ca3af);
    font-size: 16px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.ev-cust-clear:hover {
    color: var(--danger, #dc2626);
}
.ev-cust-chevron:hover {
    color: var(--primary, #3b6df0);
}
.ev-cust-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}
.ev-cust-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 200;
    max-height: 220px;
    overflow-y: auto;
    background: var(--card, var(--modal-bg, #fff));
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 8px;
    box-shadow: var(--shadow, 0 8px 24px rgba(15, 23, 42, 0.12));
}
.ev-cust-dropdown.open {
    display: block;
}
.ev-cust-item {
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text3, var(--text, #1f2937));
    border-bottom: 1px solid var(--border, #f3f4f6);
    line-height: 1.35;
}
.ev-cust-item:last-child {
    border-bottom: none;
}
.ev-cust-item:hover,
.ev-cust-item.selected {
    background: var(--card2, #f3f4f6);
    color: var(--accent, var(--primary, #3b6df0));
}
.ev-cust-item-all {
    font-weight: 600;
    color: var(--text2, var(--text-secondary, #6b7280));
}
.ev-cust-empty {
    padding: 10px 12px;
    font-size: 11px;
    color: var(--text2, var(--text-secondary, #9ca3af));
    text-align: center;
}
.ff .ev-cust-combo {
    min-width: 170px;
}
.ff .ev-cust-input {
    background: var(--input-bg, #fff);
    border-color: var(--border, #e5e7eb);
    border-radius: 7px;
    padding: 8px 52px 8px 10px;
    font-size: 12px;
    color: var(--text, #1f2937);
}
.filter-row .ev-cust-filter-field .inv-date-label,
.rpt-filter-bar .ev-cust-filter-field .inv-date-label,
.ai-toolbar-sub .ev-cust-filter-field .inv-date-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

div.sidebar .module-switch-btn {
    background: var(--card2, #252d3d);
    border: 1px solid var(--border, #2e3a50);
    color: var(--text, #e8edf5);
}

div.sidebar .module-switch-btn:hover {
    border-color: var(--accent, #4f8ef7);
}

div.sidebar .module-switch-btn.is-active {
    background: rgba(79, 142, 247, 0.18);
    border-color: var(--accent, #4f8ef7);
    color: var(--accent, #4f8ef7);
    box-shadow: 0 0 12px rgba(79, 142, 247, 0.25);
}

/* Auto-size text fields — customer name, address, equipment, remarks (Recharge + Warranty) */
.ev-auto-input,
.ev-cust-name-input,
.ev-address-input,
.ev-remarks-input,
input.wp-equip-name,
input.wp-remarks-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 18ch;
    max-width: 100%;
    field-sizing: content;
}
