/*
Theme Name: Power BI Reports Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A WordPress theme for embedding Power BI reports.
Version: 1.0
*/

html {
	margin-top: 0 !important;
}
body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	touch-action: manipulation;
}		
html, body {
  height: 100%;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch; /* iOS Safari */
}
iframe {
    border: none;
}
.custom-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #072440;
	color: #fff;
	padding: 18px 24px;
	font-size: 20px;
}

.custom-header .left {
	font-weight: bold;
	font-size: 24px;
}

.custom-header .right {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 18px;
}

.custom-header form {
	margin: 0;
}

.custom-header button {
	background-color: #555;
	color: white;
	border: none;
	padding: 4px 8px;
	cursor: pointer;
	border-radius: 4px;
	font-size: 16px;
}

.custom-header button:hover {
	background-color: #777;
}

.custom-footer {
	text-align: center;
	padding: 10px;
	background: #072440;
	font-size: 16px;
	color: #ccc;
	min-height: 30px;
}
.custom-footer p{
	margin: 0;
	margin-top: 7px;
}

@media screen and (max-width: 768px) {
	.custom-header {
		padding: 10px ;
		font-size: 18px ;
	}

	.custom-header .left {
		font-size: 22px ;
	}

	.custom-header .right {
		gap: 10px ;
		font-size: 16px ;
	}

	.custom-header button {
		padding: 2px 6px ;
		font-size: 12px ;
	}
}


.container {
    width: 80%;
    margin: auto;
}
/* 親ラッパーをflexで高さ100%にする */
.sidebar-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(100vh - 120px); /* ヘッダー分を除外した高さ */
}

@media screen and (max-width: 768px) {
    .sidebar-wrapper {
    height: calc(100vh - 100px); /* ヘッダー分を除外した高さ */
	}
}
/* レポートエリア */
.report-area {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


.report-content {
    display: none;
}

/* 埋め込みレポート */
.report-iframe {
    width: 100%;
    height: 100%;
    max-width: 100%;
    min-height: 500px; /* スマホで小さく潰れすぎないため */
    overflow: hidden;
}

/* style.css または <style> タグ内に追加 */
.custom-login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.custom-login-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  padding: 30px;
  max-width: 400px;
  width: 90%;
}

.login form {
  display: flex;
  flex-direction: column;
}

.login label {
  font-weight: bold;
  margin-top: 10px;
  font-size: 14px;
}

.login input[type="text"],
.login input[type="password"] {
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.login input[type="submit"] {
  background: #333;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  margin-top: 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.login input[type="submit"]:hover {
  background: #555;
}

/* Power BI 埋め込みエラー文字を白色にして目立たなくする */
.powerbi-frame .error, 
.powerbi-frame .errorMessage,
.powerbi-frame .pbi-error-message {
    color: white !important;
    background: transparent !important;
    font-size: 0 !important; /* 完全に文字を見えなくしたいならこれもあり */
}

