﻿.app-content-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 4px;
    color: #7e8299;
    font-size: 0.95rem;
}

.app-currency {
    margin-right: 3px;
    color: #b5b5c3;
    font-size: 0.85em;
}

.app-qty {
    display: inline-block;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f3f6f9;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.app-chip {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.app-chip--primary { background: #e1f0ff; color: #187de4; }
.app-chip--info { background: #e1f7f5; color: #0bb7af; }
.app-chip--purple { background: #eee5ff; color: #7337ee; }
.app-chip--success { background: #e8fff3; color: #3aaf6c; }
.app-chip--muted { background: #f3f6f9; color: #7e8299; }

.app-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #b5b5c3;
}

.app-empty > i {
    font-size: 2rem;
    color: #d6e9ff;
    margin-bottom: 4px;
}

.app-empty-title {
    font-weight: 600;
    color: #7e8299;
    font-size: 1rem;
}

.app-empty-sub {
    font-size: 0.9rem;
}

table.dataTable td.dataTables_empty {
    padding: 28px 0;
}

.app-dt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.app-dt-footer .dataTables_length select {
    width: auto;
    display: inline-block;
}

tr.app-row-flash > td { animation: appRowFlash 1.8s ease-out; }
tr.app-row-invalid > td { animation: appRowInvalid 2.4s ease-out; }

@keyframes appRowFlash {
    0%, 30% { background-color: #e1f0ff; }
    100% { background-color: transparent; }
}

@keyframes appRowInvalid {
    0%, 40% { background-color: #ffe2e5; }
    100% { background-color: transparent; }
}

tr.app-day-group > td {
    background: #f7f9fc !important;
    color: #3f4254;
    font-size: 0.85rem;
    padding-top: 6px;
    padding-bottom: 6px;
    border-top: 1px solid #ebedf3;
}

tr.app-day-group .app-day-group-icon {
    color: #3699ff;
    margin-right: 8px;
}

tr.app-day-group .app-day-group-chevron {
    color: #7e8299;
    margin-right: 10px;
    font-size: 0.75rem;
    transition: transform .18s ease;
}

tr.app-day-group.is-collapsed .app-day-group-chevron { transform: rotate(-90deg); }
tr.app-day-group.is-collapsed > td { color: #7e8299; }
tr.app-day-group.is-toggle { cursor: pointer; user-select: none; }
tr.app-day-group.is-toggle:hover > td { background: #eef4fb !important; }
tr.app-day-group.is-toggle:focus { outline: none; }
tr.app-day-group.is-toggle:focus-visible > td { box-shadow: inset 0 0 0 2px rgba(54, 153, 255, .35); }
tr.app-day-group.is-flash > td { animation: appDayFlash 1.8s ease-out; }

tr.app-day-group .app-day-group-count {
    margin-left: 10px;
    color: #b5b5c3;
}

tr.app-day-group .app-day-group-note {
    margin-left: 12px;
    color: #a1a5b7;
    font-weight: 400;
}

tr.app-day-group .app-day-group-note::before {
    content: "·";
    margin-right: 10px;
    color: #d1d3e0;
}

tr.app-day-group .app-day-group-note b {
    font-weight: 600;
    color: #b5b5c3;
}

tr.app-day-group:not(.is-collapsed) .app-only-collapsed { display: none; }
tr.app-day-group .app-day-group-note:empty { display: none; }

tr.app-day-group .app-day-group-total {
    float: right;
    margin-left: 16px;
    font-weight: 700;
    color: #3f4254;
    font-variant-numeric: tabular-nums;
}

tr.app-day-group .app-day-group-all {
    float: right;
    color: #3699ff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0 4px;
}

tr.app-day-group .app-day-group-all i { margin-right: 4px; color: #3699ff; }
tr.app-day-group .app-day-group-all:hover { color: #187de4; text-decoration: underline; }

tr.app-day-row-collapsed { display: none; }

@keyframes appDayFlash {
    0%, 30% { box-shadow: inset 0 0 0 9999px rgba(54, 153, 255, .18); }
    100% { box-shadow: inset 0 0 0 9999px rgba(54, 153, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
    tr.app-row-flash > td,
    tr.app-row-invalid > td,
    tr.app-day-group.is-flash > td { animation: none; }
}
