/* Los elementos ocultos por JavaScript deben permanecer fuera del layout. */
.print-history-page [hidden] { display: none !important; }

.print-history-access {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem 1.2rem;
    padding-top: 1.1rem;
    padding-bottom: .2rem;
}
.print-history-access__link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.15rem;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 13px;
    color: #aa1c25;
    box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
    text-decoration: none;
    font-weight: 750;
}
.print-history-access__link:hover,
.print-history-access__link:focus-visible {
    border-color: #ba2b30;
}
.print-history-access p { margin: 0; color: #5e5e5e; font-size: .92rem; }
.print-history-workspace {
    max-width: 850px;
    padding-top: 1.8rem;
    padding-bottom: 4rem;
}
.print-history-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.print-history-heading h2 {
    margin: 0.2rem 0 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
}
.print-history-new {
    display: inline-flex;
    justify-content: center;
    padding: .7rem 1rem;
    border: 1px solid #bd2b32;
    color: #a91c25;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
}
.print-history-list { display: grid; gap: 1rem; }
.print-history-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .7rem 1rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 1.3rem;
    box-shadow: 0 3px 14px rgb(0 0 0 / 4%);
}
.print-history-card__main h3 { font-size: 1.16rem; margin: 0 0 .2rem; }
.print-history-card__date { margin: 0; color: #666; font-size: .9rem; }
.print-history-card__status {
    color: #a91c25;
    font-weight: 750;
    margin: .15rem 0 0;
    text-align: right;
}
.print-history-card__detail { grid-column: 1 / -1; font-size: .92rem; color: #555; margin: 0; }
.print-history-card__link {
    grid-column: 1 / -1;
    width: fit-content;
    color: #a91c25;
    text-decoration: none;
    font-weight: 700;
}
.print-history-loading { display: flex; align-items: center; gap: 1rem; padding: 2rem .3rem; }
.print-history-loading p { margin: 0; }
.print-history-empty {
    text-align: center;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.2rem;
}
.print-history-empty__icon { font-size: 2.2rem; color: #a91c25; }
.print-history-empty h3 { margin: 1rem 0 .5rem; }
.print-history-empty p { max-width: 510px; margin: 0 auto 1.5rem; line-height: 1.6; color: #555; }
.print-history-empty .print-order-button { display: inline-flex; text-decoration: none; }
.print-history-note { margin: 1.4rem 0 0; color: #686868; font-size: .85rem; line-height: 1.5; }
@media (max-width: 600px) {
    .print-history-card { grid-template-columns: 1fr; }
    .print-history-card__status { text-align: left; }
    .print-history-workspace { padding-top: 1.2rem; }
}
