﻿body {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    text-align: inherit;
    background-color: #FAFAFA;
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: transparent;
    max-width: 100%;
}

hr {
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: auto;
    margin-inline-end: auto;
    opacity: inherit;
}

b, strong {
    font-weight: bold;
}

h2 {
    font-size: 1.5em;
}

p {
    margin-block-start: 1em;
}

ol {
    margin-top: 1em;
    margin-bottom: 1em;
}

.header-search input,
.header-search button,
.header-search select,
.header-search optgroup,
.header-search textarea {
    margin: initial;
    font-size: 13.3333px;
    line-height: initial;
}

#sosSearchButton {
    font-family: Arial, Helvetica, sans-serif;
}

input[type="text" i] {
    padding-block: 1px;
    padding-inline: 2px;
}

header *,
header *::before,
header *::after {
    box-sizing: content-box;
}

/* Layout width overrides to allow full-width main content */
#unit-content {
    display: flex;
    align-items: stretch;
}

#left {
    flex: 0 0 auto;
}

#right {
    flex: 1 1 auto;
    max-width: 100%;
}

#layout, #main {
    width: 100% !important;
    max-width: 100% !important;
}

/* Prevent sidebar from overhanging on smaller widths */
@media (max-width: 900px) {
    #unit-content {
        flex-direction: column;
    }

    #left, #right {
        width: 100%;
        max-width: 100%;
    }

    #left {
        overflow: hidden;
    }
}

@media (max-width: 600px) {
    /* Tighter padding for very small screens */
    #layout {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* Admin toolbar styling and date pill reused from login */
.admin-toolbar .date-pill {
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    align-items: center;
    width: 72px;
    min-width: 72px;
    height: 76px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 6px 14px rgba(2,6,23,.06);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
}

    .admin-toolbar .date-pill .month {
        width: 100%;
        text-align: center;
        font-weight: 800;
        font-size: .8rem;
        color: #0b5ed7;
        background: rgba(13,110,253,.08);
        padding: .2rem .3rem;
    }

    .admin-toolbar .date-pill .day {
        font-size: 1.25rem;
        line-height: 1.1;
        font-weight: 900;
        color: #0f172a;
        padding-top: .1rem;
    }

    .admin-toolbar .date-pill .year {
        font-size: .75rem;
        color: #6b7280;
        padding-bottom: .25rem;
    }

.admin-toolbar .admin-links a {
    color: #0b5ed7;
}

    .admin-toolbar .admin-links a:hover {
        text-decoration: underline;
    }
/* Admin toolbar card spacing */
.admin-toolbar.card {
    border-radius: 12px;
}

.admin-toolbar .card-body {
    padding-top: .85rem;
    padding-bottom: .85rem;
}
/* Logout button styling */
.btn-modern {
    background: #2563eb;
    color: #fff !important;
    border: 1px solid #1d4ed8;
    border-radius: 10px;
    font-weight: 700;
    padding: .45rem .9rem;
    box-shadow: 0 6px 14px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.15);
}

    .btn-modern:hover {
        background: #1d4ed8;
        border-color: #1d4ed8;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(29,78,216,.45);
    }

    .btn-modern:active {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(29,78,216,.35) inset;
    }

.btn-secondary {
    background: #f9fafb;
    color: #0f172a !important;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 700;
    padding: .45rem .9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .btn-secondary:hover {
        background: #e5e7eb;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }


#main {
    padding: 1em 1em 1em 1em !important;
}

/* Button sizing: increase font size and comfortable padding */
.btn {
    --bs-btn-font-size: 1.0625rem; /* ~17px for readability */
    --bs-btn-padding-y: 0.55rem;
    --bs-btn-padding-x: 1rem;
}

/* Keep small buttons readable and clickable */
.btn-sm, .btn-group-sm > .btn {
    --bs-btn-font-size: 0.95rem;
    --bs-btn-padding-y: 0.4rem;
    --bs-btn-padding-x: 0.75rem;
}

/* Slightly bump large buttons as well */
.btn-lg, .btn-group-lg > .btn {
    --bs-btn-font-size: 1.3rem;
    --bs-btn-padding-y: 0.6rem;
    --bs-btn-padding-x: 1.2rem;
}
