/* Tabler admin overrides — keep this file THIN. The 90% is in Tabler. */

/* Active-nav highlight (server-side emits "active"; Tabler uses .nav-link.active by default).
   Use a left border *on the <ul> container* + background tint, so the active row stays at x=0. */
.navbar-vertical .navbar-nav .nav-link.active {
    font-weight: 600;
    background-color: rgba(32, 107, 196, 0.18);  /* tinted primary */
    color: #fff;
}

/* Card section header polish — used by /Usage, /Subs. */
.card-title {
    font-size: 1.1rem;
}

/* Tighten the daily-spend table spacing on /Subs so the bars line up. */
.subs-daily-row td { padding: 0.25rem 0.5rem; }

/* Topbar active link (Account menu). */
.navbar-horizontal .nav-link.active { color: #fff; }

/* Left-align sidebar nav items — icon + text hug the left edge.
   Tabler's default renders .nav-link as a normal block with .nav-link-icon as an
   inline-block child; the <i> has its own internal margin, which pushes the icon right
   of the nav's left edge. We make the <a> a flex row, kill the icon's internal
   margin, and zero out the nav's left padding so the icon sits flush at x=0. */
.navbar-vertical .navbar-nav { padding-left: 0 !important; }
.navbar-vertical .nav-link {
    display: flex !important;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 0 !important;   /* flush left */
}
.navbar-vertical .nav-link-icon {
    display: inline-flex !important;
    margin: 0 0.5rem 0 0 !important;
    width: 1.25rem;
    justify-content: center;
}
.navbar-vertical .nav-link-title {
    flex: 1;
}
