/* Project styles layered on Tabler. Everything here is either a token the app
   defines itself or a small adjustment -- no Tabler overrides by brute force. */

:root {
    --rs-portal-accent: #0ca678;
}

/* Icons use the sprite, so they need an explicit box. Tabler's .icon sizing
   assumes an inline <svg> with width/height attributes. */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
    flex-shrink: 0;
}
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 2rem; height: 2rem; }

/* --- Expiry urgency ------------------------------------------------------ */
/* Colour is never the only signal: every badge carries the date or a day count
   alongside it, so this reads correctly without colour perception. */
.expiry-cell { white-space: nowrap; }
.expiry-cell .expiry-relative { font-size: 0.75rem; }

/* --- Tables -------------------------------------------------------------- */
.table-clickable tbody tr { cursor: pointer; }
.table-clickable tbody tr:hover { background-color: var(--tblr-bg-surface-tertiary); }

/* Keep row actions from stretching a table on small screens. */
.row-actions { white-space: nowrap; width: 1%; }

/* --- Filter bar ---------------------------------------------------------- */
.filter-presets { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* --- Client portal ------------------------------------------------------- */
/* A different masthead colour from the admin app, so the two are never
   confused at a glance. */
.portal-navbar {
    background: var(--rs-portal-accent);
    color: #fff;
    border-bottom: none;
}
.portal-navbar a,
.portal-navbar .navbar-brand a { color: #fff; }
.portal-navbar .nav-link:hover { opacity: 0.85; }

/* --- Renewal timeline ---------------------------------------------------- */
.timeline-period { border-left: 2px solid var(--tblr-border-color); padding-left: 1rem; }
.timeline-period + .timeline-period { margin-top: 0.75rem; }
.timeline-period.current { border-left-color: var(--tblr-primary); }

/* --- Print --------------------------------------------------------------- */
@media print {
    .page-wrapper { padding: 0; }
    .card { border: 1px solid #ddd; box-shadow: none; }
}
