:root {
    --app-bg: #eef4f9;
    --app-bg-top: #f7fbff;
    --app-surface: #ffffff;
    --app-surface-soft: #f8fbfe;
    --app-surface-muted: #f2f7fc;
    --app-border: #d9e4ef;
    --app-border-strong: #c7d7e7;
	--app-border-stronger: #afcad8;
    --app-text: #223244;
    --app-text-soft: #45607b;
    --app-muted: #70859b;
    --app-primary: #6f95c0;
    --app-primary-strong: #4d739f;
    --app-primary-soft: #eaf2fb;
    --app-success: #3b8a6b;
    --app-warning: #b78633;
    --app-danger: #c06760;
    --app-shadow-soft: 0 8px 24px rgba(31, 57, 85, .06);
    --app-shadow: 0 14px 34px rgba(31, 57, 85, .09);
    --app-radius-xs: 4px;
    --app-radius-sm: 6px;
    --app-radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background:
        radial-gradient(circle at top, rgba(111, 149, 192, .15), transparent 32%),
        linear-gradient(180deg, var(--app-bg-top) 0%, var(--app-bg) 42%, #eaf1f7 100%);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--app-text);
    background: transparent;
}

a {
    color: var(--app-primary-strong);
    text-decoration: none;
}

a:hover {
    color: var(--app-primary-strong);
    text-decoration: none;
}

.uk-container-large {
    max-width: 1340px;
}

.uk-card,
.uk-alert,
.uk-table,
.uk-input,
.uk-select,
.uk-textarea,
.uk-button,
.uk-modal-dialog,
.uk-notification-message {
    border-radius: var(--app-radius-sm) !important;
}

.uk-input,
.uk-select,
.uk-textarea {
    min-height: 44px;
    border: 1px solid var(--app-border);
    background: #fff;
    color: var(--app-text);
    box-shadow: inset 0 1px 2px rgba(24, 41, 61, .03);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
    border-color: rgba(111, 149, 192, .7);
    box-shadow: 0 0 0 4px rgba(111, 149, 192, .13);
}

.uk-button {
    min-height: 40px;
    padding: 0 .95rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.uk-button-primary,
.app-button {
    background: linear-gradient(180deg, #7095bf 0%, #567ca6 100%) !important;
    color: #fff !important;
    border: 1px solid #50749d !important;
    box-shadow: 0 6px 16px rgba(77, 115, 159, .18);
}

.uk-button-primary:hover,
.app-button:hover {
    background: linear-gradient(180deg, #648ab5 0%, #4d739f 100%) !important;
    color: #fff !important;
}

.uk-button-default,
.app-button--light {
    background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%) !important;
    color: var(--app-text) !important;
    border: 1px solid var(--app-border) !important;
    box-shadow: none !important;
}

.uk-button-default:hover,
.app-button--light:hover {
    background: #f1f6fb !important;
    border-color: var(--app-border-strong) !important;
    color: var(--app-text) !important;
}

.uk-button-danger {
    background: linear-gradient(180deg, #cf7972 0%, #bd645d 100%) !important;
    color: #fff !important;
    border: 1px solid #b35b55 !important;
}

.uk-table-divider > tr:not(:last-child),
.uk-table-divider > :not(:last-child) > tr,
.uk-table-divider > :not(:last-child) > tr:not(:last-child) {
    border-bottom-color: #e5edf5;
}

.uk-table-striped tbody tr:nth-of-type(odd),
.uk-table-striped > tr:nth-of-type(odd) {
    background: rgba(242, 247, 252, .85);
}

.uk-checkbox {
    border-color: var(--app-border-strong);
    border-radius: 4px;
}

.app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(247, 251, 255, .95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(199, 215, 231, .9);
    box-shadow: 0 8px 20px rgba(34, 50, 68, .05);
}

.app-header__bar {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 82px;
}

.app-brand
{
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    color: var(--app-text);
}

.app-brand:hover {
    color: var(--app-text);
}

.app-brand__icon
{
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-primary-strong);
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 2rem;
    flex: 0 0 auto;
}

.app-brand strong
{
    display: block;
    font-size: 1.2rem;
    line-height: 1.3;
}

.app-brand small {
    display: block;
    color: var(--app-muted);
    font-size: .83rem;
    line-height: 1.25;
}

.app-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.app-nav::-webkit-scrollbar {
    display: none;
}

.app-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .52rem;
    min-height: 40px;
    padding: .65rem .95rem;
    white-space: nowrap;
    border-radius: var(--app-radius-sm);
    color: var(--app-text-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(246, 250, 254, .94) 100%);
    border: 1px solid rgba(199, 215, 231, .95);
    box-shadow: 0 3px 10px rgba(33, 50, 68, .04);
    font-weight: 600;
    transition: transform .16s ease, border-color .16s ease, color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.app-nav__link:hover {
    color: var(--app-primary-strong);
    border-color: rgba(111, 149, 192, .45);
    background: linear-gradient(180deg, #fff 0%, #edf4fb 100%);
    box-shadow: 0 5px 14px rgba(77, 115, 159, .08);
}

.app-nav__link.is-active {
    color: var(--app-primary-strong);
    border-color: rgba(111, 149, 192, .5);
    background: linear-gradient(180deg, #f4f8fd 0%, #e8f1fb 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 5px 14px rgba(77, 115, 159, .08);
}

.app-userbox {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .8rem;
}

.app-userbox__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
    white-space: nowrap;
}

.app-userbox__meta strong {
    font-size: .95rem;
}

.app-userbox__meta span {
    font-size: .82rem;
    color: var(--app-muted);
}

.app-main {
    padding: 1.8rem 1rem 2.8rem;
}

.app-page-head
{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.app-page-head__actions,
.app-badge-list,
.app-action-group,
.app-form-actions,
.app-form-actions--filter,
.app-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.app-kicker,
.auth-card__badge {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    padding: .38rem .68rem;
    border-radius: var(--app-radius-sm);
    background: linear-gradient(180deg, #eff5fb 0%, #e7f0fa 100%);
    color: var(--app-primary-strong);
    border: 1px solid rgba(199, 215, 231, .95);
    font-size: .8rem;
    font-weight: 700;
}

.app-page-title
{
    margin: 0;
    font-size: clamp(1.8rem, 2rem, 2.35rem);
    line-height: 1.08;
    letter-spacing: -.02em;
}

.app-page-subtitle
{
	margin-top: 10px;
}

.app-page-subtitle,
.app-muted {
    color: var(--app-muted);
}

.app-panel,
.app-stat-card,
.app-settings-card,
.auth-card,
.app-empty-state {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(217, 228, 239, .95);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-soft);
}

.app-panel,
.app-empty-state,
.auth-card {
    padding: 1.35rem;
}

.app-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-panel__header h2,
.app-empty-state h2,
.app-settings-card h2 {
    margin: 0;
    font-size: 1.14rem;
}

.app-panel__header p,
.app-empty-state p,
.app-settings-card p {
    margin: .25rem 0 0;
    color: var(--app-muted);
}

.app-stat-card {
    padding: 1.1rem 1.15rem;
    min-height: 106px;
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: .9rem;
}

.app-stat-card__label {
    color: var(--app-muted);
    font-size: .9rem;
    line-height: 1.35;
    align-self: start;
}

.app-stat-card__row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .9rem;
}

.app-stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -.03em;
}

.app-stat-card__icon,
.app-empty-state__icon,
.app-settings-card__icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--app-radius-sm);
    background: linear-gradient(180deg, #eef5fc 0%, #e6eff8 100%);
    border: 1px solid rgba(199, 215, 231, .92);
    color: var(--app-primary-strong);
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.app-checklist,
.app-timeline {
    display: grid;
    gap: .75rem;
}

.app-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-checklist li,
.app-timeline div,
.app-role-option
{
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .88rem .95rem;
    border-radius: var(--app-radius-sm);
    border: 1px solid #e4edf6;
    background: linear-gradient(180deg, #fafcff 0%, #f4f8fc 100%);
}

.app-role-option
{
	cursor: pointer;
}

.app-role-option .uk-checkbox
{
	margin-top: 3px;
}

.app-checklist i {
    color: var(--app-success);
    margin-top: .15rem;
}

.app-timeline strong {
    min-width: 78px;
}

.app-timeline span,
.app-role-option small
{
    color: var(--app-muted);
}

.app-table {
    overflow: hidden;
    border-radius: var(--app-radius-sm);
    border: 1px solid #e3ebf4;
    background: #fff;
}

.app-table thead th {
    background: #f5f9fd;
    color: var(--app-muted);
    font-size: .77rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.app-form-actions {
    margin-top: 1.4rem;
}

.app-form-actions--filter {
    align-items: flex-end;
}

.app-inline-form {
    display: inline-flex;
}

.app-action-group {
    justify-content: flex-end;
    width: 100%;
}

.app-icon-button {
    width: 38px;
    min-width: 38px;
    padding: 0 !important;
    gap: 0 !important;
}

.app-icon-button i {
    margin: 0;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .32rem .58rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.app-badge--neutral {
    background: #edf4fb;
    color: var(--app-primary-strong);
    border-color: #d5e3f1;
}

.app-badge--success {
    background: #eaf6ef;
    color: var(--app-success);
    border-color: #d4eada;
}

.app-badge--warning {
    background: #fff6ea;
    color: var(--app-warning);
    border-color: #f0dfc5;
}

.app-badge--danger {
    background: #fdeeee;
    color: #b64747;
    border-color: #f3d0d0;
}

.app-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .85rem;
}

.app-role-option strong,
.app-role-option small
{
    display: block;
}

.app-settings-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.1rem;
    height: 100%;
    min-height: 190px;
    padding: 1.1rem 1.15rem;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.app-settings-card__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: .9rem;
}

.app-settings-card__head h2 {
    align-self: start;
}

.app-settings-card__icon {
    margin-bottom: 0;
    justify-self: end;
}

.app-settings-card > p {
    margin: 0;
    /*margin-top: auto;*/
}

.app-settings-card--link {
    color: inherit;
}

.app-settings-card--link:hover {
    color: inherit;
    transform: translateY(-2px);
    border-color: #c8d9ea;
    box-shadow: 0 14px 30px rgba(31, 57, 85, .1);
}


.app-empty-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: var(--app-muted);
}

.app-empty-state {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-hero {
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background: rgba(255, 255, 255, .98);
}

.auth-note {
    margin-top: 1.3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--app-border);
    color: var(--app-muted);
    font-size: .92rem;
}

.app-error-details {
    overflow-x: auto;
    background: #1f3346;
    color: #f8fafc;
    padding: 1rem;
    border-radius: var(--app-radius-sm);
}

.app-notification {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
    min-width: 0;
}

.app-notification__icon
{
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
	font-size: 1.7rem;
    /*background: rgba(255, 255, 255, .65);*/
}

.app-notification__content {
    display: flex;
    flex-direction: column;
    gap: .08rem;
    min-width: 0;
}

.app-notification__title {
    font-size: .84rem;
    line-height: 1.2;
}

.app-notification__text {
    font-size: .8rem;
    line-height: 1.35;
}

.uk-notification {
    width: min(92vw, 430px);
}

.uk-notification-message {
    padding: .9rem .95rem !important;
    border: 1px solid transparent;
    box-shadow: 0 14px 28px rgba(31, 57, 85, .14);
}

.uk-notification-message-primary {
    background: #eaf2fb !important;
    color: #28435f !important;
    border-color: #cadef1 !important;
}

.uk-notification-message-success {
    background: #e8f6ef !important;
    color: #275542 !important;
    border-color: #c9e7d7 !important;
}

.uk-notification-message-warning {
    background: #fff4e6 !important;
    color: #73531f !important;
    border-color: #efd7ad !important;
}

.uk-notification-message-danger {
    background: #fbeceb !important;
    color: #7a3634 !important;
    border-color: #efc9c7 !important;
}


@media (max-width: 1180px) {
    .app-header__bar {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand user"
            "nav nav";
        gap: .85rem 1rem;
        padding: .8rem 0;
        min-height: 0;
    }

    .app-brand {
        grid-area: brand;
    }

    .app-nav {
        grid-area: nav;
        justify-content: center;
        padding-bottom: .15rem;
    }

    .app-userbox {
        grid-area: user;
    }
}

@media (max-width: 900px) {
    .app-page-head,
    .app-panel__header,
    .app-form-actions--filter,
    .app-panel__header--stack\@xs {
        flex-direction: column;
        align-items: stretch;
    }

    .app-main {
        padding-top: 1.35rem;
    }

    .app-userbox__meta {
        display: none;
    }
}

@media (max-width: 720px) {
    .app-header__bar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "nav"
            "user";
        justify-items: stretch;
    }

    .app-brand,
    .app-userbox {
        justify-content: center;
    }

    .app-nav {
        justify-content: flex-start;
    }

    .app-nav__link {
        flex: 0 0 auto;
    }

    .app-userbox {
        width: 100%;
    }

    .app-main {
        padding-left: .9rem;
        padding-right: .9rem;
    }
}

@media (max-width: 640px) {
    .app-stat-card strong {
        font-size: 1.75rem;
    }

    .uk-notification {
        left: 12px !important;
        right: 12px !important;
        width: auto;
    }
}

.app-stat-card--compact {
    min-height: 118px;
}

.app-form-tabs-wrap {
    margin-bottom: 1.2rem;
}

.app-form-tabs {
    margin-bottom: 0;
    border-bottom-color: #dbe6f1;
}

.app-form-tabs > * > a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .9rem 1rem;
    color: var(--app-text-soft);
    font-weight: 600;
}

.app-form-tabs > .uk-active > a {
    color: var(--app-primary-strong);
    border-bottom-color: var(--app-primary);
}

.app-form-switcher {
    margin-top: 1.05rem;
}

.app-invoice-top-grid {
    align-items: start;
}

.app-panel--fullwidth {
    width: 100%;
}

.app-panel__header--stack\@xs {
    gap: 1rem;
}

.app-form-actions--split
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
}

.app-form-actions--right
{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
}

.app-invoice-lines {
    display: grid;
    gap: .8rem;
}

.app-invoice-lines__header {
    display: grid;
    grid-template-columns: 68px minmax(240px, 429px) 98px 96px 150px 112px 118px 135px;
    gap: .6rem;
    align-items: center;
    padding: 0 .2rem;
    color: var(--app-muted);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.app-invoice-line {
    display: grid;
    grid-template-columns: 54px minmax(240px, 439px) 98px 96px 150px 112px 118px 135px;
    grid-template-areas:
        "position name quantity unit price tax total actions"
        ". description description description description description . .";
    gap: .65rem;
    align-items: start;
    padding: .84rem;
    border: 1px solid #e4edf6;
    border-radius: var(--app-radius-sm);
    background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

.app-invoice-line__position {
    grid-area: position;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: var(--app-radius-sm);
    border: 1px solid #dce8f3;
    background: #f3f8fd;
    font-weight: 700;
    color: var(--app-primary-strong);
}

.app-invoice-line__name {
    grid-area: name;
}

.app-invoice-line__quantity {
    grid-area: quantity;
}

.app-invoice-line__unit {
    grid-area: unit;
}

.app-invoice-line__price {
    grid-area: price;
}

.app-invoice-line__tax {
    grid-area: tax;
}

.app-invoice-line__total {
    grid-area: total;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    padding-top: .7rem;
}

.app-invoice-line__action-group {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
    gap: .35rem;
}

.app-invoice-line__description-wrap
{
    grid-area: description;
    display: grid;
    gap: .35rem;
}

.app-invoice-line__description-label {
    display: block;
    margin: 0;
    color: var(--app-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.app-invoice-summary {
    position: sticky;
    top: 98px;
}

.app-summary-list {
    margin: 0;
    display: grid;
    gap: .8rem;
}

.app-summary-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid #e8eef5;
}

.app-summary-list dt {
    color: var(--app-muted);
}

.app-summary-list dd {
    margin: 0;
    font-weight: 700;
}

.app-summary-list__total {
    padding-top: .25rem;
}

.app-summary-list__total dt,
.app-summary-list__total dd {
    font-size: 1.02rem;
    color: var(--app-text);
}

.app-summary-tax-breakdown {
    margin-top: 1rem;
    display: grid;
    gap: .55rem;
}

.app-summary-tax-breakdown > div {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: .75rem;
    align-items: baseline;
    padding: .72rem .8rem;
    border-radius: var(--app-radius-sm);
    border: 1px solid #e4edf6;
    background: #f8fbfe;
}

.app-summary-tax-breakdown small {
    color: var(--app-muted);
}

.app-detail-item,
.app-detail-inline,
.app-detail-block {
    display: grid;
    gap: .2rem;
}

.app-detail-item span,
.app-detail-inline span,
.app-detail-block span {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--app-muted);
}

.app-detail-item strong,
.app-detail-inline strong {
    font-size: .98rem;
}

.app-detail-inline {
    grid-template-columns: auto 1fr;
    gap: .5rem 1rem;
    align-items: center;
}

.app-detail-block p {
    margin: 0;
    color: var(--app-text-soft);
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .app-invoice-lines__header {
        display: none;
    }

    .app-invoice-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "position total"
            "name name"
            "quantity unit"
            "price tax"
            "description description"
            "actions actions";
    }

    .app-invoice-line__total {
        text-align: right;
        padding-top: .15rem;
    }
}

@media (max-width: 900px) {
    .app-invoice-summary {
        position: static;
    }

    .app-form-actions--split {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .app-form-actions--split > * {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .app-invoice-line {
        grid-template-columns: 1fr;
        grid-template-areas:
            "position"
            "name"
            "quantity"
            "unit"
            "price"
            "tax"
            "total"
            "description"
            "actions";
    }

    .app-invoice-line__total {
        text-align: left;
        padding-top: 0;
    }

    .app-invoice-line__action-group {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .app-upload-box__surface {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .app-upload-box__meta {
        justify-self: start;
        text-align: left;
        max-width: none;
        white-space: normal;
    }
}


.app-upload-box {
    padding: 1rem 1.05rem;
    border: 1px dashed rgba(111, 149, 192, .55);
    border-radius: var(--app-radius);
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(238,245,252,.92) 100%);
}

.app-upload-box__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-upload-box__surface {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.15rem;
    border: 1px dashed #b7cae0;
    border-radius: var(--app-radius-sm);
    background: rgba(255, 255, 255, .78);
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.app-upload-box__surface:hover,
.app-upload-box__surface.is-dragover {
    border-color: #7ea7d2;
    background: #f5faff;
    box-shadow: 0 12px 24px rgba(43, 77, 112, .08);
}

.app-upload-box__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--app-radius-sm);
    background: #edf4fb;
    color: var(--app-primary-strong);
    font-size: 1.05rem;
}

.app-upload-box__copy {
    min-width: 0;
    display: grid;
    gap: .2rem;
}

.app-upload-box__copy strong {
    color: var(--app-text);
}

.app-upload-box__hint,
.app-upload-box__meta {
    color: var(--app-muted);
    font-size: .88rem;
}

.app-upload-box__meta {
    justify-self: end;
    text-align: right;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-invoice-line__description
{
    min-height: 88px;
    resize: vertical;
    line-height: 1.45;
}

.app-panel--fullwidth {
    width: 100%;
}

.app-panel--fullheight {
    height: 100%;
}

.app-code-block {
    margin: 0;
    padding: 1rem 1.1rem;
    background: #f5f9fd;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    color: var(--app-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .84rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.app-note-list {
    display: grid;
    gap: .7rem;
}

.app-note-list__item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .8rem .9rem;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    color: var(--app-text-soft);
}

.app-note-list__item i {
    color: var(--app-primary-strong);
    margin-top: .1rem;
}

.app-diagnostic-table th {
    white-space: nowrap;
}

.app-diagnostic-table__label {
    font-weight: 700;
    color: var(--app-text);
}

.app-diagnostic-table__description {
    min-width: 260px;
    color: var(--app-text-soft);
}

.app-diagnostic-value {
    min-width: 220px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .82rem;
    color: var(--app-text);
}


.app-page-submeta
{
    color: var(--app-muted);
    font-size: .84rem;
}

.app-checklist--spacious li {
    align-items: flex-start;
    line-height: 1.5;
}

.app-checklist--spacious li i {
    margin-top: .15rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════════════════════ */
.uk-pagination > * > *
{
    color: var(--app-text-soft) !important;
	background-color: var(--app-surface-soft);
	border: 1px solid var(--app-border-strong);
    border-radius: 5px;
	padding: 5px 10px;
	font-size: 13px;
}
.uk-pagination > .uk-active > *
{
	background-color: var(--app-border);
	color: var(--app-text-soft) !important;
	border-color: var(--app-border-stronger);
}
.uk-pagination > .uk-disabled > *
{
	background-color: var(--app-surface-muted);
	color: #c5c5c5 !important;
}
.uk-pagination > * > *:hover
{
	background: var(--app-border);
	color: var(--app-text) !important;
}

.uk-pagination > * > * > i
{
	padding: 0.21rem 0;
}

.uk-pagination > li
{
	margin: 0 2px;
}

.uk-pagination > li:not(:first-of-type):not(:last-of-type) > *
{
	padding: 5px 10px;
}