/* =========================================================================
   Art Expenses — application styles
   Loaded after Bootstrap so these rules take precedence where needed.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Touch targets
   Bootstrap's btn-sm is ~31 px tall — below the 44 px recommended minimum.
   Pad small buttons on touch devices so fingers can hit them reliably.
   ------------------------------------------------------------------------- */
@media (pointer: coarse) {
    .btn-sm {
        padding-top:    0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Give table action-button cells a bit more room */
    td .btn-sm + .btn-sm {
        margin-left: 0.375rem;
    }
}

/* -------------------------------------------------------------------------
   Expense table — row tap target
   The company cell doubles as the primary link to the detail view on mobile.
   ------------------------------------------------------------------------- */
.expense-row-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.expense-row-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Summary cards — uniform min-height keeps cards aligned in a row
   ------------------------------------------------------------------------- */
.summary-card .card-body {
    min-height: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* -------------------------------------------------------------------------
   Charts — let Chart.js control height; prevent canvas from overflowing
   ------------------------------------------------------------------------- */
.chart-canvas-wrap {
    position: relative;
    width: 100%;
}

/* -------------------------------------------------------------------------
   File input — on mobile the default file picker button is tiny.
   Make the whole input larger so it's easy to tap.
   ------------------------------------------------------------------------- */
@media (pointer: coarse) {
    input[type="file"].form-control {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

/* -------------------------------------------------------------------------
   Navbar brand — slightly smaller on very narrow screens
   ------------------------------------------------------------------------- */
@media (max-width: 375px) {
    .navbar-brand {
        font-size: 0.95rem;
    }
}
