/* gradax_client_ui: the project page (tabs and tab content). Tokens and shared components live in gxc.css. */
.gxc-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0; background: var(--gx-surface); border: 1px solid var(--gx-rule); border-radius: 14px; box-shadow: var(--gx-lift); }
.gxc-tabs::-webkit-scrollbar { display: none; }
.gxc-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--gx-ink-2) !important; text-decoration: none !important; white-space: nowrap; transition: background-color .15s ease; }
.gxc-tabs a .gxc-i { width: 16px; height: 16px; color: var(--gx-ink-3); }
.gxc-tabs a:hover { background: var(--gx-paper); color: var(--gx-ink) !important; }
.gxc-tabs a.is-active { background: var(--gx-ink); color: #fff !important; }
.gxc-tabs a.is-active .gxc-i { color: #fff; }
.gxc-tabpanel { padding: 22px; }
@media (max-width: 575px) { .gxc-tabpanel { padding: 16px; } }
.gxc-tabpanel .gxc-list { box-shadow: none; }
.gxc-embedded { display: grid; gap: 14px; }
.gxc-phead-kicker .gxc-pill { vertical-align: 1px; margin-left: 4px; }
.gxc-h2 { margin: 0 0 12px !important; font-size: 16px !important; font-weight: 700 !important; letter-spacing: -0.015em; }
.gxc-muted { color: var(--gx-ink-3); font-size: 14px; }
.gxc-prose { font-size: 15px; line-height: 1.7; color: var(--gx-ink); overflow-wrap: anywhere; }
.gxc-prose p { margin: 0 0 12px; }
.gxc-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.gxc-ov { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
@media (max-width: 991px) { .gxc-ov { grid-template-columns: 1fr; } .gxc-ov-side { order: -1; } }
.gxc-ov-main { display: grid; gap: 24px; align-content: start; }
.gxc-ov-main > .gxc-h2 { margin-bottom: -12px !important; }
.gxc-ov-side { padding: 16px 18px; border-radius: var(--gx-r); background: var(--gx-paper); align-self: start; }
.gxc-dl-facts { margin: 0; }
.gxc-dl-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--gx-rule); font-size: 13.5px; }
.gxc-dl-facts > div:first-child { border-top: 0; }
.gxc-dl-facts dt { font-weight: 500; color: var(--gx-ink-3); }
.gxc-dl-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.gxc-ov-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gxc-ov-meters > div, .gxc-minis > div { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--gx-rule); border-radius: var(--gx-r); }
.gxc-ov-meters span:first-child, .gxc-minis span { font-size: 13px; font-weight: 600; color: var(--gx-ink-3); }
.gxc-ov-meters b, .gxc-minis b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gxc-minis small { font-size: 12.5px; color: var(--gx-ink-3); }
.gxc-meter.is-time span { background: var(--gx-accent); }
.gxc-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.gxc-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.gxc-timeline li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 20px; }
.gxc-timeline li::before { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--gx-rule); }
.gxc-timeline li:last-child::before { display: none; }
.gxc-timeline-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--gx-surface); border: 2px solid var(--gx-accent); margin-top: 1px; }
.gxc-timeline li.is-past .gxc-timeline-dot { background: var(--gx-ink); border-color: var(--gx-ink); }
.gxc-timeline b { display: block; font-size: 14.5px; }
.gxc-timeline small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--gx-ink-3); }
.gxc-timeline .gxc-prose, .gxc-timeline .gxc-muted { margin-top: 6px; font-size: 14px; }
.gxc-upload { display: grid; gap: 12px; margin-bottom: 20px; }
.gxc-dropzone.dropzone { min-height: 120px; border: 1.5px dashed var(--gx-rule-3) !important; border-radius: var(--gx-r-lg) !important; background: var(--gx-paper) !important; display: grid; place-items: center; transition: border-color .15s ease, background-color .15s ease; }
.gxc-dropzone.dropzone:hover { border-color: var(--gx-ink) !important; background: #fff !important; }
.gxc-dropzone .dz-message { font-weight: 600; color: var(--gx-ink-2); }
.gxc-upload-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gxc-filegrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.gxc-filegrid li { position: relative; }
.gxc-filecard { display: grid; gap: 4px; padding: 10px 10px 12px; border: 1px solid var(--gx-rule); border-radius: var(--gx-r); background: var(--gx-surface); color: var(--gx-ink) !important; text-decoration: none !important; transition: border-color .15s ease, box-shadow .15s ease; }
.gxc-filecard:hover { border-color: var(--gx-rule-3); box-shadow: var(--gx-float); }
.gxc-filecard-thumb { display: grid; place-items: center; height: 120px; margin-bottom: 6px; border-radius: 9px; background: var(--gx-paper); overflow: hidden; color: var(--gx-ink-3); gap: 4px; align-content: center; }
.gxc-filecard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gxc-filecard-thumb em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.gxc-filecard b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gxc-filecard small { font-size: 12px; color: var(--gx-ink-3); }
.gxc-filecard-del { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgb(255 255 255 / .92); color: var(--gx-stop) !important; box-shadow: var(--gx-lift); }
.gxc-filecard-del .gxc-i { width: 16px; height: 16px; }
.gxc-tab-actions { display: flex; justify-content: flex-end; margin-bottom: 14px; }
/* Stock partials kept inside a tab (one task, one discussion, task forms, Gantt) */
.gxc-stock .panel_s { border: 0; box-shadow: none; margin: 0; }
.gxc-stock .panel_s > .panel-body { padding: 0; }
.gxc-stock h3, .gxc-stock h4 { letter-spacing: -0.015em; }
.gxc-tabpanel > .gxc-back { margin-bottom: 10px; }
.gxc-stock h3:first-child, .gxc-stock .task-name, .gxc-stock h3.tw-text-lg { font-size: 24px !important; font-weight: 700 !important; letter-spacing: -0.03em; }
.gxc-stock .dropzone { border: 1.5px dashed var(--gx-rule-3) !important; border-radius: var(--gx-r-lg) !important; background: var(--gx-paper) !important; min-height: 110px; }
.gxc-stock .dropzone:hover { border-color: var(--gx-ink) !important; background: #fff !important; }
.gxc-stock .dropzone .dz-message, .gxc-stock .dropzone .dz-message span { color: var(--gx-ink-2) !important; font-weight: 600; }
.gxc-stock hr { border-color: var(--gx-rule); margin: 18px 0; }
