719 lines
14 KiB
CSS
719 lines
14 KiB
CSS
/* iTAC-inspired iOS polish for the static Workbench webapp.
|
|
Visual-only override: keep page scripts and data flows unchanged. */
|
|
|
|
:root {
|
|
--itac-red: #a40640;
|
|
--itac-red-light: #bd0749;
|
|
--itac-red-dark: #73042d;
|
|
--itac-blue: #00488e;
|
|
--itac-ink: #243746;
|
|
--itac-slate: #375169;
|
|
--itac-muted: #838c93;
|
|
--itac-border: #dfe5eb;
|
|
--itac-soft: #f6f7fb;
|
|
--itac-surface: #ffffff;
|
|
--itac-shadow: 0 12px 34px rgba(36, 55, 70, 0.16);
|
|
--itac-radius: 8px;
|
|
--ios-tap: 44px;
|
|
color-scheme: light;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: rgba(164, 6, 64, 0.16);
|
|
}
|
|
|
|
html {
|
|
min-height: 100%;
|
|
-webkit-text-size-adjust: 100%;
|
|
text-size-adjust: 100%;
|
|
}
|
|
|
|
body {
|
|
min-height: 100%;
|
|
margin: 0;
|
|
color: var(--itac-ink);
|
|
background:
|
|
linear-gradient(180deg, rgba(246, 247, 251, 0.98), rgba(255, 255, 255, 0.96)),
|
|
var(--itac-soft) !important;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
|
|
line-height: 1.45;
|
|
padding-left: max(16px, env(safe-area-inset-left)) !important;
|
|
padding-right: max(16px, env(safe-area-inset-right)) !important;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0 0 auto 0;
|
|
height: 5px;
|
|
z-index: 10000;
|
|
background: linear-gradient(90deg, var(--itac-red), var(--itac-blue));
|
|
pointer-events: none;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
color: var(--itac-ink) !important;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
h1,
|
|
h2 {
|
|
font-weight: 650;
|
|
}
|
|
|
|
a {
|
|
color: var(--itac-blue);
|
|
}
|
|
|
|
p,
|
|
small,
|
|
label,
|
|
td,
|
|
th {
|
|
color: inherit;
|
|
}
|
|
|
|
header {
|
|
min-height: 72px;
|
|
height: auto !important;
|
|
padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left)) !important;
|
|
background: var(--itac-surface) !important;
|
|
border-radius: 0 !important;
|
|
border-bottom: 1px solid var(--itac-border);
|
|
box-shadow: 0 8px 24px rgba(36, 55, 70, 0.08);
|
|
gap: 16px;
|
|
}
|
|
|
|
header img,
|
|
header svg {
|
|
max-height: 52px;
|
|
width: auto;
|
|
object-fit: contain;
|
|
}
|
|
|
|
nav {
|
|
background: #e7eff1 !important;
|
|
border-right: 1px solid var(--itac-border);
|
|
}
|
|
|
|
.touch-nav {
|
|
width: 280px !important;
|
|
padding: 14px !important;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.nav-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 6px;
|
|
border: 1px solid rgba(0, 72, 142, 0.12);
|
|
background: rgba(255, 255, 255, 0.38);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.nav-section summary {
|
|
min-height: 46px;
|
|
margin: 0;
|
|
padding: 0 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
color: var(--itac-muted) !important;
|
|
border-radius: 6px;
|
|
background: rgba(255, 255, 255, 0.72);
|
|
cursor: pointer;
|
|
list-style: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.nav-section summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.nav-section summary::after {
|
|
content: "+";
|
|
width: 28px;
|
|
height: 28px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--itac-red);
|
|
border: 1px solid rgba(164, 6, 64, 0.2);
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.nav-section[open] summary {
|
|
color: var(--itac-blue) !important;
|
|
}
|
|
|
|
.nav-section[open] summary::after {
|
|
content: "-";
|
|
}
|
|
|
|
.nav-item {
|
|
width: 100%;
|
|
min-height: 58px;
|
|
padding: 10px 12px !important;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
gap: 2px;
|
|
text-align: left;
|
|
border-color: transparent !important;
|
|
background: rgba(255, 255, 255, 0.72) !important;
|
|
color: var(--itac-ink) !important;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.nav-item span {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.nav-item small {
|
|
color: var(--itac-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.nav-item.active {
|
|
border-color: rgba(164, 6, 64, 0.2) !important;
|
|
background: #fff !important;
|
|
color: var(--itac-red) !important;
|
|
box-shadow: inset 4px 0 0 var(--itac-red), 0 8px 18px rgba(36, 55, 70, 0.08);
|
|
}
|
|
|
|
#container {
|
|
min-height: 0;
|
|
background: var(--itac-soft);
|
|
}
|
|
|
|
#contentFrame,
|
|
iframe {
|
|
background: var(--itac-surface);
|
|
}
|
|
|
|
.app {
|
|
width: min(100%, 1600px);
|
|
min-height: 100%;
|
|
margin-inline: auto;
|
|
}
|
|
|
|
.container,
|
|
#tree-container,
|
|
.panel,
|
|
.modal-content,
|
|
#config-modal-content,
|
|
.card {
|
|
width: min(100%, 980px) !important;
|
|
max-width: 100%;
|
|
color: var(--itac-ink);
|
|
background: var(--itac-surface) !important;
|
|
border: 1px solid var(--itac-border) !important;
|
|
border-radius: var(--itac-radius) !important;
|
|
box-shadow: var(--itac-shadow) !important;
|
|
}
|
|
|
|
.container {
|
|
display: block !important;
|
|
margin: 0 auto;
|
|
text-align: left;
|
|
}
|
|
|
|
#tree-container {
|
|
padding: 18px !important;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select,
|
|
textarea,
|
|
.pill,
|
|
.lang-switch {
|
|
min-height: var(--ios-tap);
|
|
font: inherit;
|
|
border-radius: var(--itac-radius) !important;
|
|
}
|
|
|
|
button {
|
|
border: 1px solid var(--itac-red) !important;
|
|
background: linear-gradient(180deg, var(--itac-red-light), var(--itac-red)) !important;
|
|
color: #fff !important;
|
|
font-weight: 650;
|
|
box-shadow: 0 8px 18px rgba(164, 6, 64, 0.2);
|
|
touch-action: manipulation;
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
button:hover,
|
|
button:focus {
|
|
background: var(--itac-red-dark) !important;
|
|
border-color: var(--itac-red-dark) !important;
|
|
}
|
|
|
|
button.secondary,
|
|
.pill,
|
|
.lang-switch {
|
|
background: var(--itac-surface) !important;
|
|
color: var(--itac-slate) !important;
|
|
border: 1px solid var(--itac-border) !important;
|
|
box-shadow: none;
|
|
}
|
|
|
|
input,
|
|
select,
|
|
textarea {
|
|
max-width: 100%;
|
|
border: 1px solid #c8d1da !important;
|
|
background: #fff !important;
|
|
color: var(--itac-ink) !important;
|
|
padding: 10px 12px;
|
|
outline: none;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
width: 52px !important;
|
|
height: 30px !important;
|
|
min-width: 52px !important;
|
|
padding: 0 !important;
|
|
position: relative;
|
|
border: 0 !important;
|
|
border-radius: 999px !important;
|
|
background: #c8d0d8 !important;
|
|
box-shadow: inset 0 0 0 1px rgba(36, 55, 70, 0.12);
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
-webkit-appearance: none !important;
|
|
appearance: none !important;
|
|
}
|
|
|
|
input[type="checkbox"]::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
box-shadow: 0 2px 6px rgba(36, 55, 70, 0.25);
|
|
transition: transform 0.18s ease;
|
|
}
|
|
|
|
input[type="checkbox"]:checked {
|
|
background: var(--itac-red) !important;
|
|
}
|
|
|
|
input[type="checkbox"]:checked::after {
|
|
transform: translateX(22px);
|
|
}
|
|
|
|
input:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
border-color: var(--itac-blue) !important;
|
|
box-shadow: 0 0 0 3px rgba(0, 72, 142, 0.14);
|
|
}
|
|
|
|
input[type="file"] {
|
|
min-height: var(--ios-tap);
|
|
padding: 10px 0;
|
|
border: 0 !important;
|
|
}
|
|
|
|
#import-table,
|
|
#hot,
|
|
#tree,
|
|
.table-wrap {
|
|
max-width: 100%;
|
|
overflow: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.table-wrap table {
|
|
min-width: 680px;
|
|
}
|
|
|
|
thead th,
|
|
tbody td {
|
|
color: var(--itac-ink) !important;
|
|
border-color: var(--itac-border) !important;
|
|
}
|
|
|
|
thead th {
|
|
background: #e7eff1 !important;
|
|
color: var(--itac-slate) !important;
|
|
}
|
|
|
|
tbody tr:hover {
|
|
background: rgba(0, 72, 142, 0.06) !important;
|
|
}
|
|
|
|
.button-container {
|
|
right: max(16px, env(safe-area-inset-right)) !important;
|
|
bottom: max(16px, env(safe-area-inset-bottom)) !important;
|
|
left: max(16px, env(safe-area-inset-left));
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.modal {
|
|
padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
|
|
background: rgba(36, 55, 70, 0.56) !important;
|
|
}
|
|
|
|
.close,
|
|
#config-modal-close {
|
|
min-width: var(--ios-tap);
|
|
min-height: var(--ios-tap);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--itac-red);
|
|
}
|
|
|
|
.handsontable,
|
|
.ht_master,
|
|
.ht_clone_top,
|
|
.ht_clone_left {
|
|
color: var(--itac-ink);
|
|
}
|
|
|
|
.handsontable th {
|
|
background: #e7eff1 !important;
|
|
color: var(--itac-slate) !important;
|
|
}
|
|
|
|
.handsontable td {
|
|
color: var(--itac-ink);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
#import-table,
|
|
#hot {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
overflow: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
#import-table .ht_master .wtHolder,
|
|
#hot .ht_master .wtHolder {
|
|
min-height: 260px;
|
|
}
|
|
|
|
.touch-tree {
|
|
width: 100%;
|
|
max-height: min(68vh, 720px);
|
|
overflow: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.empty-state {
|
|
margin: 0;
|
|
padding: 18px;
|
|
color: var(--itac-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.touch-tree-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.touch-tree-list .touch-tree-list {
|
|
margin: 8px 0 0 12px;
|
|
padding-left: 12px;
|
|
border-left: 2px solid var(--itac-border);
|
|
}
|
|
|
|
.touch-tree-group {
|
|
border: 1px solid var(--itac-border);
|
|
border-radius: var(--itac-radius);
|
|
background: #f6f7fb;
|
|
}
|
|
|
|
.touch-tree-group summary {
|
|
min-height: 48px;
|
|
padding: 12px 14px;
|
|
color: var(--itac-slate);
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
list-style: none;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.touch-tree-group summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.touch-tree-group summary::before {
|
|
content: "+";
|
|
display: inline-flex;
|
|
width: 22px;
|
|
height: 22px;
|
|
margin-right: 8px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
color: #fff;
|
|
background: var(--itac-blue);
|
|
}
|
|
|
|
.touch-tree-group[open] > summary::before {
|
|
content: "-";
|
|
background: var(--itac-red);
|
|
}
|
|
|
|
.touch-tree-leaf {
|
|
width: 100%;
|
|
min-height: 52px;
|
|
justify-content: flex-start;
|
|
text-align: left;
|
|
background: #fff !important;
|
|
color: var(--itac-ink) !important;
|
|
border-color: var(--itac-border) !important;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.touch-tree-leaf::after {
|
|
content: ">";
|
|
margin-left: auto;
|
|
color: var(--itac-red);
|
|
font-weight: 700;
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
body {
|
|
padding-top: max(12px, env(safe-area-inset-top)) !important;
|
|
padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
|
|
}
|
|
|
|
header {
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: center !important;
|
|
text-align: center;
|
|
}
|
|
|
|
header h1 {
|
|
width: 100%;
|
|
margin: 0 !important;
|
|
font-size: 1.5rem !important;
|
|
}
|
|
|
|
#container {
|
|
flex-direction: column;
|
|
height: auto;
|
|
}
|
|
|
|
nav {
|
|
width: 100% !important;
|
|
max-height: 42vh;
|
|
border-right: 0;
|
|
border-bottom: 1px solid var(--itac-border);
|
|
}
|
|
|
|
.touch-nav {
|
|
width: 100% !important;
|
|
flex-direction: row;
|
|
gap: 12px;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
scroll-snap-type: x proximity;
|
|
}
|
|
|
|
.nav-section {
|
|
min-width: 190px;
|
|
scroll-snap-align: start;
|
|
}
|
|
|
|
.nav-item {
|
|
min-height: 54px;
|
|
}
|
|
|
|
.touch-tree {
|
|
max-height: 58vh;
|
|
}
|
|
|
|
.touch-tree-list .touch-tree-list {
|
|
margin-left: 6px;
|
|
padding-left: 8px;
|
|
}
|
|
|
|
#contentFrame {
|
|
min-height: 62vh;
|
|
width: 100%;
|
|
}
|
|
|
|
.container,
|
|
#tree-container,
|
|
.panel,
|
|
.modal-content,
|
|
#config-modal-content {
|
|
width: 100% !important;
|
|
padding: 16px !important;
|
|
}
|
|
|
|
.app {
|
|
display: flex !important;
|
|
flex-direction: column;
|
|
height: auto !important;
|
|
min-height: 100%;
|
|
gap: 12px;
|
|
}
|
|
|
|
.controls,
|
|
.info,
|
|
.header {
|
|
display: flex !important;
|
|
flex-direction: column;
|
|
align-items: stretch !important;
|
|
}
|
|
|
|
.controls input,
|
|
.controls button,
|
|
.info input,
|
|
.container input,
|
|
.container button {
|
|
width: 100%;
|
|
}
|
|
|
|
.button-container {
|
|
position: sticky !important;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.button-container button,
|
|
.container button {
|
|
flex: 1 1 180px;
|
|
}
|
|
|
|
.modal-content {
|
|
width: 100% !important;
|
|
max-height: calc(100vh - 32px);
|
|
overflow: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
#woTable {
|
|
min-width: 0;
|
|
}
|
|
|
|
#woTable thead {
|
|
display: none;
|
|
}
|
|
|
|
#woTable tbody tr {
|
|
display: grid;
|
|
gap: 8px;
|
|
padding: 12px;
|
|
border-bottom: 1px solid var(--itac-border);
|
|
}
|
|
|
|
#woTable tbody td {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 0;
|
|
border-bottom: 0;
|
|
white-space: normal;
|
|
}
|
|
|
|
#woTable tbody td::before {
|
|
content: attr(data-label);
|
|
color: var(--itac-muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
body {
|
|
padding-left: max(12px, env(safe-area-inset-left)) !important;
|
|
padding-right: max(12px, env(safe-area-inset-right)) !important;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.35rem !important;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.2rem !important;
|
|
}
|
|
|
|
.container,
|
|
#tree-container,
|
|
.panel {
|
|
box-shadow: 0 8px 22px rgba(36, 55, 70, 0.12) !important;
|
|
}
|
|
}
|
|
|
|
|
|
/* Navigation contrast: menu buttons are not primary action buttons. */
|
|
.touch-nav .nav-item,
|
|
.touch-nav .nav-item:hover,
|
|
.touch-nav .nav-item:focus {
|
|
color: var(--itac-ink) !important;
|
|
-webkit-text-fill-color: var(--itac-ink) !important;
|
|
background: rgba(255,255,255,0.82) !important;
|
|
border-color: transparent !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.touch-nav .nav-item span {
|
|
color: var(--itac-ink) !important;
|
|
-webkit-text-fill-color: var(--itac-ink) !important;
|
|
}
|
|
|
|
.touch-nav .nav-item small {
|
|
color: var(--itac-muted) !important;
|
|
-webkit-text-fill-color: var(--itac-muted) !important;
|
|
}
|
|
|
|
.touch-nav .nav-item.active,
|
|
.touch-nav .nav-item.active:hover,
|
|
.touch-nav .nav-item.active:focus {
|
|
color: #fff !important;
|
|
-webkit-text-fill-color: #fff !important;
|
|
background: var(--itac-red-dark) !important;
|
|
border-color: var(--itac-red-dark) !important;
|
|
box-shadow: inset 4px 0 0 var(--itac-red-light), 0 8px 18px rgba(36,55,70,.12) !important;
|
|
}
|
|
|
|
.touch-nav .nav-item.active span,
|
|
.touch-nav .nav-item.active small {
|
|
color: #fff !important;
|
|
-webkit-text-fill-color: #fff !important;
|
|
}
|
|
|
|
/* Primary action and expanded/highlighted controls keep white text. */
|
|
button.primary-action,
|
|
button.primary-action *,
|
|
button[aria-expanded="true"]:not(.nav-item),
|
|
button[aria-expanded="true"]:not(.nav-item) * {
|
|
color: #fff !important;
|
|
-webkit-text-fill-color: #fff !important;
|
|
}
|