/*
 * dermanim.az additions on top of the house template (modern-admin.css).
 * Classes, not style="" attributes: the admin CSP is style-src 'self'.
 * Secondary text stays dark (≥ 7:1 on white) — the operator rejects faint grey.
 */

.meta { color: #4a5568; font-size: 13px; }
.page-description { margin-top: 4px; }
.cell-wrap { white-space: normal; word-break: break-word; min-width: 180px; }

/* Header: admin name instead of the template's stock portrait */
.navbar-admin { display: flex; align-items: center; gap: 6px; }
.navbar-admin .icon { font-size: 18px; }
.dropdown-menu button.dropdown-item { cursor: pointer; width: 100%; text-align: left; background: none; border: 0; }

/* Menubar footer: the logout control is a real <button form="logout-form"> */
/* Mirrors the template's `.site-menubar-footer > a` rules (site.min599c.css). */
.site-menubar-footer > button {
    display: block; float: left; width: 33.333333%; height: 76px; padding: 26px 0;
    font-size: 16px; color: #76838f; text-align: center; background-color: #21292e; border: 0; cursor: pointer;
}
.site-menubar-footer > button:hover, .site-menubar-footer > button:focus { background-color: #1e2427; }
.site-menubar-fold .site-menubar-footer > button { display: none; }

/* Filter rows */
.filter-row { margin-bottom: 8px; }
.filter-actions { display: flex; align-items: flex-end; gap: 8px; }
.filter-actions .btn { white-space: nowrap; }

/* Pagination row */
.pager-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pager-row .pagination { margin: 0; flex-wrap: wrap; }

/* Stat tiles */
.stat-card { margin-bottom: 24px; }
.stat-card .card-block { min-height: 150px; }
.stat-card-sm .card-block { min-height: 0; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; }
.stat-icon .icon { font-size: 16px; }
.stat-label { margin-left: 10px; font-weight: 500; color: #1f2d3d; }
.stat-card-sm .stat-label { margin-left: 0; color: #4a5568; font-size: 13px; }
.stat-value { font-size: 36px; font-weight: 300; line-height: 1.2; margin: 10px 0 6px; color: #1f2d3d; }
.stat-card-sm .stat-value { font-size: 26px; margin: 4px 0 0; }
.stat-sub { color: #4a5568; font-size: 13px; }
.stat-sub .badge { margin: 2px 2px 0 0; }

/* Key/value facts */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.facts dt { font-weight: 500; color: #4a5568; }
.facts dd { margin: 0; color: #1f2d3d; word-break: break-word; }

/* Notes */
.note { padding: 10px 0; border-bottom: 1px solid #eef0f3; }
.note:last-child { border-bottom: 0; }
.note-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.note-body { margin: 6px 0 0; white-space: pre-line; color: #1f2d3d; }

/* Panel heading actions on narrow screens */
.panel-heading { position: relative; }
.panel-actions form { display: inline; }

/* Login */
.page-login .login-title { color: #fff; margin-bottom: 18px; }
.page-login .login-form { width: 340px; max-width: 100%; margin: 0 auto 30px; text-align: left; }
.page-login .brand-text { color: #fff; }
.page-login .page-copyright-inverse p { color: rgba(255, 255, 255, .85); }

@media (max-width: 767px) {
    /* The template centres the actions absolutely on the right: on a phone they cover the title. */
    .page-header-actions { position: static; transform: none; margin-top: 12px; }
    .stat-card .card-block { min-height: 0; }
    .stat-value { font-size: 28px; }
    .filter-actions { align-items: stretch; }
}

/* Error pages (resources/views/errors) */
.error-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.error-box { text-align: center; padding: 24px; }
.error-code { font-size: 72px; font-weight: 300; line-height: 1; margin: 0 0 12px; color: #1f2d3d; }
.error-title { font-size: 20px; margin: 0 0 24px; color: #1f2d3d; }

/* dermanim: thumbnails and previews (img sizes in CSS — no style="" under the CSP) */
.thumb-sm { width: 40px; height: 40px; object-fit: contain; border: 1px solid #e7eaf0; border-radius: 4px; background: #fff; }
.thumb-md { width: 72px; height: 72px; object-fit: contain; border: 1px solid #e7eaf0; border-radius: 4px; background: #fff; }
.image-preview { margin: 8px 0; }
.image-preview img { max-width: 160px; max-height: 160px; object-fit: contain; border: 1px solid #e7eaf0; border-radius: 4px; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.image-grid-item { border: 1px solid #e7eaf0; border-radius: 6px; padding: 8px; text-align: center; }
.image-grid-item img { width: 100%; height: 120px; object-fit: contain; }
.mt-20 { margin-top: 20px; }
.lang-tabs { margin-bottom: 12px; }
.html-text { min-height: 140px; font-family: monospace; font-size: 12px; }

/* Order status badges (App\Enums\OrderStatus) */
.status-new { background: #2563eb; color: #fff; }
.status-confirmed { background: #0891b2; color: #fff; }
.status-assembling { background: #7c3aed; color: #fff; }
.status-out_for_delivery { background: #d97706; color: #fff; }
.status-ready_for_pickup { background: #db2777; color: #fff; }
.status-completed { background: #16a34a; color: #fff; }
.status-cancelled { background: #4b5563; color: #fff; }

/* Product form: category picker (slice A) */
.category-pick { max-height: 320px; overflow-y: auto; border: 1px solid #e7eaf0; border-radius: 4px; padding: 8px 12px; }
.category-pick-group { margin-bottom: 10px; }

/* Auxion: lot and sale status badges (statuses of the Go schema) */
.lot-draft, .lot-cancelled, .sale-cancelled { background: #4b5563; color: #fff; }
.lot-review { background: #d97706; color: #fff; }
.lot-rejected, .sale-defaulted { background: #b91c1c; color: #fff; }
.lot-scheduled, .sale-pending_payment { background: #2563eb; color: #fff; }
.lot-live { background: #c8101c; color: #fff; }
.lot-on_approval { background: #7c3aed; color: #fff; }
.lot-sold, .sale-paid, .sale-completed { background: #16a34a; color: #fff; }
.lot-unsold { background: #6b7280; color: #fff; }
.nav-tabs-line .badge { margin-left: 4px; }

/* Auxion: Buyer/Seller rules preview (the site's Markdown subset) and support request statuses */
.rule-preview { border: 1px solid #e7eaf0; border-radius: 6px; padding: 16px 20px; background: #fff; max-height: 640px; overflow-y: auto; }
.rule-preview h2 { font-size: 18px; margin: 18px 0 8px; }
.rule-preview h2:first-child { margin-top: 0; }
.rule-preview ul { padding-left: 20px; }
.rule-body { min-height: 420px; font-family: monospace; font-size: 13px; }
.support-message { white-space: pre-wrap; border: 1px solid #e7eaf0; border-radius: 6px; padding: 12px 16px; background: #f9fafb; }
.sr-new { background: #2563eb; color: #fff; }
.sr-in_progress { background: #d97706; color: #fff; }
.sr-closed { background: #4b5563; color: #fff; }
.rule-draft { background: #d97706; color: #fff; }
.rule-published { background: #16a34a; color: #fff; }

/* site languages (0020): AZ / EN / RU availability markers and per-language tabs */
.lang-markers .badge { margin-right: 3px; font-weight: 600; letter-spacing: .02em; }
.lang-on { background: #0f766e; color: #fff; }
.lang-off { background: #e5e7eb; color: #4b5563; }
.lang-fieldset { border: 1px solid #e7eaf0; border-radius: 6px; padding: 12px 16px 4px; margin-bottom: 16px; }
.lang-fieldset legend { font-size: 14px; font-weight: 600; width: auto; padding: 0 6px; margin-bottom: 4px; }

/* seller flow (0022): changes requested, seller profile statuses, inspections, the approval checklist */
.lot-changes_requested { background: #0e7490; color: #fff; }
.sp-pending { background: #d97706; color: #fff; }
.sp-verified { background: #16a34a; color: #fff; }
.sp-changes_requested { background: #0e7490; color: #fff; }
.sp-rejected { background: #b91c1c; color: #fff; }
.section-title { font-size: 18px; margin: 8px 0 16px; color: #1f2d3d; }
.defect-list { padding-left: 20px; margin-bottom: 0; }
.defect-list li { margin-bottom: 2px; }
.inspection-form { border-top: 1px solid #eef0f3; padding-top: 12px; }
.inspection-form summary { cursor: pointer; font-weight: 500; color: #1d4ed8; }
.compare-table th { color: #4a5568; font-weight: 500; white-space: nowrap; }
.compare-table td.changed { background: #fef3c7; color: #1f2d3d; font-weight: 500; }
.compare-table td.note-cell { white-space: pre-line; }
.compare-table td { width: 42%; }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; }
.checklist li { padding: 2px 0; }
.checklist li.ok { color: #166534; }
.checklist li.missing { color: #b91c1c; font-weight: 500; }
