/* The Gori Snack look for the whole application (admin and app panels, login, registration). Colours come from the Master Logo, red and white edition:
 *   Merah Gori #CE1126, Kuning Percikan #F5B30C, Putih #FFFFFF; font Plus Jakarta Sans. (The earlier olive-green look is kept as tag brand-olive-v1.)
 * The panel colours themselves (primary, warning, info, danger) are set in CorePanelProvider; this file only adds what colours cannot do.
 */
:root {
    --gori-red: #CE1126;
    --gori-red-deep: #3B2A2A;
    --gori-white: #FFFFFF;
    --gori-yellow: #F5B30C;
    --gori-surface: #F3F1ED;
    --gori-line: #E7DCDA;
    --gori-logo-ink: #CE1126;
    --gori-logo-accent: #F5B30C;
}

.dark {
    --gori-surface: #1B1112;
    --gori-line: #4D2D31;
    --gori-logo-ink: #FFFFFF;
}

/* the logo (components/logo.blade.php) */
.gori-logo { display: block; height: auto; overflow: visible; }
.gori-logo .ink-stroke { stroke: var(--gori-logo-ink); }
.gori-logo .ink-fill { fill: var(--gori-logo-ink); }
.gori-logo .accent-fill { fill: var(--gori-logo-accent); }

/* the brand block: symbol and name in the top bar, the wordmark on the sign-in page */
.gori-brand { display: flex; align-items: center; min-width: 0; }
.gori-brand__bar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gori-brand__name { font-weight: 800; font-size: 1rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.005em; }
.gori-brand__word { display: none; flex-direction: column; align-items: center; gap: 6px; }
.gori-brand__legal { font-weight: 700; font-size: .85rem; opacity: .75; }
.fi-simple-layout { background-color: var(--gori-surface); }
.fi-simple-layout .fi-logo { height: auto !important; }
.fi-simple-layout .gori-brand { justify-content: center; margin-bottom: .25rem; }
.fi-simple-layout .gori-brand__bar { display: none; }
.fi-simple-layout .gori-brand__word { display: flex; }

/* a visible keyboard focus in the dark brown (white on dark) for everything that can be tabbed to */
:focus-visible { outline-color: #3B2A2A; }
.dark :focus-visible { outline-color: #FFFFFF; }

/* numbers line up in tables and totals */
.fi-ta-table td, .fi-ta-table th, .fi-in-text-item { font-variant-numeric: tabular-nums; }

@media print { .gori-brand__name { display: none; } }

/* the search box above the plain tables of dashboards and reports (public/js/table-search.js) */
.gori-ts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: .25rem 0 .5rem; }
.gori-ts input { flex: 1 1 16rem; max-width: 28rem; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--gori-line); border-radius: .5rem; background: var(--gori-white); color: var(--gori-red-deep); font: inherit; }
.gori-ts input:focus { outline: 2px solid var(--gori-red); outline-offset: 1px; border-color: var(--gori-red); }
.dark .gori-ts input { background: transparent; color: #FFFFFF; }
.gori-ts-count { font-size: .85rem; color: #6B5F5F; }
.dark .gori-ts-count { color: #D6CBCB; }
@media print { .gori-ts { display: none; } }

/* Long text in tables (2026-11-18): one long name must not stretch the whole table. Short values stay on one line as before; a
   value or the grey line under it longer than ~26rem ends in "…" (the full text is in the tooltip, see CoreServiceProvider, and on
   the record). A column that wraps (->wrap()) shows at most two lines. Badges keep their own layout. */
.fi-ta-cell .fi-ta-text:not(.fi-ta-text-has-badges) .fi-ta-text-item,
.fi-ta-cell .fi-ta-text > .fi-ta-text-description {
    max-width: 26rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fi-ta-cell .fi-ta-text:not(.fi-wrapped):not(.fi-ta-text-has-badges) .fi-ta-text-item,
.fi-ta-cell .fi-ta-text:not(.fi-wrapped) > .fi-ta-text-description {
    display: block;
    white-space: nowrap;
}
.fi-ta-cell .fi-ta-text.fi-wrapped:not(.fi-ta-text-has-badges) .fi-ta-text-item,
.fi-ta-cell .fi-ta-text.fi-wrapped > .fi-ta-text-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
}
