html, body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1:focus {
    outline: none;
}

.app-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Number plate badge (Cyprus plates are black on white) */
.plate {
    display: inline-block;
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 0.08em;
    border: 2px solid #1f2937;
    border-radius: 4px;
    padding: 0 0.45em;
    background: #fff;
    color: #111;
    white-space: nowrap;
}

.plate-lg {
    font-size: 1.6rem;
    padding: 0.1em 0.5em;
}

/* Long Greek texts ("17 ημέρες εκπρόθεσμο") must wrap inside narrow cards instead of overflowing */
.due-chip.mud-chip {
    height: auto;
    min-height: 24px;
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

.clickable-rows tbody tr {
    cursor: pointer;
}

.section-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.detail-label {
    color: var(--mud-palette-text-secondary);
    font-size: 0.8rem;
}

.pre-wrap {
    white-space: pre-wrap;
}

.search-box {
    max-width: 420px;
}

.period-select {
    max-width: 220px;
}

/* A reminder: what it is about, what falls due, and when */
.reminder-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.reminder-row:last-child {
    border-bottom: none;
}

.reminder-link {
    color: inherit;
    text-decoration: none;
}

.reminder-link:hover {
    background: var(--mud-palette-action-default-hover);
}

.reminder-subject {
    display: inline-flex;
    align-items: center;
    min-width: 7.5em;
}

.reminder-title {
    flex: 1;
    min-width: 8em;
}

/* Costs by category on a vehicle's page */
.cost-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
}

.cost-total {
    font-weight: 700;
    border-top: 2px solid var(--mud-palette-lines-default);
    margin-top: 4px;
    padding-top: 8px;
}

/* Horizontal bars on the dashboard: a label, the bar, the amount */
.bar-row {
    display: grid;
    grid-template-columns: 6.5em 1fr 6.5em;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.bar-track {
    height: 14px;
    border-radius: 7px;
    background: var(--mud-palette-background-gray);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 7px;
    background: var(--mud-palette-primary);
    min-width: 2px;
}

.bar-fill-alt {
    background: var(--mud-palette-secondary);
}

.bar-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Sign-in pages: plain HTML forms outside the app's layout */
.auth-shell {
    min-height: 100vh;
    background: #f4f6f8;
    color: #1f2937;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: #0f5257;
    color: #fff;
}

.auth-header a {
    color: #fff;
    text-decoration: none;
    opacity: 0.75;
}

.auth-header a.current,
.auth-header a.auth-brand {
    opacity: 1;
    font-weight: 600;
}

.auth-brand {
    font-size: 1.2rem;
}

.auth-header nav span {
    opacity: 0.5;
    margin: 0 4px;
}

.auth-main {
    padding: 48px 16px;
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 28px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 20px;
}

.auth-card label {
    display: block;
    font-size: 0.9rem;
    margin: 14px 0 4px;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input:not([type]) {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #c4cad3;
    border-radius: 6px;
}

.auth-card input:focus {
    outline: 2px solid #0f5257;
    outline-offset: 1px;
}

.auth-card label.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #0f5257;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.auth-button:hover {
    background: #0b3f43;
}

.auth-error,
.auth-ok {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.auth-error {
    background: #fdecea;
    color: #8a1c13;
}

.auth-ok {
    background: #e8f5e9;
    color: #1b5e20;
}

.auth-hint {
    font-size: 0.8rem;
    color: #5b6472;
    margin: 6px 0 0;
}

.auth-foot {
    margin: 20px 0 0;
    font-size: 0.9rem;
}

.auth-foot a {
    color: #0f5257;
    font-weight: 600;
}

/* The administrator inside a company they opened: amber while only viewing, stronger once changes are allowed. */
.support-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 16px;
    background: #fff3cd;
    color: #664d03;
    border-bottom: 1px solid #ffe69c;
    font-size: 0.9rem;
}

.support-banner.support-changes {
    background: #ffd8a8;
    color: #6b2c00;
    border-bottom-color: #f59f00;
}

.support-banner .support-text {
    flex: 1;
    min-width: 200px;
}

/* What goes with a company that is being deleted: a short list of numbers. */
.delete-contents {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 4px 16px;
}

.delete-contents > div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding: 4px 0;
}

.m365-steps {
    margin: 0;
    padding-left: 20px;
    font-size: 0.875rem;
}

.m365-steps li {
    margin-bottom: 6px;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 0.6rem 1.25rem 0.7rem;
    background: #fff3cd;
    color: #1f2937;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
