:root {
    --hero-ink: #1b1c1f;
    --hero-muted: #4f5662;
    --hero-accent: #3a5a40;
    --hero-accent-soft: rgba(58, 90, 64, 0.16);
    --hero-panel: rgba(255, 255, 255, 0.9);
}

.hero {
    max-width: 68.75rem;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
    min-height: calc(100vh - 10rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero--search {
    min-height: auto;
    padding: 3.5rem 1.5rem 3rem;
    align-items: center;
}

.hero--search .hero-text {
    gap: 1.35rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.hero-logo {
    width: min(52.5vw, 19.6875rem);
    max-width: 100%;
    height: auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.75rem;
    color: var(--hero-accent);
    margin-bottom: 1rem;
}

.hero-copy {
    font-size: 1.05rem;
    color: var(--hero-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-actions .btn {
    width: 11.25rem;
}

.hero-actions .btn-primary {
    background: #5f7d6d;
    border-color: #5f7d6d;
}

.hero-actions .btn-outline-primary {
    color: #5f7d6d;
    border-color: #5f7d6d;
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-outline-primary:hover {
    background: #4f6a5c;
    border-color: #4f6a5c;
    color: #fff;
}

.hero-search {
    display: flex;
    width: min(42rem, 100%);
    max-width: 100%;
    gap: 0.9rem;
    justify-content: center;
}

.hero-search-input {
    flex: 1;
    min-height: 3.5rem;
    padding: 0.95rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 39, 64, 0.14);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 30px rgba(13, 42, 61, 0.08);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.hero-search-button {
    min-height: 3.5rem;
    padding-inline: 1.6rem;
    border-radius: 999px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.search-results {
    padding-bottom: 2rem;
}

.search-page {
    padding: 2rem 0 1rem;
    display: block;
}

.search-bar {
    width: 100%;
    margin: 0 auto;
}

.search-page .hero-search {
    width: 100%;
    max-width: none;
}

@media (max-width: 40rem) {
    .hero-search {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search-button {
        width: 100%;
    }
}

.search-empty-state {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px dashed rgba(20, 21, 22, 0.2);
    background: rgba(58, 90, 64, 0.08);
}

.search-empty-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #1b1c1f;
    background: rgba(58, 90, 64, 0.2);
}

.search-empty-title {
    font-weight: 700;
}

.search-empty-copy {
    color: var(--hero-muted);
    font-size: 0.95rem;
}

.project-folders {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2.5rem 3rem;
}

.project-folders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-folders-header h1 {
    font-size: 1.6rem;
    margin: 0;
}

.project-folders-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hero-muted);
    font-size: 0.95rem;
}

.project-folders-shell {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
}

.project-folders-shell.no-sidebar {
    grid-template-columns: 1fr;
}

.folder-card {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e4e7ec;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.folder-tree {
    list-style: none;
    margin: 0.5rem 0 0;
    padding-left: 0;
}

.folder-tree li {
    margin: 0.35rem 0;
}

.folder-tree ul {
    list-style: none;
    margin: 0.35rem 0 0.35rem 1rem;
    padding: 0;
}

.folder-node {
    border: 0;
    width: 100%;
    text-align: left;
    background: transparent;
    color: var(--hero-ink);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.folder-node:hover {
    background: rgba(59, 130, 246, 0.1);
}

.folder-node.is-active {
    background: rgba(59, 130, 246, 0.16);
    color: #1e40af;
}

.folder-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.folder-pane-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-toggle {
    display: inline-flex;
    background: #eef2ff;
    border-radius: 999px;
    padding: 0.2rem;
    gap: 0.2rem;
}

.view-toggle-btn {
    border: 0;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    color: #1e3a8a;
    cursor: pointer;
}

.view-toggle-btn.is-active {
    background: #2563eb;
    color: #fff;
}

.folder-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.breadcrumb-item {
    background: transparent;
    border: 0;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.breadcrumb-item::after {
    content: " / ";
    color: #94a3b8;
}

.breadcrumb-item:last-child::after {
    content: "";
}

.folder-pane-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.folder-list {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.folder-list[data-view="grid"] .folder-list-header {
    display: none;
}

.folder-list[data-view="grid"] #folderListBody {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
}

.folder-list[data-view="grid"] .folder-list-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    min-width: 0;
    overflow: hidden;
}

.folder-list[data-view="grid"] .folder-list-row.folder-row:hover {
    background: rgba(59, 130, 246, 0.08);
}

.folder-list[data-view="grid"] .folder-row-name {
    font-size: 0.95rem;
    width: 100%;
    min-width: 0;
}

.folder-list[data-view="grid"] .folder-row-meta {
    font-size: 0.75rem;
}

.folder-list[data-view="list"] #folderListBody {
    display: block;
}

.folder-list-header,
.folder-list-row {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 160px 120px;
    gap: 1rem;
    align-items: center;
    padding: 0.65rem 1rem;
}

.folder-list-header {
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.folder-list-row {
    border-top: 1px solid #e2e8f0;
}

.folder-list-row.folder-row {
    background: #fff;
    border: 0;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.folder-list-row.folder-row:hover {
    background: rgba(59, 130, 246, 0.08);
}

.folder-row-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    min-width: 0;
}

.folder-row-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.folder-row-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.folder-list-row.file-row a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-list[data-view="grid"] .folder-list-row.file-row a {
    width: 100%;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-empty {
    padding: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.folder-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.folder-pane {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e4e7ec;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.folder-icon {
    width: 1.1rem;
    height: 1.1rem;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.folder-icon svg {
    width: 100%;
    height: 100%;
}

.folder-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.folder-code {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1f2937;
    background: #eef2ff;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

.folder-pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.folder-pane-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.folder-pane-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.folder-pane-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.folder-file-list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.folder-file-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.4rem 0;
}

.file-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-row.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    background: #eff6ff;
}

.file-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.file-select {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.file-select-input {
    width: 0.9rem;
    height: 0.9rem;
    margin: 0;
}

.file-move-btn {
    padding: 0.1rem 0.25rem;
    font-size: 0.65rem;
    line-height: 1;
    border-radius: 0.35rem;
}

.file-rename-btn {
    padding: 0.1rem 0.25rem;
    font-size: 0.65rem;
    line-height: 1;
    border-radius: 0.35rem;
}

.file-delete-btn {
    padding: 0.1rem 0.25rem;
    line-height: 1;
    font-size: 0.65rem;
    border-radius: 0.35rem;
}

.file-icon {
    width: 1rem;
    height: 1rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.file-icon svg {
    width: 100%;
    height: 100%;
}

.file-thumb {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.25rem;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.folder-list[data-view="grid"] .file-thumb {
    width: 3.2rem;
    height: 3.2rem;
}

.file-name {
    display: block;
    max-width: 100%;
}

.folder-list[data-view="grid"] .file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-list[data-view="grid"] .folder-row-name {
    align-items: flex-start;
    gap: 0.75rem;
}

.folder-list[data-view="grid"] .file-icon {
    width: 3.2rem;
    height: 3.2rem;
    flex: 0 0 auto;
}

.folder-list[data-view="grid"] .file-thumb {
    display: block;
}

.folder-list[data-view="list"] .file-name {
    word-break: break-word;
}

.folder-file-list a {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.folder-file-list a:hover {
    text-decoration: underline;
}

.folder-upload {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.upload-submit {
    height: 2.4rem;
    align-self: flex-start;
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.upload-progress[aria-hidden="true"] {
    display: none;
}

.upload-progress-bar {
    height: 0.4rem;
    flex: 1;
    border-radius: 999px;
    background: #3b82f6;
    width: 0%;
    transition: width 0.2s ease;
}

.upload-progress-text {
    font-size: 0.75rem;
    color: #475569;
    min-width: 2.5rem;
    text-align: right;
}

.upload-status {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 220px;
    max-height: 8rem;
    overflow: auto;
    font-size: 0.75rem;
}

.upload-status-item {
    padding: 0.2rem 0.4rem;
    border-radius: 0.4rem;
    background: #f8fafc;
    color: #475569;
}

.upload-status-item.success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.upload-status-item.error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.upload-disabled {
    border: 1px dashed #cbd5f5;
    color: #5d6b85;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #f8faff;
    font-size: 0.85rem;
    max-width: 420px;
}

.upload-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    border: 1px dashed #cbd5f5;
    border-radius: 0.75rem;
    background: #f8faff;
    min-width: 260px;
    max-width: 420px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.upload-dropzone:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-label {
    font-weight: 600;
    color: #1f2937;
}

.upload-title {
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: #2563eb;
}

.upload-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
}

.upload-filename {
    font-size: 0.85rem;
    color: #2563eb;
    word-break: break-word;
}

.upload-submit {
    align-self: flex-start;
    height: 2.4rem;
}

.folder-actions-bar {
    position: sticky;
    bottom: 1rem;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    width: fit-content;
    z-index: 5;
}

.folder-actions-inline {
    margin: 0;
}

@media (max-width: 992px) {
    .folder-list[data-view="grid"] #folderListBody {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 992px) {
    .project-folders-shell {
        grid-template-columns: 1fr;
    }
}


.offcanvas-body ul,
.offcanvas-body ol {
    list-style: none;
    margin: 0 0 0.5rem;
    padding-left: 0;
}

.offcanvas-body ul:empty,
.offcanvas-body ol:empty {
    display: none;
}

.offcanvas-body .errorlist {
    color: #b02a37;
}

.offcanvas-body p {
    list-style: none;
}

.offcanvas-body p::marker {
    content: "";
}

.licenses-section {
    width: 100%;
    padding: 0 2.5vw;
}

.licenses-section.licenses-section-fill {
    min-height: calc(100dvh - var(--app-header-height, 72px) - var(--app-footer-height, 56px) - 1rem);
    display: flex;
    flex-direction: column;
}

.licenses-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.licenses-header h1 {
    margin: 0;
}

.licenses-title {
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.licenses-table {
    width: 100%;
    margin: 0;
    min-height: 24rem;
    background: #fff;
    border: 0.0625rem solid rgba(20, 21, 22, 0.08);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 0.75rem 1.5rem rgba(12, 18, 28, 0.08);
}

.licenses-table.licenses-table-fill {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.report-summary-card {
    min-height: 0;
    padding: 0.75rem;
}

.licenses-table .table {
    width: 100%;
    table-layout: auto;
}

.licenses-table .dataTables_scrollBody {
    max-height: none;
    overflow-y: auto;
}

.dt-scroll-relaxed .dataTables_scrollBody {
    height: auto !important;
    max-height: none;
    overflow: visible !important;
}

.dt-scroll-relaxed .dataTables_scroll,
.dt-scroll-relaxed .dataTables_scrollHead,
.dt-scroll-relaxed .dataTables_scrollFoot {
    overflow: visible !important;
}

.licenses-table .dropdown-menu {
    z-index: 2000;
}

.licenses-table .table-responsive {
    overflow: visible;
}

.licenses-table .table > :not(caption) > * > * {
    padding: 0.75rem 0.75rem;
}

.licenses-table thead th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: #4f5662;
    border-bottom: 0.0625rem solid rgba(20, 21, 22, 0.1);
}

.licenses-table tbody td {
    border-bottom: 0.0625rem solid rgba(20, 21, 22, 0.08);
}

.licenses-table tbody tr:last-child td {
    border-bottom: none;
}

.licenses-table .dataTables_wrapper {
    width: 100%;
}

.licenses-table.licenses-table-fill .dataTables_wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.licenses-table.licenses-table-fill .dataTables_scroll {
    flex: 1 1 auto;
    min-height: 0;
}

.licenses-table table thead {
    display: table-header-group;
}

.licenses-table table tbody {
    display: table-row-group;
}

.task-id-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 0.05rem 0.35rem;
}

.task-id-pill.is-due-today {
    background-color: rgba(255, 140, 0, 0.5);
}

.task-id-pill.is-overdue {
    background-color: rgba(255, 0, 0, 0.6);
}

.task-id-pill.has-subtask-due {
    box-shadow: none;
}

.task-id-pill.subtask-only {
    border: none;
}

.subtasks-modal-body {
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
}

.subtasks-modal-dialog {
    max-width: calc(100vw - 2rem);
    width: calc(100vw - 2rem);
    margin: 1rem auto;
}

.subtask-id-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

.subtask-id-pill.is-due-today {
    background-color: rgba(255, 140, 0, 0.5);
}

.subtask-id-pill.is-overdue {
    background-color: rgba(255, 0, 0, 0.6);
}

.workorder-form-table {
    min-width: 0;
}

.workorder-form-table thead {
    display: none;
}

.workorder-form-table tbody tr {
    display: block;
    border: 0.0625rem solid rgba(20, 21, 22, 0.08);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

.workorder-form-table tbody td {
    display: block;
    padding: 0.35rem 0;
    border: none;
}

.workorder-form-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4f5662;
    margin-bottom: 0.25rem;
}

.workorder-form-table tbody td[data-label=""]::before {
    display: none;
}

.workorder-grid-table thead {
    display: table-header-group;
}

.workorder-grid-table tbody tr {
    display: table-row;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background: transparent;
}

.workorder-grid-table tbody td {
    display: table-cell;
    padding: 0.4rem 0.5rem;
    border: 1px solid #e2e8f0;
}

.workorder-grid-table tbody td::before {
    display: none;
    content: "";
}

.workorder-row-actions-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.workorder-row-actions-inline label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.workorder-row-actions-inline input[type="checkbox"] {
    margin: 0;
}

.workorder-delete-cell {
    text-align: right;
}

.workorder-delete-cell::before {
    display: inline-block;
    margin-right: 0.35rem;
}

@media (min-width: 62rem) {
    .workorder-details-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 1.5rem;
    }

    .workorder-details-grid > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
    }

    .workorder-details-grid > .workorder-full {
        grid-column: 1 / -1;
    }
}

.activity-photo {
    width: 100%;
    max-width: 12rem;
    height: auto;
    max-height: 9rem;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 0.0625rem solid rgba(20, 21, 22, 0.1);
    display: block;
}

.license-thumb {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 0.0625rem solid rgba(20, 21, 22, 0.15);
}

.license-thumb-button {
    padding: 0;
    border: none;
    background: transparent;
}

.license-preview-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 1.5rem rgba(12, 18, 28, 0.12);
}

.rt-editor-input-hidden {
    display: none;
}

.rt-editor {
    min-height: 10rem;
    padding: 0.75rem;
    border: 0.0625rem solid rgba(20, 21, 22, 0.12);
    border-radius: 0.5rem;
    background: #fff;
}

.rt-editor:focus {
    outline: 0.125rem solid rgba(13, 110, 253, 0.25);
}

.floating-page-menu-btn {
    position: fixed;
    left: 0;
    margin-left: 0;
    z-index: 1500;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0.0625rem solid var(--app-primary);
    border-color: var(--app-primary);
    color: var(--app-primary);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-soft);
    border-radius: 50%;
    width: 4.5rem;
    height: 4.5rem;
    padding: 6px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    text-align: center;
    line-height: 1.1;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: normal;
    cursor: move;
    touch-action: none;
}

.floating-page-menu-btn:hover,
.floating-page-menu-btn:focus-visible {
    border-color: var(--app-primary-hover);
    color: var(--app-primary-hover);
    background: var(--app-surface-soft);
}

.floating-page-menu-btn.is-loading {
    pointer-events: none;
}

.floating-page-menu-btn-spinner {
    display: none;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 0.15rem solid var(--app-input-border);
    border-top-color: var(--app-primary);
    animation: app-spin 0.8s linear infinite;
}

.floating-page-menu-btn.is-loading .floating-page-menu-btn-spinner {
    display: inline-block;
}

.floating-page-menu-panel {
    position: fixed;
    left: 0;
    z-index: 1490;
    min-width: 12rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: var(--app-surface);
    border: 0.0625rem solid var(--app-border);
    box-shadow: var(--app-shadow-soft);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.floating-page-menu-panel.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.floating-page-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.floating-page-menu-actions .btn {
    justify-content: flex-start;
}

.floating-export-hidden {
    display: none !important;
}

.floating-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1480;
    background: var(--app-soft-accent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.floating-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.action-dropdown .action-dropdown-toggle::after {
    display: none;
}

.action-dropdown .action-dropdown-toggle {
    width: 2.1rem;
    height: 2.1rem;
    min-width: 2.1rem;
    padding: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.action-dropdown-menu {
    position: absolute;
    margin: 0;
    align-items: center;
    padding: 0.35rem;
    min-width: auto;
    right: calc(100% + 0.5rem);
    left: auto;
    top: 50%;
    transform: translateY(-50%) translateX(0.4rem);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
    display: none;
}

.action-dropdown-menu > li {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 2.1rem;
    display: block;
}

.action-dropdown-menu.show {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 2.1rem;
    column-gap: 0.4rem;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.action-dropdown-menu .dropdown-item {
    width: 100%;
    height: 2.1rem;
    padding: 0.35rem;
    margin: 0;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--app-primary);
    border: 0.0625rem solid var(--app-primary);
    background: transparent;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.action-dropdown-menu .dropdown-item:hover,
.action-dropdown-menu .dropdown-item:focus-visible {
    color: #fff;
    border-color: var(--app-primary-hover);
    background: var(--app-primary-hover);
}

.action-dropdown-menu .dropdown-item i {
    width: 1rem;
    height: 1rem;
    margin: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.action-dropdown-menu .dropdown-item::after {
    content: attr(aria-label);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translate(-50%, -0.35rem);
    background: #111827;
    color: #fff;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
    font-size: 0.65rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.action-dropdown-menu .dropdown-item:hover::after,
.action-dropdown-menu .dropdown-item:focus-visible::after {
    opacity: 1;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem 1.5rem;
}

.details-item {
    min-width: 0;
}

.details-span {
    grid-column: 1 / -1;
}

.details-label {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f5662;
}

.details-value {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: #141516;
}

.details-email {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.details-long .details-value,
.details-email-block .details-value {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.details-panel-individual .details-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-flow: row dense;
}

.details-panel-individual .details-company {
    grid-column: 1;
    grid-row: 1;
}

.details-panel-individual .details-address {
    grid-column: 2;
    grid-row: 1;
}

.details-panel-individual .details-city {
    grid-column: 3;
    grid-row: 1;
}

.details-panel-individual .details-state {
    grid-column: 4;
    grid-row: 1;
}

.details-panel-individual .details-zip {
    grid-column: 5;
    grid-row: 1;
}

.details-panel-individual .details-email-block {
    grid-column: 4 / 6;
    grid-row: 2;
}

.details-panel-individual .details-created {
    grid-column: 1;
    grid-row: 2;
}

.details-panel-individual .details-notes {
    grid-column: 2 / 6;
    grid-row: 2;
}

.details-divider {
    height: 0.0625rem;
    background: rgba(15, 23, 42, 0.12);
    margin: 1rem 0;
}

.details-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.details-table {
    margin: 0;
}

.details-table th {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f5662;
}

.details-empty {
    margin: 0;
    color: #4f5662;
}

.details-panel {
    background: rgba(13, 110, 253, 0.06);
    border: 0.0625rem solid rgba(13, 110, 253, 0.18);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.contact-representatives {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 0.0625rem solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-representatives-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.contact-representative-card {
    border-radius: 0.75rem;
    border: 0.0625rem solid rgba(15, 23, 42, 0.1);
    padding: 1rem;
    background: #ffffff;
}

.contact-row-company {
    --bs-table-bg: #e3e3e3;
    --bs-table-color: #141516;
}

.contact-row-company .cell:not(.cell-actions) {
    color: #141516;
}

.contact-row-individual {
    --bs-table-bg: #e5f4e8;
    --bs-table-color: #1f2a1f;
}

.contact-row-individual .cell:not(.cell-actions) {
    color: #1f2a1f;
}

.insurance-details-row td {
    border-bottom: none;
}

.licenses-actions a {
    margin-right: 0.75rem;
}

.licenses-table .cell {
    display: flex;
    align-items: center;
}

.licenses-table .cell {
    justify-content: flex-start;
}

.licenses-table .cell-actions {
    display: inline-flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    width: 100%;
}

.licenses-table .cell-actions {
    gap: 0.5rem;
}

.licenses-table .cell-actions .btn {
    margin: 0;
}

.licenses-table .cell-actions form {
    display: inline-flex;
    margin: 0;
}

.licenses-table td.licenses-actions {
    text-align: right;
}

.licenses-table th .cell.cell-actions {
    width: 100%;
    justify-content: flex-end;
}

.licenses-table td .cell.cell-actions .action-dropdown {
    margin-left: auto;
}

.licenses-table .inventory-actions,
.licenses-table .inventory-actions-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.licenses-table .inventory-actions input.form-control {
    width: 6rem;
}

.project-dashboard {
    width: 100%;
    min-height: calc(100dvh - 8rem);
}

.project-dashboard .licenses-table {
    width: 100%;
}

.project-dashboard-chart {
    height: auto;
}

.project-dashboard-chart-secondary {
    margin-top: 1rem;
}

.project-dashboard-map {
    height: 32dvh;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.project-dashboard-map #projectDashboardMap {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    z-index: 1;
}

.project-dashboard-map .leaflet-container {
    z-index: 1;
}

.project-dashboard-details {
    margin-top: 1rem;
}

.project-details-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.financial-dashboard-layout {
    display: flex;
    gap: 1rem;
    margin-top: 5px;
    flex: 1 1 auto;
    min-height: 0;
}

.financial-dashboard-nav {
    width: 10%;
    min-width: 9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.financial-dashboard-link {
    text-align: left;
    border: 0.0625rem solid #0d6efd;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    font-weight: 600;
    color: #0d6efd;
}

.financial-dashboard-link.is-active {
    border-color: #0d6efd;
    color: #0d6efd;
}

.financial-dashboard-link:hover,
.financial-dashboard-link:focus-visible,
.financial-dashboard-link.is-active:hover,
.financial-dashboard-link.is-active:focus-visible {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.financial-dashboard-panels,
.financial-dashboard-panel {
    flex: 1;
    display: flex;
    min-height: 0;
}

.financial-dashboard-card {
    display: none;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    flex: 1 1 auto;
    height: auto;
}

.financial-dashboard-card.is-active {
    display: flex;
}

.financial-dashboard-card canvas {
    flex: 1;
    min-height: 0;
    height: 100% !important;
    width: 100% !important;
}

.financial-dashboard {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 8rem);
}


.dt-toolbar-action {
    display: inline-flex;
    align-items: center;
}

.dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.dt-toolbar .dt-buttons {
    order: 2;
}

.dt-toolbar .dataTables_filter,
.dt-toolbar .dt-search {
    order: 1;
    margin-left: 0;
}

.dt-toolbar .dt-buttons {
    display: inline-flex;
    gap: 0;
    margin-right: 0;
    margin-left: 0.5rem;
}

.dt-toolbar [data-dt-toolbar] {
    margin-left: 0;
}

.dt-toolbar .dt-buttons .btn {
    color: var(--app-primary);
    border: 0.0625rem solid var(--app-primary);
    background: transparent;
}

.dt-toolbar .dt-buttons .btn:hover,
.dt-toolbar .dt-buttons .btn:focus {
    color: #fff;
    background: var(--app-primary-hover);
    border-color: var(--app-primary-hover);
}

.dataTables_paginate {
    display: inline-flex;
    gap: 0;
}

.dataTables_paginate .pagination {
    gap: 0;
}

.dataTables_paginate .paginate_button,
.dataTables_paginate .page-link {
    border-radius: 0;
}

.dataTables_paginate .page-link {
    color: var(--app-primary);
    border: 0.0625rem solid var(--app-primary);
    background: transparent;
    margin-left: -0.0625rem;
}

.dataTables_paginate .page-item.active .page-link {
    background: var(--app-primary-hover);
    border-color: var(--app-primary-hover);
    color: #fff;
}

.dataTables_paginate .page-item.disabled .page-link {
    color: #9aa0a6;
    border-color: rgba(20, 21, 22, 0.2);
    background: #f1f3f5;
}

.dataTables_paginate .paginate_button:first-child,
.dataTables_paginate .page-item:first-child .page-link {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.dataTables_paginate .paginate_button:last-child,
.dataTables_paginate .page-item:last-child .page-link {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 62.4375rem;
    font-family: "Trebuchet MS", "Gill Sans", "Verdana", sans-serif;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.button.primary {
    background: #5f7d6d;
    color: #fff;
    border: 0.0625rem solid #5f7d6d;
}

.button.ghost {
    border: 0.0625rem solid #5f7d6d;
    color: #5f7d6d;
    background: transparent;
}

.button.primary:hover,
.button.ghost:hover {
    background: #4f6a5c;
    border-color: #4f6a5c;
    color: #fff;
}

.signin-header {
    position: relative;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    margin: 0;
}

.signin-logo-wrap {
    width: 100%;
    text-align: center;
}

.signin-logo {
    width: 2.8125rem;
    max-width: 25%;
    height: auto;
}

.signin-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
}

.signin-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 86%;
    margin: 0 auto;
    margin-top: 3rem;
}

.signin-actions .btn {
    flex: 0 0 40%;
}

.signin-body {
    background:#39404d
}

.signin-alert {
    position: fixed;
    left: 50%;
    top: calc(50% - 17.5rem - 2rem);
    transform: translateX(-50%);
    width: min(31.25rem, 90vw);
    z-index: 1060;
}

.signin-alert .alert {
    margin: 0;
}

.signin-body .form-label,
.signin-body .form-control {
    color: #f5f7ff;
}

.signin-body .form-control {
    background: #101624;
    border-color: rgba(245, 247, 255, 0.35);
    width: 100%;
}

.signin-body .form-control::placeholder {
    color: rgba(179, 179, 179, 0.7);
}

.signin-body .mb-3,
.signin-body .mb-4 {
    width: 86%;
    margin: 0 auto;
}

.signin-body .mb-3 {
    margin-top: 2rem;
}

.signin-body .btn-primary {
    background: #5f7d6d;
    border-color: #5f7d6d;
}

.signin-body .btn-outline-primary {
    color: #5f7d6d;
    border-color: #5f7d6d;
}

.signin-body .btn-primary:hover,
.signin-body .btn-outline-primary:hover {
    background: #4f6a5c;
    border-color: #4f6a5c;
    color: #fff;
}

.offcanvas {
    --bs-offcanvas-width: 100vw;
    top: var(--app-header-height, 72px) !important;
    right: 0 !important;
    bottom: var(--app-footer-height, 48px) !important;
    left: 0 !important;
    height: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    transform: none !important;
    transition: opacity 0.15s ease-in-out !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.app-fullscreen-panel {
    transform: none !important;
}

.offcanvas:not(.show):not(.showing) {
    opacity: 0;
}

.offcanvas.show,
.offcanvas.showing {
    opacity: 1;
    transform: none !important;
}

.offcanvas-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.offcanvas-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 47.5rem) {
    .hero {
        padding: 2.5rem 1.5rem 4rem;
    }

    .licenses-section {
        padding: 0 1rem;
    }

    .licenses-section.licenses-section-fill {
        min-height: auto;
        display: block;
    }

    .licenses-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .licenses-title {
        font-size: 1.25rem;
    }

    .licenses-table {
        padding: 0.65rem;
        min-height: auto;
    }

    .licenses-table .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .licenses-table table {
        min-width: 40rem;
    }

    .licenses-table .table > :not(caption) > * > * {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }

    .licenses-table thead th {
        font-size: 0.6rem;
    }

    .offcanvas {
        width: 100% !important;
        max-width: 100% !important;
    }

    .offcanvas-header {
        padding: 0.75rem 1rem;
    }

    .offcanvas-body {
        padding: 1rem;
    }

    .offcanvas-body .form-control,
    .offcanvas-body .form-select,
    .offcanvas-body textarea,
    .offcanvas-body input {
        font-size: 16px;
    }

    .offcanvas-body .btn {
        width: 100%;
    }

    .subtasks-modal-dialog {
        margin: 0.5rem auto;
    }
}

/* blackcoralaquatics public-style overrides */
:root {
    --hero-ink: #0f2740;
    --hero-muted: #5a7281;
    --hero-accent: #0b7a75;
    --hero-accent-dark: #085d59;
    --hero-sand: #efe7dc;
    --hero-mist: #dce7ea;
    --hero-accent-soft: rgba(11, 122, 117, 0.16);
    --hero-panel: rgba(255, 255, 255, 0.88);
    --hero-line: rgba(15, 39, 64, 0.12);
    --hero-shadow: 0 24px 80px rgba(13, 42, 61, 0.16);
}

.hero {
    max-width: none;
    margin: 0;
    padding: 3rem 0 5rem;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 42rem;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    gap: 2rem;
    background: radial-gradient(circle at top left, rgba(11, 122, 117, 0.18), transparent 30%), linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 231, 220, 0.82));
    border: 1px solid var(--hero-line);
    box-shadow: var(--hero-shadow);
}

.hero-shell::after {
    content: "";
    position: absolute;
    inset: auto -6rem -8rem auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 122, 117, 0.18), rgba(11, 122, 117, 0));
}

.hero-copy-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
}

.hero-text {
    justify-content: center;
    gap: 1.4rem;
}

.hero-logo-panel {
    width: min(100%, 26rem);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 2rem;
    background: var(--hero-panel);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 50px rgba(13, 42, 61, 0.1);
}

.hero-logo {
    width: min(100%, 19.6875rem);
}

.hero-title {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 0.96;
    color: var(--hero-ink);
}

.eyebrow {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
}

.hero-copy {
    max-width: 34rem;
    font-size: 1.08rem;
    margin: 0;
}

.hero-actions .btn {
    min-width: 11.25rem;
    min-height: 3rem;
    border-radius: 999px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero-actions .btn-primary,
.signin-body .btn-primary {
    background: var(--hero-accent);
    border-color: var(--hero-accent);
}

.hero-actions .btn-outline-primary,
.signin-body .btn-outline-primary {
    color: var(--hero-accent);
    border-color: rgba(11, 122, 117, 0.35);
    background: rgba(255, 255, 255, 0.45);
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-outline-primary:hover,
.signin-body .btn-primary:hover,
.signin-body .btn-outline-primary:hover {
    background: var(--hero-accent-dark);
    border-color: var(--hero-accent-dark);
    color: #fff;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero-badges span {
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--hero-line);
    color: var(--hero-ink);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
}

.signin-modal {
    border-radius: 1.75rem;
    overflow: hidden;
    border: 1px solid var(--hero-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--hero-shadow);
}

.signin-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5.5rem;
    padding: 0.9rem 1.25rem 0.9rem;
    background: transparent;
    border-bottom: 0;
    position: relative;
}

.signin-logo-wrap {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.15rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(11, 122, 117, 0.14), rgba(18, 52, 77, 0.12));
    overflow: hidden;
}

.signin-logo {
    display: block;
    width: 70%;
    height: 70%;
    max-width: none;
    object-fit: contain;
    flex: 0 0 auto;
}

.signin-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.84);
}

.signin-body {
    padding: 1.25rem 1.5rem 1.5rem;
    background: transparent;
}

.signin-body form {
    display: flex;
    flex-direction: column;
    gap: 1.525rem;
}

.signin-body .mb-3,
.signin-body .mb-4 {
    width: 100%;
    margin: 0;
}

.signin-field {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.45rem;
    row-gap: 0.45rem;
}

.signin-body .form-label {
    margin: 0;
    text-align: left;
    color: #5a7281;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.signin-actions {
    width: 100%;
    margin: 0;
    margin-top: 0.75rem;
    justify-content: space-between;
    gap: 0.9rem;
}

.signin-actions .btn {
    flex: 0 0 calc(50% - 0.5rem);
    min-height: 3rem;
    border-radius: 999px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.signin-body .form-control[type="file"] {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

@media (max-width: 40rem) {
    .signin-field {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .signin-actions {
        flex-direction: column;
    }

    .signin-actions .btn {
        flex-basis: auto;
        width: 100%;
    }
}

.signin-alert .alert {
    border-radius: 1.25rem;
    box-shadow: 0 12px 30px rgba(13, 42, 61, 0.08);
}

.signin-body .form-label,
.signin-body .form-control {
    color: var(--hero-ink);
}

.signin-body .form-control {
    background: #ffffff;
    border-color: rgba(24, 53, 72, 0.18);
    border-radius: 1rem;
}

.signin-body .form-control::placeholder {
    color: rgba(90, 114, 129, 0.72);
}

@media (max-width: 40rem) {
    .hero-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.5rem;
        border-radius: 2rem;
    }

    .hero-copy-block {
        align-items: stretch;
    }

    .hero-title {
        max-width: none;
        font-size: clamp(2.4rem, 12vw, 3.5rem);
    }
}

/* tone-only cleanup for the public intranet page */
.hero {
    max-width: 68.75rem;
    margin: 0 auto;
    padding: 4.75rem 1.5rem 6rem;
    min-height: auto;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.35rem;
    text-align: center;
}

.hero-logo {
    width: min(42vw, 11rem);
    max-width: 100%;
    height: auto;
}

.hero-logo-panel {
    width: min(100%, 12rem);
    padding: 1.15rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 39, 64, 0.12);
    box-shadow: 0 18px 50px rgba(13, 42, 61, 0.08);
}

.hero-title {
    max-width: none;
    margin: 0;
    font-size: clamp(2.2rem, 4.8vw, 3.2rem);
    line-height: 1.12;
    color: #183548;
}

.hero-copy {
    max-width: 30rem;
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #5a7281;
}

.hero-search {
    margin-top: -0.2rem;
}

.eyebrow {
    margin: 0;
    color: #0b7a75;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
}

.hero-actions .btn {
    width: 11.25rem;
    min-height: 3rem;
    border-radius: 999px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
}

.hero-actions .btn-primary,
.signin-body .btn-primary {
    background: #0b7a75;
    border-color: #0b7a75;
}

.hero-actions .btn-outline-primary,
.signin-body .btn-outline-primary {
    color: #0b7a75;
    border-color: rgba(11, 122, 117, 0.35);
    background: rgba(255, 255, 255, 0.45);
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-outline-primary:hover,
.signin-body .btn-primary:hover,
.signin-body .btn-outline-primary:hover {
    background: #085d59;
    border-color: #085d59;
    color: #fff;
}

.hero-shell,
.hero-copy-block,
.hero-badges {
    all: unset;
}

.signin-alert {
    position: static;
    transform: none;
    width: min(42rem, calc(100% - 3rem));
    margin: 1.5rem auto 0;
    z-index: auto;
}

@media (max-width: 40rem) {
    .hero {
        padding: 3.25rem 1rem 4rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }
}
