/*
 * YemCollection-owned layout/forms/tables/dialogs, independent of Bootstrap classes
 * and variables. Values mirror the previous UI; shared overlays and the independent
 * StartView chart dialog retain their separate ownership.
 */
.yc-ui {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
}
.yc-ui *, .yc-ui *::before, .yc-ui *::after { box-sizing: border-box; }
.yc-ui [hidden], .yc-dialog-backdrop[hidden] { display: none !important; }
#yemCollectionViewId { background: rgb(225,235,247); border-radius: .5rem; }
.yc-ui p { margin: 0 0 1rem; }
.yc-ui label { display: inline-block; }
.yc-ui strong, .yc-strong { font-weight: 700; }
.yc-ui a { color: #0d6efd; text-decoration: underline; }
.yc-ui a:hover { color: #0a58ca; }
.yc-ui fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.yc-ui form { margin: 0; }
.yc-row { display: flex; flex-wrap: wrap; justify-content: center; margin-right: -12px; margin-left: -12px; }
.yc-section { flex: 0 0 auto; width: 100%; padding: 1rem; margin: 1rem; background: #fff; border-radius: .5rem; }
.yc-center { text-align: center; }
#yemCollectionMainHeaderId { margin: 0 0 .5rem; text-align: center; text-decoration: underline; font-size: calc(1.325rem + .9vw); font-weight: 500; line-height: 1.2; }
.yc-nowrap { white-space: nowrap; }
/* Local SVGs replace the icon font; rank arrows retain their larger presentation. */
.yc-icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; }
.yc-rank-icon { width: 1.333333em; height: 1.333333em; vertical-align: -.2em; }
.yc-muted { color: rgba(33,37,41,.75); }
.yc-ui small { font-size: .875em; }
.yc-table { width: 100%; margin-bottom: 1rem; color: #212529; vertical-align: top; border-collapse: collapse; caption-side: top; }
.yc-table caption { padding: .5rem 0; color: rgba(33,37,41,.75); text-align: left; }
.yc-table th, .yc-table td { padding: .5rem; border-bottom: 1px solid #dee2e6; text-align: center; }
.yc-table th { font-weight: 700; }
.yc-table thead { vertical-align: bottom; }
.yc-posts thead { background: #212529; color: #fff; }
.yc-posts thead th { border-color: #4d5154; }
.yc-posts tbody tr:nth-child(odd) { background: rgba(0,0,0,.05); }
.yc-table tbody tr:hover { background: rgba(0,0,0,.075); }
.yc-field { margin-bottom: 1rem; }
.yc-active { margin-left: 1rem !important; }
.yc-delete { margin-right: .5rem; }
.yc-label, .yc-error { margin-bottom: .5rem; }
.yc-label { font-weight: 700; }
.yc-error { color: #dc3545; }
.yc-input {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    margin: 0;
    font: inherit;
    color: #212529;
    line-height: 1.5;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    appearance: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.yc-input:focus { color: #212529; background-color: #fff; border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); }
.yc-input:disabled { background-color: #e9ecef; opacity: 1; }
.yc-input::placeholder { color: rgba(33,37,41,.75); opacity: 1; }
.yc-ui textarea.yc-input { min-height: calc(1.5em + .75rem + 2px); resize: vertical; }
.yc-ui input[type="date"] { min-height: calc(1.5em + .75rem + 2px); }
.yc-ui input[type="date"]::-webkit-datetime-edit { padding: 0; }
.yc-select {
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}
.yc-button {
    display: inline-block;
    margin: 0;
    padding: .375rem .75rem;
    font: inherit;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background: #0d6efd;
    border: 1px solid transparent;
    border-radius: .375rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.yc-button:focus { outline: 0; }
.yc-button:disabled { pointer-events: none; opacity: .65; }
.yc-primary { background-color: #0d6efd; border-color: #0d6efd; }
.yc-primary:hover { background-color: #0b5ed7; border-color: #0a58ca; }
.yc-primary:focus-visible { background-color: #0b5ed7; border-color: #0a58ca; box-shadow: 0 0 0 .25rem rgba(49,132,253,.5); }
.yc-primary:active { background-color: #0a58ca; border-color: #0a53be; }
.yc-secondary { background-color: #6c757d; border-color: #6c757d; }
.yc-secondary:hover { background-color: #5c636a; border-color: #565e64; }
.yc-secondary:focus-visible { background-color: #5c636a; border-color: #565e64; box-shadow: 0 0 0 .25rem rgba(130,138,145,.5); }
.yc-secondary:active { background-color: #565e64; border-color: #51585e; }
.yc-success { background-color: #198754; border-color: #198754; }
.yc-success:hover { background-color: #157347; border-color: #146c43; }
.yc-success:focus-visible { background-color: #157347; border-color: #146c43; box-shadow: 0 0 0 .25rem rgba(60,153,110,.5); }
.yc-success:active { background-color: #146c43; border-color: #13653f; }
.yc-danger { background-color: #dc3545; border-color: #dc3545; }
.yc-danger:hover { background-color: #bb2d3b; border-color: #b02a37; }
.yc-danger:focus-visible { background-color: #bb2d3b; border-color: #b02a37; box-shadow: 0 0 0 .25rem rgba(225,83,97,.5); }
.yc-danger:active { background-color: #b02a37; border-color: #a52834; }
/* Native checkboxes retain the old checkbox/switch appearance without Bootstrap utilities. */
.yc-check {
    appearance: none;
    width: 1em;
    height: 1em;
    margin: .25em 0 0;
    font: inherit;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0,0,0,.25);
    border-radius: .25em;
}
.yc-check:checked { background-color: #0d6efd; border-color: #0d6efd; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
.yc-check:focus { border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); }
.yc-check:disabled { opacity: .5; pointer-events: none; }
.yc-switch-field { min-height: 1.5rem; padding-left: 2.5em; }
.yc-switch-field .yc-switch {
    float: left;
    width: 2em;
    margin-left: -2.5em;
    border-radius: 2em;
    background-position: left center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3ccircle cx='10' cy='10' r='7' fill='rgba%280,0,0,0.25%29'/%3e%3c/svg%3e");
    transition: background-position .15s ease-in-out;
}
.yc-switch-field .yc-switch:checked { background-position: right center; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3ccircle cx='10' cy='10' r='7' fill='%23fff'/%3e%3c/svg%3e"); }
/* show(), rather than the native modal top layer, leaves shared confirmation/wait UI above us. */
.yc-dialog-backdrop { position: fixed; inset: 0; z-index: 1039; background: rgba(0,0,0,.5); }
dialog.yc-dialog {
    position: fixed;
    z-index: 1040;
    top: .5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1rem);
    max-width: 500px;
    max-height: calc(100vh - 1rem);
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.175);
    border-radius: .5rem;
    outline: 0;
    overflow: hidden;
}
dialog.yc-dialog:not([open]) { display: none; }
dialog.yc-dialog[open], .yc-dialog-content { display: flex; flex-direction: column; }
.yc-dialog-content { min-height: 0; max-height: inherit; width: 100%; }
.yc-dialog-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid #dee2e6; }
.yc-dialog-header h5 { margin: 0; font: inherit; font-size: 1.25rem; font-weight: 500; line-height: 1.5; }
.yc-close {
    box-sizing: content-box;
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    padding: .5rem;
    margin: -.5rem -.5rem -.5rem auto;
    font: inherit;
    line-height: 1;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586l6.293-6.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: .375rem;
    opacity: .5;
    cursor: pointer;
}
.yc-close:hover { opacity: .75; }
.yc-close:focus { outline: 0; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); opacity: 1; }
.yc-dialog-body { position: relative; flex: 1 1 auto; min-height: 0; padding: 1rem; overflow-y: auto; }
.yc-dialog-footer { display: flex; flex-wrap: wrap; flex-shrink: 0; align-items: center; justify-content: flex-end; padding: .75rem; border-top: 1px solid #dee2e6; }
.yc-dialog-footer > * { margin: .25rem; }
.yc-dialog-footer > .yc-dialog-spinner { margin-right: 3rem; }
.yc-dialog-spinner img { vertical-align: middle; }
@media (max-width: 767.98px) { .yc-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; } }
@media (min-width: 576px) {
    dialog.yc-dialog { top: 1.75rem; width: calc(100% - 3.5rem); max-height: calc(100vh - 3.5rem); }
}
@media (min-width: 768px) {
    .yc-info, .yc-width-11 { width: 91.66666667%; }
    .yc-width-1 { width: 8.33333333%; }
    .yc-width-2 { width: 16.66666667%; }
    .yc-width-3 { width: 25%; }
    .yc-width-4 { width: 33.33333333%; }
}
@media (min-width: 1200px) { #yemCollectionMainHeaderId { font-size: 2rem; } }
@media (prefers-reduced-motion: reduce) { .yc-input, .yc-button, .yc-switch-field .yc-switch { transition: none; } }
