/* Gemte jobs — approved Kanban board (Ansogningshjaelpen-Approved-Design-2026-09-17).
   Rules are copied from the handoff CSS in the order the mockup loads them:
   board.css → headers.css → company.css → saved-jobs-cards.css → actions.css →
   job-post-reader.css → status-dropdown.css. Unused alternates (board-style-2/3,
   header-treatment-2/3, action-style-2/3) are left out. The page root carries
   the handoff's body classes so every selector below still applies. */

/* Page header layout (the CV dashboard gets these from its bundle) */
#application-bot-root .apb-main .apb-header{display:flex;justify-content:space-between;align-items:flex-start;gap:32px}
#application-bot-root .apb-header-left{flex:1 1 auto;min-width:0}
#application-bot-root .apb-header-right{display:flex;align-items:center;gap:12px;flex-shrink:0}

/* ---------- Board (board-options/board.css) ---------- */
.board-prototype{--board-ink:#304450;--board-muted:#74828d}
#application-bot-root.board-prototype{max-width:1480px!important;width:100%!important}
.board-prototype .apb-header{padding-bottom:28px!important}
.kanban-board{display:grid;grid-template-columns:repeat(5,minmax(202px,1fr));gap:14px;overflow-x:auto;padding:0 1px 20px;align-items:start;scrollbar-width:thin;scrollbar-color:#c9dce3 transparent}
.board-column{--stage:#6f8895;--stage-bg:#edf2f5;border-radius:18px;background:#edf3f6;min-width:0;overflow:hidden}
.board-column[data-status=sent]{--stage:#46869c;--stage-bg:#e4f1f5}
.board-column[data-status=interview]{--stage:#ae8943;--stage-bg:#f7f0df}
.board-column[data-status=hired]{--stage:#598c78;--stage-bg:#e8f3ec}
.board-column[data-status=rejected]{--stage:#9d7d80;--stage-bg:#f4ebed}
.column-header{padding:19px 15px 14px;display:flex;align-items:center;gap:8px}
.column-dot{width:7px;height:7px;background:var(--stage);border-radius:50%;flex-shrink:0}
.column-header h2{font:550 13px/1.5 var(--font-body);color:#465c69;margin:0;white-space:nowrap}
.column-count{margin-left:auto;display:grid;place-items:center;background:white;color:#758995;min-width:23px;height:23px;border-radius:7px;font:500 11px var(--font-body)}
.column-description{padding:0 15px 14px;margin:-5px 0 0;font:400 11px/1.5 var(--font-body);color:#8799a2}
.drop-zone{padding:0 10px 12px;min-height:420px;display:flex;flex-direction:column;gap:10px;border:2px solid transparent;border-radius:15px;transition:background .15s,border-color .15s}
.drop-zone.drag-over{border-color:#69a9b7;background:#dceef2}
.job-card{position:relative;background:#fff;border:1px solid #eaf0f3;border-radius:14px;padding:15px 14px 11px;box-shadow:0 3px 9px #304a6010;cursor:grab;min-width:0;transition:box-shadow .15s,transform .15s;user-select:none}
.job-card:hover{box-shadow:0 7px 18px #304a6016;transform:translateY(-1px)}
.job-card.dragging{opacity:.35;transform:none}
.drag-ghost{position:fixed!important;pointer-events:none!important;z-index:2000;opacity:.9;transform:rotate(2deg)!important;box-shadow:0 16px 40px #213b5030!important}
.card-company-row{display:flex;align-items:center;gap:8px;margin-bottom:13px}
.company-mark{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:8px;font:550 12px var(--font-body);background:var(--company-bg,#eaf2f5);color:var(--company-ink,#518194)}
.company-name{font:400 11px/1.4 var(--font-body);color:#7b8c95;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.job-card h3{font:550 15px/1.4 var(--font-body);color:var(--board-ink);margin:0 0 8px;letter-spacing:-.15px;overflow-wrap:anywhere}
.job-location{display:flex;align-items:center;gap:4px;font:400 11px var(--font-body);color:#82929b;margin:0 0 18px}
.job-location svg{width:12px;height:12px;stroke:currentColor;stroke-width:1.5;fill:none}
.job-detail{display:inline-block;margin:0 0 14px;padding:4px 7px;background:#f4f7f8;border-radius:5px;color:#72828c;font:400 10px/1.3 var(--font-body)}
.job-detail.interview-note{color:#987a3c;background:#fbf5e7}
.card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
.source-badge{font:400 10px var(--font-body);color:#8c9aa2}
.move-card{width:28px;height:26px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:#8d9ca4;font:400 18px var(--font-body);cursor:pointer}
.move-card:hover{background:#edf5f7;color:#16798e}
.empty-drop{margin:0;min-height:102px;display:flex;align-items:center;justify-content:center;text-align:center;border:1px dashed #cedde3;border-radius:12px;font:400 11px/1.6 var(--font-body);color:#9baab2;padding:18px}
.board-announcer{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.job-dialog{width:490px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:hidden;border:0;border-radius:24px;padding:0;margin:auto;background:white;box-shadow:0 28px 90px #243a5030;font-family:var(--font-body);color:#344b59}
/* [open] only — a bare display:flex would override the UA's display:none and
   leave the dialog painted while closed. */
.job-dialog[open]{display:flex;flex-direction:column}
.job-dialog #job-form{display:flex;flex-direction:column;min-height:0;flex:1 1 auto}
.dialog-top,.dialog-actions{flex:0 0 auto}
/* Only the fields scroll, so the title and the Cancel/Save row stay put and the
   scrollbar never runs over the dialog's rounded corners. */
.dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbd8de transparent}
.dialog-body::-webkit-scrollbar{width:10px}
.dialog-body::-webkit-scrollbar-track{background:transparent}
.dialog-body::-webkit-scrollbar-thumb{background:#cbd8de;border-radius:999px;border:3px solid transparent;background-clip:content-box}
.dialog-body::-webkit-scrollbar-thumb:hover{background:#a9bcc5;background-clip:content-box}
.job-dialog::backdrop{background:#17334855;backdrop-filter:blur(3px)}
.dialog-top{display:flex;align-items:center;justify-content:space-between}.dialog-eyebrow{font-size:10px;letter-spacing:.14em;color:#91a0a8;font-weight:500}
.dialog-close{width:32px;height:32px;border:0;background:#f0f5f7;border-radius:50%;font-size:22px;color:#7c8e98;cursor:pointer}
.job-dialog h2{font:550 24px/1.3 var(--font-body);margin:8px 0 10px}.dialog-intro{font:400 13px/1.6 var(--font-body);color:#7d909b;margin:0 0 22px}
.job-dialog label{display:block;font:500 12px var(--font-body);margin:15px 0 7px}
.job-dialog input,.job-dialog select,.job-dialog textarea{outline:none;width:100%;min-height:44px;border:1px solid #dbe5e9;background:white;border-radius:10px;padding:11px 12px;color:#435966;font:400 13px var(--font-body);box-sizing:border-box}
.job-dialog textarea{min-height:92px;line-height:1.6;resize:vertical}
.dialog-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:0}.dialog-cancel{border:0;background:none;padding:12px 15px;font:500 13px var(--font-body);color:#7c8e98;cursor:pointer}
.job-card:focus-visible,.move-card:focus-visible{outline:2px solid #168ca4;outline-offset:3px}
@media(max-width:800px){.kanban-board{grid-template-columns:repeat(5,245px);gap:12px}.drop-zone{min-height:360px}}

/* ---------- Column headers: text only (header-options/headers.css) ---------- */
.header-concept .column-dot,.header-concept .column-description{display:none}
.header-concept .column-header{min-height:60px;padding:18px 16px;gap:9px;box-sizing:border-box}
.header-concept .column-header h2{font-family:var(--font-body,Inter,sans-serif);font-size:14px;line-height:22px;font-weight:600;color:#344c59;letter-spacing:-.12px;margin:0;white-space:nowrap}
.header-concept .column-count{display:inline;min-width:0;height:auto;border-radius:0;background:transparent;color:#8999a3;font-size:12px;line-height:22px;font-weight:400;font-variant-numeric:tabular-nums}
.header-treatment-1 .column-count{margin-left:1px}
.header-treatment-1 .column-header{padding-left:16px}

/* ---------- Job-first card (company-options/company.css) ---------- */
.company-concept .company-mark{display:none}
.company-concept .card-company-row{gap:0;margin-bottom:7px}
.company-concept .company-name{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:13px;line-height:1.45;color:#607681}
.company-treatment-3 .job-card{display:flex;flex-direction:column;align-items:flex-start}
.company-treatment-3 .job-card h3{order:-1;margin-bottom:4px}
.company-treatment-3 .card-company-row{margin-bottom:12px}
.company-treatment-3 .card-footer{align-self:stretch}

/* ---------- Refined card type/spacing (saved-jobs-cards.css) ---------- */
.cards-refined .job-card{padding:16px;box-sizing:border-box}
.cards-refined .job-card h3{font-size:15px;font-weight:600;line-height:1.4;margin:0 0 4px;order:0;max-width:100%;hyphens:auto;text-wrap:pretty}
.cards-refined .card-company-row{margin:0 0 8px;max-width:100%}
.cards-refined .company-name{font-size:13px;line-height:1.5;color:#586e7b}
.cards-refined .job-location{font-size:12px;line-height:18px;color:#60727d;margin:0 0 12px;max-width:100%;overflow-wrap:anywhere}
.cards-refined .job-location svg{flex-shrink:0}
.cards-refined .job-detail{font-size:12px;line-height:18px;color:#526773;background:#f4f7f8;padding:4px 7px;margin:0 0 12px;max-width:100%;overflow-wrap:anywhere}
.cards-refined .job-detail.interview-note{color:#7b6025;background:#fbf5e7}
.cards-refined .source-badge{font-size:12px;line-height:18px;color:#60727d}
.cards-refined .card-footer{min-height:32px;gap:8px;justify-content:flex-end}
.cards-refined .move-card{width:auto;min-width:52px;height:32px;padding:6px 8px;margin-right:-8px;font:500 12px/20px var(--font-body);color:#28677a;white-space:nowrap}
.cards-refined .move-card:hover{color:#205b6c;background:#edf5f7}
@media(max-width:800px),(pointer:coarse){.cards-refined .move-card{min-width:60px;height:44px}.cards-refined .card-footer{min-height:44px}}
@media(max-width:800px){.cards-refined .kanban-board{grid-template-columns:repeat(5,264px)}}

/* ---------- Beside-date actions + simple editor (action-options/actions.css) ---------- */
.action-concept .job-card{overflow:visible;transition:box-shadow .15s}
.action-concept .job-card:hover{transform:none}
.action-concept .card-footer{display:none}
.card-actions{display:flex;gap:6px;opacity:0;pointer-events:none;transition:opacity .12s}
.job-card:hover .card-actions,.job-card:focus-within .card-actions,.preview-hover .card-actions{opacity:1;pointer-events:auto}
.icon-action{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border:0;border-radius:7px;background:transparent;color:#506e7d;padding:7px;cursor:pointer}
.icon-action svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.icon-action:hover{background:#eaf3f6;color:#236d80}
.icon-action.delete-job:hover{background:#fbefef;color:#a23b3b}
.icon-action:focus-visible,.undo-toast button:focus-visible{outline:2px solid #168ca4;outline-offset:2px}
.action-style-1 .card-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px;align-self:stretch;margin-top:0}
.action-style-1 .job-detail{margin:0;font-size:12px;max-width:calc(100% - 76px)}
.action-style-1 .card-actions{flex-shrink:0;margin-right:-5px}
.action-concept .drop-zone{overflow:visible}
.simple-dialog{width:420px;padding:0;border-radius:20px;color:#344b59}
.simple-dialog .dialog-top{margin-bottom:20px;gap:10px;padding:26px 26px 0}
.simple-dialog .dialog-body{padding:0 26px 6px}
.simple-dialog h2{font-size:23px;font-weight:550;margin:0;letter-spacing:-.5px}
.simple-dialog label{font-size:13px;color:#526975;margin:14px 0 6px}
.simple-dialog input,.simple-dialog select,.simple-dialog textarea{font-size:14px;line-height:20px;padding:10px 12px;min-height:44px}
.simple-dialog textarea{min-height:92px;line-height:1.55;resize:vertical}
.simple-dialog .dialog-actions{margin-top:0;gap:10px;padding:20px 26px 26px}
.simple-dialog .save-job{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#168fa5;border:0;border-radius:10px;color:white;font:500 14px var(--font-body);padding:11px 22px;min-height:44px;cursor:pointer}
.simple-dialog .save-job:hover{background:#107b90}
.simple-dialog .save-job[disabled]{opacity:.6;cursor:default}
/* Saving sends the description through the formatter, which takes a few
   seconds. Same idiom as .save-cv-loader in the editor. */
.simple-dialog .save-job .save-spinner{display:none;width:14px;height:14px;flex:0 0 auto;box-sizing:border-box;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}
.simple-dialog .save-job.is-saving .save-spinner{display:block}
.simple-dialog .save-job.is-saving{opacity:1;cursor:progress}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.simple-dialog .save-job .save-spinner{animation-duration:2.4s}}
.simple-dialog .dialog-cancel{min-height:44px;color:#607580;font-size:14px}
.simple-dialog .dialog-close{flex-shrink:0;width:32px;height:32px}
.undo-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;z-index:2200;background:#fff;border:1px solid #dce7eb;border-radius:12px;box-shadow:0 8px 32px #26465920;padding:10px 14px;font:400 13px var(--font-body);color:#344b59;max-width:calc(100vw - 24px)}
.undo-toast[hidden]{display:none}.undo-toast button{border:0;background:transparent;color:#217487;font:500 13px var(--font-body);min-height:32px;padding:4px 7px;cursor:pointer}.undo-toast .dismiss-undo{color:#748a96}
.undo-toast button[hidden]{display:none}
@media(max-width:800px),(hover:none),(pointer:coarse){.card-actions{opacity:1;pointer-events:auto}.icon-action{width:44px;height:44px;flex-basis:44px}.action-style-1 .job-detail{max-width:calc(100% - 100px)}.simple-dialog input,.simple-dialog select,.simple-dialog textarea{font-size:16px}.simple-dialog .dialog-close{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.card-actions{transition:none}}

/* ---------- Saved-post reader (job-post-reader.css) ---------- */
.post-readable .job-card{cursor:pointer}
.post-readable .job-card.dragging{cursor:grabbing}
.post-dialog{width:660px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);padding:0;margin:auto;border:0;border-radius:22px;box-shadow:0 24px 80px #1d354033;background:white;color:#344b59;font-family:var(--font-body,Inter,sans-serif);overflow:hidden}
.post-dialog::backdrop{background:#17334855;backdrop-filter:blur(3px)}
.post-dialog[open]{display:flex;flex-direction:column}
.post-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px 8px;flex-shrink:0}
.post-bar span{font-size:13px;line-height:20px;font-weight:500;color:#607580}
.post-close{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:#f0f5f7;color:#526b78;cursor:pointer}
.post-close svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.7}
.post-close:hover{background:#e5eff3}
.post-close:focus-visible{outline:2px solid #168ca4;outline-offset:2px}
.post-scroll{padding:10px 36px 36px;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin}
.post-scroll h2{font-size:27px;font-weight:550;line-height:1.3;letter-spacing:-.5px;margin:0 0 8px;overflow-wrap:anywhere}
.post-company{font-size:14px;line-height:1.6;color:#607580;margin:0 0 28px}
.post-content{font-size:15px;line-height:1.75;overflow-wrap:anywhere;user-select:text}
.post-content h3{font-size:16px;line-height:1.5;font-weight:600;margin:26px 0 8px;color:#344b59}
.post-content p{margin:0 0 16px}
.post-content ul{padding-left:21px;margin:0 0 18px}
.post-content li{margin:0 0 7px;padding-left:3px}
.post-content>:last-child{margin-bottom:0}
@media(max-width:600px){.post-dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:18px}.post-bar{padding:12px 16px 6px}.post-close{width:44px;height:44px}.post-scroll{padding:10px 22px 28px}.post-scroll h2{font-size:24px}.post-content{font-size:16px;line-height:1.7}}

/* ---------- Custom status control (status-dropdown.css) ---------- */
.simple-dialog .status-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;padding:11px 13px;border:1px solid #dbe5e9;border-radius:10px;background:#fff;color:#435966;font:400 14px/22px var(--font-body);text-align:left;cursor:pointer}
.status-trigger>svg{width:16px;height:16px;stroke:#68818d;stroke-width:1.7;fill:none;flex-shrink:0;transition:transform .15s}
.status-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}
.simple-dialog .status-trigger:hover{border-color:#9dbdc8}
.simple-dialog .status-trigger:focus-visible,.simple-dialog .status-trigger[aria-expanded=true]{outline:2px solid #168fa566;outline-offset:2px;border-color:#73aeba}
.status-options{position:fixed;inset:auto;margin:0;box-sizing:border-box;padding:6px;border:1px solid #dce7eb;border-radius:13px;background:#fff;box-shadow:0 10px 28px #243f501f;color:#435966;font:400 14px/22px var(--font-body,Inter,sans-serif);overflow-y:auto;overscroll-behavior:contain}
.status-options::backdrop{background:transparent}
.status-option{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding:9px 11px;border-radius:8px;cursor:pointer;box-sizing:border-box}
.status-option[aria-selected=true]{color:#226e80;background:#edf6f7;font-weight:500}
.status-option.is-active,.status-option:hover{background:#e6f1f4;color:#235f71}
.status-option svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none;flex-shrink:0;visibility:hidden}
.status-option[aria-selected=true] svg{visibility:visible}
@media(max-width:600px),(pointer:coarse){.simple-dialog .status-trigger{font-size:16px}.status-options{font-size:16px}.status-option{min-height:44px}}
@media(prefers-reduced-motion:reduce){.status-trigger>svg{transition:none}}
