570 lines
11 KiB
CSS
570 lines
11 KiB
CSS
:root {
|
|
--br-bg: #f4f6f8;
|
|
--br-card: #ffffff;
|
|
--br-text: #1f2a37;
|
|
--br-muted: #6b7280;
|
|
--br-border: #d9dee5;
|
|
--br-accent: #0ea5a4;
|
|
--br-accent-dark: #0f766e;
|
|
--br-danger: #dc2626;
|
|
--br-warn: #f59e0b;
|
|
--br-shadow: 0 8px 24px rgba(31, 41, 55, 0.12);
|
|
}
|
|
* { box-sizing: border-box; }
|
|
body {
|
|
margin: 0;
|
|
background: var(--br-bg);
|
|
color: var(--br-text);
|
|
font-family: "Helvetica Neue", Arial, sans-serif;
|
|
}
|
|
#content,
|
|
#content .container,
|
|
#content .container-fluid,
|
|
#content .main-content,
|
|
#content .page-content,
|
|
.main-content,
|
|
.page-content {
|
|
max-width: none !important;
|
|
width: 100% !important;
|
|
}
|
|
.br-container {
|
|
max-width: none;
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 16px 20px;
|
|
}
|
|
.br-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
}
|
|
.br-title {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.2px;
|
|
}
|
|
.br-card {
|
|
background: var(--br-card);
|
|
border: 1px solid var(--br-border);
|
|
border-radius: 10px;
|
|
padding: 16px;
|
|
box-shadow: var(--br-shadow);
|
|
margin-bottom: 16px;
|
|
}
|
|
.br-muted { color: var(--br-muted); }
|
|
.br-alert {
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
margin: 8px 0;
|
|
border: 1px solid transparent;
|
|
}
|
|
.br-alert-error { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
|
|
.br-alert-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
|
|
.br-alert-success { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
|
|
.br-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(15, 23, 42, 0.6);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 9999;
|
|
}
|
|
.br-modal {
|
|
width: min(560px, 92vw);
|
|
background: #ffffff;
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
border: 2px solid var(--br-border);
|
|
box-shadow: var(--br-shadow);
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: 90vh;
|
|
}
|
|
.br-modal-log {
|
|
width: 90vw;
|
|
background: #ffffff;
|
|
}
|
|
.br-modal-danger {
|
|
border-color: var(--br-danger);
|
|
}
|
|
.br-modal-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
.br-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.br-modal-title {
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
}
|
|
.br-modal-body {
|
|
max-height: 60vh;
|
|
overflow: auto;
|
|
}
|
|
.br-modal-scroll {
|
|
overflow: auto;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
.br-log-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
.br-log-header-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
.br-log-meta {
|
|
display: grid;
|
|
gap: 6px;
|
|
margin: 10px 0 12px;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--br-border);
|
|
border-radius: 10px;
|
|
background: #f8fafc;
|
|
font-size: 13px;
|
|
}
|
|
.br-text-danger {
|
|
color: var(--br-danger);
|
|
font-weight: 700;
|
|
}
|
|
.br-log-actions {
|
|
margin: 8px 0 10px;
|
|
}
|
|
.br-picker-path {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.br-picker-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
border: 1px solid var(--br-border);
|
|
border-radius: 10px;
|
|
max-height: 45vh;
|
|
overflow: auto;
|
|
}
|
|
.br-picker-create {
|
|
margin-top: 10px;
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
.br-picker-create input {
|
|
flex: 1;
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--br-border);
|
|
border-radius: 8px;
|
|
}
|
|
.br-picker-list li {
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid var(--br-border);
|
|
}
|
|
.br-picker-list li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.br-picker-list li:hover {
|
|
background: #f8fafc;
|
|
}
|
|
.br-picker-list li.active {
|
|
background: #e0f2fe;
|
|
}
|
|
.br-btn-small {
|
|
padding: 6px 10px;
|
|
font-size: 12px;
|
|
}
|
|
.br-actions-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.br-actions-row form {
|
|
margin: 0;
|
|
}
|
|
.br-icon-btn {
|
|
border: 1px solid var(--br-border);
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
padding: 4px 8px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
}
|
|
.br-icon-btn:hover {
|
|
background: #f8fafc;
|
|
}
|
|
.br-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
border: 1px solid var(--br-border);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
background: #fff;
|
|
table-layout: auto;
|
|
}
|
|
.br-table th {
|
|
text-align: left;
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--br-muted);
|
|
background: #f3f4f6;
|
|
padding: 10px;
|
|
}
|
|
.br-table td {
|
|
padding: 10px;
|
|
border-top: 1px solid var(--br-border);
|
|
vertical-align: top;
|
|
}
|
|
.br-table tr:nth-child(even) td { background: #f9fafb; }
|
|
.br-col-select { width: 50px; text-align: center; }
|
|
.br-col-status { width: 120px; }
|
|
.br-col-progress { width: 90px; }
|
|
.br-col-mode { width: 180px; }
|
|
.br-col-user { width: 140px; }
|
|
.br-col-backup { width: 220px; overflow-wrap: anywhere; }
|
|
.br-col-path { width: 260px; overflow-wrap: anywhere; }
|
|
.br-col-target { width: 220px; overflow-wrap: anywhere; }
|
|
.br-col-time { width: 150px; }
|
|
.br-col-actions { width: 120px; }
|
|
.br-table input[type="checkbox"] {
|
|
accent-color: var(--br-accent);
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
.br-actions { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
|
|
.br-btn {
|
|
background: var(--br-accent);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 6px;
|
|
padding: 8px 14px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
}
|
|
.br-btn:hover { background: var(--br-accent-dark); }
|
|
.br-btn:disabled,
|
|
.br-btn[disabled] {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
.br-btn:disabled:hover,
|
|
.br-btn[disabled]:hover {
|
|
background: var(--br-accent);
|
|
}
|
|
.br-btn-ghost {
|
|
background: transparent;
|
|
color: var(--br-text);
|
|
border: 1px solid var(--br-border);
|
|
}
|
|
.br-btn-ghost:hover { background: #eef2f7; }
|
|
.br-btn-ghost:disabled,
|
|
.br-btn-ghost[disabled] {
|
|
background: #f8fafc;
|
|
color: var(--br-muted);
|
|
border-color: var(--br-border);
|
|
}
|
|
.br-btn-ghost:disabled:hover,
|
|
.br-btn-ghost[disabled]:hover {
|
|
background: #f8fafc;
|
|
}
|
|
.br-btn-fogged {
|
|
background: var(--br-accent);
|
|
border: 1px solid var(--br-accent);
|
|
color: #ffffff;
|
|
opacity: 0.58;
|
|
}
|
|
.br-btn-fogged:hover {
|
|
background: var(--br-accent);
|
|
}
|
|
.br-btn-fogged:disabled,
|
|
.br-btn-fogged[disabled] {
|
|
background: var(--br-accent);
|
|
border-color: var(--br-accent);
|
|
color: #ffffff;
|
|
opacity: 0.58;
|
|
}
|
|
.br-btn-fogged:disabled:hover,
|
|
.br-btn-fogged[disabled]:hover {
|
|
background: var(--br-accent);
|
|
}
|
|
.br-btn-danger {
|
|
background: var(--br-danger);
|
|
}
|
|
.br-btn-danger:hover { background: #b91c1c; }
|
|
.br-link-danger { color: var(--br-danger); text-decoration: none; }
|
|
.br-link-danger:hover { text-decoration: underline; }
|
|
.br-inline-form { display: inline; }
|
|
.br-link-button {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
}
|
|
.br-link-button:hover { text-decoration: underline; }
|
|
.br-link-button.br-link-success { color: #15803d; }
|
|
.br-link-button.br-link-danger { color: var(--br-danger); }
|
|
input[type="text"] {
|
|
width: 100%;
|
|
max-width: 680px;
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--br-border);
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
background: #fff;
|
|
}
|
|
pre {
|
|
background: #0f172a;
|
|
color: #e2e8f0;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
overflow: auto;
|
|
}
|
|
a { color: var(--br-accent-dark); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
.br-toast {
|
|
position: fixed;
|
|
bottom: 18px;
|
|
right: 18px;
|
|
background: #16a34a;
|
|
color: #fff;
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 12px 28px rgba(17, 24, 39, 0.25);
|
|
z-index: 9999;
|
|
font-weight: 600;
|
|
}
|
|
.br-toast-stack {
|
|
position: fixed;
|
|
top: 18px;
|
|
right: 18px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
z-index: 9999;
|
|
}
|
|
.br-toast-stack .br-toast {
|
|
position: static;
|
|
top: auto;
|
|
bottom: auto;
|
|
}
|
|
.br-toast-error {
|
|
background: #dc2626;
|
|
top: 18px;
|
|
bottom: auto;
|
|
}
|
|
.br-toast-success {
|
|
background: #16a34a;
|
|
}
|
|
.br-status-line {
|
|
margin: 6px 0;
|
|
font-size: 14px;
|
|
}
|
|
.br-progress {
|
|
height: 8px;
|
|
background: #e5e7eb;
|
|
border-radius: 999px;
|
|
overflow: hidden;
|
|
margin: 6px 0 12px;
|
|
}
|
|
.br-progress-bar {
|
|
height: 100%;
|
|
background: var(--br-accent);
|
|
transition: width 0.3s ease;
|
|
}
|
|
.br-restore-layout {
|
|
display: grid;
|
|
gap: 16px;
|
|
grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
|
|
margin-top: 12px;
|
|
}
|
|
.br-restore-calendar,
|
|
.br-restore-picker {
|
|
border: 1px solid var(--br-border);
|
|
border-radius: 10px;
|
|
padding: 12px;
|
|
background: #fff;
|
|
}
|
|
.br-calendar-controls {
|
|
margin-bottom: 10px;
|
|
}
|
|
.br-month-nav {
|
|
display: grid;
|
|
grid-template-columns: 36px 1fr 36px;
|
|
gap: 8px;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
.br-month-nav form {
|
|
margin: 0;
|
|
}
|
|
.br-month-label {
|
|
text-align: center;
|
|
font-weight: 700;
|
|
}
|
|
.br-month-btn {
|
|
width: 36px;
|
|
height: 32px;
|
|
border: 1px solid var(--br-border);
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
font-weight: 700;
|
|
}
|
|
.br-month-btn:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
.br-calendar-grid {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
.br-calendar-grid th,
|
|
.br-calendar-grid td {
|
|
border: 1px solid var(--br-border);
|
|
text-align: center;
|
|
padding: 4px;
|
|
width: 14.28%;
|
|
height: 38px;
|
|
}
|
|
.br-cal-day {
|
|
width: 100%;
|
|
height: 30px;
|
|
border: 1px solid var(--br-border);
|
|
background: #f8fafc;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
}
|
|
.br-cal-day.is-selected {
|
|
background: var(--br-accent);
|
|
color: #fff;
|
|
border-color: var(--br-accent);
|
|
}
|
|
.br-cal-day-disabled {
|
|
display: inline-block;
|
|
width: 100%;
|
|
color: var(--br-muted);
|
|
opacity: 0.45;
|
|
}
|
|
.br-cal-empty {
|
|
background: #f9fafb;
|
|
}
|
|
.br-time-list {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 10px;
|
|
}
|
|
.br-time-item {
|
|
border: 1px solid var(--br-border);
|
|
border-radius: 999px;
|
|
padding: 6px 10px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: #fff;
|
|
}
|
|
.br-time-item input {
|
|
margin: 0;
|
|
}
|
|
@media (max-width: 980px) {
|
|
.br-restore-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
.br-tab-header {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 12px;
|
|
}
|
|
.br-main-tabs {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.br-main-sections {
|
|
position: relative;
|
|
}
|
|
.br-main-sections.is-animating {
|
|
overflow: hidden;
|
|
}
|
|
.br-main-sections.is-animating .br-main-section {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
margin-bottom: 0;
|
|
pointer-events: none;
|
|
}
|
|
.br-main-tab.is-active {
|
|
background: var(--br-accent);
|
|
color: #fff;
|
|
border-color: var(--br-accent);
|
|
}
|
|
.br-main-section.is-hidden {
|
|
display: none;
|
|
}
|
|
.br-user-tab.is-active {
|
|
background: var(--br-accent);
|
|
color: #fff;
|
|
border-color: var(--br-accent);
|
|
}
|
|
#user-tab-content {
|
|
will-change: transform, opacity;
|
|
}
|
|
.br-anim-enter-from-left {
|
|
animation: br-slide-in-from-left 0.24s ease both;
|
|
}
|
|
.br-anim-enter-from-right {
|
|
animation: br-slide-in-from-right 0.24s ease both;
|
|
}
|
|
.br-anim-leave-to-left {
|
|
animation: br-slide-out-to-left 0.24s ease both;
|
|
}
|
|
.br-anim-leave-to-right {
|
|
animation: br-slide-out-to-right 0.24s ease both;
|
|
}
|
|
@keyframes br-slide-in-from-left {
|
|
from { opacity: 0.2; transform: translateX(-24px); }
|
|
to { opacity: 1; transform: translateX(0); }
|
|
}
|
|
@keyframes br-slide-in-from-right {
|
|
from { opacity: 0.2; transform: translateX(24px); }
|
|
to { opacity: 1; transform: translateX(0); }
|
|
}
|
|
@keyframes br-slide-out-to-left {
|
|
from { opacity: 1; transform: translateX(0); }
|
|
to { opacity: 0; transform: translateX(-24px); }
|
|
}
|
|
@keyframes br-slide-out-to-right {
|
|
from { opacity: 1; transform: translateX(0); }
|
|
to { opacity: 0; transform: translateX(24px); }
|
|
}
|
|
.br-path-legend {
|
|
margin-top: 12px;
|
|
border-top: 1px dashed var(--br-border);
|
|
padding-top: 10px;
|
|
}
|
|
.br-path-legend p {
|
|
margin: 4px 0;
|
|
}
|