.receipt-topbar {
    align-items: center;
}

.receipt-printer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    padding: 12px 16px;
    border: 1px solid #35404d;
    border-radius: 10px;
    background: #202730;
}

.receipt-printer > i {
    color: #60a5fa;
    font-size: 24px;
}

.receipt-printer span {
    display: grid;
}

.receipt-printer small {
    color: #8f9baa;
    font-size: 11px;
}

.receipt-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.receipt-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border: 1px solid #35404d;
    border-radius: 11px;
    background: #202730;
}

.receipt-stat > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    background: #2a3440;
    font-size: 18px;
}

.receipt-stat span {
    display: grid;
    gap: 3px;
}

.receipt-stat small {
    color: #9aa5b3;
}

.receipt-stat strong {
    font-size: 20px;
}

.receipt-stat.ready > i { color: #fbbf24; }
.receipt-stat.done > i { color: #34d399; }
.receipt-stat.error > i { color: #fb7185; }
.receipt-stat.value > i { color: #60a5fa; }
.receipt-stat.external > i { color: #a78bfa; }

.receipt-safety {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #765f25;
    border-radius: 10px;
    background: linear-gradient(90deg, #2b281e, #222832);
}

.receipt-safety-icon {
    color: #fbbf24;
    font-size: 22px;
}

.receipt-safety p {
    margin: 3px 0 0;
    color: #b5bec9;
    font-size: 13px;
}

.receipt-mode {
    margin-left: auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fbbf24;
    color: #171a1f;
    font-size: 11px;
    font-weight: 800;
}

.receipt-toolbar {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #35404d;
    border-radius: 10px;
    background: #202730;
}

.receipt-toolbar label {
    display: grid;
    gap: 6px;
    color: #aab4c0;
    font-size: 12px;
}

.receipt-toolbar input {
    min-width: 170px;
}

.receipt-table-card {
    overflow: hidden;
}

.receipt-table-wrap {
    overflow-x: auto;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
}

.receipt-table th {
    padding: 11px 13px;
    color: #9eabb9;
    background: #1c222a;
    font-size: 11px;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.receipt-table td {
    padding: 11px 13px;
    border-top: 1px solid #303a45;
    white-space: nowrap;
}

.receipt-table tbody tr:hover {
    background: #252e38;
}

.receipt-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #3b3320;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
}

.receipt-status.status-completed,
.receipt-status.status-fiscalized {
    background: #163b2c;
    color: #4ade80;
}

.receipt-status.status-error,
.receipt-status.status-retry {
    background: #452329;
    color: #fb7185;
}

.receipt-status.status-external {
    background: #30294a;
    color: #c4b5fd;
}

.readiness-card {
    margin-bottom: 16px;
    overflow: hidden;
}

.schedule-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.schedule-chips span {
    padding: 6px 9px;
    border: 1px solid #394552;
    border-radius: 999px;
    background: #202832;
    color: #b9c3cf;
    font-size: 11px;
}

.schedule-chips i {
    margin-right: 4px;
    color: #60a5fa;
}

.readiness-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    border-top: 1px solid #303a45;
    border-bottom: 1px solid #303a45;
    background: #303a45;
}

.readiness-count {
    display: grid;
    gap: 3px;
    padding: 13px 15px;
    background: #202730;
}

.readiness-count strong {
    font-size: 21px;
}

.readiness-count span {
    color: #9aa5b3;
    font-size: 11px;
}

.readiness-count.state-ready strong { color: #4ade80; }
.readiness-count.state-missing_vat strong,
.readiness-count.state-amount_mismatch strong { color: #fb7185; }
.readiness-count.state-return_pending strong { color: #fbbf24; }
.readiness-count.state-review strong { color: #a78bfa; }

.readiness-badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #2e3640;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
}

.readiness-badge.state-ready {
    background: #163b2c;
    color: #4ade80;
}

.readiness-badge.state-missing_vat,
.readiness-badge.state-amount_mismatch,
.readiness-badge.state-review {
    background: #452329;
    color: #fb7185;
}

.readiness-badge.state-return_pending {
    background: #3b3320;
    color: #fbbf24;
}

.readiness-message {
    max-width: 440px;
    overflow: hidden;
    color: #aeb8c4;
    text-overflow: ellipsis;
}

.readiness-table td:last-child {
    white-space: normal;
}

@media (max-width: 1050px) {
    .receipt-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .readiness-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .receipt-summary {
        grid-template-columns: 1fr;
    }
    .readiness-summary {
        grid-template-columns: 1fr;
    }
    .receipt-printer {
        width: 100%;
    }
    .receipt-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}
