/* =========================================================
   WPC FAKTURAČNÍ SYSTÉM
   MAIN STYLESHEET
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
    --sidebar-width: 238px;
    --topbar-height: 68px;

    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-soft: #eff6ff;

    --color-sidebar: #142238;
    --color-sidebar-hover: #1d2e48;
    --color-sidebar-active: #2563eb;
    --color-sidebar-text: #c8d2df;
    --color-sidebar-muted: #77879c;

    --color-background: #f5f7fa;
    --color-surface: #ffffff;

    --color-border: #e3e8ef;
    --color-border-strong: #d6dde7;

    --color-text: #172033;
    --color-text-secondary: #667085;
    --color-text-muted: #98a2b3;

    --color-success: #16a34a;
    --color-success-soft: #f0fdf4;

    --color-warning: #d97706;
    --color-warning-soft: #fffbeb;

    --color-danger: #dc2626;
    --color-danger-soft: #fef2f2;

    --radius-small: 6px;
    --radius-medium: 9px;
    --radius-large: 12px;

    --shadow-small:
        0 1px 2px rgba(16, 24, 40, 0.04);

    --shadow-card:
        0 1px 3px rgba(16, 24, 40, 0.05);

    --transition-fast: 150ms ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;

    overflow: hidden;

    background: var(--color-background);
    color: var(--color-text);

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 14px;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

svg {
    display: block;
}


/* =========================================================
   APP SHELL
========================================================= */

.app-shell {
    width: 100%;
    height: 100vh;

    display: flex;

    overflow: hidden;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;

    flex: 0 0 var(--sidebar-width);

    display: flex;
    flex-direction: column;

    padding: 22px 14px 16px;

    background: var(--color-sidebar);
    color: #ffffff;

    user-select: none;
}


/* =========================================================
   SIDEBAR BRAND
========================================================= */

.sidebar-brand {
    min-height: 54px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 0 10px;

    margin-bottom: 24px;
}

.sidebar-brand-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--color-primary);

    color: #ffffff;

    font-size: 17px;
    font-weight: 700;
}

.sidebar-brand-text {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.sidebar-brand-text strong {
    color: #ffffff;

    font-size: 15px;
    font-weight: 650;

    line-height: 1.25;
}

.sidebar-brand-text span {
    color: var(--color-sidebar-muted);

    font-size: 11px;

    line-height: 1.3;
}


/* =========================================================
   SIDEBAR NAVIGATION
========================================================= */

.sidebar-navigation {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.sidebar-nav-item {
    width: 100%;
    height: 43px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 0 12px;

    border: 0;
    border-radius: 7px;

    outline: none;

    background: transparent;
    color: var(--color-sidebar-text);

    text-align: left;

    cursor: pointer;

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.sidebar-nav-item:hover {
    background: var(--color-sidebar-hover);
    color: #ffffff;
}

.sidebar-nav-item.is-active {
    background: var(--color-sidebar-active);
    color: #ffffff;
}

.sidebar-nav-icon {
    width: 19px;
    height: 19px;

    flex: 0 0 19px;
}

.sidebar-nav-icon svg {
    width: 100%;
    height: 100%;
}

.sidebar-nav-item > span:last-child {
    overflow: hidden;

    font-size: 13px;
    font-weight: 500;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-divider {
    width: calc(100% - 12px);

    height: 1px;

    margin: 12px 6px;

    background: rgba(255, 255, 255, 0.08);
}


/* =========================================================
   SIDEBAR FOOTER
========================================================= */

.sidebar-footer {
    margin-top: auto;

    display: flex;
    flex-direction: column;

    gap: 3px;

    padding: 15px 10px 2px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.sidebar-footer span {
    color: var(--color-sidebar-text);

    font-size: 11px;
}

.sidebar-footer small {
    color: var(--color-sidebar-muted);

    font-size: 10px;
}


/* =========================================================
   APPLICATION
========================================================= */

.application {
    min-width: 0;
    height: 100vh;

    flex: 1;

    display: flex;
    flex-direction: column;

    background: var(--color-background);
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    width: 100%;
    height: var(--topbar-height);

    flex: 0 0 var(--topbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    background: var(--color-surface);

    border-bottom:
        1px solid
        var(--color-border);
}


/* =========================================================
   SEARCH
========================================================= */

.topbar-search {
    width: min(390px, 45vw);
    height: 38px;

    position: relative;

    display: flex;
    align-items: center;
}

.topbar-search-icon {
    width: 17px;
    height: 17px;

    position: absolute;

    left: 12px;
    top: 50%;

    transform: translateY(-50%);

    color: #98a2b3;

    pointer-events: none;
}

.topbar-search-icon svg {
    width: 100%;
    height: 100%;
}

.topbar-search input {
    width: 100%;
    height: 100%;

    padding:
        0
        14px
        0
        38px;

    border:
        1px solid
        var(--color-border-strong);

    border-radius: 7px;

    outline: none;

    background: #ffffff;
    color: var(--color-text);

    font-size: 13px;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.topbar-search input::placeholder {
    color: #98a2b3;
}

.topbar-search input:hover {
    border-color: #c7d0dc;
}

.topbar-search input:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.09);
}


/* =========================================================
   TOPBAR ACTIONS
========================================================= */

.topbar-actions {
    display: flex;
    align-items: center;

    gap: 18px;
}

.topbar-icon-button {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 7px;

    outline: none;

    background: transparent;
    color: #667085;

    cursor: pointer;

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.topbar-icon-button:hover {
    background: #f2f4f7;
    color: var(--color-text);
}

.topbar-icon-button svg {
    width: 19px;
    height: 19px;
}


/* =========================================================
   USER
========================================================= */

.topbar-user {
    display: flex;
    align-items: center;

    gap: 10px;
}

.topbar-user-avatar {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e8eef8;
    color: #344054;

    font-size: 13px;
    font-weight: 650;
}

.topbar-user-info {
    display: flex;
    flex-direction: column;

    gap: 1px;
}

.topbar-user-info strong {
    color: #344054;

    font-size: 12px;
    font-weight: 650;
}

.topbar-user-info span {
    color: #98a2b3;

    font-size: 10px;
}


/* =========================================================
   PAGE CONTAINER
========================================================= */

.page-container {
    min-height: 0;

    flex: 1;

    overflow-y: auto;

    padding:
        28px
        30px
        40px;
}


/* =========================================================
   PAGE
========================================================= */

.page {
    display: none;

    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
}

.page.is-active {
    display: block;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.page-heading {
    min-height: 58px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 24px;
}

.page-heading-text h1 {
    margin-bottom: 5px;

    color: var(--color-text);

    font-size: 25px;
    font-weight: 700;

    letter-spacing: -0.35px;

    line-height: 1.25;
}

.page-heading-text p {
    color: var(--color-text-secondary);

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    min-height: 39px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 15px;

    border: 1px solid transparent;
    border-radius: 7px;

    outline: none;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.button-primary {
    background: var(--color-primary);
    color: #ffffff;

    border-color: var(--color-primary);
}

.button-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.button-primary:focus-visible {
    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.16);
}

.button-secondary {
    background: #ffffff;
    color: #475467;

    border-color: var(--color-border-strong);
}

.button-secondary:hover {
    background: #f9fafb;
    border-color: #c9d2de;
}

.button-plus {
    position: relative;

    top: -1px;

    font-size: 18px;
    font-weight: 400;

    line-height: 1;
}


/* =========================================================
   DASHBOARD STATS
========================================================= */

.dashboard-stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 18px;
}


/* =========================================================
   STAT CARD
========================================================= */

.stat-card {
    min-width: 0;
    min-height: 124px;

    padding: 17px 18px;

    background: var(--color-surface);

    border:
        1px solid
        var(--color-border);

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-small);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 13px;
}

.stat-card-label {
    overflow: hidden;

    color: var(--color-text-secondary);

    font-size: 12px;
    font-weight: 500;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.stat-card-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.stat-card-icon svg {
    width: 16px;
    height: 16px;
}

.stat-card-icon-success {
    background: var(--color-success-soft);
    color: var(--color-success);
}

.stat-card-icon-danger {
    background: var(--color-danger-soft);
    color: var(--color-danger);
}

.stat-card-value {
    display: block;

    overflow: hidden;

    margin-bottom: 5px;

    color: var(--color-text);

    font-size: 22px;
    font-weight: 700;

    letter-spacing: -0.4px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.stat-card-note {
    color: var(--color-text-muted);

    font-size: 10px;
}


/* =========================================================
   CONTENT CARD
========================================================= */

.content-card {
    width: 100%;

    background: var(--color-surface);

    border:
        1px solid
        var(--color-border);

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-card);
}

.content-card-header {
    min-height: 73px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 15px 18px;

    border-bottom:
        1px solid
        var(--color-border);
}

.content-card-header h2 {
    margin-bottom: 3px;

    color: var(--color-text);

    font-size: 14px;
    font-weight: 650;
}

.content-card-header p {
    color: var(--color-text-muted);

    font-size: 11px;
}


/* =========================================================
   INVOICE OVERVIEW
========================================================= */

.invoice-overview-card {
    min-height: 350px;
}


/* =========================================================
   TABLE
========================================================= */

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.invoice-table {
    width: 100%;

    border-collapse: collapse;
    border-spacing: 0;
}

.invoice-table thead {
    background: #f9fafb;
}

.invoice-table th {
    height: 42px;

    padding: 0 16px;

    border-bottom:
        1px solid
        var(--color-border);

    color: #667085;

    font-size: 10px;
    font-weight: 600;

    text-align: left;
    text-transform: uppercase;

    letter-spacing: 0.35px;

    white-space: nowrap;
}

.invoice-table td {
    height: 57px;

    padding: 0 16px;

    border-bottom:
        1px solid
        #edf0f4;

    color: #344054;

    font-size: 12px;

    white-space: nowrap;
}

.invoice-table tbody tr:last-child td {
    border-bottom: 0;
}

.invoice-table tbody tr {
    transition: background var(--transition-fast);
}

.invoice-table tbody tr:hover {
    background: #fafbfc;
}

.invoice-table-actions-heading {
    width: 100px;

    text-align: right !important;
}


/* =========================================================
   STATUS BADGES
========================================================= */

.status-badge {
    min-width: 76px;
    height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 9px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 600;
}

.status-badge-paid {
    background: var(--color-success-soft);
    color: var(--color-success);
}

.status-badge-unpaid {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.status-badge-overdue {
    background: var(--color-danger-soft);
    color: var(--color-danger);
}

.status-badge-draft {
    background: #f2f4f7;
    color: #667085;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    min-height: 275px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px 24px;

    text-align: center;
}

.empty-state-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 10px;

    background: #f2f4f7;
    color: #667085;
}

.empty-state-icon svg {
    width: 24px;
    height: 24px;
}

.empty-state h3 {
    margin-bottom: 6px;

    color: #344054;

    font-size: 14px;
    font-weight: 650;
}

.empty-state p {
    max-width: 400px;

    color: var(--color-text-muted);

    font-size: 11px;

    line-height: 1.6;
}

.button-empty-state {
    margin-top: 17px;
}


/* =========================================================
   SETTINGS
========================================================= */

.settings-layout {
    display: grid;
    gap: 18px;
}

.settings-card {
    overflow: hidden;
}

.settings-card-header {
    padding: 20px 22px 17px;

    border-bottom:
        1px solid
        var(--color-border);
}

.settings-card-header h2 {
    margin-bottom: 4px;

    color: var(--color-text);

    font-size: 15px;
    font-weight: 700;
}

.settings-card-header p {
    color: var(--color-text-secondary);

    font-size: 11px;
    line-height: 1.55;
}

.settings-card-body {
    padding: 22px;
}

.settings-grid {
    display: grid;

    gap: 18px 20px;
}

.settings-grid-two {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.settings-grid-three {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.settings-field {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 7px;
}

.settings-field-wide {
    grid-column: 1 / -1;
}

.settings-field > span {
    color: #475467;

    font-size: 11px;
    font-weight: 600;
}

.settings-field input,
.settings-field select {
    width: 100%;
    height: 40px;

    padding: 0 12px;

    border:
        1px solid
        var(--color-border-strong);

    border-radius: 7px;

    outline: none;

    background: #ffffff;
    color: var(--color-text);

    font-size: 12px;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.settings-field input::placeholder {
    color: #98a2b3;
}

.settings-field input:hover,
.settings-field select:hover {
    border-color: #c7d0dc;
}

.settings-field input:focus,
.settings-field select:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.09);
}

.settings-checkbox {
    min-height: 62px;

    display: flex;
    align-items: flex-start;

    gap: 11px;

    padding: 13px 14px;

    border:
        1px solid
        var(--color-border);

    border-radius: 8px;

    background: #fafbfc;

    cursor: pointer;
}

.settings-checkbox input {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    margin-top: 2px;

    accent-color: var(--color-primary);
}

.settings-checkbox span {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.settings-checkbox strong {
    color: #344054;

    font-size: 11px;
    font-weight: 650;
}

.settings-checkbox small {
    color: var(--color-text-muted);

    font-size: 10px;
    line-height: 1.5;
}

.settings-input-suffix {
    position: relative;
}

.settings-input-suffix input {
    padding-right: 45px;
}

.settings-input-suffix > span {
    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    color: var(--color-text-muted);

    font-size: 11px;

    pointer-events: none;
}

.settings-logo-row {
    display: flex;
    align-items: center;

    gap: 22px;
}

.settings-logo-preview {
    width: 150px;
    height: 82px;

    flex: 0 0 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border:
        1px dashed
        var(--color-border-strong);

    border-radius: 9px;

    background: #f9fafb;
    color: #98a2b3;
}

.settings-logo-preview span {
    font-size: 16px;
    font-weight: 750;

    letter-spacing: 1px;
}

.settings-logo-preview img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 10px;
}

.settings-logo-copy {
    min-width: 0;
}

.settings-logo-copy > strong {
    display: block;

    margin-bottom: 4px;

    color: #344054;

    font-size: 12px;
    font-weight: 650;
}

.settings-logo-copy > p {
    margin-bottom: 12px;

    color: var(--color-text-muted);

    font-size: 10px;
    line-height: 1.5;
}

.settings-logo-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.settings-file-button {
    position: relative;

    overflow: hidden;
}

.settings-file-button input {
    width: 1px;
    height: 1px;

    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.settings-actions {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 18px;

    padding: 0 2px 6px;
}

.settings-save-status {
    min-height: 18px;

    color: var(--color-success);

    font-size: 11px;
    font-weight: 600;
}

.settings-save-status.is-error {
    color: var(--color-danger);
}

.settings-save-button {
    min-width: 145px;
}

@media (max-width: 900px) {

    .settings-grid-three {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 650px) {

    .settings-grid-two,
    .settings-grid-three {
        grid-template-columns: 1fr;
    }

    .settings-logo-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-logo-preview {
        width: 100%;
        max-width: 220px;
    }

    .settings-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .settings-save-button {
        width: 100%;
    }

}


/* =========================================================
   SCROLLBAR
========================================================= */

.page-container::-webkit-scrollbar,
.table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.page-container::-webkit-scrollbar-track,
.table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.page-container::-webkit-scrollbar-thumb,
.table-wrapper::-webkit-scrollbar-thumb {
    background: #cfd6df;

    border: 2px solid transparent;
    border-radius: 999px;

    background-clip: padding-box;
}

.page-container::-webkit-scrollbar-thumb:hover,
.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #b8c1cd;

    border: 2px solid transparent;

    background-clip: padding-box;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    :root {
        --sidebar-width: 210px;
    }

    .dashboard-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 800px) {

    :root {
        --sidebar-width: 72px;
    }

    .sidebar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .sidebar-brand {
        justify-content: center;

        padding-left: 0;
        padding-right: 0;
    }

    .sidebar-brand-text,
    .sidebar-nav-item > span:last-child,
    .sidebar-footer {
        display: none;
    }

    .sidebar-nav-item {
        justify-content: center;

        padding: 0;
    }

    .sidebar-divider {
        width: 100%;

        margin-left: 0;
        margin-right: 0;
    }

    .topbar {
        padding:
            0
            18px;
    }

    .topbar-user-info {
        display: none;
    }

    .page-container {
        padding:
            22px
            20px
            32px;
    }

}


@media (max-width: 650px) {

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .page-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .page-heading .button {
        align-self: flex-start;
    }

    .topbar-search {
        width: min(280px, 55vw);
    }

}


@media (max-width: 500px) {

    .topbar-actions {
        gap: 8px;
    }

    .topbar-user {
        display: none;
    }

    .topbar-search {
        width: 100%;
    }

    .page-container {
        padding:
            18px
            14px
            28px;
    }

}


/* =========================================================
   CLIENTS
========================================================= */

.clients-card {
    min-height: 360px;
}

.clients-toolbar {
    min-height: 66px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 13px 16px;

    border-bottom:
        1px solid
        var(--color-border);
}

.clients-toolbar[hidden] {
    display: none;
}

.clients-search {
    width: min(420px, 100%);
    height: 38px;

    position: relative;

    display: flex;
    align-items: center;
}

.clients-search svg {
    width: 17px;
    height: 17px;

    position: absolute;

    left: 12px;

    color: var(--color-text-muted);

    pointer-events: none;
}

.clients-search input {
    width: 100%;
    height: 100%;

    padding:
        0
        13px
        0
        38px;

    border:
        1px solid
        var(--color-border-strong);

    border-radius: 7px;

    outline: none;

    background: #ffffff;
    color: var(--color-text);

    font-size: 12px;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.clients-search input:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.09);
}

.clients-count {
    flex: 0 0 auto;

    color: var(--color-text-secondary);

    font-size: 11px;
    font-weight: 600;
}

.clients-actions-heading {
    width: 150px;

    text-align: right !important;
}

.client-table-name,
.client-table-contact {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.client-table-name strong {
    color: var(--color-text);

    font-size: 12px;
    font-weight: 650;
}

.client-table-name span,
.client-table-contact span {
    color: var(--color-text-secondary);

    font-size: 10px;
}

.client-table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 6px;
}

.client-action-button {
    min-height: 31px;

    padding: 0 10px;

    border:
        1px solid
        var(--color-border-strong);

    border-radius: 6px;

    background: #ffffff;
    color: #475467;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.client-action-button:hover {
    background: #f9fafb;
    border-color: #c9d2de;
}

.client-action-button-danger {
    color: var(--color-danger);
}

.client-action-button-danger:hover {
    background: var(--color-danger-soft);
    border-color: #fecaca;
}


/* =========================================================
   CLIENT MODAL
========================================================= */

body.modal-open {
    overflow: hidden;
}

.client-modal {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px;
}

.client-modal[hidden] {
    display: none;
}

.client-modal-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(15, 23, 42, 0.42);

    backdrop-filter:
        blur(2px);
}

.client-modal-dialog {
    width: min(680px, 100%);
    max-height: calc(100vh - 56px);

    position: relative;
    z-index: 1;

    overflow-y: auto;

    background: #ffffff;

    border:
        1px solid
        var(--color-border);

    border-radius: 12px;

    box-shadow:
        0 24px 60px
        rgba(15, 23, 42, 0.18);
}

.client-modal-header {
    min-height: 82px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 22px 17px;

    border-bottom:
        1px solid
        var(--color-border);
}

.client-modal-header h2 {
    margin-bottom: 4px;

    color: var(--color-text);

    font-size: 17px;
    font-weight: 700;
}

.client-modal-header p {
    color: var(--color-text-secondary);

    font-size: 11px;
}

.client-modal-close {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: #667085;

    font-size: 23px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}

.client-modal-close:hover {
    background: #f2f4f7;
    color: var(--color-text);
}

.client-form {
    padding: 20px 22px 22px;
}

.client-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;
}

.client-form-field {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 6px;
}

.client-form-full {
    grid-column: 1 / -1;
}

.client-form-field label {
    color: #344054;

    font-size: 11px;
    font-weight: 600;
}

.client-form-field input {
    width: 100%;
    height: 39px;

    padding: 0 11px;

    border:
        1px solid
        var(--color-border-strong);

    border-radius: 7px;

    outline: none;

    background: #ffffff;
    color: var(--color-text);

    font-size: 12px;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.client-form-field input::placeholder {
    color: var(--color-text-muted);
}

.client-form-field input:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.09);
}

.client-form-error {
    min-height: 18px;

    margin-top: 12px;

    color: var(--color-danger);

    font-size: 11px;
    font-weight: 500;
}

.client-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    padding-top: 4px;
}


@media (max-width: 760px) {

    .clients-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .clients-search {
        width: 100%;
    }

    .client-modal {
        padding: 14px;
    }

    .client-modal-dialog {
        max-height:
            calc(100vh - 28px);
    }

    .client-form-grid {
        grid-template-columns: 1fr;
    }

    .client-form-full {
        grid-column: auto;
    }

}

