﻿/* Workshop details page (Views/Registration/Workshop.cshtml) face lift.
   Style only: every rule is scoped under .wk-detail. Status messages (_Messages) sit above the wrapper and are untouched. */

.wk-detail {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #1f2a33;
    background: #eef1f4;
    border-radius: 8px;
    padding: 20px;
    margin: 0 0 24px;
}

.wk-detail h1,
.wk-detail h2,
.wk-detail h3,
.wk-detail h4 {
    text-shadow: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0;
    color: #294456;
}

.wk-detail a:not(.btn) { color: #1f5f8b; }
.wk-detail a:not(.btn):hover,
.wk-detail a:not(.btn):focus { color: #163f5c; }

/* Buttons: palette only, Bootstrap classes stay */
.wk-detail .btn { border-radius: 6px; }
.wk-detail .btn-success { background-color: #2e7d4f; border-color: #2e7d4f; color: #fff; }
.wk-detail .btn-success:hover,
.wk-detail .btn-success:focus { background-color: #256641; border-color: #256641; color: #fff; }
.wk-detail .btn-primary { background-color: #1f5f8b; border-color: #1f5f8b; color: #fff; }
.wk-detail .btn-primary:hover,
.wk-detail .btn-primary:focus { background-color: #174a6d; border-color: #174a6d; color: #fff; }
.wk-detail .btn-danger { background-color: #a52a26; border-color: #a52a26; color: #fff; }
.wk-detail .btn-danger:hover,
.wk-detail .btn-danger:focus { background-color: #86211e; border-color: #86211e; color: #fff; }
.wk-detail .btn-warning,
.wk-detail .btn.wk-btn-waitlist { background-color: #9a5b00; border-color: #9a5b00; color: #fff; }
.wk-detail .btn-warning:hover,
.wk-detail .btn-warning:focus,
.wk-detail .btn.wk-btn-waitlist:hover,
.wk-detail .btn.wk-btn-waitlist:focus { background-color: #7c4900; border-color: #7c4900; color: #fff; }

/* ---------- Header card ---------- */
.wk-detail .wk-header {
    background: #fff;
    border: 1px solid #dde3e8;
    border-radius: 8px;
    overflow: hidden;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "staff staff staff"
        "kind  id    actions"
        "title title actions"
        "share share attend";
    column-gap: 16px;
    align-items: start;
}

/* The two existing Bootstrap rows hand their columns to the grid */
.wk-detail .wk-header > .row { display: contents; }
.wk-detail .wk-header > .row::before,
.wk-detail .wk-header > .row::after { content: none; display: none; }
.wk-detail .wk-header > hr,
.wk-detail .wk-header > br { display: none; }
.wk-detail .wk-header > .row > [class*="col-"] {
    float: none;
    width: auto;
    min-height: 0;
    padding: 0;
    margin-left: 0;
}

.wk-detail .wk-staffbar { grid-area: staff; }
.wk-detail .wk-kind { grid-area: kind; align-self: center; }
.wk-detail .wk-id { grid-area: id; align-self: center; justify-self: start; }
.wk-detail .wk-title { grid-area: title; }
.wk-detail .wk-share { grid-area: share; }
.wk-detail .wk-header .register-btns { grid-area: actions; }
.wk-detail .wk-attend { grid-area: attend; }

/* Staff-only bar with Edit Workshop */
.wk-detail .wk-staffbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -24px -28px 18px;
    padding: 8px 28px;
    background: #2f3e4c;
    color: #e7edf2;
    font-size: 13px;
}
.wk-detail .wk-staffbar-text { flex: 1 1 auto; min-width: 0; }
.wk-detail .wk-staffbar .btn.wk-btn-edit {
    float: none;
    margin: 0;
    height: 32px;
    line-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #294456;
    font-size: 13px;
    font-weight: 700;
}
.wk-detail .wk-staffbar .btn.wk-btn-edit:hover,
.wk-detail .wk-staffbar .btn.wk-btn-edit:focus { background: #e7edf2; color: #294456; }

/* "Workshop / Meeting Registration Details" drawn as the type badge */
.wk-detail .wk-kind h1 {
    display: inline-block;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: #e3eef6;
    color: #1f5f8b;
}
.wk-detail .wk-kind h1.wk-kind-meeting { background: #efe9f8; color: #4a3384; }

/* Workshop Id badge */
.wk-detail .wk-id .form-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f3f5;
    color: #3d4a55;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}
.wk-detail .wk-id label,
.wk-detail .wk-id p { margin: 0; font-weight: 700; }

/* Title (its "Workshop Title" label stays for screen readers only) */
.wk-detail .wk-title .form-group { margin: 10px 0 0; }
.wk-detail .wk-title label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.wk-detail .wk-title p {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    color: #294456;
}

/* Share widgets under the title */
.wk-detail .wk-share { margin-top: 10px; }
.wk-detail .wk-share .sharebutton { float: left; margin: 0 8px 0 0; }

/* Action buttons */
.wk-detail .wk-header .register-btns {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.wk-detail .wk-header .register-btns .btn {
    float: none;
    margin: 0;
    min-width: 220px;
    height: 46px;
    line-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
}
/* PayPal "Pay Now" image: same element and onclick, no longer floated/absolute */
.wk-detail .wk-header img.wk-paynow {
    position: static !important;
    float: none;
    margin: 0 !important;
    align-self: center;
}
/* Paid in full */
.wk-detail .wk-header .wk-paid {
    position: static !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #b5dcc4;
    border-radius: 6px;
    background: #e6f4ec;
}
.wk-detail .wk-header .wk-paid img { max-height: 36px; }

/* Complete Attendance box */
.wk-detail .wk-attend-box {
    float: none;
    min-width: 220px;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid #dde3e8;
    border-radius: 8px;
    background: #f7f9fa;
    color: #3d4a55;
    font-size: 13px;
    text-align: center !important;
}
.wk-detail .wk-attend-box p { margin: 0; }
.wk-detail .wk-attend-box #countdown {
    display: inline-block;
    margin-top: 4px;
    font-size: 22px;
    color: #1f2a33;
    font-variant-numeric: tabular-nums;
}
.wk-detail .wk-attend-box #qrcode { margin-top: 6px; border: 1px solid #cfd8df; }

/* ---------- Fact tiles ---------- */
/* A grid rather than flex-wrap: every row shares the same column edges whatever mix
   of tiles an entity shows (ESC 7 shows 6 + 5 + list tiles; flex gave each row its
   own widths). Number tiles take one column and list tiles two, so the last row may
   end short rather than break the column edges. */
.wk-detail .wk-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 12px 0 0;
}
.wk-detail .wk-facts > .wk-tile-list { grid-column: span 2; }
/* Rows holding only list tiles (Region One: Content Area; TPESS + COOPs) share the
   full width evenly; two lists split exactly on the tile column edge above. */
.wk-detail .wk-facts:not(:has(> :not(.wk-tile-list))) { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wk-detail .wk-facts:not(:has(> :not(.wk-tile-list))) > .wk-tile-list { grid-column: auto; }
.wk-detail .wk-facts::before,
.wk-detail .wk-facts::after { content: none; display: none; }
.wk-detail .wk-facts > [class*="col-"] {
    float: none;
    width: auto;
    min-width: 0;
    flex: 1 1 150px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #dde3e8;
    border-radius: 8px;
}
.wk-detail .wk-facts .form-group { margin: 0; }
.wk-detail .wk-facts label {
    display: block;
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: #5b6b78;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.wk-detail .wk-facts p {
    margin: 4px 0 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2a33;
}
.wk-detail .wk-facts p s {
    margin-right: 4px;
    font-size: 15px;
    font-weight: 400;
    color: #5b6b78;
}
/* List values (content area, credit type, COOPs, TPESS...) as chips */
.wk-detail .wk-facts .wk-tile-list p {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 400;
}
.wk-detail .wk-facts .wk-tile-list p > br { display: none; }
.wk-detail .wk-facts .wk-tile-list p > span {
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f3f5;
    color: #3d4a55;
}

/* ---------- Two columns ---------- */
.wk-detail .wk-cols {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
}
.wk-detail .wk-main { flex: 999 1 560px; min-width: 0; }
.wk-detail .wk-side { flex: 1 1 300px; min-width: 0; }
/* Main column and Contacts sidebar end on the same line: both columns stretch to
   the taller one and their last card grows to fill (Materials on the left,
   Contacts on the right). Only while they sit side by side. */
.wk-detail .wk-cols { align-items: stretch; }
.wk-detail .wk-main,
.wk-detail .wk-side { display: flex; flex-direction: column; }
.wk-detail .wk-main > :last-child,
.wk-detail .wk-side > :last-child { flex: 1 1 auto; display: flex; flex-direction: column; }
.wk-detail .wk-main > :last-child > [class*="col-"],
.wk-detail .wk-side > :last-child > [class*="col-"] { flex: 1 1 auto; display: flex; flex-direction: column; }
.wk-detail .wk-main > :last-child > [class*="col-"] > .wk-card:last-child { flex: 1 1 auto; }
.wk-detail .wk-main > :last-child::before,
.wk-detail .wk-main > :last-child::after,
.wk-detail .wk-side > :last-child::before,
.wk-detail .wk-side > :last-child::after { display: none; }
.wk-detail .wk-main > .row,
.wk-detail .wk-side > .row { margin-left: 0; margin-right: 0; }
.wk-detail .wk-main > .row > [class*="col-"],
.wk-detail .wk-side > .row > [class*="col-"] {
    float: none;
    width: auto;
    min-height: 0;
    padding: 0;
}
.wk-detail .wk-row-reset { margin-left: 0; margin-right: 0; }

.wk-detail .wk-card {
    margin: 0 0 16px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #dde3e8;
    border-radius: 8px;
}
.wk-detail .wk-side .wk-card { padding: 18px 20px; }
.wk-detail .wk-card h2 {
    margin: 0 0 12px;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.3;
}
.wk-detail .wk-side .wk-card h2 { font-size: 16px !important; }

/* About (Description / Audience) */
.wk-detail .wk-about .form-group { margin: 0 0 14px; }
.wk-detail .wk-about .form-group:last-child { margin-bottom: 0; }
.wk-detail .wk-about label {
    display: block;
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #5b6b78;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.wk-detail .wk-about .form-group:first-child > label {
    margin-bottom: 10px;
    font-size: 18px;
    color: #294456;
    text-transform: none;
    letter-spacing: 0;
}
.wk-detail .wk-about p { margin: 0; font-size: 15px; line-height: 1.6; }

/* Tables inside cards (also restyles the tables the partials draw) */
.wk-detail .wk-card .table {
    margin-bottom: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
}
.wk-detail .wk-card .table > thead > tr > th,
.wk-detail .wk-card .table > tbody > tr > th {
    padding: 8px 10px;
    border: 0;
    border-bottom: 2px solid #dde3e8;
    color: #5b6b78;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    vertical-align: bottom;
}
.wk-detail .wk-card .table > thead > tr > td,
.wk-detail .wk-card .table > tbody > tr > td {
    padding: 12px 10px;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    vertical-align: top;
}
.wk-detail .wk-card .table > tbody > tr:last-child > td { border-bottom: 0; }
.wk-detail .wk-card .table-striped > tbody > tr:nth-of-type(odd) { background-color: transparent; }
.wk-detail .wk-card .table .btn-xs,
.wk-detail .wk-card .table .btn-sm { border-radius: 6px; }
.wk-detail .wk-card .table small.pull-right { margin-left: 10px; font-size: 12px; }

/* Sidebar contact tables read as a stacked list */
.wk-detail .wk-side .table,
.wk-detail .wk-side .table > tbody,
.wk-detail .wk-side .table > tbody > tr,
.wk-detail .wk-side .table > tbody > tr > td {
    display: block;
    width: auto;
}
.wk-detail .wk-side .table > thead { display: none; }
.wk-detail .wk-side .table > tbody > tr {
    padding: 10px 0;
    border-bottom: 1px solid #edf0f2;
}
.wk-detail .wk-side .table > tbody > tr:first-child { padding-top: 0; }
.wk-detail .wk-side .table > tbody > tr:last-child { border-bottom: 0; padding-bottom: 0; }
.wk-detail .wk-side .table > tbody > tr > td {
    padding: 0;
    border: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.wk-detail .wk-side .table > tbody > tr > td:first-child { font-weight: 700; }
.wk-detail .wk-side .table > tbody > tr > td:first-child i { font-weight: 400; color: #5b6b78; }
.wk-detail .wk-side .table > tbody > tr > td:nth-child(2) { color: #5b6b78; }

/* Divider above Special Accommodations is replaced by spacing */
.wk-detail hr.wk-divider { display: none; }

/* ---------- Special Accommodations (amber card) ---------- */
.wk-detail .panel.wk-accomm {
    margin: 0;
    background: #fff7e8;
    border: 1px solid #f0d49b;
    border-radius: 8px;
    box-shadow: none;
    color: #5a4210;
}
.wk-detail .wk-accomm > .panel-heading {
    padding: 14px 16px 0;
    background: transparent;
    border: 0;
    color: #5a4210;
}
.wk-detail .wk-accomm > .panel-body {
    padding: 8px 16px 14px;
    font-size: 14px;
    line-height: 1.5;
}
.wk-detail .wk-accomm .row { display: flex; align-items: flex-start; margin: 0; }
.wk-detail .wk-accomm .row::before,
.wk-detail .wk-accomm .row::after { content: none; display: none; }
.wk-detail .wk-accomm .row > [class*="col-"] { float: none; width: auto; min-height: 0; padding: 0; }
.wk-detail .wk-accomm .handicaped { flex: 0 0 auto; margin-right: 14px; }
.wk-detail .wk-accomm .handicaped img { width: 40px; }
.wk-detail .wk-accomm .row > div + div { flex: 1 1 auto; min-width: 0; }
.wk-detail .wk-accomm .contacts-list-sa { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Modals (same Bootstrap 3 modals, new look) ---------- */
.wk-detail .modal-content {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(20, 30, 40, .18);
    overflow: hidden;
}
.wk-detail .modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #dde3e8;
    background: #fff;
}
.wk-detail .modal-header .modal-title {
    margin: 0;
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.3;
}
.wk-detail .modal-header .close {
    margin-top: 0;
    font-size: 26px;
    color: #5b6b78;
    opacity: .6;
    text-shadow: none;
}
.wk-detail .modal-header .close:hover { opacity: 1; }
.wk-detail .modal-body {
    padding: 20px 24px;
    font-size: 14px;
    line-height: 1.5;
}
.wk-detail .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #dde3e8;
    background: #f7f9fa;
}
.wk-detail .modal-footer .btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 6px;
    font-weight: 700;
}
/* Plain dismiss buttons (Close) read as secondary; #registerafterpaytype (has data-target) keeps its look */
.wk-detail .modal-footer .btn[data-dismiss="modal"]:not([data-target]) {
    background: #fff;
    border: 1px solid #b8c4cd;
    color: #294456;
    font-weight: 400;
}
.wk-detail .modal-footer .btn[data-dismiss="modal"]:not([data-target]):hover,
.wk-detail .modal-footer .btn[data-dismiss="modal"]:not([data-target]):focus { background: #eef1f4; }
.wk-detail .modal .form-control {
    height: 38px;
    border: 1px solid #b8c4cd;
    border-radius: 6px;
    box-shadow: none;
}
.wk-detail .modal .form-control:focus {
    border-color: #1f5f8b;
    box-shadow: 0 0 0 3px rgba(31, 95, 139, .2);
}

/* Register dialog: sections drawn as grouped fieldsets */
.wk-detail .wk-fieldset {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #dde3e8;
    border-radius: 8px;
}
.wk-detail .wk-fieldset > h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #294456;
}
.wk-detail .wk-fieldset hr,
.wk-detail .wk-note-cancel hr { display: none; }
.wk-detail .wk-fieldset .row + .row { margin-top: 8px; }
.wk-detail .wk-fieldset .control-label { padding-top: 9px; font-size: 13px; color: #5b6b78; }
.wk-detail .wk-fieldset .certifications { border-color: #dde3e8; border-radius: 6px; }
.wk-detail .wk-attendtype p > label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
    padding: 10px 12px !important;
    border: 1px solid #b8c4cd;
    border-radius: 6px;
}
.wk-detail .wk-note-cancel {
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid #f0d49b;
    border-radius: 8px;
    background: #fff7e8;
    color: #5a4210;
    font-size: 13px;
    line-height: 1.5;
}
.wk-detail .wk-note-cancel h3 { margin: 0 0 6px; font-size: 14px; color: #5a4210; }
.wk-detail .wk-note-cancel p:last-of-type { margin-bottom: 0; }
.wk-detail .wk-agree { padding-top: 4px; font-size: 14px; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 767px) {
    .wk-detail {
        padding: 12px;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
    .wk-detail .wk-header {
        padding: 16px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "staff"
            "kind"
            "id"
            "title"
            "share"
            "actions"
            "attend";
        row-gap: 8px;
    }
    .wk-detail .wk-staffbar { margin: -16px -16px 6px; padding: 8px 16px; }
    .wk-detail .wk-title .form-group { margin-top: 2px; }
    .wk-detail .wk-title p { font-size: 22px; }
    .wk-detail .wk-header .register-btns { margin-top: 8px; }
    .wk-detail .wk-header .register-btns .btn,
    .wk-detail .wk-header .wk-paid,
    .wk-detail .wk-attend-box { min-width: 0; width: 100%; }
    .wk-detail .wk-card { padding: 16px; }
    .wk-detail .wk-main .wk-card { overflow-x: auto; }
    .wk-detail .modal-header,
    .wk-detail .modal-body,
    .wk-detail .modal-footer { padding-left: 16px; padding-right: 16px; }
}
