/* UrbanSpacing — SAP Fiori Horizon Theme */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* SAP-style scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #F5F6FA;
}
::-webkit-scrollbar-thumb {
    background: #BCC3CA;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8C9299;
}

/* Flash message animation */
#flash-message {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SAP-style table rows */
table tbody tr {
    transition: background-color 0.12s ease;
}

/* SAP-style form inputs */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(10, 110, 209, 0.2);
}

/* SAP Card shadows */
.bg-white {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* SAP Shell active nav indicator */
.bg-sap-blue {
    position: relative;
}

/* SAP-style badges */
.badge-paid {
    background: #EBF5EE;
    color: #107E3E;
}
.badge-pending {
    background: #FFF3CD;
    color: #E9730C;
}
.badge-overdue {
    background: #FCECED;
    color: #BB0000;
}

/* SAP-style data table header */
table thead th {
    letter-spacing: 0.01em;
    font-size: 0.8125rem;
}

/* SAP compact density for data tables */
table td, table th {
    font-size: 0.8125rem;
}

/* SAP-style progress bars */
.bg-sap-positive,
[class*="bg-green-"] {
    transition: width 0.5s ease-in-out;
}

/* Focus visible for keyboard nav */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0A6ED1;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Print styles */
@media print {
    aside, header, #flash-message, .no-print {
        display: none !important;
    }
    main {
        padding: 0 !important;
    }
    body {
        background: white !important;
    }
    .bg-white {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
