﻿.loader {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*
  Dashboard-style tile table (2026-08-16): rounded white rows on a pale grey backdrop, #c4c4c4
  border, zebra striping - originally built for the Dashboard's Recent Activity/UniqueIdentifier
  Updates tables (see DashboardPage.razor.css history), now the shared "consistent look" applied
  app-wide wherever _Table's CssClass="stoktake-table" is set. Lives here (global, unscoped CSS) rather
  than as scoped-CSS on each page, so every page opting in gets it identically without repeating
  ~40 lines of CSS per page.
*/
table.stoktake-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    background: #f4f4f4;
    padding: 6px;
    border-radius: 14px;
}

table.stoktake-table thead th {
    text-align: left;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #5f5e5a;
    border: none;
}

table.stoktake-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

table.stoktake-table tbody tr:nth-child(even) {
    background: #ececeb;
}

table.stoktake-table tbody td {
    padding: 10px 14px;
    font-size: 13px;
    color: #202020;
    border-top: 1px solid #c4c4c4;
    border-bottom: 1px solid #c4c4c4;
}

table.stoktake-table tbody td:first-child {
    border-left: 1px solid #c4c4c4;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

table.stoktake-table tbody td:last-child {
    border-right: 1px solid #c4c4c4;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    text-align: right;
}

/*
  Action-column buttons pushed to the end of the row (2026-08-16): the last cell in a stoktake-table
  row is usually an actions column (Details/Edit/Delete etc). Several pages wrap those buttons in
  a flex container (.btn-group on Locations/RFID Readers, or .btn-center + .btn-group together on
  Assets) which defaults to flex-start, leaving them stranded near the middle of a wide cell
  instead of flush with the card's right edge - this right-aligns them to match the plain-text
  right-align above and the existing Dashboard convention (DashboardPage.razor.css's
  td:last-child rule) for last-column content.
*/
table.stoktake-table tbody td:last-child .btn-group,
table.stoktake-table tbody td:last-child.btn-group,
table.stoktake-table tbody td:last-child.btn-center {
    justify-content: flex-end;
}
