/* ORD Widget - виджет отправки актов в ОРД */

.invoice-widget {
    position: fixed;
    bottom: 45px;
    left: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.invoice-widget-expanded {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    min-width: 350px;
}

.invoice-list {
    max-height: 300px;
    overflow-y: auto;
}

.invoice-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    transition: background 0.2s;
}

.invoice-item:last-child {
    border-bottom: none;
}

.invoice-item:hover {
    background: #f9f9f9;
}

.invoice-item-info {
    flex: 1;
    min-width: 0;
}

.invoice-item-serial {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.invoice-item-serial.clickable {
    color: #1976d2;
    text-decoration: none;
}

.invoice-item-serial.clickable:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.invoice-item-date {
    font-size: 12px;
    color: #666;
}

.invoice-item-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.status-pending {
    background: #e0e0e0;
    color: #666;
}

.status-sending {
    background: #fff9c4;
    color: #f57f17;
    animation: pulse 1.5s ease-in-out infinite;
}

.status-success {
    background: #c8e6c9;
    color: #2e7d32;
}

.status-error {
    background: #ffcdd2;
    color: #c62828;
    cursor: pointer;
}

.status-error:hover {
    background: #ef9a9a;
}

.status-skipped {
    background: #f5f5f5;
    color: #9e9e9e;
}

.send-all-btn {
    width: 100%;
    padding: 12px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.send-all-btn:hover:not(:disabled) {
    background: #1565c0;
}

.send-all-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.send-all-btn.stopping {
    background: #d32f2f;
}

.send-all-btn.stopping:hover {
    background: #b71c1c;
}

.invoice-widget-expanded::-webkit-scrollbar {
    width: 8px;
}

.invoice-widget-expanded::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.invoice-widget-expanded::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.invoice-widget-expanded::-webkit-scrollbar-thumb:hover {
    background: #555;
}
