/* ZeroPulp Employee Portal redesign - Dashboards follow-ups (see zpPortal.css for the shared tokens)

   Widget cards mirror the ZeroPulp Designer's dashboard preview (zero/css/designerExperience.css:
   .zp-detail-section-title, .zp-dash-grid, .zp-dash-widget, .zp-report-results-table), so a
   dashboard reads the same in the Designer and in the portal. */

/* the board sits on one white panel, like the Designer's .zp-dash-panel */
.zp-portal-theme main #dashboards .stream-dashboard-outer
{
	background: #FFFFFF !important;
	border: 1px solid #E2E5EC !important;
	border-radius: 16px;
	padding: 16px 22px 20px;
	box-sizing: border-box;
}

.zp-portal-theme main #dashboards .zp-widgets-label
{
	font-size: 12px;
	font-weight: 800;
	color: #8B93A1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

/* The dashboard's own column layout: showDashboardPage puts each widget in a left/center/right column
   div (.layout.layout-N), and those columns are kept, with the widths setting.css gives each layout -
   1 wide left (2:1), 3 two even, 2 three even, 4/6 one full-width column. Narrow screens stack them. */
.zp-portal-theme main #dashboards #dashboardContainer
{
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 14px;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
}

.zp-portal-theme main #dashboards #dashboardContainer > .layout
{
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1 1 0;
	min-width: 0;
	width: auto !important;
	min-height: 0;
	margin: 0 !important;
	float: none !important;
}

.zp-portal-theme main #dashboards #dashboardContainer > .layout-1.column-left
{
	flex-grow: 2;
}

.zp-portal-theme main #dashboards #dashboardContainer > .date-filter-container
{
	flex: 0 0 100%;
}

@media (max-width: 900px)
{
	.zp-portal-theme main #dashboards #dashboardContainer > .layout
	{
		flex: 0 0 100%;
	}
}

.zp-portal-theme main .dashboard-widget
{
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 12px 14px !important;
	background: #FFFFFF !important;
	border: 1px solid #EEF0F4 !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	overflow: hidden;
	box-sizing: border-box;
}

/* no header bar - just the bold title, top-left */
.zp-portal-theme main .dashboard-widget > .header
{
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	min-height: 0;
	padding: 0 0 8px !important;
	background: transparent !important;
	border: 0 !important;
}

.zp-portal-theme main .dashboard-widget > .header .text
{
	font-size: 12.5px !important;
	font-weight: 700 !important;
	line-height: 1.4;
	color: #1A1F26 !important;
	float: none;
	padding: 0 !important;
}

/* the portal's own widget actions (filter / open report / edit / remove), always shown. They are
   empty spans that pulpstream2.css paints from sprite-medium.png at fixed offsets; resizing them to a
   24px centred button threw every offset off and left them blank, so each draws its own line icon. */
.zp-portal-theme main .dashboard-widget > .header .icon-container
{
	display: flex;
	gap: 2px;
	float: none;
	height: auto;
	max-width: none;
	margin: 0;
}

.zp-portal-theme main .dashboard-widget > .header .icon-container .dashboard-icon
{
	width: 24px;
	height: 24px;
	margin: 0;
	border-radius: 6px;
	background: transparent no-repeat center / 15px 15px;
	opacity: 0.75;
}

.zp-portal-theme main .dashboard-widget > .header .icon-container .dashboard-icon:hover
{
	background-color: #F3F0FB;
	opacity: 1;
}

.zp-portal-theme main .dashboard-widget > .header .icon-container .dashboard-icon.filter { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18l-7 8.5V18l-4 2v-7.5z'/%3E%3C/svg%3E"); }
.zp-portal-theme main .dashboard-widget > .header .icon-container .dashboard-icon.drilldown { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); }
.zp-portal-theme main .dashboard-widget > .header .icon-container .dashboard-icon.edit { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16zM13.5 6.5l4 4'/%3E%3C/svg%3E"); }
.zp-portal-theme main .dashboard-widget > .header .icon-container .dashboard-icon.delete { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.zp-portal-theme main .dashboard-widget > .header .icon-container .dashboard-icon.refresh { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 1 0-2.3 5.7M20 4v7h-7'/%3E%3C/svg%3E"); }

.zp-portal-theme main .dashboard-widget .widget-container,
.zp-portal-theme main .dashboard-widget .widget-content
{
	background: transparent !important;
	border: 0 !important;
}

/* table widgets: the Designer's report-results table */
.zp-portal-theme main .dashboard-widget table
{
	width: 100% !important;
	border-collapse: collapse;
	border: 1px solid #EEF0F4;
	border-radius: 10px;
	font-size: 12.5px;
	margin: 0;
}

.zp-portal-theme main .dashboard-widget table tr.report-header-row th,
.zp-portal-theme main .dashboard-widget table thead th
{
	text-align: left;
	padding: 9px 12px !important;
	background: #F7F8FB !important;
	color: #8B93A1 !important;
	font-weight: 700 !important;
	font-size: 11px !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border: 0 !important;
	border-bottom: 1px solid #EEF0F4 !important;
	white-space: nowrap;
}

.zp-portal-theme main .dashboard-widget table tr.report-data-row td,
.zp-portal-theme main .dashboard-widget table tbody td
{
	padding: 9px 12px !important;
	color: #1A1F26 !important;
	font-size: 12.5px !important;
	border: 0 !important;
	border-bottom: 1px solid #EEF0F4 !important;
	background: #FFFFFF;
	white-space: nowrap;
}

.zp-portal-theme main .dashboard-widget table tr:last-child td
{
	border-bottom: 0 !important;
}
