Law/app/web/client.css
2026-02-27 18:46:07 +03:00

601 lines
10 KiB
CSS

:root {
--bg: #0d1217;
--surface: #171f29;
--surface-2: #1f2a37;
--text: #f4f7fb;
--muted: #a8b2c2;
--accent: #d4a968;
--line: rgba(207, 217, 231, 0.18);
--ok: #49b68e;
--danger: #ff7b7b;
--radius: 18px;
--shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
--maxw: 1180px;
}
* { box-sizing: border-box; }
html,
body {
margin: 0;
padding: 0;
background: radial-gradient(circle at 12% 0%, #1a2430 0, var(--bg) 48%), var(--bg);
color: var(--text);
font-family: "Manrope", sans-serif;
}
.wrap {
width: min(var(--maxw), calc(100% - 1.5rem));
margin: 0 auto;
}
.topbar {
position: sticky;
top: 0;
z-index: 20;
backdrop-filter: blur(10px);
background: rgba(13, 18, 23, 0.78);
border-bottom: 1px solid var(--line);
}
.topbar-inner {
min-height: 76px;
display: flex;
align-items: center;
justify-content: space-between;
}
.brand {
font-size: 0.84rem;
letter-spacing: 0.12em;
text-transform: uppercase;
font-weight: 800;
color: #eef4ff;
}
.nav a {
text-decoration: none;
color: #d6deea;
font-size: 0.93rem;
font-weight: 600;
}
.client-shell {
padding: 2rem 0 2.5rem;
}
.section-head {
margin-bottom: 1rem;
}
h1 {
margin: 0;
font-family: "Prata", serif;
font-size: clamp(1.75rem, 4vw, 2.7rem);
}
h2 {
margin: 0 0 0.65rem;
font-size: 1.03rem;
}
.subtitle {
margin: 0.65rem 0 0;
color: var(--muted);
line-height: 1.6;
}
.cabinet-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.9rem;
margin-top: 0.9rem;
}
.cabinet-card {
border: 1px solid var(--line);
border-radius: 16px;
background: linear-gradient(160deg, rgba(23, 32, 42, 0.9), rgba(17, 24, 33, 0.95));
padding: 1rem;
box-shadow: var(--shadow);
}
.request-switcher {
display: flex;
gap: 0.6rem;
align-items: end;
}
.field {
display: flex;
flex-direction: column;
gap: 0.34rem;
}
.field.grow {
flex: 1;
}
label {
font-size: 0.76rem;
letter-spacing: 0.06em;
text-transform: uppercase;
color: #9fb0c6;
font-weight: 700;
}
input,
textarea,
select {
width: 100%;
border-radius: 12px;
border: 1px solid #3b4b5f;
background: rgba(255, 255, 255, 0.03);
color: #ecf2fb;
font: inherit;
font-size: 16px;
padding: 0.72rem 0.8rem;
}
textarea {
min-height: 84px;
resize: vertical;
}
.btn {
border: 1px solid transparent;
border-radius: 999px;
padding: 0.82rem 1.25rem;
font-family: inherit;
font-size: 0.93rem;
font-weight: 700;
cursor: pointer;
}
.btn-ghost {
border-color: var(--line);
color: #dde6f2;
background: rgba(255, 255, 255, 0.04);
}
.cabinet-meta {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.5rem;
margin-top: 0.7rem;
}
.service-request-actions {
margin-top: 0.75rem;
display: flex;
gap: 0.55rem;
flex-wrap: wrap;
}
.meta-row {
border: 1px solid var(--line);
border-radius: 12px;
padding: 0.58rem 0.65rem;
background: rgba(255, 255, 255, 0.02);
}
.meta-row small {
display: block;
color: #9fb0c6;
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.06em;
margin-bottom: 0.2rem;
}
.meta-row b {
display: block;
color: #eaf2ff;
font-size: 0.9rem;
font-weight: 700;
line-height: 1.4;
}
.simple-list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 0.5rem;
max-height: 280px;
overflow: auto;
}
.simple-item {
border: 1px solid var(--line);
border-radius: 12px;
padding: 0.58rem 0.65rem;
background: rgba(255, 255, 255, 0.02);
}
.simple-item p {
margin: 0.24rem 0 0;
color: #d8e3f3;
line-height: 1.5;
font-size: 0.92rem;
overflow-wrap: anywhere;
}
.simple-item time {
color: #9eb1ca;
font-size: 0.78rem;
}
.request-data-item {
border-color: rgba(212, 168, 106, 0.35);
background: linear-gradient(160deg, rgba(76, 56, 20, 0.28), rgba(39, 29, 14, 0.34));
}
.request-data-item.done {
border-color: rgba(73, 182, 142, 0.35);
background: linear-gradient(160deg, rgba(40, 86, 66, 0.26), rgba(26, 55, 43, 0.32));
}
.request-data-item-author {
color: #a7b8cf;
font-size: 0.78rem;
}
.request-data-message-btn {
width: 100%;
margin-top: 0.35rem;
text-align: left;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
background: rgba(255, 255, 255, 0.03);
color: #eef3fb;
padding: 0.55rem 0.65rem;
cursor: pointer;
}
.request-data-message-btn:hover {
border-color: rgba(212, 168, 106, 0.42);
background: rgba(212, 168, 106, 0.1);
}
.request-data-item.done .request-data-message-btn:hover {
border-color: rgba(73, 182, 142, 0.42);
background: rgba(73, 182, 142, 0.09);
}
.request-data-message-title {
font-weight: 800;
color: #ffe0ac;
}
.request-data-item.done .request-data-message-title {
color: #c8eed8;
}
.request-data-message-list {
margin-top: 0.35rem;
display: grid;
gap: 0.16rem;
max-height: 11.6rem;
overflow: hidden;
}
.request-data-message-row {
display: flex;
gap: 0.3rem;
align-items: baseline;
color: #e0e9f7;
font-size: 0.84rem;
}
.request-data-message-row.filled .request-data-message-row-label {
text-decoration: line-through;
color: #b8c4d6;
}
.request-data-message-row-index {
min-width: 1.9rem;
color: #ffd5a1;
font-weight: 700;
display: inline-flex;
align-items: center;
gap: 0.18rem;
}
.request-data-message-row-check {
color: #59d182;
font-weight: 800;
}
.request-data-message-more {
color: #bac7da;
font-size: 0.8rem;
font-weight: 700;
padding-left: 1.95rem;
}
.muted-inline {
margin: 0;
color: var(--muted);
}
.file-actions {
margin-top: 0.45rem;
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.file-link-btn {
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
border: 1px solid var(--line);
border-radius: 999px;
background: rgba(255, 255, 255, 0.04);
color: #f6d7a8;
text-decoration: none;
font-size: 0.82rem;
padding: 0.32rem 0.68rem;
font: inherit;
}
.file-link-btn:hover {
border-color: rgba(212, 168, 106, 0.45);
background: rgba(212, 168, 106, 0.14);
}
.preview-body .file-link-btn {
margin: 0.7rem;
}
.data-request-modal {
width: min(760px, 100%);
}
.service-request-modal {
width: min(700px, 100%);
}
.service-request-body {
width: 100%;
min-height: 220px;
max-height: calc(92vh - 90px);
overflow: auto;
border: 1px solid var(--line);
border-radius: 12px;
background: #0f1722;
padding: 0.85rem;
display: block;
}
.service-request-form {
display: grid;
gap: 0.65rem;
}
.data-request-body {
width: 100%;
min-height: 280px;
max-height: calc(92vh - 76px);
overflow: auto;
border: 1px solid var(--line);
border-radius: 12px;
background: #0f1722;
padding: 0.8rem;
display: block;
}
.data-request-form {
display: grid;
gap: 0.65rem;
}
.data-request-form-row {
display: grid;
grid-template-columns: 28px minmax(180px, 0.9fr) minmax(0, 1.4fr);
gap: 0.55rem;
align-items: start;
padding: 0.45rem 0;
border-bottom: 1px solid rgba(207, 217, 231, 0.08);
}
.data-request-form-row:last-child {
border-bottom: none;
}
.data-request-form-index {
color: #9fb0c6;
font-weight: 700;
padding-top: 0.8rem;
text-align: center;
}
.data-request-form-label {
color: #e9f1fe;
line-height: 1.4;
padding-top: 0.72rem;
overflow-wrap: anywhere;
}
.data-request-form textarea {
min-height: 92px;
}
.data-request-actions {
display: flex;
justify-content: flex-end;
}
.preview-overlay {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
padding: 1rem;
background: rgba(6, 10, 14, 0.82);
backdrop-filter: blur(4px);
z-index: 60;
}
.preview-overlay.open {
display: flex;
}
.preview-modal {
width: min(980px, 100%);
max-height: 92vh;
border: 1px solid var(--line);
border-radius: 16px;
background: linear-gradient(160deg, rgba(21, 31, 42, 0.96), rgba(14, 21, 28, 0.98));
box-shadow: var(--shadow);
padding: 0.85rem;
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.preview-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.6rem;
}
.preview-head h3 {
margin: 0;
font-family: "Prata", serif;
font-size: 1.15rem;
}
.close-btn {
border: 1px solid var(--line);
width: 34px;
height: 34px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.04);
color: #d7e4f5;
cursor: pointer;
font-size: 1.05rem;
}
.preview-body {
width: 100%;
min-height: 280px;
max-height: calc(92vh - 76px);
overflow: auto;
border: 1px solid var(--line);
border-radius: 12px;
background: #0f1722;
display: grid;
place-items: center;
}
.preview-frame {
width: 100%;
height: min(72vh, 760px);
border: none;
}
.preview-image {
max-width: 100%;
max-height: 72vh;
object-fit: contain;
}
.preview-video {
width: min(100%, 860px);
max-height: 72vh;
}
.preview-note {
padding: 0.9rem;
color: var(--muted);
text-align: center;
}
.preview-text {
width: 100%;
min-height: min(60vh, 520px);
margin: 0;
border: 1px solid var(--line);
border-radius: 10px;
background: rgba(10, 16, 24, 0.88);
color: #dbe7f8;
padding: 0.7rem;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
font: 500 0.86rem/1.45 "JetBrains Mono", "Fira Code", monospace;
}
.chat-form {
margin-top: 0.7rem;
display: grid;
gap: 0.55rem;
}
.file-row {
margin-top: 0.7rem;
display: flex;
gap: 0.5rem;
align-items: center;
flex-wrap: wrap;
}
.status {
margin: 0.7rem 0 0;
color: #9bafc8;
font-size: 0.9rem;
min-height: 1.2rem;
}
.status.ok { color: var(--ok); }
.status.error { color: var(--danger); }
@media (max-width: 860px) {
.cabinet-layout {
grid-template-columns: 1fr;
}
.cabinet-meta {
grid-template-columns: 1fr;
}
.request-switcher {
flex-direction: column;
align-items: stretch;
}
.data-request-form-row {
grid-template-columns: 1fr;
gap: 0.35rem;
}
.data-request-form-index,
.data-request-form-label {
padding-top: 0;
text-align: left;
}
}
@media (max-width: 520px) {
.wrap {
width: calc(100% - 1rem);
}
.topbar {
position: static;
}
.cabinet-card {
padding: 0.85rem;
}
.file-row {
flex-direction: column;
align-items: stretch;
}
}