/* =========================================================
   A&S AUTOMATIONS — RO DESIGN TOOL V1.1
   Home-theme visual refinement.
   Functionality/layout IDs/classes are intentionally preserved.
   This file is page-scoped and does not modify shared CSS.
   ========================================================= */

.ro-tool-shell{
  --ro-green:#3dcd58;
  --ro-green-dark:#23963b;
  --ro-ink:#111316;
  --ro-muted:#5d646b;
  --ro-line:#dfe4e6;
  --ro-soft:#f4f6f6;
  --ro-white:#fff;
  max-width:1240px;
  margin:0 auto;
  padding:54px 20px 84px;
  color:var(--ro-ink);
  background:#f5f7f7;
  font-family:inherit;
  line-height:1.6;
}

.ro-tool-shell,
.ro-tool-shell *{box-sizing:border-box}

.ro-tool-shell .card{
  position:relative;
  background:#fff;
  border:1px solid var(--ro-line);
  border-radius:2px;
  padding:30px;
  margin:0 0 18px;
  box-shadow:0 7px 24px rgba(17,20,22,.045);
  transition:border-color .2s ease,box-shadow .2s ease;
}

.ro-tool-shell .card:hover{
  border-color:#cfd9d2;
  box-shadow:0 10px 30px rgba(17,20,22,.065);
}

/* Main section headings — aligned with the site's modern section hierarchy */
.ro-tool-shell > .card > h2{
  display:flex;
  align-items:center;
  gap:13px;
  margin:0 0 24px;
  font-size:24px;
  line-height:1.2;
  font-weight:750;
  letter-spacing:-.035em;
  color:#111316;
}

.ro-tool-shell > .card > h2:before{
  content:"";
  flex:0 0 30px;
  width:30px;
  height:2px;
  background:var(--ro-green);
}

.ro-tool-shell h3{
  margin:22px 0 12px;
  font-size:18px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:-.015em;
  color:#171b1d;
}

.ro-tool-shell h4{
  margin:16px 0 9px;
  font-size:14px;
  font-weight:800;
  letter-spacing:.01em;
  color:#252c30;
}

.ro-tool-shell .hint{
  color:var(--ro-muted);
  line-height:1.7;
  margin:0 0 20px;
  font-size:14px;
}

.ro-tool-shell .grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.ro-tool-shell .grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}

.ro-tool-shell .form-group,
.ro-tool-shell .grid-3>div,
.ro-tool-shell .grid-2>div{
  min-width:0;
}

.ro-tool-shell label{
  display:block;
  font-size:12px;
  font-weight:750;
  letter-spacing:.01em;
  color:#354047;
  margin:0 0 7px;
}

.ro-tool-shell input,
.ro-tool-shell select{
  display:block;
  width:100%;
  height:46px;
  padding:0 13px;
  border:1px solid #cfd7db;
  border-radius:2px;
  background:#fff;
  color:#15191b;
  font:inherit;
  font-size:14px;
  outline:none;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}

.ro-tool-shell input:hover,
.ro-tool-shell select:hover{
  border-color:#aeb9bd;
}

.ro-tool-shell input:focus,
.ro-tool-shell select:focus{
  border-color:var(--ro-green);
  box-shadow:0 0 0 3px rgba(61,205,88,.13);
}

.ro-tool-shell input[readonly]{
  background:#f1f4f4;
  color:#526068;
}

/* Ionic composition cards */
.ro-tool-shell .ion-card{
  padding:20px;
  margin:0;
  background:#fbfcfc;
  border:1px solid #dfe4e6;
  box-shadow:none;
  border-radius:2px;
}

.ro-tool-shell .ion-card:hover{
  box-shadow:0 7px 22px rgba(17,20,22,.045);
}

.ro-tool-shell .ion-card h3{
  margin-top:0;
  display:flex;
  align-items:center;
  gap:9px;
}

.ro-tool-shell .ion-card h3:before{
  content:"";
  width:5px;
  height:18px;
  background:var(--ro-green);
  display:inline-block;
}

.ro-tool-shell .table-wrapper{
  overflow-x:auto;
  border:1px solid var(--ro-line);
  border-radius:2px;
  background:#fff;
}

.ro-tool-shell table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  min-width:520px;
}

.ro-tool-shell th{
  background:#f1f4f4;
  color:#273136;
  font-weight:800;
  text-align:right;
  padding:11px 9px;
  border-bottom:1px solid var(--ro-line);
  white-space:nowrap;
}

.ro-tool-shell td{
  padding:8px 9px;
  border-bottom:1px solid #e9edef;
  text-align:right;
  color:#3f4a50;
}

.ro-tool-shell tr:last-child td{border-bottom:0}

.ro-tool-shell th:first-child,
.ro-tool-shell td:first-child{text-align:left}

.ro-tool-shell .ion-card table input{
  width:90px;
  height:34px;
  padding:0 8px;
  margin-left:auto;
  font-size:13px;
}

.ro-tool-shell hr{
  border:0;
  border-top:1px solid var(--ro-line);
  margin:20px 0;
}

/* Controls */
.ro-tool-shell .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:0 19px;
  border-radius:1px;
  border:1px solid transparent;
  cursor:pointer;
  font:inherit;
  font-size:13px;
  font-weight:800;
  transition:transform .2s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease,color .2s ease;
}

.ro-tool-shell .btn.primary{
  background:var(--ro-green);
  color:#0b2410;
  box-shadow:0 7px 18px rgba(61,205,88,.13);
}

.ro-tool-shell .btn.primary:hover{
  background:#2fb94b;
  color:#08190c;
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(61,205,88,.20);
}

.ro-tool-shell .btn.secondary{
  background:#fff;
  color:#273136;
  border-color:#cfd7db;
}

.ro-tool-shell .btn.secondary:hover{
  border-color:var(--ro-green);
  color:#16702b;
  background:#f5fff7;
  transform:translateY(-1px);
}

.ro-tool-shell .actions-card{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  background:#111416;
  border-color:#111416;
}

.ro-tool-shell .actions-card:hover{
  border-color:#111416;
}

.ro-tool-shell .actions-card .btn{margin:0}

.ro-tool-shell .actions-card .btn.secondary{
  background:transparent;
  color:#fff;
  border-color:#697174;
}

.ro-tool-shell .actions-card .btn.secondary:hover{
  background:rgba(61,205,88,.08);
  color:var(--ro-green);
  border-color:var(--ro-green);
}

.ro-tool-shell #statusMessage{
  color:var(--ro-green);
  font-weight:750;
  margin-left:4px;
}

/* Results */
.ro-tool-shell .results-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:12px;
}

.ro-tool-shell .result-card{
  background:#f6f8f8;
  border:1px solid var(--ro-line);
  border-top:2px solid var(--ro-green);
  border-radius:2px;
  padding:16px;
}

.ro-tool-shell .result-card strong{color:#111416}

.ro-tool-shell .warning{
  color:#8d5700;
  background:#fff7e8;
  border:1px solid #f0d49d;
  border-radius:2px;
  padding:9px 10px;
  margin-top:8px;
}

.ro-tool-shell canvas{
  max-width:100%;
}

/* Responsive */
@media(max-width:1000px){
  .ro-tool-shell{padding:44px 20px 65px}
  .ro-tool-shell .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:680px){
  .ro-tool-shell{padding:30px 14px 50px}
  .ro-tool-shell .card{padding:20px;border-radius:2px}
  .ro-tool-shell > .card > h2{font-size:22px}
  .ro-tool-shell .grid-3,
  .ro-tool-shell .grid-2{grid-template-columns:1fr}
  .ro-tool-shell .actions-card{align-items:stretch}
  .ro-tool-shell .actions-card .btn{width:100%}
}
