/* Control de Rentas - ajustes de dashboard y navegación móvil */

.dashboard-control-heading {
    align-items: center;
    margin-bottom: 22px;
}

.dashboard-control-heading h1 {
    font-size: clamp(28px, 3vw, 36px);
}

.dashboard-greeting {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.dashboard-greeting strong {
    color: var(--navy);
    font-weight: 800;
}

.priority-dashboard {
    margin-top: 0;
}

.rent-queue-panel {
    overflow: hidden;
    padding: 0;
}

.rent-queue-heading {
    padding: 17px 18px 14px;
}

.rent-queue-heading > strong {
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 11px;
    background: #f3f6fa;
    font-size: 14px;
    place-items: center;
}

.queue-pending .rent-queue-heading > strong {
    color: #8b570a;
    background: #fff3dc;
}

.dashboard-delivery-list,
.rent-queue-list {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.dashboard-delivery-item {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 12px;
    color: #3f5164;
    border: 1px solid #e6ebf1;
    border-radius: 13px;
    background: #ffffff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dashboard-delivery-item:hover,
.dashboard-delivery-item:focus-visible {
    border-color: rgba(23, 103, 170, .34);
    box-shadow: 0 9px 22px rgba(22, 52, 83, .09);
    transform: translateY(-1px);
}

.dashboard-delivery-item:focus-visible {
    outline: 3px solid rgba(23, 103, 170, .16);
    outline-offset: 1px;
}

.dashboard-delivery-icon {
    display: grid;
    width: 40px;
    height: 40px;
    color: #96600d;
    border-radius: 12px;
    background: linear-gradient(145deg, #fff3dc, #ffe5b6);
    font-size: 19px;
    font-weight: 900;
    place-items: center;
    transform: rotate(-90deg);
}

.dashboard-delivery-data,
.dashboard-delivery-person {
    display: block;
    min-width: 0;
}

.dashboard-delivery-person {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 8px;
}

.dashboard-delivery-person strong {
    overflow: hidden;
    color: var(--navy);
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-delivery-person small {
    flex: 0 0 auto;
    padding: 3px 6px;
    color: #657489;
    border-radius: 6px;
    background: #f1f4f8;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .035em;
}

.dashboard-delivery-location {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: #768598;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-delivery-item time {
    display: grid;
    min-width: 62px;
    gap: 2px;
    padding: 7px 8px;
    color: #5d6e81;
    border: 1px solid #e6ebf1;
    border-radius: 10px;
    background: #f8fafc;
    text-align: center;
}

.dashboard-delivery-item time strong,
.dashboard-delivery-item time span {
    display: block;
}

.dashboard-delivery-item time strong {
    color: var(--navy);
    font-size: 11px;
}

.dashboard-delivery-item time span {
    font-size: 9px;
    font-weight: 800;
}

.dashboard-delivery-arrow {
    color: #9aabba;
    font-size: 22px;
    line-height: 1;
}

.dashboard-queue-footer {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 10px 10px;
    color: var(--blue);
    border-radius: 11px;
    background: #eef6fc;
    font-size: 10px;
    font-weight: 900;
}

.dashboard-queue-footer:hover,
.dashboard-queue-footer:focus-visible {
    background: #e3f0fa;
}

.rent-queue-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    min-width: 0;
    padding: 11px 12px;
    color: #526476;
    border: 1px solid #e8edf2;
    border-radius: 11px;
    background: #fff;
}

.rent-queue-list a:hover,
.rent-queue-list a:focus-visible {
    border-color: rgba(23, 103, 170, .3);
    background: #fbfdff;
}

.rent-queue-list a > strong,
.rent-queue-list a > span {
    grid-column: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rent-queue-list a > strong {
    color: var(--navy);
    font-size: 11px;
}

.rent-queue-list a > span {
    color: #7b8999;
    font-size: 9px;
}

.rent-queue-list a > time {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    padding: 6px 8px;
    color: #536579;
    border-radius: 8px;
    background: #f3f6fa;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 850px) {
    .main-area > .topbar {
        position: fixed;
        z-index: 35;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        box-shadow: 0 8px 24px rgba(18, 53, 91, .09);
    }

    .main-area > .dashboard-content {
        padding-top: 101px;
    }

    .mobile-menu-button {
        z-index: 40;
    }
}

@media (max-width: 700px) {
    .dashboard-control-heading {
        gap: 12px;
        margin-bottom: 19px;
    }

    .dashboard-control-heading h1 {
        font-size: 28px;
    }

    .dashboard-greeting {
        margin-top: 6px;
        font-size: 12px;
    }

    .rent-queue-heading {
        padding: 15px;
    }

    .dashboard-delivery-list,
    .rent-queue-list {
        gap: 7px;
        padding: 8px;
    }

    .dashboard-delivery-item {
        grid-template-columns: 38px minmax(0, 1fr) 10px;
        gap: 9px;
        padding: 11px 10px;
    }

    .dashboard-delivery-icon {
        width: 38px;
        height: 38px;
    }

    .dashboard-delivery-person {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dashboard-delivery-person strong {
        font-size: 11px;
    }

    .dashboard-delivery-location {
        white-space: normal;
    }

    .dashboard-delivery-item time {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        display: flex;
        min-width: 0;
        gap: 5px;
        margin-top: 3px;
        padding: 4px 7px;
    }

    .dashboard-delivery-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 560px) {
    .main-area > .topbar {
        min-height: 72px;
        padding-right: 13px;
        padding-left: 72px;
    }

    .main-area > .dashboard-content {
        padding-top: 94px;
    }

    .topbar-actions {
        gap: 8px;
    }

    .logout-button {
        min-height: 42px;
        padding-right: 13px;
        padding-left: 13px;
    }
}
