/* ONHYM Supplier Portal — Frontend
 * Inspired by gov / SAP Ariba / Oracle Supplier portals.
 * Colors: Dark Green #0D4F45, Gold #C79A2B, Light Gray #F4F6F5
 */
:root {
    --onhym-green: #0D4F45;
    --onhym-green-dark: #093d35;
    --onhym-green-light: #186c5f;
    --onhym-gold: #C79A2B;
    --onhym-gold-dark: #a47e1f;
    --onhym-bg: #F4F6F5;
    --onhym-surface: #ffffff;
    --onhym-border: #e4e8e7;
    --onhym-muted: #6b7775;
    --onhym-text: #1d2624;
    --onhym-radius: 10px;
    --onhym-radius-sm: 6px;
    --onhym-shadow: 0 4px 14px rgba(13, 79, 69, 0.08);
    --onhym-shadow-strong: 0 8px 28px rgba(13, 79, 69, 0.12);
    --onhym-danger: #b3261e;
    --onhym-warning: #b7791f;
    --onhym-success: #1f7a4f;
}

.onhym-portal { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--onhym-text); }
.onhym-portal *, .onhym-portal *::before, .onhym-portal *::after { box-sizing: border-box; }

.onhym-public {  padding: 40px 0 60px; min-height: 70vh; }
.onhym-private { min-height: 80vh; padding: 0; }

.onhym-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.onhym-narrow    { max-width: 900px; }
.onhym-tight     { max-width: 460px; }

.onhym-page-header { text-align: center; margin-bottom: 28px; }
.onhym-page-header h1 { color: var(--onhym-green); font-size: 28px; margin: 0 0 8px; font-weight: 700; }
.onhym-lead { color: var(--onhym-muted); font-size: 15px; line-height: 1.6; max-width: 720px; margin: 0 auto; }

/* Cards */
.onhym-card {
    background: var(--onhym-surface);
    border: 1px solid var(--onhym-border);
    border-radius: 14px;
    box-shadow: 0 4px 12px -4px rgba(13,79,69,.07);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.onhym-card:hover { box-shadow: 0 10px 24px -8px rgba(13,79,69,.13); }
.onhym-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--onhym-border);
    background: linear-gradient(180deg, #fbfcfb 0%, #f7f9f8 100%);
}
.onhym-card-head h3 { margin: 0; color: var(--onhym-green); font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.onhym-card-head a { color: var(--onhym-gold-dark); text-decoration: none; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.onhym-card-head a:hover { color: var(--onhym-gold); }
.onhym-card-head a::after { content: "→"; transition: transform .15s; }
.onhym-card-head a:hover::after { transform: translateX(3px); }
.onhym-card-body { padding: 18px 22px; }

/* Alerts */
.onhym-alert { padding: 14px 18px; border-radius: var(--onhym-radius-sm); margin-bottom: 16px; font-size: 14px; }
.onhym-alert-success { background: #e6f4ef; color: var(--onhym-success); border-left: 4px solid var(--onhym-success); }
.onhym-alert-danger  { background: #fbeae9; color: var(--onhym-danger);  border-left: 4px solid var(--onhym-danger); }
.onhym-alert-warning { background: #fdf5e6; color: var(--onhym-warning); border-left: 4px solid var(--onhym-warning); }

/* Forms */
.onhym-form { padding: 24px; }
.onhym-card.onhym-form { padding: 24px; }
.onhym-form-section { color: var(--onhym-green); margin: 18px 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--onhym-border); padding-bottom: 6px; }
.onhym-grid { display: grid; gap: 16px; }
.onhym-grid-1 { grid-template-columns: 1fr; }
.onhym-grid-2 { grid-template-columns: repeat(2, 1fr); }
.onhym-grid-gap { gap: 20px; }
.onhym-col-2 { grid-column: span 2; }
@media (max-width: 720px) { .onhym-grid-2 { grid-template-columns: 1fr; } .onhym-col-2 { grid-column: span 1; } }

.onhym-field { display: flex; flex-direction: column; }
.onhym-field label { font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--onhym-text); }
.onhym-field input[type=text],
.onhym-field input[type=email],
.onhym-field input[type=password],
.onhym-field input[type=date],
.onhym-field input[type=number],
.onhym-field input[type=search],
.onhym-field input[type=file],
.onhym-field select,
.onhym-field textarea {
    padding: 10px 12px; font-size: 14px; border: 1px solid var(--onhym-border); border-radius: var(--onhym-radius-sm); background: #fff; color: var(--onhym-text); transition: border-color .15s, box-shadow .15s;
}
.onhym-field input:focus, .onhym-field select:focus, .onhym-field textarea:focus { outline: none; border-color: var(--onhym-green); box-shadow: 0 0 0 3px rgba(13,79,69,.12); }
.onhym-hint { color: var(--onhym-muted); font-size: 12px; margin-top: 4px; }
.onhym-error { color: var(--onhym-danger); font-size: 12px; margin-top: 4px; }

.onhym-checkbox label { display: inline-flex; align-items: center; gap: 8px; font-weight: normal; color: var(--onhym-text); }
.onhym-field-row { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; font-size: 13px; }
.onhym-link { color: var(--onhym-gold-dark); text-decoration: none; }
.onhym-link:hover { text-decoration: underline; }

/* Buttons */
.onhym-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; justify-content: flex-end; }
.onhym-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: var(--onhym-radius-sm); border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .15s; }
.onhym-btn-primary   { background: var(--onhym-green); color: #fff; }
.onhym-btn-primary:hover { background: var(--onhym-green-dark); }
.onhym-btn-secondary { background: #fff; color: var(--onhym-green); border-color: var(--onhym-green); }
.onhym-btn-secondary:hover { background: var(--onhym-green); color: #fff; }
.onhym-btn-tertiary  { background: var(--onhym-gold); color: #fff; }
.onhym-btn-tertiary:hover { background: var(--onhym-gold-dark); }
.onhym-btn-block { width: 100%; }

/* ============================================================
   LOGIN / AUTH PAGES — Two-column "enterprise portal" card
   ============================================================ */
.onhym-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;

}
.onhym-login-wrap::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(13,79,69,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13,79,69,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
}

/* The card itself: wider, two-column, with strong shadow */
.onhym-login-wrap .onhym-container { position: relative; z-index: 1; width: 100%; max-width: 960px; padding: 0; }
.onhym-login-wrap .onhym-tight { max-width: 960px; }

.onhym-login-card {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(13, 79, 69, .35), 0 10px 30px -10px rgba(0,0,0,.12);
    background: #fff;
    min-height: 560px;
}

/* Left brand panel */
.onhym-login-head {
    position: relative;
    padding: 48px 44px;
    text-align: left;
    color: #fff;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(199,154,43,.35), transparent 60%),
        radial-gradient(500px 400px at 0% 100%, rgba(255,255,255,.08), transparent 60%),
        linear-gradient(160deg, var(--onhym-green-dark) 0%, var(--onhym-green) 55%, var(--onhym-green-light) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.onhym-login-head::after {
    content: "";
    position: absolute;
    right: -80px; bottom: -80px;
    width: 280px; height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 100px rgba(255,255,255,.02);
    pointer-events: none;
}
.onhym-login-head .onhym-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 13px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(4px);
    align-self: flex-start;
}
.onhym-login-head h1 {
    color: #fff;
    margin: 28px 0 14px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.3px;
}
.onhym-login-head p {
    color: rgba(255,255,255,.85);
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    max-width: 90%;
}
.onhym-login-features {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.onhym-login-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.9);
    font-size: 14px;
}
.onhym-login-features li::before {
    content: "";
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--onhym-gold);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
}

/* Right form panel */
.onhym-login-body { padding: 48px 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.onhym-login-body .onhym-login-title { color: var(--onhym-green); font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.onhym-login-body .onhym-login-sub { color: var(--onhym-muted); font-size: 14px; margin: 0 0 28px; }

.onhym-login-card .onhym-form { padding: 0; }
.onhym-login-card .onhym-alert { margin: 0 0 18px; }

.onhym-login-card .onhym-field { margin-bottom: 18px; }
.onhym-login-card .onhym-field label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--onhym-muted);
    margin-bottom: 8px;
}
.onhym-login-card .onhym-field input {
    height: auto;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 10px;
    background: #fafbfb;
    border: 1.5px solid var(--onhym-border);
    background-image: none !important;
    width: 100%;
}
.onhym-login-card .onhym-field input:focus {
    background-color: #fff;
    border-color: var(--onhym-green);
    box-shadow: 0 0 0 4px rgba(13,79,69,.12);
}
.onhym-login-card .onhym-field input[type="email"],
.onhym-login-card .onhym-field input[type="password"],
.onhym-login-card .onhym-field input[type="text"] {
    background-image: none;
}

.onhym-login-card .onhym-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 24px;
    font-size: 13px;
}
.onhym-login-card .onhym-checkbox label { gap: 8px; font-size: 13px; color: var(--onhym-text); }
.onhym-login-card .onhym-checkbox input { accent-color: var(--onhym-green); width: 16px; height: 16px; }

.onhym-login-card .onhym-actions { margin-top: 8px; justify-content: stretch; }
.onhym-login-card .onhym-btn-primary {
    height: 52px;
    padding: 0 20px;
    font-size: 15px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--onhym-green) 0%, var(--onhym-green-light) 100%);
    box-shadow: 0 8px 20px -8px rgba(13,79,69,.6);
    letter-spacing: .3px;
}
.onhym-login-card .onhym-btn-primary:hover {
    background: linear-gradient(135deg, var(--onhym-green-dark) 0%, var(--onhym-green) 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -8px rgba(13,79,69,.7);
}

.onhym-login-footer {
    grid-column: 1 / -1;
    padding: 18px 48px;
    border-top: 1px solid var(--onhym-border);
    text-align: center;
    font-size: 14px;
    color: var(--onhym-muted);
    background: #fafbfa;
}
.onhym-login-footer a {
    color: var(--onhym-gold-dark);
    font-weight: 700;
    text-decoration: none;
    margin-left: 6px;
}
.onhym-login-footer a:hover { text-decoration: underline; }

/* Responsive: stack on small screens */
@media (max-width: 860px) {
    .onhym-login-card { grid-template-columns: 1fr; min-height: 0; }
    .onhym-login-head { padding: 36px 32px; }
    .onhym-login-head h1 { font-size: 24px; margin-top: 18px; }
    .onhym-login-head::after { display: none; }
    .onhym-login-features { display: none; }
    .onhym-login-body { padding: 32px 28px; }
    .onhym-login-footer { padding: 16px 28px; }
}
@media (max-width: 480px) {
    .onhym-login-wrap { padding: 20px 12px; }
    .onhym-login-head { padding: 28px 24px; }
    .onhym-login-body { padding: 26px 22px; }
}

/* Sidebar/dashboard layout */
.onhym-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    gap: 22px;
    padding: 22px;
}
@media (max-width: 920px) { .onhym-shell { grid-template-columns: 1fr; padding: 12px; gap: 12px; } }

.onhym-sidebar {
    background: linear-gradient(180deg, var(--onhym-green-dark) 0%, var(--onhym-green) 60%, var(--onhym-green-light) 100%);
    color: #fff;
    padding: 26px 0 20px;
    border-radius: 18px;
    box-shadow: 0 10px 30px -12px rgba(13,79,69,.35);
    position: relative;
    overflow: hidden;
}
.onhym-sidebar::before {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199,154,43,.25), transparent 70%);
    pointer-events: none;
}
.onhym-sidebar-head { padding: 0 22px 22px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; z-index: 1; }
.onhym-sidebar .onhym-brand {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 14px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(4px);
}
.onhym-sidebar-company { font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.onhym-sidebar-email { color: rgba(255,255,255,.7); font-size: 12px; margin-top: 4px; word-break: break-all; }

.onhym-nav { padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.onhym-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: 14px;
    transition: all .18s;
    border-radius: 10px;
}
.onhym-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(2px); }
.onhym-nav-link.is-active {
    background: rgba(199,154,43,.18);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--onhym-gold);
    font-weight: 600;
}
.onhym-nav-link .dashicons { font-size: 18px; width: 18px; height: 18px; }
.onhym-badge-count { margin-left: auto; background: var(--onhym-gold); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }

.onhym-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px -12px rgba(13,79,69,.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.onhym-topbar {
    background: #fff;
    padding: 16px 28px;
    border-bottom: 1px solid var(--onhym-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.onhym-topbar-title { font-size: 19px; font-weight: 700; color: var(--onhym-green); }
.onhym-topbar-actions { display: flex; align-items: center; gap: 12px; }

.onhym-iconbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #eef3f1;
    color: var(--onhym-green);
    text-decoration: none;
    transition: all .2s;
    border: 1.5px solid transparent;
}
.onhym-iconbtn svg { width: 20px; height: 20px; stroke: currentColor; }
.onhym-iconbtn:hover {
    background: var(--onhym-green);
    color: #fff;
    transform: scale(1.08);
    border-color: var(--onhym-green-dark);
    box-shadow: 0 4px 12px -4px rgba(13,79,69,.4);
}
.onhym-iconbtn:hover svg { stroke: #fff; }
.onhym-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--onhym-gold);
    border: 2px solid #fff;
    animation: onhym-pulse 2s ease-in-out infinite;
}
@keyframes onhym-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(199,154,43,.5); }
    50%       { box-shadow: 0 0 0 5px rgba(199,154,43,0); }
}

/* User chip in topbar */
.onhym-user { display: flex; align-items: center; gap: 10px; }
.onhym-user-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--onhym-green) 0%, var(--onhym-green-light) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px -2px rgba(13,79,69,.3);
}
.onhym-user-info { display: flex; flex-direction: column; line-height: 1.3; }
.onhym-user-name { font-size: 14px; color: var(--onhym-text); font-weight: 600; }
.onhym-user-role { font-size: 11px; color: var(--onhym-muted); text-transform: uppercase; letter-spacing: .5px; }
.onhym-pane { padding: 28px; background: #fafbfa; flex: 1; }

.onhym-welcome { margin-bottom: 26px; }
.onhym-welcome h2 { margin: 0 0 6px; color: var(--onhym-green); font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.onhym-welcome h2 span { color: var(--onhym-gold-dark); }
.onhym-muted { color: var(--onhym-muted); font-size: 13px; }

/* Stats */
.onhym-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}
@media (max-width: 1100px) { .onhym-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .onhym-stats { grid-template-columns: repeat(2, 1fr); } }

.onhym-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 18px 16px;
    border: 1px solid var(--onhym-border);
    border-left: 4px solid var(--onhym-green);
    box-shadow: 0 4px 12px -4px rgba(13,79,69,.08);
    transition: all .2s;
    position: relative;
    overflow: hidden;
}
.onhym-stat-card::after {
    content: "";
    position: absolute;
    right: -20px; top: -20px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(13,79,69,.04);
}
.onhym-stat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(13,79,69,.18); }
.onhym-stat-card.stat-paid    { border-left-color: var(--onhym-success); }
.onhym-stat-card.stat-paid::after { background: rgba(31,122,79,.08); }
.onhym-stat-card.stat-pending { border-left-color: var(--onhym-warning); }
.onhym-stat-card.stat-pending::after { background: rgba(183,121,31,.08); }
.onhym-stat-card.stat-overdue { border-left-color: var(--onhym-danger); }
.onhym-stat-card.stat-overdue::after { background: rgba(179,38,30,.08); }
.onhym-stat-card.stat-docs    { border-left-color: var(--onhym-gold); }
.onhym-stat-card.stat-docs::after { background: rgba(199,154,43,.10); }
.onhym-stat-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--onhym-green);
    line-height: 1;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
.onhym-stat-label {
    color: var(--onhym-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Tables */
.onhym-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.onhym-table th { text-align: left; padding: 10px 12px; color: var(--onhym-muted); text-transform: uppercase; font-size: 11px; letter-spacing: .4px; border-bottom: 1px solid var(--onhym-border); background: #fafbfa; }
.onhym-table td { padding: 12px; border-bottom: 1px solid var(--onhym-border); vertical-align: middle; }
.onhym-table tr:last-child td { border-bottom: 0; }
.onhym-table-zebra tbody tr:nth-child(even) td { background: #fafbfa; }
.onhym-empty { text-align: center; color: var(--onhym-muted); padding: 28px !important; }
.onhym-actions-col { width: 130px; }

/* Badges */
.onhym-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-success { background: #e1f3ea; color: var(--onhym-success); }
.badge-warning { background: #fbf1d8; color: var(--onhym-warning); }
.badge-danger  { background: #fbe2df; color: var(--onhym-danger); }
.badge-muted   { background: #ececec; color: #555; }

/* Filters */
.onhym-filters { display: flex; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--onhym-border); background: #fafbfa; flex-wrap: wrap; align-items: center; }
.onhym-filters input, .onhym-filters select { padding: 8px 10px; border: 1px solid var(--onhym-border); border-radius: var(--onhym-radius-sm); font-size: 13px; }

/* Pagination */
.onhym-pagination { display: flex; gap: 6px; justify-content: center; padding: 18px 0; }
.onhym-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px; border: 1px solid var(--onhym-border); border-radius: var(--onhym-radius-sm); color: var(--onhym-text); text-decoration: none; font-size: 13px; background: #fff; }
.onhym-pagination a.is-current { background: var(--onhym-green); color: #fff; border-color: var(--onhym-green); }

/* Notifications */
.onhym-notifs { list-style: none; margin: 0; padding: 0; }
.onhym-notif { padding: 14px 18px; border: 1px solid var(--onhym-border); border-radius: var(--onhym-radius-sm); margin-bottom: 10px; background: #fff; }
.onhym-notif.is-unread { border-left: 4px solid var(--onhym-gold); background: #fffbf2; }
.onhym-notif-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.onhym-notif-msg { color: var(--onhym-text); font-size: 14px; line-height: 1.5; }
.onhym-notif-actions { margin-top: 8px; }
.onhym-notif-actions .onhym-link { background: none; border: 0; padding: 0; color: var(--onhym-gold-dark); cursor: pointer; font-size: 12px; }

/* Icons in actions */
.onhym-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--onhym-radius-sm); background: var(--onhym-bg); color: var(--onhym-green); text-decoration: none; margin-right: 4px; }
.onhym-icon-link:hover { background: var(--onhym-green); color: #fff; }

/* Lists */
.onhym-list { list-style: none; margin: 0; padding: 0; }
.onhym-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--onhym-border); }
.onhym-list li:last-child { border-bottom: 0; }
.onhym-list a { color: var(--onhym-green); text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* Invoice view PDF iframe */
.onhym-pdf-frame { margin-top: 16px; height: 700px; border: 1px solid var(--onhym-border); border-radius: var(--onhym-radius-sm); overflow: hidden; }
.onhym-pdf-frame iframe { width: 100%; height: 100%; border: 0; }
.onhym-meta strong { color: var(--onhym-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 4px; }
.onhym-meta { margin-bottom: 16px; }
.onhym-narrow-form { max-width: 480px; }

@media print {
    .onhym-sidebar, .onhym-topbar, .onhym-actions, .onhym-card-head a, .onhym-pdf-frame { display: none !important; }
}

/* ============================================================
   TENDER MANAGEMENT (Appels d'offres) — public
   ============================================================ */
.onhym-tenders-page { max-width: 1200px; margin: 0 auto; padding: 30px 20px; color: #1f2937; }
.onhym-tender-header { text-align: center; margin-bottom: 32px; }
.onhym-tender-header h1 { font-size: 34px; margin: 0 0 10px; color: #0D4F45; font-weight: 700; }
.onhym-tender-sub { color: #4b5563; font-size: 15px; max-width: 760px; margin: 0 auto; line-height: 1.55; }

/* Featured */
.onhym-tender-featured { margin: 28px 0; }
.onhym-tender-featured h2 { font-size: 18px; color: #C79A2B; margin: 0 0 14px; font-weight: 600; }
.onhym-tender-featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.onhym-tender-featured-card { display: block; background: #fff; border: 1px solid #e5e7eb; border-left: 4px solid #C79A2B; border-radius: 10px; padding: 16px 18px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .15s; }
.onhym-tender-featured-card:hover { box-shadow: 0 6px 22px rgba(13,79,69,.10); transform: translateY(-2px); }
.onhym-tender-featured-card h3 { font-size: 16px; margin: 8px 0 6px; color: #0D4F45; }
.onhym-tender-featured-card .onhym-tender-ref { font-size: 12px; color: #6b7280; margin: 0 0 6px; font-family: monospace; }
.onhym-tender-featured-card .onhym-tender-exp { font-size: 13px; color: #374151; margin: 0; }

/* Filters */
.onhym-tender-filters { position: sticky; top: 16px; z-index: 5; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.04); margin: 18px 0; }
.onhym-tender-filters input[type="search"],
.onhym-tender-filters select { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; background: #fff; }
.onhym-tender-filters input[type="search"] { min-width: 220px; flex: 1; }
.onhym-tender-filters .onhym-btn-primary { background: #0D4F45; color: #fff; border: 0; padding: 10px 18px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.onhym-tender-filters .onhym-btn-primary:hover { background: #093d35; }
.onhym-tender-filters .onhym-btn-ghost { padding: 10px 14px; border-radius: 8px; border: 1px solid #d1d5db; color: #374151; text-decoration: none; font-size: 14px; }

.onhym-tender-count { font-size: 13px; color: #6b7280; margin: 8px 4px 12px; }

/* Table */
.onhym-tender-table-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.onhym-tender-table { width: 100%; border-collapse: collapse; }
.onhym-tender-table thead { background: #0D4F45; color: #fff; }
.onhym-tender-table th { text-align: left; font-weight: 600; padding: 14px 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: #fff !important; }
.onhym-tender-table td { padding: 14px 16px; border-top: 1px solid #f1f5f4; font-size: 14px; vertical-align: middle; }
.onhym-tender-row:hover { background: #f9fafb; }
.onhym-tender-table a { color: #0D4F45; text-decoration: none; }
.onhym-tender-table a:hover { color: #C79A2B; }
.onhym-tender-star { color: #C79A2B; font-size: 16px; }

/* Badges */
.onhym-tender-badge-type { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.onhym-tender-type-national { background: #e0f2fe; color: #075985; }
.onhym-tender-type-international { background: #fef3c7; color: #92400e; }
.onhym-tender-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.onhym-tender-status-open { background: #dcfce7; color: #166534; }
.onhym-tender-status-closed { background: #fee2e2; color: #991b1b; }

.onhym-btn-link { color: #0D4F45; text-decoration: none; font-weight: 500; margin-right: 10px; }
.onhym-btn-link:hover { color: #C79A2B; text-decoration: underline; }

/* Pagination */
.onhym-tender-pagination { display: flex; gap: 6px; justify-content: center; margin: 22px 0; flex-wrap: wrap; }
.onhym-tender-pagination a { padding: 8px 14px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #374151; text-decoration: none; font-weight: 500; }
.onhym-tender-pagination a:hover { background: #f3f4f6; }
.onhym-tender-pagination a.is-current { background: #0D4F45; border-color: #0D4F45; color: #fff; }

.onhym-tender-empty { text-align: center; padding: 40px 20px; color: #6b7280; background: #fff; border: 1px dashed #d1d5db; border-radius: 12px; }

/* Detail */
.onhym-tender-detail { max-width: 1100px; margin: 0 auto; padding: 30px 20px; color: #1f2937; }
.onhym-breadcrumb { margin-bottom: 18px; }
.onhym-breadcrumb a { color: #0D4F45; text-decoration: none; font-size: 14px; font-weight: 500; }
.onhym-breadcrumb a:hover { color: #C79A2B; }
.onhym-tender-detail-head { background: #fff; border: 1px solid #e5e7eb; border-left: 5px solid #0D4F45; border-radius: 12px; padding: 26px 28px; margin-bottom: 22px; }
.onhym-tender-detail-head h1 { font-size: 28px; color: #0D4F45; margin: 12px 0 6px; }
.onhym-tender-detail-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.onhym-tender-detail-meta .onhym-tender-category { background: #f1f5f4; color: #0D4F45; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.onhym-tender-ref { color: #6b7280; font-size: 14px; margin: 6px 0 0; }

.onhym-tender-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; }
.onhym-tender-detail-body { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 26px 28px; }
.onhym-tender-detail-body h2 { color: #0D4F45; font-size: 20px; margin: 0 0 12px; }
.onhym-tender-description { line-height: 1.65; color: #374151; }
.onhym-tender-description img { max-width: 100%; height: auto; }

.onhym-tender-info-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 22px; position: sticky; top: 20px; }
.onhym-tender-info-card h3 { color: #0D4F45; font-size: 16px; margin: 0 0 14px; }
.onhym-tender-info-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.onhym-tender-info-card li { padding: 10px 0; border-bottom: 1px solid #f1f5f4; font-size: 14px; }
.onhym-tender-info-card li:last-child { border-bottom: 0; }

.onhym-tender-actions { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 14px; }
.onhym-btn-pdf, .onhym-btn-market { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 14px; transition: background .2s, transform .15s; }
.onhym-btn-pdf { background: #0D4F45; color: #fff; }
.onhym-btn-pdf:hover { background: #093d35; color: #fff; transform: translateY(-1px); }
.onhym-btn-market { background: #C79A2B; color: #fff; }
.onhym-btn-market:hover { background: #a47e1f; color: #fff; transform: translateY(-1px); }

.onhym-tender-note { font-size: 12px; color: #6b7280; font-style: italic; margin: 6px 0 0; }

/* Responsive : convert table to cards on mobile */
@media (max-width: 820px) {
  .onhym-tender-detail-grid { grid-template-columns: 1fr; }
  .onhym-tender-info-card { position: static; }
}
@media (max-width: 720px) {
  .onhym-tender-table thead { display: none; }
  .onhym-tender-table, .onhym-tender-table tbody, .onhym-tender-table tr, .onhym-tender-table td { display: block; width: 100%; }
  .onhym-tender-row { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 12px; padding: 6px 4px; }
  .onhym-tender-row td { border: 0; padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .onhym-tender-row td::before { content: attr(data-label); font-weight: 600; color: #6b7280; font-size: 12px; text-transform: uppercase; }
  .onhym-tender-filters { position: static; }
}
