/* Special Orders feature — scoped so it never collides with other feature CSS. */
.spo-topbar { margin-bottom: 1rem; }
.spo-search { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.spo-input { padding: .55rem .7rem; border: 1px solid #d9cdba; border-radius: 8px; min-width: 12rem; background: #fffdf9; }
.spo-input--sm { min-width: 8rem; }
.spo-select { padding: .55rem .7rem; border: 1px solid #d9cdba; border-radius: 8px; background: #fffdf9; }
.spo-btn { padding: .55rem 1rem; border: 0; border-radius: 8px; background: #6b4f2a; color: #fff; cursor: pointer; }
.spo-empty { color: #7a6a52; padding: 1.5rem 0; }

.spo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: .75rem; }
.spo-card { text-align: left; display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem;
    border: 1px solid #ece3d4; border-radius: 12px; background: #fffdf9; cursor: pointer; position: relative; }
.spo-card:hover { border-color: #caa96f; }
.spo-card-name { font-weight: 600; color: #3a2c17; }
.spo-card-meta { font-size: .85rem; color: #7a6a52; }
.spo-status { align-self: flex-start; margin-top: .25rem; font-size: .72rem; text-transform: uppercase;
    letter-spacing: .04em; padding: .12rem .5rem; border-radius: 999px; background: #eee; color: #555; }
.spo-status--open { background: #e5f2e5; color: #2e6b2e; }
.spo-status--invc, .spo-status--clos { background: #ece3d4; color: #6b4f2a; }
.spo-status--canc { background: #f2e5e5; color: #8a3a3a; }

.spo-sentinel { grid-column: 1 / -1; text-align: center; color: #7a6a52; padding: 1rem; }

.spo-modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center;
    justify-content: center; z-index: 1000; padding: 1rem; }
.spo-modal.hidden { display: none; }
.spo-modal-card { background: #fffdf9; border-radius: 16px; padding: 1.5rem; max-width: 42rem; width: 100%;
    max-height: 90vh; overflow-y: auto; position: relative; }
.spo-modal-close { position: absolute; top: .75rem; right: 1rem; border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: #7a6a52; }
.spo-modal-name { margin: 0 0 .25rem; color: #3a2c17; }
.spo-modal-sub { color: #7a6a52; font-size: .9rem; }
.spo-modal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1rem; margin: 1rem 0; }
.spo-modal-grid > div > div { color: #3a2c17; }
.spo-modal-block { margin-top: .75rem; }
.spo-modal-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #a08a6a; }

/* Tabs */
.spo-tabs { display: flex; gap: .25rem; border-bottom: 1px solid #ece3d4; margin-bottom: 1rem; }
.spo-tab { border: 0; background: none; padding: .6rem 1rem; cursor: pointer; color: #7a6a52;
    border-bottom: 2px solid transparent; font-size: .95rem; }
.spo-tab.active { color: #3a2c17; border-bottom-color: #caa96f; font-weight: 600; }
.spo-panel.hidden { display: none; }

/* Request cards (My Requests tab) */
.spo-req-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: .75rem; }
.spo-req-card { text-align: left; display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem;
    border: 1px solid #ece3d4; border-radius: 12px; background: #fffdf9; cursor: pointer; position: relative; }
.spo-req-card:hover { border-color: #caa96f; }
.spo-status--open { background: #e5f2e5; color: #2e6b2e; }
.spo-status--approved { background: #e5eaf2; color: #2e4a6b; }
.spo-status--closed { background: #ece3d4; color: #6b4f2a; }
.spo-req-modal-img { max-width: 12rem; border-radius: 10px; margin: .75rem 0; }
.spo-req-modal-img.hidden { display: none; }
