﻿/* ==========================================================
   YTD.css – widget-specific rules
   ----------------------------------------------------------
   • Relies on Orders.css for grid + title
   • Adds the same diff-row alignment as MTD
   ==========================================================*/
#ytdContent {
    margin-top: .5rem;
}

#ytdCompany {
    display: block;
    width: auto;
    max-width: 120px;
    margin-block: .75rem;
    padding: .5rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
}

#ytdCompany:focus {
    border-color: #86b7fe;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.075), 0 0 0 .2rem rgba(13,110,253,.25);
    outline: none;
}

/* ----- right-align + border-less first cell on diff rows ----- */
#ytdTable tr.y-all-diff > td:first-child,
#ytdTable tr.y-all-diffpct > td:first-child,
#ytdTable tr.y-single-diff > td:first-child,
#ytdTable tr.y-single-diffpct > td:first-child {
    text-align: right;
    border: none;
}

@media(max-width:600px) {
    #ytdCompany {
        font-size: 1.125rem;
        padding: .75rem 1rem;
        max-width: 100%;
    }
}