/* =====================================================================
   Publicity Material Tracking - ONE global stylesheet for every page and
   component of the module (all classes prefixed .pub-), loaded in both
   hosts. Phone <= 767.98px per tokens.css; desktop follows the Figma.
   ===================================================================== */
.pub-page {
    --pub-green: #0b6b3a;
    --pub-green-dark: #08572f;
    --pub-green-soft: #eaf5ee;
    --pub-line: #e5e9ec;
    --pub-text: #1f2a30;
    --pub-muted: #6b7780;
    --pub-bg-input: #f7f8f9;
    color: var(--pub-text);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 24px;
}

.pub-page small {
    font-weight: 400;
}

.pub-muted {
    color: var(--pub-muted);
    font-size: 13px;
    margin: 0;
}

.pub-h2 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 4px;
}

.pub-h2 small {
    font-size: 15px;
    color: var(--pub-text);
}

.pub-h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 14px 0 8px;
    color: #3c4a52;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.pub-link {
    color: var(--pub-green);
    text-decoration: underline;
}

.pub-text-red {
    color: #d92d20;
}

.pub-text-amber {
    color: #e69500;
}

.pub-text-green {
    color: var(--pub-green);
}

/* ---- cards ---- */
.pub-card {
    background: #fff;
    border: 1px solid var(--pub-line);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}

.pub-card--flush {
    padding: 0;
    overflow: hidden;
}

.pub-card__body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pub-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.pub-card__tools {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Awaiting My Review / All My Requests - compact list-view selector, sits alongside the existing
   search/Export tools in the same row rather than adding a new section. */
.pub-card__band-toggle {
    display: flex;
    gap: 6px;
}

.pub-card__band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: 0;
    width: 100%;
    text-align: left;
    flex-wrap: wrap;
}

.pub-band--green {
    background: #f2f8f4;
}

.pub-band--amber {
    background: #fff7ec;
}

.pub-band--red {
    background: #fdeeee;
}

.pub-card--warn {
    border-color: #ffe0b2;
}

.pub-card--danger {
    background: #fff5f5;
    border-color: #f6caca;
}

.pub-card--amber {
    background: #fffaf0;
    border-color: #f7e3bd;
}

.pub-card--blue {
    background: #f1f6ff;
    border-color: #d6e4ff;
}

.pub-subcard {
    border: 1px solid var(--pub-line);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pub-sub-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pub-collapse {
    cursor: pointer;
}

.pub-collapse__title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pub-collapse__title .pub-muted {
    flex-basis: 100%;
}

.pub-collapse__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- buttons ---- */
.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    background: #fff;
    color: var(--pub-text);
}

.pub-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.pub-btn--sm {
    min-height: 32px;
    padding: 4px 12px;
    font-size: 13px;
}

.pub-btn--primary {
    background: var(--pub-green);
    color: #fff;
}

.pub-btn--primary:hover {
    background: var(--pub-green-dark);
    color: #fff;
}

.pub-btn--danger {
    background: #e5372b;
    color: #fff;
}

.pub-btn--blue {
    background: #2f6fed;
    color: #fff;
}

.pub-btn--line {
    border-color: var(--pub-green);
    color: var(--pub-green);
}

.pub-btn--line:hover {
    background: var(--pub-green-soft);
    color: var(--pub-green);
}

.pub-btn--line-blue {
    border-color: #2f6fed;
    color: #2f6fed;
}

.pub-btn--line-red {
    border-color: #f3b6b0;
    color: #d92d20;
    background: #fff6f5;
}

.pub-btn--line-grey {
    border-color: #cfd6db;
    color: #44525a;
}

.pub-btn--grey {
    background: #eef0f2;
    border-color: #d9dee2;
    color: #44525a;
}

.pub-btn--ghost {
    color: var(--pub-green);
}

.pub-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: #2f6fed;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
}

.pub-icon-btn:hover {
    background: #eef3ff;
}

.pub-icon-btn--violet {
    color: #b42ad1;
}

.pub-icon-btn--red {
    color: #d92d20;
}

.pub-actions-right {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.pub-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.pub-footer__gap {
    flex: 1;
}

/* ---- pills ---- */
.pub-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

.pub-pill--lg {
    font-size: 13.5px;
    padding: 6px 14px;
    border-radius: 20px;
}

.pub-pill--lg.pub-pill--green {
    border: 1px solid #a3d9b8;
    background: #eaf6ee;
    color: #0b6b3a;
}

.pub-pill--grey {
    background: #eef0f2;
    color: #55626a;
}

.pub-pill--amber {
    background: #fff1d6;
    color: #c76a00;
}

.pub-pill--green {
    background: #e3f4e8;
    color: #137a3f;
}

.pub-pill--cyan {
    background: #dff5fb;
    color: #0b7d99;
}

.pub-pill--red {
    background: #fde7e5;
    color: #d92d20;
}

.pub-pill--orange {
    background: #ffeedd;
    color: #e0620b;
}

.pub-pill--violet {
    background: #efe9ff;
    color: #6a3fd1;
}

.pub-pill--blue {
    background: #e4edff;
    color: #2457c5;
}

/* ---- tinted icon tiles ---- */
.pub-tint--blue {
    background: #eaf1ff;
    color: #3d6fd8;
}

.pub-tint--green {
    background: #e6f5ea;
    color: #1f8a4c;
}

.pub-tint--pink {
    background: #fdeaf1;
    color: #c2185b;
}

.pub-tint--violet {
    background: #f0ebff;
    color: #7c4dff;
}

.pub-tint--amber {
    background: #fff3df;
    color: #d98a00;
}

.pub-tint--red {
    background: #fdeceb;
    color: #e53935;
}

.pub-tint--cyan {
    background: #e2f7fb;
    color: #0aa1c2;
}

/* ---- KPI cards ---- */
.pub-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pub-kpis--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pub-kpis--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pub-kpis--6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pub-kpi {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--pub-line);
    border-radius: 12px;
    padding: 18px 20px;
    min-height: 104px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}

button.pub-kpi {
    cursor: pointer;
}

.pub-kpi.is-active {
    border-color: var(--pub-green);
    box-shadow: 0 0 0 2px var(--pub-green-soft);
}

.pub-kpi__label {
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
    padding-right: 52px;
}

.pub-kpi__value {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 3px 0;
}

.pub-kpi__hint {
    font-size: 11.5px;
    color: #94a3b8;
}

.pub-kpi__icon {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* ---- banners ---- */
.pub-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid;
    flex-wrap: wrap;
}

.pub-banner>div {
    flex: 1;
    min-width: 220px;
}

.pub-banner h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 2px;
}

.pub-banner p {
    margin: 0;
    font-size: 13.5px;
    color: #55626a;
}

.pub-banner__icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #fff;
}

.pub-banner--red {
    background: #fff3f2;
    border-color: #f9d3cf;
}

.pub-banner--red .pub-banner__icon,
.pub-banner--red h3 {
    color: #d92d20;
}

.pub-banner--green {
    background: #f0f8f3;
    border-color: #cfe8d8;
}

.pub-banner--green .pub-banner__icon,
.pub-banner--green h3 {
    color: var(--pub-green);
}

.pub-banner--amber {
    background: #fff8ee;
    border-color: #f8e1bd;
}

.pub-banner--amber .pub-banner__icon,
.pub-banner--amber h3 {
    color: #e0750b;
}

.pub-banner--blue {
    background: #f2f6ff;
    border-color: #d8e4fd;
}

.pub-banner--blue .pub-banner__icon,
.pub-banner--blue h3 {
    color: #2457c5;
}

.pub-note {
    font-size: 12.5px;
    padding: 6px 10px;
    border-radius: 6px;
}

.pub-note--amber {
    background: #fff4e5;
    color: #b25e00;
}

.pub-note--blue {
    background: #eaf1ff;
    color: #2457c5;
}

/* ---- forms ---- */
.pub-form {
    display: grid;
    gap: 16px 20px;
    grid-template-columns: minmax(0, 1fr);
}

.pub-form--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pub-form--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pub-form--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pub-form--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 20px;
}

.pub-input--readonly {
    background: #f1f3f4;
    color: #7a868d;
    cursor: not-allowed;
}

.pub-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.pub-field--wide {
    grid-column: span 2;
}

.pub-field__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.pub-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--pub-green);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pub-field--full {
    grid-column: 1 / -1;
}

.pub-label {
    font-size: 14px;
    font-weight: 600;
    color: #2b363c;
}

.pub-req::after {
    content: " *";
    color: #e5372b;
}

.pub-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #e1e5e8;
    border-radius: 8px;
    background: var(--pub-bg-input);
    font-size: 14px;
    color: var(--pub-text);
}

.pub-input:focus {
    outline: 2px solid #b9dcc6;
    border-color: var(--pub-green);
    background: #fff;
}

.pub-input:disabled {
    color: #7a868d;
}

/* Overrides .pub-input's own width:100% - without this, a bare search box inside a flex header
   (e.g. .pub-card__head > .pub-actions-right) greedily claims the row's remaining width and pushes
   its sibling button onto a wrapped second line instead of sitting beside it. */
.pub-input--search {
    width: 220px;
    min-height: 40px;
}

@media (max-width: 767.98px) {
    .pub-input--search {
        width: 100%;
    }
}

.pub-textarea {
    min-height: 96px;
    resize: vertical;
}

.pub-dates {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pub-dates span {
    color: var(--pub-muted);
    font-size: 13px;
}

.pub-search {
    position: relative;
    min-width: 260px;
}

.pub-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a3aa;
}

.pub-search .pub-input {
    padding-left: 34px;
    min-height: 40px;
}

.pub-radios {
    display: flex;
    gap: 12px;
}

.pub-radios--stack {
    flex-direction: column;
    margin-bottom: 14px;
}

.pub-radio {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #e1e5e8;
    border-radius: 8px;
    background: var(--pub-bg-input);
    cursor: pointer;
    font-size: 14px;
}

.pub-radio.is-good {
    background: #eaf6ee;
    border-color: #bfe0cb;
    color: var(--pub-green);
}

.pub-radio.is-bad {
    background: #fdeceb;
    border-color: #f4c3be;
    color: #d92d20;
}

.pub-remarks {
    min-height: 64px;
    padding: 12px;
    background: var(--pub-bg-input);
    border: 1px solid #e1e5e8;
    border-radius: 8px;
    color: #55626a;
    font-size: 14px;
    white-space: pre-wrap;
}

/* ---- drop zone + chips ---- */
.pub-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 16px;
    margin: 14px 0;
    border: 1.5px dashed #9fcdb0;
    border-radius: 10px;
    background: #fafcfb;
    text-align: center;
}

.pub-drop.is-over {
    background: var(--pub-green-soft);
}

.pub-drop__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.pub-drop__icon {
    font-size: 42px;
    color: var(--pub-green);
}

.pub-drop__title {
    font-size: 14.5px;
    font-weight: 500;
}

.pub-drop__hint {
    font-size: 12px;
    color: var(--pub-muted);
}

.pub-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}

.pub-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 16px;
    background: #eef4f0;
    font-size: 13px;
    border: 1px solid #d6e8dc;
}

.pub-chip button {
    border: 0;
    background: none;
    color: #77838a;
    padding: 0 2px;
}

.pub-chip--btn {
    cursor: pointer;
    text-align: left;
}

/* ---- info tiles + grids ---- */
.pub-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
    padding: 6px 0;
}

.pub-info__icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.pub-info__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.pub-info__label {
    font-size: 13.5px;
    color: #5f6c74;
}

.pub-info__label small {
    font-size: 11.5px;
}

.pub-info__value {
    font-size: 17px;
    font-weight: 600;
    color: var(--pub-text);
    overflow-wrap: anywhere;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pub-info__value small {
    font-size: 12px;
    color: var(--pub-muted);
    flex-basis: 100%;
}

.pub-info__value--sm {
    font-size: 14px;
}

.pub-grid {
    display: grid;
    gap: 8px 20px;
    padding: 0;
}

.pub-card--flush>.pub-grid {
    padding: 16px 20px;
}

.pub-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pub-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pub-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pub-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pub-grid--6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pub-grid--ruled>div+div {
    border-left: 1px solid var(--pub-line);
    padding-left: 20px;
}

.pub-grid__wide {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0;
}

.pub-statecard {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--pub-line);
}

.pub-statecard i {
    font-size: 30px;
}

.pub-statecard div {
    display: flex;
    flex-direction: column;
}

.pub-statecard span {
    font-size: 13px;
    color: var(--pub-muted);
}

.pub-statecard small {
    color: var(--pub-muted);
}

.pub-statecard.is-ok {
    background: #f2f9f4;
}

.pub-statecard.is-ok i {
    color: var(--pub-green);
}

.pub-statecard.is-wait {
    background: #f2f6ff;
}

.pub-statecard.is-wait i {
    color: #2457c5;
}

/* ---- header strip ---- */
.pub-strip {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    border-top: 3px solid #23a35a;
    padding: 18px 20px;
    gap: 0;
}

.pub-strip__cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 18px;
    align-items: flex-start;
}

.pub-strip__cell+.pub-strip__cell {
    border-left: 1px solid var(--pub-line);
}

.pub-strip__cell:first-child {
    padding-left: 0;
}

.pub-strip__id {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pub-strip__cap {
    font-size: 15px;
    color: #5f6c74;
}

.pub-person {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pub-person b {
    display: block;
    font-weight: 600;
}

.pub-person small {
    color: var(--pub-muted);
    font-size: 12px;
}

.pub-person--sm {
    gap: 6px;
}

.pub-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #1d6cf0;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.pub-person--sm .pub-avatar {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.pub-avatar--dark {
    background: #3d4a63;
}

/* ---- stepper ---- */
.pub-steps {
    display: flex;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    overflow-x: auto;
}

.pub-step {
    position: relative;
    flex: 1 1 0;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    padding: 0 4px;
}

.pub-step__dot {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #eef0f2;
    color: #8b979e;
    border: 1px solid #d7dde1;
}

.pub-step__line {
    position: absolute;
    top: 22px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    border-top: 2px dashed #c7cfd4;
}

.pub-step__line.is-done {
    border-top: 2px solid var(--pub-green);
}

.pub-step--2 .pub-step__dot {
    background: var(--pub-green);
    color: #fff;
    border-color: var(--pub-green);
}

.pub-step--1 .pub-step__dot {
    background: #1d6cf0;
    color: #fff;
    border-color: #1d6cf0;
}

.pub-step__dot--spin i {
    animation: pub-spin 1.6s linear infinite;
}

@keyframes pub-spin {
    to { transform: rotate(360deg); }
}

.pub-step--3 .pub-step__dot {
    background: #f6a313;
    color: #fff;
    border-color: #f6a313;
}

.pub-step__label {
    font-size: 13px;
    font-weight: 500;
    color: #44525a;
    margin-top: 4px;
}

.pub-step--2 .pub-step__label {
    color: var(--pub-green);
}

.pub-step--1 .pub-step__label {
    color: #1d50b3;
}

.pub-step__pill {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #eef0f2;
    color: #66737b;
}

.pub-step--2 .pub-step__pill {
    background: #e3f4e8;
    color: #137a3f;
}

.pub-step--1 .pub-step__pill {
    background: #e4edff;
    color: #2457c5;
}

.pub-step--3 .pub-step__pill {
    background: #fff1d6;
    color: #c76a00;
}

.pub-step__when {
    font-size: 11px;
    color: #6b7780;
}

/* ---- tabs ---- */
.pub-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    background: #fff;
    border: 1px solid var(--pub-line);
    border-radius: 10px;
    padding: 4px;
    overflow-x: auto;
}

.pub-tabs--inset {
    background: #eef0f2;
    margin-bottom: 16px;
}

.pub-tab {
    border: 0;
    background: transparent;
    padding: 12px 14px;
    font-size: 14.5px;
    color: #66737b;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.pub-tab.is-active {
    background: #eaf5ee;
    color: var(--pub-text);
    font-weight: 600;
    border-bottom-color: var(--pub-green);
}

/* ---- tables ---- */
.pub-table-wrap {
    overflow-x: auto;
}

.pub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pub-table th {
    background: #f3f5f6;
    font-weight: 600;
    padding: 12px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid var(--pub-line);
}

.pub-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eef1f3;
    vertical-align: middle;
}

.pub-table tbody tr:nth-child(even)>td {
    background: #fafbfb;
}

.pub-table tr.is-mine>td {
    background: #fff8ee;
}

.pub-table--history td:nth-child(2),
.pub-table--history td:last-child {
    text-align: left;
}

.pub-table--inner th {
    background: #fff;
}

.pub-subrow>td {
    background: #fff !important;
    padding: 0 20px 16px;
    text-align: left;
}

.pub-row-actions {
    white-space: nowrap;
}

.pub-hdot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d7dde1;
    vertical-align: middle;
    margin-right: 4px;
}

.pub-hdot--2 {
    background: var(--pub-green);
}

.pub-hdot--1 {
    background: #f6a313;
}

.pub-hdot--3 {
    background: #d92d20;
}

/* ---- Consolidation Page Styling (matches Figma) ---- */
.pub-btn--export {
    min-height: 38px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
}

.pub-btn--export:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

.pub-table--consolidation {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-top: 10px;
}

.pub-table--consolidation th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.pub-table--consolidation td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 13.5px;
    vertical-align: middle;
}

.pub-table--consolidation tbody tr.pub-master-row:hover>td {
    background: #fafbfb;
}

.pub-table--consolidation td.pub-region-name {
    font-weight: 500;
    color: #1e293b;
}

.pub-reviewed-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
}

.pub-reviewed-stat.is-done {
    color: #16a34a;
}

.pub-reviewed-stat.is-done i {
    color: #16a34a;
    font-size: 15px;
}

.pub-reviewed-stat.is-pending {
    color: #d97706;
}

.pub-reviewed-stat.is-pending i {
    color: #d97706;
    font-size: 15px;
}

.pub-btn-chevron {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s;
}

.pub-btn-chevron:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.pub-inner-wrap {
    padding: 16px 20px 24px 20px;
    background: #fff;
}

.pub-inner-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 14px 0;
    display: block;
}

.pub-table--inner {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
}

.pub-table--inner th {
    background: #fff !important;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    padding: 12px 14px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.pub-table--inner td {
    background: #fff !important;
    text-align: center;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #334155;
    vertical-align: middle;
}

.pub-table--inner td.pub-req-id {
    font-weight: 500;
    color: #1e293b;
}

.pub-inner-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pub-inner-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 17px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s;
}

.pub-inner-action-link:hover {
    transform: scale(1.18);
}

.pub-action-view {
    color: #2563eb;
}

.pub-action-edit {
    color: #a855f7;
}

.pub-banner--approval {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 24px;
    border: 1px solid;
    flex-wrap: wrap;
}

.pub-banner--approval.is-pending {
    background: #fffaf4;
    border-color: #fed7aa;
}

.pub-banner--approval.is-pending .pub-banner__icon {
    background: #ffedd5;
    color: #ea580c;
}

.pub-banner--approval.is-ready {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.pub-banner--approval.is-ready .pub-banner__icon {
    background: #dcfce7;
    color: #16a34a;
}

.pub-banner__left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.pub-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.pub-banner__text {
    min-width: 0;
}

.pub-banner__heading {
    font-size: 15.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 3px 0;
}

.pub-banner__sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.pub-btn--submit {
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s;
}

.pub-btn--submit.pub-btn--disabled {
    background: #f1ede6;
    color: #8a95a0;
    cursor: not-allowed;
}

.pub-btn--submit.pub-btn--ready {
    background: var(--pub-green);
    color: #fff;
    cursor: pointer;
}

.pub-btn--submit.pub-btn--ready:hover {
    background: var(--pub-green-dark);
}

/* ---- overview / files / photos ---- */
.pub-overview {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
    margin: 10px 0 16px;
}

.pub-overview__col+.pub-overview__col {
    border-left: 1px solid var(--pub-line);
    padding-left: 20px;
}

.pub-filecard {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pub-filecard__thumb {
    width: 170px;
    height: 190px;
    border-radius: 8px;
    background: #fdf1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 42px;
    color: #d9534f;
    flex: 0 0 auto;
}

.pub-filecard__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-filecard__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
    font-size: 13px;
    min-width: 0;
}

.pub-filecard__meta b {
    overflow-wrap: anywhere;
}

.pub-filecard__meta small {
    color: var(--pub-muted);
}

.pub-docs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pub-doc {
    border: 1px solid var(--pub-line);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 4px rgba(16, 24, 40, .06);
}

.pub-doc__head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pub-doc__head>div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pub-doc__icon {
    font-size: 26px;
    color: #e53935;
}

.pub-doc__title {
    font-weight: 500;
}

.pub-doc__meta {
    font-size: 12px;
    color: var(--pub-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pub-doc__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pub-photos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pub-photo {
    position: relative;
    width: 190px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    background: #9a8d8d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}

.pub-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-photo__eye {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: #fff;
    color: #2f6fed;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 16px;
}

.pub-proof {
    display: grid;
    grid-template-columns: 160px repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: center;
    border: 1px dashed #f0d2a8;
    border-radius: 10px;
    padding: 12px;
}

.pub-proof__intro {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pub-proof-box {
    border: 1px dashed #f0d2a8;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.pub-proof-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff8ee;
    border: 1px solid #f8e1bd;
    border-radius: 10px;
    padding: 12px 16px;
}

.pub-proof-note__text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pub-muted);
    font-size: 13.5px;
}

.pub-proof-note__text i {
    font-size: 18px;
    color: #e0750b;
}

.pub-proof__thumb {
    width: 160px;
    height: 100px;
    border-radius: 8px;
    background: #fdf0e3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 36px;
    color: #e0750b;
}

.pub-proof__thumb--lg {
    width: 100%;
    height: 280px;
}

.pub-proof__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- notifications ---- */
.pub-notes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pub-notice {
    width: 100%;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
    background: #fff;
    border: 1px solid var(--pub-line);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(16, 24, 40, .06);
    cursor: pointer;
}

.pub-notice.is-unread {
    border-color: #cfe0ff;
}

.pub-notice__icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex: 0 0 auto;
}

.pub-notice__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pub-notice__body b {
    font-size: 18px;
    font-weight: 600;
}

.pub-notice__body small {
    color: var(--pub-muted);
}

.pub-notice__when {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    color: #6b7780;
    font-size: 13px;
    white-space: nowrap;
}

.pub-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1d6cf0;
    display: inline-block;
}

.pub-notice-head {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pub-sheet-wide {
    --fb-drawer-width-full: min(1380px, 78vw);
}

.pub-sheet-wide .pub-card,
.pub-sheet-wide .pub-banner {
    margin-bottom: 16px;
}

/* ---- success page ---- */
.pub-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 40px 16px;
}

.pub-done__icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--pub-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
}

.pub-done h2 {
    color: var(--pub-green);
    font-size: 28px;
    font-weight: 600;
    margin: 8px 0 0;
}

.pub-done p {
    color: #6b7780;
    max-width: 640px;
}

.pub-done__table {
    width: min(1300px, 100%);
    border: 1px solid var(--pub-line);
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
    text-align: left;
}

.pub-done__table th {
    background: #eaf6ee;
    color: var(--pub-green);
    text-align: center;
    padding: 14px;
    font-weight: 500;
}

.pub-done__table td {
    padding: 14px 20px;
    border-top: 1px solid var(--pub-line);
}

.pub-done__table td:nth-child(odd) {
    color: #6b7780;
}

.pub-done__actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---- tablet ---- */
@media (max-width: 1199.98px) {

    .pub-kpis,
    .pub-kpis--5,
    .pub-kpis--6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pub-kpis--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pub-form--4,
    .pub-form--5,
    .pub-grid--5,
    .pub-grid--6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pub-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 16px;
    }

    .pub-strip__cell:nth-child(4) {
        border-left: 0;
        padding-left: 0;
    }

    .pub-overview {
        grid-template-columns: 1fr 1fr;
    }

    .pub-overview__file {
        display: none;
    }

    .pub-docs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- phone ---- */
@media (max-width: 767.98px) {
    .pub-page {
        gap: 14px;
    }

    .pub-hide-sm {
        display: none;
    }

    .pub-card {
        padding: 14px;
        border-radius: 10px;
    }

    .pub-card__band,
    .pub-card__body {
        padding: 12px 14px;
    }

    .pub-card--flush>.pub-grid {
        padding: 12px 14px;
    }

    .pub-kpis,
    .pub-kpis--3,
    .pub-kpis--5,
    .pub-kpis--6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pub-kpi {
        min-height: 92px;
        padding: 12px;
    }

    .pub-kpi__icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
        right: 10px;
        top: 10px;
    }

    .pub-kpi__label {
        font-size: 13px;
        padding-right: 36px;
    }

    .pub-kpi__value {
        font-size: 20px;
    }

    .pub-form--2,
    .pub-form--3,
    .pub-form--4,
    .pub-form--5,
    .pub-grid--2,
    .pub-grid--3,
    .pub-grid--4,
    .pub-grid--5,
    .pub-grid--6 {
        grid-template-columns: minmax(0, 1fr);
    }

    .pub-field--wide,
    .pub-grid__wide {
        grid-column: auto;
    }

    .pub-grid--ruled>div+div {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--pub-line);
        padding-top: 8px;
    }

    .pub-strip {
        grid-template-columns: 1fr 1fr;
        padding: 14px;
    }

    .pub-strip__cell {
        padding: 0;
        border-left: 0 !important;
    }

    .pub-strip__cell:first-child {
        grid-column: 1 / -1;
    }

    .pub-strip__id {
        font-size: 18px;
    }

    .pub-pill--lg {
        font-size: 13px;
        padding: 4px 10px;
    }

    .pub-overview {
        grid-template-columns: 1fr;
    }

    .pub-overview__col+.pub-overview__col {
        border-left: 0;
        padding-left: 0;
    }

    .pub-overview__file {
        display: block;
    }

    .pub-filecard__thumb {
        width: 96px;
        height: 110px;
    }

    .pub-docs {
        grid-template-columns: 1fr;
    }

    .pub-proof {
        grid-template-columns: 1fr;
    }

    .pub-search {
        min-width: 0;
        flex: 1;
    }

    .pub-card__tools {
        width: 100%;
    }

    .pub-radios {
        flex-direction: column;
    }

    .pub-steps {
        flex-direction: column;
        overflow: visible;
        gap: 0;
    }

    .pub-step {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        gap: 4px 10px;
        padding: 0 0 18px 0;
        min-width: 0;
    }

    .pub-step__dot {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .pub-step__line {
        left: 16px;
        right: auto;
        top: 34px;
        bottom: 0;
        border-top: 0 !important;
        border-left: 2px dashed #c7cfd4;
    }

    .pub-step__line.is-done {
        border-left: 2px solid var(--pub-green);
    }

    .pub-step__label {
        margin: 0;
    }

    .pub-step__when {
        flex-basis: 100%;
        padding-left: 44px;
    }

    .pub-tab {
        padding: 10px 12px;
        font-size: 13.5px;
    }

    .pub-footer {
        position: sticky;
        bottom: calc(var(--shell-tabbar-h, 60px) + var(--safe-bottom, 0px));
        background: #fff;
        padding: 10px;
        border-top: 1px solid var(--pub-line);
        margin: 0 -12px;
        z-index: 5;
    }

    .pub-footer .pub-btn {
        flex: 1;
        min-height: 44px;
    }

    .pub-footer__gap {
        display: none;
    }

    .pub-banner {
        padding: 14px;
    }

    .pub-banner .pub-btn {
        width: 100%;
    }

    .pub-notice {
        padding: 14px;
        gap: 12px;
    }

    .pub-notice__body b {
        font-size: 15px;
    }

    .pub-notice__when {
        display: none;
    }

    /* tables become cards */
    .pub-table thead {
        display: none;
    }

    .pub-table,
    .pub-table tbody,
    .pub-table tr,
    .pub-table td {
        display: block;
        width: 100%;
    }

    .pub-table tr {
        border: 1px solid var(--pub-line);
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 6px 10px;
        background: #fff;
    }

    .pub-table td {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        text-align: right;
        padding: 7px 0;
        border-bottom: 1px dashed #eef1f3;
        background: transparent !important;
    }

    .pub-table td:last-child {
        border-bottom: 0;
    }

    .pub-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #5f6c74;
        text-align: left;
    }

    .pub-subrow>td {
        padding: 0;
        display: block;
    }

    .pub-subrow>td::before {
        content: none;
    }

    .pub-done h2 {
        font-size: 22px;
    }

    .pub-done__table td {
        display: block;
        padding: 8px 14px;
    }
}

@media print {

    .pub-page .pub-btn,
    .pub-page .pub-tabs,
    .pub-footer {
        display: none !important;
    }
}

/* Secondary SMD review indicator under the RM-approval pill in the HQ request Status cell - a
   second small line, not a new column, so request-level review status is visible without opening
   every request (see PublicityConsolidation.razor's inner request table). */
.pub-review-subtag {
    display: block;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 2px;
    font-weight: 500;
}

.pub-review-subtag--done {
    color: var(--pub-green);
}

.pub-review-subtag--pending {
    color: #c76a00;
}

/* Reviewer name beneath "Approved by RM" - purely informational (who, not a status), so it stays
   neutral grey rather than reusing the green/orange done/pending colors above. */
.pub-review-subtag--neutral {
    color: #6b7780;
    font-weight: 400;
}