/* dimopPm S5: the DIMOP customer portal (mockups P01-P05, M01), the appon.hu tokens: #3D4038 text, #9DA290 accent,
   #E6EBD9 tint, olive #36422b for the actions; Work Sans (the site's head loads it). Everything under .dpp. */
body.dimop-portal { margin: 0; background: #f7f7f2; }
.dpp { --ink: #3D4038; --muted: #6b6e63; --olive: #36422b; --tint: #E6EBD9; --line: #dcdcd4; --bg: #f7f7f2; --card: #fff;
    font-family: "Work Sans", Helvetica, Arial, sans-serif; color: var(--ink); font-size: 15px; line-height: 1.5; }
.dpp *, .dpp *::before, .dpp *::after { box-sizing: border-box; }
.dpp [hidden] { display: none !important; }
.dpp a { color: var(--olive); }
.dpp h1 { font-size: 30px; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.01em; }
.dpp h2 { font-size: 19px; margin: 0 0 12px; font-weight: 600; }
.dpp .dpp-muted { color: var(--muted); }
.dpp .dpp-small { font-size: 13px; color: var(--muted); margin-top: 18px; }
.dpp .dpp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dpp .dpp-btn { display: inline-block; background: var(--olive); color: #fff; border: 0; border-radius: 6px; padding: 12px 20px; font: inherit;
    font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
.dpp .dpp-btn:hover, .dpp .dpp-btn:focus-visible { background: #26301e; color: #fff; }
.dpp .dpp-btn.sm { padding: 7px 14px; font-size: 14px; white-space: nowrap; }
.dpp .dpp-btn[disabled] { opacity: .6; cursor: wait; }
.dpp .dpp-link { background: none; border: 0; padding: 0; font: inherit; color: var(--olive); text-decoration: underline; cursor: pointer; }
.dpp :focus-visible { outline: 3px solid #9DA290; outline-offset: 2px; }
.dpp .dpp-form label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.dpp .dpp-form input[type=email], .dpp .dpp-form input[type=password], .dpp .dpp-form input[type=text], .dpp .dpp-form select {
    width: 100%; border: 1px solid #c9cac2; border-radius: 6px; padding: 11px 12px; font: inherit; background: #fff; color: var(--ink); }
.dpp .dpp-form .dpp-btn { width: 100%; margin-top: 16px; }
.dpp .dpp-code { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-family: ui-monospace, Menlo, monospace !important; }
.dpp .dpp-err { color: #a3302a; font-weight: 600; min-height: 1em; margin: 10px 0 0; font-size: 14px; }
.dpp .dpp-err:empty { display: none; }
.dpp .dpp-ok { color: #2f6b2f; font-weight: 600; font-size: 14px; }
.dpp .dpp-note { background: #fdf0d5; color: #7a4a00; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.dpp .dpp-rules { background: #eef3e2; color: #2f4a1f; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin: 14px 0 0; }

/* the sign-in screens: the olive side, the form on the right */
.dpp-auth { display: flex; min-height: 100vh; }
.dpp-auth-side { flex: 0 0 50%; background: #36422b; color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; }
.dpp-auth-logo { background: #fff; padding: 6px 10px; border-radius: 4px; width: 120px; height: auto; }
.dpp-auth-claim h1 { font-size: 42px; color: #fff; }
.dpp-auth-claim li { margin: 6px 0; }
.dpp-auth-foot { font-size: 13px; opacity: .8; margin: 0; }
.dpp-auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.dpp-auth-box { width: 100%; max-width: 420px; }
.dpp-auth-box h2 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }

/* the portal */
.dpp-top { display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 32px; }
.dpp-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink) !important; font-weight: 600; }
.dpp-brand span { border-left: 1px solid var(--line); padding-left: 16px; }
.dpp-who { display: flex; align-items: center; gap: 12px; }
.dpp-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--olive); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.dpp-icon-btn { background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; border-radius: 6px; display: inline-flex; }
.dpp-icon-btn:hover { background: var(--tint); }
.dpp-body { display: flex; gap: 28px; padding: 28px 32px; max-width: 1320px; margin: 0 auto; }
.dpp-side { flex: 0 0 240px; }
.dpp-project-card { background: var(--tint); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.dpp-project-card strong, .dpp-project-card code { display: block; }
.dpp-project-card code { font-size: 12px; color: var(--muted); background: none; padding: 0; margin-top: 4px; word-break: break-all; }
.dpp-project-switch { width: 100%; margin-top: 8px; padding: 6px; border-radius: 6px; border: 1px solid #c9cac2; font: inherit; font-size: 13px; }
.dpp-nav { list-style: none; margin: 0 0 18px; padding: 0; }
.dpp-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--ink) !important; font-weight: 500; }
.dpp-nav a:hover { background: var(--tint); }
.dpp-nav a.on { background: var(--olive); color: #fff !important; }
.dpp-nav svg, .dpp-tabbar svg, .dpp-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.dpp-badge { margin-left: auto; font-style: normal; background: #c2522d; color: #fff; border-radius: 10px; min-width: 20px; padding: 0 6px; font-size: 12px; text-align: center; }
.dpp-nav a.on .dpp-badge { background: #fff; color: var(--olive); }
.dpp-contact-card { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 16px; font-size: 13px; }
.dpp-contact-card strong, .dpp-contact-card span { display: block; }
.dpp-contact-card span { color: var(--muted); }
.dpp-main { flex: 1; min-width: 0; }
.dpp-lead { color: var(--muted); margin: 0 0 22px; }
.dpp-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; }
.dpp-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dpp-steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; }
.dpp-steps li { flex: 1; text-align: center; position: relative; padding-top: 24px; font-size: 13px; }
.dpp-steps li::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 3px; background: #e0e0d8; }
.dpp-steps li.done::before, .dpp-steps li.now::before { background: var(--olive); }
.dpp-steps li:first-child::before { left: 50%; } .dpp-steps li:last-child::before { right: 50%; }
.dpp-steps .dot { position: absolute; top: 1px; left: calc(50% - 8px); width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid #cfd0c8; }
.dpp-steps li.done .dot { background: var(--olive); border-color: var(--olive); }
.dpp-steps li.now .dot { border-color: var(--olive); }
.dpp-steps strong { display: block; font-weight: 600; }
.dpp-steps small { color: var(--muted); }
.dpp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.dpp-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.dpp-tile span, .dpp-tile small { display: block; color: var(--muted); font-size: 13px; }
.dpp-tile strong { display: block; font-size: 26px; margin: 4px 0; }
.dpp-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.dpp-cols.wide { grid-template-columns: 1.6fr 1fr; }
.dpp-list { list-style: none; margin: 0; padding: 0; }
.dpp-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #ecece6; }
.dpp-list li:first-child { border-top: 0; }
.dpp-list li > div { flex: 1; min-width: 0; }
.dpp-list strong, .dpp-list a { display: block; font-weight: 600; overflow-wrap: anywhere; }
.dpp-list small { display: block; color: var(--muted); font-size: 13px; }
.dpp-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--tint); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dpp-file { flex: none; width: 38px; height: 44px; border: 1px solid #d5d5cc; border-radius: 4px; font-size: 10px; font-weight: 700; display: flex; align-items: flex-end;
    justify-content: center; padding-bottom: 5px; color: #fff; background: linear-gradient(#fff 55%, #b23b2e 55%); }
.dpp-file-docx, .dpp-file-rtf { background: linear-gradient(#fff 55%, #2b5797 55%); }
.dpp-file-xlsx { background: linear-gradient(#fff 55%, #217346 55%); }
.dpp-file-jpg, .dpp-file-jpeg, .dpp-file-png { background: linear-gradient(#fff 55%, #6a5acd 55%); }
.dpp-pill { flex: none; border-radius: 20px; padding: 3px 10px; font-size: 13px; background: #eeeeea; color: #55584e; white-space: nowrap; }
.dpp-pill.ok, .dpp-pill.st-final, .dpp-pill.st-signed_client { background: #e3efd8; color: #2f5a1c; }
.dpp-pill.st-sent { background: #fbefd2; color: #7a5200; }
.dpp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dpp-chip { border: 1px solid #cfd0c8; background: #fff; border-radius: 20px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.dpp-chip.on { background: var(--olive); color: #fff; border-color: var(--olive); }
.dpp-drop { display: block; border: 2px dashed #b9baae; border-radius: 12px; padding: 18px; text-align: center; cursor: pointer; background: #fbfbf7; margin: 0 !important; }
.dpp-drop strong, .dpp-drop small { display: block; }
.dpp-drop small { color: var(--muted); font-weight: 400; }
.dpp-drop input[type=file] { margin-top: 10px; max-width: 100%; }
.dpp-file-name { display: block; font-size: 13px; color: var(--olive); }
.dpp-info { background: #e3edf3; color: #2d4a5c; border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.dpp-check { list-style: none; margin: 0 0 16px; padding: 0; }
.dpp-check li { position: relative; padding: 10px 0 10px 32px; border-top: 1px solid #ecece6; }
.dpp-check li:first-child { border-top: 0; }
.dpp-check li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border: 2px solid #cfd0c8; border-radius: 4px; }
.dpp-check li.done::before { background: var(--olive); border-color: var(--olive); }
.dpp-check li.done::after { content: ""; position: absolute; left: 6px; top: 15px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dpp-check li.todo::before { border-color: #c2522d; }
.dpp-check strong, .dpp-check small { display: block; }
.dpp-check small { color: var(--muted); }
.dpp-tabbar { display: none; }

.dpp-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.dpp-module h2 { display: flex; gap: 10px; align-items: center; font-size: 17px; }
.dpp-goalno { flex: none; min-width: 32px; height: 32px; border-radius: 8px; background: var(--tint); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; padding: 0 6px; }
.dpp-progress { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.dpp-progress-bar { flex: 1; height: 8px; border-radius: 4px; background: #e8e8e0; overflow: hidden; }
.dpp-progress-bar span { display: block; height: 100%; background: var(--olive); }
.dpp-steps-list { list-style: none; margin: 0; padding: 0; }
.dpp-steps-list li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.dpp-steps-list li > span:nth-child(2) { flex: 1; }
.dpp-steps-list small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.dpp-box { flex: none; width: 17px; height: 17px; border: 2px solid #cfd0c8; border-radius: 4px; position: relative; }
.dpp-steps-list li.done .dpp-box { background: var(--olive); border-color: var(--olive); }
.dpp-steps-list li.done .dpp-box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dpp-steps-list li.mine .dpp-box { border-color: #c2522d; }
.dpp-task-note { color: #7a4a00 !important; }
.dpp-form textarea { width: 100%; border: 1px solid #c9cac2; border-radius: 6px; padding: 11px 12px; font: inherit; }
/* a phone (M01): no side column, a bottom tab bar, one column */
@media (max-width: 860px) {
    .dpp-auth { flex-direction: column; }
    .dpp-auth-side { flex: none; padding: 28px 24px; }
    .dpp-auth-claim ul, .dpp-auth-foot { display: none; }
    .dpp-auth-claim h1 { font-size: 28px; margin-top: 16px; }
    .dpp-top { padding: 12px 18px; }
    .dpp-who-name, .dpp-brand img + span { display: none; }
    .dpp-body { display: block; padding: 18px 16px 90px; }
    .dpp-side { display: none; }
    .dpp h1 { font-size: 26px; }
    .dpp-steps { flex-wrap: wrap; row-gap: 14px; }
    .dpp-steps li { flex: 0 0 25%; font-size: 12px; }
    .dpp-steps li::before { display: none; }
    .dpp-tiles { grid-template-columns: 1fr 1fr; }
    .dpp-cols, .dpp-cols.wide, .dpp-modules { grid-template-columns: 1fr; }
    .dpp-list li { flex-wrap: wrap; }
    .dpp-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 50;
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }
    .dpp-tabbar a { flex: 1; min-width: 0; font-size: 11px !important; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted) !important;
        text-decoration: none; position: relative; }
    .dpp-tabbar a.on { color: var(--ink) !important; font-weight: 700; }
    .dpp-tabbar .dpp-badge { position: absolute; top: -4px; left: calc(50% + 4px); margin: 0; }
}

/* S13: change requests and training materials (P09) */
.dpp .dpp-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #cfd0c8; border-radius: 8px; padding: 10px 12px; font: inherit; resize: vertical; }
.dpp-cr li { align-items: flex-start; }
.dpp-cr-desc { margin: 6px 0 0; white-space: pre-wrap; color: var(--muted); font-size: 14px; }
.dpp-cr-steps { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.dpp-cr-steps li { display: inline; padding: 0; border: 0; }
.dpp-cr-steps li + li::before { content: " \2192  "; }
.dpp-pill.cr-submitted, .dpp-pill.cr-requested, .dpp-pill.cr-draft { background: #fbefd2; color: #7a5200; }
.dpp-pill.cr-approved { background: #e3efd8; color: #2f5a1c; }
.dpp-pill.cr-rejected { background: #f6dcd3; color: #8a2f12; }
.dpp-h2 { margin: 26px 0 12px; }
.dpp-training { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.dpp-training small { color: var(--muted); }
