/* ===== Login page ===== */
.stp-login-page {
	background: #002F87 !important;
	padding: 60px 40px;
	display: flex;
	flex-wrap: wrap;
	gap: 60px;
	justify-content: center;
	border-radius: 8px;
}
.stp-login-page h2 { color: #fff; font-size: 32px; font-weight: 800; margin: 0 0 24px; }
.stp-login-column { flex: 1 1 320px; max-width: 420px; }
.stp-form label { display: block; color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.stp-form input, .stp-form select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: none; border-radius: 6px; font-size: 15px; box-sizing: border-box; }
.stp-btn, .stp-form button { background: #80BC00; color: #fff; border: none; border-radius: 0; padding: 14px 28px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 8px; }
.stp-btn:hover, .stp-form button:hover { background: #6a9d00; }
.stp-field-hint { font-size: 13px; margin: 10px 0; }
.stp-notice { padding: 12px 16px; margin-bottom: 16px; border-radius: 4px; }
.stp-notice-success { background: #eafaf1; border: 1px solid #2ecc71; color: #1e4620; }
.stp-notice-error { background: #fdecea; border: 1px solid #e74c3c; color: #611a13; }

/* ===== Entitlement / tables ===== */
.stp-entitlement-table { margin-top: 15px; border-collapse: collapse; width: 100%; }
.stp-entitlement-table th { background: #f8f9fa; font-weight: 600; padding: 10px; text-align: left; }
.stp-entitlement-table td { padding: 10px; vertical-align: middle; }
.stp-remaining-ok { background: #eafaf1; color: #1e8449; font-weight: 600; text-align: center; }
.stp-remaining-low { background: #fef9e7; color: #b7950b; font-weight: 600; text-align: center; }
.stp-remaining-none { background: #fdecea; color: #c0392b; font-weight: 700; text-align: center; }
.stp-entitlement-reset { margin-top: 15px; padding: 12px 16px; background: #f4f6f7; border-left: 4px solid #5d6d7e; font-size: 14px; }
.stp-entitlement-warning { background: #fdecea; border-left: 4px solid #c0392b; padding: 15px; margin-bottom: 20px; color: #333; }
.stp-approved-notice { background: #eafaf1; border-left: 4px solid #1e8449; padding: 15px; margin-bottom: 20px; color: #1e4620; }
.stp-new-start-notice { background: #fff8e6; border-left: 4px solid #f1c40f; padding: 15px; margin-bottom: 20px; color: #6b4f00; }
.stp-prior-order-note { background: #fff8e6; color: #6b4f00; font-size: 13px; padding: 10px 12px !important; border-bottom: 1px solid #f1c40f; }
.stp-badge { padding: 4px 8px; border-radius: 4px; font-size: 12px; background: #eee; color: #555; }
.stp-badge-bad { background: #c0392b; color: #fff; }
.stp-badge-ok { background: #eafaf1; color: #1e8449; }

.stp-tabs { display: flex; border-bottom: 2px solid #e0e0e0; margin-bottom: 24px; }
.stp-tabs a { display: inline-block; padding: 10px 20px; text-decoration: none; color: #555; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 500; }
.stp-tabs a.active, .stp-tabs a:hover { color: #222; border-bottom-color: #c0392b; }

.stp-filter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 20px; padding: 16px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 4px; }
.stp-filter-group { display: flex; flex-direction: column; gap: 4px; }
.stp-filter-group label { font-size: 12px; font-weight: 600; color: #555; text-transform: uppercase; }
.stp-filter-group select, .stp-filter-group input { padding: 6px 10px; border: 1px solid #ccc; border-radius: 3px; min-width: 160px; }

/* ===== AMM order-for selector ===== */
.stp-order-for { background: #f4f0fb; border: 1px solid #d6c7f0; border-radius: 6px; padding: 16px; margin-bottom: 16px; }
.stp-order-for-options { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 10px 0; }
.stp-radio { font-weight: 600; }
.stp-order-for-current { font-size: 13px; color: #555; margin: 0; }

/* ===== Reporting dashboard ===== */
.stp-summary-cards { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.stp-card { flex: 1 1 180px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; text-align: center; }
.stp-card-value { display: block; font-size: 28px; font-weight: 800; color: #4C12A1; }
.stp-card-label { display: block; font-size: 13px; color: #666; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 6px; }
.stp-card-warning .stp-card-value { color: #c0392b; }
.stp-card-info .stp-card-value { color: #b7950b; }

.stp-charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.stp-chart-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px; }
.stp-chart-box h3 { margin-top: 0; }
.stp-chart-box-wide { grid-column: 1 / -1; }
@media (max-width: 782px) {
	.stp-charts-grid { grid-template-columns: 1fr; }
}

/* ===== Holiday cover panel ===== */
.stp-cover-panel { background: #f4f0fb; border: 1px solid #d6c7f0; border-radius: 6px; padding: 16px; margin-bottom: 20px; }
.stp-cover-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* ===== Decision form (approve/reject with reason) ===== */
.stp-decision-form { display: flex; flex-direction: column; gap: 12px; max-width: 600px; }
.stp-decision-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stp-decision-row label { font-weight: 600; min-width: 160px; }
.stp-decision-row select { min-width: 220px; padding: 6px; }

/* ===== Password setup / password login ===== */
.stp-password-prompt { background: #eef4ff; border: 1px solid #b8cdf0; border-radius: 6px; padding: 16px; margin-bottom: 20px; }
.stp-set-password-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.stp-set-password-form label { font-weight: 600; font-size: 13px; }
.stp-set-password-form input { display: block; margin-top: 4px; padding: 8px; }
.stp-password-link { font-size: 13px; margin-bottom: 8px; }
.stp-password-login { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.25); }

/* ===== Login: secondary button + password toggle ===== */
.stp-btn-secondary { background: transparent; border: 2px solid #80BC00; color: #80BC00; }
.stp-btn-secondary:hover { background: rgba(128,188,0,0.1); }
#stp_login_buttons, #stp_password_submit_wrap { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ===== Onboarding ===== */
.stp-onboarding { max-width: 480px; }
.stp-onboarding-form label { display: block; font-weight: 600; margin-bottom: 14px; }
.stp-onboarding-form input, .stp-onboarding-form select { display: block; width: 100%; margin-top: 6px; padding: 10px; box-sizing: border-box; }

/* ===== Dashboard tiles ===== */
.stp-tiles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 30px; }
.stp-tile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; text-decoration: none; color: #222; transition: box-shadow 0.15s, transform 0.15s; }
.stp-tile:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); transform: translateY(-2px); color: #002F87; }
.stp-tile-icon { font-size: 28px; }
.stp-tile-title { font-weight: 700; font-size: 16px; }
.stp-tile-desc { font-size: 13px; color: #666; }

/* ===== Editable order items (Manager decision screen) ===== */
.stp-edit-order-form input[type="number"] { padding: 4px 8px; }
