/* CCOS Tools — глобальный слой компонентов нового дизайна */


.admin-users-page .auth-form-card {
    padding: 24px;
}

.admin-users-page .ds-data-table th:first-child,
.admin-users-page .ds-data-table td:first-child {
    width: 42px;
}

.admin-users-page .ds-data-table th:last-child,
.admin-users-page .ds-data-table td:last-child {
    width: 160px;
}

.admin-users-page .form-actions {
    justify-content: flex-end;
    margin-top: 24px;
}

.admin-user-passwords-page .container { max-width:650px; }
.admin-user-passwords-table { width:100%; min-width:0; table-layout:fixed; }
.admin-user-passwords-page .admin-user-passwords-table th:nth-child(1),
.admin-user-passwords-page .admin-user-passwords-table td:nth-child(1) { width:auto; }
.admin-user-passwords-page .admin-user-passwords-table th:nth-child(2),
.admin-user-passwords-page .admin-user-passwords-table td:nth-child(2) { width:120px; }
.admin-user-passwords-page .admin-user-passwords-table th:nth-child(3),
.admin-user-passwords-page .admin-user-passwords-table td:nth-child(3) { width:340px; }
.admin-user-password-field { position:relative; min-width:0; }
.admin-user-password-field input { width:100%; min-width:0; padding-right:137px; }
.admin-user-password-actions { position:absolute; top:5px; right:5px; display:flex; align-items:center; gap:4px; white-space:nowrap; }
.admin-user-password-actions .ui-button { width:28px; min-width:28px; height:28px; min-height:28px; padding:0; border-radius:6px; }
.admin-user-password-actions .ui-button svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.admin-user-password-actions .ui-button.is-copied { color:#16a34a; }
html[data-theme="dark"] .admin-user-password-actions .ui-button.is-copied { color:#34d399; }

.password-visibility-icon {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.password-visibility-icon-hide,
.is-password-visible .password-visibility-icon-show {
    display: none;
}

.is-password-visible .password-visibility-icon-hide {
    display: block;
}

.design-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.design-section {
    margin-bottom: 28px;
}

.design-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--design-text);
    font-size: 15px;
    font-weight: 600;
}

.design-empty-state {
    padding: 48px 24px;
    color: var(--design-text-secondary);
    text-align: center;
}

.design-empty-state > svg {
    margin-bottom: 16px;
    color: var(--design-text-muted);
}

.design-empty-state-title {
    margin-bottom: 6px;
    color: var(--design-text);
    font-size: 15px;
    font-weight: 600;
}

.design-empty-state-text {
    margin-bottom: 20px;
    font-size: 13px;
}

.design-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.design-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.design-status::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

.design-status-active {
    background: var(--design-green-soft);
    color: var(--design-green);
}

.design-status-inactive {
    background: var(--design-card-soft);
    color: var(--design-text-muted);
}

.design-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: var(--design-text-secondary);
    font-size: 13px;
}

.design-progress-value {
    color: var(--design-text);
    font-weight: 600;
}

.design-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--design-card-soft);
}

.design-progress-fill {
    width: var(--progress, 0%);
    height: 100%;
    border-radius: 4px;
    background: var(--design-accent);
}

.design-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--design-text-muted);
    font-size: 12px;
}

.design-meta-row strong {
    color: var(--design-text-secondary);
    font-weight: 500;
}

.design-field-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--design-border);
    font-size: 13px;
}

.design-field-row:last-child {
    border-bottom: 0;
}

.design-field-label {
    color: var(--design-text-muted);
}

.design-field-value {
    color: var(--design-text-secondary);
    font-weight: 500;
    text-align: right;
}

.design-timeline-row {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--design-border);
    font-size: 13px;
}

.design-timeline-row:last-child {
    border-bottom: 0;
}

.design-timeline-date {
    min-width: 100px;
    color: var(--design-text-muted);
    font-family: inherit;
    font-size: 12px;
}

.design-timeline-text {
    color: var(--design-text-secondary);
}

.design-link-muted {
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--design-text-muted);
    font-size: 12px;
}

.design-link-muted:hover {
    background: none;
    color: var(--design-text);
}

.design-link {
    display: inline;
    width: fit-content;
    border-bottom: 1px dashed rgba(255, 216, 93, .4);
    color: #ffc200;
    text-decoration: none;
}

.design-link:hover {
    border-bottom-color: var(--design-accent);
    color: #ffc200;
}

html[data-theme="dark"] .design-link,
html[data-theme="dark"] .design-link:hover {
    color: var(--design-accent);
}

/* Кнопки действий в строках таблиц */
.table-action-button,
.table-action-button:hover,
.table-action-button:active {
    display: inline-flex;
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--table-action-bg);
    color: var(--table-action-color);
    cursor: pointer;
    transform: none;
    transition: background-color .15s, color .15s;
}
.table-action-button svg { width: 12px; height: 12px; fill: currentColor; }
.table-action-button--edit { --table-action-bg:rgba(230,189,63,.18); --table-action-color:#8a6800; --table-action-hover:#e6bd3f; --table-action-hover-color:#15171a; }
.table-action-button--comment { --table-action-bg:rgba(42,120,214,.14); --table-action-color:#2168b8; --table-action-hover:#2a78d6; --table-action-hover-color:#fff; }
.table-action-button--delete { --table-action-bg:rgba(239,68,68,.14); --table-action-color:#dc2626; --table-action-hover:#dc2626; --table-action-hover-color:#fff; }
.table-action-button:hover:not(:disabled) { background:var(--table-action-hover); color:var(--table-action-hover-color); }
.table-action-button:focus-visible { outline:2px solid var(--design-accent); outline-offset:2px; }
.table-action-button:disabled { cursor:not-allowed; opacity:.5; }
html[data-theme="dark"] .table-action-button--edit { --table-action-bg:rgba(255,216,93,.16); --table-action-color:#ffd85d; --table-action-hover:#ffd85d; }
html[data-theme="dark"] .table-action-button--comment { --table-action-bg:rgba(96,165,250,.16); --table-action-color:#60a5fa; --table-action-hover:#2a78d6; }
html[data-theme="dark"] .table-action-button--delete { --table-action-bg:rgba(239,68,68,.16); --table-action-color:#ef4444; --table-action-hover:#ef4444; }

@media (max-width: 700px) {
    .design-progress-label {
        flex-direction: column;
    }

    .design-field-row {
        flex-direction: column;
        gap: 2px;
    }

    .design-field-value {
        text-align: left;
    }

}
