/* App-level styles loaded via Asset Mapper. Porto theme CSS stays in public/. */

.app-toast-container {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 10070;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.app-toast {
    pointer-events: auto;
    padding: 12px 14px;
    border-radius: 4px;
    background: #2e353e;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    animation: app-toast-in 0.2s ease;
}

.app-toast-hiding {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.app-toast-text {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.75;
    line-height: 1.25;
    margin-top: 0.15rem;
}

.app-toast-success {
    border-left: 4px solid #47a447;
}

.app-toast-error {
    border-left: 4px solid #d2322d;
}

.app-toast-info {
    border-left: 4px solid #5bc0de;
}

.app-toast-custom,
.app-toast-notice {
    border-left: 4px solid #0088cc;
}

.app-datatable-toolbar,
.app-datatable-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.app-datatable-toolbar {
    margin-bottom: 0.75rem;
}

.app-datatable-footer {
    margin-top: 0.75rem;
}

.app-datatable-length {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.8rem;
    color: #777;
    white-space: nowrap;
}

.app-datatable-length .form-control {
    width: auto;
    display: inline-block;
    min-width: 4.5rem;
}

.app-datatable-search {
    min-width: min(260px, 100%);
}

.app-datatable-search .form-control {
    max-width: 100%;
}

.app-datatable-info {
    font-size: 0.8rem;
    color: #777;
}

.app-datatable-pager .page-link {
    cursor: pointer;
}

.app-datatable-empty {
    text-align: center;
}

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