/* === CLIENT SELECTOR COMPONENT (processes page) === */
.client-selector {
    position: relative;
    z-index: 20;
}

.client-selector .form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.client-selector .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-focus-ring);
}

.client-selector .form-control.has-selection {
    background-color: var(--color-primary-subtle-bg);
    border-color: var(--color-primary);
}

.client-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 260;
    max-height: 160px;
    overflow-y: auto;
    display: none;
    margin-top: -2px;
}

.client-selector.active .client-dropdown {
    display: block;
}

.client-selector.active {
    z-index: 260;
}

.client-selector.active .form-control {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border-bottom-color: transparent;
}

.client-dropdown-section {
    padding: 0.5rem 0;
}

.client-dropdown-label {
    display: block;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.client-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 0.9rem;
    color: var(--color-text-main);
}

.client-option:hover {
    background: var(--color-bg-light);
}

.client-option.selected {
    background: var(--color-primary-subtle-bg-strong);
    font-weight: 600;
}

.client-option.hidden {
    display: none !important;
}

.client-option i {
    color: var(--color-text-muted);
    opacity: 0.7;
}

.client-empty {
    padding: 0.75rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

.client-dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0.25rem 0;
}

/* New client selected indicator */
.client-selector .form-control.is-new-client {
    background-color: var(--color-success-bg);
    border-color: var(--color-success);
    color: var(--color-success-ink);
}

.client-selector .form-control.is-new-client::placeholder {
    color: var(--color-success-ink);
}

/* Reference BCE treatment selector */
.reference-treatment-row {
    margin-top: 0.15rem;
}

.reference-treatment-selector {
    position: relative;
}

.reference-treatment-selector.is-empty .form-control {
    border-style: dashed;
}

.reference-treatment-option {
    align-items: flex-start;
}

.reference-treatment-option span {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reference-treatment-helper {
    margin-top: 0.35rem;
    color: var(--color-text-muted);
    line-height: 1.35;
}

/* === TRANSFORM CARDS - UNIFORM HEIGHT === */
.transform-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: visible;
}

.transform-card.client-selector-open {
    z-index: 220;
}

.transform-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.transform-row {
    margin-bottom: 0.75rem;
}

.transform-extra {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.transform-client {
    margin-top: auto;
}

.transform-submit {
    margin-top: auto;
    margin-bottom: 0;
}

.process-inline-client-create,
.clients-inline-create {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.process-inline-client-create-panel,
.clients-inline-create-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 1 420px;
}

.process-inline-client-create-panel .form-control,
.clients-inline-create-form .form-control {
    min-width: 220px;
}

.odoo-config-mode-note {
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-light);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Excel field stack - aligns fields between cards */
.excel-field-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.excel-field-item {
    min-height: 65px;
}

/* Enhanced create option styling */
.client-create-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    background: var(--color-hover-primary-02);
    border-radius: var(--radius-sm);
    margin: 0.25rem 0.5rem 0.5rem;
}

.client-create-option:hover {
    background: var(--color-primary-subtle-bg-strong);
}

.client-create-option i {
    color: var(--color-success);
}

@media (max-width: 767px) {

    .process-inline-client-create-panel,
    .clients-inline-create-form {
        flex-basis: 100%;
        width: 100%;
        flex-wrap: wrap;
    }

    .process-inline-client-create-panel .form-control,
    .clients-inline-create-form .form-control,
    .clients-inline-create-form .btn {
        width: 100%;
    }

    .process-inline-client-create-panel .form-control {
        width: 100%;
    }
}

/* === CLIENT CARDS GRID (processes page) === */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

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

.client-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.client-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.client-card-hidden {
    display: none;
}

.client-card-header-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.client-card-header-link:hover {
    color: inherit;
}

.client-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-white) 100%);
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s ease;
}

.client-card-header-link:hover .client-card-header {
    background: linear-gradient(135deg, var(--color-hover-primary-05) 0%, var(--color-white) 100%);
}

.client-card-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-details {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.client-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: white;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-sm:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.client-quick-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.client-quick-actions .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

/* === SETTINGS === */
.settings-card {
    padding: 0;
    overflow: hidden;
}

.settings-tabs-bar {
    display: flex;
    padding: 0.5rem 1rem 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-light);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    gap: 0.125rem;
}

.settings-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    bottom: -1px;
    transition: color 0.15s ease, background 0.15s ease;
}

.settings-tab-btn:hover {
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.6);
}

.settings-tab-btn.is-active {
    color: var(--color-primary);
    background: var(--color-white);
    border-color: var(--color-border);
    border-bottom-color: var(--color-white);
    font-weight: 600;
}

.settings-tab-btn.is-danger:hover {
    color: var(--color-danger);
}

.settings-tab-btn.is-danger.is-active {
    color: var(--color-danger);
    border-bottom-color: var(--color-white);
}

.settings-panel {
    padding: 1.75rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.settings-panel.is-active {
    opacity: 1;
    transform: translateY(0);
}

.settings-avatar-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-light);
}

.settings-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
    color: var(--color-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.settings-avatar-fallback {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.settings-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.settings-avatar-upload-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-avatar-remove-form {
    margin: 0;
}

@media (max-width: 600px) {
    .settings-tabs-bar {
        overflow-x: auto;
        padding-bottom: 0;
    }

    .settings-tab-btn {
        font-size: 0.8rem;
        padding: 0.55rem 0.75rem;
    }

    .settings-avatar-block {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-avatar-preview {
        margin: 0 auto;
    }
}

/* === DANGER ZONE ITEMS (settings data tab) === */
.danger-zone-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
}

.danger-zone-item--warning {
    border-color: var(--color-warning);
    background: var(--color-warning-bg);
}

.danger-zone-item--danger {
    border-color: var(--color-danger);
    background: var(--color-danger-bg);
}

.danger-zone-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.danger-zone-item--warning .danger-zone-icon {
    background: rgba(228, 168, 75, 0.15);
    color: var(--color-warning);
}

.danger-zone-item--danger .danger-zone-icon {
    background: rgba(220, 53, 69, 0.12);
    color: var(--color-danger);
}

.danger-zone-body {
    flex: 1;
    min-width: 0;
}

.danger-zone-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.375rem;
    color: var(--color-text-main);
}

.danger-zone-item--danger .danger-zone-title {
    color: var(--color-danger);
}

.danger-zone-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0 0 0.875rem;
}

/* === CONFIRMATION MODAL === */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.custom-modal-overlay.d-none {
    display: none !important;
}

.custom-modal-content {
    background: rgba(30, 28, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.875rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-modal-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1rem;
    color: var(--color-danger);
}

.custom-modal-body {
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.custom-modal-body strong {
    color: rgba(255, 255, 255, 0.9);
}

.custom-modal-body .form-control {
    margin-top: 0.75rem;
}

.custom-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-modal-content .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.5;
}

.custom-modal-content .btn-close:hover {
    opacity: 1;
}

/* === BADGE SIMPLIFICATION === */
.badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.client-files {
    padding: 0.75rem;
}

.client-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.client-file-item:hover {
    background: var(--color-bg-light);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.file-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
}

.file-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.file-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.file-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.file-status-label {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.15rem;
}

.file-status-label.status-done {
    color: var(--color-success);
}

.file-status-label.status-pending,
.file-status-label.status-queued {
    color: var(--color-warning);
}

.file-status-label.status-processing {
    color: var(--color-info);
}

.file-status-label.status-error {
    color: var(--color-danger);
}

.file-status-label.status-canceled {
    color: var(--color-text-muted);
}

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

.progress-pill {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--color-info-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-info);
    min-width: 50px;
}

.progress-pill-fill {
    height: 4px;
    background: var(--color-info);
    border-radius: 2px;
    min-width: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-done {
    background: var(--color-success);
}

.status-pending {
    background: var(--color-warning);
}

.status-queued {
    background: var(--color-warning);
}

.status-error {
    background: var(--color-danger);
}

.status-canceled {
    background: var(--color-text-muted);
}

.status-processing {
    background: var(--color-info);
}

.client-files-more {
    padding: 0.5rem 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    border-top: 1px dashed var(--color-border);
    margin-top: 0.5rem;
}

.view-all-wrapper {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.view-all-wrapper .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* === CLIENT DETAIL PAGE === */
.shared-users-list {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.share-user-select {
    max-width: 400px;
}

.shared-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-info-bg);
    color: var(--color-info);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.shared-user-email {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-unshare {
    background: var(--color-info-soft);
    border: none;
    color: var(--color-info);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-unshare:hover {
    background: var(--color-danger);
    color: white;
}

.process-log-details {
    margin-top: 0.45rem;
    font-size: 0.8rem;
}

.process-log-details summary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-primary);
    font-weight: 600;
    list-style: none;
}

.process-log-details summary::-webkit-details-marker {
    display: none;
}

.process-log-details summary::before {
    content: '▸';
    font-size: 0.75rem;
    transition: transform 0.15s ease;
}

.process-log-details[open] summary::before {
    transform: rotate(90deg);
}

.process-log-counts {
    display: flex;
    gap: 0.5rem;
    margin: 0.35rem 0 0.5rem;
    flex-wrap: wrap;
}

.process-log-count {
    font-size: 0.74rem;
    font-weight: 600;
}

.process-log-count-error {
    color: var(--color-danger);
}

.process-log-count-warning {
    color: var(--color-warning);
}

.process-log-list {
    margin: 0;
    padding-left: 1.1rem;
}

.process-log-list li {
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.process-log-overflow {
    margin: 0.45rem 0 0;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

/* === FILTER & MISC === */
.client-filter-select-wrapper {
    min-width: 260px;
}

.process-center-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.process-center-toolbar .btn.btn-sm {
    padding: 0.4rem 0.68rem;
    font-size: 0.78rem;
    line-height: 1.1;
}

.process-center-toolbar .btn.btn-sm .icon-14 {
    width: 12px;
    height: 12px;
}

.process-center-inline-filter-form {
    margin: 0;
}

.process-center-search-shell {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.process-center-search-toggle {
    white-space: nowrap;
}

.process-center-search-field {
    width: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: width 0.24s ease, opacity 0.2s ease;
}

.process-center-search-shell.is-expanded .process-center-search-field {
    width: min(300px, 40vw);
    opacity: 1;
    pointer-events: auto;
}

.process-center-search-field .form-control {
    min-width: 0;
}

.process-center-filters-toggle.is-active {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.process-center-advanced-filters {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: end;
    padding: 0.75rem;
    margin-top: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-light);
}

.process-center-advanced-filters.is-open {
    display: grid;
}

.process-center-advanced-field {
    min-width: 0;
}

@media (max-width: 991px) {
    .process-center-toolbar {
        width: 100%;
        justify-content: stretch;
    }

    .process-center-search-shell {
        flex: 1 1 auto;
    }

    .process-center-search-field {
        flex: 1 1 0;
    }

    .process-center-search-shell.is-expanded .process-center-search-field {
        width: 100%;
    }

    .process-center-advanced-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .process-center-search-shell {
        width: 100%;
    }

    .process-center-advanced-filters {
        grid-template-columns: 1fr;
    }
}

.transform-card-title {
    margin: 0;
    font-size: 1rem;
}

.transform-type-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-light);
}

.transform-type-switch .btn {
    min-width: 110px;
    justify-content: center;
}

/* Treatment center table should fit viewport without horizontal scroll */
#process-center-card .table-wrapper {
    overflow-x: hidden;
}

#process-center-card .table-processes-center {
    width: 100%;
    table-layout: fixed;
}

#process-center-card .table-processes-center th,
#process-center-card .table-processes-center td {
    padding: 0.58rem 0.38rem;
    vertical-align: middle;
}

#process-center-card .table-processes-center th {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
}

#process-center-card .table-processes-center td {
    font-size: 0.82rem;
}

#process-center-card .process-center-col-client,
#process-center-card .process-center-client {
    width: 12%;
}

#process-center-card .process-center-col-file,
#process-center-card .process-center-file {
    width: 16%;
}

#process-center-card .process-center-col-treatment,
#process-center-card .process-center-treatment {
    width: 14%;
}

#process-center-card .process-center-col-owner,
#process-center-card .process-center-owner {
    width: 10%;
}

#process-center-card .process-center-col-date,
#process-center-card .process-center-date {
    width: 10%;
}

#process-center-card .process-center-col-status,
#process-center-card .process-center-status {
    width: 9%;
}

#process-center-card .process-center-col-progress,
#process-center-card .process-center-progress {
    width: 9%;
}

#process-center-card .process-center-col-duration,
#process-center-card .process-center-duration {
    width: 7%;
}

#process-center-card .process-center-col-actions,
#process-center-card .process-center-actions {
    width: 13%;
}

#process-center-card .process-center-client,
#process-center-card .process-center-file,
#process-center-card .process-center-treatment,
#process-center-card .process-center-owner,
#process-center-card .process-center-date,
#process-center-card .process-center-duration,
#process-center-card .process-center-actions {
    min-width: 0;
}

#process-center-card .process-center-client a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#process-center-card .process-center-file,
#process-center-card .process-center-treatment,
#process-center-card .process-center-owner,
#process-center-card .process-center-date,
#process-center-card .process-center-duration {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#process-center-card .process-center-progress .progress-pill {
    min-width: 56px;
    max-width: 96px;
}

#process-center-card .process-center-status .badge {
    padding: 0.2rem 0.42rem;
    font-size: 0.64rem;
}

#process-center-card .process-center-actions .action-buttons {
    gap: 0.18rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
    max-width: 108px;
}

#process-center-card .process-center-actions {
    white-space: normal;
}

#process-center-card .process-center-actions .btn-icon-sm {
    width: 24px;
    height: 24px;
}

#process-center-card .process-center-actions .btn-icon-sm i {
    width: 12px;
    height: 12px;
}

@media (max-width: 1400px) {

    #process-center-card .process-center-col-duration,
    #process-center-card .table-processes-center td.process-center-duration {
        display: none;
    }

    #process-center-card .process-center-col-client,
    #process-center-card .process-center-client {
        width: 12%;
    }

    #process-center-card .process-center-col-file,
    #process-center-card .process-center-file {
        width: 18%;
    }

    #process-center-card .process-center-col-treatment,
    #process-center-card .process-center-treatment {
        width: 16%;
    }

    #process-center-card .process-center-col-owner,
    #process-center-card .process-center-owner {
        width: 12%;
    }

    #process-center-card .process-center-col-date,
    #process-center-card .process-center-date {
        width: 12%;
    }

    #process-center-card .process-center-col-status,
    #process-center-card .process-center-status {
        width: 8%;
    }

    #process-center-card .process-center-col-progress,
    #process-center-card .process-center-progress {
        width: 8%;
    }

    #process-center-card .process-center-col-actions,
    #process-center-card .process-center-actions {
        width: 14%;
    }
}

@media (max-width: 1200px) {

    #process-center-card .process-center-col-owner,
    #process-center-card .table-processes-center td.process-center-owner {
        display: none;
    }

    #process-center-card .process-center-col-client,
    #process-center-card .process-center-client {
        width: 14%;
    }

    #process-center-card .process-center-col-file,
    #process-center-card .process-center-file {
        width: 24%;
    }

    #process-center-card .process-center-col-treatment,
    #process-center-card .process-center-treatment {
        width: 20%;
    }

    #process-center-card .process-center-col-date,
    #process-center-card .process-center-date {
        width: 14%;
    }

    #process-center-card .process-center-col-status,
    #process-center-card .process-center-status {
        width: 9%;
    }

    #process-center-card .process-center-col-progress,
    #process-center-card .process-center-progress {
        width: 9%;
    }

    #process-center-card .process-center-col-actions,
    #process-center-card .process-center-actions {
        width: 10%;
    }
}

@media (max-width: 980px) {

    #process-center-card .process-center-col-date,
    #process-center-card .table-processes-center td.process-center-date {
        display: none;
    }

    #process-center-card .process-center-col-client,
    #process-center-card .process-center-client {
        width: 17%;
    }

    #process-center-card .process-center-col-file,
    #process-center-card .process-center-file {
        width: 28%;
    }

    #process-center-card .process-center-col-treatment,
    #process-center-card .process-center-treatment {
        width: 23%;
    }

    #process-center-card .process-center-col-status,
    #process-center-card .process-center-status {
        width: 10%;
    }

    #process-center-card .process-center-col-progress,
    #process-center-card .process-center-progress {
        width: 10%;
    }

    #process-center-card .process-center-col-actions,
    #process-center-card .process-center-actions {
        width: 12%;
    }

    #process-center-card .process-center-actions .btn-icon-sm {
        width: 22px;
        height: 22px;
    }

    #process-center-card .process-center-actions .btn-icon-sm i {
        width: 11px;
        height: 11px;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }

    .transform-type-switch {
        width: 100%;
        justify-content: stretch;
    }

    .transform-type-switch .btn {
        flex: 1;
    }
}
