/* ---------- Timesheet Portal Frontend ---------- */

.ts-portal {
    max-width: 100%;
    margin: 40px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ts-portal h2,
.ts-portal h3 {
    margin-bottom: 20px;
    color: #1f2937;
}

.ts-portal label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

.ts-portal input[type="text"],
.ts-portal input[type="password"],
.ts-portal input[type="date"],
.ts-portal select,
.ts-portal textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 15px;
    margin-bottom: 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ts-portal select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8L10 12L14 8' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.ts-portal input:focus,
.ts-portal select:focus,
.ts-portal textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
    background: #ffffff;
}

.ts-portal textarea {
    min-height: 90px;
    resize: vertical;
}

/* Buttons */

.ts-portal button,
.ts-portal .button {
    background: #6366f1;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.ts-portal button:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

/* Tables */

.ts-portal th {
    text-align: left;
    font-size: 14px;
    color: #6b7280;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.ts-portal td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* Notices */

.ts-portal .updated {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}
/* Prevent wide tables from breaking layout */

.ts-portal {
    overflow-x: hidden;
}
.ts-table {
    width: 100%;
    border-collapse: collapse;
}
.ts-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
}

.ts-table-wrapper::-webkit-scrollbar {
    height: 10px;
}

.ts-table-wrapper::-webkit-scrollbar-thumb {
    background: #c7c9f7;
    border-radius: 6px;
}
.ts-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.ts-table th,
.ts-table td {
    padding: 8px;
    white-space: nowrap;
}
.ts-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.ts-table th,
.ts-table td {
    padding: 8px;
    white-space: nowrap;
}
