1595 lines
26 KiB
SCSS
1595 lines
26 KiB
SCSS
@use './variable.scss' as v;
|
|
@use './edit-permissions-modal.scss';
|
|
@use './animation.scss';
|
|
@use './file-moderation-modal.scss';
|
|
@use './tariff-edit-modal.scss';
|
|
@use './tariff-remove-modal.scss';
|
|
|
|
:root {
|
|
--primary-color: #2563eb;
|
|
--primary-hover: #1d4ed8;
|
|
--secondary-color: #64748b;
|
|
--secondary-hover: #4c5869;
|
|
--success-color: #10b981;
|
|
--success-hover: #0d8a60;
|
|
--danger-color: #dc2626;
|
|
--danger-hover: #b91c1c;
|
|
--warning-color: #f59e0b;
|
|
--warning-hover: #b3750b;
|
|
--info-color: #3b82f6;
|
|
--background: #f8fafc;
|
|
--surface: #ffffff;
|
|
--border: #e2e8f0;
|
|
--text-primary: #0f172a;
|
|
--text-secondary: #64748b;
|
|
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
--shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.language-switcher {
|
|
position: relative;
|
|
|
|
.switcher-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--primary-color);
|
|
background-color: v.$white;
|
|
border: 2px solid var(--primary-color);
|
|
border-radius: 0.375rem;
|
|
box-shadow: 0 1px 2px 0 v.$shadow-1;
|
|
transition: background-color 0.2s;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background-color: #f9fafb;
|
|
}
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.switcher-list {
|
|
position: absolute;
|
|
right: 0;
|
|
z-index: 10;
|
|
width: 100%;
|
|
margin-top: 0.5rem;
|
|
transform-origin: top right;
|
|
background-color: v.$white;
|
|
border: 2px solid var(--primary-color);
|
|
border-radius: 0.375rem;
|
|
|
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.language-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.875rem;
|
|
text-align: left;
|
|
transition: background-color 0.2s ease;
|
|
color: var(--primary-color);
|
|
|
|
&:hover {
|
|
background-color: #dbeafe;
|
|
}
|
|
|
|
&.active {
|
|
background-color: #eff6ff;
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.login-page {
|
|
height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.show-password-button {
|
|
cursor: pointer;
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 0px;
|
|
padding: 10px;
|
|
transform: translateY(-50%);
|
|
|
|
svg {
|
|
width: 16px;
|
|
color: var(--secondary-hover);
|
|
transition: color 0.2s ease;
|
|
|
|
&:hover {
|
|
color: var(--primary-hover);
|
|
}
|
|
}
|
|
|
|
&.show {
|
|
svg {
|
|
color: var(--primary-hover);
|
|
}
|
|
}
|
|
}
|
|
|
|
.admin-panel {
|
|
.admin-sidebar {
|
|
width: var(--side-bar-width);
|
|
background: var(--surface);
|
|
border-right: 1px solid var(--border);
|
|
position: fixed;
|
|
height: 100vh;
|
|
overflow-y: auto;
|
|
z-index: 100;
|
|
|
|
.admin-nav {
|
|
padding: 16px 0;
|
|
}
|
|
|
|
.admin-logo {
|
|
padding: 24px 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
h1 {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
p {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-top: 4px;
|
|
}
|
|
}
|
|
|
|
.admin-nav-item {
|
|
padding: 12px 20px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
border-left: 3px solid transparent;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
|
|
svg {
|
|
font-size: 18px;
|
|
width: 24px;
|
|
text-align: center;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
&.active {
|
|
background: #eff6ff;
|
|
color: var(--primary-color);
|
|
border-left-color: var(--primary-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.admin-header {
|
|
background: var(--surface);
|
|
padding: 20px 24px;
|
|
border-radius: 12px;
|
|
margin-bottom: 24px;
|
|
box-shadow: var(--shadow);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
|
|
.admin-header-left {
|
|
h2 {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
p {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
.admin-user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 6px 16px;
|
|
background: var(--background);
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.admin-header-right {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.admin-user-details span {
|
|
display: block;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.admin-user-details .role {
|
|
color: var(--text-secondary);
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.admin-user-details .name {
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
}
|
|
|
|
.admin-main {
|
|
flex: 1;
|
|
margin-left: 280px;
|
|
width: calc(100% - 280px);
|
|
padding: 24px;
|
|
max-width: 100%;
|
|
overflow-x: hidden;
|
|
min-height: 100vh;
|
|
background: var(--background);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
|
|
&:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--secondary-color);
|
|
color: white;
|
|
|
|
&:hover {
|
|
background: var(--secondary-hover);
|
|
}
|
|
}
|
|
|
|
.btn-success {
|
|
background: var(--success-color);
|
|
color: white;
|
|
|
|
&:hover {
|
|
background: var(--success-hover);
|
|
}
|
|
}
|
|
|
|
.btn-warning {
|
|
background: var(--warning-color);
|
|
color: white;
|
|
|
|
&:hover {
|
|
background: var(--warning-hover);
|
|
}
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--danger-color);
|
|
color: white;
|
|
|
|
&:hover {
|
|
background: var(--danger-hover);
|
|
}
|
|
|
|
&:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.switcher-btn {
|
|
border: 2px solid var(--primary-color);
|
|
color: var(--primary-color);
|
|
padding: 12px 24px;
|
|
|
|
.switcher-list {
|
|
background-color: v.$white;
|
|
border: 2px solid var(--primary-color);
|
|
}
|
|
}
|
|
|
|
.dashboard-general-info {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.users-top {
|
|
margin-bottom: 20px;
|
|
|
|
&-user {
|
|
font-weight: 500;
|
|
}
|
|
|
|
&-mail {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
}
|
|
}
|
|
|
|
.admin-content {
|
|
background: var(--surface);
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
|
|
.content-header {
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
|
|
/* &-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
|
|
} */
|
|
|
|
h3 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
.content-body {
|
|
padding: 24px;
|
|
max-width: 100%;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.content-body-section {
|
|
padding: 20px;
|
|
background: var(--background);
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
|
|
h4,
|
|
p {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
p {
|
|
color: var(--text-secondary);
|
|
}
|
|
}
|
|
|
|
.chart-container {
|
|
background: var(--surface);
|
|
padding: 24px;
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow);
|
|
margin-bottom: 24px;
|
|
|
|
h4 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin-bottom: 20px;
|
|
color: var(--text-primary);
|
|
}
|
|
}
|
|
|
|
.admin-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 14px;
|
|
min-width: 800px;
|
|
border-radius: 12px 12px 0 0;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -2px #0000000d;
|
|
|
|
thead {
|
|
background: var(--background);
|
|
}
|
|
|
|
th {
|
|
padding: 16px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
border-bottom: 2px solid var(--border);
|
|
}
|
|
|
|
td {
|
|
padding: 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
tbody tr {
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.badge {
|
|
padding: 4px 12px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
display: inline-block;
|
|
}
|
|
|
|
.badge-primary {
|
|
background: #eff6ff;
|
|
color: var(--primary-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
|
|
label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
input,
|
|
textarea {
|
|
width: 100%;
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-family: inherit;
|
|
transition: border-color 0.2s;
|
|
background: #fff;
|
|
}
|
|
}
|
|
|
|
.stats-title {
|
|
font-size: 18px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(240px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 24px;
|
|
|
|
&.user-content {
|
|
grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) 2fr;
|
|
}
|
|
|
|
@media (max-width: 1540px) {
|
|
grid-template-columns: repeat(2, minmax(240px, 1fr));
|
|
|
|
&.user-content {
|
|
grid-template-columns: repeat(2, minmax(240px, 1fr));
|
|
}
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--surface);
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow);
|
|
transition: all 0.3s;
|
|
border: 1px solid var(--border);
|
|
|
|
&:hover {
|
|
box-shadow: var(--shadow-lg);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.stat-card-group {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.stat-card-title {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.stat-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.tariff-term-badge {
|
|
background: #eff6ff;
|
|
padding: 2px 12px;
|
|
border-radius: 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.stat-card-value {
|
|
/* width: 40px; */
|
|
width: auto;
|
|
height: 40px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 16px;
|
|
padding: 0 10px;
|
|
background: #eff6ff;
|
|
}
|
|
|
|
.stat-card-label {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.stat-card-footer {
|
|
margin-top: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--border);
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-outline {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-primary);
|
|
|
|
&:hover {
|
|
background: var(--background);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.table-filtres-input {
|
|
width: 100%;
|
|
padding: 8px 16px;
|
|
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 1.25;
|
|
|
|
background-color: #ffffff;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
|
|
&:hover {
|
|
background-color: #f9fafb;
|
|
}
|
|
|
|
&:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px rgba(99, 101, 241, 0.53);
|
|
outline: 2px solid transparent;
|
|
outline-offset: 2px;
|
|
}
|
|
}
|
|
|
|
.dropdown-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
|
|
.dropdown-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
width: 100%;
|
|
padding: 8px 16px;
|
|
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 1.25;
|
|
|
|
background-color: #ffffff;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
|
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
|
|
transition: background-color 0.2s ease-in-out;
|
|
|
|
&:hover {
|
|
background-color: #f9fafb;
|
|
}
|
|
|
|
&:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px rgba(99, 101, 241, 0.53);
|
|
outline: 2px solid transparent;
|
|
outline-offset: 2px;
|
|
}
|
|
}
|
|
|
|
.dropdown-list {
|
|
position: absolute;
|
|
right: 0;
|
|
z-index: 10;
|
|
width: 100%;
|
|
margin-top: 8px;
|
|
|
|
transform-origin: top right;
|
|
|
|
background-color: #ffffff;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
|
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.dropdown-item {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
padding: 8px 16px;
|
|
|
|
font-size: 14px;
|
|
text-align: left;
|
|
|
|
cursor: pointer;
|
|
user-select: none;
|
|
|
|
&:hover {
|
|
background-color: #dbeafe;
|
|
}
|
|
|
|
&.current {
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
}
|
|
|
|
.tanstak-table-wrapper {
|
|
padding: 1.5rem;
|
|
margin: 0 auto;
|
|
|
|
.btn-modal {
|
|
transition: all 0.3ms ease-in-out;
|
|
border-radius: 10px;
|
|
padding: 5px 20px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
:where(.divide-gray-200 > tr:last-child) {
|
|
border-bottom: 1px solid var(--color-gray-200);
|
|
}
|
|
|
|
.tanstak-table-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
color: #1f2937;
|
|
margin-bottom: 20px;
|
|
|
|
&::before {
|
|
content: '';
|
|
width: 6px;
|
|
height: 6px;
|
|
background: #6366f1;
|
|
border-radius: 50%;
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
|
|
.tanstak-table-filtres {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
padding-bottom: 1rem;
|
|
padding-top: 0;
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
|
|
@media (max-width: 1280px) {
|
|
flex-direction: column;
|
|
}
|
|
|
|
@media (max-width: 975px) {
|
|
flex-direction: column;
|
|
align-items: start;
|
|
}
|
|
|
|
.table-filtres-wrapper {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 1rem;
|
|
width: auto;
|
|
|
|
&.text-filter-search {
|
|
flex-grow: 1;
|
|
justify-content: space-between;
|
|
|
|
&.end {
|
|
justify-content: end;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
.table-filtres-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 12.5rem;
|
|
}
|
|
|
|
.table-filtres-label {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
|
|
.table-filtres-text-filter {
|
|
background-color: #fff;
|
|
border: 2px solid v.$border-color-1;
|
|
border-radius: 12px;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 1.25;
|
|
transition: background-color .2s ease-in-out;
|
|
display: flex;
|
|
box-shadow: 0 1px 2px #0000000d;
|
|
|
|
&:focus {
|
|
outline-offset: 2px;
|
|
outline: 2px solid v.$black;
|
|
box-shadow: 0 0 0 2px #6365f187;
|
|
}
|
|
}
|
|
|
|
.status-filters {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
|
|
.status-btn {
|
|
padding: 4px 12px;
|
|
border-radius: 16px;
|
|
border: 1px solid;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
|
|
&:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
&:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
// BLOCK статус
|
|
&--block {
|
|
background-color: white;
|
|
color: #dc2626;
|
|
border-color: #fca5a5;
|
|
|
|
&:hover {
|
|
background-color: #fef2f2;
|
|
border-color: #f87171;
|
|
}
|
|
|
|
&.active {
|
|
background-color: #dc2626;
|
|
color: white;
|
|
border-color: #b91c1c;
|
|
box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
|
|
}
|
|
}
|
|
|
|
// ACTIVE статус
|
|
&--active {
|
|
background-color: white;
|
|
color: #16a34a;
|
|
border-color: #86efac;
|
|
|
|
&:hover {
|
|
background-color: #f0fdf4;
|
|
border-color: #4ade80;
|
|
}
|
|
|
|
&.active {
|
|
background-color: #16a34a;
|
|
color: white;
|
|
border-color: #15803d;
|
|
box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
|
|
}
|
|
}
|
|
|
|
// MODERATION статус
|
|
&--moderation {
|
|
background-color: white;
|
|
color: #ca8a04;
|
|
border-color: #fde047;
|
|
|
|
&:hover {
|
|
background-color: #fefce8;
|
|
border-color: #facc15;
|
|
}
|
|
|
|
&.active {
|
|
background-color: #ca8a04;
|
|
color: white;
|
|
border-color: #a16207;
|
|
box-shadow: 0 2px 4px rgba(202, 138, 4, 0.2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.tanstak-table-block {
|
|
overflow-x: auto;
|
|
border-radius: 0.5rem;
|
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.tanstak-table {
|
|
width: 100%;
|
|
/* table-layout: fixed; */
|
|
|
|
@media (max-width: 1200px) {
|
|
width: 1200px;
|
|
}
|
|
|
|
>*+* {
|
|
border-top: 1px solid v.$b-color-2;
|
|
}
|
|
|
|
> :not(:last-child) {
|
|
border-bottom: 1px solid v.$b-color-2;
|
|
}
|
|
|
|
|
|
&-head {
|
|
background-color: v.$bg-light;
|
|
|
|
th {
|
|
padding-left: 1rem;
|
|
padding-right: 1rem;
|
|
padding-top: 0.75rem;
|
|
padding-bottom: 0.75rem;
|
|
text-align: left;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
color: v.$text-p;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
white-space: nowrap;
|
|
|
|
&:has(.table-item-checkbox) {
|
|
padding: 0;
|
|
cursor: pointer;
|
|
|
|
.column {
|
|
padding: 15px 16px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.column {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
&.start {
|
|
justify-content: start;
|
|
}
|
|
|
|
.sort-button {
|
|
margin-left: 0.5rem;
|
|
padding: 0.25rem;
|
|
border-radius: 0.25rem;
|
|
|
|
&:hover {
|
|
background-color: v.$b-color-1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&-body {
|
|
background-color: v.$white;
|
|
|
|
&.loading {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
>*+* {
|
|
border-top: 1px solid v.$b-color-2;
|
|
}
|
|
|
|
tr {
|
|
transition: background-color 0.2s ease-in-out;
|
|
|
|
&:hover {
|
|
background-color: v.$bg-light;
|
|
/* background-color: v.$b-color-1; */
|
|
}
|
|
}
|
|
|
|
td {
|
|
padding: 15px 16px;
|
|
white-space: nowrap;
|
|
|
|
&:first-child {
|
|
/* padding-left: 15px; */
|
|
}
|
|
|
|
&:last-child {
|
|
/* padding-right: 15px; */
|
|
}
|
|
|
|
&:has(.table-item-id) {
|
|
width: 20px;
|
|
}
|
|
|
|
&:has(.table-item-file-name) {
|
|
max-width: 300px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
&:has(.table-item-checkbox) {
|
|
padding: 0;
|
|
cursor: pointer;
|
|
|
|
.table-item {
|
|
padding: 15px 16px;
|
|
}
|
|
}
|
|
|
|
.table-item-file-name-image-wrapper {
|
|
width: 40px;
|
|
height: 40px;
|
|
position: relative;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
background: #f5f5f5;
|
|
box-shadow: 1px 1px 2px #00000030;
|
|
|
|
img {
|
|
object-fit: contain;
|
|
}
|
|
}
|
|
}
|
|
|
|
.table-item {
|
|
color: v.$text-s;
|
|
font-size: 14px;
|
|
|
|
&-not-supported {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
.table-status {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.table-item-protected {
|
|
color: #10b981;
|
|
font-size: 12px;
|
|
position: relative;
|
|
margin-left: 5px;
|
|
padding-left: 5px;
|
|
|
|
&::before {
|
|
content: '•';
|
|
color: v.$text-s;
|
|
position: absolute;
|
|
left: -5px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
}
|
|
|
|
.table-item-extension {
|
|
text-transform: uppercase;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.table-item-status {
|
|
padding: 2px 10px;
|
|
border-radius: 15px;
|
|
|
|
&.succeeded {
|
|
background-color: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 5px;
|
|
flex-wrap: wrap;
|
|
|
|
&-group {
|
|
display: flex;
|
|
gap: 5px;
|
|
}
|
|
|
|
button,
|
|
a {
|
|
padding: 4px 12px;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
border-radius: 8px;
|
|
color: v.$white;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease-in;
|
|
|
|
.icon {
|
|
width: 18px;
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
padding: 4px;
|
|
}
|
|
}
|
|
|
|
svg {
|
|
fill: v.$white;
|
|
}
|
|
|
|
span {
|
|
padding-left: 5px;
|
|
}
|
|
}
|
|
|
|
.table-action-download,
|
|
.table-action-delete,
|
|
.table-action-view {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.table-action-download {
|
|
background-color: #3b72e0;
|
|
|
|
&:hover {
|
|
background-color: #2d56a8;
|
|
}
|
|
}
|
|
|
|
.table-action-delete {
|
|
background-color: #e80a14;
|
|
|
|
&:hover {
|
|
background-color: #9f0712;
|
|
}
|
|
}
|
|
|
|
.table-action-view {
|
|
background-color: #2b7fff;
|
|
|
|
&:hover {
|
|
background-color: #155dfc;
|
|
}
|
|
}
|
|
|
|
.toggle-switch {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 60px;
|
|
height: 28px;
|
|
padding: 0 6px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
background-color: #615fff;
|
|
padding: 0;
|
|
}
|
|
|
|
.toggle-switch.active {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.toggle-switch.inactive {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.toggle-switch .toggle-slider {
|
|
position: absolute;
|
|
width: 30px;
|
|
height: 28px;
|
|
background-color: white;
|
|
border: 1px solid #615fff;
|
|
border-radius: 8px;
|
|
transition: transform 0.3s ease;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.toggle-switch.active .toggle-slider {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.toggle-switch.inactive .toggle-slider {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.toggle-switch .toggle-label {
|
|
z-index: 1;
|
|
color: v.$text-p;
|
|
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
|
|
width: 30px;
|
|
height: 26px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.toggle-switch:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
.table-item-checkbox {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 4px;
|
|
border: 2px solid v.$border-color-1;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease-in;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
&:hover {
|
|
border: 2px solid v.$border-color-1-hover;
|
|
}
|
|
}
|
|
}
|
|
|
|
.color-image {
|
|
color: v.$color-image;
|
|
}
|
|
|
|
.color-video {
|
|
color: v.$color-video;
|
|
}
|
|
|
|
.color-audio {
|
|
color: v.$color-audio;
|
|
}
|
|
|
|
.color-document {
|
|
color: v.$color-document;
|
|
}
|
|
}
|
|
|
|
.tanstak-table-pagination {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
margin-top: 1.5rem;
|
|
gap: 1rem;
|
|
|
|
@media (min-width: 768px) {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.pagination-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.875rem;
|
|
|
|
&-pages {
|
|
color: v.$text-p;
|
|
}
|
|
|
|
&-files {
|
|
color: v.$text-s;
|
|
}
|
|
}
|
|
|
|
.pagination-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
|
|
.arrow {
|
|
padding-left: 0.5rem;
|
|
padding-right: 0.5rem;
|
|
padding-top: 0.25rem;
|
|
padding-bottom: 0.25rem;
|
|
border: 2px solid v.$border-color-1;
|
|
border-radius: 10px;
|
|
box-shadow: 0 1px 2px #0000000d;
|
|
color: var(--primary-color);
|
|
|
|
.icon {
|
|
width: 18px;
|
|
}
|
|
|
|
/* */
|
|
|
|
&:hover {
|
|
background-color: v.$bg-light;
|
|
}
|
|
|
|
&:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
&-pages {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
|
|
button {
|
|
border: 2px solid v.$border-color-1;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 10px;
|
|
color: var(--primary-color);
|
|
|
|
&:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
&.current {
|
|
background-color: var(--primary-color);
|
|
color: v.$white;
|
|
}
|
|
|
|
&.other {
|
|
&:hover {
|
|
background-color: v.$bg-light;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: var(--text-secondary);
|
|
|
|
p {
|
|
font-size: 14px;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 18px;
|
|
margin-bottom: 8px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.empty-state-icon {
|
|
font-size: 64px;
|
|
margin-bottom: 16px;
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.system-grid-wrapper {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 24px;
|
|
margin-top: 24px;
|
|
|
|
.system-action-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
}
|
|
|
|
.pagination-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
|
|
.arrow {
|
|
padding-left: 0.5rem;
|
|
padding-right: 0.5rem;
|
|
padding-top: 0.25rem;
|
|
padding-bottom: 0.25rem;
|
|
border: 2px solid v.$border-color-1;
|
|
border-radius: 10px;
|
|
box-shadow: 0 1px 2px #0000000d;
|
|
color: var(--primary-color);
|
|
cursor: pointer;
|
|
|
|
.icon {
|
|
width: 18px;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: v.$bg-light;
|
|
}
|
|
|
|
&:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
&-pages {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
|
|
button {
|
|
border: 2px solid v.$border-color-1;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 10px;
|
|
color: var(--primary-color);
|
|
cursor: pointer;
|
|
|
|
&:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
&.current {
|
|
background-color: var(--primary-color);
|
|
color: v.$white;
|
|
}
|
|
|
|
&.other {
|
|
&:hover {
|
|
background-color: v.$bg-light;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.modal-wrapper {
|
|
position: fixed;
|
|
z-index: 101;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: v.$bg-darkening;
|
|
|
|
.modal-window {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
padding: 20px;
|
|
background: v.$white;
|
|
color: v.$text-p;
|
|
border-radius: 20px;
|
|
box-shadow: 0px 4px 20px v.$shadow-1;
|
|
|
|
&:has(.modal-window-view-user) {
|
|
padding: 0;
|
|
background: transparent;
|
|
}
|
|
}
|
|
}
|
|
|
|
.modal-window-view-user {
|
|
border-radius: 20px;
|
|
overflow: hidden;
|
|
|
|
.status {
|
|
|
|
&-active,
|
|
&-verified {
|
|
color: #166534;
|
|
}
|
|
|
|
&-expired,
|
|
&-unverified {
|
|
color: #991b1b;
|
|
}
|
|
|
|
&-pending {
|
|
color: #92400e;
|
|
}
|
|
}
|
|
|
|
&-content {
|
|
padding: 10px;
|
|
max-height: calc(90vh - 80px);
|
|
overflow-y: auto;
|
|
background: v.$white;
|
|
|
|
&-wrapper {
|
|
height: 100%;
|
|
max-height: 80vh;
|
|
|
|
&.image {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 20px;
|
|
}
|
|
}
|
|
|
|
.image-section {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 400px;
|
|
background: #fafafa;
|
|
border-radius: 12px;
|
|
position: relative;
|
|
}
|
|
|
|
.image-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
img {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: contain;
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
|
|
}
|
|
}
|
|
|
|
.user-info-wrapper {
|
|
display: flex;
|
|
gap: 15px;
|
|
margin-bottom: 15px;
|
|
|
|
@media (max-width: 875px) {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.user-info-card {
|
|
background: #ffffff;
|
|
border: 1px solid v.$border-color-1;
|
|
border-radius: 12px;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
min-width: 400px;
|
|
width: 100%;
|
|
|
|
@media (max-width: 470px) {
|
|
min-width: auto;
|
|
}
|
|
|
|
.info-header {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid v.$border-color-1;
|
|
|
|
h4 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
.info-item {
|
|
padding: 6px 10px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
width: 100%;
|
|
|
|
&.image {
|
|
text-align: center;
|
|
max-width: 200px;
|
|
display: flex;
|
|
margin: 0 auto;
|
|
|
|
img {
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.info-label {
|
|
font-size: 14px;
|
|
color: #64748b;
|
|
font-weight: 500;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.info-value {
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
text-align: left;
|
|
word-break: break-word;
|
|
/* max-width: 150px; */
|
|
}
|
|
|
|
.status-badges {
|
|
padding: 12px 20px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
}
|
|
}
|
|
}
|
|
} |