/* Ludite UI template: shared visual foundation for all portal pages. */
:root {
    --ludite-green: #087c35;
    --ludite-green-strong: #075c2d;
    --ludite-orange: #f58200;
    --ludite-ink: #173126;
    --ludite-muted: #657168;
    --ludite-page: #f5f7f4;
    --ludite-surface: #ffffff;
    --ludite-border: #dfe7e1;
    --ludite-radius: 16px;
    --ludite-shadow: 0 10px 28px rgba(18, 63, 37, .10);
}

html { height: 100%; }
* { -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; background: var(--ludite-page); color: var(--ludite-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--ludite-green-strong); }
a:hover { color: var(--ludite-green); }

/* Navigation and mark */
.navbar { min-height: 72px; background: linear-gradient(105deg, #063c22, var(--ludite-green-strong)) !important; box-shadow: 0 3px 16px rgba(4, 45, 24, .24); }
.navbar .container { gap: .75rem; }
.navbar-brand { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; color: #fff !important; font-size: 1.05rem; font-weight: 750; letter-spacing: -.02em; }
.navbar-brand::before { content: ""; flex: 0 0 44px; width: 44px; height: 44px; background: url('/assets/images/ludite-logo.png') center / contain no-repeat; }
.navbar .text-white { overflow: hidden; max-width: 22ch; text-overflow: ellipsis; white-space: nowrap; }

/* Surfaces */
.card { border: 1px solid var(--ludite-border); border-radius: var(--ludite-radius); box-shadow: var(--ludite-shadow); overflow: hidden; }
.card-header { padding: 1rem 1.25rem; background: var(--ludite-surface); border-bottom: 1px solid var(--ludite-border); color: var(--ludite-ink); font-weight: 700; }
.card-body { background: var(--ludite-surface); }
.table { --bs-table-bg: transparent; --bs-table-striped-bg: #f7faf7; --bs-table-hover-bg: #edf7f0; }
.table > :not(caption) > * > * { border-color: var(--ludite-border); vertical-align: middle; }
.table thead th { color: var(--ludite-muted); font-size: .78rem; letter-spacing: .035em; text-transform: uppercase; }

/* Controls */
.btn { min-height: 40px; border-radius: 9px; font-weight: 650; padding: .48rem .9rem; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary, .btn.btn-primary, .btn-success { background-color: var(--ludite-green-strong) !important; border-color: var(--ludite-green-strong) !important; color: #fff !important; box-shadow: 0 4px 10px rgba(7, 92, 45, .18); }
.btn-primary:hover, .btn-success:hover { background-color: var(--ludite-green) !important; border-color: var(--ludite-green) !important; }
.btn-outline-primary, .btn.btn-outline-primary { color: var(--ludite-green-strong) !important; border-color: #87b89b !important; background: #fff; }
.btn-outline-primary:hover, .btn-outline-primary:focus { background: #edf7f0 !important; border-color: var(--ludite-green) !important; color: var(--ludite-green-strong) !important; }
.btn-outline-secondary { border-color: #c7d0ca; color: #4e5c53; }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); }
.form-control, .form-select { min-height: 42px; border-color: #cdd8d0; border-radius: 9px; padding: .58rem .75rem; }
.form-control:focus, .form-select:focus { border-color: var(--ludite-green); box-shadow: 0 0 0 .22rem rgba(8, 124, 53, .14); }
.form-label { color: var(--ludite-ink); font-weight: 650; }
.badge { border-radius: 999px; padding: .48em .7em; }
.alert { border: 0; border-radius: 12px; }.text-muted { color: var(--ludite-muted) !important; }

/* Brand lockup and utilities */
.login-logo { display: block; width: min(220px, 68%); height: auto; max-height: 120px; margin: 0 auto 1rem; object-fit: contain; }
.is-hidden { display: none; }
.order-view-actions { display: none; }
.order-view-items { table-layout: auto; }
.order-view-items th, .order-view-items td { padding: .45rem .65rem; vertical-align: middle; }
.order-view-items th { color: var(--ludite-muted); font-size: .78rem; font-weight: 650; white-space: nowrap; }
.order-view-items .order-view-um { width: 1%; margin: 0; font-size: .78rem; font-weight: 400; white-space: nowrap; }
.order-view-items th.order-view-um { font-weight: 650; }
.order-view-quantity { width: 1%; margin: 0; font-size: 1rem; line-height: 1.2; text-align: right; white-space: nowrap; }
.order-view-product { min-width: 0; line-height: 1.25; }
.order-view-product-name { font-size: .88rem; }

@media (max-width: 767.98px) {
    .navbar { min-height: 64px; }.navbar .container { flex-wrap: nowrap; }.navbar-brand::before { flex-basis: 36px; width: 36px; height: 36px; }
    .navbar .d-flex { gap: .5rem !important; }.navbar .text-white { display: none; }
    .container, .container-fluid { padding-left: 1rem; padding-right: 1rem; }
    .card { border-radius: 13px; }.card-header { padding: .9rem 1rem; }
    .table-responsive { border-radius: 0; }.btn { min-height: 42px; }
}

@media (max-width: 420px) { .navbar-brand { font-size: .92rem; }.login-logo { width: min(195px, 70%); max-height: 106px; } }
