@import url("/ui.css?v=ds-v2");

@layer base {
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgb(138 85 0 / 24%);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.container,
.container-fluid {
    width: min(calc(100% - 2.5rem), 1240px);
    margin-inline: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -0.75rem;
}

.row > * {
    width: 100%;
    min-width: 0;
    padding-inline: 0.75rem;
}

.col,
.col-md-3,
.col-md-4,
.col-md-6,
.col-md-8,
.col-md-9,
.col-md-12,
.col-lg-4,
.col-lg-6,
.col-lg-8,
.col-lg-10,
.col-sm-5,
.col-sm-7 {
    flex: 0 0 auto;
}

@media (min-width: 576px) {
    .col-sm-5 { width: 41.6667%; }
    .col-sm-7 { width: 58.3333%; }
}

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.3333%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.6667%; }
    .col-md-9 { width: 75%; }
    .col-md-12 { width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-4 { width: 33.3333%; }
    .col-lg-6 { width: 50%; }
    .col-lg-8 { width: 66.6667%; }
    .col-lg-10 { width: 83.3333%; }
}
.row.g-2 { row-gap: 0.5rem; }
.row.g-3 { row-gap: 1rem; }
.row.g-4 { row-gap: 1.5rem; }

.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-block { display: block !important; }
.d-inline-flex { display: inline-flex !important; }
.d-none { display: none !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.mx-auto { margin-inline: auto !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.px-2 { padding-inline: 0.5rem !important; }
.px-3 { padding-inline: 1rem !important; }
.py-1 { padding-block: 0.25rem !important; }
.py-2 { padding-block: 0.5rem !important; }
.py-4 { padding-block: 1.5rem !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-start { text-align: left !important; }
.text-nowrap { white-space: nowrap !important; }
.text-decoration-none { text-decoration: none !important; }
.small { font-size: 0.875rem; }
.fs-5 { font-size: 1.25rem !important; }
.fs-2 { font-size: 2rem !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.position-relative { position: relative !important; }
.overflow-hidden { overflow: hidden !important; }
.rounded-circle { border-radius: 50% !important; }
.img-fluid { width: 100%; height: auto; }
.img-thumbnail { padding: 0.25rem; border: 1px solid; border-radius: 0.5rem; }

.card {
    min-width: 0;
    border: 1px solid;
    border-radius: 0.75rem;
    background: var(--bg-card, #fff);
}

.card-body,
.card-header,
.card-footer {
    padding: 1rem;
}

.card-header,
.card-footer {
    border-bottom: 1px solid;
}

.card-footer {
    border-top: 1px solid;
    border-bottom: 0;
}

.card-title {
    margin: 0 0 0.5rem;
}

.card-text:last-child {
    margin-bottom: 0;
}

.btn {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.btn-sm {
    min-height: 2.2rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
}

.btn-lg {
    min-height: 3rem;
    padding: 0.7rem 1.1rem;
}

.btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.form-control,
.form-select,
input,
select,
textarea {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid;
    border-radius: 0.5rem;
    background: var(--bg-input, #fff);
    color: var(--tx, inherit);
    font: inherit;
    line-height: 1.4;
}

textarea,
textarea.form-control {
    min-height: 7rem;
    resize: vertical;
}

.form-control:disabled,
.form-select:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

label,
.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 650;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.form-check-input {
    width: 1rem;
    min-height: 1rem;
    flex: 0 0 auto;
    margin-top: 0.18rem;
}

.form-check-label {
    margin: 0;
}

.form-text {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
}

.form-group,
.mb-3 {
    min-width: 0;
}

.validation-message,
.text-danger {
    font-size: 0.8rem;
}

.alert {
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    font-size: 0.875rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid;
    text-align: left;
    vertical-align: middle;
}

.table-striped tbody tr:nth-child(even) {
    background: rgb(0 0 0 / 2%);
}

.progress {
    width: 100%;
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
}

.progress-bar {
    height: 100%;
    border-radius: inherit;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0;
    list-style: none;
}

.page-link {
    display: grid;
    min-width: 2.4rem;
    min-height: 2.4rem;
    place-items: center;
    padding: 0.4rem 0.65rem;
    border: 1px solid;
    border-radius: 0.5rem;
    background: var(--bg-card, #fff);
    color: var(--tx, inherit);
    font-size: 0.8rem;
    cursor: pointer;
}

.list-unstyled {
    padding-left: 0;
    list-style: none;
}

.list-group {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.list-group-item {
    padding: 1rem;
    border-bottom: 1px solid;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    overflow-y: auto;
}

.modal-dialog {
    width: min(calc(100% - 2rem), 34rem);
    margin: 10vh auto;
}

.modal-content {
    overflow: hidden;
    border: 1px solid;
    border-radius: 0.9rem;
    background: var(--bg-card, #fff);
    color: var(--tx, inherit);
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 1rem 1.25rem;
}

.modal-header,
.modal-footer {
    border-bottom: 1px solid;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid;
    border-bottom: 0;
}

.btn-close {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .container,
    .container-fluid {
        width: calc(100% - 1.5rem);
    }

    .row > .col-md-3,
    .row > .col-md-4,
    .row > .col-md-6,
    .row > .col-md-8,
    .row > .col-md-9,
    .row > .col-md-12 {
        width: 100%;
    }

    .p-5 { padding: 1.25rem !important; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.my-1 { margin-block: 0.25rem !important; }
.my-2 { margin-block: 0.5rem !important; }
.my-3 { margin-block: 1rem !important; }
.my-4 { margin-block: 1.5rem !important; }
.mx-2 { margin-inline: 0.5rem !important; }
.mx-3 { margin-inline: 1rem !important; }
.me-auto { margin-right: auto !important; }
.ms-auto { margin-left: auto !important; }
.p-1 { padding: 0.25rem !important; }
.px-1 { padding-inline: 0.25rem !important; }
.px-4 { padding-inline: 1.5rem !important; }
.py-3 { padding-block: 1rem !important; }
.py-5 { padding-block: 3rem !important; }
.text-white { color: var(--gold-ink, #fff) !important; }
.text-dark { color: var(--tx, #1a0f00) !important; }
.bg-transparent { background: transparent !important; }
.border { border: 1px solid !important; }
.border-0 { border: 0 !important; }
.border-3 { border-width: 2px !important; }
.shadow-sm { box-shadow: var(--shadow-sm, 0 2px 8px rgb(0 0 0 / 8%)) !important; }
.shadow-lg { box-shadow: var(--shadow-lg, 0 16px 36px rgb(0 0 0 / 12%)) !important; }
.display-6 { font-size: 2rem !important; }
.btn-group-sm .btn { min-height: 2.15rem; padding: 0.35rem 0.55rem; font-size: 0.74rem; }

.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin: 0; list-style: none; }
.nav-item { display: block; }
.nav-link { display: block; padding: 0.55rem 0.75rem; }
.nav-pills { gap: 0.3rem; }
.nav-pills .nav-link { border-radius: 0.5rem; }
}
