/* Statik Portal Public Styles */

:root {
    --sp-primary: #0073aa;
    --sp-primary-hover: #005177;
    --sp-bg-light: #f9f9f9;
    --sp-border: #ddd;
    --sp-text: #333;
    --sp-success-bg: #dff0d8;
    --sp-success-text: #3c763d;
    --sp-error-bg: #fdd;
    --sp-error-text: #a00;
}

/* Wrapper & Reset */
.sp-portal-wrapper,
.sp-employee-dash {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--sp-text);
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
}

.sp-portal-wrapper {
    max-width: 800px;
    padding: 30px;
    border: 1px solid var(--sp-border);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Typography */
.sp-title {
    margin-top: 0;
    font-weight: 700;
    color: #23282d;
}

.sp-subtitle {
    font-size: 0.6em;
    color: #888;
    font-weight: 400;
}

.sp-heading {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #444;
}

/* Status Box */
.sp-status-box {
    background: var(--sp-bg-light);
    padding: 15px 20px;
    margin-bottom: 25px;
    border-left: 5px solid var(--sp-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-status-label {
    font-weight: bold;
    color: #555;
}

.sp-status-value {
    font-weight: 500;
    font-size: 1.1em;
    color: var(--sp-primary);
}

/* Grid Layout */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.sp-card {
    background: #fff;
}

.sp-card p {
    margin: 5px 0;
    line-height: 1.5;
}

/* Forms */
.sp-form-box {
    background: #fbfbfb;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.sp-form-box h3 {
    margin-top: 0;
}

.sp-input,
.sp-textarea,
.sp-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 48px;
    /* Force height equality */
}

.sp-input:focus,
.sp-textarea:focus,
.sp-select:focus {
    border-color: var(--sp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

textarea.sp-textarea {
    min-height: 120px;
    resize: vertical;
}

.sp-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 0.95em;
}

/* File input special handling */
input[type="file"].sp-input {
    padding: 10px;
    min-height: auto;
    border: 1px dashed #ccc;
    background: #f9f9f9;
}

/* Buttons */
.sp-btn {
    display: inline-block;
    background: var(--sp-primary);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.2s;
    text-align: center;
}

.sp-btn:hover {
    background: var(--sp-primary-hover);
    color: #fff;
}

.sp-btn-small {
    padding: 5px 10px;
    font-size: 0.85em;
}

.sp-btn-secondary {
    background: #eee;
    color: #333;
}

.sp-btn-secondary:hover {
    background: #ddd;
    color: #333;
}

/* Lists & Tables */
.sp-upload-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-upload-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.sp-upload-meta {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 4px;
}

.sp-upload-link {
    font-weight: 500;
    text-decoration: none;
    color: var(--sp-primary);
}

.sp-upload-link:hover {
    text-decoration: underline;
}

.sp-comment-box {
    background: #fff;
    padding: 10px 15px;
    margin-top: 8px;
    border-left: 3px solid #ddd;
    font-style: italic;
    color: #666;
}

.sp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sp-table thead tr {
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.sp-table th {
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    color: #555;
}

.sp-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.sp-table tr:last-child td {
    border-bottom: none;
}

.sp-table tr:hover td {
    background: #fafafa;
}

/* Messages */
.sp-msg {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.sp-msg-success {
    background: var(--sp-success-bg);
    color: var(--sp-success-text);
    border-color: #d6e9c6;
}

.sp-msg-error {
    background: var(--sp-error-bg);
    color: var(--sp-error-text);
    border-color: #ebccd1;
}

/* Utilities */
.sp-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-mb-20 {
    margin-bottom: 20px;
}

.sp-text-right {
    text-align: right;
}

.sp-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    background: #eee;
    color: #555;
}

.sp-badge-sent {
    background: #e5f6fd;
    color: #0073aa;
}

.sp-badge-done {
    background: #dff0d8;
    color: #3c763d;
}

/* Tabs */
.sp-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.sp-tab {
    padding: 10px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.sp-tab:hover {
    color: var(--sp-primary);
    background: #f9f9f9;
}

.sp-tab.active {
    color: var(--sp-primary);
    border-bottom-color: var(--sp-primary);
    background: #fff;
    /* Ensure it blends with content */
}