Files
ave-cms/adminx/modules/Customers/assets/customers.css
T
2026-07-30 11:56:32 +03:00

877 lines
18 KiB
CSS

.customers-tabs {
margin-bottom: 18px;
}
.customers-tabs a,
.customers-tabs a:hover {
text-decoration: none;
}
.customers-filter {
display: flex;
gap: 10px;
}
.customers-filter .input-wrap {
min-width: 280px;
}
.customers-filter .input-wrap > i {
position: absolute;
top: 50%;
left: 12px;
transform: translateY(-50%);
}
.customers-filter .input {
padding-left: 36px;
}
.customers-summary ~ .card td small {
display: block;
margin-top: 4px;
color: var(--text-secondary);
}
.customers-table .customers-actions-col {
width: 104px;
text-align: right;
}
.customers-table td:last-child {
text-align: right;
}
.customer-editor-drawer {
width: min(66.666vw, 1240px);
max-width: none;
}
.customer-editor-drawer > form {
display: flex;
flex: 1 1 auto;
min-height: 0;
flex-direction: column;
}
.customer-editor-drawer .drawer-body {
flex: 1 1 auto;
background: var(--background-inset);
}
.customers-editor-meta {
display: grid;
grid-template-columns: 110px repeat(2, minmax(0, 1fr));
gap: 10px;
margin-bottom: 14px;
}
.customers-editor-meta > span {
display: grid;
grid-template-columns: 34px minmax(0, 1fr);
grid-template-rows: auto auto;
column-gap: 9px;
align-items: center;
min-height: 58px;
padding: 10px 12px;
border-radius: var(--radius-md);
background: var(--background-surface);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.customers-editor-meta i {
display: grid;
grid-row: 1 / 3;
place-items: center;
width: 34px;
height: 34px;
border-radius: var(--radius-sm);
background: var(--blue-100);
color: var(--blue-600);
font-size: 18px;
}
.customers-editor-meta b {
min-width: 0;
overflow: hidden;
font-size: 13px;
text-overflow: ellipsis;
white-space: nowrap;
}
.customers-editor-meta small {
color: var(--text-secondary);
font-size: 11.5px;
}
.customers-editor-sections {
display: grid;
gap: 14px;
}
.customers-editor-access {
margin-top: 14px;
}
.customers-editor-access .customers-switch-card:last-child {
grid-column: 1 / -1;
}
.customers-editor-checkbox {
display: flex;
align-items: center;
gap: 10px;
min-height: 42px;
}
.customers-editor-checkbox > span:last-child {
color: var(--text-secondary);
font-size: 13px;
}
.customers-editor-password {
max-width: 560px;
}
.customers-field-builder {
display: grid;
grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr);
gap: 16px;
align-items: start;
}
.customers-field-structure,
.customers-profile-preview {
min-width: 0;
}
.customers-profile-preview {
padding: 0;
overflow: hidden;
position: sticky;
top: 80px;
}
.customers-field-list {
display: grid;
gap: 8px;
padding: 12px;
background: var(--background-inset);
}
.customers-field-item {
display: flex;
align-items: center;
gap: 12px;
min-height: 66px;
padding: 11px 12px 11px 4px;
border: 1px solid var(--border-default);
border-radius: var(--radius-md);
background: var(--background-surface);
transition: border-color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}
.customers-field-item:hover {
border-color: var(--border-strong);
}
.customers-field-item.is-disabled {
opacity: 0.58;
}
.customers-field-item.is-dragging {
opacity: 0.65;
transform: scale(0.995);
}
.customers-field-handle {
display: grid;
place-items: center;
align-self: stretch;
width: 34px;
border: 0;
background: transparent;
color: var(--text-muted);
cursor: grab;
}
.customers-field-handle:active {
cursor: grabbing;
}
.customers-field-icon {
--tile-bg: var(--blue-100);
--tile-fg: var(--blue-600);
}
.customers-field-copy {
display: flex;
flex: 1 1 auto;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.customers-field-copy b {
overflow: hidden;
font-size: 14px;
text-overflow: ellipsis;
white-space: nowrap;
}
.customers-field-copy > span {
color: var(--text-secondary);
font-size: 12.5px;
}
.customers-field-copy .customers-field-places {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin-top: 2px;
}
.customers-field-places .badge {
font-size: 10.5px;
}
.customers-field-toggle {
flex: 0 0 auto;
}
.customers-field-actions {
display: flex;
gap: 4px;
flex: 0 0 auto;
}
.customers-preview-form {
display: grid;
gap: 14px;
padding: 18px;
}
.customers-preview-form .field[hidden] {
display: none;
}
.customers-preview-form :disabled {
opacity: 1;
cursor: default;
}
.customer-field-drawer {
width: min(66.666vw, 1180px);
max-width: none;
}
.customer-field-drawer > form {
display: flex;
flex: 1 1 auto;
flex-direction: column;
min-height: 0;
}
.customer-field-drawer .drawer-body {
flex: 1 1 auto;
background: var(--background-inset);
}
.customers-field-form {
display: grid;
gap: 14px;
}
.customers-form-section {
padding: 16px;
border: 1px solid var(--border-default);
border-radius: var(--radius-md);
background: var(--background-surface);
}
.customers-form-section-head {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border-default);
}
.customers-form-section-head > div {
display: flex;
flex: 1 1 auto;
flex-direction: column;
gap: 3px;
min-width: 0;
}
.customers-form-section-head > div > span {
color: var(--text-secondary);
font-size: 12.5px;
}
.customers-options {
display: grid;
gap: 8px;
}
.customers-option-row {
display: grid;
grid-template-columns: 24px minmax(0, 1fr) 36px;
gap: 8px;
align-items: center;
}
.customers-option-row > i {
text-align: center;
}
.customers-switch-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.customers-switch-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
min-height: 72px;
padding: 12px 14px;
border: 1px solid var(--border-default);
border-radius: var(--radius-md);
cursor: pointer;
}
.customers-switch-card > span:first-child {
display: flex;
flex-direction: column;
gap: 4px;
}
.customers-switch-card small {
color: var(--text-secondary);
line-height: 1.35;
}
.customers-auth-note {
display: flex;
align-items: flex-start;
gap: 12px;
margin-bottom: 16px;
}
.customers-auth-note .icon-tile {
flex: 0 0 auto;
}
.customers-auth-note b {
display: block;
margin-bottom: 3px;
}
.customers-auth-note p {
margin: 0;
color: var(--text-secondary);
line-height: 1.5;
text-wrap: pretty;
}
.customers-auth-form {
display: grid;
gap: 16px;
}
.customers-auth-section {
padding: 0;
overflow: hidden;
}
.customers-auth-section > .ax-list-head {
margin: 0;
}
.customers-checkout-body {
display: grid;
gap: 16px;
padding: 18px;
}
.customers-checkout-note {
display: flex;
align-items: flex-start;
gap: 9px;
margin: 0;
}
.customers-checkout-note p {
margin: 0;
}
.customers-checkout-template-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.customers-checkout-template-head > div {
display: flex;
flex-direction: column;
gap: 3px;
}
.customers-checkout-template-head small,
.customers-checkout-template-tags button span {
color: var(--text-secondary);
}
.customers-checkout-template-tags button {
align-items: flex-start;
text-align: left;
}
.customers-auth-settings-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
padding: 18px;
}
.customers-auth-fixed {
min-width: 0;
}
.customers-auth-fixed-value {
display: flex;
align-items: center;
gap: 10px;
min-height: 42px;
padding: 8px 11px;
border-radius: var(--radius-sm);
background: var(--background-inset);
}
.customers-auth-fixed-value > i {
color: var(--blue-600);
font-size: 20px;
}
.customers-auth-fixed-value > span {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.customers-auth-fixed-value small {
color: var(--text-secondary);
line-height: 1.3;
}
.customers-auth-fields {
padding: 0 18px 18px;
}
.customers-auth-fields-head,
.customers-auth-field-row {
display: grid;
grid-template-columns: minmax(240px, 1fr) 130px 130px;
align-items: center;
gap: 16px;
}
.customers-auth-fields-head {
min-height: 38px;
color: var(--text-secondary);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
}
.customers-auth-fields-head > span:not(:first-child) {
text-align: center;
}
.customers-auth-field-row {
min-height: 62px;
padding: 9px 12px;
border-radius: var(--radius-sm);
}
.customers-auth-field-row:nth-child(even) {
background: var(--background-inset);
}
.customers-auth-field-row > span:first-child {
display: flex;
align-items: center;
gap: 11px;
min-width: 0;
}
.customers-auth-field-row > span:first-child > i {
display: grid;
place-items: center;
width: 34px;
height: 34px;
border-radius: var(--radius-sm);
background: var(--blue-100);
color: var(--blue-600);
font-size: 18px;
}
.customers-auth-field-row > span:first-child > span {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.customers-auth-field-row small {
color: var(--text-secondary);
line-height: 1.3;
}
.customers-auth-field-row > .switch,
.customers-auth-field-row > .badge {
justify-self: center;
}
.customers-auth-field-row.is-disabled > span:first-child {
opacity: 0.55;
}
.customers-auth-restrictions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
padding: 18px;
}
.customers-auth-reset {
min-height: 82px;
}
.customers-auth-actions {
display: flex;
justify-content: flex-end;
padding: 2px 0 8px;
}
.customers-auth-settings-grid [hidden] {
display: none;
}
.customers-social-head {
margin-top: 26px;
}
.customers-social-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
.customers-social-card {
min-width: 0;
padding: 0;
overflow: hidden;
}
.customers-social-card > .ax-list-head {
margin: 0;
}
.customers-social-card .ax-list-title {
min-width: 0;
}
.customers-social-card .ax-list-title > div {
min-width: 0;
}
.customers-social-card .ax-list-title h3 {
margin: 0 0 3px;
font-size: 15px;
}
.customers-social-card .ax-list-title p {
margin: 0;
line-height: 1.4;
text-wrap: pretty;
}
.customers-social-mark {
display: grid;
place-items: center;
width: 40px;
height: 40px;
flex: 0 0 auto;
border-radius: var(--radius-sm);
color: #fff;
font-size: 15px;
font-weight: 800;
}
.customers-social-mark.is-yandex {
background: #fc3f1d;
}
.customers-social-mark.is-vk {
background: #07f;
font-size: 12px;
}
.customers-social-mark.is-smsc {
background: var(--cyan-600);
font-size: 10px;
}
.customers-social-status {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 16px;
}
.customers-social-checks {
display: flex;
min-width: 0;
flex-wrap: wrap;
gap: 8px 16px;
}
.customers-social-checks span {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--text-muted);
font-size: 12px;
}
.customers-social-checks span.is-ready {
color: var(--green-700);
}
.customers-social-status > .btn {
flex: 0 0 auto;
}
.customers-social-fields {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
padding: 16px;
}
.customers-social-fields small {
color: var(--text-muted);
font-weight: 500;
}
.customers-social-callback {
grid-column: 1 / -1;
}
.customers-social-callback .input-copy {
display: grid;
grid-template-columns: minmax(0, 1fr) 40px;
gap: 6px;
}
.customers-social-rules {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
padding: 0 16px 16px;
}
.customers-social-rules .customers-switch-card {
min-height: 78px;
}
.customers-pages-form {
display: grid;
gap: 16px;
}
.customers-pages-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
.customers-page-card {
min-width: 0;
padding: 0;
overflow: hidden;
}
.customers-page-card-head {
display: flex;
align-items: center;
gap: 12px;
min-height: 76px;
padding: 14px 16px;
background: transparent;
}
.customers-page-card-head .icon-tile {
flex: 0 0 auto;
}
.customers-page-card-head > div {
min-width: 0;
}
.customers-page-card-copy {
flex: 1 1 auto;
}
.customers-page-card-head > .btn {
flex: 0 0 auto;
}
.customers-page-card-head a,
.customers-page-card-head a:hover {
text-decoration: none;
}
.customers-page-card-head h3 {
margin: 0 0 3px;
font-size: 15px;
text-wrap: balance;
}
.customers-page-card-head span {
color: var(--text-secondary);
font-size: 12.5px;
line-height: 1.35;
text-wrap: pretty;
}
.customers-page-fields {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
padding: 16px;
}
.customers-page-fields .field:nth-child(3) {
grid-column: auto;
}
.customers-page-card-actions {
display: flex;
align-items: center;
gap: 4px;
flex: 0 0 auto;
margin-left: auto;
}
.customers-page-card-actions a,
.customers-page-card-actions a:hover {
text-decoration: none;
}
.customers-page-fields .field:nth-child(5) {
grid-column: 1 / -1;
}
.customers-page-fields textarea {
resize: vertical;
}
.customers-service-routes {
margin-top: 0;
}
.customers-service-actions {
display: flex;
align-items: center;
gap: 8px;
margin-left: auto;
}
.customer-auth-form-drawer {
width: min(66.666vw, 1280px);
max-width: none;
}
.customer-auth-form-drawer > form {
display: flex;
flex: 1 1 auto;
flex-direction: column;
min-height: 0;
}
.customers-auth-template-body {
flex: 1 1 auto;
padding: 0;
overflow: hidden;
background: var(--background-inset);
}
.customers-auth-template-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 300px;
height: 100%;
min-height: 0;
}
.customers-auth-template-editor {
display: flex;
min-width: 0;
min-height: 0;
flex-direction: column;
padding: 16px;
}
.customers-auth-template-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.customers-auth-template-toolbar > div {
display: flex;
align-items: center;
gap: 6px;
}
.customers-auth-template-code {
flex: 1 1 auto;
min-height: 0;
overflow: hidden;
}
.customers-auth-template-code .CodeMirror {
flex: 1 1 auto;
height: auto;
min-height: 0;
border: 1px solid var(--border-default);
border-radius: var(--radius-sm);
font-size: 13px;
}
.customers-auth-template-code .field-error {
display: block;
min-height: 18px;
padding-top: 4px;
color: var(--red-600);
font-size: 12px;
}
.customers-auth-template-help {
min-width: 0;
overflow-y: auto;
padding: 16px;
border-left: 1px solid var(--border-default);
background: var(--background-surface);
}
.customers-auth-template-help > div:first-child {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 14px;
padding-bottom: 14px;
border-bottom: 1px solid var(--border-default);
}
.customers-auth-template-help > div:first-child > div {
display: flex;
flex-direction: column;
gap: 3px;
}
.customers-auth-template-help > div:first-child span {
color: var(--text-secondary);
font-size: 12px;
line-height: 1.35;
}
.customers-auth-template-tags {
display: grid;
gap: 7px;
}
.customers-auth-template-tags button {
display: flex;
min-width: 0;
flex-direction: column;
gap: 3px;
padding: 9px 10px;
border: 1px solid var(--border-default);
border-radius: var(--radius-sm);
background: var(--background-surface);
color: var(--text-primary);
text-align: left;
cursor: pointer;
transition: border-color 0.16s ease, background-color 0.16s ease;
}
.customers-auth-template-tags button:hover {
border-color: var(--blue-400);
background: var(--blue-50);
}
.customers-auth-template-tags code {
overflow: hidden;
color: var(--blue-700);
font-size: 11.5px;
text-overflow: ellipsis;
white-space: nowrap;
}
.customers-auth-template-tags span {
color: var(--text-secondary);
font-size: 11.5px;
}
.customers-auth-template-note {
display: flex;
align-items: flex-start;
gap: 8px;
margin: 14px 0 0;
}
.customers-auth-template-note i {
flex: 0 0 auto;
margin-top: 2px;
}
.customers-auth-template-note p {
margin: 0;
font-size: 12px;
line-height: 1.45;
}
@media (max-width: 980px) {
.customers-field-builder,
.customers-pages-grid,
.customers-social-grid {
grid-template-columns: 1fr;
}
.customers-profile-preview {
position: static;
}
.customers-auth-settings-grid {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 980px) {
.customers-auth-template-layout {
grid-template-columns: 1fr;
overflow-y: auto;
}
.customers-auth-template-help {
border-top: 1px solid var(--border-default);
border-left: 0;
}
}
@media (max-width: 760px) {
.customers-filter {
align-items: stretch;
flex-direction: column;
}
.customers-filter .input-wrap {
min-width: 0;
}
.customer-editor-drawer,
.customer-field-drawer,
.customer-auth-form-drawer {
width: 100%;
max-width: 100%;
}
.customers-editor-meta {
grid-template-columns: 1fr;
}
.customers-switch-grid,
.customers-auth-settings-grid,
.customers-auth-restrictions,
.customers-page-fields,
.customers-social-fields,
.customers-social-rules {
grid-template-columns: 1fr;
}
.customers-editor-access .customers-switch-card:last-child {
grid-column: auto;
}
.customers-social-callback {
grid-column: auto;
}
.customers-social-status {
align-items: stretch;
flex-direction: column;
}
.customers-social-status > .btn {
align-self: flex-end;
}
.customers-page-fields .field:nth-child(3),
.customers-page-fields .field:nth-child(5) {
grid-column: auto;
}
.customers-field-icon {
display: none;
}
.customers-auth-fields {
overflow-x: auto;
}
.customers-auth-fields-head,
.customers-auth-field-row {
min-width: 560px;
}
.customers-service-actions {
align-items: stretch;
flex-direction: column;
}
}