@charset "utf-8";

/* Layout */

#ftr-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    flex: 1;
}

.content {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 20px;
}

.content-fluid {
    margin-left: auto;
    margin-right: auto;
    padding: 30px 20px;
}

/* Cards — vertical spacing between stacked cards */

.px-card + .px-card {
    margin-top: 1rem;
}

.px-card h3 {
    margin-top: 0;
}

/* Login page */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-wrap {
    width: 100%;
    max-width: 400px;
    padding: 16px;
}

.login-card {
    padding: 0;
    border-radius: var(--px-r-md);
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: 24px 24px 20px;
    border-top: 3px solid var(--px-cyan);
    border-radius: var(--px-r-md) var(--px-r-md) 0 0;
    background: var(--px-surface-1);
    border-bottom: 1px solid var(--px-border);
}

.login-header img {
    height: 36px;
}

.login-body {
    padding: 24px;
}

.login-body .px-btn {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

/* Form labels */

label {
    display: block;
    font-size: 12px;
    color: var(--px-text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

/* Select arrow — custom chevron matching the styleguide */

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.6) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.6) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

/* Password inputs — not covered by components.css */

input[type="password"] {
    width: 100%;
    min-height: 46px;
    border-radius: var(--px-r-sm);
    border: 1px solid var(--px-border);
    background: rgba(0, 0, 0, 0.24);
    color: var(--px-text);
    font-family: var(--px-font-ui);
    padding: 0.65rem 0.78rem;
}

input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

input[type="password"]:focus {
    outline: none;
    border-color: var(--px-cyan);
    box-shadow: var(--px-focus);
}

/* Form helper text */

.form-helper {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

/* Form actions */

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

/* Alerts */

.alert {
    position: relative;
    padding: 12px 16px;
    border-radius: var(--px-r-sm);
    border: 1px solid var(--px-border);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--px-text-muted);
}


.alert--danger {
    border-color: rgba(255, 0, 195, 0.25);
    background: linear-gradient(180deg, rgba(255, 0, 195, 0.10), rgba(255, 255, 255, 0.03));
}

.alert--info {
    border-color: rgba(44, 215, 255, 0.25);
    background: linear-gradient(180deg, rgba(44, 215, 255, 0.10), rgba(255, 255, 255, 0.03));
}

.alert--success {
    border-color: rgba(44, 215, 255, 0.25);
    background: linear-gradient(180deg, rgba(44, 215, 255, 0.10), rgba(255, 255, 255, 0.03));
}

.alert--warning {
    border-color: rgba(255, 0, 195, 0.25);
    background: linear-gradient(180deg, rgba(255, 0, 195, 0.10), rgba(255, 255, 255, 0.03));
}

/* Structural elements */

hr {
    border: none;
    border-top: 1px solid var(--px-border);
    margin: 24px 0;
}

.px-card hr {
    margin: 0.5rem 0;
}

/* Utility */

.text-muted { color: var(--px-text-muted) !important; }
th, td { white-space: nowrap; }
.wrap { white-space: normal !important; }
.break { white-space: break-spaces !important; }

h3, h4, h5, h6 { margin: 0 0 0.5rem; line-height: 1.25; }

.px-card h3 { margin: 0; }

/* Pagination */

.pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0; padding: 0;
    float: right;
    padding-top: 0.9rem;
}

.page-search { width: 290px; height: 60px; padding-top: 0.6rem; margin-left: 0.3rem; float: left; }

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--px-border);
    color: var(--px-text);
    font-size: 14px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.page-link:hover {
    background: rgba(44, 215, 255, 0.10);
    border-color: rgba(44, 215, 255, 0.25);
    color: var(--px-cyan);
}

.page-item.active .page-link {
    background: var(--px-grad-dark-45);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}
