/* JY Language Manager - front-end cards */

.jylm-site {
	--jylm-navy: #1b1f5c;
	--jylm-border: #e3e6ef;
	--jylm-muted: #6b7280;
}

.jylm-site-heading {
	font-weight: 700;
	margin-bottom: .5rem;
}

.jylm-site-intro {
	color: var(--jylm-muted);
	margin-bottom: 1.25rem;
}

.jylm-site-editor-link {
	margin-bottom: 1rem;
}

.jylm-site-langbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin-bottom: 1.75rem;
}

.jylm-site-langbar select {
	max-width: 260px;
}

.jylm-site-section {
	margin-bottom: 2.5rem;
}

.jylm-site-section-title {
	font-size: 1.15rem;
	font-weight: 700;
	padding-bottom: .5rem;
	border-bottom: 2px solid var(--jylm-border);
	margin-bottom: 1.25rem;
}

.jylm-site-empty {
	color: var(--jylm-muted);
}

.jylm-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.jylm-card {
	background: #fff;
	border: 1px solid var(--jylm-border);
	border-radius: 10px;
	padding: 1.25rem;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
	transition: box-shadow .2s ease, transform .2s ease;
}

.jylm-card:hover {
	box-shadow: 0 6px 18px rgba(16, 24, 40, .1);
	transform: translateY(-2px);
}

.jylm-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 .25rem;
	color: #111827;
	overflow-wrap: break-word; 
}

.jylm-card-meta {
	color: var(--jylm-muted);
	font-size: .9rem;
	margin-bottom: 1rem;
	word-break: break-all;
}

.jylm-card-bar {
	background: #eef0f5;
	border-radius: 4px;
	height: 22px;
	overflow: hidden;
	margin-bottom: .6rem;
}

.jylm-card-bar-fill {
	display: block;
	height: 100%;
	line-height: 22px;
	background: var(--jylm-navy);
	color: #fff;
	font-size: .8rem;
	font-weight: 600;
	text-align: center;
	border-radius: 4px;
	white-space: nowrap;
}

.jylm-card-empty .jylm-card-bar-fill {
	background: #9ca3af;
}

.jylm-card-count {
	color: var(--jylm-muted);
	font-size: .9rem;
	margin-bottom: 1rem;
}

.jylm-card-btn {
	display: inline-block;
	min-width: 96px;
	text-align: center;
}

.jylm-card-btn-disabled {
	color: var(--jylm-muted);
	font-size: .85rem;
	border: 1px dashed var(--jylm-border);
	border-radius: 6px;
	padding: .35rem .75rem;
}

.jylm-bulk-package {
	display: flex;
	align-items: center;
	gap: .75rem;
	flex-wrap: wrap;
	background: #f4f6fb;
	border: 1px solid #dfe3ee;
	border-radius: 8px;
	padding: .75rem 1rem;
	margin-bottom: 1rem;
}

.jylm-bulk-package-info {
	flex: 1 1 auto;
	font-size: .92rem;
}

.jylm-site-editor-link {
  margin: 15px 0;
}

.jylm-site-editor-link a {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.jylm-site-editor-link a:hover {
  background: linear-gradient(135deg, #357abd 0%, #2c5f8a 100%);
  box-shadow: 0 6px 18px rgba(74, 144, 226, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.jylm-site-editor-link a:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

.jylm-site-editor-link a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.jylm-site-editor-link a:hover::before {
  left: 100%;
}

.jylm-site-toolbar {
	margin-bottom: 1rem;
}

.jylm-site-search {
	max-width: 320px;
}

.jylm-site-noresult {
	color: var(--jylm-muted);
	margin-bottom: 1rem;
}

.jylm-site-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.25rem;
}

.jylm-site-page-info {
	font-size: .9rem;
	color: var(--jylm-muted);
	min-width: 3.5rem;
	text-align: center;
}


.jylm-card-sublist {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	border-top: 1px dashed var(--jylm-border);
	padding-top: .6rem;
}

.jylm-card-subitem {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .82rem;
	padding: .3rem 0;
}

.jylm-sub-name {
	flex: 0 0 40%;
	color: #374151;
	word-break: break-all;
}

.jylm-sub-bar {
	flex: 1 1 auto;
	height: 8px;
	background: #eef0f5;
	border-radius: 4px;
	overflow: hidden;
}

.jylm-sub-bar-fill {
	display: block;
	height: 100%;
	background: var(--jylm-navy);
	border-radius: 4px;
}

.jylm-sub-count {
	flex: 0 0 auto;
	color: var(--jylm-muted);
	white-space: nowrap;
}



.jylm-site {
	--jylm-navy: #1b1f5c;
	--jylm-border: #e3e6ef;
	--jylm-muted: #6b7280;
}

.jylm-site-heading {
	font-weight: 700;
	margin-bottom: .5rem;
}

.jylm-site-intro {
	color: var(--jylm-muted);
	margin-bottom: 1.25rem;
}

.jylm-site-editor-link {
	margin-bottom: 1rem;
}

.jylm-site-langbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin-bottom: 1.75rem;
}

.jylm-site-langbar select {
	max-width: 260px;
}

.jylm-site-section {
	margin-bottom: 2.5rem;
}

.jylm-site-section-title {
	font-size: 1.15rem;
	font-weight: 700;
	padding-bottom: .5rem;
	border-bottom: 2px solid var(--jylm-border);
	margin-bottom: 1.25rem;
}

.jylm-site-empty {
	color: var(--jylm-muted);
}

.jylm-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.jylm-card {
	background: #fff;
	border: 1px solid var(--jylm-border);
	border-radius: 10px;
	padding: 1.25rem;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
	transition: box-shadow .2s ease, transform .2s ease;
}

.jylm-card:hover {
	box-shadow: 0 6px 18px rgba(16, 24, 40, .1);
	transform: translateY(-2px);
}

.jylm-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 .25rem;
	color: #111827;
	overflow-wrap: break-word; 
}

.jylm-card-meta {
	color: var(--jylm-muted);
	font-size: .9rem;
	margin-bottom: 1rem;
	word-break: break-all;
}

.jylm-card-bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef0f5;
	border-radius: 4px;
	height: 22px;
	overflow: hidden;
	margin-top: 1rem;
}

.jylm-card-bar-fill {
	display: block;
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	height: 100%;
				   
	background: var(--jylm-navy);
			 
				  
				  
					
	border-radius: 4px;
					 
}

.jylm-card-bar-label {
	position: relative;
	z-index: 1;
	display: inline-block;
	padding: 0 6px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .88);
	color: #111827;
	font-size: .8rem;
	font-weight: 700;
	line-height: 18px;
	direction: ltr;
	unicode-bidi: isolate;
}

.jylm-card-empty .jylm-card-bar-fill {
	background: #9ca3af;
}

.jylm-card-count {
	color: var(--jylm-muted);
	font-size: .9rem;
	margin-bottom: 1rem;
}

.jylm-card-btn {
	display: inline-block;
	min-width: 96px;
	text-align: center;
}

.jylm-card-btn-disabled {
	color: var(--jylm-muted);
	font-size: .85rem;
	border: 1px dashed var(--jylm-border);
	border-radius: 6px;
	padding: .35rem .75rem;
}

.jylm-bulk-package {
	display: flex;
	align-items: center;
	gap: .75rem;
	flex-wrap: wrap;
	background: #f4f6fb;
	border: 1px solid #dfe3ee;
	border-radius: 8px;
	padding: .75rem 1rem;
	margin-bottom: 1rem;
}

.jylm-bulk-package-info {
	flex: 1 1 auto;
	font-size: .92rem;
}

.jylm-site-editor-link {
  margin: 15px 0;
}

.jylm-site-editor-link a {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.jylm-site-editor-link a:hover {
  background: linear-gradient(135deg, #357abd 0%, #2c5f8a 100%);
  box-shadow: 0 6px 18px rgba(74, 144, 226, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.jylm-site-editor-link a:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

.jylm-site-editor-link a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.jylm-site-editor-link a:hover::before {
  left: 100%;
}

.jylm-site-toolbar {
	margin-bottom: 1rem;
}

.jylm-site-search {
	max-width: 320px;
}

.jylm-site-noresult {
	color: var(--jylm-muted);
	margin-bottom: 1rem;
}

.jylm-site-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.25rem;
}

.jylm-site-page-info {
	font-size: .9rem;
	color: var(--jylm-muted);
	min-width: 3.5rem;
	text-align: center;
}


.jylm-card-sublist {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	border-top: 1px dashed var(--jylm-border);
	padding-top: .6rem;
}

.jylm-card-subitem {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .82rem;
	padding: .3rem 0;
}

.jylm-sub-name {
	flex: 0 0 40%;
	color: #374151;
	word-break: break-all;
}

.jylm-sub-bar {
	flex: 1 1 auto;
	height: 8px;
	background: #eef0f5;
	border-radius: 4px;
	overflow: hidden;
}

.jylm-sub-bar-fill {
	display: block;
	height: 100%;
	background: var(--jylm-navy);
	border-radius: 4px;
}

.jylm-sub-count {
	flex: 0 0 auto;
	color: var(--jylm-muted);
	white-space: nowrap;
}


.jylm-card {
  overflow: hidden;
  box-sizing: border-box;
}

.jylm-card-title,
.jylm-card-meta,
.jylm-card-count {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.jylm-card-subitem {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  min-width: 0;
}


.jylm-sub-name {
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-all;
  white-space: normal;
  font-weight: 600;
  font-size: 13px;
}


.jylm-sub-bar {
  display: block;
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.jylm-sub-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4a90e2, #357abd);
  border-radius: 4px;
  transition: width 0.4s ease;
}


.jylm-sub-count {
  width: 100%;
  white-space: normal;
  font-size: 12px;
  color: #666;
  text-align: left;
}

.jylm-card-client-title {
  margin: 14px 0 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.jylm-card-client .jylm-card-sublist {
  margin-bottom: 12px;
  padding-top: 0;
  border-top: 0;
}

.jylm-card-client-separator {
  margin: 16px 0;
  border: 0;
  border-top: 2px solid var(--jylm-border);
  opacity: 1;
}


.jylm-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.jylm-card-actions .btn,
.jylm-card-actions .jylm-card-btn-disabled {
  flex: 1 1 120px;
  margin-top: 0;
  text-align: center;
}

.jylm-modal[hidden] {
  display: none !important;
}

.jylm-modal {
  position: fixed;
  z-index: 10550;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.jylm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .66);
  backdrop-filter: blur(2px);
}

.jylm-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  max-height: calc(100vh - 32px);
  background: #fff;
  color: #1f2937;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
  overflow: hidden;
  direction: inherit;
}

.jylm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.jylm-modal-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: start;
  overflow-wrap: anywhere;
}

.jylm-modal-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.jylm-modal-close:hover,
.jylm-modal-close:focus-visible {
  background: #e5e7eb;
  outline: 2px solid var(--jylm-navy);
  outline-offset: 2px;
}

.jylm-modal-body {
  padding: 20px;
  overflow: auto;
}

.jylm-details-status {
  padding: 18px;
  color: var(--jylm-muted);
  text-align: center;
}

.jylm-details-status.is-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 8px;
}

.jylm-details-table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.jylm-details-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: start;
}

.jylm-details-table th,
.jylm-details-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
  text-align: start;
}

.jylm-details-table th {
  background: #f8fafc;
  color: #374151;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
}

.jylm-details-table tbody tr:hover {
  background: #f8fafc;
}

.jylm-details-file {
  min-width: 220px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.jylm-details-location {
  min-width: 150px;
}

.jylm-details-progress-cell {
  min-width: 150px;
  text-align: center !important;
}

.jylm-details-progress {
  height: 7px;
  margin-bottom: 5px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
}

.jylm-details-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4a90e2, #357abd);
  border-radius: inherit;
}

.jylm-details-number {
  text-align: center !important;
  white-space: nowrap;
}

body.jylm-modal-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .jylm-modal {
    align-items: flex-end;
    padding: 0;
  }

  .jylm-modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
  }

  .jylm-modal-header,
  .jylm-modal-body {
    padding: 14px;
  }

  .jylm-card-actions {
    flex-direction: column;
  }

  .jylm-card-actions .btn,
  .jylm-card-actions .jylm-card-btn-disabled {
    width: 100%;
    flex-basis: auto;
  }
}

.jylm-card-version {
  display: inline-block;
  margin-inline-start: 6px;
  color: var(--jylm-muted);
  font-size: .78em;
  font-weight: 600;
  direction: ltr;
  unicode-bidi: isolate;
}

.jylm-site-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.jylm-site-toolbar .form-select {
	max-width: 200px;
}
