:root {
    --dt-primary: #0f2b46;
    --dt-primary-soft: #173d61;
    --dt-accent: #24a8e0;
    --dt-accent-soft: #e8f7fd;

    --dt-bg: #f4f7fb;
    --dt-surface: #ffffff;
    --dt-border: #e3e9f0;

    --dt-text: #17212b;
    --dt-muted: #73808c;

    --dt-success: #20a66a;
    --dt-warning: #e49b20;
    --dt-danger: #dc4c64;

    --dt-radius-lg: 22px;
    --dt-radius-md: 15px;
    --dt-radius-sm: 10px;

    --dt-shadow:
        0 14px 40px rgba(15, 43, 70, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--dt-bg);
    color: var(--dt-text);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* APP LAYOUT */

.dt-app {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.dt-main {
    min-width: 0;
}

/* SIDEBAR */

.dt-sidebar {
    position: sticky;
    top: 0;

    height: 100vh;

    display: flex;
    flex-direction: column;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 24px 18px;

    background:
        radial-gradient(
            circle at top left,
            rgba(36, 168, 224, 0.22),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #102f4c 0%,
            #0b2136 100%
        );

    color: #ffffff;
}

.dt-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 4px 10px 24px;
}

.dt-brand__mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--dt-accent),
            #5ecdf4
        );

    color: #ffffff;
    font-weight: 800;

    box-shadow:
        0 10px 24px rgba(36, 168, 224, 0.28);
}

.dt-brand__name {
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.4px;
}

.dt-brand__sub {
    margin-top: 2px;

    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.dt-nav-section {
    margin-top: 15px;
}

.dt-nav-label {
    padding: 0 12px;
    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.4);
}

.dt-nav {
    display: grid;
    gap: 5px;
}

.dt-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 44px;
    padding: 0 13px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 550;

    color: rgba(255, 255, 255, 0.72);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.dt-nav__item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.dt-nav__item--active {
    background:
        linear-gradient(
            135deg,
            rgba(36, 168, 224, 0.23),
            rgba(36, 168, 224, 0.1)
        );

    color: #ffffff;

    box-shadow:
        inset 3px 0 0 var(--dt-accent);
}

.dt-nav__icon {
    width: 22px;
    text-align: center;
    font-size: 16px;
}

.dt-sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
}

.dt-user-card {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 12px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.05);
}

.dt-user-avatar {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--dt-accent);
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}

.dt-user-name {
    font-size: 13px;
    font-weight: 700;
}

.dt-user-role {
    margin-top: 2px;

    font-size: 11px;
    color: rgba(255, 255, 255, 0.48);
}

/* TOPBAR */

.dt-topbar {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 0 34px;

    border-bottom: 1px solid var(--dt-border);

    background:
        rgba(255, 255, 255, 0.86);

    backdrop-filter: blur(18px);
}

.dt-search {
    position: relative;
    width: min(440px, 100%);
}

.dt-search input {
    width: 100%;
    height: 43px;

    padding: 0 16px 0 42px;

    border: 1px solid var(--dt-border);
    border-radius: 13px;

    background: #f8fafc;
    color: var(--dt-text);

    outline: none;
}

.dt-search input:focus {
    border-color: var(--dt-accent);
    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(36, 168, 224, 0.1);
}

.dt-search__icon {
    position: absolute;
    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--dt-muted);
}

.dt-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dt-icon-button {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid var(--dt-border);
    border-radius: 12px;

    background: #ffffff;

    cursor: pointer;
}

.dt-icon-button:hover {
    border-color: var(--dt-accent);
}

.dt-content {
    width: min(1480px, 100%);
    margin: 0 auto;

    padding: 34px;
}

.dt-mobile-brand {
    display: none;
}

/* COMMON ELEMENTS */

.dt-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 28px;
}

.dt-eyebrow {
    margin-bottom: 7px;

    color: var(--dt-accent);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dt-page-title {
    margin: 0;

    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.08;
    letter-spacing: -1.3px;
}

.dt-page-description {
    max-width: 650px;
    margin: 9px 0 0;

    color: var(--dt-muted);

    font-size: 14px;
    line-height: 1.65;
}

.dt-primary-button {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 18px;

    border: 0;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--dt-primary-soft),
            var(--dt-primary)
        );

    color: #ffffff;

    font-weight: 700;
    cursor: pointer;

    box-shadow:
        0 10px 24px rgba(15, 43, 70, 0.18);
}

.dt-primary-button:hover {
    transform: translateY(-2px);
}

.dt-panel {
    border: 1px solid var(--dt-border);
    border-radius: var(--dt-radius-lg);

    background: var(--dt-surface);
    box-shadow: var(--dt-shadow);
}

.dt-alert {
    margin-bottom: 22px;
    padding: 15px 18px;

    border-radius: 13px;

    font-size: 13px;
    font-weight: 700;
}

.dt-alert--success {
    border: 1px solid #bde8d2;

    background: #edf9f3;
    color: #15784c;
}

/* MOBILE */

@media (max-width: 820px) {
    .dt-app {
        display: block;
    }

    .dt-sidebar {
        display: none;
    }

    .dt-topbar {
        padding: 0 18px;
    }

    .dt-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;

        font-size: 14px;
        font-weight: 800;
    }

    .dt-mobile-brand span {
        width: 34px;
        height: 34px;

        display: grid;
        place-items: center;

        border-radius: 10px;

        background: var(--dt-accent);
        color: #ffffff;
    }

    .dt-search {
        display: none;
    }

    .dt-content {
        padding: 24px 18px 40px;
    }

    .dt-page-heading {
        flex-direction: column;
    }

    .dt-primary-button {
        width: 100%;
    }
}
/* DASHBOARD */

.dt-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.dt-stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--dt-border);
    border-radius: var(--dt-radius-lg);
    background: var(--dt-surface);
    box-shadow: var(--dt-shadow);
}

.dt-stat-card::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -38px;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: var(--dt-accent-soft);
}

.dt-stat-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dt-stat-label {
    color: var(--dt-muted);
    font-size: 13px;
    font-weight: 650;
}

.dt-stat-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--dt-accent-soft);
    color: var(--dt-accent);
    font-size: 18px;
}

.dt-stat-value {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1.3px;
}

.dt-stat-meta {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    color: var(--dt-muted);
    font-size: 12px;
}

.dt-stat-meta strong {
    color: var(--dt-success);
}

.dt-dashboard-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(320px, 0.75fr);
    gap: 22px;
}

.dt-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 21px 22px;
    border-bottom: 1px solid var(--dt-border);
}

.dt-panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.dt-panel-subtitle {
    margin-top: 4px;
    color: var(--dt-muted);
    font-size: 12px;
}

.dt-link-button {
    border: 0;
    background: transparent;
    color: var(--dt-accent);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.dt-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 22px;
}

.dt-quick-action {
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid var(--dt-border);
    border-radius: 15px;
    background: #f9fbfd;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.dt-quick-action:hover {
    transform: translateY(-2px);
    border-color: var(--dt-accent);
    background: #ffffff;
}

.dt-quick-action__icon {
    color: var(--dt-accent);
    font-size: 19px;
}

.dt-quick-action__label {
    font-size: 12px;
    font-weight: 800;
}

.dt-client-list {
    padding: 6px 22px 18px;
}

.dt-client-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 72px;
    border-bottom: 1px solid #edf1f5;
}

.dt-client-row:last-child {
    border-bottom: 0;
}

.dt-client-initial {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--dt-accent-soft);
    color: var(--dt-accent);
    font-size: 12px;
    font-weight: 800;
}

.dt-client-name {
    font-size: 13px;
    font-weight: 800;
}

.dt-client-meta {
    margin-top: 4px;
    color: var(--dt-muted);
    font-size: 11px;
}

.dt-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf8f3;
    color: var(--dt-success);
    font-size: 10px;
    font-weight: 800;
}

.dt-status--potential {
    background: #fff7e7;
    color: var(--dt-warning);
}

.dt-status--inactive {
    background: #f1f3f5;
    color: var(--dt-muted);
}

.dt-empty-state {
    padding: 44px 22px;
    color: var(--dt-muted);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .dt-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dt-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .dt-stats {
        grid-template-columns: 1fr;
    }

    .dt-quick-actions {
        grid-template-columns: 1fr;
    }
}
/* TABLES */

.dt-table-panel {
    overflow: hidden;
}

.dt-table-wrapper {
    overflow-x: auto;
}

.dt-table {
    width: 100%;
    border-collapse: collapse;
}

.dt-table th {
    padding: 16px 20px;
    background: #f8fafc;
    color: var(--dt-muted);
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.dt-table td {
    padding: 18px 20px;
    border-top: 1px solid var(--dt-border);
    font-size: 13px;
    vertical-align: middle;
}

.dt-table-primary {
    font-weight: 800;
}

.dt-table-secondary {
    margin-top: 4px;
    color: var(--dt-muted);
    font-size: 11px;
}

.dt-project-status {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.dt-project-status--planned {
    background: #eef2f6;
    color: var(--dt-muted);
}

.dt-project-status--in_progress {
    background: var(--dt-accent-soft);
    color: var(--dt-accent);
}

.dt-project-status--on_hold {
    background: #fff7e7;
    color: var(--dt-warning);
}

.dt-project-status--completed {
    background: #edf8f3;
    color: var(--dt-success);
}

.dt-project-status--cancelled {
    background: #fff0f3;
    color: var(--dt-danger);
}

.dt-progress-small {
    width: 110px;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f6;
}

.dt-progress-small span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--dt-accent),
        #73d2f3
    );
}

.dt-progress-text {
    margin-top: 5px;
    color: var(--dt-muted);
    font-size: 10px;
    font-weight: 700;
}

/* FORMS */

.dt-form-panel {
    padding: 28px;
}

.dt-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dt-field--full {
    grid-column: 1 / -1;
}

.dt-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
}

.dt-field input,
.dt-field select,
.dt-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--dt-border);
    border-radius: 12px;
    background: #f9fbfd;
    color: var(--dt-text);
    outline: none;
}

.dt-field textarea {
    min-height: 125px;
    resize: vertical;
}

.dt-field input:focus,
.dt-field select:focus,
.dt-field textarea:focus {
    border-color: var(--dt-accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(36, 168, 224, 0.1);
}

.dt-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.dt-secondary-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 13px;
    background: #eef2f6;
    font-weight: 700;
}

.dt-form-errors {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #f1bdc7;
    border-radius: 13px;
    background: #fff1f4;
    color: var(--dt-danger);
}

@media (max-width: 700px) {
    .dt-form-grid {
        grid-template-columns: 1fr;
    }

    .dt-field--full {
        grid-column: auto;
    }

    .dt-form-actions {
        flex-direction: column-reverse;
    }

    .dt-secondary-button,
    .dt-form-actions .dt-primary-button {
        width: 100%;
    }
}
/* MOBILE NAVIGATION */

.dt-mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--dt-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--dt-primary);
    font-size: 20px;
    cursor: pointer;
}

.dt-mobile-overlay {
    display: none;
}

@media (max-width: 820px) {
    body {
        overflow-x: hidden;
    }

    .dt-topbar {
        position: sticky;
        top: 0;
        z-index: 40;
    }

    .dt-mobile-menu-button {
        display: grid;
        order: -1;
    }

    .dt-mobile-brand {
        flex: 1;
    }

    .dt-sidebar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 60;

        width: min(290px, 86vw);
        height: 100vh;

        transform: translateX(-105%);
        transition: transform 0.25s ease;

        box-shadow:
            18px 0 45px rgba(5, 24, 40, 0.28);
    }

    .dt-sidebar--open {
        transform: translateX(0);
    }

    .dt-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 50;

        display: block;

        background: rgba(8, 22, 35, 0.5);
        opacity: 0;
        visibility: hidden;

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
    }

    .dt-mobile-overlay--visible {
        opacity: 1;
        visibility: visible;
    }

    .dt-topbar-actions {
        margin-left: auto;
    }

    .dt-table {
        min-width: 760px;
    }

    .dt-form-panel {
        padding: 20px;
    }
}

@media (max-width: 560px) {
    .dt-topbar {
        min-height: 68px;
        gap: 10px;
    }

    .dt-topbar-actions .dt-icon-button:first-child {
        display: none;
    }

    .dt-page-title {
        font-size: 29px;
    }

    .dt-content {
        padding: 20px 14px 32px;
    }

    .dt-panel {
        border-radius: 17px;
    }

    .dt-stat-card {
        border-radius: 17px;
    }

    .dt-form-panel {
        padding: 17px;
    }

    .dt-page-heading {
        margin-bottom: 22px;
    }
}
/* SETTINGS */

.dt-settings-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
    gap: 22px;
}

.dt-settings-list {
    padding: 8px 22px 18px;
}

.dt-settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    border-bottom: 1px solid var(--dt-border);
}

.dt-settings-item:last-child {
    border-bottom: 0;
}

.dt-settings-item__name {
    font-size: 13px;
    font-weight: 800;
}

.dt-settings-item__key {
    margin-top: 4px;
    color: var(--dt-muted);
    font-size: 11px;
}

.dt-toggle-button {
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.dt-toggle-button--active {
    background: #edf8f3;
    color: var(--dt-success);
}

.dt-toggle-button--inactive {
    background: #f1f3f5;
    color: var(--dt-muted);
}

@media (max-width: 900px) {
    .dt-settings-grid {
        grid-template-columns: 1fr;
    }
}
/* CLIENT ACTIONS */

.dt-heading-actions,
.dt-row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dt-row-actions form {
    margin: 0;
}

.dt-link-button--muted {
    color: var(--dt-muted);
}

@media (max-width: 820px) {
    .dt-heading-actions {
        width: 100%;
        flex-direction: column-reverse;
    }

    .dt-heading-actions a {
        width: 100%;
    }
}
/* TASKS */

.dt-task-status,
.dt-task-priority {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.dt-task-status--todo {
    background: #eef2f6;
    color: var(--dt-muted);
}

.dt-task-status--in_progress {
    background: var(--dt-accent-soft);
    color: var(--dt-accent);
}

.dt-task-status--waiting {
    background: #fff7e7;
    color: var(--dt-warning);
}

.dt-task-status--completed {
    background: #edf8f3;
    color: var(--dt-success);
}

.dt-task-status--cancelled {
    background: #fff0f3;
    color: var(--dt-danger);
}

.dt-task-priority--low {
    background: #f1f3f5;
    color: var(--dt-muted);
}

.dt-task-priority--normal {
    background: var(--dt-accent-soft);
    color: var(--dt-accent);
}

.dt-task-priority--high {
    background: #fff7e7;
    color: var(--dt-warning);
}

.dt-task-priority--urgent {
    background: #fff0f3;
    color: var(--dt-danger);
}

.dt-task-complete-button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--dt-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--dt-primary);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.dt-task-complete-button:hover {
    border-color: var(--dt-success);
    color: var(--dt-success);
}

.dt-task-complete-button--done {
    background: #edf8f3;
    border-color: #bde8d2;
    color: var(--dt-success);
}

.dt-task-row--completed .dt-table-primary {
    color: var(--dt-muted);
    text-decoration: line-through;
}

/* TASK FILTERS */

.dt-task-filter-panel {
    margin-bottom: 22px;
    padding: 22px;
}

.dt-task-filters {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.4fr)
        repeat(3, minmax(150px, 1fr));
    gap: 16px;
    align-items: end;
}

.dt-task-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    .dt-task-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .dt-task-filters {
        grid-template-columns: 1fr;
    }

    .dt-task-filter-actions {
        flex-direction: column;
    }

    .dt-task-filter-actions button,
    .dt-task-filter-actions a {
        width: 100%;
    }
}
/* CRM ACTIVITIES */

.dt-activity-panel {
    padding: 24px;
}

.dt-activity-timeline {
    display: grid;
    gap: 18px;
}

.dt-activity-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--dt-border);
    border-radius: 18px;
    background: #ffffff;
}

.dt-activity-item--completed {
    background: #f8fafc;
    opacity: 0.78;
}

.dt-activity-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--dt-accent-soft);
    color: var(--dt-accent);
    font-size: 18px;
    font-weight: 900;
}

.dt-activity-content {
    min-width: 0;
}

.dt-activity-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.dt-activity-type {
    color: var(--dt-accent);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.dt-activity-title {
    margin: 4px 0 0;
    font-size: 16px;
}

.dt-activity-date {
    color: var(--dt-muted);
    font-size: 11px;
    white-space: nowrap;
}

.dt-activity-description {
    margin-top: 13px;
    color: var(--dt-text);
    font-size: 13px;
    line-height: 1.65;
}

.dt-activity-next-contact {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff7e7;
    color: #9a6400;
    font-size: 12px;
}

.dt-activity-actions {
    margin-top: 16px;
}

.dt-activity-actions form {
    margin: 0;
}

@media (max-width: 680px) {
    .dt-activity-panel {
        padding: 16px;
    }

    .dt-activity-item {
        grid-template-columns: 1fr;
    }

    .dt-activity-topline {
        flex-direction: column;
        gap: 8px;
    }

    .dt-activity-date {
        white-space: normal;
    }
}

/* CLIENT PROFILE */

.dt-client-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.dt-client-card,
.dt-client-section {
    padding: 22px;
}

.dt-client-section {
    margin-bottom: 22px;
}

.dt-client-detail {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--dt-border);
    font-size: 12px;
}

.dt-client-detail:last-child {
    border-bottom: 0;
}

.dt-client-detail span {
    color: var(--dt-muted);
}

.dt-client-detail strong {
    text-align: right;
}

.dt-client-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--dt-border);
    font-size: 12px;
}

.dt-client-list-item:last-child {
    border-bottom: 0;
}

@media (max-width: 800px) {
    .dt-client-overview-grid {
        grid-template-columns: 1fr;
    }

    .dt-client-detail,
    .dt-client-list-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .dt-client-detail strong {
        text-align: left;
    }
}

/* PROJECT PROFILE */

.dt-project-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.dt-project-card,
.dt-project-section {
    padding: 22px;
}

.dt-project-section {
    margin-bottom: 22px;
}

.dt-project-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--dt-border);
    font-size: 12px;
}

.dt-project-detail:last-of-type {
    border-bottom: 0;
}

.dt-project-detail span {
    color: var(--dt-muted);
}

.dt-project-detail strong {
    text-align: right;
}

.dt-project-detail a {
    color: var(--dt-accent);
}

.dt-project-progress-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--dt-border);
}

.dt-project-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 12px;
}

.dt-project-progress-header span {
    color: var(--dt-muted);
}

.dt-progress-small--large {
    height: 10px;
}

.dt-project-text-block + .dt-project-text-block {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--dt-border);
}

.dt-project-text-block h3 {
    margin: 0 0 8px;
    font-size: 13px;
}

.dt-project-text-block p {
    margin: 0;
    color: var(--dt-text);
    font-size: 13px;
    line-height: 1.7;
}

.dt-project-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--dt-border);
}

.dt-project-task-item:last-child {
    border-bottom: 0;
}

.dt-project-task-item--completed {
    opacity: 0.7;
}

.dt-project-task-item--completed .dt-project-task-title {
    text-decoration: line-through;
}

.dt-project-task-main {
    min-width: 0;
    flex: 1;
}

.dt-project-task-title {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 800;
}

.dt-project-task-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.dt-project-task-date {
    color: var(--dt-muted);
    font-size: 11px;
    white-space: nowrap;
}

.dt-project-placeholder {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px dashed var(--dt-border);
    border-radius: 16px;
    background: #f8fafc;
}

.dt-project-placeholder-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--dt-accent-soft);
    color: var(--dt-accent);
    font-size: 20px;
    font-weight: 900;
}

.dt-project-placeholder p {
    margin: 5px 0 0;
    color: var(--dt-muted);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .dt-project-overview-grid {
        grid-template-columns: 1fr;
    }

    .dt-project-task-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .dt-project-task-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .dt-project-card,
    .dt-project-section {
        padding: 16px;
    }

    .dt-project-detail {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .dt-project-detail strong {
        text-align: left;
    }
}

/* TASK WORKSPACE + TIMER */

.dt-task-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.dt-task-card,
.dt-task-section {
    padding: 22px;
}

.dt-task-section {
    margin-bottom: 22px;
}

.dt-task-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--dt-border);
    font-size: 12px;
}

.dt-task-detail:last-child {
    border-bottom: 0;
}

.dt-task-detail span {
    color: var(--dt-muted);
}

.dt-task-detail strong {
    text-align: right;
}

.dt-task-text-block + .dt-task-text-block {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--dt-border);
}

.dt-task-text-block h3 {
    margin: 0 0 8px;
    font-size: 13px;
}

.dt-task-text-block p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}

.dt-timer-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
    border: 1px solid var(--dt-border);
    border-radius: 16px;
    background: #f8fafc;
}

.dt-timer-box--running {
    border-color: #bde8d2;
    background: #edf8f3;
}

.dt-timer-label {
    font-size: 14px;
    font-weight: 800;
}

.dt-timer-started {
    margin-top: 5px;
    color: var(--dt-muted);
    font-size: 12px;
}

.dt-timer-stop-form {
    display: flex;
    align-items: end;
    gap: 12px;
}

.dt-danger-button {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: var(--dt-danger);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.dt-time-entry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--dt-border);
}

.dt-time-entry-row:last-child {
    border-bottom: 0;
}

.dt-time-entry-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
}

@media (max-width: 850px) {
    .dt-task-overview-grid {
        grid-template-columns: 1fr;
    }

    .dt-timer-box,
    .dt-time-entry-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .dt-timer-stop-form {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .dt-timer-stop-form .dt-field,
    .dt-timer-stop-form button {
        width: 100%;
    }
}

/* DASHBOARD LIST CARDS */

.dt-dashboard-list-card {
    overflow: hidden;
    padding: 0;
}

.dt-dashboard-list-card .dt-panel-header {
    padding: 24px 26px;
    margin: 0;
    border-bottom: 1px solid var(--dt-border);
}

.dt-dashboard-list-card .dt-link-button {
    white-space: nowrap;
}

.dt-dashboard-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 82px;
    padding: 18px 26px;
    border-bottom: 1px solid var(--dt-border);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.dt-dashboard-list-row:last-child {
    border-bottom: 0;
}

.dt-dashboard-list-row:hover {
    background: #f8fbfd;
}

.dt-dashboard-list-row > div:first-child {
    min-width: 0;
    flex: 1;
}

.dt-dashboard-list-row strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.35;
}

.dt-dashboard-list-row strong a {
    color: var(--dt-text);
    text-decoration: none;
}

.dt-dashboard-list-row strong a:hover {
    color: var(--dt-accent);
}

.dt-dashboard-list-row .dt-table-secondary {
    font-size: 12px;
    line-height: 1.5;
}

.dt-dashboard-list-row .dt-row-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.dt-dashboard-list-row > div:last-child {
    flex: 0 0 auto;
    text-align: right;
}

.dt-dashboard-client-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
}

.dt-dashboard-client-row .dt-client-initial {
    width: 48px;
    height: 48px;
    margin: 0;
}

.dt-dashboard-client-row .dt-client-name {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 800;
}

.dt-dashboard-client-row .dt-client-name a {
    color: var(--dt-text);
    text-decoration: none;
}

.dt-dashboard-client-row .dt-client-name a:hover {
    color: var(--dt-accent);
}

.dt-dashboard-client-row .dt-status {
    justify-self: end;
}

.dt-dashboard-list-card .dt-empty-state {
    min-height: 150px;
    display: grid;
    place-items: center;
    padding: 28px;
}

@media (max-width: 900px) {
    .dt-dashboard-list-row {
        align-items: flex-start;
    }

    .dt-dashboard-list-row .dt-row-actions {
        align-items: flex-end;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .dt-dashboard-list-card .dt-panel-header {
        padding: 20px;
    }

    .dt-dashboard-list-row {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        padding: 16px 20px;
    }

    .dt-dashboard-list-row > div:last-child {
        width: 100%;
        text-align: left;
    }

    .dt-dashboard-list-row .dt-row-actions {
        width: 100%;
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }

    .dt-dashboard-client-row {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .dt-dashboard-client-row .dt-status {
        grid-column: 2;
        justify-self: start;
    }
}

/* CLIENT WORKSPACE 2.0 */

.dt-client-workspace-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.dt-client-workspace-card,
.dt-client-health-card,
.dt-client-workspace-section {
    padding: 22px;
}

.dt-client-workspace-section {
    margin-bottom: 22px;
}

.dt-client-workspace-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--dt-border);
    font-size: 12px;
}

.dt-client-workspace-detail:last-child {
    border-bottom: 0;
}

.dt-client-workspace-detail span {
    color: var(--dt-muted);
}

.dt-client-workspace-detail strong {
    text-align: right;
}

.dt-client-health-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dt-client-health-header h2 {
    margin: 5px 0 0;
    font-size: 17px;
}

.dt-client-health-score {
    min-width: 72px;
    padding: 12px 14px;
    border-radius: 16px;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
}

.dt-client-health-score--good {
    background: #eaf8f1;
    color: #16865b;
}

.dt-client-health-score--warning {
    background: #fff6df;
    color: #a56b00;
}

.dt-client-health-score--danger {
    background: #fff0f0;
    color: #c53d3d;
}

.dt-client-health-progress {
    height: 10px;
    margin: 22px 0 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf3;
}

.dt-client-health-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--dt-accent);
}

.dt-client-health-status strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.dt-client-health-status p {
    margin: 0;
    color: var(--dt-muted);
    font-size: 12px;
    line-height: 1.6;
}

.dt-client-health-checks {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.dt-client-health-checks div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--dt-text);
    font-size: 12px;
}

.dt-client-health-checks span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--dt-accent-soft);
    color: var(--dt-accent);
    font-weight: 900;
}

.dt-stat-value--small {
    font-size: 22px;
}

.dt-client-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dt-client-project-card {
    padding: 20px;
    border: 1px solid var(--dt-border);
    border-radius: 18px;
    background: #ffffff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.dt-client-project-card:hover {
    transform: translateY(-2px);
    border-color: #cbd9e8;
    box-shadow: 0 14px 30px rgba(16, 41, 67, 0.08);
}

.dt-client-project-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dt-client-project-type {
    margin-bottom: 5px;
    color: var(--dt-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dt-client-project-card h3 {
    margin: 0;
    font-size: 15px;
}

.dt-client-project-card h3 a {
    color: var(--dt-text);
    text-decoration: none;
}

.dt-client-project-card h3 a:hover {
    color: var(--dt-accent);
}

.dt-client-project-progress {
    margin: 20px 0;
}

.dt-client-project-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--dt-muted);
    font-size: 11px;
}

.dt-client-project-progress strong {
    color: var(--dt-text);
}

.dt-client-project-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.dt-client-project-metrics div {
    padding: 11px;
    border-radius: 12px;
    background: #f7f9fc;
}

.dt-client-project-metrics span {
    display: block;
    margin-bottom: 4px;
    color: var(--dt-muted);
    font-size: 10px;
}

.dt-client-project-metrics strong {
    font-size: 11px;
}

.dt-client-workspace-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.dt-client-notes {
    color: var(--dt-text);
    font-size: 13px;
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .dt-client-workspace-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dt-client-health-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 850px) {
    .dt-client-project-grid,
    .dt-client-workspace-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .dt-client-workspace-grid {
        grid-template-columns: 1fr;
    }

    .dt-client-health-card {
        grid-column: auto;
    }

    .dt-client-workspace-card,
    .dt-client-health-card,
    .dt-client-workspace-section {
        padding: 16px;
    }

    .dt-client-workspace-detail {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .dt-client-workspace-detail strong {
        text-align: left;
    }

    .dt-client-project-top {
        flex-direction: column;
    }

    .dt-client-project-metrics {
        grid-template-columns: 1fr;
    }
}
/* FILE CENTER */

.dt-document-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dt-document-card {
    display: flex;
    flex-direction: column;
    min-height: 290px;
    overflow: hidden;
    border: 1px solid var(--dt-border);
    border-radius: 18px;
    background: #ffffff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.dt-document-card:hover {
    transform: translateY(-2px);
    border-color: #cbd9e8;
    box-shadow: 0 14px 30px rgba(16, 41, 67, 0.08);
}

.dt-document-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 0;
}

.dt-document-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--dt-accent-soft);
    color: var(--dt-accent);
    font-size: 12px;
    font-weight: 900;
}

.dt-document-favorite {
    color: #d9a014;
    font-size: 18px;
}

.dt-document-card__body {
    flex: 1;
    padding: 18px;
}

.dt-document-category {
    margin-bottom: 7px;
    color: var(--dt-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dt-document-title {
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.4;
}

.dt-document-file-name {
    overflow: hidden;
    color: var(--dt-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.dt-document-meta span {
    padding: 5px 8px;
    border-radius: 8px;
    background: #f4f7fa;
    color: var(--dt-muted);
    font-size: 10px;
}

.dt-document-notes {
    margin: 15px 0 0;
    color: var(--dt-muted);
    font-size: 11px;
    line-height: 1.6;
}

.dt-document-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid var(--dt-border);
    background: #fafbfd;
}

.dt-document-delete-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dt-danger);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.dt-file-upload {
    padding: 20px;
    border: 1px dashed #b9c8d8;
    border-radius: 16px;
    background: #f8fafc;
}

.dt-file-upload input {
    width: 100%;
}

.dt-file-upload__hint {
    margin-top: 10px;
    color: var(--dt-muted);
    font-size: 11px;
    line-height: 1.5;
}

.dt-checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 12px;
    cursor: pointer;
}

.dt-checkbox-field input {
    width: 17px;
    height: 17px;
}

@media (max-width: 1100px) {
    .dt-document-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .dt-document-grid {
        grid-template-columns: 1fr;
    }
}

/* DOCUMENT TRASH */

.dt-document-card--trash {
    opacity: 0.86;
}

.dt-document-card--trash:hover {
    opacity: 1;
}

.dt-document-trash-date {
    color: var(--dt-muted);
    font-size: 10px;
}

/* MIGRATION CENTER */

.dt-migration-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 22px;
    margin-bottom: 22px;
}

.dt-migration-upload-card,
.dt-migration-info-card,
.dt-migration-analysis,
.dt-migration-next-step {
    padding: 24px;
}

.dt-migration-upload-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dt-migration-upload-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    background: var(--dt-accent-soft);
    color: var(--dt-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.dt-migration-description {
    max-width: 650px;
    margin: 10px 0 0;
    color: var(--dt-muted);
    font-size: 13px;
    line-height: 1.7;
}

.dt-migration-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.dt-migration-form .dt-field {
    flex: 1;
    margin: 0;
}

.dt-migration-info-card {
    display: grid;
    align-content: start;
    gap: 4px;
}

.dt-migration-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--dt-border);
}

.dt-migration-step:last-child {
    border-bottom: 0;
}

.dt-migration-step > span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--dt-accent-soft);
    color: var(--dt-accent);
    font-size: 11px;
    font-weight: 900;
}

.dt-migration-step strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.dt-migration-step p {
    margin: 0;
    color: var(--dt-muted);
    font-size: 11px;
    line-height: 1.5;
}

.dt-migration-analysis {
    margin-bottom: 22px;
}

.dt-migration-ready-badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: #eaf8f1;
    color: #16865b;
    font-size: 10px;
    font-weight: 800;
}

.dt-migration-sheet-list {
    display: grid;
    gap: 14px;
}

.dt-migration-sheet {
    padding: 18px;
    border: 1px solid var(--dt-border);
    border-left-width: 4px;
    border-radius: 15px;
    background: #ffffff;
}

.dt-migration-sheet--importable {
    border-left-color: #2ca36c;
}

.dt-migration-sheet--informational {
    border-left-color: #6d8fb0;
}

.dt-migration-sheet--unknown {
    border-left-color: #d3a12c;
}

.dt-migration-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dt-migration-sheet__type {
    margin-bottom: 5px;
    color: var(--dt-muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dt-migration-sheet h3 {
    margin: 0;
    font-size: 14px;
}

.dt-migration-sheet__count {
    flex: 0 0 auto;
    text-align: right;
    font-size: 18px;
    font-weight: 900;
}

.dt-migration-sheet__count small {
    display: block;
    margin-top: 2px;
    color: var(--dt-muted);
    font-size: 9px;
    font-weight: 700;
}

.dt-migration-sheet__headers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.dt-migration-sheet__headers span {
    padding: 5px 8px;
    border-radius: 8px;
    background: #f3f6f9;
    color: var(--dt-muted);
    font-size: 9px;
    font-weight: 700;
}

.dt-migration-next-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dt-migration-next-step p {
    max-width: 700px;
    margin: 8px 0 0;
    color: var(--dt-muted);
    font-size: 12px;
    line-height: 1.7;
}

.dt-field-error {
    margin-top: 7px;
    color: var(--dt-danger);
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 950px) {
    .dt-migration-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .dt-migration-form,
    .dt-migration-next-step {
        align-items: stretch;
        flex-direction: column;
    }

    .dt-migration-form .dt-primary-button,
    .dt-migration-next-step .dt-primary-button {
        width: 100%;
    }

    .dt-migration-sheet__header {
        flex-direction: column;
    }

    .dt-migration-sheet__count {
        text-align: left;
    }
}

/* EXCEL PREVIEW */

.dt-excel-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 22px;
    margin-bottom: 22px;
}

.dt-excel-sheet-form {
    min-width: 260px;
}

.dt-excel-sheet-form .dt-field {
    margin: 0;
}

.dt-excel-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dt-excel-summary div {
    min-width: 120px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #f5f8fb;
}

.dt-excel-summary span {
    display: block;
    margin-bottom: 4px;
    color: var(--dt-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dt-excel-summary strong {
    font-size: 12px;
}

.dt-excel-panel {
    overflow: hidden;
    padding: 0;
    margin-bottom: 22px;
}

.dt-excel-table-wrapper {
    width: 100%;
    max-height: 680px;
    overflow: auto;
}

.dt-excel-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 11px;
}

.dt-excel-table th,
.dt-excel-table td {
    padding: 11px 13px;
    border-right: 1px solid var(--dt-border);
    border-bottom: 1px solid var(--dt-border);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.dt-excel-table th:last-child,
.dt-excel-table td:last-child {
    border-right: 0;
}

.dt-excel-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #eef3f8;
    color: var(--dt-text);
    font-size: 10px;
    font-weight: 900;
}

.dt-excel-table tbody tr:hover td {
    background: #f8fbfd;
}

.dt-excel-row-number {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 48px;
    min-width: 48px;
    background: #f4f7fa;
    color: var(--dt-muted);
    text-align: center !important;
    font-weight: 800;
}

.dt-excel-table thead .dt-excel-row-number {
    z-index: 4;
    background: #e7edf4;
}

.dt-excel-notice {
    padding: 18px 22px;
    color: var(--dt-muted);
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 750px) {
    .dt-excel-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .dt-excel-sheet-form {
        min-width: 0;
        width: 100%;
    }

    .dt-excel-summary {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* CLIENT IMPORT PREVIEW */

.dt-migration-import-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    margin-bottom: 22px;
}

.dt-migration-import-summary p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--dt-muted);
    font-size: 12px;
    line-height: 1.7;
}

.dt-migration-preview-section {
    overflow: hidden;
    padding: 0;
    margin-bottom: 22px;
}

.dt-migration-preview-section .dt-panel-header {
    padding: 22px 24px;
    margin: 0;
    border-bottom: 1px solid var(--dt-border);
}

.dt-migration-count-badge {
    min-width: 36px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eaf8f1;
    color: #16865b;
    text-align: center;
    font-size: 11px;
    font-weight: 900;
}

.dt-migration-count-badge--existing {
    background: var(--dt-accent-soft);
    color: var(--dt-accent);
}

.dt-migration-count-badge--warning {
    background: #fff6df;
    color: #a56b00;
}

.dt-migration-count-badge--danger {
    background: #fff0f0;
    color: #c53d3d;
}

@media (max-width: 750px) {
    .dt-migration-import-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .dt-migration-import-summary form,
    .dt-migration-import-summary button {
        width: 100%;
    }
}

/* REVENUES */

.dt-revenue-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.dt-revenue-status--paid {
    background: #eaf8f1;
    color: #16865b;
}

.dt-revenue-status--unpaid {
    background: #fff6df;
    color: #a56b00;
}

.dt-revenue-status--partial {
    background: #eef3ff;
    color: #4567ad;
}

.dt-revenue-status--cancelled {
    background: #fff0f0;
    color: #c53d3d;
}

.dt-danger-button {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: .2s;
}

.dt-danger-button:hover {
    background: #b91c1c;
}

.dt-danger-button {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #dc2626;
    border-radius: 10px;
    background: #fff;
    color: #dc2626;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.dt-danger-button:hover {
    background: #dc2626;
    color: #fff;
}

.dt-heading-actions form {
    display: inline-flex;
    margin: 0;
}

.dt-topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dt-topbar-user__info {
    display: grid;
    text-align: right;
    line-height: 1.2;
}

.dt-topbar-user__info strong {
    font-size: 13px;
    color: var(--dt-text);
}

.dt-topbar-user__info span {
    margin-top: 3px;
    font-size: 11px;
    color: var(--dt-muted);
}

.dt-topbar-user form {
    margin: 0;
}

@media (max-width: 820px) {
    .dt-topbar-user__info {
        display: none;
    }
}


/* Aktivne usluge klijenta */

.dt-service-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(190px, 1fr)
    );
    gap: 12px;
    margin-top: 14px;
}

.dt-service-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
}

.dt-service-checkbox input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.dt-service-checkbox span {
    font-weight: 600;
}

.dt-client-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dt-client-service-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   Mjesečni klijentski izvještaj
   ========================================================= */

.dt-report-page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 34px;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.dt-report-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e6eaf0;
}

.dt-report-brand {
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dt-report-kicker,
.dt-report-section__kicker {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.dt-report-header h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.dt-report-header p {
    margin: 14px 0 0;
    color: #64748b;
}

.dt-report-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dt-report-summary,
.dt-report-metrics-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #e6eaf0;
}

.dt-report-summary {
    margin-top: 30px;
}

.dt-report-section {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid #e6eaf0;
}

.dt-report-section__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.dt-report-section__header h2 {
    margin: 0;
    font-size: 25px;
}

.dt-report-section__header p {
    max-width: 680px;
    margin: 8px 0 0;
    color: #64748b;
}

.dt-report-metric {
    min-height: 132px;
    padding: 20px;
    background: #ffffff;
}

.dt-report-metric__label {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.dt-report-metric__value {
    margin-top: 10px;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.1;
}

.dt-report-metric__meta {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
}

.dt-report-change {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.dt-report-change--positive {
    background: #ecfdf3;
    color: #027a48;
}

.dt-report-change--negative {
    background: #fff1f2;
    color: #be123c;
}

.dt-report-change--neutral {
    background: #f1f5f9;
    color: #475569;
}

.dt-report-change--new {
    background: #eff6ff;
    color: #1d4ed8;
}

.dt-report-change--none {
    background: transparent;
    color: #94a3b8;
    padding-left: 0;
}

.dt-report-note {
    margin-top: 18px;
    padding: 18px 20px;
    border-left: 3px solid #0f172a;
    background: #f8fafc;
}

.dt-report-note p {
    margin: 8px 0 0;
    line-height: 1.7;
}

.dt-report-empty {
    padding: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    text-align: center;
}

.dt-report-activity,
.dt-report-task {
    display: grid;
    align-items: start;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #edf0f4;
}

.dt-report-activity {
    grid-template-columns: 60px 1fr auto;
}

.dt-report-task {
    grid-template-columns: 1fr auto;
}

.dt-report-activity__date {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.dt-report-activity__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.dt-report-activity__content p,
.dt-report-task p {
    margin: 7px 0 0;
    color: #64748b;
    line-height: 1.6;
}

.dt-report-activity__time {
    white-space: nowrap;
    font-weight: 800;
}

.dt-report-service {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.dt-report-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e6eaf0;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 760px) {
    .dt-report-page {
        padding: 20px;
        border-radius: 12px;
    }

    .dt-report-header {
        display: block;
    }

    .dt-report-header__actions {
        margin-top: 22px;
    }

    .dt-report-activity {
        grid-template-columns: 46px 1fr;
    }

    .dt-report-activity__time {
        grid-column: 2;
    }

    .dt-report-footer {
        display: block;
    }

    .dt-report-footer div + div {
        margin-top: 6px;
    }
}

@media print {
    body {
        background: #ffffff !important;
    }

    .dt-sidebar,
    .dt-topbar,
    .dt-mobile-overlay,
    .dt-mobile-menu-button,
    .dt-report-header__actions {
        display: none !important;
    }

    .dt-app,
    .dt-main,
    .dt-content {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .dt-report-page {
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .dt-report-section,
    .dt-report-metric,
    .dt-report-activity,
    .dt-report-task {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .dt-report-summary,
    .dt-report-metrics-grid {
        break-inside: avoid;
    }

    @page {
        size: A4;
        margin: 14mm;
    }
}


/* =========================================================
   Grafikoni mjesečnog izvještaja
   ========================================================= */

.dt-report-chart-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(420px, 1fr)
    );
    gap: 18px;
}

.dt-report-chart-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #ffffff;
}

.dt-report-chart-card__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.dt-report-chart-card__header strong {
    display: block;
    font-size: 16px;
}

.dt-report-chart-card__header span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.dt-report-chart-wrap {
    width: 100%;
    min-height: 280px;
    overflow: hidden;
}

.dt-report-chart {
    display: block;
    max-width: 100%;
}

.dt-report-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.dt-report-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dt-report-chart-legend i {
    display: inline-block;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
}

.dt-report-chart-legend span:nth-child(2) i {
    opacity: 0.65;
}

.dt-report-chart-legend span:nth-child(3) i {
    opacity: 0.4;
}

@media (max-width: 760px) {
    .dt-report-chart-grid {
        grid-template-columns: 1fr;
    }

    .dt-report-chart-card {
        padding: 14px;
    }

    .dt-report-chart-wrap {
        min-height: 250px;
        overflow-x: auto;
    }
}

@media print {
    .dt-report-chart-grid {
        display: block;
    }

    .dt-report-chart-card {
        margin-bottom: 18px;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .dt-report-chart-wrap {
        min-height: 250px;
    }
}


/* AI sažetak mjesečnog izvještaja */

.dt-report-ai-form {
    flex: 0 0 auto;
}

.dt-report-ai-summary {
    padding: 24px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #f8fafc;
}

.dt-report-ai-summary__meta {
    margin-bottom: 16px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.dt-report-ai-summary__content {
    color: #1e293b;
    font-size: 15px;
    line-height: 1.8;
    white-space: normal;
}

@media print {
    .dt-report-ai-form {
        display: none !important;
    }

    .dt-report-ai-summary {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}


/* =========================================================
   Financijski centar
   ========================================================= */

.dt-financial-summary {
    display: grid;
    grid-template-columns: repeat(
        4,
        minmax(0, 1fr)
    );
    gap: 16px;
    margin-bottom: 18px;
}

.dt-financial-kpi {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}

.dt-financial-kpi__label {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.dt-financial-kpi__value {
    margin-top: 10px;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.1;
}

.dt-financial-kpi__meta {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
}

.dt-financial-secondary {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    gap: 1px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #e2e8f0;
}

.dt-financial-secondary article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    background: #ffffff;
}

.dt-financial-secondary span {
    color: #64748b;
    font-size: 13px;
}

.dt-financial-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 0;
    border-bottom: 1px solid #edf0f4;
}

.dt-financial-list-row:last-child {
    border-bottom: 0;
}

.dt-financial-list-row > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dt-financial-list-row > div:last-child {
    align-items: flex-end;
    text-align: right;
}

.dt-financial-list-row span {
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 1050px) {
    .dt-financial-summary {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 700px) {
    .dt-financial-summary,
    .dt-financial-secondary {
        grid-template-columns: 1fr;
    }

    .dt-financial-list-row {
        align-items: flex-start;
    }

    .dt-financial-list-row > div:last-child {
        align-items: flex-end;
    }
}


/* Financijski pregled – završno uljepšavanje */

.dt-financial-breakdown-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, 0.75fr);
    align-items: start;
    gap: 20px;
}

.dt-financial-breakdown-panel {
    align-self: start;
    min-width: 0;
    overflow: hidden;
}

.dt-financial-breakdown-panel
.dt-panel-header {
    padding: 24px 26px;
    border-bottom: 1px solid #e5eaf0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        );
}

.dt-financial-breakdown-panel
.dt-panel-title {
    font-size: 21px;
    letter-spacing: -0.02em;
}

.dt-financial-breakdown-panel
.dt-panel-subtitle {
    margin-top: 5px;
    font-size: 13px;
}

.dt-financial-breakdown-panel
.dt-financial-list-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 88px;
    padding: 18px 26px;
    border-bottom: 1px solid #edf1f5;
    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

.dt-financial-breakdown-panel
.dt-financial-list-row:last-child {
    border-bottom: 0;
}

.dt-financial-breakdown-panel
.dt-financial-list-row:hover {
    background: #f8fafc;
}

.dt-financial-breakdown-panel
.dt-financial-list-row > div:first-child {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.dt-financial-breakdown-panel
.dt-financial-list-row > div:first-child strong {
    overflow: hidden;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-financial-breakdown-panel
.dt-financial-list-row > div:first-child span {
    color: #718096;
    font-size: 12px;
    font-weight: 500;
}

.dt-financial-breakdown-panel
.dt-financial-list-row > div:last-child {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
}

.dt-financial-breakdown-panel
.dt-financial-list-row > div:last-child strong,
.dt-financial-breakdown-panel
.dt-financial-list-row > strong {
    color: #172033;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.dt-financial-breakdown-panel
.dt-financial-list-row > div:last-child span {
    color: #718096;
    font-size: 12px;
    white-space: nowrap;
}

/*
 * Prihodi dobivaju diskretnu zelenu oznaku.
 */

.dt-financial-breakdown-panel:first-child
.dt-financial-list-row::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #22a447;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.dt-financial-breakdown-panel:first-child
.dt-financial-list-row:hover::before {
    opacity: 1;
}

/*
 * Troškovi dobivaju diskretnu crvenu oznaku.
 */

.dt-financial-breakdown-panel:nth-child(2)
.dt-financial-list-row::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #dc4c4c;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.dt-financial-breakdown-panel:nth-child(2)
.dt-financial-list-row:hover::before {
    opacity: 1;
}

/*
 * Kad postoji samo jedna kategorija troška,
 * kartica ostaje kompaktna i ne rasteže se.
 */

.dt-financial-breakdown-panel:nth-child(2) {
    height: auto;
    min-height: 0;
}

.dt-financial-breakdown-panel:nth-child(2)
.dt-empty-state {
    margin: 20px;
}

/* Tablet */

@media (max-width: 1100px) {
    .dt-financial-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobitel */

@media (max-width: 680px) {
    .dt-financial-breakdown-grid {
        gap: 14px;
    }

    .dt-financial-breakdown-panel
    .dt-panel-header {
        padding: 20px;
    }

    .dt-financial-breakdown-panel
    .dt-financial-list-row {
        align-items: flex-start;
        min-height: 0;
        padding: 16px 20px;
    }

    .dt-financial-breakdown-panel
    .dt-financial-list-row
    > div:first-child strong {
        font-size: 14px;
        white-space: normal;
    }

    .dt-financial-breakdown-panel
    .dt-financial-list-row
    > div:last-child strong,
    .dt-financial-breakdown-panel
    .dt-financial-list-row
    > strong {
        font-size: 15px;
    }

    .dt-financial-breakdown-panel
    .dt-financial-list-row
    > div:last-child span {
        white-space: normal;
    }
}


/* Financijski centar – posljednji prihodi i troškovi */

.dt-financial-recent-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, 0.75fr);
    align-items: start;
    gap: 20px;
    margin-top: 18px;
}

.dt-financial-recent-panel {
    align-self: start;
    min-width: 0;
    overflow: hidden;
}

.dt-financial-recent-panel .dt-panel-header {
    padding: 22px 24px;
    border-bottom: 1px solid #e7ecf2;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        );
}

.dt-financial-recent-list {
    padding: 0 20px;
}

.dt-financial-recent-row {
    display: grid;
    grid-template-columns:
        42px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 14px 0;
    border-bottom: 1px solid #e9edf2;
    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

.dt-financial-recent-row:last-child {
    border-bottom: 0;
}

.dt-financial-recent-row:hover {
    background: #f8fafc;
}

.dt-financial-recent-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.dt-financial-recent-avatar--income {
    background: #eaf8ef;
    color: #16803a;
}

.dt-financial-recent-avatar--expense {
    background: #fff0f1;
    color: #c73535;
}

.dt-financial-recent-content {
    min-width: 0;
}

.dt-financial-recent-content > strong {
    display: block;
    overflow: hidden;
    color: #172033;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-financial-recent-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    color: #718096;
    font-size: 11px;
    line-height: 1.4;
}

.dt-financial-meta-dot {
    color: #aab4c0;
}

.dt-financial-recent-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.dt-financial-recent-value > strong {
    color: #172033;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.dt-financial-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.dt-financial-status::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: currentColor;
}

.dt-financial-status--paid {
    background: #eaf8ef;
    color: #16803a;
}

.dt-financial-status--unpaid {
    background: #fff4e8;
    color: #c45b0a;
}

.dt-financial-status--partial {
    background: #eef2ff;
    color: #4f46e5;
}

.dt-financial-status--expense {
    max-width: 145px;
    overflow: hidden;
    background: #fff0f1;
    color: #c73535;
    text-overflow: ellipsis;
}

.dt-financial-recent-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px;
    border-top: 1px solid #e7ecf2;
    background: #fbfcfe;
    color: #718096;
    font-size: 11px;
}

/*
 * Kartice se više ne rastežu na jednaku visinu.
 */

.dt-financial-recent-panel:nth-child(2) {
    height: auto;
    min-height: 0;
}

/* Tablet */

@media (max-width: 1100px) {
    .dt-financial-recent-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobitel */

@media (max-width: 680px) {
    .dt-financial-recent-grid {
        gap: 14px;
    }

    .dt-financial-recent-panel .dt-panel-header {
        align-items: flex-start;
        padding: 19px;
    }

    .dt-financial-recent-list {
        padding: 0 16px;
    }

    .dt-financial-recent-row {
        grid-template-columns:
            36px
            minmax(0, 1fr);
        align-items: start;
        gap: 11px;
        padding: 15px 0;
    }

    .dt-financial-recent-avatar {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }

    .dt-financial-recent-content > strong {
        font-size: 13px;
        white-space: normal;
    }

    .dt-financial-recent-value {
        grid-column: 2;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        margin-top: 3px;
        text-align: left;
    }

    .dt-financial-recent-value > strong {
        font-size: 14px;
    }

    .dt-financial-recent-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 16px;
    }
}


/* Financijski pregled na Analyticsu */

.dt-financial-overview-panel {
    overflow: hidden;
}

.dt-financial-overview-panel .dt-panel-header {
    padding-bottom: 18px;
}

.dt-financial-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dt-financial-overview-card {
    position: relative;
    min-width: 0;
    padding: 20px 22px;
    overflow: hidden;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    background: #ffffff;
}

.dt-financial-overview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
}

.dt-financial-overview-card--income::after {
    background:
        linear-gradient(
            135deg,
            rgba(34, 164, 71, 0.08),
            transparent 65%
        );
}

.dt-financial-overview-card--expense::after {
    background:
        linear-gradient(
            135deg,
            rgba(220, 76, 76, 0.08),
            transparent 65%
        );
}

.dt-financial-overview-card--result::after {
    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.08),
            transparent 65%
        );
}

.dt-financial-overview-card .dt-stat-label,
.dt-financial-overview-card .dt-stat-value {
    position: relative;
    z-index: 1;
}

.dt-financial-overview-card .dt-stat-label {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.dt-financial-overview-card .dt-stat-value {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    width: auto;
    max-width: 100%;
    color: #172033;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -0.03em;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

.dt-financial-overview-card--income .dt-stat-value {
    color: #16803a;
}

.dt-financial-overview-card--expense .dt-stat-value {
    color: #c73535;
}

.dt-financial-overview-card--result .dt-stat-value {
    color: #1d4ed8;
}

/*
 * Sprječava lomljenje valute u novi red:
 * 10,00
 * €
 */

.dt-financial-overview-card .dt-stat-value br {
    display: none;
}

@media (max-width: 1000px) {
    .dt-financial-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .dt-financial-overview-card {
        padding: 18px;
    }

    .dt-financial-overview-card .dt-stat-value {
        font-size: 24px;
    }
}


/* Dinamička boja financijskog rezultata */

.dt-financial-overview-card--result
.dt-stat-value.dt-profit-positive {
    color: #16803a;
}

.dt-financial-overview-card--result
.dt-stat-value.dt-profit-negative {
    color: #dc2626;
}

.dt-financial-overview-card--result
.dt-stat-value.dt-profit-neutral {
    color: #64748b;
}


/* Uređivanje klijenta – podijeljeni obrazac */

.dt-client-form-section {
    padding: 26px 0;
    border-bottom: 1px solid #e7ecf2;
}

.dt-client-form-section:first-of-type {
    padding-top: 0;
}

.dt-client-form-section:last-of-type {
    border-bottom: 0;
}

.dt-client-form-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.dt-client-form-section__header h2 {
    margin: 0;
    color: #172033;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.dt-client-form-section__header p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.dt-client-form-section .dt-field label {
    font-weight: 750;
}

.dt-client-form-section input,
.dt-client-form-section select,
.dt-client-form-section textarea {
    width: 100%;
}

.dt-client-form-section textarea {
    min-height: 140px;
    resize: vertical;
}

@media (max-width: 680px) {
    .dt-client-form-section {
        padding: 22px 0;
    }

    .dt-client-form-section__header {
        margin-bottom: 16px;
    }
}


/* Aktivne usluge klijenta – grid popravak */

.dt-service-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(
        4,
        minmax(0, 1fr)
    );
    gap: 12px;
    width: 100%;
}

.dt-service-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.dt-service-checkbox:hover {
    border-color: #b8c3d1;
    background: #f8fafc;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.dt-service-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.dt-service-checkbox span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.dt-service-checkbox span::before {
    content: "";
    display: grid;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.dt-service-checkbox input:checked + span {
    color: #0f172a;
}

.dt-service-checkbox input:checked + span::before {
    content: "✓";
    border-color: #2563eb;
    background: #2563eb;
}

.dt-service-checkbox:has(input:checked) {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.dt-service-checkbox input:focus-visible + span::before {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .dt-service-checkbox-grid {
        grid-template-columns: repeat(
            3,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 820px) {
    .dt-service-checkbox-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 520px) {
    .dt-service-checkbox-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dt-service-checkbox {
        min-height: 48px;
        padding: 11px 13px;
    }
}


/* Akcije u tablici prihoda klijenta */

.dt-row-actions--end {
    justify-content: flex-end;
}

.dt-inline-form {
    display: inline-flex;
    margin: 0;
}

.dt-link-button--danger {
    color: #dc2626;
}

.dt-link-button--danger:hover {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}


/* Prihodi klijenta – stalno vidljive akcije */

.dt-client-revenues-table {
    min-width: 850px;
}

.dt-client-revenues-table th:last-child,
.dt-client-revenues-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    min-width: 105px;
    background: #ffffff;
    box-shadow: -8px 0 14px rgba(15, 23, 42, 0.06);
}

.dt-client-revenues-table thead th:last-child {
    z-index: 3;
    background: #f8fafc;
}

.dt-client-revenues-table tbody tr:hover td:last-child {
    background: #f8fafc;
}

.dt-client-revenues-table .dt-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    white-space: nowrap;
}

.dt-client-revenues-table .dt-link-button {
    display: inline-grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
}

.dt-client-revenues-table .dt-inline-form {
    display: inline-flex;
    margin: 0;
}

@media (max-width: 700px) {
    .dt-client-revenues-table {
        min-width: 760px;
    }

    .dt-client-revenues-table th:last-child,
    .dt-client-revenues-table td:last-child {
        min-width: 92px;
    }
}


/* Akcije prihoda unutar stupca Iznos */

.dt-client-revenues-table {
    min-width: 700px;
}

.dt-client-revenue-amount {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.dt-client-revenue-amount > strong {
    color: #172033;
    font-size: 14px;
    font-weight: 800;
}

.dt-client-revenue-inline-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.dt-client-revenue-delete-form {
    display: inline-flex;
    margin: 0;
}

.dt-client-revenue-action-button {
    display: inline-grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font: inherit;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}

.dt-client-revenue-action-button:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.dt-client-revenue-action-button--delete {
    color: #dc2626;
}

.dt-client-revenue-action-button--delete:hover {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

@media (max-width: 700px) {
    .dt-client-revenues-table {
        min-width: 650px;
    }
}


/* Prihodi klijenta – prisilno vidljive akcije */

.dt-client-revenue-amount {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 8px !important;
    min-width: 92px;
    overflow: visible !important;
}

.dt-client-revenue-inline-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.dt-client-revenue-delete-form {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
}

.dt-client-revenue-action-button {
    display: inline-grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    place-items: center !important;
    border: 1px solid #d8e0e9 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.dt-client-revenue-action-button--delete {
    color: #dc2626 !important;
    border-color: #fecaca !important;
    background: #fff7f7 !important;
}

.dt-client-revenue-action-button--delete:hover {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}


/* Quick Project Templates */

.dt-project-template-section {
    padding-bottom: 28px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e7ecf2;
}

.dt-project-template-heading {
    margin-bottom: 18px;
}

.dt-project-template-grid {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    gap: 14px;
}

.dt-project-template-card {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.dt-project-template-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.dt-project-template-card__content {
    display: flex;
    min-height: 118px;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border: 1px solid #dfe5ec;
    border-radius: 14px;
    background: #ffffff;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.dt-project-template-card:hover
.dt-project-template-card__content {
    border-color: #b8c5d4;
    background: #f8fafc;
    transform: translateY(-1px);
}

.dt-project-template-card__content strong {
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.dt-project-template-card__content small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.dt-project-template-card input:checked
+ .dt-project-template-card__content {
    border-color: #60a5fa;
    background: #eff6ff;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dt-project-template-card input:checked
+ .dt-project-template-card__content::after {
    content: "✓ Odabrano";
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .dt-project-template-grid {
        grid-template-columns: 1fr;
    }

    .dt-project-template-card__content {
        min-height: 0;
    }
}


/* Workflow rada – normalan unos i povratak */

.dt-work-context {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    gap: 12px;
    margin-bottom: 26px;
}

.dt-work-context__item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 16px 18px;
    border: 1px solid #e1e7ee;
    border-radius: 12px;
    background: #f8fafc;
}

.dt-work-context__item span {
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dt-work-context__item strong {
    overflow: hidden;
    color: #172033;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-work-time-grid {
    display: grid;
    grid-template-columns:
        minmax(120px, 0.7fr)
        minmax(120px, 0.7fr)
        minmax(220px, 1.6fr);
    gap: 14px;
}

.dt-work-options {
    display: grid;
    grid-template-columns: repeat(
        2,
        minmax(0, 1fr)
    );
    gap: 12px;
    margin: 24px 0;
}

@media (max-width: 800px) {
    .dt-work-context,
    .dt-work-time-grid,
    .dt-work-options {
        grid-template-columns: 1fr;
    }
}


/* Ručni odabir zadataka iz predloška */

.dt-template-task-selector {
    padding: 28px 0;
    border-bottom: 1px solid #e7ecf2;
}

.dt-template-task-modes {
    display: grid;
    grid-template-columns: repeat(
        2,
        minmax(0, 1fr)
    );
    gap: 12px;
    margin-bottom: 18px;
}

.dt-template-task-mode {
    position: relative;
    cursor: pointer;
}

.dt-template-task-mode > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.dt-template-task-mode > span {
    display: flex;
    min-height: 86px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 16px 18px;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    background: #ffffff;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.dt-template-task-mode strong {
    color: #172033;
    font-size: 14px;
}

.dt-template-task-mode small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.dt-template-task-mode
input:checked + span {
    border-color: #60a5fa;
    background: #eff6ff;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.08);
}

.dt-template-task-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.dt-template-task-toolbar span {
    margin-left: auto;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.dt-template-task-grid {
    display: grid;
    grid-template-columns: repeat(
        2,
        minmax(0, 1fr)
    );
    gap: 10px;
}

.dt-template-task-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.dt-template-task-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.dt-template-task-option > span {
    display: flex;
    min-height: 78px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 14px 16px 14px 48px;
    border: 1px solid #e0e6ed;
    border-radius: 11px;
    background: #ffffff;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.dt-template-task-option > span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 16px;
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    transform: translateY(-50%);
}

.dt-template-task-option strong {
    color: #263244;
    font-size: 13px;
    line-height: 1.4;
}

.dt-template-task-option small {
    color: #718096;
    font-size: 11px;
}

.dt-template-task-option
input:checked + span {
    border-color: #93c5fd;
    background: #f0f7ff;
}

.dt-template-task-option
input:checked + span::before {
    content: "✓";
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.dt-template-task-grid.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

@media (max-width: 760px) {
    .dt-template-task-modes,
    .dt-template-task-grid {
        grid-template-columns: 1fr;
    }

    .dt-template-task-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .dt-template-task-toolbar span {
        margin-left: 0;
    }
}


/* DT Navigation & Mobile Pass */

/*
 * Sprječava da padding ili širok sadržaj
 * povećaju širinu cijele stranice.
 */
html {
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.dt-app,
.dt-main,
.dt-content,
.dt-page,
main {
    min-width: 0;
    max-width: 100%;
}

/*
 * Breadcrumb navigacija
 */

.dt-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    max-width: 100%;
    margin: 0 0 16px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.dt-breadcrumb a {
    color: #48637d;
    font-weight: 700;
    text-decoration: none;
}

.dt-breadcrumb a:hover {
    color: #123f66;
    text-decoration: underline;
}

.dt-breadcrumb span {
    color: #a0aec0;
}

.dt-breadcrumb strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #172033;
    font-weight: 800;
}

/*
 * Klikabilna brza navigacija na profilu klijenta
 */

.dt-client-quick-nav {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(130px, 1fr)
    );
    gap: 10px;
    margin: 0 0 24px;
}

.dt-client-quick-nav__card {
    display: flex;
    min-width: 0;
    min-height: 70px;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #dfe6ee;
    border-radius: 13px;
    background: #ffffff;
    color: #263244;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.dt-client-quick-nav__card:hover {
    border-color: #9eb7cd;
    color: #123f66;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(15, 23, 42, 0.08);
}

.dt-client-quick-nav__card > span {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
}

.dt-client-quick-nav__card strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.3;
}

/*
 * Sekcija na koju se skoči ne smije završiti
 * ispod vrha preglednika.
 */

.dt-client-workspace-section,
.dt-client-workspace-columns,
[id^="client-"] {
    scroll-margin-top: 24px;
}

/*
 * Samo tablica smije imati horizontalni scroll.
 * Ostatak stranice ostaje fiksiran na širinu ekrana.
 */

.dt-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.dt-table-wrapper table {
    max-width: none;
}

.dt-page-heading,
.dt-heading-actions,
.dt-client-workspace-grid,
.dt-client-workspace-columns,
.dt-stats,
.dt-panel,
.dt-client-project-card,
.dt-task-overview-grid {
    min-width: 0;
    max-width: 100%;
}

.dt-heading-actions {
    flex-wrap: wrap;
}

.dt-heading-actions > *,
.dt-form-actions > * {
    max-width: 100%;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

/*
 * Mobilni prikaz
 */

@media (max-width: 760px) {
    .dt-page-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .dt-heading-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 9px;
    }

    .dt-heading-actions > a,
    .dt-heading-actions > button,
    .dt-heading-actions > form,
    .dt-heading-actions > form > button {
        width: 100%;
        min-width: 0;
    }

    .dt-client-quick-nav {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }

    .dt-client-quick-nav__card {
        min-height: 64px;
        padding: 12px;
    }

    .dt-client-workspace-grid,
    .dt-client-workspace-columns,
    .dt-task-overview-grid,
    .dt-stats {
        grid-template-columns: 1fr;
    }

    .dt-panel,
    .dt-client-workspace-card,
    .dt-client-health-card,
    .dt-client-project-card {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .dt-table-wrapper {
        border-radius: 10px;
    }

    input,
    select,
    textarea,
    button {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .dt-client-quick-nav {
        grid-template-columns: 1fr;
    }
}


/* Stable Task Time Workspace */

.dt-task-time-workspace {
    min-width: 0;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #dfe7ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.05);
}

.dt-task-time-workspace__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding-bottom: 19px;
    border-bottom: 1px solid #e8edf3;
}

.dt-task-time-workspace__header h2 {
    margin: 4px 0 7px;
    color: #172033;
    font-size: 20px;
}

.dt-task-time-workspace__header p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.dt-task-time-workspace__total {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    padding: 11px 14px;
    border-radius: 11px;
    background: #f8fafc;
}

.dt-task-time-workspace__total span,
.dt-task-time-workspace__total small {
    color: #64748b;
    font-size: 10px;
}

.dt-task-time-workspace__total strong {
    color: #172033;
    font-size: 17px;
}

.dt-task-time-workspace__timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #dfe7ef;
    border-radius: 15px;
    background: #f8fafc;
}

.dt-task-time-workspace__timer--running {
    align-items: flex-start;
    border-color: #a8dfc5;
    background: #effaf5;
}

.dt-task-time-workspace__status {
    display: flex;
    min-width: 210px;
    align-items: flex-start;
    gap: 12px;
}

.dt-task-time-workspace__status > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dt-task-time-workspace__status small {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.dt-task-time-workspace__status strong {
    color: #172033;
    font-size: 24px;
}

.dt-task-time-workspace__status span {
    color: #64748b;
    font-size: 11px;
}

.dt-task-time-workspace__dot {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border-radius: 999px;
    background: #16a34a;
    box-shadow:
        0 0 0 6px rgba(22, 163, 74, 0.12);
}

.dt-task-time-workspace__dot--inactive {
    background: #94a3b8;
    box-shadow:
        0 0 0 6px rgba(148, 163, 184, 0.12);
}

.dt-task-time-stop-form {
    display: grid;
    width: min(100%, 620px);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.dt-task-time-stop-form .dt-field {
    margin: 0;
}

.dt-task-time-stop-form textarea {
    width: 100%;
    resize: vertical;
}

.dt-task-time-checkbox {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 12px;
}

.dt-task-time-checkbox input {
    width: 17px;
    height: 17px;
}

.dt-task-time-workspace__manual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    margin-top: 18px;
    border-top: 1px solid #e8edf3;
}

.dt-task-time-workspace__manual > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dt-task-time-workspace__manual strong {
    color: #172033;
    font-size: 13px;
}

.dt-task-time-workspace__manual span {
    color: #64748b;
    font-size: 11px;
}

.dt-task-time-workspace__recent {
    padding-top: 17px;
    border-top: 1px solid #e8edf3;
}

.dt-task-time-workspace__recent-title,
.dt-task-time-workspace__entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dt-task-time-workspace__recent-title {
    padding-bottom: 9px;
}

.dt-task-time-workspace__recent-title span {
    color: #64748b;
    font-size: 11px;
}

.dt-task-time-workspace__entry {
    padding: 11px 0;
    border-top: 1px solid #edf1f5;
}

.dt-task-time-workspace__entry > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.dt-task-time-workspace__entry span {
    color: #64748b;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.dt-task-time-workspace__entry strong {
    font-size: 12px;
}

@media (max-width: 780px) {
    .dt-task-time-workspace {
        padding: 17px;
    }

    .dt-task-time-workspace__header,
    .dt-task-time-workspace__timer,
    .dt-task-time-workspace__manual {
        align-items: stretch;
        flex-direction: column;
    }

    .dt-task-time-workspace__total {
        align-items: flex-start;
    }

    .dt-task-time-stop-form {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .dt-task-time-stop-form button,
    .dt-task-time-workspace__manual a {
        width: 100%;
    }
}

/* DT MANAGER V2 UI */

.dt-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 35px;
}

.dt-page-header h1 {
    margin: 0;
    font-size: 38px;
    font-weight: 700;
}

.dt-page-header p {
    margin-top: 10px;
    color: #6b7280;
    line-height: 1.6;
}

.dt-page-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dt-btn:hover {
    transform: translateY(-1px);
}

.dt-btn--primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.dt-btn--primary:hover {
    background: #1d4ed8;
}

.dt-btn--secondary {
    background: #eef2ff;
    color: #1e3a8a;
}

.dt-btn--secondary:hover {
    background: #dbeafe;
}

.dt-btn--small {
    padding: 8px 12px;
    border-radius: 9px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
}

.dt-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.dt-stat-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dt-stat-card::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -42px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #e0f2fe;
    opacity: 0.8;
}

.dt-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.dt-stat-card span {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.dt-stat-card strong {
    position: relative;
    z-index: 1;
    display: block;
    color: #0f172a;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 800;
}

.dt-card {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 20px;
    padding: 24px;
    margin-top: 22px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
}

.dt-filter-form {
    display: grid;
    grid-template-columns:
        minmax(240px, 1.6fr)
        minmax(180px, 0.7fr)
        auto;
    align-items: end;
    gap: 16px;
}

.dt-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.dt-form-group label {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dt-form-group input,
.dt-form-group select {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid #dbe3ec;
    border-radius: 11px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.dt-form-group input:focus,
.dt-form-group select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.dt-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dt-table-wrap {
    overflow-x: auto;
}

.dt-table {
    width: 100%;
    border-collapse: collapse;
}

.dt-table th {
    padding: 15px 18px;
    border-bottom: 1px solid #e8eef5;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.dt-table td {
    padding: 19px 18px;
    border-bottom: 1px solid #edf2f7;
    color: #1e293b;
    vertical-align: middle;
}

.dt-table tbody tr {
    transition: background-color 0.2s ease;
}

.dt-table tbody tr:hover {
    background: #f8fafc;
}

.dt-table td strong {
    display: block;
    color: #0f172a;
    font-weight: 800;
}

.dt-table td small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    line-height: 1.45;
}

.dt-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dt-empty-state {
    padding: 42px 24px;
    text-align: center;
}

.dt-empty-state h2 {
    margin: 0 0 8px;
    color: #0f172a;
}

.dt-empty-state p {
    margin: 0 0 20px;
    color: #64748b;
}

@media (max-width: 1100px) {
    .dt-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dt-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .dt-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .dt-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .dt-page-header h1 {
        font-size: 32px;
    }

    .dt-page-actions {
        width: 100%;
    }

    .dt-page-actions .dt-btn,
    .dt-page-header > .dt-btn {
        width: 100%;
    }

    .dt-stats-grid {
        grid-template-columns: 1fr;
    }

    .dt-filter-form {
        grid-template-columns: 1fr;
    }

    .dt-filter-actions {
        grid-column: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .dt-filter-actions .dt-btn {
        width: 100%;
    }

    .dt-card {
        padding: 18px;
    }

    .dt-table {
        min-width: 840px;
    }
}


/* Dashboard Week Planner */

.dt-week-planner {
    min-width: 0;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #dfe7ef;
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 12px 34px rgba(15, 23, 42, 0.06);
}

.dt-week-planner__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8edf3;
}

.dt-week-planner__header h2 {
    margin: 4px 0 7px;
    color: #172033;
    font-size: 23px;
}

.dt-week-planner__header p {
    max-width: 670px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.dt-planner-quick-create {
    position: relative;
    flex: 0 0 auto;
}

.dt-planner-quick-create > summary {
    list-style: none;
    cursor: pointer;
}

.dt-planner-quick-create > summary::-webkit-details-marker {
    display: none;
}

.dt-planner-quick-create__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    width: min(430px, calc(100vw - 36px));
    padding: 20px;
    border: 1px solid #dce4ec;
    border-radius: 15px;
    background: #ffffff;
    box-shadow:
        0 20px 55px rgba(15, 23, 42, 0.18);
}

.dt-planner-form-grid {
    display: grid;
    grid-template-columns: repeat(
        2,
        minmax(0, 1fr)
    );
    gap: 12px;
}

.dt-week-planner__days {
    display: grid;
    grid-template-columns: repeat(
        7,
        minmax(0, 1fr)
    );
    gap: 8px;
    padding: 20px 0;
}

.dt-week-day {
    display: flex;
    min-width: 0;
    min-height: 82px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 9px;
    border: 1px solid #e1e7ee;
    border-radius: 13px;
    background: #f8fafc;
    color: #475569;
    font: inherit;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}

.dt-week-day:hover {
    border-color: #9eb7cd;
    background: #f0f7ff;
    transform: translateY(-1px);
}

.dt-week-day--today {
    border-color: #5b8eb8;
    background: #edf6fd;
    color: #123f66;
    box-shadow:
        0 0 0 3px rgba(18, 63, 102, 0.07);
}

.dt-week-day span,
.dt-week-day small {
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}

.dt-week-day strong {
    font-size: 21px;
    line-height: 1.1;
}

.dt-week-planner__agenda {
    display: grid;
    gap: 15px;
}

.dt-planner-group {
    overflow: hidden;
    border: 1px solid #e3e9ef;
    border-radius: 15px;
    background: #ffffff;
}

.dt-planner-group > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    border-bottom: 1px solid #e8edf3;
    background: #f8fafc;
}

.dt-planner-group > header > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.dt-planner-group > header h3 {
    margin: 0;
    color: #172033;
    font-size: 14px;
}

.dt-planner-group > header span {
    color: #64748b;
    font-size: 10px;
}

.dt-planner-group > header > strong {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: #e8eef4;
    color: #334155;
    font-size: 11px;
}

.dt-planner-group--overdue {
    border-color: #fecaca;
}

.dt-planner-group--overdue > header {
    background: #fff5f5;
}

.dt-planner-group--today {
    border-color: #bfdbfe;
}

.dt-planner-group--today > header {
    background: #eff6ff;
}

.dt-planner-item {
    display: grid;
    min-width: 0;
    grid-template-columns:
        58px
        38px
        minmax(0, 1fr)
        24px;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #edf1f5;
    color: #263244;
    text-decoration: none;
    transition:
        background-color 0.18s ease;
}

.dt-planner-item:last-child {
    border-bottom: 0;
}

.dt-planner-item:hover {
    background: #f8fafc;
}

.dt-planner-item__time {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dt-planner-item__time strong {
    color: #172033;
    font-size: 13px;
}

.dt-planner-item__time span {
    color: #64748b;
    font-size: 10px;
}

.dt-planner-item__icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: #eef4f8;
    color: #123f66;
    font-size: 15px;
    font-weight: 800;
}

.dt-planner-item--crm
.dt-planner-item__icon {
    background: #f3eefe;
    color: #6941c6;
}

.dt-planner-item__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.dt-planner-item__content > span {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dt-planner-item__content > strong {
    overflow: hidden;
    color: #172033;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-planner-item__content > small {
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-planner-item__arrow {
    color: #94a3b8;
    font-size: 17px;
}

.dt-planner-empty {
    padding: 22px 18px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 780px) {
    .dt-week-planner {
        padding: 17px;
    }

    .dt-week-planner__header {
        align-items: stretch;
        flex-direction: column;
    }

    .dt-planner-quick-create,
    .dt-planner-quick-create > summary {
        width: 100%;
    }

    .dt-planner-quick-create__panel {
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
    }

    .dt-week-planner__days {
        grid-template-columns: repeat(
            4,
            minmax(0, 1fr)
        );
    }

    .dt-planner-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .dt-week-planner__days {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }

    .dt-planner-item {
        grid-template-columns:
            47px
            34px
            minmax(0, 1fr);
        gap: 9px;
        padding: 13px;
    }

    .dt-planner-item__arrow {
        display: none;
    }
}


/* Dashboard Client Growth Chart */

.dt-client-growth-chart {
    min-width: 0;
    padding: 25px;
    margin-bottom: 24px;
    border: 1px solid #dfe7ef;
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fbfdff 100%
        );
    box-shadow:
        0 12px 34px rgba(15, 23, 42, 0.055);
}

.dt-client-growth-chart__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8edf3;
}

.dt-client-growth-chart__header h2 {
    margin: 4px 0 7px;
    color: #172033;
    font-size: 23px;
    line-height: 1.2;
}

.dt-client-growth-chart__header p {
    max-width: 580px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.dt-client-growth-chart__summary {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(105px, 1fr)
    );
    gap: 9px;
}

.dt-client-growth-chart__summary > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid #e3e9ef;
    border-radius: 12px;
    background: #f8fafc;
}

.dt-client-growth-chart__summary span {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.35;
    text-transform: uppercase;
}

.dt-client-growth-chart__summary strong {
    color: #123f66;
    font-size: 20px;
    line-height: 1.1;
}

.dt-client-growth-chart__legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 19px;
    padding: 17px 2px 5px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.dt-client-growth-chart__legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dt-chart-legend-bar {
    display: block;
    width: 16px;
    height: 9px;
    border: 1px solid rgba(91, 142, 184, 0.9);
    border-radius: 3px;
    background: rgba(91, 142, 184, 0.38);
}

.dt-chart-legend-line {
    position: relative;
    display: block;
    width: 18px;
    height: 10px;
}

.dt-chart-legend-line::before {
    content: "";
    position: absolute;
    top: 4px;
    right: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: #123f66;
}

.dt-chart-legend-line::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 7px;
    width: 7px;
    height: 7px;
    border: 2px solid #123f66;
    border-radius: 999px;
    background: #ffffff;
}

.dt-client-growth-chart__canvas {
    position: relative;
    width: 100%;
    height: 330px;
    min-height: 260px;
    margin-top: 4px;
}

.dt-client-growth-chart__canvas canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 900px) {
    .dt-client-growth-chart__header {
        flex-direction: column;
    }

    .dt-client-growth-chart__summary {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .dt-client-growth-chart {
        padding: 17px;
    }

    .dt-client-growth-chart__summary {
        grid-template-columns: 1fr;
    }

    .dt-client-growth-chart__legend {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .dt-client-growth-chart__canvas {
        height: 280px;
    }
}


/* Quick Actions Visibility Fix */

.dt-quick-actions {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(150px, 1fr)
    );
    gap: 12px;
}

.dt-quick-action {
    display: flex !important;
    min-width: 0;
    min-height: 72px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    overflow: visible !important;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #ffffff;
    color: #172033 !important;
    text-decoration: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.dt-quick-action:hover {
    border-color: #9eb7cd;
    background: #f8fbfe;
}

.dt-quick-action__icon {
    display: grid !important;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: #eef4f8;
    color: #123f66 !important;
    font-size: 17px !important;
    line-height: 1;
    opacity: 1 !important;
    visibility: visible !important;
}

.dt-quick-action__label {
    display: block !important;
    min-width: 0;
    color: #172033 !important;
    font-size: 13px !important;
    font-weight: 750;
    line-height: 1.35;
    opacity: 1 !important;
    visibility: visible !important;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 620px) {
    .dt-quick-actions {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }

    .dt-quick-action {
        min-height: 68px;
        padding: 12px;
    }
}


/* Compact Dashboard Work Center */

.dt-work-center {
    padding: 16px 18px;
    margin-bottom: 20px;
}

.dt-work-center .dt-panel-header {
    padding-bottom: 12px;
}

.dt-work-center .dt-panel-title {
    font-size: 16px;
}

.dt-work-center .dt-panel-subtitle {
    font-size: 10px;
}

.dt-work-center .dt-quick-actions {
    display: grid;
    grid-template-columns: repeat(
        8,
        minmax(0, 1fr)
    );
    gap: 8px;
}

.dt-work-center .dt-quick-action {
    min-width: 0;
    min-height: 68px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 9px 6px;
    text-align: center;
}

.dt-work-center .dt-quick-action__icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    font-size: 15px !important;
}

.dt-work-center .dt-quick-action__label {
    font-size: 10px !important;
    line-height: 1.2;
}

@media (max-width: 1100px) {
    .dt-work-center .dt-quick-actions {
        grid-template-columns: repeat(
            4,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 620px) {
    .dt-work-center {
        padding: 11px;
        margin-bottom: 14px;
    }

    .dt-work-center .dt-panel-header {
        padding-bottom: 8px;
    }

    .dt-work-center .dt-panel-subtitle {
        display: none;
    }

    .dt-work-center .dt-quick-actions {
        grid-template-columns: repeat(
            4,
            minmax(0, 1fr)
        );
        gap: 6px;
    }

    .dt-work-center .dt-quick-action {
        min-height: 58px;
        gap: 4px;
        padding: 7px 3px;
        border-radius: 10px;
    }

    .dt-work-center .dt-quick-action__icon {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        font-size: 13px !important;
    }

    .dt-work-center .dt-quick-action__label {
        font-size: 8px !important;
        line-height: 1.1;
    }
}

@media (max-width: 390px) {
    .dt-work-center .dt-quick-action__label {
        font-size: 7px !important;
    }
}

/* DT REPORT MODERN CHARTS */

.dt-report-chart-grid {
    display: grid;
    grid-template-columns: repeat(
        2,
        minmax(0, 1fr)
    );
    gap: 22px;
}

.dt-report-chart-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 22px;
    border: 1px solid #e7edf5;
    border-radius: 20px;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.06);
}

.dt-report-chart-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background:
        linear-gradient(
            90deg,
            #2563eb,
            #0891b2
        );
}

.dt-report-chart-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.dt-report-chart-card__header strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.dt-report-chart-card__header span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.dt-report-chart-wrap {
    position: relative;
    width: 100%;
    min-height: 310px;
    margin-top: 4px;
}

.dt-report-chart {
    display: block;
    width: 100%;
    max-width: 100%;
}

.dt-report-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
}

.dt-report-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.dt-report-chart-legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10);
}

.dt-report-chart-card:nth-child(1)
.dt-report-chart-legend span:nth-child(2) i {
    background: #0891b2;
    box-shadow:
        0 0 0 4px rgba(8, 145, 178, 0.10);
}

.dt-report-chart-card:nth-child(2)
.dt-report-chart-legend span:nth-child(1) i {
    background: #16a34a;
    box-shadow:
        0 0 0 4px rgba(22, 163, 74, 0.10);
}

.dt-report-chart-card:nth-child(2)
.dt-report-chart-legend span:nth-child(2) i {
    background: #2563eb;
}

.dt-report-chart-card:nth-child(2)
.dt-report-chart-legend span:nth-child(3) i {
    background: #ea580c;
    box-shadow:
        0 0 0 4px rgba(234, 88, 12, 0.10);
}

@media (max-width: 1050px) {
    .dt-report-chart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .dt-report-chart-card {
        padding: 17px;
        border-radius: 16px;
    }

    .dt-report-chart-wrap {
        min-height: 280px;
        overflow-x: auto;
    }
}


/* FINAL MOBILE PAGE HEADING RESET */

@media (max-width: 820px) {

    /*
     * Zaglavlje smije biti visoko samo koliko njegov
     * stvarni sadržaj zahtijeva.
     */
    .dt-page-heading,
    .dt-client-profile-header,
    .dt-simple-client-header {
        display: flex !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        align-content: flex-start !important;
        justify-content: flex-start !important;
        gap: 14px !important;
        margin-top: 0 !important;
        margin-bottom: 18px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .dt-page-heading > div,
    .dt-client-profile-header > div,
    .dt-simple-client-header > div {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        align-self: auto !important;
    }

    /*
     * Ovo je najvažniji dio:
     * akcije se više ne smiju gurati na dno ekrana.
     */
    .dt-heading-actions,
    .dt-client-profile-actions,
    .dt-simple-client-actions,
    .dt-client-heading-actions {
        position: static !important;
        display: grid !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: none !important;
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
        align-items: stretch !important;
        align-content: start !important;
        justify-content: stretch !important;
        gap: 8px !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    .dt-heading-actions > *,
    .dt-client-profile-actions > *,
    .dt-simple-client-actions > *,
    .dt-client-heading-actions > * {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 40px !important;
        flex: none !important;
        margin: 0 !important;
        align-self: stretch !important;
    }

    /*
     * Quick navigation i prvi sadržaj moraju odmah
     * slijediti nakon zaglavlja.
     */
    .dt-page-heading + *,
    .dt-client-profile-header + *,
    .dt-simple-client-header + * {
        margin-top: 0 !important;
    }
}

@media (max-width: 390px) {
    .dt-heading-actions,
    .dt-client-profile-actions,
    .dt-simple-client-actions,
    .dt-client-heading-actions {
        gap: 6px !important;
    }

    .dt-heading-actions > *,
    .dt-client-profile-actions > *,
    .dt-simple-client-actions > *,
    .dt-client-heading-actions > * {
        min-height: 38px !important;
        font-size: 10px !important;
    }
}


/* Worklog Filter Layout */

.dt-worklog-filter {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: end;
    gap: 18px;
    padding: 20px;
}

.dt-worklog-filter .dt-field {
    min-width: 0;
    margin: 0;
}

.dt-worklog-filter label {
    display: block;
    margin: 0 0 7px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.dt-worklog-filter select {
    width: 100%;
    min-height: 46px;
    margin: 0;
}

.dt-worklog-filter .dt-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.dt-worklog-filter .dt-form-actions > * {
    min-width: 88px;
    min-height: 46px;
}

@media (max-width: 760px) {
    .dt-worklog-filter {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .dt-worklog-filter .dt-form-actions {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .dt-worklog-filter
    .dt-form-actions > * {
        width: 100%;
        min-width: 0;
        min-height: 42px;
    }
}

@media (max-width: 390px) {
    .dt-worklog-filter {
        padding: 13px;
    }

    .dt-worklog-filter
    .dt-form-actions > * {
        min-height: 40px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 11px;
    }
}
