/*
 * Giriraj admin look, taken from the storefront (v2.girirajjewellers.co.in):
 * Poppins for text, Playfair Display for page titles, warm cream page background.
 * Font files are copied from the storefront (frontend/public/fonts) so nothing is loaded from a font CDN.
 * Loaded by AdminPanelProvider through ->font(..., provider: LocalFontProvider::class).
 */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/giriraj/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/giriraj/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/giriraj/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/giriraj/Poppins-Bold.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/giriraj/PlayfairDisplay-Regular.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/giriraj/PlayfairDisplay-SemiBold.woff2") format("woff2"); }

/* Storefront page background (light mode). */
html:not(.dark) .fi-body {
    background-color: #faf7f1;
}

/* Larger logo on the sign-in / password pages (the panel's brandLogoHeight is for the sidebar and top bar). */
.fi-simple-header .fi-logo {
    height: 6rem !important;
    margin-bottom: 0.5rem;
}

/* Page titles and the sign-in heading in the storefront's heading font. */
.fi-header-heading,
.fi-simple-header-heading {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    letter-spacing: 0;
}

/* Business overview dashboard cards (resources/views/filament/widgets/dashboard-card.blade.php). */
.gj-dash-card .fi-section { height: 100%; }
.gj-dash-hint { font-size: 0.75rem; color: var(--gray-500); }
.gj-dash-link, .gj-dash-table a, .gj-dash-bar-label a { color: #8a6420; font-weight: 600; font-size: 0.8125rem; text-decoration: none; }
.gj-dash-link:hover, .gj-dash-table a:hover, .gj-dash-bar-label a:hover { text-decoration: underline; }
.gj-dash-empty, .gj-dash-note { font-size: 0.8125rem; color: var(--gray-500); margin: 0; }
.gj-dash-note { margin-top: 0.75rem; }
.gj-dash-bars { display: flex; flex-direction: column; }
.gj-dash-bar { display: grid; grid-template-columns: minmax(0, 8.5rem) 1fr 3.5rem; gap: 0.75rem; align-items: center; font-size: 0.8125rem; padding: 0.4rem 0; }
.gj-dash-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gj-dash-bar b { text-align: right; font-weight: 600; }
.gj-dash-track { height: 0.5rem; background: #efead9; border-radius: 0.25rem; overflow: hidden; }
.gj-dash-track i { display: block; height: 100%; border-radius: 0.25rem; background: #c9a24b; }
.gj-dash-track i.gj-tone-dark { background: #1c1b19; }
.gj-dash-track i.gj-tone-red { background: #b3261e; }
.gj-dash-table-wrap { overflow-x: auto; margin: -0.25rem -0.5rem; }
.gj-dash-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.gj-dash-table th { text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--gray-500); padding: 0.5rem; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.gj-dash-table td { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--gray-100); }
.gj-dash-table td.gj-r, .gj-dash-table td.gj-n { white-space: nowrap; }
.gj-dash-table tr:last-child td { border-bottom: 0; }
.gj-dash-table .gj-r { text-align: right; }
.gj-dash-table .gj-n { color: var(--gray-500); width: 2rem; }
.gj-dash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem; margin-top: 0.75rem; }
.gj-dash-bars + .gj-dash-stats { margin-top: 1rem; }
.gj-dash-stats > div { padding: 0.875rem; border-radius: 0.625rem; background: #f6f4ee; }
.gj-dash-stats span { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); }
.gj-dash-stats b { display: block; font-size: 1.25rem; margin-top: 0.25rem; }
.dark .gj-dash-link, .dark .gj-dash-table a, .dark .gj-dash-bar-label a { color: #e3c375; }
.dark .gj-dash-track { background: rgba(255, 255, 255, 0.1); }
.dark .gj-dash-track i.gj-tone-dark { background: #e9e4d6; }
.dark .gj-dash-table th { border-bottom-color: rgba(255, 255, 255, 0.1); }
.dark .gj-dash-table td { border-bottom-color: rgba(255, 255, 255, 0.05); }
.dark .gj-dash-stats > div { background: rgba(255, 255, 255, 0.05); }
.gj-dash-range .fi-btn { white-space: nowrap; }
