/* Location: /pwa/assets/pwa_core.css */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f5f7fb;
    color: #2c3e50;
    -webkit-font-smoothing: antialiased;
}

.pwa-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 64px;
    padding-bottom: 60px;
}

.pwa-content {
    flex: 1;
    padding: 12px;
    max-width: 960px;
    margin: 0 auto;
}

.pwa-card {
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.pwa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.pwa-card-meta {
    font-size: 12px;
    color: #7f8c8d;
}

.pwa-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.pwa-badge-domestic {
    background-color: #FDE3A7;
    color: #34495E;
}

.pwa-badge-commercial {
    background-color: #A9CCE3;
    color: #2C3E50;
}

.pwa-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.pwa-kpi-tile {
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    padding: 10px 12px;
}

.pwa-kpi-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.pwa-kpi-value {
    font-size: 18px;
    font-weight: 700;
}

.pwa-list-header,
.pwa-list-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.4fr;
    column-gap: 8px;
    font-size: 12px;
}

.pwa-list-header {
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.pwa-list-row {
    padding: 8px 10px;
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 6px;
}

.pwa-list-row strong {
    font-size: 13px;
}

.pwa-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.pwa-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.pwa-status-done {
    background-color: #d4edda;
    color: #155724;
}

.pwa-status-overdue {
    background-color: #f8d7da;
    color: #721c24;
}

@media (min-width: 768px) {
    .pwa-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


.as-toast {
    animation: fadeInOut 3.1s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}
