/**
 * Portal frontend styles for DS Client Portal.
 *
 * @package DS_Client_Portal
 */

:root {
	--dscp-accent-color: #000000;
	--dscp-bg-color: #ffffff;
	--dscp-text-color: #000000;
	--dscp-border-radius: 8px;
}

/* Reset and Base Styles */
body.dscp-portal,
.dscp-portal {
	font-family: 'Sen', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	color: var(--dscp-text-color);
	background-color: var(--dscp-bg-color);
	min-height: 100vh;
}

/* Portal Header */
.dscp-portal-header {
	background: #fff;
	border-bottom: 1px solid transparent;
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 100;
	transition: border-color 0.2s;
}

.dscp-portal-header.scrolled {
	border-bottom-color: #000;
}

.dscp-portal-nav {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 16px 80px;
	position: relative;
}

.dscp-nav-left {
	position: absolute;
	left: 40px;
}

.dscp-nav-left .dscp-logo img {
	height: 40px;
	width: auto;
	display: block;
}

.dscp-nav-left .dscp-logo-text {
	font-size: 20px;
	color: #000;
	text-decoration: none;
	font-weight: 600;
}

.dscp-nav-center {
	display: flex;
	gap: 32px;
	justify-content: center;
}

.dscp-nav-link {
	text-decoration: none;
	color: #000;
	padding: 8px 0;
	font-weight: 700;
	font-size: 15px;
	transition: all 0.2s;
	position: relative;
}

.dscp-nav-link:hover {
	/* Keep same font size */
}

.dscp-nav-link.active {
	/* Keep same font size */
}

.dscp-nav-link.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: #000;
}

/* User Dropdown */
.dscp-nav-right {
	position: absolute;
	right: 40px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.dscp-user-button {
	display: flex;
	align-items: center;
	gap: 10px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: all 0.2s;
}

.dscp-user-button:hover {
	opacity: 0.8;
}

.dscp-user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid var(--dscp-accent-color);
	display: block;
}

.dscp-user-name {
	display: none;
}

.dscp-user-button svg {
	display: none;
}

.dscp-user-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
	min-width: 200px;
	overflow: hidden;
	z-index: 1000;
}

.dscp-menu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	color: var(--dscp-text-color);
	text-decoration: none;
	font-size: 14px;
	transition: background 0.2s;
}

.dscp-menu-item:hover {
	background: #f9fafb;
}

.dscp-menu-item svg {
	color: #6b7280;
}

.dscp-menu-divider {
	margin: 4px 0;
	border: none;
	border-top: 1px solid #e5e7eb;
}

/* Demo Banner */
.dscp-demo-banner {
	font-size: 14px;
}

.dscp-demo-banner strong {
	color: #92400e;
}

/* Content Area */
.dscp-portal-content {
	max-width: 900px;
	margin: 40px auto;
	padding: 0 20px;
	min-height: calc(100vh - 300px);
}

/* Page Title */
.dscp-page-title {
	text-align: center;
	font-family: 'Sen', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: var(--dscp-text-color);
	margin: 0 0 16px 0;
}

.dscp-page-title u {
	text-decoration: underline;
	text-decoration-color: var(--dscp-text-color);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* Welcome Note */
.dscp-welcome-note {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 40px auto;
	font-size: 15px;
	line-height: 1.6;
	color: #6b7280;
	font-weight: 400;
}

.dscp-welcome-note p {
	margin: 0 0 12px 0;
}

.dscp-welcome-note p:last-child {
	margin-bottom: 0;
}

/* Stats Grid */
.dscp-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.dscp-stat-card {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	gap: 16px;
}

.dscp-stat-icon {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dscp-stat-value {
	font-size: 32px;
	font-weight: 700;
	color: var(--dscp-text-color);
	line-height: 1;
}

.dscp-stat-label {
	font-size: 14px;
	color: #6b7280;
	margin-top: 4px;
}

/* Section */
.dscp-section {
	margin-bottom: 40px;
}

.dscp-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.dscp-section-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--dscp-text-color);
	margin: 0;
}

.dscp-view-all {
	color: var(--dscp-accent-color);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: opacity 0.2s;
}

.dscp-view-all:hover {
	opacity: 0.8;
}

/* Task List */
.dscp-task-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Task Cards */
.dscp-task-card {
	background: #fff;
	border-radius: var(--dscp-border-radius);
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	display: block;
	border: 1px solid transparent;
}

.dscp-task-card:hover {
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	transform: translateY(-1px);
	border-color: #e5e7eb;
}

.dscp-task-header {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 12px;
}

.dscp-task-title {
	font-family: 'Sen', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--dscp-text-color);
	margin: 0;
	flex: 1;
}

.dscp-task-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	color: #6b7280;
	flex-wrap: wrap;
}

.dscp-meta-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

.dscp-task-id {
	font-weight: 500;
	color: #6b7280;
}

.dscp-task-status-meta {
	font-weight: 500;
}

.dscp-status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	display: inline-block;
}

.dscp-status-dot.request {
	background: #9333ea;
}

.dscp-status-dot.to-do {
	background: #6b7280;
}

.dscp-status-dot.in-progress {
	background: #3b82f6;
}

.dscp-status-dot.on-review {
	background: #eab308;
}

.dscp-status-dot.completed {
	background: #22c55e;
}

.dscp-status-dot.sent {
	background: #3b82f6;
}

.dscp-status-dot.paid {
	background: #22c55e;
}

.dscp-status-dot.overdue {
	background: #dc2626;
}

.dscp-task-project-meta {
	font-weight: 500;
}

.dscp-task-files {
	display: flex;
	align-items: center;
	gap: 4px;
}

.dscp-task-comments {
	display: flex;
	align-items: center;
	gap: 4px;
}

.dscp-task-time {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #6b7280;
	font-weight: 500;
	cursor: help;
}

.dscp-meta-item svg {
	color: #6b7280;
	opacity: 0.8;
}

/* Status Badges */
.dscp-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.dscp-status-badge.request {
	background: #f3e8ff;
	color: #6b21a8;
}

.dscp-status-badge.to-do {
	background: #e5e7eb;
	color: #4b5563;
}

.dscp-status-badge.in-progress {
	background: #dbeafe;
	color: #1e40af;
}

.dscp-status-badge.on-review {
	background: #fef3c7;
	color: #92400e;
}

.dscp-status-badge.completed {
	background: #d1fae5;
	color: #065f46;
}

/* Buttons */
.dscp-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: opacity 0.2s;
}

.dscp-btn:hover {
	opacity: 0.9;
}

.dscp-btn-primary {
	padding: 10px 20px;
	background: var(--dscp-accent-color);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.dscp-btn-primary:hover {
	background: #222;
	opacity: 1;
}

.dscp-btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.dscp-btn-secondary {
	background: #fff;
	color: var(--dscp-accent-color);
	border: 1px solid var(--dscp-accent-color);
}

/* File Icons */
.dscp-file-icon {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-weight: 600;
	color: #fff;
}

.file-icon-pdf {
	background: #dc2626;
}

.file-icon-image {
	background: #3b82f6;
}

.file-icon-doc {
	background: #2563eb;
}

.file-icon-spreadsheet {
	background: #059669;
}

.file-icon-presentation {
	background: #ea580c;
}

.file-icon-archive {
	background: #7c3aed;
}

.file-icon-other {
	background: #6b7280;
}

/* Empty State */
.dscp-empty-state {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	color: #646970;
	font-size: 15px;
}

.dscp-empty-state svg {
	margin-bottom: 16px;
}

.dscp-empty-state p {
	color: #6b7280;
	margin: 0 0 20px 0;
	font-size: 15px;
}

/* Instructions */
.dscp-instructions {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 40px;
}

.dscp-instructions h3 {
	margin: 0 0 12px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--dscp-text-color);
}

.dscp-instructions p:last-child {
	margin-bottom: 0;
}

/* Quick Actions */
.dscp-quick-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-top: 40px;
}

.dscp-quick-action {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	text-decoration: none;
	color: var(--dscp-text-color);
	font-weight: 500;
	font-size: 14px;
	transition: all 0.2s;
}

.dscp-quick-action:hover {
	border-color: var(--dscp-accent-color);
	color: var(--dscp-accent-color);
}

.dscp-quick-action svg {
	stroke-width: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
	.dscp-portal-nav {
		padding: 14px 20px;
	}

	.dscp-nav-link {
		white-space: nowrap;
	}

	.dscp-user-name {
		display: none;
	}

	.dscp-portal-content {
		padding: 0 16px;
		margin: 24px auto;
	}

	.dscp-page-title {
		font-size: 22px;
		margin-bottom: 12px;
	}

	.dscp-welcome-note {
		font-size: 14px;
		margin-bottom: 24px;
	}

	/* Quick actions */
	.dscp-quick-actions {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

/* ========================================
   PORTAL PAGES - PHASE 2
   ======================================== */

/* ========================================
   TASKS LIST PAGE
   ======================================== */

.dscp-tasks-list {
	margin: 0;
	padding-bottom: 20px;
}

.dscp-task-group {
	margin-bottom: 40px;
}

.dscp-task-group-header {
	text-align: center;
	margin: 32px 0 24px 0;
}

.dscp-task-group-header span {
	display: inline-block;
	padding: 6px 16px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	border-radius: 20px;
}

/* Status-based background colors */
.dscp-task-group-header.status-request span {
	background: #9333ea;
}

.dscp-task-group-header.status-to-do span {
	background: #6b7280;
}

.dscp-task-group-header.status-in-progress span {
	background: #3b82f6;
}

.dscp-task-group-header.status-on-review span {
	background: #eab308;
}

.dscp-task-group-header.status-completed span {
	background: #22c55e;
}

.dscp-task-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	transition: all 0.2s;
}

.dscp-task-item:hover {
	border-bottom-color: #000;
}

.dscp-task-main {
	flex: 1;
}

.dscp-tasks-list .dscp-task-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--dscp-text-color);
	text-decoration: none;
	display: block;
	margin-bottom: 8px;
}

.dscp-tasks-list .dscp-task-title:hover {
	color: var(--dscp-accent-color, #000);
}

.dscp-assignee-name {
	display: none;
}

.dscp-avatar-small {
	width: 20px;
	height: 20px;
	border-radius: 50%;
}

/* Header Add Request Button */
.dscp-add-request-btn {
	background: var(--dscp-accent-color);
	color: #fff;
	padding: 8px 20px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	white-space: nowrap;
}

.dscp-add-request-btn:hover {
	background: #222;
	color: #fff;
}

/* ========================================
   TASK DETAIL PAGE
   ======================================== */

.dscp-task-detail-page .dscp-task-header {
	margin-bottom: 32px;
}

.dscp-task-detail-page .dscp-task-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--dscp-text-color);
	margin: 0 0 10px 0;
}

.dscp-task-header-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.dscp-task-detail-page .dscp-meta-item {
	gap: 6px;
	font-size: 14px;
	color: var(--dscp-text-color);
}

.dscp-meta-item strong {
	color: var(--dscp-text-color);
}

.dscp-task-project-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	background: #f3f4f6;
	color: #374151;
}

.dscp-task-description {
	margin-bottom: 32px;
	font-size: 15px;
	line-height: 1.7;
	color: #374151;
}

.dscp-task-files-section {
	margin-bottom: 32px;
}

.dscp-files-list {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	gap: 12px;
}

.dscp-file-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	width: auto;
	transition: all 0.2s;
}

.dscp-file-item:hover {
	border-color: #d1d5db;
}

.dscp-file-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
}

.dscp-file-icon.pdf { background: #d32f2f; }
.dscp-file-icon.jpg,
.dscp-file-icon.jpeg,
.dscp-file-icon.png,
.dscp-file-icon.gif,
.dscp-file-icon.webp { background: #1976d2; }
.dscp-file-icon.doc,
.dscp-file-icon.docx { background: #1976d2; }
.dscp-file-icon.xls,
.dscp-file-icon.xlsx { background: #2e7d32; }
.dscp-file-icon.ppt,
.dscp-file-icon.pptx { background: #e65100; }
.dscp-file-icon.zip,
.dscp-file-icon.rar { background: #6a1b9a; }

.dscp-file-info {
	flex: 1;
}

.dscp-file-name {
	font-family: 'Sen', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: var(--dscp-text-color);
	margin-bottom: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dscp-file-size {
	font-size: 12px;
	color: #9ca3af;
}

.dscp-file-download {
	flex-shrink: 0;
	color: #646970;
	text-decoration: none;
	padding: 6px;
	border-radius: 4px;
	transition: all 0.2s;
}

.dscp-file-download:hover {
	background: #f3f4f6;
	color: #000;
}

/* Comments Section */
.dscp-comments-section {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid #e5e7eb;
}

.dscp-comments-thread {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.dscp-comment {
	display: flex;
	gap: 16px;
	padding: 24px 0;
	border-top: 1px solid #e5e7eb;
}

.dscp-comment:first-child {
	border-top: none;
	padding-top: 0;
}

.dscp-comment.system {
	padding: 10px 16px;
	background: none;
	border-radius: 0;
	gap: 0;
}

.dscp-comment.system .dscp-comment-body {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dscp-comment.system .dscp-comment-header {
	margin-bottom: 0;
}

.dscp-comment.system .dscp-comment-header strong {
	display: none;
}

.dscp-comment.system .dscp-comment-content {
	font-size: 13px;
	color: #6b7280;
}

.dscp-comment.system .dscp-comment-content p {
	margin: 0;
	display: inline;
}

.dscp-comment.system .dscp-comment-content::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	background: #d1d5db;
	border-radius: 50%;
	margin-right: 8px;
	vertical-align: middle;
}

.dscp-comment-avatar img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
}

.dscp-comment-body {
	flex: 1;
}

.dscp-comment-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.dscp-comment-header strong {
	font-size: 14px;
	font-weight: 600;
	color: #000;
}

.dscp-comment-time {
	font-size: 12px;
	color: #9ca3af;
}

.dscp-comment-content {
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
}

.dscp-comment-files {
	margin-top: 12px;
	display: flex;
	gap: 6px;
}

.dscp-comment-file-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: #f3f4f6;
	border-radius: 6px;
	font-size: 13px;
	color: #374151;
	text-decoration: none;
	max-width: fit-content;
}

.dscp-comment-file-link:hover {
	background: #e5e7eb;
}

.dscp-file-icon-small {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 7px;
	font-weight: 700;
	color: #fff;
}

.dscp-file-size-small {
	font-size: 11px;
	color: #9ca3af;
	margin-left: auto;
}

/* Comment Form */
.dscp-comment-form {
	display: flex;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
}

.dscp-comment-input-wrapper {
	flex: 1;
}

.dscp-comment-editor {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	min-height: 120px;
	background: #fff;
}

.dscp-comment-form .ql-toolbar.ql-snow {
	border-color:#e5e7eb;
	border-bottom: none;
	border-radius: 8px 8px 0 0;
}

.dscp-comment-form .ql-container.ql-snow {
	border-color: #e5e7eb;
	font-size: 14px;
	border-radius: 0 0 8px 8px;
}

.dscp-comment-form .dscp-comment-editor .ql-editor {
	font-family: 'Sen', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	padding: 0 16px;
}

.dscp-comment-form .dscp-comment-editor .ql-editor p {
	margin: 16px 0;
}

.dscp-comment-form .dscp-comment-editor .ql-editor p:first-child {
	margin-top: 0;
}

.dscp-comment-form .dscp-comment-editor .ql-editor p:last-child {
	margin-bottom: 0;
}

.dscp-comment-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.dscp-file-attach-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: #f3f4f6;
	border-radius: 6px;
	font-size: 13px;
	color: #374151;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
}

.dscp-file-attach-btn:hover {
	background: #e5e7eb;
}

.dscp-file-list ul {
	list-style: none;
	padding: 0;
	margin: 8px 0 0 0;
	font-size: 13px;
	color: #646970;
}

/* ========================================
   NEW TASK FORM
   ======================================== */

.dscp-task-form {
	max-width: 700px;
	margin: 0 auto;
}

.dscp-form-group {
	margin-bottom: 24px;
}

.dscp-form-input {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 18px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 15px;
	color: #000;
	transition: all 0.2s;
}

.dscp-form-input:focus {
	outline: none;
	border-color: #9ca3af;
}

.dscp-task-editor {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	min-height: 300px;
	background: #fff;
}

.dscp-task-editor .ql-toolbar {
	border: none;
	border-bottom: 1px solid #e5e7eb;
}

.dscp-task-editor .ql-container {
	border: none;
	font-size: 15px;
}

.dscp-file-upload-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #f3f4f6;
	border-radius: 6px;
	font-size: 14px;
	color: #374151;
	cursor: pointer;
	transition: all 0.2s;
}

.dscp-file-upload-label:hover {
	background: #e5e7eb;
}

.dscp-file-preview ul {
	list-style: none;
	padding: 0;
	margin: 12px 0 0 0;
}

.dscp-file-upload-list li {
	display: flex;
	justify-content: space-between;
	padding: 10px 14px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	margin-bottom: 8px;
	font-size: 14px;
}

.dscp-form-actions {
	text-align: center;
	margin-top: 32px;
}

.dscp-btn-submit {
	padding: 14px 48px;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.dscp-btn-submit:hover {
	background: #222;
}

.dscp-btn-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ========================================
   FILES & INVOICES TABS
   ======================================== */

.dscp-tabs {
	display: flex;
	justify-content: center;
	gap: 32px;
	border-bottom: none;
	margin-bottom: 32px;
}

.dscp-tab {
	padding: 12px 0;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	font-size: 14px;
	font-weight: 700;
	color: var(--dscp-text-color);
	cursor: pointer;
	transition: all 0.2s;
	margin-bottom: 0;
}

.dscp-tab:hover {
	color: var(--dscp-text-color);
}

.dscp-tab.active {
	border-bottom-color: var(--dscp-accent-color);
}

/* FILES PAGE */
.dscp-file-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	border-bottom: 1px solid #e5e7eb;
	transition: all 0.2s;
}

.dscp-file-row:hover {
	border-bottom-color: #000;
}

.dscp-file-main {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
}

.dscp-file-icon {
	flex-shrink: 0;
}

.dscp-file-icon.pdf { color: #d32f2f; }
.dscp-file-icon.image { color: #1976d2; }
.dscp-file-icon.document { color: #1976d2; }
.dscp-file-icon.spreadsheet { color: #2e7d32; }
.dscp-file-icon.presentation { color: #e65100; }
.dscp-file-icon.archive { color: #6a1b9a; }

.dscp-file-meta {
	font-size: 13px;
	color: #000;
}

.dscp-file-actions {
	display: flex;
	gap: 8px;
}

.dscp-icon-btn {
	padding: 8px;
	background: none;
	border: none;
	color: #646970;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.2s;
}

.dscp-icon-btn:hover {
	background: #f3f4f6;
	color: #000;
}

/* INVOICES PAGE */
.dscp-invoice-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	transition: all 0.2s;
}

.dscp-invoice-row:hover {
	border-bottom-color: #000;
}

.dscp-invoice-main {
	flex: 1;
}

.dscp-invoice-number {
	font-family: 'Sen', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--dscp-text-color);
	margin-bottom: 8px;
}

.dscp-invoice-status-meta {
	font-weight: 500;
}

.dscp-invoice-meta {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: #000;
	flex-wrap: wrap;
}

.dscp-overdue-date {
	color: #d63638 !important;
	font-weight: 500;
}

.dscp-invoice-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.dscp-amount {
	font-size: 18px;
	font-weight: 700;
	color: #000;
}

/* ========================================
   PROFILE PAGE
   ======================================== */

.dscp-profile-form {
	max-width: 600px;
	margin: 0 auto;
}

.dscp-avatar-section {
	text-align: center;
	margin-bottom: 40px;
}

.dscp-avatar-display {
	display: flex;
	justify-content: center;
}

.dscp-avatar-display img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	margin-bottom: 12px;
}

.dscp-change-photo-btn {
	display: inline-block;
	padding: 8px 16px;
	background: none;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 14px;
	color: #374151;
	cursor: pointer;
	transition: all 0.2s;
}

.dscp-change-photo-btn:hover {
	border-color: #d1d5db;
	background: #f9fafb;
}

.dscp-form-group label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 8px;
}

.dscp-form-note {
	font-size: 12px;
	color: #9ca3af;
	margin-top: 6px;
}

.dscp-form-section {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid #e5e7eb;
}

.dscp-profile-form .dscp-section-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--dscp-text-color);
	margin: 0 0 24px 0;
}

.dscp-checkbox-group {
	margin-bottom: 20px;
}

.dscp-checkbox-label {
	display: flex;
	gap: 12px;
	cursor: pointer;
}

.dscp-checkbox-label input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.dscp-checkbox-content strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #000;
	margin-bottom: 4px;
}

.dscp-checkbox-description {
	display: block;
	font-size: 13px;
	color: #646970;
}

.dscp-success-message {
	padding: 12px 20px;
	background: #d1fae5;
	border: 1px solid #6ee7b7;
	border-radius: 8px;
	color: #065f46;
	font-size: 14px;
	margin-bottom: 24px;
}

/* ========================================
   DESIGN UPDATES - CLEAN & SIMPLE
   ======================================== */

/* Welcome Divider */
.dscp-welcome-divider {
	width: 100%;
	height: 1px;
	background: #e5e7eb;
	margin-bottom: 40px;
}

/* Project Filter */
.dscp-project-filter {
	margin-bottom: 32px;
	font-size: 15px;
	font-weight: 700;
	color: #000;
	text-align: center;
	position: relative;
}

.dscp-project-dropdown-trigger {
	display: inline-block;
	cursor: pointer;
	position: relative;
}

.dscp-project-selected {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dscp-project-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	min-width: 200px;
	z-index: 100;
	overflow: hidden;
}

.dscp-project-option {
	display: block;
	padding: 12px 16px;
	color: #000;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s;
}

.dscp-project-option:hover {
	background: #f9fafb;
}

.dscp-project-option.active {
	background: #f3f4f6;
	font-weight: 700;
}

/* Portal Footer */
.dscp-portal-footer {
	margin-top: 60px;
	padding: 20px 0;
	background: #fff;
	border-top: none;
}

.dscp-footer-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
	font-size: 13px;
	color: #6b7280;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.dscp-footer-text {
	font-size: 13px;
	color: #6b7280;
	text-align: left;
}

.dscp-powered-by {
	font-size: 13px;
	color: #9ca3af;
	white-space: nowrap;
	text-align: right;
	margin-left: auto;
}

.dscp-powered-by a {
	color: #000;
	text-decoration: none;
	font-weight: 600;
	margin-left: 4px;
}

.dscp-powered-by a:hover {
	text-decoration: underline;
}

.dscp-invoices-list {
	padding-bottom: 100px;
}

/* Custom Tooltips for Invoice Dates */
.dscp-has-tooltip {
	position: relative;
	cursor: help;
}

.dscp-has-tooltip::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(-4px);
	padding: 6px 10px;
	background: #1f2937;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	white-space: nowrap;
	border-radius: 6px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
	z-index: 1000;
}

.dscp-has-tooltip::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(2px);
	border: 5px solid transparent;
	border-top-color: #1f2937;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
	z-index: 1000;
}

.dscp-has-tooltip:hover::after,
.dscp-has-tooltip:hover::before {
	opacity: 1;
	transform: translateX(-50%) translateY(-8px);
}

.dscp-has-tooltip:hover::before {
	transform: translateX(-50%) translateY(-2px);
}

/* ========================================
   HELP BUTTON & MODAL
   ======================================== */

/* Help Button - Bottom Left */
.dscp-help-button {
	position: fixed;
	bottom: 24px;
	left: 24px;
	width: 56px;
	height: 56px;
	background: var(--dscp-accent-color, #000);
	color: #fff;
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: all 0.2s;
	z-index: 99;
}

.dscp-help-button:hover {
	background: #222;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.dscp-help-button svg {
	width: 24px;
	height: 24px;
}

/* Help Modal */
.dscp-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
}

.dscp-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
}

.dscp-modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	max-width: 600px;
	width: 90%;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
}

.dscp-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 32px;
	border-bottom: 1px solid #e5e7eb;
}

.dscp-modal-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--dscp-text-color);
}

.dscp-modal-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #6b7280;
	transition: color 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dscp-modal-close:hover {
	color: #000;
}

.dscp-modal-close svg {
	width: 24px;
	height: 24px;
}

.dscp-modal-body {
	padding: 32px;
	overflow-y: auto;
	font-size: 15px;
	line-height: 1.7;
	color: #374151;
}

.dscp-modal-body strong {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--dscp-text-color);
	margin-top: 24px;
	margin-bottom: 8px;
}

.dscp-modal-body strong:first-child {
	margin-top: 0;
}

.dscp-modal-body p {
	margin: 0 0 16px 0;
}

.dscp-modal-body p:last-child {
	margin-bottom: 0;
}

/* ========================================
   FILE PREVIEW MODAL
   ======================================== */

.dscp-file-preview-modal-content {
	max-width: 900px;
	max-height: 90vh;
}

.dscp-file-preview-body {
	padding: 0;
	overflow: visible;
}

.dscp-file-preview-body #dscp-preview-content {
	padding: 24px;
	max-height: 600px;
	overflow-y: auto;
}

.dscp-modal-footer {
	padding: 16px 24px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

/* Breadcrumb Navigation */
.dscp-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 8px;
}

.dscp-breadcrumb a {
	color: #6b7280;
	text-decoration: none;
	transition: color 0.2s ease;
}

.dscp-breadcrumb a:hover {
	color: var(--dscp-accent-color, #000);
}

.dscp-breadcrumb-sep {
	color: #d1d5db;
	font-size: 12px;
}

.dscp-breadcrumb span:last-child {
	color: #111827;
	font-weight: 500;
}

/* Task Search */
.dscp-task-search {
	display: flex;
	margin-bottom: 20px;
}

.dscp-search-input {
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	font-family: inherit;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	outline: none;
	transition: border-color 0.2s ease;
}

.dscp-search-input:focus {
	border-color: var(--dscp-accent-color, #000);
}

.dscp-search-input::placeholder {
	color: #9ca3af;
}

/* Hamburger Menu */
.dscp-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	z-index: 101;
}

.dscp-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #111827;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.dscp-hamburger.active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.dscp-hamburger.active span:nth-child(2) {
	opacity: 0;
}

.dscp-hamburger.active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
	.dscp-hamburger {
		display: flex;
		position: absolute;
		left: 16px;
		top: 50%;
		transform: translateY(-50%);
	}

	.dscp-portal-nav {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		position: relative;
		padding: 12px 16px;
	}

	.dscp-nav-left {
		position: static;
		order: 2;
		text-align: center;
		margin-bottom: 0;
	}

	.dscp-nav-left .dscp-logo img {
		height: 32px;
	}

	.dscp-nav-left .dscp-logo-text {
		font-size: 17px;
	}

	.dscp-nav-center {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid #e5e7eb;
		padding: 12px 20px;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
		z-index: 100;
	}

	.dscp-nav-center.open {
		display: flex;
	}

	.dscp-nav-center .dscp-nav-link {
		padding: 10px 16px;
		width: 100%;
		text-align: center;
		border-radius: 6px;
	}

	.dscp-nav-center .dscp-nav-link:hover {
		background: #f9fafb;
	}

	.dscp-nav-center .dscp-nav-link.active::after {
		display: none;
	}

	.dscp-nav-center .dscp-nav-link.active {
		background: #f3f4f6;
	}

	.dscp-nav-right {
		position: absolute;
		right: 16px;
		top: 50%;
		transform: translateY(-50%);
		order: 3;
	}

	.dscp-user-avatar {
		width: 34px;
		height: 34px;
	}

	.dscp-add-request-btn {
		display: none;
	}

	.dscp-user-menu {
		right: -8px;
	}

	/* Task list items */
	.dscp-task-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 14px 0;
	}

	.dscp-task-meta {
		flex-wrap: wrap;
		gap: 8px 12px;
	}

	.dscp-tasks-list .dscp-task-title {
		font-size: 14px;
		margin-bottom: 6px;
	}

	.dscp-task-group-header {
		margin: 24px 0 16px 0;
	}

	.dscp-assignee-name {
		display: inline;
	}

	/* Task items - full width for main content */
	.dscp-task-main {
		width: 100%;
	}

	/* Task detail page */
	.dscp-task-detail-page .dscp-task-title {
		font-size: 20px;
	}

	.dscp-task-detail-page .dscp-task-header {
		margin-bottom: 24px;
	}

	.dscp-task-header-meta {
		gap: 8px 12px;
	}

	.dscp-task-description {
		font-size: 14px;
		margin-bottom: 24px;
	}

	/* Comments */
	.dscp-comment {
		gap: 12px;
		padding: 16px 0;
	}

	.dscp-comment-avatar img {
		width: 36px;
		height: 36px;
	}

	.dscp-comment-form {
		flex-direction: column;
		gap: 12px;
	}

	.dscp-comment-form .dscp-comment-avatar img {
		width: 36px;
		height: 36px;
	}

	.dscp-comment-editor {
		min-height: 100px;
	}

	.dscp-comment-actions {
		flex-wrap: wrap;
	}

	.dscp-comment-files {
		flex-wrap: wrap;
	}

	.dscp-comments-section {
		margin-top: 24px;
		padding-top: 24px;
	}

	/* Tabs */
	.dscp-tabs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		justify-content: flex-start;
		gap: 16px;
		flex-wrap: wrap;
		margin-bottom: 24px;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding-bottom: 2px;
	}

	.dscp-tabs::-webkit-scrollbar {
		display: none;
	}

	.dscp-tab {
		font-size: 13px;
		white-space: nowrap;
		flex-shrink: 0;
	}

	/* File & invoice rows */
	.dscp-file-row,
	.dscp-invoice-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	/* Files: meta below icon and name */
	.dscp-file-main {
		width: 100%;
		flex-wrap: wrap;
		gap: 8px 12px;
	}

	/* Files: icon + name row, meta below */
	.dscp-file-row .dscp-file-icon-page {
		margin-right: 0;
	}

	/* Invoice: inline number + meta, amount + buttons below */
	.dscp-invoice-main {
		width: 100%;
		display: flex;
		align-items: center;
		gap: 12px;
		flex-wrap: wrap;
	}

	.dscp-invoice-number {
		margin-bottom: 0;
		flex-shrink: 0;
	}

	.dscp-invoice-meta {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 4px 12px;
	}

	.dscp-invoice-actions {
		align-self: flex-start;
		gap: 12px;
	}

	.dscp-amount {
		font-size: 16px;
	}

	/* Stats grid */
	.dscp-stats-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
		margin-bottom: 24px;
	}

	.dscp-stat-card {
		padding: 16px;
		gap: 12px;
	}

	.dscp-stat-icon {
		width: 40px;
		height: 40px;
	}

	.dscp-stat-value {
		font-size: 24px;
	}

	.dscp-stat-label {
		font-size: 12px;
	}

	/* Search */
	.dscp-search-input {
		padding: 10px 14px;
		font-size: 14px;
	}

	/* Project filter */
	.dscp-project-filter {
		font-size: 14px;
		margin-bottom: 24px;
	}

	/* Sections */
	.dscp-section {
		margin-bottom: 24px;
	}

	.dscp-section-header {
		margin-bottom: 16px;
	}

	.dscp-section-title {
		font-size: 18px;
	}

	/* Forms */
	.dscp-form-input {
		padding: 12px 14px;
		font-size: 14px;
	}

	.dscp-task-form {
		max-width: 100%;
	}

	/* Profile page */
	.dscp-profile-form {
		max-width: 100%;
	}

	.dscp-avatar-section {
		margin-bottom: 24px;
	}

	/* Help button & modal */
	.dscp-help-button {
		bottom: 16px;
		left: 16px;
		width: 48px;
		height: 48px;
	}

	.dscp-help-button svg {
		width: 20px;
		height: 20px;
	}

	.dscp-modal-content {
		width: 95%;
		max-height: 90vh;
	}

	.dscp-modal-header {
		padding: 16px 20px;
	}

	.dscp-modal-header h2 {
		font-size: 18px;
	}

	.dscp-modal-body {
		padding: 20px;
		font-size: 14px;
	}

	.dscp-modal-body strong {
		font-size: 15px;
	}

	/* Footer */
	.dscp-footer-content {
		flex-direction: column;
		gap: 4px;
		text-align: center;
		padding: 0 20px;
	}

	.dscp-footer-text {
		text-align: center;
	}

	.dscp-powered-by {
		text-align: center;
		margin-left: 0;
	}

	.dscp-portal-footer {
		margin-top: 40px;
	}

	/* Breadcrumbs */
	.dscp-breadcrumb {
		font-size: 13px;
	}

	/* New task form dropzone */
	.dscp-dropzone {
		padding: 24px 16px;
	}
}

/* Task Approval Button */
.dscp-task-approve {
	margin-top: 16px;
}

.dscp-btn-approve {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	background: #059669;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.dscp-btn-approve:hover {
	background: #047857;
}

.dscp-btn-approve:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.dscp-btn-approve svg {
	flex-shrink: 0;
}

/* Notification Badges */
.dscp-nav-link {
	position: relative;
}

.dscp-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	border-radius: 9px;
	margin-left: 6px;
	vertical-align: middle;
}

/* Drag and Drop Upload */
.dscp-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 32px 20px;
	border: 2px dashed #d1d5db;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	color: #6b7280;
}

.dscp-dropzone:hover,
.dscp-dropzone.dragover {
	border-color: var(--dscp-accent-color, #000);
	background: #f9fafb;
}

.dscp-dropzone p {
	margin: 0;
	font-size: 14px;
}

.dscp-file-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 12px;
}

.dscp-file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 13px;
}

.dscp-file-item .dscp-file-info {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
}

.dscp-file-item .dscp-file-info .dscp-file-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #111827;
}

.dscp-file-item .dscp-file-info .dscp-file-size {
	color: #9ca3af;
	white-space: nowrap;
}

.dscp-file-remove {
	background: none;
	border: none;
	color: #9ca3af;
	font-size: 18px;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
	transition: color 0.2s ease;
}

.dscp-file-remove:hover {
	color: #ef4444;
}

/* Files page mobile: override .dscp-file-info (must be after the general rule above) */
@media (max-width: 768px) {
	.dscp-file-row .dscp-file-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
		min-width: 0;
	}

	.dscp-file-row .dscp-file-info .dscp-file-name {
		max-width: 100%;
	}
}

/* Responsive Tables and Lists */
@media (max-width: 640px) {
	.dscp-portal-content {
		padding: 0 12px;
		margin: 20px auto;
	}

	.dscp-page-title {
		font-size: 20px;
	}

	/* Invoice line items table - card layout */
	.dscp-invoice-table thead {
		display: none;
	}

	.dscp-invoice-table tbody tr {
		display: block;
		padding: 14px;
		margin-bottom: 8px;
		border: 1px solid #e5e7eb;
		border-radius: 8px;
		background: #fff;
	}

	.dscp-invoice-table tbody td {
		display: flex;
		justify-content: space-between;
		padding: 4px 0;
		border: none;
		font-size: 13px;
	}

	.dscp-invoice-table tbody td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #6b7280;
		margin-right: 12px;
	}

	.dscp-invoice-table tbody td.dscp-text-center,
	.dscp-invoice-table tbody td.dscp-text-right {
		text-align: right;
	}

	.dscp-invoice-table tfoot tr {
		display: flex;
		justify-content: space-between;
		padding: 16px 0;
	}

	.dscp-invoice-table tfoot td {
		padding: 0;
		border: none;
	}

	.dscp-invoice-table tfoot td[colspan] {
		flex: 1;
	}

	/* File rows - stack vertically */
	.dscp-file-row {
		flex-direction: column;
		gap: 10px;
		padding: 14px 0;
	}

	.dscp-file-row .dscp-file-actions {
		align-self: flex-start;
	}

	.dscp-file-main {
		gap: 12px;
	}

	/* Invoice rows - stack vertically */
	.dscp-invoice-row {
		flex-direction: column;
		gap: 10px;
		padding: 14px 0;
	}

	.dscp-invoice-row .dscp-invoice-actions {
		justify-content: flex-start;
		gap: 12px;
	}

	.dscp-invoice-number {
		font-size: 15px;
		margin-bottom: 0;
	}

	/* Task items - tighter on small screens */
	.dscp-task-meta {
		flex-wrap: wrap;
		gap: 6px 10px;
		font-size: 12px;
	}

	.dscp-tasks-list .dscp-task-title {
		font-size: 14px;
	}

	/* Comment thread */
	.dscp-comment {
		gap: 10px;
	}

	.dscp-comment-avatar img {
		width: 32px;
		height: 32px;
	}

	.dscp-comment-content {
		font-size: 13px;
	}

	.dscp-comment-file-link {
		font-size: 12px;
		padding: 6px 10px;
	}

	/* Stats grid single column on very small */
	.dscp-stats-grid {
		grid-template-columns: 1fr;
	}

	/* File items in task detail */
	.dscp-file-item {
		padding: 8px 10px;
		gap: 8px;
	}

	.dscp-file-name {
		font-size: 13px;
	}

	/* Task approval button */
	.dscp-btn-approve {
		width: 100%;
		justify-content: center;
	}

	/* Form actions */
	.dscp-btn-submit {
		width: 100%;
		padding: 14px 24px;
	}

	/* Quill editor toolbar */
	.ql-toolbar.ql-snow {
		padding: 6px;
	}

	.ql-toolbar.ql-snow .ql-formats {
		margin-right: 8px;
	}
}

/* Empty States */
.dscp-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	text-align: center;
	color: #9ca3af;
}

.dscp-empty-state svg {
	margin-bottom: 16px;
	opacity: 0.6;
}

.dscp-empty-state h3 {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	color: #6b7280;
}

.dscp-empty-state p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	max-width: 360px;
	color: #9ca3af;
}
