@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap");
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  
  /* Background Colors */
  --bg-color: #FEF9F1;     
  --sidebar-bg: #5C3A21;   
  
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
  --header-height: 72px;
  --sidebar-width: 100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Comic font ab yahan lagaya hai taaki icons kharab na hon */
  font-family: 'Comic Neue', cursive;
}

/* Header Full Width (Top) */
.govt-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1e293b;
  color: #ffffff;
  padding: 15px 40px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--primary-color);
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo i {
  font-size: 35px;
  color: #38bdf8;
}

.brand-logo h1 {
  font-size: 20px;
  font-weight: 700;
}

.brand-logo p {
  font-size: 12px;
  color: #94a3b8;
}

/* Sidebar (Header ke neeche) */
#sidebar-placeholder {
  position: fixed;
  left: 0;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  z-index: 900;
}

.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  overflow-y: auto;
  box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.app-sidebar::-webkit-scrollbar { width: 4px; }
.app-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; }

.app-sidebar .nav-item {
  width: 85px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e2e8f0; 
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.app-sidebar .nav-icon-box {
  font-size: 24px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-sidebar .nav-item span {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.app-sidebar .nav-item:hover, .app-sidebar .nav-item.active {
  background: rgba(255, 255, 255, 0.15); 
  color: #ffffff;
}

/* Content Wrapper */
.content-wrapper {
  margin-top: var(--header-height);
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  display: flex;
  flex-direction: column;
}

.main-content {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.workspace-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.tool-header-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.tool-logo-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-logo-box i {
  font-size: 30px;
  color: var(--primary-color);
}

.upload-area {
  border: 2px dashed #93c5fd;
  background: #fafafa;
  padding: 80px 40px;
  min-height: 350px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.upload-area:hover {
  background: #eff6ff;
  border-color: var(--primary-color);
}

.upload-icon {
  font-size: 55px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.upload-area h4 {
  font-size: 22px;
  margin-bottom: 8px;
}

.select-file-btn {
  display: inline-block;
  margin-top: 25px;
  background: var(--primary-color);
  color: #fff;
  padding: 14px 35px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.select-file-btn:hover {
  background: var(--primary-hover);
}

#fileInput { display: none; }

.file-details {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
}

.primary-btn {
  width: 100%;
  padding: 18px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.primary-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* Comic Back to Home Button with Black Border */
.comic-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 25px auto 0 auto;
  color: var(--text-main);
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid #000000;
  padding: 12px 25px;
  border-radius: 10px;
  background: #ffffff;
  width: max-content;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0px rgba(0,0,0,1);
}

.comic-back-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px rgba(0,0,0,1);
}

.loader-box {
  display: none;
  text-align: center;
  padding: 30px;
}

.progress-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
}

.circle-bg { fill: none; stroke: #e2e8f0; stroke-width: 8; }
.circle-stroke {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.1s linear;
}

#progressPercentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: 22px;
  color: var(--primary-color);
}

.result-box { display: none; margin-top: 30px; }

.button-bar {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  color: white;
  font-size: 15px;
}

.preview-btn { background: #6366f1; }
.download-btn { background: #16a34a; }
.print-btn { background: #0284c7; }

.cards-preview-wrap {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 30px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.cr80-card {
  width: 330px;
  height: 205px;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.card-tag {
  background: #1e293b;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px;
  text-align: center;
}

.card-canvas-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-canvas-box canvas, .card-canvas-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  #sidebar-placeholder { display: none; }
  .content-wrapper { margin-top: var(--header-height); margin-left: 0; width: 100%; }
  .main-content { padding: 20px; }
  .upload-area { min-height: 250px; padding: 40px 20px; }
}

/* New photo controls only: keep existing portal header/sidebar and tool styling */
.photo-editor { margin: 26px 0 8px; border: 1px solid #d6dfeb; border-radius: 15px; background: #fff; padding: 23px; }
.editor-title h3 { font-size: 22px; color: #19345b; margin: 0 0 7px; }
.editor-title p { color: #64748b; line-height: 1.45; margin: 0 0 20px; font-size: 14px; }
.photo-editor-grid { display: grid; grid-template-columns: minmax(200px, 290px) minmax(260px, 1fr); gap: 28px; align-items: start; }
.photo-preview-column { min-width: 0; }
.photo-preview-shell { position: relative; max-width: 260px; width: 100%; margin: 0 auto; border: 2px solid #d0d7e3; border-radius: 10px; padding: 9px; background: #f8fafc; }
#photoCropCanvas { width: 100%; aspect-ratio: 320/340; height: auto; display: block; border: 2px solid #111827; border-radius: 2px; cursor: grab; touch-action: none; background: #edf2f7; }
#photoCropCanvas:active { cursor: grabbing; }
.crop-hint { display: block; text-align: center; color: #64748b; font-size: 12px; margin-top: 6px; }
.photo-upload-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
#photoFileInput,#qrFileInput { display: none; }
.editor-upload-btn,.editor-clear-btn,.editor-reset-btn,.qr-upload-btn { font-family: inherit; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 10px 13px; cursor: pointer; border: 1px solid #cbd5e1; display: inline-flex; align-items: center; gap: 6px; }
.editor-upload-btn { background: #2563eb; color: #fff; border-color: #2563eb; }
.editor-clear-btn,.editor-reset-btn { background: #fff; color: #334155; }
.editor-status { display: block; margin: 9px 0 0; font-size: 12px; color: #64748b; text-align: center; word-break: break-word; }
.photo-controls-column { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 22px; }
.control-item { min-width: 0; }
.control-item label { display: flex; justify-content: space-between; gap: 6px; font-size: 14px; font-weight: 700; margin-bottom: 8px; color: #26374f; }
.control-item strong { color: #2563eb; white-space: nowrap; }
.control-item input[type=range] { display: block; width: 100%; accent-color: #2563eb; cursor: pointer; }
.editor-actions,.qr-source-row { grid-column: 1/-1; }
.editor-actions { margin-top: 1px; }
.qr-source-row { padding: 15px; border: 1px dashed #bac7d8; background: #f8fafc; border-radius: 10px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.qr-source-row strong { display: block; color: #1e293b; font-size: 14px; }
.qr-source-row small { display: block; color: #64748b; margin-top: 5px; line-height: 1.45; }
.qr-upload-btn { background: #fff; color: #2563eb; }
.qr-source-row .editor-status { grid-column: 1/-1; text-align: left; margin: 0; }
/* Card preview remains fully visible on phones */
.cr80-card { width: min(100%, 470px); height: auto; aspect-ratio: 1012/638; }
.card-canvas-box { min-height: 0; }
.card-canvas-box canvas { width: 100%; height: 100%; }
@media(max-width: 960px) { .photo-editor-grid { grid-template-columns: 1fr; } .photo-controls-column { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 520px) { .photo-editor { padding: 14px; } .photo-controls-column { grid-template-columns: 1fr; } .qr-source-row { grid-template-columns: 1fr; } .main-content { padding: 12px; } .workspace-card { padding: 18px; } }


/* Ration-card tool-only additions: mobile editor and personal-reference disclaimer */
.mobile-number-editor {
  margin: 0 0 22px;
  padding: 17px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}
.mobile-number-editor label { display: block; margin-bottom: 9px; font-weight: 700; font-size: 16px; }
.mobile-number-editor label i { margin-right: 6px; color: #2563eb; }
.mobile-number-editor label span { font-size: 13px; font-weight: 400; color: #64748b; }
.mobile-number-editor input {
  display: block; width: 100%; min-height: 45px; padding: 11px 13px;
  border: 1px solid #94a3b8; border-radius: 8px;
  font: inherit; font-size: 16px; color: #0f172a; background: white;
}
.mobile-number-editor input:focus { outline: 2px solid #93c5fd; outline-offset: 1px; }
.mobile-number-editor small { display: block; margin-top: 8px; line-height: 1.5; color: #64748b; }
.ration-disclaimer {
  display: flex; gap: 11px; align-items: flex-start;
  margin: 25px 0; padding: 16px 18px;
  border: 1px solid #f1d59a; border-left: 4px solid #d97706;
  border-radius: 9px; background: #fffaf0; color: #5f430d;
  font-size: 13px; line-height: 1.65;
}
.ration-disclaimer i { margin-top: 3px; font-size: 18px; flex-shrink: 0; }
.ration-disclaimer p { margin: 0; }
@media (max-width: 600px) {
  .mobile-number-editor { padding: 14px; }
  .ration-disclaimer { padding: 12px; font-size: 12px; }
}

/* Only the ration-card PDF upload drop-zone: red before selection, green after. */
#dropZone.upload-area {
  background: #fff0f0;
  border: 2px dashed #dc2626;
  color: #7f1d1d;
}
#dropZone.upload-area:hover,
#dropZone.upload-area:focus-within {
  background: #ffe4e6;
  border-color: #b91c1c;
}
#dropZone.upload-area .upload-icon,
#dropZone.upload-area .file-details { color: #b91c1c; }
#dropZone.upload-area.has-pdf {
  background: #ecfdf3;
  border-color: #16a34a;
  color: #14532d;
}
#dropZone.upload-area.has-pdf:hover,
#dropZone.upload-area.has-pdf:focus-within { background: #dcfce7; border-color: #15803d; }
#dropZone.upload-area.has-pdf .upload-icon,
#dropZone.upload-area.has-pdf .file-details { color: #15803d; }

/* Scoped professional export toolbar; the rest of the website remains unchanged. */
.ration-export-toolbar { margin:0 0 24px; padding:18px; border:1px solid #d9e0e8; border-radius:14px; background:#f8fafc; }
.ration-export-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding-bottom:14px; border-bottom:1px solid #e2e8f0; }
.ration-export-heading strong { color:#1e293b; font-size:17px; }
.ration-export-group { margin-top:16px; }
.ration-export-label { display:block; margin-bottom:10px; color:#475569; font-size:13px; font-weight:700; }
.ration-export-buttons { display:flex; flex-wrap:wrap; gap:10px; }
.ration-export-toolbar .action-btn { font-family:inherit; font-size:13px; font-weight:700; padding:12px 15px; border-radius:9px; box-shadow:0 2px 5px rgba(15,23,42,.08); transition:filter .18s,transform .18s; }
.ration-export-toolbar .action-btn:hover { filter:brightness(.92); transform:translateY(-1px); }
.ration-export-toolbar .action-btn:focus-visible { outline:3px solid #f59e0b; outline-offset:2px; }
.ration-export-toolbar .action-btn i { margin-right:5px; }
.ration-export-toolbar .preview-btn { background:#6654bb; }
.ration-export-toolbar .export-front { background:#0f766e; }
.ration-export-toolbar .export-back { background:#be185d; }
.ration-export-toolbar .download-btn { background:#15803d; }
.ration-export-toolbar .export-a4-pdf { background:#0369a1; }
.ration-export-toolbar .export-four-six { background:#7c3aed; }
.ration-export-toolbar .print-btn { background:#1d4ed8; }
.ration-export-toolbar .print-four-six { background:#a16207; }
@media(max-width:540px) { .ration-export-toolbar { padding:13px; } .ration-export-buttons .action-btn { flex:1 1 125px; } }


/* Portal integration, scoped to the ration-card page only.
   The global portal header/sidebar/footer are loaded unchanged from /components/. */
.ration-tool-page {
  --header-height: 72px;
  --sidebar-width: 110px;
  --header-bg: #151b29;
  background-color: #f8fafc;
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
  background-size: 28px 28px;
}
.ration-tool-page .govt-header {
  display: block;
  height: var(--header-height);
  padding: 0;
  background: #151b29;
  border-bottom: 2px solid #2563eb;
}
.ration-tool-page .govt-header .header-container {
  width: 100%; max-width: 100%; margin: 0;
  padding: 0 40px; height: 100%; justify-content: space-between;
}
.ration-tool-page .govt-header .brand-logo i { font-size: inherit; color: inherit; }
.ration-tool-page .govt-header .brand-logo .logo-icon i { font-size: 32px; color: #38bdf8; }
.ration-tool-page .govt-header .brand-logo h1 { font-size: 20px; line-height: 1.2; color: #fff; }
.ration-tool-page .govt-header .brand-logo p { font-size: 13px; font-weight: 400; color: #94a3b8; }
.ration-tool-page .govt-header .header-search i { font-size: 16px; color: #64748b; }
.ration-tool-page .app-sidebar {
  width: var(--sidebar-width); padding: 24px 0; gap: 12px;
  box-shadow: none; border-right: 1px solid rgba(255,255,255,.15);
}
.ration-tool-page .app-sidebar .nav-item {
  width: 85px; height: auto; margin-bottom: 0; padding: 12px 6px;
  gap: 8px; border-radius: 16px;
}
.ration-tool-page .app-sidebar .nav-icon-box { margin-bottom: 0; }
.ration-tool-page .app-sidebar .nav-item span { font-size: 12px; }
.ration-tool-page .portal-layout {
  display: flex; width: 100%; margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}
.ration-tool-page .ration-app-main {
  margin: 0 0 0 var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  max-width: none; flex: 1; padding: 32px 32px 68px;
}
.ration-tool-page .ration-app-main .workspace-card { max-width: 1200px; margin: 0 auto; }
.ration-tool-page #footer-placeholder { width: 100%; }
/* Footer positioning is handled by the existing portal footer.js. */

/* A clear side-by-side upload guide, with an actual example of the required PDF. */
.ration-upload-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, .82fr);
  gap: 20px; align-items: stretch; margin: 0 0 25px;
}
.ration-upload-column { display: flex; flex-direction: column; min-width: 0; }
.ration-upload-heading, .ration-example-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.ration-upload-heading h3, .ration-example-heading h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.25; color: #16233a; }
.ration-upload-heading p, .ration-example-heading p { margin: 0; font-size: 12px; line-height: 1.5; color: #64748b; }
.ration-step, .ration-example-icon {
  flex: 0 0 42px; width: 42px; height: 42px; display: flex;
  align-items: center; justify-content: center; border-radius: 12px;
  background: #dbeafe; color: #1d4ed8; font-size: 16px; font-weight: 800;
}
.ration-tool-page .ration-upload-column #dropZone {
  flex: 1; margin-bottom: 10px; padding: 36px 18px; min-height: 310px;
  border-radius: 13px;
}
.ration-tool-page .ration-upload-column #dropZone .upload-icon { font-size: 42px; }
.ration-tool-page .ration-upload-column #dropZone h4 { font-size: 20px; }
.ration-tool-page .ration-upload-column #dropZone p { font-size: 13px; line-height: 1.5; }
.ration-upload-status { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #64748b; }
.ration-upload-status i { color: #0f766e; }
.ration-example-panel {
  min-width: 0; border: 1px solid #d7e0eb; border-radius: 15px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 17px; box-shadow: 0 6px 22px rgba(15,23,42,.05);
}
.ration-example-icon { background: #dcfce7; color: #15803d; }
.ration-example-frame {
  margin: 0; border: 2px solid #0f766e; border-radius: 10px;
  overflow: hidden; padding: 7px; background: #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,.1);
}
.ration-example-frame img {
  display: block; margin: 0 auto; width: auto; max-width: 100%;
  height: 260px; object-fit: contain; border: 1px solid #e2e8f0;
}
.ration-example-frame figcaption {
  text-align: center; padding: 9px 5px 3px; font-size: 12px;
  line-height: 1.45; color: #0f766e; font-weight: 700;
}
.ration-video-guide {
  display: flex; gap: 12px; align-items: center; margin-top: 14px;
  padding: 13px 12px; border-radius: 10px; border: 1px solid #fecaca;
  background: #fff1f2; text-decoration: none; color: #7f1d1d;
  transition: background .15s, border-color .15s;
}
.ration-video-guide:hover { background: #ffe4e6; border-color: #fda4af; }
.ration-video-guide .ration-play-icon { color: #dc2626; font-size: 29px; }
.ration-video-guide span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ration-video-guide strong { font-size: 13px; }
.ration-video-guide small { font-size: 11px; color: #9f1239; margin-top: 4px; }
.ration-video-guide > i { font-size: 13px; }
.ration-example-note { display: flex; gap: 8px; margin: 11px 0 0; font-size: 11px; line-height: 1.5; color: #64748b; }
.ration-example-note i { flex-shrink: 0; margin-top: 2px; }
@media(max-width: 1080px) {
  .ration-upload-layout { grid-template-columns: 1fr; }
  .ration-example-frame img { height: 230px; }
}
@media(max-width: 768px) {
  .ration-tool-page .ration-app-main { margin-left: 0; width: 100%; padding: 20px 14px 50px; }

  .ration-tool-page .govt-header .header-container { padding: 0 16px; }
  .ration-tool-page .govt-header .header-search { display: none; }
}
@media(max-width: 520px) {
  .ration-tool-page .ration-app-main { padding: 12px 9px 40px; }
  .ration-upload-heading h3, .ration-example-heading h3 { font-size: 16px; }
  .ration-tool-page .ration-upload-column #dropZone { min-height: 235px; padding: 24px 12px; }
  .ration-example-panel { padding: 12px; }
  .ration-example-frame img { height: 215px; }
}

/* Only this tool: let mobile visitors open the EXISTING UniiTools sidebar.
   The original desktop sidebar and all portal components remain untouched. */
.ration-mobile-sidebar-toggle, .ration-sidebar-scrim { display: none; }
@media (max-width: 768px) {
  .ration-tool-page .ration-mobile-sidebar-toggle {
    display: inline-flex; align-items: center; gap: 9px;
    margin: 0 0 13px; padding: 10px 15px;
    background: #065f73; color: #fff; border: 0;
    border-radius: 9px; font: 700 14px 'Comic Neue', cursive;
    cursor: pointer; box-shadow: 0 2px 8px rgba(6,95,115,.15);
  }
  .ration-tool-page .ration-mobile-sidebar-toggle:focus-visible {
    outline: 3px solid #f59e0b; outline-offset: 2px;
  }
  .ration-tool-page #sidebar-placeholder {
    display: block; width: 225px;
    height: calc(100vh - var(--header-height));
    z-index: 1202; pointer-events: none;
  }
  .ration-tool-page #sidebar-placeholder .app-sidebar {
    display: flex; width: 225px; max-width: 85vw;
    padding: 14px 10px; align-items: stretch;
    transform: translateX(-110%);
    transition: transform .22s ease;
    pointer-events: none; overflow-y: auto;
  }
  .ration-tool-page #sidebar-placeholder .app-sidebar .nav-item {
    width: 100%; flex-direction: row; justify-content: flex-start;
    text-align: left; gap: 13px; padding: 13px 12px;
  }
  .ration-tool-page #sidebar-placeholder .app-sidebar .nav-icon-box {
    width: 27px; min-width: 27px; justify-content: center;
  }
  .ration-tool-page #sidebar-placeholder .app-sidebar .nav-item span {
    text-align: left; font-size: 13px;
  }
  .ration-tool-page.ration-sidebar-open #sidebar-placeholder { pointer-events: auto; }
  .ration-tool-page.ration-sidebar-open #sidebar-placeholder .app-sidebar {
    transform: translateX(0); pointer-events: auto;
  }
  .ration-tool-page.ration-sidebar-open .ration-sidebar-scrim {
    display: block; position: fixed;
    inset: var(--header-height) 0 0; z-index: 1201;
    background: rgba(15,23,42,.5); border: 0; width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ration-tool-page #sidebar-placeholder .app-sidebar { transition: none; }
}
