.lwr-summary {
    --lwr-summary-muted: rgb(100 116 139);
    --lwr-summary-accent: rgb(240 249 255 / 0.65);
    background: white;
    border: 1px solid rgb(56 189 248 / 0.7);
    border-radius: 0.625rem;
    box-shadow: 0 1px 2px rgb(14 165 233 / 0.08);
}
.lwr-summary__content {
    background: var(--lwr-summary-accent);
    border-radius: 0.55rem;
    padding: 0.875rem 1rem;
}
.lwr-summary__items {
    align-items: start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem clamp(2rem, 4vw, 4rem);
    min-width: 0;
}
.lwr-summary__item {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    min-width: 0;
}
.lwr-summary__label {
    color: var(--lwr-summary-muted, rgb(100 116 139));
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}
.lwr-summary__value {
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    margin-top: 0.2rem;
    white-space: nowrap;
}
.lwr-summary__value--total { color: rgb(3 105 161); }
.dark .lwr-summary {
    --lwr-summary-muted: rgb(148 163 184);
    --lwr-summary-accent: rgb(8 47 73 / 0.28);
    background: rgb(17 24 39);
    border-color: rgb(14 165 233 / 0.65);
}
.dark .lwr-summary__label { color: var(--lwr-summary-muted, rgb(148 163 184)); }
.dark .lwr-summary__value--total { color: rgb(56 189 248); }

@media (max-width: 1023px) {
    .lwr-summary__label { font-size: 0.65rem; }
    .lwr-summary__value { font-size: 0.9rem; }
}

@media (max-width: 767px) {
    .lwr-summary__value { font-size: 0.8rem; }
}

.inline-preview-text {
    white-space: pre-line;
}

.lwr-dashboard-chart-sm {
    max-width: 60px;
}

.lwr-project-card-menu {
    top: calc(100% + 0.5rem);
}

.lwr-dashboard-chart-lg {
    max-height: 300px;
}

.lwr-dashboard-chart-md {
    max-height: 250px;
}

.lwr-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1rem;
}

.lwr-chart-legend__item {
    align-items: center;
    display: inline-flex;
    gap: 0.375rem;
}

.lwr-chart-legend__marker {
    background: #537aef;
    border-radius: 9999px;
    flex: 0 0 auto;
    height: 0.5rem;
    width: 0.5rem;
}

.lwr-chart-legend__item:nth-child(3n + 2) .lwr-chart-legend__marker {
    background: #29aa85;
}

.lwr-chart-legend__item:nth-child(3n) .lwr-chart-legend__marker {
    background: #ec8290;
}

.lwr-chart-legend__marker--income {
    background: #ec8290;
}

.lwr-chart-legend__empty {
    color: rgb(156 163 175);
}

.lwr-alert-dot {
    --lwr-alert-dot-color: 220 38 38;
    background: rgb(var(--lwr-alert-dot-color));
    border-radius: 9999px;
    box-shadow: 0 0 0 0 rgb(var(--lwr-alert-dot-color) / var(--lwr-alert-dot-opacity, 0.45));
    display: inline-block;
    height: 0.5rem;
    width: 0.5rem;
    animation: lwr-alert-dot-pulse 1.8s ease-out infinite;
}

.lwr-alert-dot--white {
    --lwr-alert-dot-color: 255 255 255;
    --lwr-alert-dot-opacity: 0.85;
    --lwr-alert-dot-spread: 0.6rem;
    animation-duration: 1.5s;
}

.web-push-unread-dot {
    right: 4px;
    top: -2px;
}

.lwr-reminder-list-collapsed .lwr-reminder-card:nth-child(n + 4) {
    display: none !important;
}

.lwr-reminder-list-expanded {
    overflow-y: auto;
}

@keyframes lwr-alert-dot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgb(var(--lwr-alert-dot-color) / var(--lwr-alert-dot-opacity, 0.45));
    }

    70% {
        box-shadow: 0 0 0 var(--lwr-alert-dot-spread, 0.45rem) rgb(var(--lwr-alert-dot-color) / 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgb(var(--lwr-alert-dot-color) / 0);
    }
}

.project-summary-chart {
    max-width: 50px;
}

.document-card-number,
.document-card-amount {
    font-size: 11px;
}

.document-card-status,
.document-card-badges > span {
    font-size: 9px;
}

.document-card-meta {
    font-size: 11px;
}

.document-card-status {
    line-height: 1rem;
}

.document-card-badges > span:not(.estimate-version-badge) {
    height: 1.25rem;
    line-height: 1.25rem;
    padding-left: 0.375rem;
    padding-right: 0.375rem;
}

[data-invoice-cards] {
    background-color: #fffcf5;
    border-color: #f3d3a0;
}

.dark [data-invoice-cards] {
    background-color: rgb(124 45 18 / 0.18);
    border-color: rgb(251 146 60 / 0.45);
}

[data-invoice-cards] > .grid > a {
    border-color: #f3d3a0;
}

[data-invoice-cards] > .grid > a:hover {
    border-color: rgb(245 158 11);
}

.dark [data-invoice-cards] > .grid > a {
    border-color: rgb(251 146 60 / 0.45);
}

.dark [data-invoice-cards] > .grid > a:hover {
    border-color: rgb(251 146 60);
}

[data-invoice-action-card] {
    background-color: rgb(255 255 255);
    border-color: #f3d3a0;
    color: #9a5b13;
}

[data-invoice-action-card]:hover {
    background-color: #fffcf5;
    border-color: rgb(245 158 11);
}

.dark [data-invoice-action-card] {
    background-color: rgb(17 24 39);
    border-color: rgb(251 146 60 / 0.45);
    color: rgb(254 215 170);
}

.dark [data-invoice-action-card]:hover {
    background-color: rgb(154 52 18 / 0.42);
    border-color: rgb(251 146 60);
}

[data-invoice-list-card],
[data-invoice-list-card]:hover {
    background-color: #fffcf5;
}

.dark [data-invoice-list-card],
.dark [data-invoice-list-card]:hover {
    background-color: rgb(124 45 18 / 0.18);
}

.hotel-projects .status-badge {
    font-size: 0.625rem;
}

.locations-map {
    height: 80vh;
}

.notes-grid {
    grid-template-columns: repeat(auto-fill, 150px);
}

.note-card {
    height: 200px;
    width: 150px;
}

.note-color-dot {
    background-color: var(--note-color);
}

.note-content-preview {
    display: inline-block;
    max-height: 100%;
}

.note-actions-menu {
    min-width: 100px;
}

.note-card-title,
.note-card-date {
    text-align: center;
    width: 150px;
}

.activities-change-list-no-actions #changelist table thead th:first-child {
    width: inherit;
}

.activity-timeline {
    position: relative;
}

.activity-timeline::before {
    background: rgb(209 213 219);
    bottom: 1.75rem;
    content: "";
    left: 2.25rem;
    position: absolute;
    top: 1.75rem;
    width: 1px;
}

.dark .activity-timeline::before {
    background: rgb(55 65 81);
}

.activity-timeline-item {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    min-width: 0;
    position: relative;
}

.activity-timeline-item + .activity-timeline-item {
    margin-top: 0.75rem;
}

.activity-timeline-marker {
    align-items: center;
    aspect-ratio: 1;
    display: flex;
    flex: 0 0 2.5rem;
    height: 2.5rem;
    justify-content: center;
    margin-top: 1rem;
    position: relative;
    width: 2.5rem;
    z-index: 1;
}

.activity-timeline-marker .material-symbols-outlined {
    font-size: 1.35rem;
    line-height: 1;
}

.activity-timeline-card {
    min-width: 0;
}

.admin-form-control {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.admin-form-control:not(textarea) {
    height: 2.5rem;
}

.admin-action-menu { position: relative; }
.admin-action-menu > summary { list-style: none; }
.admin-action-menu > summary::-webkit-details-marker { display: none; }
fieldset details.admin-action-menu > summary::after {
    content: none;
    display: none;
}
fieldset details.admin-action-menu[open] > summary { margin-bottom: 0; }

.admin-action-menu__trigger {
    align-items: center;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.375rem;
    box-sizing: border-box;
    color: rgb(75 85 99);
    cursor: pointer;
    display: flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}
.admin-action-menu__trigger:hover { background: rgb(243 244 246); }
.admin-action-menu__trigger:disabled {
    background: transparent;
    cursor: not-allowed;
    opacity: 0.5;
}
.admin-action-menu__trigger:focus-visible {
    outline: 2px solid rgb(14 165 233);
    outline-offset: 2px;
}
.admin-action-menu__panel {
    background: white;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.12);
    min-width: 10rem;
    padding: 0.3rem;
    position: fixed;
    visibility: hidden;
    z-index: 50;
}
.admin-action-menu[data-menu-positioned] .admin-action-menu__panel { visibility: visible; }
.admin-action-menu__item {
    align-items: center;
    border-radius: 0.3rem;
    color: rgb(55 65 81);
    display: flex;
    font-size: 0.8125rem;
    gap: 0.5rem;
    min-height: 2.375rem;
    padding: 0.5rem 0.6rem;
    width: 100%;
}
.admin-action-menu__item:hover { background: rgb(243 244 246); }
.admin-action-menu__item .material-symbols-outlined {
    flex: 0 0 1.25rem;
    font-size: 1.1rem;
    text-align: center;
}
.admin-action-menu__item--danger { color: rgb(220 38 38); }
.dark .admin-action-menu__trigger {
    border-color: rgb(55 65 81);
    color: rgb(156 163 175);
}
.dark .admin-action-menu__trigger:hover,
.dark .admin-action-menu__item:hover { background: rgb(31 41 55); }
.dark .admin-action-menu__panel {
    background: rgb(17 24 39);
    border-color: rgb(55 65 81);
}
.dark .admin-action-menu__item { color: rgb(229 231 235); }
.dark .admin-action-menu__item--danger { color: rgb(248 113 113); }
