@font-face {
    font-family: "DM Sans";
    src: url("../fonts/DMSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/DMSans-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/DMSans-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/DMSans-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --gl-dark-green: #122724;
    --gl-light-green: #1f4e4a;
    --gl-dark-red: #991c35;
    --gl-off-white-green: #f2f7f0;
    --gl-page: #f5f7f7;
    --gl-white: #ffffff;
    --gl-ink: #212121;
    --gl-muted: #6e6e6e;
    --gl-soft: #e1e1e1;
    --gl-line: #eef2ed;
    --gl-shadow: 0 8px 22px rgba(18, 39, 36, 0.09);
    --gl-focus: 0 0 0 0.18rem rgba(31, 78, 74, 0.18);
}

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--gl-page);
    color: var(--gl-ink);
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    color: var(--gl-light-green);
}

a:hover {
    color: var(--gl-dark-green);
}

.container {
    background-color: transparent !important;
}

.app-main {
    padding-bottom: 86px;
}

.app-navbar {
    min-height: 70px;
    margin-bottom: 24px;
    background: var(--gl-white);
    border-bottom: 1px solid var(--gl-line);
    box-shadow: 0 4px 16px rgba(18, 39, 36, 0.04);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#nav-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

#nav-header {
    width: min(194px, 48vw);
    height: auto;
    object-fit: contain;
}

#navbar-items {
    width: fit-content;
    justify-content: end !important;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: 24px;
    color: var(--gl-ink);
    font-weight: 600;
    text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--gl-light-green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-left: 24px;
    padding: 5px 12px;
    border-radius: 18px;
    background: var(--gl-off-white-green);
    color: var(--gl-dark-green);
    font-size: 0.875rem;
    font-weight: 600;
}

.navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    border-color: var(--gl-line);
    border-radius: 8px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background: var(--gl-white);
    border-top: 1px solid var(--gl-line);
}

#web-footer {
	    display: flex;
	    justify-content: center;
	    align-items: center;
	    gap: 10px;
	    flex-wrap: wrap;
	    color: var(--gl-muted);
	    font-size: 0.875rem;
}

.footer-separator {
	    color: #c4cbc4;
}

#web-footer a {
	    font-weight: 600;
	    text-decoration: none;
}

#web-footer a:hover,
#web-footer a:focus {
	    text-decoration: underline;
	    text-underline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gl-ink);
    font-weight: 600;
    letter-spacing: 0;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.page-kicker {
    color: var(--gl-muted);
    font-size: 0.875rem;
}

.card-div,
.panel,
.filter-panel,
.editor-panel,
.detail-panel {
    background: var(--gl-white);
    border: 1px solid rgba(238, 242, 237, 0.92);
    border-radius: 8px;
    box-shadow: var(--gl-shadow);
}

.card-div {
    padding: 24px;
}

.filter-panel,
.editor-panel,
.detail-panel {
    padding: 20px;
}

.form-label {
    margin-bottom: 6px;
    color: var(--gl-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: var(--gl-line);
    border-radius: 8px;
    color: var(--gl-ink);
    font-size: 0.875rem;
}

.form-control::placeholder {
    color: #acacac;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--gl-light-green);
    box-shadow: var(--gl-focus);
}

textarea.form-control {
    min-height: 100px;
}

.form-check-input:checked {
    background-color: var(--gl-dark-green);
    border-color: var(--gl-dark-green);
}

.btn {
    min-height: 44px;
    border-radius: 8px;
    padding: 0.58rem 1rem;
    font-weight: 500;
    font-size: 14px;
}

.btn-sm {
    min-height: 36px;
    padding: 0.38rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-primary,
#red-btn {
    background-color: var(--gl-dark-red) !important;
    border-color: var(--gl-dark-red) !important;
    color: var(--gl-white) !important;
}

.btn-primary:hover,
#red-btn:hover {
    background-color: #7f172c !important;
    border-color: #7f172c !important;
}

.btn-success,
#green-btn {
    background-color: var(--gl-dark-green) !important;
    border-color: var(--gl-dark-green) !important;
    color: var(--gl-white) !important;
}

.btn-success:hover,
#green-btn:hover {
    background-color: var(--gl-light-green) !important;
    border-color: var(--gl-light-green) !important;
}

.btn-outline-primary,
.btn-outline-secondary {
    border-color: var(--gl-line);
    color: var(--gl-dark-green);
    background: var(--gl-white);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    border-color: var(--gl-dark-green);
    background: var(--gl-off-white-green);
    color: var(--gl-dark-green);
}

.btn-outline-danger {
    border-color: rgba(153, 28, 53, 0.28);
    color: var(--gl-dark-red);
}

.btn-outline-danger:hover {
    border-color: var(--gl-dark-red);
    background: rgba(153, 28, 53, 0.08);
    color: var(--gl-dark-red);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus {
    box-shadow: var(--gl-focus);
}

.table-responsive {
    border: 1px solid var(--gl-line);
    border-radius: 8px;
    overflow: hidden;
    margin-top:40px;
}

.table {
    margin-bottom: 0;
    color: var(--gl-ink);
}

.table > :not(caption) > * > * {
    padding: 0.75rem 1rem;
    border-bottom-color: var(--gl-line);
    font-size: 10px;
    font-size: 14px;
}

.table thead th,
.table-light th {
	    background: #f2f2f2 !important;
	    color: var(--gl-muted);
    font-size: 0.75rem;
    font-weight: 700;
	    border-bottom: 0;
}

.sortable-table__header {
	    position: relative;
	    padding-right: 2rem !important;
	    cursor: pointer;
	    user-select: none;
}

.sortable-table__header::after {
	    content: "\2195";
	    position: absolute;
	    top: 50%;
	    right: 0.8rem;
	    transform: translateY(-50%);
	    color: #94a29a;
	    font-size: 0.8rem;
}

.sortable-table__header[aria-sort="ascending"]::after {
	    content: "\2191";
	    color: var(--gl-dark-green);
}

.sortable-table__header[aria-sort="descending"]::after {
	    content: "\2193";
	    color: var(--gl-dark-green);
}

.sortable-table__header:focus-visible {
	    outline: none;
	    box-shadow: inset 0 0 0 2px rgba(31, 78, 74, 0.18);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(245, 247, 247, 0.62);
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: rgba(238, 242, 237, 0.7);
}

.notes-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.pagination .page-link {
    color: var(--gl-dark-green);
    border-color: var(--gl-line);
    min-width: 40px;
    text-align: center;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    background: var(--gl-off-white-green);
    color: var(--gl-dark-green);
    border-color: var(--gl-dark-green);
    box-shadow: none;
}

.pagination .page-item.active .page-link {
    background: var(--gl-dark-green);
    border-color: var(--gl-dark-green);
    color: var(--gl-white);
}

.pagination .page-item.disabled .page-link {
    color: #9aa39f;
    background: var(--gl-white);
}

.alert {
    border-radius: 8px;
}

.auth-body .app-navbar {
    display: none;
}

.auth-body .app-main {
    min-height: calc(100vh - 60px);
    display: grid;
    place-items: center;
    padding-top: 32px;
    padding-bottom: 92px;
    justify-content: center;
}

.auth-shell {
    width: min(100%, 430px);
}
main {
    width: 100%;
    justify-content: center !important;
}
.auth-shell--login,
.auth-shell--split {
    width: min(1120px, 75vw);
    min-width: min(100%, 760px);
}

.auth-card {
    padding: 48px 28px 28px;
    background: var(--gl-white);
    border: 1px solid rgba(238, 242, 237, 0.9);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(18, 39, 36, 0.16);
}

.auth-card--login,
.auth-card--split {
    display: grid;
    min-height: 75vh;
    padding: 0;
    overflow: hidden;
}

.auth-login-layout,
.auth-split-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1fr);
    min-height: 75vh;
}

.auth-brand-panel {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 100%;
    padding: clamp(36px, 5vw, 72px);
    background: var(--gl-white);
    border-right: 1px solid rgba(225, 225, 225, 0.7);
}

.auth-brand-icon {
    position: absolute;
    right: clamp(22px, 4vw, 48px);
    bottom: clamp(18px, 4vw, 44px);
    width: clamp(84px, 12vw, 154px);
    height: auto;
    opacity: 0.12;
}

.auth-brand-copy {
    position: relative;
    z-index: 1;
}

.auth-form-panel {
    display: grid;
    align-content: center;
    width: min(100%, 470px);
    margin: 0 auto;
    padding: clamp(36px, 5vw, 72px) clamp(28px, 4.8vw, 64px);
}

.auth-form-header {
    margin-bottom: 28px;
}

.auth-form-header h1 {
    margin-bottom: 6px;
    color: var(--gl-dark-green);
    font-size: 2rem;
}

.auth-form-header p {
    margin: 0;
    color: var(--gl-muted);
    font-size: 0.95rem;
}

.auth-logo {
    display: block;
    width: 72px;
    height: auto;
    margin: 0 auto 10px;
}

.auth-logo--desktop {
    margin: 0 0 28px;
}

.auth-welcome {
    margin: 0;
    color: var(--gl-muted);
    font-size: 0.9375rem;
    text-align: center;
}

.auth-brand-panel .auth-welcome {
    text-align: left;
}

.auth-heading {
    display: block;
    width: min(240px, 72vw);
    margin: 4px auto 28px;
}

.auth-heading--desktop {
    width: min(310px, 100%);
    margin: 6px 0 0;
}

.auth-field {
    display: grid;
    grid-template-columns: 34px 1px minmax(0, 1fr);
    align-items: center;
    min-height: 58px;
    margin-bottom: 15px;
    border: 1px solid var(--gl-off-white-green);
    border-radius: 10px;
    background: var(--gl-white);
}

.auth-field img {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    object-fit: contain;
}

.auth-divider {
    width: 1px;
    height: 36px;
    background: var(--gl-soft);
}

.auth-input-wrap {
    padding: 7px 12px 5px;
}

.auth-input-wrap--password {
    padding-right: 8px;
}

.password-toggle-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.password-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6f7d75;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible,
.password-toggle-btn.is-visible {
    background: rgba(31, 78, 74, 0.08);
    color: var(--gl-dark-green);
}

.password-toggle-btn:focus-visible {
    outline: none;
    box-shadow: var(--gl-focus);
}

.password-toggle-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.auth-input-wrap label {
    display: block;
    color: #919191;
    font-size: 0.625rem;
    line-height: 1.1;
}

.auth-input-wrap .form-control {
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.8125rem;
}

.auth-input-wrap .form-control:focus {
    border-color: transparent;
    box-shadow: none;
}

.auth-actions {
    margin: 24px 0 18px;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0;
    text-align: center;
    font-size: 0.875rem;
}

.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
    color: var(--gl-muted);
    font-size: 0.875rem;
}

.auth-options-row a {
    white-space: nowrap;
    font-weight: 600;
    text-decoration: none;
}

.auth-options-row a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dashboard-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.dashboard-home__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-home__brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.dashboard-home__eyebrow {
    margin: 0 0 2px;
    color: #403f3f;
    font-size: 1rem;
}

.dashboard-home__name {
    margin: 0;
    color: var(--gl-dark-red);
    font-size: 1.2rem;
    font-weight: 700;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 24px;
}

.metric-card {
    padding: 16px;
    border: 1px solid var(--gl-line);
    border-radius: 8px;
    background: var(--gl-white);
}

.metric-label {
    margin: 0 0 8px;
    color: #c8c8c8;
    font-size: 0.75rem;
    font-weight: 700;
}

.metric-value {
    margin: 0;
    color: #333333;
    font-size: 1.35rem;
    font-weight: 700;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.detail-item__label {
    margin-bottom: 4px;
    color: var(--gl-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.detail-item__value {
    color: var(--gl-ink);
    font-weight: 500;
}

.detail-item:nth-last-child(-n + 2) {
    grid-column: 1 / -1;
}

.photo-card {
    overflow: hidden;
    border: 1px solid var(--gl-line);
    border-radius: 8px;
    box-shadow: var(--gl-shadow);
}

.photo-card .card-body,
.photo-card .card-footer {
    background: var(--gl-white);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@media (max-width: 991.98px) {
    .auth-shell--login,
    .auth-shell--split {
        width: min(100%, 640px);
        min-width: 0;
    }

    .auth-login-layout,
    .auth-split-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 32px;
        border-right: 0;
        border-bottom: 1px solid rgba(225, 225, 225, 0.7);
    }

    .auth-brand-icon {
        width: 92px;
    }

    .auth-form-panel {
        width: 100%;
        padding: 36px 32px 32px;
    }
}

@media (max-width: 767.98px) {
    .app-navbar {
        margin-bottom: 16px;
    }

    .navbar-collapse {
        padding: 10px 0 4px;
    }

    .nav-link,
    .user-chip {
        margin-left: 0;
    }

    .card-div,
    .filter-panel,
    .editor-panel,
    .detail-panel {
        padding: 16px;
    }

    .page-heading,
    .dashboard-home {
        align-items: flex-start;
        flex-direction: column;
        display: flex;
    }

    .metric-row,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 38px 20px 24px;
    }

    .auth-shell--login,
    .auth-shell--split {
        width: 100%;
        min-width: 0;
    }

    .auth-card--login,
    .auth-card--split {
        min-height: auto;
        padding: 0;
    }

    .auth-brand-panel {
        padding: 28px 22px;
    }

    .auth-form-panel {
        padding: 32px 20px 24px;
    }

    .auth-form-header h1 {
        font-size: 1.75rem;
    }

    .auth-options-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .auth-actions {
        margin-right: 0;
        margin-left: 0;
    }
}
